@beppla/tapas-ui 1.0.69 → 1.0.70

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 (467) hide show
  1. package/commonjs/Alert/Alert.js +2 -1
  2. package/commonjs/Alert/Alert.js.map +2 -0
  3. package/commonjs/AnimatedNavItem/AnimatedNavItem.js +2 -1
  4. package/commonjs/AnimatedNavItem/AnimatedNavItem.js.map +2 -0
  5. package/commonjs/AnimatedNavItem/index.js +2 -1
  6. package/commonjs/AnimatedNavItem/index.js.map +2 -0
  7. package/commonjs/BarChart/BarChart.js +113 -90
  8. package/commonjs/BarChart/BarChart.js.map +1 -0
  9. package/commonjs/BarChart/index.js +1 -0
  10. package/commonjs/BarChart/index.js.map +2 -0
  11. package/commonjs/Button/Button.js +97 -78
  12. package/commonjs/Button/Button.js.map +1 -0
  13. package/commonjs/Button/ButtonGroup.js +157 -136
  14. package/commonjs/Button/ButtonGroup.js.map +1 -0
  15. package/commonjs/Button/react-native-hoverable.d.js +1 -0
  16. package/commonjs/Button/react-native-hoverable.d.js.map +1 -0
  17. package/commonjs/Calendar/Calendar.base.js +163 -190
  18. package/commonjs/Calendar/Calendar.base.js.map +1 -0
  19. package/commonjs/Calendar/Calendar.js +87 -102
  20. package/commonjs/Calendar/Calendar.js.map +2 -0
  21. package/commonjs/Calendar/ConcreteTimeSelector.js +2 -1
  22. package/commonjs/Calendar/ConcreteTimeSelector.js.map +2 -0
  23. package/commonjs/Calendar/CustomRange.js +272 -324
  24. package/commonjs/Calendar/CustomRange.js.map +2 -0
  25. package/commonjs/Calendar/DaySelector.js +116 -113
  26. package/commonjs/Calendar/DaySelector.js.map +2 -0
  27. package/commonjs/Calendar/MonthSelector.js +119 -115
  28. package/commonjs/Calendar/MonthSelector.js.map +2 -0
  29. package/commonjs/Calendar/TimeSelector.js +2 -1
  30. package/commonjs/Calendar/TimeSelector.js.map +2 -0
  31. package/commonjs/Calendar/WeekDaySelector.js +1 -0
  32. package/commonjs/Calendar/WeekDaySelector.js.map +2 -0
  33. package/commonjs/Calendar/helper.js +2 -1
  34. package/commonjs/Calendar/helper.js.map +2 -0
  35. package/commonjs/Calendar/local.js +2 -1
  36. package/commonjs/Calendar/local.js.map +2 -0
  37. package/commonjs/Calendar/types.js +11 -10
  38. package/commonjs/Calendar/types.js.map +1 -0
  39. package/commonjs/Card/Card.js +1 -0
  40. package/commonjs/Card/Card.js.map +1 -0
  41. package/commonjs/CheckBox/CheckBox.js +97 -63
  42. package/commonjs/CheckBox/CheckBox.js.map +1 -0
  43. package/commonjs/CheckBox/CheckBoxItem.js +79 -57
  44. package/commonjs/CheckBox/CheckBoxItem.js.map +1 -0
  45. package/commonjs/CheckBox/GroupCheckBox.js +1 -0
  46. package/commonjs/CheckBox/GroupCheckBox.js.map +1 -0
  47. package/commonjs/CircularProgress/CircularProgress.js +26 -23
  48. package/commonjs/CircularProgress/CircularProgress.js.map +1 -0
  49. package/commonjs/Collapsible/Collapsible.js +61 -74
  50. package/commonjs/Collapsible/Collapsible.js.map +2 -0
  51. package/commonjs/DashboardCard/DashboardCard.js +75 -94
  52. package/commonjs/DashboardCard/DashboardCard.js.map +1 -0
  53. package/commonjs/DataCell/DataCell.js +109 -0
  54. package/commonjs/DataCell/DataCell.js.map +2 -0
  55. package/commonjs/DataCell/index.js +16 -9
  56. package/commonjs/DataCell/index.js.map +1 -0
  57. package/commonjs/DataTable/DataTable.js +1 -69
  58. package/commonjs/DataTable/DataTable.js.map +2 -0
  59. package/commonjs/DataTable/index.js +1 -0
  60. package/commonjs/DataTable/index.js.map +2 -0
  61. package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js +243 -244
  62. package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js.map +1 -0
  63. package/commonjs/DraggableFlatList/DraggableFlatList.js +1 -0
  64. package/commonjs/DraggableFlatList/DraggableFlatList.js.map +1 -0
  65. package/commonjs/Drawer/Drawer.js +1 -0
  66. package/commonjs/Drawer/Drawer.js.map +1 -0
  67. package/commonjs/Dropdown/CustomDropdown.js +1 -0
  68. package/commonjs/Dropdown/CustomDropdown.js.map +1 -0
  69. package/commonjs/Dropdown/Dropdown.js +2 -1
  70. package/commonjs/Dropdown/Dropdown.js.map +2 -0
  71. package/commonjs/Dropdown/InputDropdown.js +1 -0
  72. package/commonjs/Dropdown/InputDropdown.js.map +2 -0
  73. package/commonjs/ExternalLink/ExternalLink.js +2 -1
  74. package/commonjs/ExternalLink/ExternalLink.js.map +2 -0
  75. package/commonjs/Gantt/Accessories.js +136 -168
  76. package/commonjs/Gantt/Accessories.js.map +1 -0
  77. package/commonjs/Gantt/Gantt.js +150 -149
  78. package/commonjs/Gantt/Gantt.js.map +2 -0
  79. package/commonjs/Gantt/GanttInnerElementType.js +94 -102
  80. package/commonjs/Gantt/GanttInnerElementType.js.map +2 -0
  81. package/commonjs/Gantt/helper.js +120 -145
  82. package/commonjs/Gantt/helper.js.map +2 -0
  83. package/commonjs/Gantt/types.js +4 -3
  84. package/commonjs/Gantt/types.js.map +2 -0
  85. package/commonjs/Grid/FixedSizeGrid.js +1 -0
  86. package/commonjs/Grid/FixedSizeGrid.js.map +1 -0
  87. package/commonjs/Grid/Grid.base.js +1 -0
  88. package/commonjs/Grid/Grid.base.js.map +1 -0
  89. package/commonjs/Grid/StaticFixedSizeGrid.js +1 -0
  90. package/commonjs/Grid/StaticFixedSizeGrid.js.map +1 -0
  91. package/commonjs/Grid/VariableSizeGrid.js +121 -113
  92. package/commonjs/Grid/VariableSizeGrid.js.map +2 -0
  93. package/commonjs/Grid/helper.js +1 -0
  94. package/commonjs/Grid/helper.js.map +2 -0
  95. package/commonjs/Grid/timer.js +9 -4
  96. package/commonjs/Grid/timer.js.map +1 -0
  97. package/commonjs/Header/Header.js +2 -1
  98. package/commonjs/Header/Header.js.map +2 -0
  99. package/commonjs/HelloWave/HelloWave.js +47 -53
  100. package/commonjs/HelloWave/HelloWave.js.map +1 -0
  101. package/commonjs/Hoverable/Hoverable.js +36 -33
  102. package/commonjs/Hoverable/Hoverable.js.map +2 -0
  103. package/commonjs/IconText/IconText.js +89 -65
  104. package/commonjs/IconText/IconText.js.map +2 -0
  105. package/commonjs/Icons/TapasIcon.js +100 -100
  106. package/commonjs/Icons/TapasIcon.js.map +1 -0
  107. package/commonjs/Icons/TapasIconExpo.js +102 -94
  108. package/commonjs/Icons/TapasIconExpo.js.map +2 -0
  109. package/commonjs/Icons/expoFontLoader.js +2 -1
  110. package/commonjs/Icons/expoFontLoader.js.map +2 -0
  111. package/commonjs/Icons/fontLoader.js +1 -0
  112. package/commonjs/Icons/fontLoader.js.map +1 -0
  113. package/commonjs/Icons/index.js +2 -1
  114. package/commonjs/Icons/index.js.map +2 -0
  115. package/commonjs/Icons/smartFontLoader.js +267 -222
  116. package/commonjs/Icons/smartFontLoader.js.map +2 -0
  117. package/commonjs/Image/Image.js +2 -1
  118. package/commonjs/Image/Image.js.map +2 -0
  119. package/commonjs/Image/PreviewImg.js +86 -63
  120. package/commonjs/Image/PreviewImg.js.map +1 -0
  121. package/commonjs/Input/Input.js +2 -1
  122. package/commonjs/Input/Input.js.map +2 -0
  123. package/commonjs/Layout/DrawerContext.js +50 -35
  124. package/commonjs/Layout/DrawerContext.js.map +1 -0
  125. package/commonjs/Layout/Layout.js +2 -1
  126. package/commonjs/Layout/Layout.js.map +2 -0
  127. package/commonjs/Layout/ToastContext.js +35 -46
  128. package/commonjs/Layout/ToastContext.js.map +2 -0
  129. package/commonjs/Layout/index.js +1 -0
  130. package/commonjs/Layout/index.js.map +2 -0
  131. package/commonjs/LineChart/LineChart.js +127 -144
  132. package/commonjs/LineChart/LineChart.js.map +1 -0
  133. package/commonjs/LineChart/index.js +4 -2
  134. package/commonjs/LineChart/index.js.map +1 -0
  135. package/commonjs/ListItem/ListItem.js +81 -108
  136. package/commonjs/ListItem/ListItem.js.map +2 -0
  137. package/commonjs/Loading/Loading.js +67 -54
  138. package/commonjs/Loading/Loading.js.map +1 -0
  139. package/commonjs/MessageBox/MessageBox.js +128 -126
  140. package/commonjs/MessageBox/MessageBox.js.map +2 -0
  141. package/commonjs/MultiSelector/MultiSelector.js +251 -225
  142. package/commonjs/MultiSelector/MultiSelector.js.map +2 -0
  143. package/commonjs/MultiSelector/index.js +7 -8
  144. package/commonjs/MultiSelector/index.js.map +2 -0
  145. package/commonjs/Navigation/Navigation.js +66 -0
  146. package/commonjs/Navigation/Navigation.js.map +2 -0
  147. package/commonjs/Notification/Notification.js +111 -89
  148. package/commonjs/Notification/Notification.js.map +1 -0
  149. package/commonjs/Notification/index.js +7 -8
  150. package/commonjs/Notification/index.js.map +2 -0
  151. package/commonjs/NumericInput/NumericInput.js +24 -0
  152. package/commonjs/NumericInput/NumericInput.js.map +2 -0
  153. package/commonjs/Overlay/Overlay.js +25 -45
  154. package/commonjs/Overlay/Overlay.js.map +1 -0
  155. package/commonjs/Pagination/Pagination.js +94 -151
  156. package/commonjs/Pagination/Pagination.js.map +1 -0
  157. package/commonjs/PieChart/PieChart.js +2 -1
  158. package/commonjs/PieChart/PieChart.js.map +2 -0
  159. package/commonjs/PieChart/index.js +3 -3
  160. package/commonjs/PieChart/index.js.map +2 -0
  161. package/commonjs/Popover/Popover.js +113 -137
  162. package/commonjs/Popover/Popover.js.map +1 -0
  163. package/commonjs/Progress/Progress.js +55 -48
  164. package/commonjs/Progress/Progress.js.map +1 -0
  165. package/commonjs/Quantity/Quantity.js +53 -127
  166. package/commonjs/Quantity/Quantity.js.map +1 -0
  167. package/commonjs/Quantity/index.js +9 -6
  168. package/commonjs/Quantity/index.js.map +1 -0
  169. package/commonjs/RadioButton/RadioButton.js +1 -0
  170. package/commonjs/RadioButton/RadioButton.js.map +1 -0
  171. package/commonjs/ReasonModal/ReasonModal.js +126 -122
  172. package/commonjs/ReasonModal/ReasonModal.js.map +2 -0
  173. package/commonjs/ReasonModal/index.js +10 -15
  174. package/commonjs/ReasonModal/index.js.map +1 -0
  175. package/commonjs/ScanButton/ScanButton.js +2 -1
  176. package/commonjs/ScanButton/ScanButton.js.map +2 -0
  177. package/commonjs/SearchInput/SearchInput.js +93 -108
  178. package/commonjs/SearchInput/SearchInput.js.map +2 -0
  179. package/commonjs/SearchInput/index.js +1 -0
  180. package/commonjs/SearchInput/index.js.map +1 -0
  181. package/commonjs/SheetTitle/SheetTitle.js +1 -6
  182. package/commonjs/SheetTitle/SheetTitle.js.map +1 -0
  183. package/commonjs/Shell/Shell.js +85 -92
  184. package/commonjs/Shell/Shell.js.map +2 -0
  185. package/commonjs/Shell/styles.js +1 -0
  186. package/commonjs/Shell/styles.js.map +1 -0
  187. package/commonjs/Shell/types.js +2 -1
  188. package/commonjs/Shell/types.js.map +1 -0
  189. package/commonjs/StatisticCard/StatisticCard.js +42 -47
  190. package/commonjs/StatisticCard/StatisticCard.js.map +2 -0
  191. package/commonjs/StatisticCard/index.js +2 -1
  192. package/commonjs/StatisticCard/index.js.map +2 -0
  193. package/commonjs/Status/Status.js +1 -0
  194. package/commonjs/Status/Status.js.map +1 -0
  195. package/commonjs/Steps/Steps.js +42 -40
  196. package/commonjs/Steps/Steps.js.map +1 -0
  197. package/commonjs/TabTitle/TabTitle.js +1 -0
  198. package/commonjs/TabTitle/TabTitle.js.map +2 -0
  199. package/commonjs/TabTitle/index.js +1 -1
  200. package/commonjs/TabTitle/index.js.map +1 -0
  201. package/commonjs/TableColumnHeader/TableColumnHeader.js +135 -140
  202. package/commonjs/TableColumnHeader/TableColumnHeader.js.map +2 -0
  203. package/commonjs/TableColumnHeader/index.js +2 -1
  204. package/commonjs/TableColumnHeader/index.js.map +2 -0
  205. package/commonjs/Tag/Tag.js +1 -41
  206. package/commonjs/Tag/Tag.js.map +1 -0
  207. package/commonjs/Task/Task.js +202 -112
  208. package/commonjs/Task/Task.js.map +2 -0
  209. package/commonjs/Task/type.js +1 -0
  210. package/commonjs/Task/type.js.map +1 -0
  211. package/commonjs/Text/Text.js +2 -1
  212. package/commonjs/Text/Text.js.map +1 -0
  213. package/commonjs/TextArea/TextArea.js +2 -1
  214. package/commonjs/TextArea/TextArea.js.map +2 -0
  215. package/commonjs/Theme/ThemeProvider.js +19 -16
  216. package/commonjs/Theme/ThemeProvider.js.map +2 -0
  217. package/commonjs/Theme/defaultTheme.js +22 -16
  218. package/commonjs/Theme/defaultTheme.js.map +2 -0
  219. package/commonjs/Theme/themed.d.js +1 -0
  220. package/commonjs/Theme/themed.d.js.map +1 -0
  221. package/commonjs/Timeline/Timeline.js +2 -1
  222. package/commonjs/Timeline/Timeline.js.map +2 -0
  223. package/commonjs/Toast/Toast.js +33 -0
  224. package/commonjs/Toast/Toast.js.map +2 -0
  225. package/commonjs/UserSwitcher/UserSwitcher.js +148 -144
  226. package/commonjs/UserSwitcher/UserSwitcher.js.map +2 -0
  227. package/commonjs/UserSwitcher/index.js +2 -1
  228. package/commonjs/UserSwitcher/index.js.map +2 -0
  229. package/commonjs/common.js +1 -0
  230. package/commonjs/common.js.map +1 -0
  231. package/commonjs/index.js +1 -0
  232. package/commonjs/index.js.map +2 -0
  233. package/module/Alert/Alert.js +72 -51
  234. package/module/Alert/Alert.js.map +2 -0
  235. package/module/AnimatedNavItem/AnimatedNavItem.js +2 -1
  236. package/module/AnimatedNavItem/AnimatedNavItem.js.map +1 -0
  237. package/module/AnimatedNavItem/index.js +7 -2
  238. package/module/AnimatedNavItem/index.js.map +1 -0
  239. package/module/BarChart/BarChart.js +141 -109
  240. package/module/BarChart/BarChart.js.map +2 -0
  241. package/module/BarChart/index.js +4 -1
  242. package/module/BarChart/index.js.map +2 -0
  243. package/module/Button/Button.js +1 -0
  244. package/module/Button/Button.js.map +1 -0
  245. package/module/Button/ButtonGroup.js +121 -129
  246. package/module/Button/ButtonGroup.js.map +1 -0
  247. package/module/Button/react-native-hoverable.d.js +1 -0
  248. package/module/Button/react-native-hoverable.d.js.map +1 -0
  249. package/module/Calendar/Calendar.base.js +1 -0
  250. package/module/Calendar/Calendar.base.js.map +1 -0
  251. package/module/Calendar/Calendar.js +2 -1
  252. package/module/Calendar/Calendar.js.map +2 -0
  253. package/module/Calendar/ConcreteTimeSelector.js +300 -211
  254. package/module/Calendar/ConcreteTimeSelector.js.map +2 -0
  255. package/module/Calendar/CustomRange.js +1 -0
  256. package/module/Calendar/CustomRange.js.map +1 -0
  257. package/module/Calendar/DaySelector.js +119 -95
  258. package/module/Calendar/DaySelector.js.map +2 -0
  259. package/module/Calendar/MonthSelector.js +2 -1
  260. package/module/Calendar/MonthSelector.js.map +2 -0
  261. package/module/Calendar/TimeSelector.js +308 -215
  262. package/module/Calendar/TimeSelector.js.map +1 -0
  263. package/module/Calendar/WeekDaySelector.js +1 -0
  264. package/module/Calendar/WeekDaySelector.js.map +2 -0
  265. package/module/Calendar/helper.js +1 -0
  266. package/module/Calendar/helper.js.map +1 -0
  267. package/module/Calendar/local.js +8 -7
  268. package/module/Calendar/local.js.map +2 -0
  269. package/module/Calendar/types.js +2 -1
  270. package/module/Calendar/types.js.map +1 -0
  271. package/module/Card/Card.js +237 -154
  272. package/module/Card/Card.js.map +1 -0
  273. package/module/CheckBox/CheckBox.js +90 -93
  274. package/module/CheckBox/CheckBox.js.map +2 -0
  275. package/module/CheckBox/CheckBoxItem.js +85 -69
  276. package/module/CheckBox/CheckBoxItem.js.map +1 -0
  277. package/module/CheckBox/GroupCheckBox.js +77 -66
  278. package/module/CheckBox/GroupCheckBox.js.map +2 -0
  279. package/module/CircularProgress/CircularProgress.js +1 -22
  280. package/module/CircularProgress/CircularProgress.js.map +1 -0
  281. package/module/Collapsible/Collapsible.js +2 -1
  282. package/module/Collapsible/Collapsible.js.map +2 -0
  283. package/module/DashboardCard/DashboardCard.js +89 -80
  284. package/module/DashboardCard/DashboardCard.js.map +1 -0
  285. package/module/DataCell/DataCell.js +225 -311
  286. package/module/DataCell/DataCell.js.map +1 -0
  287. package/module/DataCell/index.js +2 -1
  288. package/module/DataCell/index.js.map +2 -0
  289. package/module/DataTable/DataTable.js +101 -0
  290. package/module/DataTable/DataTable.js.map +2 -0
  291. package/module/DataTable/index.js +1 -0
  292. package/module/DataTable/index.js.map +1 -0
  293. package/module/DeviceSelectionModal/DeviceSelectionModal.js +125 -0
  294. package/module/DeviceSelectionModal/DeviceSelectionModal.js.map +2 -0
  295. package/module/DraggableFlatList/DraggableFlatList.js +10 -0
  296. package/module/DraggableFlatList/DraggableFlatList.js.map +2 -0
  297. package/module/Drawer/Drawer.js +1 -0
  298. package/module/Drawer/Drawer.js.map +1 -0
  299. package/module/Dropdown/CustomDropdown.js +161 -212
  300. package/module/Dropdown/CustomDropdown.js.map +1 -0
  301. package/module/Dropdown/Dropdown.js +409 -484
  302. package/module/Dropdown/Dropdown.js.map +1 -0
  303. package/module/Dropdown/InputDropdown.js +135 -116
  304. package/module/Dropdown/InputDropdown.js.map +2 -0
  305. package/module/ExternalLink/ExternalLink.js +1 -150
  306. package/module/ExternalLink/ExternalLink.js.map +1 -0
  307. package/module/Gantt/Accessories.js +1 -0
  308. package/module/Gantt/Accessories.js.map +2 -0
  309. package/module/Gantt/Gantt.js +153 -139
  310. package/module/Gantt/Gantt.js.map +2 -0
  311. package/module/Gantt/GanttInnerElementType.js +1 -0
  312. package/module/Gantt/GanttInnerElementType.js.map +1 -0
  313. package/module/Gantt/helper.js +164 -129
  314. package/module/Gantt/helper.js.map +1 -0
  315. package/module/Gantt/types.js +9 -4
  316. package/module/Gantt/types.js.map +1 -0
  317. package/module/Grid/FixedSizeGrid.js +1 -0
  318. package/module/Grid/FixedSizeGrid.js.map +1 -0
  319. package/module/Grid/Grid.base.js +1 -0
  320. package/module/Grid/Grid.base.js.map +1 -0
  321. package/module/Grid/StaticFixedSizeGrid.js +2 -1
  322. package/module/Grid/StaticFixedSizeGrid.js.map +2 -0
  323. package/module/Grid/VariableSizeGrid.js +119 -121
  324. package/module/Grid/VariableSizeGrid.js.map +1 -0
  325. package/module/Grid/helper.js +1 -0
  326. package/module/Grid/helper.js.map +2 -0
  327. package/module/Grid/timer.js +17 -14
  328. package/module/Grid/timer.js.map +1 -0
  329. package/module/Header/Header.js +2 -1
  330. package/module/Header/Header.js.map +2 -0
  331. package/module/HelloWave/HelloWave.js +54 -43
  332. package/module/HelloWave/HelloWave.js.map +2 -0
  333. package/module/Hoverable/Hoverable.js +67 -69
  334. package/module/Hoverable/Hoverable.js.map +1 -0
  335. package/module/IconText/IconText.js +2 -1
  336. package/module/IconText/IconText.js.map +2 -0
  337. package/module/Icons/TapasIcon.js +97 -120
  338. package/module/Icons/TapasIcon.js.map +1 -0
  339. package/module/Icons/TapasIconExpo.js +99 -78
  340. package/module/Icons/TapasIconExpo.js.map +2 -0
  341. package/module/Icons/expoFontLoader.js +2 -1
  342. package/module/Icons/expoFontLoader.js.map +2 -0
  343. package/module/Icons/fontLoader.js +1 -0
  344. package/module/Icons/fontLoader.js.map +2 -0
  345. package/module/Icons/index.js +11 -9
  346. package/module/Icons/index.js.map +2 -0
  347. package/module/Icons/smartFontLoader.js +1 -0
  348. package/module/Icons/smartFontLoader.js.map +2 -0
  349. package/module/Image/Image.js +2 -1
  350. package/module/Image/Image.js.map +2 -0
  351. package/module/Image/PreviewImg.js +1 -0
  352. package/module/Image/PreviewImg.js.map +1 -0
  353. package/module/Input/Input.js +75 -0
  354. package/module/Input/Input.js.map +2 -0
  355. package/module/Layout/DrawerContext.js +30 -18
  356. package/module/Layout/DrawerContext.js.map +2 -0
  357. package/module/Layout/Layout.js +101 -100
  358. package/module/Layout/Layout.js.map +1 -0
  359. package/module/Layout/ToastContext.js +1 -0
  360. package/module/Layout/ToastContext.js.map +1 -0
  361. package/module/Layout/index.js +16 -14
  362. package/module/Layout/index.js.map +2 -0
  363. package/module/LineChart/LineChart.js +158 -121
  364. package/module/LineChart/LineChart.js.map +1 -0
  365. package/module/LineChart/index.js +2 -1
  366. package/module/LineChart/index.js.map +2 -0
  367. package/module/ListItem/ListItem.js +2 -1
  368. package/module/ListItem/ListItem.js.map +2 -0
  369. package/module/Loading/Loading.js +66 -67
  370. package/module/Loading/Loading.js.map +2 -0
  371. package/module/MessageBox/MessageBox.js +2 -1
  372. package/module/MessageBox/MessageBox.js.map +2 -0
  373. package/module/MultiSelector/MultiSelector.js +1 -0
  374. package/module/MultiSelector/MultiSelector.js.map +2 -0
  375. package/module/MultiSelector/index.js +3 -3
  376. package/module/MultiSelector/index.js.map +2 -0
  377. package/module/Navigation/Navigation.js +2 -1
  378. package/module/Navigation/Navigation.js.map +2 -0
  379. package/module/Notification/Notification.js +106 -101
  380. package/module/Notification/Notification.js.map +2 -0
  381. package/module/Notification/index.js +19 -1
  382. package/module/Notification/index.js.map +1 -0
  383. package/module/NumericInput/NumericInput.js +2 -1
  384. package/module/NumericInput/NumericInput.js.map +2 -0
  385. package/module/Overlay/Overlay.js +30 -0
  386. package/module/Overlay/Overlay.js.map +2 -0
  387. package/module/Pagination/Pagination.js +1 -72
  388. package/module/Pagination/Pagination.js.map +1 -0
  389. package/module/PieChart/PieChart.js +102 -76
  390. package/module/PieChart/PieChart.js.map +1 -0
  391. package/module/PieChart/index.js +2 -1
  392. package/module/PieChart/index.js.map +2 -0
  393. package/module/Popover/Popover.js +1 -0
  394. package/module/Popover/Popover.js.map +1 -0
  395. package/module/Progress/Progress.js +2 -1
  396. package/module/Progress/Progress.js.map +2 -0
  397. package/module/Quantity/Quantity.js +130 -112
  398. package/module/Quantity/Quantity.js.map +2 -0
  399. package/module/Quantity/index.js +2 -1
  400. package/module/Quantity/index.js.map +2 -0
  401. package/module/RadioButton/RadioButton.js +2 -1
  402. package/module/RadioButton/RadioButton.js.map +2 -0
  403. package/module/ReasonModal/ReasonModal.js +115 -145
  404. package/module/ReasonModal/ReasonModal.js.map +1 -0
  405. package/module/ReasonModal/index.js +28 -0
  406. package/module/ReasonModal/index.js.map +2 -0
  407. package/module/ScanButton/ScanButton.js +57 -35
  408. package/module/ScanButton/ScanButton.js.map +1 -0
  409. package/module/SearchInput/SearchInput.js +2 -1
  410. package/module/SearchInput/SearchInput.js.map +2 -0
  411. package/module/SearchInput/index.js +1 -0
  412. package/module/SearchInput/index.js.map +1 -0
  413. package/module/SheetTitle/SheetTitle.js +1 -0
  414. package/module/SheetTitle/SheetTitle.js.map +1 -0
  415. package/module/Shell/Shell.js +1 -0
  416. package/module/Shell/Shell.js.map +1 -0
  417. package/module/Shell/styles.js +1 -0
  418. package/module/Shell/styles.js.map +1 -0
  419. package/module/Shell/types.js +3 -4
  420. package/module/Shell/types.js.map +2 -0
  421. package/module/StatisticCard/StatisticCard.js +2 -1
  422. package/module/StatisticCard/StatisticCard.js.map +2 -0
  423. package/module/StatisticCard/index.js +2 -1
  424. package/module/StatisticCard/index.js.map +2 -0
  425. package/module/Status/Status.js +2 -1
  426. package/module/Status/Status.js.map +2 -0
  427. package/module/Steps/Steps.js +2 -1
  428. package/module/Steps/Steps.js.map +2 -0
  429. package/module/TabTitle/TabTitle.js +58 -48
  430. package/module/TabTitle/TabTitle.js.map +1 -0
  431. package/module/TabTitle/index.js +2 -1
  432. package/module/TabTitle/index.js.map +2 -0
  433. package/module/TableColumnHeader/TableColumnHeader.js +154 -126
  434. package/module/TableColumnHeader/TableColumnHeader.js.map +2 -0
  435. package/module/TableColumnHeader/index.js +2 -1
  436. package/module/TableColumnHeader/index.js.map +2 -0
  437. package/module/Tag/Tag.js +2 -1
  438. package/module/Tag/Tag.js.map +2 -0
  439. package/module/Task/Task.js +114 -207
  440. package/module/Task/Task.js.map +1 -0
  441. package/module/Task/type.js +5 -8
  442. package/module/Task/type.js.map +1 -0
  443. package/module/Text/Text.js +81 -70
  444. package/module/Text/Text.js.map +1 -0
  445. package/module/TextArea/TextArea.js +120 -0
  446. package/module/TextArea/TextArea.js.map +2 -0
  447. package/module/Theme/ThemeProvider.js +2 -1
  448. package/module/Theme/ThemeProvider.js.map +2 -0
  449. package/module/Theme/defaultTheme.js +21 -0
  450. package/module/Theme/defaultTheme.js.map +2 -0
  451. package/module/Theme/themed.d.js +1 -0
  452. package/module/Theme/themed.d.js.map +1 -0
  453. package/module/Timeline/Timeline.js +55 -0
  454. package/module/Timeline/Timeline.js.map +2 -0
  455. package/module/Toast/Toast.js +2 -1
  456. package/module/Toast/Toast.js.map +2 -0
  457. package/module/UserSwitcher/UserSwitcher.js +2 -1
  458. package/module/UserSwitcher/UserSwitcher.js.map +2 -0
  459. package/module/UserSwitcher/index.js +2 -1
  460. package/module/UserSwitcher/index.js.map +2 -0
  461. package/module/common.js +1 -0
  462. package/module/common.js.map +1 -0
  463. package/module/index.js +1 -0
  464. package/module/index.js.map +1 -0
  465. package/package.json +1 -1
  466. package/typescript/Hoverable/Hoverable.d.ts.map +1 -1
  467. package/commonjs/Icons/.!11492!expoFontLoader.js +0 -205
@@ -1,154 +1,84 @@
1
1
  "use strict";
2
2
 
3
- var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = {
8
- enumerable: true,
9
- get: function () {
10
- return m[k];
11
- }
12
- };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- } : function (o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- });
19
- var __setModuleDefault = void 0 && (void 0).__setModuleDefault || (Object.create ? function (o, v) {
20
- Object.defineProperty(o, "default", {
21
- enumerable: true,
22
- value: v
23
- });
24
- } : function (o, v) {
25
- o["default"] = v;
26
- });
27
- var __importStar = void 0 && (void 0).__importStar || function () {
28
- var ownKeys = function (o) {
29
- ownKeys = Object.getOwnPropertyNames || function (o) {
30
- var ar = [];
31
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
32
- return ar;
33
- };
34
- return ownKeys(o);
35
- };
36
- return function (mod) {
37
- if (mod && mod.__esModule) return mod;
38
- var result = {};
39
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
40
- __setModuleDefault(result, mod);
41
- return result;
42
- };
43
- }();
44
- var __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack) {
45
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
46
- if (ar || !(i in from)) {
47
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
48
- ar[i] = from[i];
49
- }
50
- }
51
- return to.concat(ar || Array.prototype.slice.call(from));
52
- };
53
- var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
54
- return mod && mod.__esModule ? mod : {
55
- "default": mod
56
- };
57
- };
58
3
  Object.defineProperty(exports, "__esModule", {
59
4
  value: true
60
5
  });
61
- var react_1 = __importStar(require("react"));
62
- var react_native_1 = require("react-native");
63
- var themed_1 = require("@rneui/themed");
64
- var TapasIcon_1 = __importDefault(require("../Icons/TapasIcon"));
65
- var TapasMultiSelector = function (_a) {
66
- var _b = _a.icon,
67
- icon = _b === void 0 ? "arrow_drop_down" : _b,
68
- width = _a.width,
69
- height = _a.height,
70
- iconStyle = _a.iconStyle,
71
- title = _a.title,
72
- label = _a.label,
73
- required = _a.required,
74
- dropdownSubWidth = _a.dropdownSubWidth,
75
- dropdownSubHeight = _a.dropdownSubHeight,
76
- _c = _a.dropdownItems,
77
- dropdownItems = _c === void 0 ? [] : _c,
78
- selected = _a.selected,
79
- _d = _a.showSelectedValue,
80
- showSelectedValue = _d === void 0 ? false : _d,
81
- backgroundColor = _a.backgroundColor,
82
- onSelect = _a.onSelect,
83
- placeholder = _a.placeholder,
84
- disabled = _a.disabled,
85
- type = _a.type,
86
- _e = _a.state,
87
- state = _e === void 0 ? "normal" : _e,
88
- stateMsg = _a.stateMsg,
89
- _f = _a.showStateMsg,
90
- showStateMsg = _f === void 0 ? false : _f,
91
- _g = _a.radius,
92
- radius = _g === void 0 ? 12 : _g,
93
- _h = _a.offsetWidth,
94
- offsetWidth = _h === void 0 ? 0 : _h,
95
- _j = _a.showSearchBar,
96
- showSearchBar = _j === void 0 ? false : _j,
97
- _k = _a.noLabelAnim,
98
- noLabelAnim = _k === void 0 ? false : _k,
99
- visible = _a.visible,
100
- setVisible = _a.setVisible,
101
- _l = _a.searchPlaceholder,
102
- searchPlaceholder = _l === void 0 ? "Search" : _l,
103
- _m = _a.clearButtonText,
104
- clearButtonText = _m === void 0 ? "Clear" : _m,
105
- _o = _a.confirmButtonText,
106
- confirmButtonText = _o === void 0 ? "Done" : _o,
107
- testID = _a.testID;
108
- var theme = (0, themed_1.useTheme)();
109
- var styles = useStyles(theme);
110
- var _p = (0, react_1.useState)(false),
111
- modalVisible = _p[0],
112
- setModalVisible = _p[1];
113
- var _q = (0, react_1.useState)(dropdownSubWidth !== null && dropdownSubWidth !== void 0 ? dropdownSubWidth : 151),
114
- dropdownWidthCalc = _q[0],
115
- setDropdownWidthCalc = _q[1];
116
- var _r = (0, react_1.useState)({
117
- top: 0,
118
- left: 0
119
- }),
120
- dropdownPosition = _r[0],
121
- setDropdownPosition = _r[1];
122
- var _s = (0, react_1.useState)(selected !== null && selected !== void 0 ? selected : []),
123
- selectedItemKey = _s[0],
124
- setSelectedItemKey = _s[1];
125
- var _t = (0, react_1.useState)(18),
126
- top = _t[0],
127
- setTop = _t[1];
128
- var buttonRef = (0, react_1.useRef)(null);
129
- var topAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(18)).current;
130
- var offsetSpace = 8;
131
- var offsetHeight = 10;
132
- var openDropdown = function () {
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _themed = require("@rneui/themed");
10
+ var _TapasIcon = _interopRequireDefault(require("../Icons/TapasIcon"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ const TapasMultiSelector = ({
15
+ icon = "arrow_drop_down",
16
+ width,
17
+ height,
18
+ iconStyle,
19
+ title,
20
+ label,
21
+ required,
22
+ dropdownSubWidth,
23
+ dropdownSubHeight,
24
+ dropdownItems = [],
25
+ selected,
26
+ showSelectedValue = false,
27
+ backgroundColor,
28
+ onSelect,
29
+ placeholder,
30
+ disabled,
31
+ type,
32
+ state = "normal",
33
+ stateMsg,
34
+ showStateMsg = false,
35
+ radius = 12,
36
+ offsetWidth = 0,
37
+ showSearchBar = false,
38
+ noLabelAnim = false,
39
+ visible,
40
+ setVisible,
41
+ searchPlaceholder = "Search",
42
+ clearButtonText = "Clear",
43
+ confirmButtonText = "Done",
44
+ testID
45
+ }) => {
46
+ const theme = (0, _themed.useTheme)();
47
+ const styles = useStyles(theme);
48
+ const [modalVisible, setModalVisible] = (0, _react.useState)(false);
49
+ const [dropdownWidthCalc, setDropdownWidthCalc] = (0, _react.useState)(dropdownSubWidth ?? 151);
50
+ const [dropdownPosition, setDropdownPosition] = (0, _react.useState)({
51
+ top: 0,
52
+ left: 0
53
+ });
54
+ const [selectedItemKey, setSelectedItemKey] = (0, _react.useState)(selected ?? []);
55
+ const [top, setTop] = (0, _react.useState)(18);
56
+ const buttonRef = (0, _react.useRef)(null);
57
+ const topAnim = (0, _react.useRef)(new _reactNative.Animated.Value(18)).current;
58
+ const offsetSpace = 8;
59
+ const offsetHeight = 10;
60
+ const openDropdown = () => {
133
61
  if (disabled) return;
134
62
  if (buttonRef.current) {
135
- buttonRef.current.measure(function (_fx, _fy, width, height, px, py) {
136
- var window = react_native_1.Dimensions.get("window");
137
- var dropdownHeight = dropdownSubHeight !== null && dropdownSubHeight !== void 0 ? dropdownSubHeight : Math.min(40 * dropdownItems.length + 24, 448);
138
- var dropdownWidth = Math.max(width, dropdownSubWidth !== null && dropdownSubWidth !== void 0 ? dropdownSubWidth : 151);
63
+ buttonRef.current.measure((_fx, _fy, width, height, px, py) => {
64
+ const window = _reactNative.Dimensions.get("window");
65
+ const dropdownHeight = dropdownSubHeight ?? Math.min(40 * dropdownItems.length + 24, 448);
66
+ const dropdownWidth = Math.max(width, dropdownSubWidth ?? 151);
139
67
  setDropdownWidthCalc(dropdownWidth);
68
+
140
69
  // 计算下方空间是否足够
141
- var enoughSpaceBelow = py + height + dropdownHeight + offsetHeight <= window.height;
142
- var enoughSpaceAbove = py - dropdownHeight >= 0;
143
- var enoughSpaceRight = px + dropdownWidth <= window.width;
70
+ const enoughSpaceBelow = py + height + dropdownHeight + offsetHeight <= window.height;
71
+ const enoughSpaceAbove = py - dropdownHeight >= 0;
72
+ const enoughSpaceRight = px + dropdownWidth <= window.width;
73
+
144
74
  // 处理 px 由于 tab screen的问题 导致 px 可能是多个屏宽倍数的问题
145
- var adjustedPx = px % window.width + (px > window.width ? 56 : 0) + offsetWidth;
75
+ const adjustedPx = px % window.width + (px > window.width ? 56 : 0) + offsetWidth;
146
76
  // 根据空间决定显示方向和位置
147
- var top = enoughSpaceBelow ? py + height + offsetSpace : enoughSpaceAbove ? py - dropdownHeight - offsetHeight - 16 : py + height + offsetSpace;
148
- var left = enoughSpaceRight ? adjustedPx : adjustedPx + width - dropdownWidth;
77
+ const top = enoughSpaceBelow ? py + height + offsetSpace : enoughSpaceAbove ? py - dropdownHeight - offsetHeight - 16 : py + height + offsetSpace;
78
+ const left = enoughSpaceRight ? adjustedPx : adjustedPx + width - dropdownWidth;
149
79
  setDropdownPosition({
150
- top: top,
151
- left: left
80
+ top,
81
+ left
152
82
  });
153
83
  if (setVisible) {
154
84
  setVisible(true);
@@ -158,77 +88,65 @@ var TapasMultiSelector = function (_a) {
158
88
  });
159
89
  }
160
90
  };
161
- (0, react_1.useEffect)(function () {
162
- setSelectedItemKey(selected !== null && selected !== void 0 ? selected : []);
91
+ (0, _react.useEffect)(() => {
92
+ setSelectedItemKey(selected ?? []);
163
93
  }, [selected]);
164
- (0, react_1.useEffect)(function () {
94
+ (0, _react.useEffect)(() => {
165
95
  if (typeof visible === "boolean" && visible !== undefined) {
166
96
  setModalVisible(visible);
167
97
  }
168
98
  }, [visible]);
169
- (0, react_1.useEffect)(function () {
170
- var start = selectedItemKey.length === 0 ? 0 : 18;
171
- var target = selectedItemKey.length === 0 ? 18 : 0;
99
+ (0, _react.useEffect)(() => {
100
+ const start = selectedItemKey.length === 0 ? 0 : 18;
101
+ const target = selectedItemKey.length === 0 ? 18 : 0;
172
102
  if (top === target) return;
173
103
  setTop(target);
174
104
  topAnim.setValue(start);
175
- react_native_1.Animated.timing(topAnim, {
105
+ _reactNative.Animated.timing(topAnim, {
176
106
  toValue: target,
177
107
  duration: 300,
178
108
  useNativeDriver: true
179
109
  }).start();
180
110
  }, [selectedItemKey]);
181
- var closeModal = function () {
111
+ const closeModal = () => {
182
112
  if (setVisible) {
183
113
  setVisible(false);
184
114
  } else {
185
115
  setModalVisible(false);
186
116
  }
187
117
  };
188
- var handleItemSelect = function (key) {
189
- var newSelected = selectedItemKey.includes(key) ? selectedItemKey.filter(function (k) {
190
- return k !== key;
191
- }) : __spreadArray(__spreadArray([], selectedItemKey, true), [key], false);
118
+ const handleItemSelect = key => {
119
+ const newSelected = selectedItemKey.includes(key) ? selectedItemKey.filter(k => k !== key) : [...selectedItemKey, key];
192
120
  setSelectedItemKey(newSelected);
193
121
  };
194
- var handleClear = function () {
122
+ const handleClear = () => {
195
123
  setSelectedItemKey([]);
196
- onSelect === null || onSelect === void 0 ? void 0 : onSelect([]);
124
+ onSelect?.([]);
197
125
  closeModal();
198
126
  };
199
- var handleConfirm = function () {
200
- onSelect === null || onSelect === void 0 ? void 0 : onSelect(selectedItemKey);
127
+ const handleConfirm = () => {
128
+ onSelect?.(selectedItemKey);
201
129
  closeModal();
202
130
  };
203
- var renderCheckbox = function (item) {
204
- return react_1.default.createElement(react_native_1.View, {
205
- style: styles.checkboxContainer
206
- }, react_1.default.createElement(react_native_1.View, {
207
- style: [styles.checkbox, selectedItemKey.includes(item.key) && styles.checkboxChecked]
208
- }, selectedItemKey.includes(item.key) && react_1.default.createElement(react_native_1.Text, {
209
- style: styles.checkmark
210
- }, "\u2713")), react_1.default.createElement(react_native_1.Text, {
211
- style: styles.optionText,
212
- numberOfLines: 1,
213
- ellipsizeMode: "tail"
214
- }, item.value));
215
- };
216
- var renderButton = function (text, onPress, disabled, primary) {
217
- if (disabled === void 0) {
218
- disabled = false;
219
- }
220
- if (primary === void 0) {
221
- primary = false;
222
- }
223
- return react_1.default.createElement(react_native_1.TouchableOpacity, {
224
- style: [styles.button, primary && styles.primaryButton, disabled && styles.disabledButton],
225
- onPress: onPress,
226
- disabled: disabled
227
- }, react_1.default.createElement(react_native_1.Text, {
228
- style: [styles.buttonText, primary && styles.primaryButtonText, disabled && styles.disabledButtonText]
229
- }, text));
230
- };
231
- return react_1.default.createElement(react_native_1.View, {
131
+ const renderCheckbox = item => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
132
+ style: styles.checkboxContainer
133
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
134
+ style: [styles.checkbox, selectedItemKey.includes(item.key) && styles.checkboxChecked]
135
+ }, selectedItemKey.includes(item.key) && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
136
+ style: styles.checkmark
137
+ }, "\u2713")), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
138
+ style: styles.optionText,
139
+ numberOfLines: 1,
140
+ ellipsizeMode: "tail"
141
+ }, item.value));
142
+ const renderButton = (text, onPress, disabled = false, primary = false) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
143
+ style: [styles.button, primary && styles.primaryButton, disabled && styles.disabledButton],
144
+ onPress: onPress,
145
+ disabled: disabled
146
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
147
+ style: [styles.buttonText, primary && styles.primaryButtonText, disabled && styles.disabledButtonText]
148
+ }, text));
149
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
232
150
  style: [styles.con, width ? {
233
151
  maxWidth: width,
234
152
  minWidth: width
@@ -237,16 +155,16 @@ var TapasMultiSelector = function (_a) {
237
155
  maxHeight: height + (label ? 7 : 0) + (showStateMsg ? 15 : 0)
238
156
  } : null],
239
157
  testID: testID
240
- }, label && !noLabelAnim && react_1.default.createElement(react_native_1.Animated.View, {
158
+ }, label && !noLabelAnim && /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, {
241
159
  style: [styles.labelCon, {
242
160
  top: topAnim
243
161
  }, {
244
162
  backgroundColor: backgroundColor || theme.theme.colors.white
245
163
  }]
246
- }, react_1.default.createElement(react_native_1.Pressable, {
164
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
247
165
  style: styles.labelInner,
248
166
  onPress: openDropdown
249
- }, react_1.default.createElement(react_native_1.Text, {
167
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
250
168
  style: [styles.label_text, state === "error" && {
251
169
  color: theme.theme.colors.error
252
170
  }, selectedItemKey.length === 0 && {
@@ -256,16 +174,16 @@ var TapasMultiSelector = function (_a) {
256
174
  }],
257
175
  numberOfLines: 1,
258
176
  ellipsizeMode: "tail"
259
- }, selectedItemKey.length === 0 ? placeholder || label : label), required && react_1.default.createElement(react_native_1.Text, {
177
+ }, selectedItemKey.length === 0 ? placeholder || label : label), required && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
260
178
  style: styles.required
261
- }, "*"))), react_1.default.createElement(react_native_1.TouchableOpacity, {
179
+ }, "*"))), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
262
180
  ref: buttonRef,
263
181
  style: [showSelectedValue || noLabelAnim && label ? styles.btn : null, type === "solid" ? styles.solidBtn : null, type === "solid" && radius ? {
264
182
  borderRadius: radius
265
183
  } : null, label ? {
266
184
  marginTop: 7
267
185
  } : null, noLabelAnim && label && backgroundColor ? {
268
- backgroundColor: backgroundColor
186
+ backgroundColor
269
187
  } : null, state === "error" ? {
270
188
  borderColor: theme.theme.colors.error
271
189
  } : null, disabled ? {
@@ -273,7 +191,7 @@ var TapasMultiSelector = function (_a) {
273
191
  } : null],
274
192
  disabled: disabled,
275
193
  onPress: openDropdown
276
- }, showSelectedValue ? react_1.default.createElement(react_native_1.Text, {
194
+ }, showSelectedValue ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
277
195
  style: [styles.alignCenter, {
278
196
  flexGrow: 1,
279
197
  marginRight: 12
@@ -282,11 +200,7 @@ var TapasMultiSelector = function (_a) {
282
200
  }],
283
201
  numberOfLines: 1,
284
202
  ellipsizeMode: "tail"
285
- }, !(selectedItemKey === null || selectedItemKey === void 0 ? void 0 : selectedItemKey.length) ? placeholder || "Select an option" : dropdownItems.filter(function (item) {
286
- return selectedItemKey.includes(item.key);
287
- }).map(function (item) {
288
- return item.value;
289
- }).join(", ")) : noLabelAnim && label ? react_1.default.createElement(react_native_1.Text, {
203
+ }, !selectedItemKey?.length ? placeholder || "Select an option" : dropdownItems.filter(item => selectedItemKey.includes(item.key)).map(item => item.value).join(", ")) : noLabelAnim && label ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
290
204
  style: [styles.alignCenter, {
291
205
  flexGrow: 1,
292
206
  marginRight: 2
@@ -295,30 +209,30 @@ var TapasMultiSelector = function (_a) {
295
209
  }],
296
210
  numberOfLines: 1,
297
211
  ellipsizeMode: "tail"
298
- }, label) : null, react_1.default.createElement(TapasIcon_1.default, {
212
+ }, label) : null, /*#__PURE__*/_react.default.createElement(_TapasIcon.default, {
299
213
  name: modalVisible && icon === "arrow_drop_down" ? "arrow_drop_up" : icon === "arrow_drop_up" ? "arrow_drop_down" : icon || "arrow_drop_down",
300
214
  style: [styles.icon, iconStyle, disabled && {
301
215
  color: theme.theme.colors.grey3
302
216
  }]
303
- })), showStateMsg && react_1.default.createElement(react_native_1.View, {
217
+ })), showStateMsg && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
304
218
  style: styles.msg
305
- }, react_1.default.createElement(react_native_1.Text, {
219
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
306
220
  style: [styles.msgText, state === "error" && {
307
221
  color: theme.theme.colors.error
308
222
  }],
309
223
  numberOfLines: 1,
310
224
  ellipsizeMode: "tail"
311
- }, stateMsg)), react_1.default.createElement(react_native_1.Modal, {
225
+ }, stateMsg)), /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
312
226
  transparent: true,
313
227
  visible: modalVisible,
314
228
  onRequestClose: closeModal,
315
229
  animationType: "fade"
316
- }, react_1.default.createElement(react_native_1.TouchableOpacity, {
230
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
317
231
  style: {
318
232
  flex: 1
319
233
  },
320
234
  onPress: closeModal
321
- }, react_1.default.createElement(react_native_1.View, {
235
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
322
236
  style: [styles.optionsCon, {
323
237
  top: dropdownPosition.top,
324
238
  left: dropdownPosition.left,
@@ -326,44 +240,39 @@ var TapasMultiSelector = function (_a) {
326
240
  }, dropdownSubHeight ? {
327
241
  maxHeight: dropdownSubHeight
328
242
  } : null]
329
- }, title && react_1.default.createElement(react_native_1.View, {
243
+ }, title && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
330
244
  style: [styles.flx, styles.titleCon]
331
- }, react_1.default.createElement(react_native_1.Text, {
245
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
332
246
  numberOfLines: 1,
333
247
  ellipsizeMode: "tail",
334
248
  style: styles.title
335
- }, title)), showSearchBar && react_1.default.createElement(react_native_1.View, {
249
+ }, title)), showSearchBar && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
336
250
  style: styles.searchContainer
337
- }, react_1.default.createElement(react_native_1.Text, {
251
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
338
252
  style: styles.searchPlaceholder
339
- }, searchPlaceholder)), react_1.default.createElement(react_native_1.ScrollView, {
253
+ }, searchPlaceholder)), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, {
340
254
  style: styles.optionsScrollView,
341
255
  showsHorizontalScrollIndicator: false,
342
256
  showsVerticalScrollIndicator: false
343
- }, react_1.default.createElement(react_native_1.View, {
257
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
344
258
  style: styles.optionsInner
345
- }, dropdownItems.length > 0 ? dropdownItems.map(function (item) {
346
- return react_1.default.createElement(react_native_1.Pressable, {
347
- style: function (_a) {
348
- var pressed = _a.pressed;
349
- return [styles.option, {
350
- backgroundColor: pressed ? theme.theme.colors.grey4 || "#f0f0f0" : "transparent"
351
- }];
352
- },
353
- key: "tapas-dropdown-option-".concat(item.key),
354
- onPress: function () {
355
- return handleItemSelect(item.key);
356
- }
357
- }, renderCheckbox(item));
358
- }) : react_1.default.createElement(react_native_1.Text, {
259
+ }, dropdownItems.length > 0 ? dropdownItems.map(item => /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
260
+ style: ({
261
+ pressed
262
+ }) => [styles.option, {
263
+ backgroundColor: pressed ? theme.theme.colors.grey4 || "#f0f0f0" : "transparent"
264
+ }],
265
+ key: `tapas-dropdown-option-${item.key}`,
266
+ onPress: () => handleItemSelect(item.key)
267
+ }, renderCheckbox(item))) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
359
268
  numberOfLines: 1,
360
269
  ellipsizeMode: "tail",
361
270
  style: [styles.optionText, styles.noOptions]
362
- }, "No options"))), react_1.default.createElement(react_native_1.View, {
271
+ }, "No options"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
363
272
  style: styles.footer
364
- }, renderButton(clearButtonText, handleClear), renderButton(confirmButtonText, handleConfirm, !(selectedItemKey === null || selectedItemKey === void 0 ? void 0 : selectedItemKey.length), true))))));
273
+ }, renderButton(clearButtonText, handleClear), renderButton(confirmButtonText, handleConfirm, !selectedItemKey?.length, true))))));
365
274
  };
366
- var useStyles = (0, themed_1.makeStyles)(function (theme) {
275
+ const useStyles = (0, _themed.makeStyles)(theme => {
367
276
  return {
368
277
  flx: {
369
278
  display: "flex",
@@ -574,4 +483,121 @@ var useStyles = (0, themed_1.makeStyles)(function (theme) {
574
483
  }
575
484
  };
576
485
  });
486
+ var _default = exports.default = (0, _themed.withTheme)(TapasMultiSelector);
487
+ //# sourceMappingURL=MultiSelector.js.map",
488
+ color: theme.colors.grey2,
489
+ minHeight: 48,
490
+ display: "flex",
491
+ alignItems: "center",
492
+ justifyContent: "center"
493
+ },
494
+ btn: {
495
+ display: "flex",
496
+ flexDirection: "row",
497
+ justifyContent: "space-between",
498
+ minHeight: 40,
499
+ width: "100%",
500
+ overflow: "hidden",
501
+ position: "relative"
502
+ },
503
+ solidBtn: {
504
+ borderWidth: 1,
505
+ borderRadius: 12,
506
+ borderStyle: "solid",
507
+ borderColor: theme.colors.grey2,
508
+ paddingLeft: 16,
509
+ paddingRight: 12,
510
+ paddingTop: 10,
511
+ paddingBottom: 10
512
+ },
513
+ alignCenter: {
514
+ alignSelf: "center"
515
+ },
516
+ labelCon: {
517
+ position: "absolute",
518
+ left: 16,
519
+ paddingLeft: 1,
520
+ paddingRight: 1,
521
+ display: "flex",
522
+ flexDirection: "row",
523
+ zIndex: 30
524
+ },
525
+ labelInner: {
526
+ display: "flex",
527
+ flexDirection: "row"
528
+ },
529
+ label_text: {
530
+ fontSize: 12,
531
+ color: theme.colors.primary
532
+ },
533
+ required: {
534
+ fontSize: 12,
535
+ fontWeight: "400",
536
+ color: theme.colors.colorToastNegative,
537
+ marginLeft: 1
538
+ },
539
+ msg: {
540
+ display: "flex",
541
+ flexDirection: "row",
542
+ paddingLeft: 16,
543
+ paddingRight: 8,
544
+ marginTop: 1,
545
+ width: "100%",
546
+ height: 15
547
+ },
548
+ msgText: {
549
+ fontSize: 12,
550
+ fontWeight: "400",
551
+ color: theme.colors.secondary
552
+ },
553
+ searchContainer: {
554
+ padding: 16,
555
+ borderBottomWidth: 1,
556
+ borderBottomColor: theme.colors.grey2
557
+ },
558
+ searchPlaceholder: {
559
+ color: theme.colors.grey2,
560
+ fontSize: 14
561
+ },
562
+ footer: {
563
+ display: "flex",
564
+ flexDirection: "row",
565
+ alignItems: "center",
566
+ justifyContent: "flex-end",
567
+ paddingHorizontal: 16,
568
+ paddingTop: 8,
569
+ borderTopWidth: 1,
570
+ borderTopColor: theme.colors.colorPrimaryBorder,
571
+ gap: 8
572
+ },
573
+ button: {
574
+ paddingHorizontal: 16,
575
+ paddingVertical: 8,
576
+ borderRadius: 8,
577
+ borderWidth: 1,
578
+ borderColor: theme.colors.grey2,
579
+ backgroundColor: theme.colors.white
580
+ },
581
+ primaryButton: {
582
+ backgroundColor: theme.colors.primary,
583
+ borderColor: theme.colors.primary
584
+ },
585
+ disabledButton: {
586
+ backgroundColor: theme.colors.grey3,
587
+ borderColor: theme.colors.grey3
588
+ },
589
+ buttonText: {
590
+ fontSize: 14,
591
+ fontWeight: "500",
592
+ color: theme.colors.primary
593
+ },
594
+ primaryButtonText: {
595
+ color: theme.colors.white
596
+ },
597
+ disabledButtonText: {
598
+ color: theme.colors.grey2
599
+ }
600
+ };
601
+ });
577
602
  exports.default = (0, themed_1.withTheme)(TapasMultiSelector);
603
+ //# sourceMappingURL=MultiSelector.js.map