@draftbit/core 49.5.1-312cdf.2 → 49.5.1-31b68d.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 (494) 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/PickerCommon.js +1 -1
  17. package/lib/commonjs/components/Picker/dropdown/DropDownModalPicker.js +1 -0
  18. package/lib/commonjs/components/Picker/dropdown/DropDownPicker.js +1 -1
  19. package/lib/commonjs/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  20. package/lib/commonjs/components/Picker/index.js +1 -1
  21. package/lib/commonjs/components/PinInput/PinInput.js +1 -1
  22. package/lib/commonjs/components/PinInput/PinInputText.js +1 -1
  23. package/lib/commonjs/components/Portal/Portal.js +1 -1
  24. package/lib/commonjs/components/Progress/CircularProgress/CircularProgress.js +1 -1
  25. package/lib/commonjs/components/Progress/CircularProgress/index.js +1 -1
  26. package/lib/commonjs/components/Progress/LinearProgress/LinearProgress.js +1 -1
  27. package/lib/commonjs/components/Progress/LinearProgress/index.js +1 -1
  28. package/lib/commonjs/components/ProgressIndicator.js +1 -1
  29. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  30. package/lib/commonjs/components/Row.js +1 -1
  31. package/lib/commonjs/components/ScreenContainer.js +1 -1
  32. package/lib/commonjs/components/SectionList/SectionHeader.js +1 -1
  33. package/lib/commonjs/components/Slider.js +1 -1
  34. package/lib/commonjs/components/StarRating.js +1 -1
  35. package/lib/commonjs/components/Stepper.js +1 -1
  36. package/lib/commonjs/components/Surface.js +1 -1
  37. package/lib/commonjs/components/SwipeableItem/SwipeableItem.js +1 -1
  38. package/lib/commonjs/components/Swiper/Swiper.js +1 -1
  39. package/lib/commonjs/components/Switch.js +1 -1
  40. package/lib/commonjs/components/TabView/TabView.js +1 -1
  41. package/lib/commonjs/components/Table/Table.js +1 -1
  42. package/lib/commonjs/components/Table/TableRow.js +1 -1
  43. package/lib/commonjs/components/Text.js +1 -1
  44. package/lib/commonjs/components/TextField.js +1 -1
  45. package/lib/commonjs/components/TextInput.js +1 -1
  46. package/lib/commonjs/components/Typography.js +1 -1
  47. package/lib/commonjs/deprecated-components/AccordionItem.js +1 -1
  48. package/lib/commonjs/deprecated-components/AvatarEdit.js +1 -1
  49. package/lib/commonjs/deprecated-components/Banner.js +1 -1
  50. package/lib/commonjs/deprecated-components/Card.js +1 -1
  51. package/lib/commonjs/deprecated-components/Container.js +1 -1
  52. package/lib/commonjs/deprecated-components/DeprecatedButton.js +1 -1
  53. package/lib/commonjs/deprecated-components/DeprecatedCardWrapper.js +1 -1
  54. package/lib/commonjs/deprecated-components/DeprecatedFAB.js +1 -1
  55. package/lib/commonjs/deprecated-components/FAB.js +1 -1
  56. package/lib/commonjs/deprecated-components/FieldSearchBarFull.js +1 -1
  57. package/lib/commonjs/deprecated-components/ProgressCircle.js +1 -1
  58. package/lib/commonjs/deprecated-components/RadioButtonFieldGroup.js +1 -1
  59. package/lib/commonjs/deprecated-components/RowBodyIcon.js +1 -1
  60. package/lib/commonjs/deprecated-components/RowHeadlineImageCaption.js +1 -1
  61. package/lib/commonjs/deprecated-components/RowHeadlineImageIcon.js +1 -1
  62. package/lib/commonjs/deprecated-components/ToggleButton.js +1 -1
  63. package/lib/commonjs/index.js +1 -1
  64. package/lib/commonjs/styles/DarkTheme.js +1 -0
  65. package/lib/commonjs/styles/DefaultTheme.js +1 -0
  66. package/lib/commonjs/styles/fonts.js +1 -0
  67. package/lib/commonjs/styles/overlay.js +1 -0
  68. package/lib/commonjs/styles/shadow.js +1 -0
  69. package/lib/commonjs/theming.js +1 -0
  70. package/lib/typescript/src/Provider.d.ts +5 -7
  71. package/lib/typescript/src/Provider.js +4 -4
  72. package/lib/typescript/src/Provider.js.map +1 -1
  73. package/lib/typescript/src/components/AccordionGroup.d.ts +5 -3
  74. package/lib/typescript/src/components/AccordionGroup.js +3 -3
  75. package/lib/typescript/src/components/AccordionGroup.js.map +1 -1
  76. package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +5 -3
  77. package/lib/typescript/src/components/BottomSheet/BottomSheet.js +4 -4
  78. package/lib/typescript/src/components/BottomSheet/BottomSheet.js.map +1 -1
  79. package/lib/typescript/src/components/Button.js +10 -11
  80. package/lib/typescript/src/components/Button.js.map +1 -1
  81. package/lib/typescript/src/components/Checkbox/Checkbox.js +3 -3
  82. package/lib/typescript/src/components/Checkbox/Checkbox.js.map +1 -1
  83. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +2 -4
  84. package/lib/typescript/src/components/Checkbox/CheckboxRow.js +3 -4
  85. package/lib/typescript/src/components/Checkbox/CheckboxRow.js.map +1 -1
  86. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +5 -3
  87. package/lib/typescript/src/components/DatePicker/DatePicker.js +23 -24
  88. package/lib/typescript/src/components/DatePicker/DatePicker.js.map +1 -1
  89. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +5010 -4
  90. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js +6 -8
  91. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  92. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +2 -2
  93. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +5 -3
  94. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  95. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  96. package/lib/typescript/src/components/Divider.d.ts +5 -3
  97. package/lib/typescript/src/components/Divider.js +2 -2
  98. package/lib/typescript/src/components/Divider.js.map +1 -1
  99. package/lib/typescript/src/components/Elevation.d.ts +5 -3
  100. package/lib/typescript/src/components/Elevation.js +4 -3
  101. package/lib/typescript/src/components/Elevation.js.map +1 -1
  102. package/lib/typescript/src/components/FormRow.d.ts +2 -1
  103. package/lib/typescript/src/components/FormRow.js.map +1 -1
  104. package/lib/typescript/src/components/IconButton.d.ts +5 -3
  105. package/lib/typescript/src/components/IconButton.js +2 -2
  106. package/lib/typescript/src/components/IconButton.js.map +1 -1
  107. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.d.ts +2 -0
  108. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.d.ts +4 -5
  109. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +13 -10
  110. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  111. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.d.ts +4 -2
  112. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js +3 -1
  113. package/lib/typescript/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
  114. package/lib/typescript/src/components/Picker/NativePicker.d.ts +3 -1
  115. package/lib/typescript/src/components/Picker/NativePicker.js +2 -5
  116. package/lib/typescript/src/components/Picker/NativePicker.js.map +1 -1
  117. package/lib/typescript/src/components/Picker/PickerCommon.d.ts +8 -2
  118. package/lib/typescript/src/components/Picker/PickerCommon.js +11 -0
  119. package/lib/typescript/src/components/Picker/PickerCommon.js.map +1 -1
  120. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.d.ts +6 -0
  121. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js +70 -0
  122. package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -0
  123. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +3 -1
  124. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js +5 -11
  125. package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  126. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +3 -1
  127. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  128. package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
  129. package/lib/typescript/src/components/Picker/index.d.ts +6 -4
  130. package/lib/typescript/src/components/Picker/index.js +5 -1
  131. package/lib/typescript/src/components/Picker/index.js.map +1 -1
  132. package/lib/typescript/src/components/PinInput/PinInput.d.ts +5 -3
  133. package/lib/typescript/src/components/PinInput/PinInput.js +4 -4
  134. package/lib/typescript/src/components/PinInput/PinInput.js.map +1 -1
  135. package/lib/typescript/src/components/PinInput/PinInputText.d.ts +5 -3
  136. package/lib/typescript/src/components/PinInput/PinInputText.js +2 -2
  137. package/lib/typescript/src/components/PinInput/PinInputText.js.map +1 -1
  138. package/lib/typescript/src/components/Portal/Portal.d.ts +9 -1
  139. package/lib/typescript/src/components/Portal/Portal.js +5 -3
  140. package/lib/typescript/src/components/Portal/Portal.js.map +1 -1
  141. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  142. package/lib/typescript/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  143. package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +3 -1
  144. package/lib/typescript/src/components/Progress/CircularProgress/index.js +1 -1
  145. package/lib/typescript/src/components/Progress/CircularProgress/index.js.map +1 -1
  146. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  147. package/lib/typescript/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  148. package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +3 -1
  149. package/lib/typescript/src/components/Progress/LinearProgress/index.js +1 -1
  150. package/lib/typescript/src/components/Progress/LinearProgress/index.js.map +1 -1
  151. package/lib/typescript/src/components/Progress/ProgressCommon.d.ts +2 -2
  152. package/lib/typescript/src/components/ProgressIndicator.d.ts +13 -10
  153. package/lib/typescript/src/components/ProgressIndicator.js +1 -1
  154. package/lib/typescript/src/components/ProgressIndicator.js.map +1 -1
  155. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +2 -2
  156. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +2 -4
  157. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js +3 -4
  158. package/lib/typescript/src/components/RadioButton/RadioButtonRow.js.map +1 -1
  159. package/lib/typescript/src/components/Row.d.ts +5 -3
  160. package/lib/typescript/src/components/Row.js +1 -1
  161. package/lib/typescript/src/components/Row.js.map +1 -1
  162. package/lib/typescript/src/components/ScreenContainer.d.ts +6 -3
  163. package/lib/typescript/src/components/ScreenContainer.js +2 -3
  164. package/lib/typescript/src/components/ScreenContainer.js.map +1 -1
  165. package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +5 -3
  166. package/lib/typescript/src/components/SectionList/SectionHeader.js +3 -3
  167. package/lib/typescript/src/components/SectionList/SectionHeader.js.map +1 -1
  168. package/lib/typescript/src/components/Slider.d.ts +6 -3
  169. package/lib/typescript/src/components/Slider.js +6 -6
  170. package/lib/typescript/src/components/Slider.js.map +1 -1
  171. package/lib/typescript/src/components/StarRating.d.ts +5 -3
  172. package/lib/typescript/src/components/StarRating.js +1 -1
  173. package/lib/typescript/src/components/StarRating.js.map +1 -1
  174. package/lib/typescript/src/components/Stepper.d.ts +5 -3
  175. package/lib/typescript/src/components/Stepper.js +2 -3
  176. package/lib/typescript/src/components/Stepper.js.map +1 -1
  177. package/lib/typescript/src/components/Surface.d.ts +5 -3
  178. package/lib/typescript/src/components/Surface.js +10 -3
  179. package/lib/typescript/src/components/Surface.js.map +1 -1
  180. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +5 -3
  181. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js +5 -10
  182. package/lib/typescript/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  183. package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -4
  184. package/lib/typescript/src/components/Swiper/Swiper.js +2 -3
  185. package/lib/typescript/src/components/Swiper/Swiper.js.map +1 -1
  186. package/lib/typescript/src/components/Switch.d.ts +24 -7
  187. package/lib/typescript/src/components/Switch.js +4 -3
  188. package/lib/typescript/src/components/Switch.js.map +1 -1
  189. package/lib/typescript/src/components/TabView/TabView.d.ts +5 -3
  190. package/lib/typescript/src/components/TabView/TabView.js +4 -4
  191. package/lib/typescript/src/components/TabView/TabView.js.map +1 -1
  192. package/lib/typescript/src/components/Table/Table.d.ts +5 -3
  193. package/lib/typescript/src/components/Table/Table.js +2 -2
  194. package/lib/typescript/src/components/Table/Table.js.map +1 -1
  195. package/lib/typescript/src/components/Table/TableRow.d.ts +5 -3
  196. package/lib/typescript/src/components/Table/TableRow.js +2 -4
  197. package/lib/typescript/src/components/Table/TableRow.js.map +1 -1
  198. package/lib/typescript/src/components/Text.d.ts +9 -3
  199. package/lib/typescript/src/components/Text.js +2 -2
  200. package/lib/typescript/src/components/Text.js.map +1 -1
  201. package/lib/typescript/src/components/TextField.d.ts +41 -4
  202. package/lib/typescript/src/components/TextField.js +20 -22
  203. package/lib/typescript/src/components/TextField.js.map +1 -1
  204. package/lib/typescript/src/components/TextInput.js +0 -3
  205. package/lib/typescript/src/components/TextInput.js.map +1 -1
  206. package/lib/typescript/src/components/Typography.d.ts +11 -5
  207. package/lib/typescript/src/components/Typography.js +4 -4
  208. package/lib/typescript/src/components/Typography.js.map +1 -1
  209. package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +5 -3
  210. package/lib/typescript/src/deprecated-components/AccordionItem.js +2 -2
  211. package/lib/typescript/src/deprecated-components/AccordionItem.js.map +1 -1
  212. package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +5 -3
  213. package/lib/typescript/src/deprecated-components/AvatarEdit.js +4 -4
  214. package/lib/typescript/src/deprecated-components/AvatarEdit.js.map +1 -1
  215. package/lib/typescript/src/deprecated-components/Banner.d.ts +5 -3
  216. package/lib/typescript/src/deprecated-components/Banner.js +5 -4
  217. package/lib/typescript/src/deprecated-components/Banner.js.map +1 -1
  218. package/lib/typescript/src/deprecated-components/Card.d.ts +18 -6
  219. package/lib/typescript/src/deprecated-components/Card.js +3 -3
  220. package/lib/typescript/src/deprecated-components/Card.js.map +1 -1
  221. package/lib/typescript/src/deprecated-components/CheckboxGroup.d.ts +2 -2
  222. package/lib/typescript/src/deprecated-components/Container.d.ts +5 -3
  223. package/lib/typescript/src/deprecated-components/Container.js +1 -1
  224. package/lib/typescript/src/deprecated-components/Container.js.map +1 -1
  225. package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +5 -3
  226. package/lib/typescript/src/deprecated-components/DeprecatedButton.js +8 -8
  227. package/lib/typescript/src/deprecated-components/DeprecatedButton.js.map +1 -1
  228. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +5 -3
  229. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
  230. package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
  231. package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +5 -3
  232. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js +8 -8
  233. package/lib/typescript/src/deprecated-components/DeprecatedFAB.js.map +1 -1
  234. package/lib/typescript/src/deprecated-components/FAB.d.ts +8 -3
  235. package/lib/typescript/src/deprecated-components/FAB.js +2 -2
  236. package/lib/typescript/src/deprecated-components/FAB.js.map +1 -1
  237. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +5 -3
  238. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js +4 -4
  239. package/lib/typescript/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
  240. package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +8 -5
  241. package/lib/typescript/src/deprecated-components/ProgressCircle.js +3 -3
  242. package/lib/typescript/src/deprecated-components/ProgressCircle.js.map +1 -1
  243. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +3 -1
  244. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
  245. package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
  246. package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +5 -3
  247. package/lib/typescript/src/deprecated-components/RowBodyIcon.js +2 -2
  248. package/lib/typescript/src/deprecated-components/RowBodyIcon.js.map +1 -1
  249. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +5 -3
  250. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
  251. package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
  252. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +5 -3
  253. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
  254. package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
  255. package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +9 -6
  256. package/lib/typescript/src/deprecated-components/ToggleButton.js +5 -5
  257. package/lib/typescript/src/deprecated-components/ToggleButton.js.map +1 -1
  258. package/lib/typescript/src/index.d.ts +2 -0
  259. package/lib/typescript/src/index.js +2 -0
  260. package/lib/typescript/src/index.js.map +1 -1
  261. package/lib/typescript/src/styles/DarkTheme.d.ts +3 -0
  262. package/lib/typescript/src/styles/DarkTheme.js +27 -0
  263. package/lib/typescript/src/styles/DarkTheme.js.map +1 -0
  264. package/lib/typescript/src/styles/DefaultTheme.d.ts +1670 -0
  265. package/lib/typescript/src/styles/DefaultTheme.js +112 -0
  266. package/lib/typescript/src/styles/DefaultTheme.js.map +1 -0
  267. package/lib/typescript/src/styles/fonts.d.ts +5 -0
  268. package/lib/typescript/src/styles/fonts.js +63 -0
  269. package/lib/typescript/src/styles/fonts.js.map +1 -0
  270. package/lib/typescript/src/styles/overlay.d.ts +2 -0
  271. package/lib/typescript/src/styles/overlay.js +61 -0
  272. package/lib/typescript/src/styles/overlay.js.map +1 -0
  273. package/lib/typescript/src/styles/shadow.d.ts +23 -0
  274. package/lib/typescript/src/styles/shadow.js +52 -0
  275. package/lib/typescript/src/styles/shadow.js.map +1 -0
  276. package/lib/typescript/src/theming.d.ts +8 -0
  277. package/lib/typescript/src/theming.js +4 -0
  278. package/lib/typescript/src/theming.js.map +1 -0
  279. package/lib/typescript/tsconfig.tsbuildinfo +1 -1
  280. package/package.json +6 -4
  281. package/src/Provider.js +4 -4
  282. package/src/Provider.js.map +1 -1
  283. package/src/Provider.tsx +12 -15
  284. package/src/components/AccordionGroup.js +3 -3
  285. package/src/components/AccordionGroup.js.map +1 -1
  286. package/src/components/AccordionGroup.tsx +5 -5
  287. package/src/components/BottomSheet/BottomSheet.js +4 -4
  288. package/src/components/BottomSheet/BottomSheet.js.map +1 -1
  289. package/src/components/BottomSheet/BottomSheet.tsx +7 -7
  290. package/src/components/Button.js +10 -11
  291. package/src/components/Button.js.map +1 -1
  292. package/src/components/Button.tsx +24 -12
  293. package/src/components/Checkbox/Checkbox.js +3 -3
  294. package/src/components/Checkbox/Checkbox.js.map +1 -1
  295. package/src/components/Checkbox/Checkbox.tsx +3 -3
  296. package/src/components/Checkbox/CheckboxRow.js +3 -4
  297. package/src/components/Checkbox/CheckboxRow.js.map +1 -1
  298. package/src/components/Checkbox/CheckboxRow.tsx +2 -9
  299. package/src/components/DatePicker/DatePicker.js +23 -24
  300. package/src/components/DatePicker/DatePicker.js.map +1 -1
  301. package/src/components/DatePicker/DatePicker.tsx +24 -25
  302. package/src/components/DatePicker/DatePickerComponent.web.js +6 -8
  303. package/src/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  304. package/src/components/DatePicker/DatePickerComponent.web.tsx +8 -15
  305. package/src/components/DatePicker/DatePickerComponentType.ts +3 -2
  306. package/src/components/DeckSwiper/DeckSwiperCard.js +3 -3
  307. package/src/components/DeckSwiper/DeckSwiperCard.js.map +1 -1
  308. package/src/components/DeckSwiper/DeckSwiperCard.tsx +5 -5
  309. package/src/components/Divider.js +2 -2
  310. package/src/components/Divider.js.map +1 -1
  311. package/src/components/Divider.tsx +4 -4
  312. package/src/components/Elevation.js +4 -3
  313. package/src/components/Elevation.js.map +1 -1
  314. package/src/components/Elevation.tsx +6 -5
  315. package/src/components/FormRow.js.map +1 -1
  316. package/src/components/FormRow.tsx +2 -1
  317. package/src/components/IconButton.js +2 -2
  318. package/src/components/IconButton.js.map +1 -1
  319. package/src/components/IconButton.tsx +4 -4
  320. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerCommon.ts +2 -0
  321. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js +13 -10
  322. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.js.map +1 -1
  323. package/src/components/MediaPlayer/AudioPlayer/AudioPlayerWithInterface.tsx +19 -19
  324. package/src/components/MediaPlayer/AudioPlayer/index.js +3 -1
  325. package/src/components/MediaPlayer/AudioPlayer/index.js.map +1 -1
  326. package/src/components/MediaPlayer/AudioPlayer/index.tsx +3 -1
  327. package/src/components/Picker/NativePicker.js +2 -5
  328. package/src/components/Picker/NativePicker.js.map +1 -1
  329. package/src/components/Picker/NativePicker.tsx +2 -5
  330. package/src/components/Picker/PickerCommon.js +11 -0
  331. package/src/components/Picker/PickerCommon.js.map +1 -1
  332. package/src/components/Picker/PickerCommon.ts +24 -2
  333. package/src/components/Picker/dropdown/DropDownModalPicker.js +70 -0
  334. package/src/components/Picker/dropdown/DropDownModalPicker.js.map +1 -0
  335. package/src/components/Picker/dropdown/DropDownModalPicker.tsx +155 -0
  336. package/src/components/Picker/dropdown/DropDownPicker.js +5 -11
  337. package/src/components/Picker/dropdown/DropDownPicker.js.map +1 -1
  338. package/src/components/Picker/dropdown/DropDownPicker.tsx +8 -21
  339. package/src/components/Picker/dropdown/MultiSelectPicker.js +1 -1
  340. package/src/components/Picker/dropdown/MultiSelectPicker.js.map +1 -1
  341. package/src/components/Picker/dropdown/MultiSelectPicker.tsx +1 -1
  342. package/src/components/Picker/index.js +5 -1
  343. package/src/components/Picker/index.js.map +1 -1
  344. package/src/components/Picker/index.tsx +15 -4
  345. package/src/components/PinInput/PinInput.js +4 -4
  346. package/src/components/PinInput/PinInput.js.map +1 -1
  347. package/src/components/PinInput/PinInput.tsx +6 -6
  348. package/src/components/PinInput/PinInputText.js +2 -2
  349. package/src/components/PinInput/PinInputText.js.map +1 -1
  350. package/src/components/PinInput/PinInputText.tsx +4 -4
  351. package/src/components/Portal/Portal.js +5 -3
  352. package/src/components/Portal/Portal.js.map +1 -1
  353. package/src/components/Portal/Portal.tsx +10 -3
  354. package/src/components/Progress/CircularProgress/CircularProgress.js +1 -1
  355. package/src/components/Progress/CircularProgress/CircularProgress.js.map +1 -1
  356. package/src/components/Progress/CircularProgress/CircularProgress.tsx +2 -2
  357. package/src/components/Progress/CircularProgress/index.js +1 -1
  358. package/src/components/Progress/CircularProgress/index.js.map +1 -1
  359. package/src/components/Progress/CircularProgress/index.tsx +1 -1
  360. package/src/components/Progress/LinearProgress/LinearProgress.js +1 -1
  361. package/src/components/Progress/LinearProgress/LinearProgress.js.map +1 -1
  362. package/src/components/Progress/LinearProgress/LinearProgress.tsx +2 -2
  363. package/src/components/Progress/LinearProgress/index.js +1 -1
  364. package/src/components/Progress/LinearProgress/index.js.map +1 -1
  365. package/src/components/Progress/LinearProgress/index.tsx +1 -1
  366. package/src/components/Progress/ProgressCommon.ts +2 -2
  367. package/src/components/ProgressIndicator.js +1 -1
  368. package/src/components/ProgressIndicator.js.map +1 -1
  369. package/src/components/ProgressIndicator.tsx +11 -10
  370. package/src/components/RadioButton/RadioButtonGroup.tsx +2 -2
  371. package/src/components/RadioButton/RadioButtonRow.js +3 -4
  372. package/src/components/RadioButton/RadioButtonRow.js.map +1 -1
  373. package/src/components/RadioButton/RadioButtonRow.tsx +2 -9
  374. package/src/components/Row.js +1 -1
  375. package/src/components/Row.js.map +1 -1
  376. package/src/components/Row.tsx +3 -3
  377. package/src/components/ScreenContainer.js +2 -3
  378. package/src/components/ScreenContainer.js.map +1 -1
  379. package/src/components/ScreenContainer.tsx +4 -5
  380. package/src/components/SectionList/SectionHeader.js +3 -3
  381. package/src/components/SectionList/SectionHeader.js.map +1 -1
  382. package/src/components/SectionList/SectionHeader.tsx +5 -5
  383. package/src/components/Slider.js +6 -6
  384. package/src/components/Slider.js.map +1 -1
  385. package/src/components/Slider.tsx +8 -8
  386. package/src/components/StarRating.js +1 -1
  387. package/src/components/StarRating.js.map +1 -1
  388. package/src/components/StarRating.tsx +3 -3
  389. package/src/components/Stepper.js +2 -3
  390. package/src/components/Stepper.js.map +1 -1
  391. package/src/components/Stepper.tsx +4 -5
  392. package/src/components/Surface.js +10 -3
  393. package/src/components/Surface.js.map +1 -1
  394. package/src/components/Surface.tsx +12 -5
  395. package/src/components/SwipeableItem/SwipeableItem.js +5 -10
  396. package/src/components/SwipeableItem/SwipeableItem.js.map +1 -1
  397. package/src/components/SwipeableItem/SwipeableItem.tsx +7 -13
  398. package/src/components/Swiper/Swiper.js +2 -3
  399. package/src/components/Swiper/Swiper.js.map +1 -1
  400. package/src/components/Swiper/Swiper.tsx +3 -6
  401. package/src/components/Switch.js +4 -3
  402. package/src/components/Switch.js.map +1 -1
  403. package/src/components/Switch.tsx +7 -7
  404. package/src/components/TabView/TabView.js +4 -4
  405. package/src/components/TabView/TabView.js.map +1 -1
  406. package/src/components/TabView/TabView.tsx +7 -7
  407. package/src/components/Table/Table.js +2 -2
  408. package/src/components/Table/Table.js.map +1 -1
  409. package/src/components/Table/Table.tsx +4 -4
  410. package/src/components/Table/TableRow.js +2 -4
  411. package/src/components/Table/TableRow.js.map +1 -1
  412. package/src/components/Table/TableRow.tsx +4 -6
  413. package/src/components/Text.js +2 -2
  414. package/src/components/Text.js.map +1 -1
  415. package/src/components/Text.tsx +4 -4
  416. package/src/components/TextField.js +20 -22
  417. package/src/components/TextField.js.map +1 -1
  418. package/src/components/TextField.tsx +23 -26
  419. package/src/components/TextInput.js +0 -3
  420. package/src/components/TextInput.js.map +1 -1
  421. package/src/components/TextInput.tsx +0 -3
  422. package/src/components/Typography.js +4 -4
  423. package/src/components/Typography.js.map +1 -1
  424. package/src/components/Typography.tsx +6 -6
  425. package/src/deprecated-components/AccordionItem.js +2 -2
  426. package/src/deprecated-components/AccordionItem.js.map +1 -1
  427. package/src/deprecated-components/AccordionItem.tsx +4 -4
  428. package/src/deprecated-components/AvatarEdit.js +4 -4
  429. package/src/deprecated-components/AvatarEdit.js.map +1 -1
  430. package/src/deprecated-components/AvatarEdit.tsx +6 -6
  431. package/src/deprecated-components/Banner.js +5 -4
  432. package/src/deprecated-components/Banner.js.map +1 -1
  433. package/src/deprecated-components/Banner.tsx +10 -6
  434. package/src/deprecated-components/Card.js +3 -3
  435. package/src/deprecated-components/Card.js.map +1 -1
  436. package/src/deprecated-components/Card.tsx +6 -10
  437. package/src/deprecated-components/CheckboxGroup.tsx +2 -2
  438. package/src/deprecated-components/Container.js +1 -1
  439. package/src/deprecated-components/Container.js.map +1 -1
  440. package/src/deprecated-components/Container.tsx +3 -3
  441. package/src/deprecated-components/DeprecatedButton.js +8 -8
  442. package/src/deprecated-components/DeprecatedButton.js.map +1 -1
  443. package/src/deprecated-components/DeprecatedButton.tsx +10 -10
  444. package/src/deprecated-components/DeprecatedCardWrapper.js +1 -1
  445. package/src/deprecated-components/DeprecatedCardWrapper.js.map +1 -1
  446. package/src/deprecated-components/DeprecatedCardWrapper.tsx +3 -3
  447. package/src/deprecated-components/DeprecatedFAB.js +8 -8
  448. package/src/deprecated-components/DeprecatedFAB.js.map +1 -1
  449. package/src/deprecated-components/DeprecatedFAB.tsx +10 -10
  450. package/src/deprecated-components/FAB.js +2 -2
  451. package/src/deprecated-components/FAB.js.map +1 -1
  452. package/src/deprecated-components/FAB.tsx +4 -4
  453. package/src/deprecated-components/FieldSearchBarFull.js +4 -4
  454. package/src/deprecated-components/FieldSearchBarFull.js.map +1 -1
  455. package/src/deprecated-components/FieldSearchBarFull.tsx +6 -6
  456. package/src/deprecated-components/ProgressCircle.js +3 -3
  457. package/src/deprecated-components/ProgressCircle.js.map +1 -1
  458. package/src/deprecated-components/ProgressCircle.tsx +8 -7
  459. package/src/deprecated-components/RadioButtonFieldGroup.js +1 -1
  460. package/src/deprecated-components/RadioButtonFieldGroup.js.map +1 -1
  461. package/src/deprecated-components/RadioButtonFieldGroup.tsx +1 -1
  462. package/src/deprecated-components/RowBodyIcon.js +2 -2
  463. package/src/deprecated-components/RowBodyIcon.js.map +1 -1
  464. package/src/deprecated-components/RowBodyIcon.tsx +6 -6
  465. package/src/deprecated-components/RowHeadlineImageCaption.js +3 -3
  466. package/src/deprecated-components/RowHeadlineImageCaption.js.map +1 -1
  467. package/src/deprecated-components/RowHeadlineImageCaption.tsx +6 -6
  468. package/src/deprecated-components/RowHeadlineImageIcon.js +3 -3
  469. package/src/deprecated-components/RowHeadlineImageIcon.js.map +1 -1
  470. package/src/deprecated-components/RowHeadlineImageIcon.tsx +6 -6
  471. package/src/deprecated-components/ToggleButton.js +5 -5
  472. package/src/deprecated-components/ToggleButton.js.map +1 -1
  473. package/src/deprecated-components/ToggleButton.tsx +11 -12
  474. package/src/index.js +2 -0
  475. package/src/index.js.map +1 -1
  476. package/src/index.tsx +2 -0
  477. package/src/styles/DarkTheme.js +27 -0
  478. package/src/styles/DarkTheme.js.map +1 -0
  479. package/src/styles/DarkTheme.tsx +30 -0
  480. package/src/styles/DefaultTheme.js +112 -0
  481. package/src/styles/DefaultTheme.js.map +1 -0
  482. package/src/styles/DefaultTheme.tsx +114 -0
  483. package/src/styles/fonts.js +63 -0
  484. package/src/styles/fonts.js.map +1 -0
  485. package/src/styles/fonts.tsx +67 -0
  486. package/src/styles/overlay.js +61 -0
  487. package/src/styles/overlay.js.map +1 -0
  488. package/src/styles/overlay.tsx +69 -0
  489. package/src/styles/shadow.js +52 -0
  490. package/src/styles/shadow.js.map +1 -0
  491. package/src/styles/shadow.tsx +55 -0
  492. package/src/theming.js +4 -0
  493. package/src/theming.js.map +1 -0
  494. package/src/theming.tsx +6 -0
@@ -0,0 +1,70 @@
1
+ import * as React from "react";
2
+ import { View, Text, Keyboard } from "react-native";
3
+ import { extractStyles, useDeepCompareMemo } from "../../../utilities";
4
+ import { normalizeToPickerOptions, usePickerItemProps, } from "../PickerCommon";
5
+ import PickerInputContainer from "../PickerInputContainer";
6
+ import ModalPickerComponent from "react-native-select-dropdown";
7
+ import { withTheme } from "../../../theming";
8
+ import { useOnUpdate } from "../../../hooks";
9
+ const ModalPicker = ({ theme, options: optionsProp = [], onValueChange, Icon, placeholder, value, autoDismissKeyboard = true, selectedIconName = "Feather/check", selectedIconColor = theme.colors.strong, selectedIconSize = 20, dropDownBackgroundColor = theme.colors.background, dropDownBorderColor = theme.colors.divider, dropDownTextColor = theme.colors.strong, dropDownBorderWidth = 1, dropDownBorderRadius = 8, children: childrenProp, disabled, dropdownOverlayColor, ...rest }) => {
10
+ const dropdownRef = React.useRef();
11
+ const [internalValue, setInternalValue] = React.useState(value);
12
+ const pickerItemProps = usePickerItemProps(childrenProp);
13
+ const { viewStyles: pickerItemViewStyles, textStyles: pickerItemTextStyles } = extractStyles(pickerItemProps.style);
14
+ const options = useDeepCompareMemo(() => normalizeToPickerOptions(optionsProp).map((option) => ({
15
+ label: option.label.toString(),
16
+ value: option.value,
17
+ })), [optionsProp]);
18
+ useOnUpdate(() => {
19
+ onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(internalValue !== null && internalValue !== void 0 ? internalValue : "");
20
+ // onValueChange excluded to prevent running on every re-render when using an anoymous function, which is the common case
21
+ }, [internalValue]);
22
+ return (React.createElement(PickerInputContainer, { testID: "dropdown-modal-picker", Icon: Icon, placeholder: placeholder, selectedValue: value, options: options, onPress: () => {
23
+ var _a;
24
+ (_a = dropdownRef.current) === null || _a === void 0 ? void 0 : _a.openDropdown();
25
+ if (autoDismissKeyboard) {
26
+ Keyboard.dismiss();
27
+ }
28
+ }, disabled: disabled, ...rest },
29
+ React.createElement(ModalPickerComponent, { ref: dropdownRef, data: options, defaultValue: internalValue, onSelect: (selectedItem) => {
30
+ setInternalValue(selectedItem.value);
31
+ }, renderButton: () => {
32
+ return React.createElement(React.Fragment, null);
33
+ }, renderItem: (item, _, isSelected) => {
34
+ var _a, _b, _c;
35
+ const backgroundColor = isSelected
36
+ ? (_a = pickerItemProps.selectedBackgroundColor) !== null && _a !== void 0 ? _a : pickerItemViewStyles.backgroundColor
37
+ : pickerItemViewStyles.backgroundColor;
38
+ const textColor = isSelected
39
+ ? (_b = pickerItemProps.selectedTextColor) !== null && _b !== void 0 ? _b : dropDownTextColor
40
+ : dropDownTextColor;
41
+ const textSize = isSelected
42
+ ? (_c = pickerItemProps.selectedTextSize) !== null && _c !== void 0 ? _c : 14
43
+ : 14;
44
+ return (React.createElement(View, { style: [
45
+ {
46
+ padding: 10,
47
+ flexDirection: "row",
48
+ alignItems: "center",
49
+ backgroundColor: backgroundColor,
50
+ },
51
+ pickerItemViewStyles,
52
+ ] },
53
+ React.createElement(Text, { style: [
54
+ {
55
+ color: textColor,
56
+ fontSize: textSize,
57
+ flex: 1,
58
+ },
59
+ pickerItemTextStyles,
60
+ ] }, item.label),
61
+ isSelected ? (React.createElement(Icon, { name: selectedIconName, size: selectedIconSize, color: selectedIconColor })) : null));
62
+ }, showsVerticalScrollIndicator: false, dropdownOverlayColor: dropdownOverlayColor, dropdownStyle: {
63
+ borderColor: dropDownBorderColor,
64
+ borderWidth: dropDownBorderWidth,
65
+ borderRadius: dropDownBorderRadius,
66
+ backgroundColor: dropDownBackgroundColor,
67
+ }, disableAutoScroll: true, statusBarTranslucent: true })));
68
+ };
69
+ export default withTheme(ModalPicker);
70
+ //# sourceMappingURL=DropDownModalPicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropDownModalPicker.js","sourceRoot":"","sources":["../../../../../../src/components/Picker/dropdown/DropDownModalPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAIL,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,WAAW,GAIb,CAAC,EACH,KAAK,EACL,OAAO,EAAE,WAAW,GAAG,EAAE,EACzB,aAAa,EACb,IAAI,EACJ,WAAW,EACX,KAAK,EACL,mBAAmB,GAAG,IAAI,EAC1B,gBAAgB,GAAG,eAAe,EAClC,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EACvC,gBAAgB,GAAG,EAAE,EACrB,uBAAuB,GAAG,KAAK,CAAC,MAAM,CAAC,UAAU,EACjD,mBAAmB,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,EAC1C,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EACvC,mBAAmB,GAAG,CAAC,EACvB,oBAAoB,GAAG,CAAC,EACxB,QAAQ,EAAE,YAAY,EACt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AAC,IAAI,CACH,CACR,CAAC;YACJ,CAAC,EACD,4BAA4B,EAAE,KAAK,EACnC,oBAAoB,EAAE,oBAAoB,EAC1C,aAAa,EAAE;gBACb,WAAW,EAAE,mBAAmB;gBAChC,WAAW,EAAE,mBAAmB;gBAChC,YAAY,EAAE,oBAAoB;gBAClC,eAAe,EAAE,uBAAuB;aACzC,EACD,iBAAiB,QACjB,oBAAoB,SACpB,CACmB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,WAAW,CAAC,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { CommonDropDownPickerProps, MultiSelectPickerProps, SinglePickerProps } from "../PickerCommon";
3
- declare const _default: React.ComponentType<Omit<React.PropsWithChildren<CommonDropDownPickerProps & (SinglePickerProps | MultiSelectPickerProps)>, "theme">>;
3
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<CommonDropDownPickerProps & (SinglePickerProps | MultiSelectPickerProps)>, "theme"> & {
4
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
5
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<CommonDropDownPickerProps & (SinglePickerProps | MultiSelectPickerProps)>> & React.FC<React.PropsWithChildren<CommonDropDownPickerProps & (SinglePickerProps | MultiSelectPickerProps)>>, {}>;
4
6
  export default _default;
@@ -1,22 +1,16 @@
1
1
  import * as React from "react";
2
2
  import { Keyboard } from "react-native";
3
- import { extractStyles, flattenReactFragments, useDeepCompareMemo, } from "../../../utilities";
4
- import { normalizeToPickerOptions, } from "../PickerCommon";
3
+ import { extractStyles, useDeepCompareMemo } from "../../../utilities";
4
+ import { normalizeToPickerOptions, usePickerItemProps, } from "../PickerCommon";
5
5
  import PickerInputContainer from "../PickerInputContainer";
6
6
  import DropDownPickerComponent from "react-native-dropdown-picker";
7
- import { withTheme } from "@draftbit/theme";
8
- import PickerItem from "./PickerItem";
7
+ import { withTheme } from "../../../theming";
9
8
  import { useOnUpdate } from "../../../hooks";
10
- const DropDownPicker = ({ theme, options: optionsProp = [], onValueChange, Icon, placeholder, value, autoDismissKeyboard = true, selectedIconName = "Feather/check", selectedIconColor = theme.colors.text.strong, selectedIconSize = 20, dropDownBackgroundColor = theme.colors.background.brand, dropDownBorderColor = theme.colors.border.brand, dropDownTextColor = theme.colors.text.strong, dropDownBorderWidth = 1, dropDownBorderRadius = 8, children: childrenProp, disabled, ...rest }) => {
9
+ const DropDownPicker = ({ theme, options: optionsProp = [], onValueChange, Icon, placeholder, value, autoDismissKeyboard = true, selectedIconName = "Feather/check", selectedIconColor = theme.colors.strong, selectedIconSize = 20, dropDownBackgroundColor = theme.colors.background, dropDownBorderColor = theme.colors.divider, dropDownTextColor = theme.colors.strong, dropDownBorderWidth = 1, dropDownBorderRadius = 8, children: childrenProp, disabled, ...rest }) => {
11
10
  const [pickerVisible, setPickerVisible] = React.useState(false);
12
11
  const [internalValue, setInternalValue] = React.useState(value);
13
12
  const isMultiSelect = Array.isArray(value);
14
- const pickerItemProps = React.useMemo(() => {
15
- const children = flattenReactFragments(React.Children.toArray(childrenProp));
16
- // Only the props of the first PickerItem are used, any others are ignored
17
- const firstPickerItem = children.find((child) => child.type === PickerItem);
18
- return (firstPickerItem === null || firstPickerItem === void 0 ? void 0 : firstPickerItem.props) || {};
19
- }, [childrenProp]);
13
+ const pickerItemProps = usePickerItemProps(childrenProp);
20
14
  const { viewStyles: pickerItemViewStyles, textStyles: pickerItemTextStyles } = extractStyles(pickerItemProps.style);
21
15
  const options = useDeepCompareMemo(() => normalizeToPickerOptions(optionsProp).map((option) => ({
22
16
  label: option.label.toString(),
@@ -1 +1 @@
1
- {"version":3,"file":"DropDownPicker.js","sourceRoot":"","sources":["../../../../../../src/components/Picker/dropdown/DropDownPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO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CAAC,EAAE;aACP,EACD,sBAAsB,EAAE,oBAAoB,EAC5C,0BAA0B,EACxB,eAAe,CAAC,uBAAuB;gBACrC,CAAC,CAAC;oBACE,eAAe,EAAE,eAAe,CAAC,uBAAuB;iBACzD;gBACH,CAAC,CAAC,EAAE,EAER,sBAAsB,EAAE;gBACtB,WAAW,EAAE,mBAAmB;gBAChC,WAAW,EAAE,mBAAmB;gBAChC,YAAY,EAAE,oBAAoB;gBAClC,eAAe,EAAE,uBAAuB;aACzC,EACD,iBAAiB,EAAE,GAAG,EAAE,CAAC,CACvB,oBAAC,IAAI,IACH,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,iBAAiB,GACxB,CACH,GACD,CACmB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"DropDownPicker.js","sourceRoot":"","sources":["../../../../../../src/components/Picker/dropdown/DropDownPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAIL,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,cAAc,GAIhB,CAAC,EACH,KAAK,EACL,OAAO,EAAE,WAAW,GAAG,EAAE,EACzB,aAAa,EACb,IAAI,EACJ,WAAW,EACX,KAAK,EACL,mBAAmB,GAAG,IAAI,EAC1B,gBAAgB,GAAG,eAAe,EAClC,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AAE;gBACtB,eAAe,CAAC,iBAAiB;oBAC/B,CAAC,CAAC;wBACE,KAAK,EAAE,eAAe,CAAC,iBAAiB;qBACzC;oBACH,CAAC,CAAC,EAAE;gBACN,eAAe,CAAC,gBAAgB;oBAC9B,CAAC,CAAC;wBACE,QAAQ,EAAE,eAAe,CAAC,gBAAgB;qBAC3C;oBACH,CAAC,CAAC,EAAE;aACP,EACD,sBAAsB,EAAE,oBAAoB,EAC5C,0BAA0B,EACxB,eAAe,CAAC,uBAAuB;gBACrC,CAAC,CAAC;oBACE,eAAe,EAAE,eAAe,CAAC,uBAAuB;iBACzD;gBACH,CAAC,CAAC,EAAE,EAER,sBAAsB,EAAE;gBACtB,WAAW,EAAE,mBAAmB;gBAChC,WAAW,EAAE,mBAAmB;gBAChC,YAAY,EAAE,oBAAoB;gBAClC,eAAe,EAAE,uBAAuB;aACzC,EACD,iBAAiB,EAAE,GAAG,EAAE,CAAC,CACvB,oBAAC,IAAI,IACH,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,gBAAgB,EACtB,KAAK,EAAE,iBAAiB,GACxB,CACH,GACD,CACmB,CACxB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,cAAc,CAAC,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { CommonDropDownPickerProps, MultiSelectPickerProps } from "../PickerCommon";
3
- declare const _default: React.ComponentType<Omit<React.PropsWithChildren<CommonDropDownPickerProps & MultiSelectPickerProps>, "theme">>;
3
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<CommonDropDownPickerProps & MultiSelectPickerProps>, "theme"> & {
4
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
5
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<CommonDropDownPickerProps & MultiSelectPickerProps>> & React.FC<React.PropsWithChildren<CommonDropDownPickerProps & MultiSelectPickerProps>>, {}>;
4
6
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import DropDownPicker from "./DropDownPicker";
3
- import { withTheme } from "@draftbit/theme";
3
+ import { withTheme } from "../../../theming";
4
4
  const MultiSelectPicker = ({ value, ...rest }) => {
5
5
  //@ts-ignore Ignore theme type issues
6
6
  return React.createElement(DropDownPicker, { value: value || [], ...rest });
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectPicker.js","sourceRoot":"","sources":["../../../../../../src/components/Picker/dropdown/MultiSelectPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,iBAAiB,GAEnB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzB,qCAAqC;IACrC,OAAO,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,IAAI,EAAE,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"MultiSelectPicker.js","sourceRoot":"","sources":["../../../../../../src/components/Picker/dropdown/MultiSelectPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,iBAAiB,GAEnB,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IACzB,qCAAqC;IACrC,OAAO,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,IAAI,EAAE,KAAM,IAAI,GAAI,CAAC;AAC1D,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
- import { CommonDropDownPickerProps, SinglePickerProps } from "./PickerCommon";
3
- interface PickerProps extends CommonDropDownPickerProps, SinglePickerProps {
4
- mode?: "native" | "dropdown";
2
+ import { CommonDropDownPickerProps, DropDownModalPickerProps, SinglePickerProps } from "./PickerCommon";
3
+ interface PickerProps extends CommonDropDownPickerProps, SinglePickerProps, DropDownModalPickerProps {
4
+ mode?: "native" | "dropdown" | "dropdown-modal";
5
5
  }
6
- export declare const Picker: React.ComponentType<Omit<React.PropsWithChildren<PickerProps>, "theme">>;
6
+ export declare const Picker: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<PickerProps>, "theme"> & {
7
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
8
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<PickerProps>> & React.FC<React.PropsWithChildren<PickerProps>>, {}>;
7
9
  export { default as MultiSelectPicker } from "./dropdown/MultiSelectPicker";
8
10
  export { default as PickerItem } from "./dropdown/PickerItem";
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import NativePicker from "./NativePicker";
3
3
  import DropDownPicker from "./dropdown/DropDownPicker";
4
- import { withTheme } from "@draftbit/theme";
4
+ import DropDownModalPicker from "./dropdown/DropDownModalPicker";
5
+ import { withTheme } from "../../theming";
5
6
  const SinglePicker = ({ mode = "native", ...rest }) => {
6
7
  switch (mode) {
7
8
  case "native":
@@ -10,6 +11,9 @@ const SinglePicker = ({ mode = "native", ...rest }) => {
10
11
  case "dropdown":
11
12
  //@ts-ignore
12
13
  return React.createElement(DropDownPicker, { ...rest });
14
+ case "dropdown-modal":
15
+ //@ts-ignore
16
+ return React.createElement(DropDownModalPicker, { ...rest });
13
17
  }
14
18
  };
15
19
  export const Picker = withTheme(SinglePicker);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Picker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAM5C,MAAM,YAAY,GAAmD,CAAC,EACpE,IAAI,GAAG,QAAQ,EACf,GAAG,IAAI,EACR,EAAE,EAAE;IACH,QAAQ,IAAI,EAAE;QACZ,KAAK,QAAQ;YACX,qCAAqC;YACrC,OAAO,oBAAC,YAAY,OAAK,IAAI,GAAI,CAAC;QACpC,KAAK,UAAU;YACb,YAAY;YACZ,OAAO,oBAAC,cAAc,OAAK,IAAI,GAAI,CAAC;KACvC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Picker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAS1C,MAAM,YAAY,GAAmD,CAAC,EACpE,IAAI,GAAG,QAAQ,EACf,GAAG,IAAI,EACR,EAAE,EAAE;IACH,QAAQ,IAAI,EAAE;QACZ,KAAK,QAAQ;YACX,qCAAqC;YACrC,OAAO,oBAAC,YAAY,OAAK,IAAI,GAAI,CAAC;QACpC,KAAK,UAAU;YACb,YAAY;YACZ,OAAO,oBAAC,cAAc,OAAK,IAAI,GAAI,CAAC;QACtC,KAAK,gBAAgB;YACnB,YAAY;YACZ,OAAO,oBAAC,mBAAmB,OAAK,IAAI,GAAI,CAAC;KAC5C;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { StyleProp, ViewStyle, TextStyle, TextInput as NativeTextInput } from "react-native";
3
3
  import { TextInputProps } from "../TextInput";
4
- import type { ReadTheme } from "@draftbit/theme";
4
+ import type { Theme } from "../../styles/DefaultTheme";
5
5
  interface CellItem {
6
6
  cellValue: string;
7
7
  index: number;
@@ -18,7 +18,9 @@ interface PinInputProps extends TextInputProps {
18
18
  focusedBorderWidth?: number;
19
19
  focusedTextColor?: string;
20
20
  style?: StyleProp<ViewStyle | TextStyle>;
21
- theme: ReadTheme;
21
+ theme: Theme;
22
22
  }
23
- declare const _default: React.ComponentType<Omit<PinInputProps & React.RefAttributes<NativeTextInput>, "theme">>;
23
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<PinInputProps & React.RefAttributes<NativeTextInput>, "theme"> & {
24
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
25
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<PinInputProps & React.RefAttributes<NativeTextInput>> & React.ForwardRefExoticComponent<PinInputProps & React.RefAttributes<NativeTextInput>>, {}>;
24
26
  export default _default;
@@ -2,10 +2,10 @@ import React from "react";
2
2
  import { View, StyleSheet, Platform, } from "react-native";
3
3
  import TextInput from "../TextInput";
4
4
  import { CodeField, useClearByFocusCell, } from "react-native-confirmation-code-field";
5
- import { withTheme } from "@draftbit/theme";
5
+ import { withTheme } from "../../theming";
6
6
  import PinInputText from "./PinInputText";
7
7
  import { extractStyles } from "../../utilities";
8
- const PinInput = React.forwardRef(({ theme, onInputFull, cellCount = 4, clearOnCellFocus = true, blurOnFull = true, renderItem, value, onChangeText, focusedBorderColor = theme.colors.branding.primary, focusedBackgroundColor, focusedBorderWidth, focusedTextColor, secureTextEntry, style, ...rest }, ref) => {
8
+ const PinInput = React.forwardRef(({ theme, onInputFull, cellCount = 4, clearOnCellFocus = true, blurOnFull = true, renderItem, value, onChangeText, focusedBorderColor = theme.colors.primary, focusedBackgroundColor, focusedBorderWidth, focusedTextColor, secureTextEntry, style, ...rest }, ref) => {
9
9
  const newPinInputRef = React.useRef(null);
10
10
  // Use the provided ref or default to new ref when not provided
11
11
  const pinInputRef = ref
@@ -33,7 +33,7 @@ const PinInput = React.forwardRef(({ theme, onInputFull, cellCount = 4, clearOnC
33
33
  }
34
34
  const cell = (renderItem === null || renderItem === void 0 ? void 0 : renderItem({ cellValue, index, isFocused })) || (React.createElement(View, { testID: "default-code-input-cell", style: [
35
35
  styles.cell,
36
- { borderColor: theme.colors.border.brand },
36
+ { borderColor: theme.colors.disabled },
37
37
  viewStyles,
38
38
  isFocused && focusedBorderWidth
39
39
  ? { borderWidth: focusedBorderWidth }
@@ -47,7 +47,7 @@ const PinInput = React.forwardRef(({ theme, onInputFull, cellCount = 4, clearOnC
47
47
  ] },
48
48
  React.createElement(PinInputText, { style: [
49
49
  styles.cellText,
50
- { color: theme.colors.text.strong },
50
+ { color: theme.colors.strong },
51
51
  textStyles,
52
52
  isFocused && focusedTextColor
53
53
  ? { color: focusedTextColor }
@@ -1 +1 @@
1
- {"version":3,"file":"PinInput.js","sourceRoot":"","sources":["../../../../../src/components/PinInput/PinInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,SAA6B,MAA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QACd,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,CAAC;QACd,IAAI,EAAE,CAAC;KACR;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"PinInput.js","sourceRoot":"","sources":["../../../../../src/components/PinInput/PinInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKL,IAAI,EACJ,UAAU,EACV,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,SAA6B,MAAM,cAAc,CAAC;AACzD,OAAO,EACL,SAAS,EACT,mBAAmB,GACpB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAsBhD,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CACE,EACE,KAAK,EACL,WAAW,EACX,SAAS,GAAG,CAAC,EACb,gBAAgB,GAAG,IAAI,EACvB,UAAU,GAAG,IAAI,EACjB,UAAU,EACV,KAAK,EACL,YAAY,EACZ,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,EACzC,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,KAAK,EACL,GAAG,IAAI,EACR,EACD,GAAG,EACH,EAAE;IACF,MAAM,cAAc,GAAG,KAAK,CAAC,MAAM,CAAkB,IAAI,CAAC,CAAC;IAE3D,+DAA+D;IAC/D,MAAM,WAAW,GAAG,GAAG;QACrB,CAAC,CAAE,GAAwC;QAC3C,CAAC,CAAC,cAAc,CAAC;IAEnB,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,KAAK,CAAC,CAA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AAE,SAAS,CAAC,CACzB,CAClB,EACD,eAAe,EAAE,eAAe,KAC5B,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,cAAc,EAAE,QAAQ;KACzB;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC;QACb,WAAW,EAAE,CAAC;QACd,OAAO,EAAE,CAAC;QACV,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,WAAW,EAAE,CAAC;QACd,QAAQ,EAAE,EAAE;QACZ,SAAS,EAAE,EAAE;QACb,WAAW,EAAE,CAAC;QACd,IAAI,EAAE,CAAC;KACR;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,EAAE;KACb;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC,QAAQ,CAAC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import React from "react";
2
2
  import { TextProps } from "react-native";
3
- import type { ReadTheme } from "@draftbit/theme";
3
+ import type { Theme } from "../../styles/DefaultTheme";
4
4
  interface CustomPinInputTextProps extends TextProps {
5
5
  cursorBlinkDuration?: number;
6
6
  cursorText?: string;
7
7
  isFocused?: boolean;
8
- theme: ReadTheme;
8
+ theme: Theme;
9
9
  }
10
- declare const _default: React.ComponentType<Omit<CustomPinInputTextProps, "theme">>;
10
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<CustomPinInputTextProps, "theme"> & {
11
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
12
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<CustomPinInputTextProps> & React.FC<CustomPinInputTextProps>, {}>;
11
13
  export default _default;
@@ -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":["../../../../../src/components/PinInput/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":["../../../../../src/components/PinInput/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,10 +1,15 @@
1
1
  import * as React from "react";
2
2
  import PortalHost from "./PortalHost";
3
+ import type { Theme } from "../../styles/DefaultTheme";
3
4
  declare type Props = {
4
5
  /**
5
6
  * Content of the `Portal`.
6
7
  */
7
8
  children: React.ReactNode;
9
+ /**
10
+ * @optional
11
+ */
12
+ theme: Theme;
8
13
  };
9
14
  /**
10
15
  * Portal allows to render a component at a different place in the parent tree.
@@ -31,4 +36,7 @@ declare class Portal extends React.Component<Props> {
31
36
  static Host: typeof PortalHost;
32
37
  render(): React.JSX.Element;
33
38
  }
34
- export default Portal;
39
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<Props, "theme"> & {
40
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
41
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<Props> & typeof Portal, {}>;
42
+ export default _default;
@@ -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":["../../../../../src/components/Portal/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":["../../../../../src/components/Portal/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"}
@@ -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":["../../../../../../src/components/Progress/CircularProgress/CircularProgress.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;AACjC,OAAO,EACL,0BAA0B,GAG3B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,gBAAgB,GAEzB,CAAC,EACH,KAAK,EACL,YAAY,GAAG,CAAC,EAChB,YAAY,GAAG,GAAG,EAClB,KAAK,GAAG,YAAY,EACpB,SAAS,GAAG,EAAE,EACd,cAAc,G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S,EACT,MAAc,EACd,UAAkB,EAClB,QAAgB;IAEhB,SAAS,CAAC,CAAC,qDAAqD;IAEhE,SAAS,gBAAgB,CACvB,OAAe,EACf,OAAe,EACf,MAAc,EACd,cAAsB;QAEtB,IAAI,cAAc,GAAG,CAAC,CAAC,cAAc,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC;QAC/D,OAAO;YACL,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC;YAC9C,CAAC,EAAE,OAAO,GAAG,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"}
1
+ {"version":3,"file":"CircularProgress.js","sourceRoot":"","sources":["../../../../../../src/components/Progress/CircularProgress/CircularProgress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,EAAE,EAAE,IAAI,EAAa,MAAM,kBAAkB,CAAC;AACxD,OAAO,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;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"}
@@ -1,4 +1,6 @@
1
1
  import React from "react";
2
2
  import { CircularProgressProps, IndeterminateProgressProps, ValueProgressProps } from "../ProgressCommon";
3
- declare const _default: React.ComponentType<Omit<ValueProgressProps & IndeterminateProgressProps & CircularProgressProps, "theme">>;
3
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<ValueProgressProps & IndeterminateProgressProps & CircularProgressProps, "theme"> & {
4
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
5
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<ValueProgressProps & IndeterminateProgressProps & CircularProgressProps> & React.FC<ValueProgressProps & IndeterminateProgressProps & CircularProgressProps>, {}>;
4
6
  export default _default;
@@ -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":["../../../../../../src/components/Progress/CircularProgress/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":["../../../../../../src/components/Progress/CircularProgress/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"}
@@ -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":["../../../../../../src/components/Progress/LinearProgress/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;AACjC,OAAO,EACL,0BAA0B,GAE3B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,cAAc,GAAiC,CAAC,EAC3D,KAAK,EACL,YAAY,GAAG,CAAC,EAChB,YAAY,GAAG,GAAG,EAClB,KAAK,GAAG,YAAY,EACpB,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,SAAS,EAC1B,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,EACrC,UAAU,GAAG,KAAK,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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"}
1
+ {"version":3,"file":"LinearProgress.js","sourceRoot":"","sources":["../../../../../../src/components/Progress/LinearProgress/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;AACjC,OAAO,EACL,0BAA0B,GAE3B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,cAAc,GAAiC,CAAC,EAC3D,KAAK,EACL,YAAY,GAAG,CAAC,EAChB,YAAY,GAAG,GAAG,EAClB,KAAK,GAAG,YAAY,EACpB,SAAS,GAAG,EAAE,EACd,cAAc,GAAG,SAAS,EAC1B,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,EAC5B,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,EACjC,YAAY,GAAG,CAAC,EAChB,SAAS,GAAG,IAAI,EAChB,iBAAiB,GAAG,0BAA0B,EAC9C,UAAU,GAAG,IAAI,EACjB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AE,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"}
@@ -1,4 +1,6 @@
1
1
  import React from "react";
2
2
  import { IndeterminateProgressProps, ValueProgressProps } from "../ProgressCommon";
3
- declare const _default: React.ComponentType<Omit<ValueProgressProps & IndeterminateProgressProps, "theme">>;
3
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<ValueProgressProps & IndeterminateProgressProps, "theme"> & {
4
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
5
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<ValueProgressProps & IndeterminateProgressProps> & React.FC<ValueProgressProps & IndeterminateProgressProps>, {}>;
4
6
  export default _default;
@@ -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":["../../../../../../src/components/Progress/LinearProgress/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":["../../../../../../src/components/Progress/LinearProgress/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"}
@@ -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
  declare type LineCap = "round" | "square";
4
4
  export declare const DEFAULT_ANIMATION_DURATION = 500;
5
5
  export interface BaseProgressProps {
@@ -23,7 +23,7 @@ export interface BaseProgressProps {
23
23
  trackCustomDashArray?: string;
24
24
  onFullPathWidth?: (width: number) => void;
25
25
  style?: StyleProp<ViewStyle>;
26
- theme: ReadTheme;
26
+ theme: Theme;
27
27
  testID?: string;
28
28
  }
29
29
  export interface ValueProgressProps extends BaseProgressProps {
@@ -1,20 +1,23 @@
1
1
  import * as React from "react";
2
- import type { ReadTheme } from "@draftbit/theme";
2
+ import themeT from "../styles/DefaultTheme";
3
+ import { colorTypes } from "@draftbit/types";
3
4
  declare type Props = {
4
5
  numberOfSteps: number;
5
6
  currentStep: number;
6
7
  currentStepStrokeWidth?: number;
7
- stepStrokeCurrentColor?: string;
8
+ stepStrokeCurrentColor?: colorTypes;
8
9
  stepIndicatorSize?: number;
9
10
  currentStepIndicatorSize?: number;
10
- stepIndicatorCurrentColor?: string;
11
- stepIndicatorLabelCurrentColor?: string;
11
+ stepIndicatorCurrentColor?: colorTypes;
12
+ stepIndicatorLabelCurrentColor?: colorTypes;
12
13
  stepIndicatorLabelFontSize?: number;
13
- stepNumberFinishedColor?: string;
14
- stepNumberUnfinishedColor?: string;
15
- unfinishedColor?: string;
16
- finishedColor?: string;
17
- theme: ReadTheme;
14
+ stepNumberFinishedColor?: colorTypes;
15
+ stepNumberUnfinishedColor?: colorTypes;
16
+ unfinishedColor?: colorTypes;
17
+ finishedColor?: colorTypes;
18
+ theme: typeof themeT;
18
19
  };
19
- declare const _default: React.ComponentType<Omit<React.PropsWithChildren<Props>, "theme">>;
20
+ declare const _default: React.ComponentType<import("@draftbit/react-theme-provider").$Without<React.PropsWithChildren<Props>, "theme"> & {
21
+ theme?: import("@draftbit/react-theme-provider").$DeepPartial<any> | undefined;
22
+ }> & import("@draftbit/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<React.PropsWithChildren<Props>> & React.FC<React.PropsWithChildren<Props>>, {}>;
20
23
  export default _default;
@@ -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":["../../../../src/components/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,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
+ {"version":3,"file":"ProgressIndicator.js","sourceRoot":"","sources":["../../../../src/components/ProgressIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAqBvC,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,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,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { StyleProp, ViewStyle } from "react-native";
3
- import type { ReadTheme } from "@draftbit/theme";
3
+ import type { Theme } from "../../styles/DefaultTheme";
4
4
  import { Direction } from "./context";
5
5
  export interface RadioButtonGroupProps {
6
6
  direction?: Direction;
@@ -8,7 +8,7 @@ export interface RadioButtonGroupProps {
8
8
  value: string | number;
9
9
  onValueChange?: (value: string) => void;
10
10
  defaultValue?: string | number;
11
- theme: ReadTheme;
11
+ theme: Theme;
12
12
  children: React.ReactNode;
13
13
  }
14
14
  declare const RadioButtonGroup: React.FC<RadioButtonGroupProps>;