@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
@@ -13,8 +13,8 @@ import {
13
13
  CodeField,
14
14
  useClearByFocusCell,
15
15
  } from "react-native-confirmation-code-field";
16
- import type { ReadTheme } from "@draftbit/theme";
17
- import { withTheme } from "@draftbit/theme";
16
+ import type { Theme } from "../../styles/DefaultTheme";
17
+ import { withTheme } from "../../theming";
18
18
  import PinInputText from "./PinInputText";
19
19
  import { extractStyles } from "../../utilities";
20
20
 
@@ -35,7 +35,7 @@ interface PinInputProps extends TextInputProps {
35
35
  focusedBorderWidth?: number;
36
36
  focusedTextColor?: string;
37
37
  style?: StyleProp<ViewStyle | TextStyle>;
38
- theme: ReadTheme;
38
+ theme: Theme;
39
39
  }
40
40
 
41
41
  const PinInput = React.forwardRef<NativeTextInput, PinInputProps>(
@@ -49,7 +49,7 @@ const PinInput = React.forwardRef<NativeTextInput, PinInputProps>(
49
49
  renderItem,
50
50
  value,
51
51
  onChangeText,
52
- focusedBorderColor = theme.colors.branding.primary,
52
+ focusedBorderColor = theme.colors.primary,
53
53
  focusedBackgroundColor,
54
54
  focusedBorderWidth,
55
55
  focusedTextColor,
@@ -97,7 +97,7 @@ const PinInput = React.forwardRef<NativeTextInput, PinInputProps>(
97
97
  testID="default-code-input-cell"
98
98
  style={[
99
99
  styles.cell,
100
- { borderColor: theme.colors.border.brand },
100
+ { borderColor: theme.colors.disabled },
101
101
  viewStyles,
102
102
  isFocused && focusedBorderWidth
103
103
  ? { borderWidth: focusedBorderWidth }
@@ -113,7 +113,7 @@ const PinInput = React.forwardRef<NativeTextInput, PinInputProps>(
113
113
  <PinInputText
114
114
  style={[
115
115
  styles.cellText,
116
- { color: theme.colors.text.strong },
116
+ { color: theme.colors.strong },
117
117
  textStyles,
118
118
  isFocused && focusedTextColor
119
119
  ? { color: focusedTextColor }
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import { Text } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
3
+ import { withTheme } from "../../theming";
4
4
  import { Cursor } from "react-native-confirmation-code-field";
5
5
  /**
6
6
  * Text component that can conditionally render a blinking cursor when focused and empty
7
7
  * Meant to be used within a CustomPinInputCell component
8
8
  */
9
9
  const CustomPinInputText = ({ isFocused, cursorBlinkDuration, cursorText, style, theme, children, ...rest }) => {
10
- return (React.createElement(Text, { style: [{ color: theme.colors.text.strong }, style], ...rest }, children ||
10
+ return (React.createElement(Text, { style: [{ color: theme.colors.strong }, style], ...rest }, children ||
11
11
  (isFocused ? (React.createElement(Cursor, { cursorSymbol: cursorText, delay: cursorBlinkDuration })) : null)));
12
12
  };
13
13
  export default withTheme(CustomPinInputText);
@@ -1 +1 @@
1
- {"version":3,"file":"PinInputText.js","sourceRoot":"","sources":["PinInputText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAS9D;;;GAGG;AACH,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,KAAM,IAAI,IAChE,QAAQ;QACP,CAAC,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,mBAAmB,GAAI,CACjE,CAAC,CAAC,CAAC,IAAI,CAAC,CACN,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"PinInputText.js","sourceRoot":"","sources":["PinInputText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAS9D;;;GAGG;AACH,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,SAAS,EACT,mBAAmB,EACnB,UAAU,EACV,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,KAAM,IAAI,IAC3D,QAAQ;QACP,CAAC,SAAS,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,mBAAmB,GAAI,CACjE,CAAC,CAAC,CAAC,IAAI,CAAC,CACN,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,kBAAkB,CAAC,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import React from "react";
2
2
  import { Text, TextProps } from "react-native";
3
- import type { ReadTheme } from "@draftbit/theme";
4
- import { withTheme } from "@draftbit/theme";
3
+ import type { Theme } from "../../styles/DefaultTheme";
4
+ import { withTheme } from "../../theming";
5
5
  import { Cursor } from "react-native-confirmation-code-field";
6
6
 
7
7
  interface CustomPinInputTextProps extends TextProps {
8
8
  cursorBlinkDuration?: number;
9
9
  cursorText?: string;
10
10
  isFocused?: boolean;
11
- theme: ReadTheme;
11
+ theme: Theme;
12
12
  }
13
13
 
14
14
  /**
@@ -25,7 +25,7 @@ const CustomPinInputText: React.FC<CustomPinInputTextProps> = ({
25
25
  ...rest
26
26
  }) => {
27
27
  return (
28
- <Text style={[{ color: theme.colors.text.strong }, style]} {...rest}>
28
+ <Text style={[{ color: theme.colors.strong }, style]} {...rest}>
29
29
  {children ||
30
30
  (isFocused ? (
31
31
  <Cursor cursorSymbol={cursorText} delay={cursorBlinkDuration} />
@@ -1,6 +1,7 @@
1
1
  import * as React from "react";
2
2
  import PortalConsumer from "./PortalConsumer";
3
3
  import PortalHost, { PortalContext } from "./PortalHost";
4
+ import { ThemeProvider, withTheme } from "../../theming";
4
5
  /**
5
6
  * Portal allows to render a component at a different place in the parent tree.
6
7
  * You can use it to render content which should appear above other elements, similar to `Modal`.
@@ -24,11 +25,12 @@ import PortalHost, { PortalContext } from "./PortalHost";
24
25
  */
25
26
  class Portal extends React.Component {
26
27
  render() {
27
- const { children } = this.props;
28
- return (React.createElement(PortalContext.Consumer, null, (manager) => (React.createElement(PortalConsumer, { manager: manager }, children))));
28
+ const { children, theme } = this.props;
29
+ return (React.createElement(PortalContext.Consumer, null, (manager) => (React.createElement(PortalConsumer, { manager: manager },
30
+ React.createElement(ThemeProvider, { theme: theme }, children)))));
29
31
  }
30
32
  }
31
33
  // @component ./PortalHost.tsx
32
34
  Portal.Host = PortalHost;
33
- export default Portal;
35
+ export default withTheme(Portal);
34
36
  //# sourceMappingURL=Portal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Portal.js","sourceRoot":"","sources":["Portal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,UAAU,EAAE,EAAE,aAAa,EAAiB,MAAM,cAAc,CAAC;AASxE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAO,SAAQ,KAAK,CAAC,SAAgB;IAIzC,MAAM;QACJ,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEhC,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,QACpB,CAAC,OAAO,EAAE,EAAE,CAAC,CACZ,oBAAC,cAAc,IAAC,OAAO,EAAE,OAAwB,IAC9C,QAAQ,CACM,CAClB,CACsB,CAC1B,CAAC;IACJ,CAAC;;AAfD,8BAA8B;AACvB,WAAI,GAAG,UAAU,CAAC;AAiB3B,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Portal.js","sourceRoot":"","sources":["Portal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,UAAU,EAAE,EAAE,aAAa,EAAiB,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAczD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAO,SAAQ,KAAK,CAAC,SAAgB;IAIzC,MAAM;QACJ,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEvC,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,QACpB,CAAC,OAAO,EAAE,EAAE,CAAC,CACZ,oBAAC,cAAc,IAAC,OAAO,EAAE,OAAwB;YAE/C,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK,IAAG,QAAQ,CAAiB,CACxC,CAClB,CACsB,CAC1B,CAAC;IACJ,CAAC;;AAhBD,8BAA8B;AACvB,WAAI,GAAG,UAAU,CAAC;AAkB3B,eAAe,SAAS,CAAC,MAAM,CAAC,CAAC"}
@@ -1,12 +1,18 @@
1
1
  import * as React from "react";
2
2
  import PortalConsumer from "./PortalConsumer";
3
3
  import PortalHost, { PortalContext, PortalMethods } from "./PortalHost";
4
+ import { ThemeProvider, withTheme } from "../../theming";
5
+ import type { Theme } from "../../styles/DefaultTheme";
4
6
 
5
7
  type Props = {
6
8
  /**
7
9
  * Content of the `Portal`.
8
10
  */
9
11
  children: React.ReactNode;
12
+ /**
13
+ * @optional
14
+ */
15
+ theme: Theme;
10
16
  };
11
17
 
12
18
  /**
@@ -35,13 +41,14 @@ class Portal extends React.Component<Props> {
35
41
  static Host = PortalHost;
36
42
 
37
43
  render() {
38
- const { children } = this.props;
44
+ const { children, theme } = this.props;
39
45
 
40
46
  return (
41
47
  <PortalContext.Consumer>
42
48
  {(manager) => (
43
49
  <PortalConsumer manager={manager as PortalMethods}>
44
- {children}
50
+ {/* @ts-ignore */}
51
+ <ThemeProvider theme={theme}>{children}</ThemeProvider>
45
52
  </PortalConsumer>
46
53
  )}
47
54
  </PortalContext.Consumer>
@@ -49,4 +56,4 @@ class Portal extends React.Component<Props> {
49
56
  }
50
57
  }
51
58
 
52
- export default Portal;
59
+ export default withTheme(Portal);
@@ -4,7 +4,7 @@ import { View } from "react-native";
4
4
  import Animated, { useAnimatedProps, useSharedValue, withTiming, } from "react-native-reanimated";
5
5
  import { DEFAULT_ANIMATION_DURATION, } from "../ProgressCommon";
6
6
  export const AnimatedPath = Animated.createAnimatedComponent(Path);
7
- export const CircularProgress = ({ theme, minimumValue = 0, maximumValue = 100, value = minimumValue, thickness = 10, trackThickness = thickness, color = theme.colors.branding.primary, trackColor = theme.colors.border.brand, trackOpacity = 1, showTrack = true, animationDuration = DEFAULT_ANIMATION_DURATION, isAnimated = true, lineCap = "round", trackLineCap = lineCap, dashWidth, trackDashWidth, dashGap, trackDashGap, dashOffset, trackDashOffset, customDashArray, trackCustomDashArray, onFullPathWidth, startPosition = "top", style, testID, }) => {
7
+ export const CircularProgress = ({ theme, minimumValue = 0, maximumValue = 100, value = minimumValue, thickness = 10, trackThickness = thickness, color = theme.colors.primary, trackColor = theme.colors.divider, trackOpacity = 1, showTrack = true, animationDuration = DEFAULT_ANIMATION_DURATION, isAnimated = true, lineCap = "round", trackLineCap = lineCap, dashWidth, trackDashWidth, dashGap, trackDashGap, dashOffset, trackDashOffset, customDashArray, trackCustomDashArray, onFullPathWidth, startPosition = "top", style, testID, }) => {
8
8
  const [svgContainerWidth, setSvgContainerWidth] = React.useState(0);
9
9
  const [circumfrence, setCircumefrence] = React.useState(0);
10
10
  const dashArray = dashWidth !== undefined
@@ -1 +1 @@
1
- {"version":3,"file":"CircularProgress.js","sourceRoot":"","sources":["CircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OA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G,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC;SAC/C,CAAC;IACJ,CAAC;IAED,IAAI,KAAK,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;IAC9D,IAAI,GAAG,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD,IAAI,YAAY,GAAG,QAAQ,GAAG,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAC5D,IAAI,CAAC,GAAG;QACN,GAAG;QACH,KAAK,CAAC,CAAC;QACP,KAAK,CAAC,CAAC;QACP,GAAG;QACH,MAAM;QACN,MAAM;QACN,CAAC;QACD,YAAY;QACZ,CAAC;QACD,GAAG,CAAC,CAAC;QACL,GAAG,CAAC,CAAC;KACN,CAAC;IACF,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
@@ -23,8 +23,8 @@ export const CircularProgress: React.FC<
23
23
  value = minimumValue,
24
24
  thickness = 10,
25
25
  trackThickness = thickness,
26
- color = theme.colors.branding.primary,
27
- trackColor = theme.colors.border.brand,
26
+ color = theme.colors.primary,
27
+ trackColor = theme.colors.divider,
28
28
  trackOpacity = 1,
29
29
  showTrack = true,
30
30
  animationDuration = DEFAULT_ANIMATION_DURATION,
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import IndeterminateProgress from "../IndeterminateProgress";
3
3
  import { CircularProgress as CircularProgressComponent } from "./CircularProgress";
4
- import { withTheme } from "@draftbit/theme";
4
+ import { withTheme } from "../../../theming";
5
5
  const CircularProgress = (props) => {
6
6
  if (props.indeterminate) {
7
7
  return (React.createElement(IndeterminateProgress, { ProgressComponent: CircularProgressComponent, ...props }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAM7D,OAAO,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,gBAAgB,GAElB,CAAC,KAAK,EAAE,EAAE;IACZ,IAAI,KAAK,CAAC,aAAa,EAAE;QACvB,OAAO,CACL,oBAAC,qBAAqB,IACpB,iBAAiB,EACf,yBAAwE,KAEtE,KAAK,GACT,CACH,CAAC;KACH;SAAM;QACL,OAAO,oBAAC,yBAAyB,OAAK,KAAK,GAAI,CAAC;KACjD;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAM7D,OAAO,EAAE,gBAAgB,IAAI,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,gBAAgB,GAElB,CAAC,KAAK,EAAE,EAAE;IACZ,IAAI,KAAK,CAAC,aAAa,EAAE;QACvB,OAAO,CACL,oBAAC,qBAAqB,IACpB,iBAAiB,EACf,yBAAwE,KAEtE,KAAK,GACT,CACH,CAAC;KACH;SAAM;QACL,OAAO,oBAAC,yBAAyB,OAAK,KAAK,GAAI,CAAC;KACjD;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,gBAAgB,CAAC,CAAC"}
@@ -6,7 +6,7 @@ import {
6
6
  ValueProgressProps,
7
7
  } from "../ProgressCommon";
8
8
  import { CircularProgress as CircularProgressComponent } from "./CircularProgress";
9
- import { withTheme } from "@draftbit/theme";
9
+ import { withTheme } from "../../../theming";
10
10
 
11
11
  const CircularProgress: React.FC<
12
12
  ValueProgressProps & IndeterminateProgressProps & CircularProgressProps
@@ -4,7 +4,7 @@ import { View } from "react-native";
4
4
  import Animated, { useAnimatedProps, useSharedValue, withTiming, } from "react-native-reanimated";
5
5
  import { DEFAULT_ANIMATION_DURATION, } from "../ProgressCommon";
6
6
  export const AnimatedLine = Animated.createAnimatedComponent(Line);
7
- export const LinearProgress = ({ theme, minimumValue = 0, maximumValue = 100, value = minimumValue, thickness = 10, trackThickness = thickness, color = theme.colors.branding.primary, trackColor = theme.colors.border.brand, trackOpacity = 1, showTrack = true, animationDuration = DEFAULT_ANIMATION_DURATION, isAnimated = true, lineCap = "round", trackLineCap = lineCap, dashWidth, trackDashWidth, dashGap, trackDashGap, dashOffset, trackDashOffset, customDashArray, trackCustomDashArray, onFullPathWidth, style, testID, }) => {
7
+ export const LinearProgress = ({ theme, minimumValue = 0, maximumValue = 100, value = minimumValue, thickness = 10, trackThickness = thickness, color = theme.colors.primary, trackColor = theme.colors.divider, trackOpacity = 1, showTrack = true, animationDuration = DEFAULT_ANIMATION_DURATION, isAnimated = true, lineCap = "round", trackLineCap = lineCap, dashWidth, trackDashWidth, dashGap, trackDashGap, dashOffset, trackDashOffset, customDashArray, trackCustomDashArray, onFullPathWidth, style, testID, }) => {
8
8
  const [svgContainerWidth, setSvgContainerWidth] = React.useState(0);
9
9
  const dashArray = dashWidth !== undefined
10
10
  ? `${dashWidth} ${dashGap || dashWidth}`
@@ -1 +1 @@
1
- {"version":3,"file":"LinearProgress.js","sourceRoot":"","sources":["LinearProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,EAAE,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,QAAQ,EAAE,EACf,gBAAgB,EAChB,cAAc,EACd,UAAU,GACX,MAAM,yBAAyB,CAAC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IACH,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,sBAAsB,EAC1B,EAAE,EAAE,eAAe,EACnB,MAAM,EAAE,UAAU,EAClB,WAAW,EAAE,cAAc,EAC3B,aAAa,EAAE,YAAY,EAC3B,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,oBAAoB,IAAI,cAAc,EACvD,gBAAgB,EAAE,eAAe,GACjC,CACH;YACD,oBAAC,YAAY,IACX,aAAa,EAAE,yBAAyB,EACxC,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,EAAE,EAAE,eAAe,EACnB,MAAM,EAAE,KAAK,EACb,WAAW,EAAE,SAAS,EACtB,aAAa,EAAE,OAAO,EACtB,eAAe,EAAE,eAAe,IAAI,SAAS,EAC7C,gBAAgB,EAAE,UAAU,EAC5B,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,GACjB,CACE,CACD,CACR,CAAC;AACJ,CAAC,CAAC"}
@@ -20,8 +20,8 @@ export const LinearProgress: React.FC<ValueProgressProps> = ({
20
20
  value = minimumValue,
21
21
  thickness = 10,
22
22
  trackThickness = thickness,
23
- color = theme.colors.branding.primary,
24
- trackColor = theme.colors.border.brand,
23
+ color = theme.colors.primary,
24
+ trackColor = theme.colors.divider,
25
25
  trackOpacity = 1,
26
26
  showTrack = true,
27
27
  animationDuration = DEFAULT_ANIMATION_DURATION,
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import IndeterminateProgress from "../IndeterminateProgress";
3
3
  import { LinearProgress as LinearProgressComponent } from "./LinearProgress";
4
- import { withTheme } from "@draftbit/theme";
4
+ import { withTheme } from "../../../theming";
5
5
  const LinearProgress = (props) => {
6
6
  if (props.indeterminate) {
7
7
  return (React.createElement(IndeterminateProgress, { ProgressComponent: LinearProgressComponent, ...props }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,cAAc,GAEhB,CAAC,KAAK,EAAE,EAAE;IACZ,IAAI,KAAK,CAAC,aAAa,EAAE;QACvB,OAAO,CACL,oBAAC,qBAAqB,IACpB,iBAAiB,EAAE,uBAAuB,KACtC,KAAK,GACT,CACH,CAAC;KACH;SAAM;QACL,OAAO,oBAAC,uBAAuB,OAAK,KAAK,GAAI,CAAC;KAC/C;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,cAAc,GAEhB,CAAC,KAAK,EAAE,EAAE;IACZ,IAAI,KAAK,CAAC,aAAa,EAAE;QACvB,OAAO,CACL,oBAAC,qBAAqB,IACpB,iBAAiB,EAAE,uBAAuB,KACtC,KAAK,GACT,CACH,CAAC;KACH;SAAM;QACL,OAAO,oBAAC,uBAAuB,OAAK,KAAK,GAAI,CAAC;KAC/C;AACH,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
@@ -5,7 +5,7 @@ import {
5
5
  ValueProgressProps,
6
6
  } from "../ProgressCommon";
7
7
  import { LinearProgress as LinearProgressComponent } from "./LinearProgress";
8
- import { withTheme } from "@draftbit/theme";
8
+ import { withTheme } from "../../../theming";
9
9
 
10
10
  const LinearProgress: React.FC<
11
11
  ValueProgressProps & IndeterminateProgressProps
@@ -1,5 +1,5 @@
1
1
  import { StyleProp, ViewStyle } from "react-native";
2
- import type { ReadTheme } from "@draftbit/theme";
2
+ import { Theme } from "../../styles/DefaultTheme";
3
3
 
4
4
  type LineCap = "round" | "square";
5
5
 
@@ -26,7 +26,7 @@ export interface BaseProgressProps {
26
26
  trackCustomDashArray?: string;
27
27
  onFullPathWidth?: (width: number) => void;
28
28
  style?: StyleProp<ViewStyle>;
29
- theme: ReadTheme;
29
+ theme: Theme;
30
30
  testID?: string;
31
31
  }
32
32
  export interface ValueProgressProps extends BaseProgressProps {
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import StepIndicator from "./StepIndicator";
3
- import { withTheme } from "@draftbit/theme";
3
+ import { withTheme } from "../theming";
4
4
  const ProgressIndicator = ({ numberOfSteps, currentStep, currentStepStrokeWidth = 3, stepStrokeCurrentColor = "primary", stepIndicatorSize, currentStepIndicatorSize, stepIndicatorCurrentColor, stepIndicatorLabelCurrentColor, stepIndicatorLabelFontSize = 12, stepNumberFinishedColor = "strongInverse", stepNumberUnfinishedColor = "primary", unfinishedColor = "light", finishedColor = "primary", theme, }) => {
5
5
  const currentPosition = currentStep - 1;
6
6
  return (React.createElement(StepIndicator, { stepCount: numberOfSteps, currentPosition: currentPosition, customStyles: {
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressIndicator.js","sourceRoot":"","sources":["ProgressIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAoB5C,MAAM,iBAAiB,GAA6C,CAAC,EACnE,aAAa,EACb,WAAW,EACX,sBAAsB,GAAG,CAAC,EAC1B,sBAAsB,GAAG,SAAS,EAClC,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,GA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ClC,iBAAiB,EACjB,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,0BAA0B,GAAG,EAAE,EAC/B,uBAAuB,GAAG,eAAe,EACzC,yBAAyB,GAAG,SAAS,EACrC,eAAe,GAAG,OAAO,EACzB,aAAa,GAAG,SAAS,EACzB,KAAK,GACN,EAAE,EAAE;IACH,MAAM,eAAe,GAAG,WAAW,GAAG,CAAC,CAAC;IACxC,OAAO,CACL,oBAAC,aAAa,IACZ,SAAS,EAAE,aAAa,EACxB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE;YACZ,iBAAiB;YACjB,wBAAwB,EAAE,wBAAwB;gBAChD,CAAC,CAAC,wBAAwB;gBAC1B,CAAC,CAAC,iBAAiB;YACrB,uBAAuB,EAAE,aAAa;YACtC,yBAAyB,EAAE,eAAe;YAC1C,sBAAsB,EAAE,aAAa;YACrC,wBAAwB,EAAE,eAAe;YACzC,0BAA0B,EAAE,aAAa;YACzC,4BAA4B,EAAE,eAAe;YAC7C,sBAAsB;YACtB,sBAAsB,EACpB,sBAAsB,IAAI,yBAAyB;YACrD,iCAAiC,EAAE,yBAAyB;YAC5D,+BAA+B,EAAE,uBAAuB;YACxD,yBAAyB,EAAE,yBAAyB,IAAI,eAAe;YACvE,8BAA8B,EAC5B,8BAA8B,IAAI,yBAAyB;YAC7D,0BAA0B;YAC1B,eAAe,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU;SACnD,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,23 +1,24 @@
1
1
  import * as React from "react";
2
2
  import StepIndicator from "./StepIndicator";
3
- import { withTheme } from "@draftbit/theme";
4
- import type { ReadTheme } from "@draftbit/theme";
3
+ import { withTheme } from "../theming";
4
+ import themeT from "../styles/DefaultTheme";
5
+ import { colorTypes } from "@draftbit/types";
5
6
 
6
7
  type Props = {
7
8
  numberOfSteps: number;
8
9
  currentStep: number;
9
10
  currentStepStrokeWidth?: number;
10
- stepStrokeCurrentColor?: string;
11
+ stepStrokeCurrentColor?: colorTypes;
11
12
  stepIndicatorSize?: number;
12
13
  currentStepIndicatorSize?: number;
13
- stepIndicatorCurrentColor?: string;
14
- stepIndicatorLabelCurrentColor?: string;
14
+ stepIndicatorCurrentColor?: colorTypes;
15
+ stepIndicatorLabelCurrentColor?: colorTypes;
15
16
  stepIndicatorLabelFontSize?: number;
16
- stepNumberFinishedColor?: string;
17
- stepNumberUnfinishedColor?: string;
18
- unfinishedColor?: string;
19
- finishedColor?: string;
20
- theme: ReadTheme;
17
+ stepNumberFinishedColor?: colorTypes;
18
+ stepNumberUnfinishedColor?: colorTypes;
19
+ unfinishedColor?: colorTypes;
20
+ finishedColor?: colorTypes;
21
+ theme: typeof themeT;
21
22
  };
22
23
 
23
24
  const ProgressIndicator: React.FC<React.PropsWithChildren<Props>> = ({
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { View, StyleProp, ViewStyle } from "react-native";
3
- import type { ReadTheme } from "@draftbit/theme";
3
+ import type { Theme } from "../../styles/DefaultTheme";
4
4
  import { getValueForRadioButton } from "../../utilities";
5
5
  import { radioButtonGroupContext, Direction } from "./context";
6
6
  export interface RadioButtonGroupProps {
@@ -9,7 +9,7 @@ export interface RadioButtonGroupProps {
9
9
  value: string | number;
10
10
  onValueChange?: (value: string) => void;
11
11
  defaultValue?: string | number;
12
- theme: ReadTheme;
12
+ theme: Theme;
13
13
  children: React.ReactNode;
14
14
  }
15
15
 
@@ -6,7 +6,6 @@ import { useRadioButtonGroupContext } from "./context";
6
6
  import { Direction as GroupDirection } from "./context";
7
7
  import Touchable from "../Touchable";
8
8
  import { extractStyles, getValueForRadioButton } from "../../utilities";
9
- import { withTheme } from "@draftbit/theme";
10
9
  export var Direction;
11
10
  (function (Direction) {
12
11
  Direction["Row"] = "row";
@@ -31,7 +30,7 @@ const renderLabel = (value, labelStyle, textStyle) => {
31
30
  return React.createElement(React.Fragment, null, value);
32
31
  }
33
32
  };
34
- const RadioButtonRow = ({ Icon, label, value = "", color, unselectedColor, onPress, labelContainerStyle, labelStyle, radioButtonStyle, direction = Direction.Row, selected, disabled, style, theme, ...rest }) => {
33
+ const RadioButtonRow = ({ Icon, label, value = "", color, unselectedColor, onPress, labelContainerStyle, labelStyle, radioButtonStyle, direction = Direction.Row, selected, disabled, style, ...rest }) => {
35
34
  const { value: contextValue, onValueChange, direction: parentDirection, } = useRadioButtonGroupContext();
36
35
  const realValue = getValueForRadioButton(value);
37
36
  const realContextValue = getValueForRadioButton(contextValue);
@@ -48,7 +47,7 @@ const RadioButtonRow = ({ Icon, label, value = "", color, unselectedColor, onPre
48
47
  alignItems: direction === Direction.Row ? "flex-start" : "flex-end",
49
48
  },
50
49
  labelContainerStyle,
51
- ] }, renderLabel(label, labelStyle, StyleSheet.flatten([{ color: theme.colors.text.strong }, textStyles]))),
50
+ ] }, renderLabel(label, labelStyle, textStyles)),
52
51
  React.createElement(View, { style: {
53
52
  flex: 1,
54
53
  alignItems: getRadioButtonAlignment(parentDirection, direction),
@@ -75,5 +74,5 @@ const styles = StyleSheet.create({
75
74
  flex: 3,
76
75
  },
77
76
  });
78
- export default withTheme(RadioButtonRow);
77
+ export default RadioButtonRow;
79
78
  //# sourceMappingURL=RadioButtonRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButtonRow.js","sourceRoot":"","sources":["RadioButtonRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,UAAU,EAEV,IAAI,EACJ,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,WAAiC,MAAM,eAAe,CAAC;AAC9D,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAEvD,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,SAA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ACf,GAAG,QAAQ,CAAC,MAAM,CAAC;YACjB,GAAG,EAAE;gBACH,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,MAAM;aACnB;SACF,CAAC;KACH;IACD,KAAK,EAAE;QACL,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
@@ -14,7 +14,6 @@ import type { IconSlot } from "../../interfaces/Icon";
14
14
  import { Direction as GroupDirection } from "./context";
15
15
  import Touchable from "../Touchable";
16
16
  import { extractStyles, getValueForRadioButton } from "../../utilities";
17
- import { ReadTheme, withTheme } from "@draftbit/theme";
18
17
 
19
18
  export enum Direction {
20
19
  Row = "row",
@@ -31,7 +30,6 @@ export interface RadioButtonRowProps extends Omit<RadioButtonProps, "onPress"> {
31
30
  labelStyle?: StyleProp<TextStyle>;
32
31
  onPress?: (value: string) => void;
33
32
  direction?: Direction;
34
- theme: ReadTheme;
35
33
  }
36
34
 
37
35
  const getRadioButtonAlignment = (
@@ -73,7 +71,6 @@ const RadioButtonRow: React.FC<RadioButtonRowProps & IconSlot> = ({
73
71
  selected,
74
72
  disabled,
75
73
  style,
76
- theme,
77
74
  ...rest
78
75
  }) => {
79
76
  const {
@@ -109,11 +106,7 @@ const RadioButtonRow: React.FC<RadioButtonRowProps & IconSlot> = ({
109
106
  labelContainerStyle,
110
107
  ]}
111
108
  >
112
- {renderLabel(
113
- label,
114
- labelStyle,
115
- StyleSheet.flatten([{ color: theme.colors.text.strong }, textStyles])
116
- )}
109
+ {renderLabel(label, labelStyle, textStyles)}
117
110
  </View>
118
111
  <View
119
112
  style={{
@@ -155,4 +148,4 @@ const styles = StyleSheet.create({
155
148
  },
156
149
  });
157
150
 
158
- export default withTheme(RadioButtonRow);
151
+ export default RadioButtonRow;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { View, Text, Image, StyleSheet, } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
3
+ import { withTheme } from "../theming";
4
4
  import Config from "./Config";
5
5
  const Row = ({ titleTypeStyle, titleColor, subtitleTypeStyle, subtitleColor, title, subtitle, multilineSubtitle, image, right, style, }) => {
6
6
  return (React.createElement(View, { style: [styles.container, { padding: 16 }, style] },
@@ -1 +1 @@
1
- {"version":3,"file":"Row.js","sourceRoot":"","sources":["Row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EAEL,UAAU,GAIX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,MAAM,MAAM,UAAU,CAAC;AAiB9B,MAAM,GAAG,GAA6C,CAAC,EACrD,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;QACrD,oBAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,aAAa;YAC9B,KAAK,IAAI,CACR,oBAAC,KAAK,IACJ,MAAM,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,EAC1D,KAAK,EAAE;oBACL,WAAW,EAAE,EAAE;oBACf,KAAK,EAAE,QAAQ;wBACb,CAAC,CAAC,MAAM,CAAC,qBAAqB;wBAC9B,CAAC,CAAC,MAAM,CAAC,sBAAsB;oBACjC,MAAM,EAAE,QAAQ;wBACd,CAAC,CAAC,MAAM,CAAC,qBAAqB;wBAC9B,CAAC,CAAC,MAAM,CAAC,sBAAsB;iBAClC,GACD,CACH;YACD,oBAAC,IAAI,IAAC,KAAK,EAAE,M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AC;IAC/B,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,IAAI,EAAE,CAAC;KACR;IACD,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;KACrB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;QACP,cAAc,EAAE,QAAQ;KACzB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,GAAG,CAAC,CAAC"}
@@ -9,9 +9,9 @@ import {
9
9
  TextStyle,
10
10
  ViewStyle,
11
11
  } from "react-native";
12
- import { withTheme } from "@draftbit/theme";
12
+ import { withTheme } from "../theming";
13
13
  import Config from "./Config";
14
- import type { ReadTheme } from "@draftbit/theme";
14
+ import theme from "../styles/DefaultTheme";
15
15
 
16
16
  type Props = {
17
17
  titleTypeStyle?: StyleProp<TextStyle>;
@@ -24,7 +24,7 @@ type Props = {
24
24
  image?: string | ImageSourcePropType;
25
25
  right?: () => React.ReactNode;
26
26
  style?: StyleProp<ViewStyle>;
27
- theme: ReadTheme;
27
+ theme: typeof theme;
28
28
  };
29
29
 
30
30
  const Row: React.FC<React.PropsWithChildren<Props>> = ({
@@ -1,11 +1,10 @@
1
1
  import * as React from "react";
2
2
  import { StyleSheet, ScrollView, View, } from "react-native";
3
3
  import { SafeAreaView } from "react-native-safe-area-context";
4
- import { withTheme } from "@draftbit/theme";
4
+ import { withTheme } from "../theming";
5
5
  function ScreenContainer({ scrollable = false, hasSafeArea = false, hasBottomSafeArea = false, hasTopSafeArea = false, hasLeftSafeArea = true, hasRightSafeArea = true, theme, style, children, ...rest }) {
6
6
  var _a;
7
- const backgroundColor = ((_a = StyleSheet.flatten(style)) === null || _a === void 0 ? void 0 : _a.backgroundColor) ||
8
- theme.colors.branding.background.brand;
7
+ const backgroundColor = ((_a = StyleSheet.flatten(style)) === null || _a === void 0 ? void 0 : _a.backgroundColor) || theme.colors.background;
9
8
  const edges = [];
10
9
  if (hasSafeArea || hasTopSafeArea) {
11
10
  edges.push("top");
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenContainer.js","sourceRoot":"","sources":["ScreenContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,UAAU,EACV,UAAU,EAGV,IAAI,GACL,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAe5C,SAAS,eAAe,CAAC,EACvB,UAAU,GAAG,KAAK,EAClB,WAAW,GAAG,KAAK,EACnB,iBAAiB,GAAG,KAAK,EACzB,cAAc,GAAG,KAAK,EACtB,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,IAAI,EACvB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACc;;IACrB,MAAM,eAAe,GACnB,CAAA,MAAA,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,0CAAE,eAAe;QAC1C,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;IAEzC,MAAM,KAAK,GAAW,EAAE,CAAC;IACzB,IAAI,WAAW,IAAI,cAAc,EAAE;QACjC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACnB;IAED,IAAI,WAAW,IAAI,iBAAiB,EAAE;QACpC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACtB;IAED,IAAI,WAAW,IAAI,eAAe,EAAE;QAClC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACpB;IAED,IAAI,WAAW,IAAI,gBAAgB,EAAE;QACnC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACrB;IAED,OAAO,CACL,oBAAC,YAAY,IACX,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE;YACL,MAAM,CAAC,SAAS;YAChB;gBACE,eAAe;aACh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AM,KAAK,GAAW,EAAE,CAAC;IACzB,IAAI,WAAW,IAAI,cAAc,EAAE;QACjC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACnB;IAED,IAAI,WAAW,IAAI,iBAAiB,EAAE;QACpC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACtB;IAED,IAAI,WAAW,IAAI,eAAe,EAAE;QAClC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACpB;IAED,IAAI,WAAW,IAAI,gBAAgB,EAAE;QACnC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACrB;IAED,OAAO,CACL,oBAAC,YAAY,IACX,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE;YACL,MAAM,CAAC,SAAS;YAChB;gBACE,eAAe;aAChB;SACF,KACG,IAAI,IAEP,UAAU,CAAC,CAAC,CAAC,CACZ,oBAAC,UAAU,IACT,qBAAqB,EAAE;YACrB,MAAM,CAAC,mBAAmB;YAC1B,EAAE,eAAe,EAAE;YACnB,KAAK;SACN,IAEA,QAAQ,CACE,CACd,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,CAAC,IACxD,QAAQ,CACJ,CACR,CACY,CAChB,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;IACD,mBAAmB,EAAE;QACnB,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,eAAe,CAAC,CAAC"}
@@ -8,8 +8,8 @@ import {
8
8
  } from "react-native";
9
9
  import { SafeAreaView } from "react-native-safe-area-context";
10
10
  import type { Edge } from "react-native-safe-area-context";
11
- import { withTheme } from "@draftbit/theme";
12
- import type { ReadTheme } from "@draftbit/theme";
11
+ import { withTheme } from "../theming";
12
+ import type { Theme } from "../styles/DefaultTheme";
13
13
 
14
14
  type ScreenContainerProps = {
15
15
  scrollable?: boolean;
@@ -18,7 +18,7 @@ type ScreenContainerProps = {
18
18
  hasBottomSafeArea?: boolean;
19
19
  hasLeftSafeArea?: boolean;
20
20
  hasRightSafeArea?: boolean;
21
- theme: ReadTheme;
21
+ theme: Theme;
22
22
  style?: StyleProp<ViewStyle>;
23
23
  children?: React.ReactNode;
24
24
  };
@@ -36,8 +36,7 @@ function ScreenContainer({
36
36
  ...rest
37
37
  }: ScreenContainerProps) {
38
38
  const backgroundColor =
39
- StyleSheet.flatten(style)?.backgroundColor ||
40
- theme.colors.branding.background.brand;
39
+ StyleSheet.flatten(style)?.backgroundColor || theme.colors.background;
41
40
 
42
41
  const edges: Edge[] = [];
43
42
  if (hasSafeArea || hasTopSafeArea) {
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import { View, Text } from "react-native";
3
- import { withTheme } from "@draftbit/theme";
3
+ import { withTheme } from "../../theming";
4
4
  const SectionHeader = ({ style, children, }) => React.createElement(View, { style: [style] }, children);
5
5
  export const DefaultSectionHeader = withTheme(({ title, theme }) => {
6
6
  return (React.createElement(Text, { testID: "default-section-header", style: {
7
- color: theme.colors.background.brand,
8
- backgroundColor: theme.colors.branding.primary,
7
+ color: theme.colors.background,
8
+ backgroundColor: theme.colors.primary,
9
9
  fontSize: 16,
10
10
  padding: 10,
11
11
  } }, title));
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.js","sourceRoot":"","sources":["SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAwB,IAAI,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAO5C,MAAM,aAAa,GAA0D,CAAC,EAC5E,KAAK,EACL,QAAQ,GACT,EAAE,EA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