@tecsinapse/react-web-kit 1.20.2 → 1.21.0

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 (384) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/babel.config.esm.js +0 -1
  3. package/babel.config.js +1 -6
  4. package/dist/components/atoms/Accordion/Accordion.js +10 -8
  5. package/dist/components/atoms/Accordion/Accordion.js.map +1 -1
  6. package/dist/components/atoms/Accordion/animations.js +2 -2
  7. package/dist/components/atoms/Accordion/animations.js.map +1 -1
  8. package/dist/components/atoms/Accordion/styled.js +33 -37
  9. package/dist/components/atoms/Accordion/styled.js.map +1 -1
  10. package/dist/components/atoms/Badge/Badge.js +7 -6
  11. package/dist/components/atoms/Badge/Badge.js.map +1 -1
  12. package/dist/components/atoms/Button/Button.js +14 -12
  13. package/dist/components/atoms/Button/Button.js.map +1 -1
  14. package/dist/components/atoms/Button/styled.js +14 -16
  15. package/dist/components/atoms/Button/styled.js.map +1 -1
  16. package/dist/components/atoms/Dropdown/index.js +6 -5
  17. package/dist/components/atoms/Dropdown/index.js.map +1 -1
  18. package/dist/components/atoms/Dropdown/styled.js +30 -21
  19. package/dist/components/atoms/Dropdown/styled.js.map +1 -1
  20. package/dist/components/atoms/Input/Input.js +26 -24
  21. package/dist/components/atoms/Input/Input.js.map +1 -1
  22. package/dist/components/atoms/Input/styled.js +5 -5
  23. package/dist/components/atoms/Input/styled.js.map +1 -1
  24. package/dist/components/atoms/InputMask/InputMask.js +26 -24
  25. package/dist/components/atoms/InputMask/InputMask.js.map +1 -1
  26. package/dist/components/atoms/InputMask/styled.js +5 -5
  27. package/dist/components/atoms/InputMask/styled.js.map +1 -1
  28. package/dist/components/atoms/Modal/Modal.js +8 -7
  29. package/dist/components/atoms/Modal/Modal.js.map +1 -1
  30. package/dist/components/atoms/Modal/animations.js +1 -1
  31. package/dist/components/atoms/Modal/animations.js.map +1 -1
  32. package/dist/components/atoms/Modal/styled.js +30 -24
  33. package/dist/components/atoms/Modal/styled.js.map +1 -1
  34. package/dist/components/atoms/Overlay/Overlay.js +8 -7
  35. package/dist/components/atoms/Overlay/Overlay.js.map +1 -1
  36. package/dist/components/atoms/Overlay/animations.js +1 -1
  37. package/dist/components/atoms/Overlay/animations.js.map +1 -1
  38. package/dist/components/atoms/Overlay/styled.js +21 -20
  39. package/dist/components/atoms/Overlay/styled.js.map +1 -1
  40. package/dist/components/atoms/Skeleton/Skeleton.js +11 -9
  41. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
  42. package/dist/components/atoms/Skeleton/styled.js +42 -66
  43. package/dist/components/atoms/Skeleton/styled.js.map +1 -1
  44. package/dist/components/atoms/Table/Body/TBody.js +5 -4
  45. package/dist/components/atoms/Table/Body/TBody.js.map +1 -1
  46. package/dist/components/atoms/Table/Cell/Td.js +5 -4
  47. package/dist/components/atoms/Table/Cell/Td.js.map +1 -1
  48. package/dist/components/atoms/Table/Cell/styled.js +34 -20
  49. package/dist/components/atoms/Table/Cell/styled.js.map +1 -1
  50. package/dist/components/atoms/Table/Container/TableContainer.js +5 -4
  51. package/dist/components/atoms/Table/Container/TableContainer.js.map +1 -1
  52. package/dist/components/atoms/Table/Container/styled.js +25 -15
  53. package/dist/components/atoms/Table/Container/styled.js.map +1 -1
  54. package/dist/components/atoms/Table/Footer/TFoot.js +5 -4
  55. package/dist/components/atoms/Table/Footer/TFoot.js.map +1 -1
  56. package/dist/components/atoms/Table/Footer/styled.js +5 -6
  57. package/dist/components/atoms/Table/Footer/styled.js.map +1 -1
  58. package/dist/components/atoms/Table/Header/THead.js +5 -4
  59. package/dist/components/atoms/Table/Header/THead.js.map +1 -1
  60. package/dist/components/atoms/Table/Header/Th.js +5 -4
  61. package/dist/components/atoms/Table/Header/Th.js.map +1 -1
  62. package/dist/components/atoms/Table/Header/styled.js +41 -38
  63. package/dist/components/atoms/Table/Header/styled.js.map +1 -1
  64. package/dist/components/atoms/Table/Row/Tr.js +5 -4
  65. package/dist/components/atoms/Table/Row/Tr.js.map +1 -1
  66. package/dist/components/atoms/Table/Row/styled.js +15 -9
  67. package/dist/components/atoms/Table/Row/styled.js.map +1 -1
  68. package/dist/components/atoms/Table/Table.js +5 -4
  69. package/dist/components/atoms/Table/Table.js.map +1 -1
  70. package/dist/components/atoms/Table/Toolbar/TableToolbar.js +7 -6
  71. package/dist/components/atoms/Table/Toolbar/TableToolbar.js.map +1 -1
  72. package/dist/components/atoms/Table/Toolbar/styled.js +5 -6
  73. package/dist/components/atoms/Table/Toolbar/styled.js.map +1 -1
  74. package/dist/components/atoms/Table/styled.js +10 -7
  75. package/dist/components/atoms/Table/styled.js.map +1 -1
  76. package/dist/components/atoms/Tag/Tag.js +6 -5
  77. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  78. package/dist/components/atoms/Tooltip/Tooltip.js +7 -5
  79. package/dist/components/atoms/Tooltip/Tooltip.js.map +1 -1
  80. package/dist/components/atoms/Tooltip/styled.js +41 -122
  81. package/dist/components/atoms/Tooltip/styled.js.map +1 -1
  82. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +7 -6
  83. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js.map +1 -1
  84. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js +16 -18
  85. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js.map +1 -1
  86. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +5 -4
  87. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -1
  88. package/dist/components/molecules/Breadcrumbs/styled.js +25 -18
  89. package/dist/components/molecules/Breadcrumbs/styled.js.map +1 -1
  90. package/dist/components/molecules/DatePicker/DatePicker.js +6 -5
  91. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  92. package/dist/components/molecules/DatePicker/Modal.js +6 -5
  93. package/dist/components/molecules/DatePicker/Modal.js.map +1 -1
  94. package/dist/components/molecules/DatePicker/styled.js +20 -30
  95. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  96. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +3 -2
  97. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  98. package/dist/components/molecules/DateTimePicker/Modal.js +6 -5
  99. package/dist/components/molecules/DateTimePicker/Modal.js.map +1 -1
  100. package/dist/components/molecules/DateTimePicker/styled.js +15 -29
  101. package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
  102. package/dist/components/molecules/Drawer/Drawer.js +10 -10
  103. package/dist/components/molecules/Drawer/Drawer.js.map +1 -1
  104. package/dist/components/molecules/Drawer/styled.js +35 -63
  105. package/dist/components/molecules/Drawer/styled.js.map +1 -1
  106. package/dist/components/molecules/Grid/Grid.js +15 -11
  107. package/dist/components/molecules/Grid/Grid.js.map +1 -1
  108. package/dist/components/molecules/Grid/Item/Item.js +22 -21
  109. package/dist/components/molecules/Grid/Item/Item.js.map +1 -1
  110. package/dist/components/molecules/Grid/Item/functions.js +4 -2
  111. package/dist/components/molecules/Grid/Item/functions.js.map +1 -1
  112. package/dist/components/molecules/IconTextButton/IconTextButton.js +10 -9
  113. package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
  114. package/dist/components/molecules/IconTextButton/TextComponent.js +12 -9
  115. package/dist/components/molecules/IconTextButton/TextComponent.js.map +1 -1
  116. package/dist/components/molecules/IconTextButton/styled.js +25 -18
  117. package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
  118. package/dist/components/molecules/InputPassword/InputPassword.js +5 -4
  119. package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
  120. package/dist/components/molecules/LabeledSwitch/LabelComponent.js +13 -10
  121. package/dist/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
  122. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +11 -10
  123. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
  124. package/dist/components/molecules/LabeledSwitch/styled.js +12 -17
  125. package/dist/components/molecules/LabeledSwitch/styled.js.map +1 -1
  126. package/dist/components/molecules/Masonry/Masonry.js +8 -6
  127. package/dist/components/molecules/Masonry/Masonry.js.map +1 -1
  128. package/dist/components/molecules/Masonry/styled.js +21 -28
  129. package/dist/components/molecules/Masonry/styled.js.map +1 -1
  130. package/dist/components/molecules/Menubar/MenuBlock/MenuBlock.js +24 -20
  131. package/dist/components/molecules/Menubar/MenuBlock/MenuBlock.js.map +1 -1
  132. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +10 -8
  133. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js.map +1 -1
  134. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js +5 -4
  135. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js.map +1 -1
  136. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js +21 -15
  137. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js.map +1 -1
  138. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/styled.js +21 -19
  139. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/styled.js.map +1 -1
  140. package/dist/components/molecules/Menubar/MenuBlock/styled.js +34 -33
  141. package/dist/components/molecules/Menubar/MenuBlock/styled.js.map +1 -1
  142. package/dist/components/molecules/Menubar/Menubar.js +14 -12
  143. package/dist/components/molecules/Menubar/Menubar.js.map +1 -1
  144. package/dist/components/molecules/Menubar/MostUsed/MostUsed.js +29 -25
  145. package/dist/components/molecules/Menubar/MostUsed/MostUsed.js.map +1 -1
  146. package/dist/components/molecules/Menubar/MostUsed/styled.js +41 -27
  147. package/dist/components/molecules/Menubar/MostUsed/styled.js.map +1 -1
  148. package/dist/components/molecules/Menubar/SearchResultItem/SearchResultItem.js +6 -5
  149. package/dist/components/molecules/Menubar/SearchResultItem/SearchResultItem.js.map +1 -1
  150. package/dist/components/molecules/Menubar/SearchResultItem/styled.js +21 -16
  151. package/dist/components/molecules/Menubar/SearchResultItem/styled.js.map +1 -1
  152. package/dist/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
  153. package/dist/components/molecules/Menubar/SearchResultItem/utils.js.map +1 -1
  154. package/dist/components/molecules/Menubar/styled.js +117 -96
  155. package/dist/components/molecules/Menubar/styled.js.map +1 -1
  156. package/dist/components/molecules/Select/Dropdown/Dropdown.js +16 -15
  157. package/dist/components/molecules/Select/Dropdown/Dropdown.js.map +1 -1
  158. package/dist/components/molecules/Select/Dropdown/components/SearchInput.js +7 -6
  159. package/dist/components/molecules/Select/Dropdown/components/SearchInput.js.map +1 -1
  160. package/dist/components/molecules/Select/Dropdown/styled.js +111 -107
  161. package/dist/components/molecules/Select/Dropdown/styled.js.map +1 -1
  162. package/dist/components/molecules/Select/Select.js +20 -18
  163. package/dist/components/molecules/Select/Select.js.map +1 -1
  164. package/dist/components/molecules/Select/SelectItem/SelectItem.js +13 -12
  165. package/dist/components/molecules/Select/SelectItem/SelectItem.js.map +1 -1
  166. package/dist/components/molecules/Select/SelectItem/styled.js +38 -39
  167. package/dist/components/molecules/Select/SelectItem/styled.js.map +1 -1
  168. package/dist/components/molecules/Select/styled.js +6 -11
  169. package/dist/components/molecules/Select/styled.js.map +1 -1
  170. package/dist/components/molecules/Snackbar/Snackbar.js +9 -8
  171. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  172. package/dist/components/molecules/Snackbar/styled.js +6 -7
  173. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  174. package/dist/components/molecules/TextArea/TextArea.js +27 -26
  175. package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
  176. package/dist/components/molecules/TextArea/styled.js +17 -11
  177. package/dist/components/molecules/TextArea/styled.js.map +1 -1
  178. package/dist/components/organisms/DataGrid/DataGrid.js +34 -32
  179. package/dist/components/organisms/DataGrid/DataGrid.js.map +1 -1
  180. package/dist/components/organisms/DataGrid/Footer/Footer.js +17 -15
  181. package/dist/components/organisms/DataGrid/Footer/Footer.js.map +1 -1
  182. package/dist/components/organisms/DataGrid/Footer/styled.js +75 -74
  183. package/dist/components/organisms/DataGrid/Footer/styled.js.map +1 -1
  184. package/dist/components/organisms/DataGrid/Header/Header.js +37 -32
  185. package/dist/components/organisms/DataGrid/Header/Header.js.map +1 -1
  186. package/dist/components/organisms/DataGrid/Header/styled.js +10 -8
  187. package/dist/components/organisms/DataGrid/Header/styled.js.map +1 -1
  188. package/dist/components/organisms/DataGrid/Row/Row.js +18 -14
  189. package/dist/components/organisms/DataGrid/Row/Row.js.map +1 -1
  190. package/dist/components/organisms/DataGrid/styled.js +10 -8
  191. package/dist/components/organisms/DataGrid/styled.js.map +1 -1
  192. package/dist/hooks/useClickAwayListener.js +3 -1
  193. package/dist/hooks/useClickAwayListener.js.map +1 -1
  194. package/esm/components/atoms/Accordion/Accordion.js +30 -10
  195. package/esm/components/atoms/Accordion/Accordion.js.map +1 -1
  196. package/esm/components/atoms/Accordion/animations.js +2 -2
  197. package/esm/components/atoms/Accordion/animations.js.map +1 -1
  198. package/esm/components/atoms/Accordion/styled.js +7 -7
  199. package/esm/components/atoms/Accordion/styled.js.map +1 -1
  200. package/esm/components/atoms/Badge/Badge.js +3 -1
  201. package/esm/components/atoms/Badge/Badge.js.map +1 -1
  202. package/esm/components/atoms/Button/Button.js +3 -1
  203. package/esm/components/atoms/Button/Button.js.map +1 -1
  204. package/esm/components/atoms/Button/hooks/useMouseHover.js +17 -4
  205. package/esm/components/atoms/Button/hooks/useMouseHover.js.map +1 -1
  206. package/esm/components/atoms/Button/hooks/useMousePressed.js +17 -4
  207. package/esm/components/atoms/Button/hooks/useMousePressed.js.map +1 -1
  208. package/esm/components/atoms/Button/styled.js +3 -3
  209. package/esm/components/atoms/Button/styled.js.map +1 -1
  210. package/esm/components/atoms/Dropdown/index.js +6 -2
  211. package/esm/components/atoms/Dropdown/index.js.map +1 -1
  212. package/esm/components/atoms/Dropdown/styled.js +2 -2
  213. package/esm/components/atoms/Dropdown/styled.js.map +1 -1
  214. package/esm/components/atoms/Input/Input.js +3 -1
  215. package/esm/components/atoms/Input/Input.js.map +1 -1
  216. package/esm/components/atoms/Input/styled.js +2 -2
  217. package/esm/components/atoms/Input/styled.js.map +1 -1
  218. package/esm/components/atoms/InputMask/InputMask.js +3 -1
  219. package/esm/components/atoms/InputMask/InputMask.js.map +1 -1
  220. package/esm/components/atoms/InputMask/styled.js +2 -2
  221. package/esm/components/atoms/InputMask/styled.js.map +1 -1
  222. package/esm/components/atoms/Modal/Modal.js +10 -2
  223. package/esm/components/atoms/Modal/Modal.js.map +1 -1
  224. package/esm/components/atoms/Modal/styled.js +2 -2
  225. package/esm/components/atoms/Modal/styled.js.map +1 -1
  226. package/esm/components/atoms/Overlay/Overlay.js +6 -2
  227. package/esm/components/atoms/Overlay/Overlay.js.map +1 -1
  228. package/esm/components/atoms/Overlay/styled.js +2 -2
  229. package/esm/components/atoms/Overlay/styled.js.map +1 -1
  230. package/esm/components/atoms/Skeleton/Skeleton.js +3 -1
  231. package/esm/components/atoms/Skeleton/Skeleton.js.map +1 -1
  232. package/esm/components/atoms/Skeleton/styled.js +8 -8
  233. package/esm/components/atoms/Skeleton/styled.js.map +1 -1
  234. package/esm/components/atoms/Table/Body/TBody.js +3 -1
  235. package/esm/components/atoms/Table/Body/TBody.js.map +1 -1
  236. package/esm/components/atoms/Table/Cell/Td.js +3 -1
  237. package/esm/components/atoms/Table/Cell/Td.js.map +1 -1
  238. package/esm/components/atoms/Table/Cell/styled.js +2 -2
  239. package/esm/components/atoms/Table/Cell/styled.js.map +1 -1
  240. package/esm/components/atoms/Table/Container/TableContainer.js +3 -1
  241. package/esm/components/atoms/Table/Container/TableContainer.js.map +1 -1
  242. package/esm/components/atoms/Table/Container/styled.js +3 -3
  243. package/esm/components/atoms/Table/Container/styled.js.map +1 -1
  244. package/esm/components/atoms/Table/Footer/TFoot.js +3 -1
  245. package/esm/components/atoms/Table/Footer/TFoot.js.map +1 -1
  246. package/esm/components/atoms/Table/Footer/styled.js +2 -2
  247. package/esm/components/atoms/Table/Footer/styled.js.map +1 -1
  248. package/esm/components/atoms/Table/Header/THead.js +3 -1
  249. package/esm/components/atoms/Table/Header/THead.js.map +1 -1
  250. package/esm/components/atoms/Table/Header/Th.js +3 -1
  251. package/esm/components/atoms/Table/Header/Th.js.map +1 -1
  252. package/esm/components/atoms/Table/Header/styled.js +5 -5
  253. package/esm/components/atoms/Table/Header/styled.js.map +1 -1
  254. package/esm/components/atoms/Table/Row/Tr.js +3 -1
  255. package/esm/components/atoms/Table/Row/Tr.js.map +1 -1
  256. package/esm/components/atoms/Table/Row/styled.js +2 -2
  257. package/esm/components/atoms/Table/Row/styled.js.map +1 -1
  258. package/esm/components/atoms/Table/Table.js +3 -1
  259. package/esm/components/atoms/Table/Table.js.map +1 -1
  260. package/esm/components/atoms/Table/Toolbar/TableToolbar.js +3 -1
  261. package/esm/components/atoms/Table/Toolbar/TableToolbar.js.map +1 -1
  262. package/esm/components/atoms/Table/Toolbar/styled.js +2 -2
  263. package/esm/components/atoms/Table/Toolbar/styled.js.map +1 -1
  264. package/esm/components/atoms/Table/styled.js +3 -3
  265. package/esm/components/atoms/Table/styled.js.map +1 -1
  266. package/esm/components/atoms/Tag/Tag.js +3 -1
  267. package/esm/components/atoms/Tag/Tag.js.map +1 -1
  268. package/esm/components/atoms/Tooltip/Tooltip.js +17 -4
  269. package/esm/components/atoms/Tooltip/Tooltip.js.map +1 -1
  270. package/esm/components/atoms/Tooltip/styled.js +15 -15
  271. package/esm/components/atoms/Tooltip/styled.js.map +1 -1
  272. package/esm/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js +3 -3
  273. package/esm/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js.map +1 -1
  274. package/esm/components/molecules/Breadcrumbs/Breadcrumbs.js +3 -1
  275. package/esm/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -1
  276. package/esm/components/molecules/Breadcrumbs/styled.js +3 -3
  277. package/esm/components/molecules/Breadcrumbs/styled.js.map +1 -1
  278. package/esm/components/molecules/DatePicker/DatePicker.js +18 -3
  279. package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -1
  280. package/esm/components/molecules/DatePicker/Modal.js +3 -1
  281. package/esm/components/molecules/DatePicker/Modal.js.map +1 -1
  282. package/esm/components/molecules/DatePicker/styled.js +5 -5
  283. package/esm/components/molecules/DatePicker/styled.js.map +1 -1
  284. package/esm/components/molecules/DateTimePicker/DateTimePicker.js +15 -2
  285. package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  286. package/esm/components/molecules/DateTimePicker/Modal.js +3 -1
  287. package/esm/components/molecules/DateTimePicker/Modal.js.map +1 -1
  288. package/esm/components/molecules/DateTimePicker/styled.js +4 -4
  289. package/esm/components/molecules/DateTimePicker/styled.js.map +1 -1
  290. package/esm/components/molecules/Drawer/Drawer.js +12 -4
  291. package/esm/components/molecules/Drawer/Drawer.js.map +1 -1
  292. package/esm/components/molecules/Drawer/styled.js +7 -7
  293. package/esm/components/molecules/Drawer/styled.js.map +1 -1
  294. package/esm/components/molecules/Grid/Grid.js +15 -7
  295. package/esm/components/molecules/Grid/Grid.js.map +1 -1
  296. package/esm/components/molecules/Grid/Item/Item.js +13 -5
  297. package/esm/components/molecules/Grid/Item/Item.js.map +1 -1
  298. package/esm/components/molecules/Grid/Item/functions.js +2 -2
  299. package/esm/components/molecules/Grid/Item/functions.js.map +1 -1
  300. package/esm/components/molecules/IconTextButton/IconTextButton.js +3 -1
  301. package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
  302. package/esm/components/molecules/IconTextButton/TextComponent.js +3 -3
  303. package/esm/components/molecules/IconTextButton/TextComponent.js.map +1 -1
  304. package/esm/components/molecules/IconTextButton/hooks/useIconTextButton.js +19 -5
  305. package/esm/components/molecules/IconTextButton/hooks/useIconTextButton.js.map +1 -1
  306. package/esm/components/molecules/IconTextButton/styled.js +4 -4
  307. package/esm/components/molecules/IconTextButton/styled.js.map +1 -1
  308. package/esm/components/molecules/InputPassword/InputPassword.js +18 -3
  309. package/esm/components/molecules/InputPassword/InputPassword.js.map +1 -1
  310. package/esm/components/molecules/LabeledSwitch/LabelComponent.js +5 -3
  311. package/esm/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
  312. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +3 -1
  313. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
  314. package/esm/components/molecules/LabeledSwitch/styled.js +4 -4
  315. package/esm/components/molecules/LabeledSwitch/styled.js.map +1 -1
  316. package/esm/components/molecules/Masonry/styled.js +4 -4
  317. package/esm/components/molecules/Masonry/styled.js.map +1 -1
  318. package/esm/components/molecules/Menubar/MenuBlock/MenuBlock.js +1 -1
  319. package/esm/components/molecules/Menubar/MenuBlock/MenuBlock.js.map +1 -1
  320. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +16 -3
  321. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js.map +1 -1
  322. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js +4 -4
  323. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js.map +1 -1
  324. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/styled.js +3 -3
  325. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/styled.js.map +1 -1
  326. package/esm/components/molecules/Menubar/MenuBlock/styled.js +7 -7
  327. package/esm/components/molecules/Menubar/MenuBlock/styled.js.map +1 -1
  328. package/esm/components/molecules/Menubar/Menubar.js +30 -12
  329. package/esm/components/molecules/Menubar/Menubar.js.map +1 -1
  330. package/esm/components/molecules/Menubar/MostUsed/MostUsed.js +2 -2
  331. package/esm/components/molecules/Menubar/MostUsed/MostUsed.js.map +1 -1
  332. package/esm/components/molecules/Menubar/MostUsed/styled.js +3 -3
  333. package/esm/components/molecules/Menubar/MostUsed/styled.js.map +1 -1
  334. package/esm/components/molecules/Menubar/SearchResultItem/styled.js +5 -5
  335. package/esm/components/molecules/Menubar/SearchResultItem/styled.js.map +1 -1
  336. package/esm/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
  337. package/esm/components/molecules/Menubar/SearchResultItem/utils.js.map +1 -1
  338. package/esm/components/molecules/Menubar/animations.js +7 -3
  339. package/esm/components/molecules/Menubar/animations.js.map +1 -1
  340. package/esm/components/molecules/Menubar/styled.js +11 -11
  341. package/esm/components/molecules/Menubar/styled.js.map +1 -1
  342. package/esm/components/molecules/Menubar/utils.js +1 -1
  343. package/esm/components/molecules/Menubar/utils.js.map +1 -1
  344. package/esm/components/molecules/Select/Dropdown/Dropdown.js +20 -6
  345. package/esm/components/molecules/Select/Dropdown/Dropdown.js.map +1 -1
  346. package/esm/components/molecules/Select/Dropdown/styled.js +13 -13
  347. package/esm/components/molecules/Select/Dropdown/styled.js.map +1 -1
  348. package/esm/components/molecules/Select/Select.js +25 -4
  349. package/esm/components/molecules/Select/Select.js.map +1 -1
  350. package/esm/components/molecules/Select/SelectItem/SelectItem.js +28 -6
  351. package/esm/components/molecules/Select/SelectItem/SelectItem.js.map +1 -1
  352. package/esm/components/molecules/Select/SelectItem/styled.js +6 -6
  353. package/esm/components/molecules/Select/SelectItem/styled.js.map +1 -1
  354. package/esm/components/molecules/Select/styled.js +3 -3
  355. package/esm/components/molecules/Select/styled.js.map +1 -1
  356. package/esm/components/molecules/Snackbar/Snackbar.js +3 -1
  357. package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -1
  358. package/esm/components/molecules/Snackbar/styled.js +3 -3
  359. package/esm/components/molecules/Snackbar/styled.js.map +1 -1
  360. package/esm/components/molecules/TextArea/TextArea.js +3 -1
  361. package/esm/components/molecules/TextArea/TextArea.js.map +1 -1
  362. package/esm/components/molecules/TextArea/styled.js +3 -3
  363. package/esm/components/molecules/TextArea/styled.js.map +1 -1
  364. package/esm/components/organisms/DataGrid/DataGrid.js +27 -13
  365. package/esm/components/organisms/DataGrid/DataGrid.js.map +1 -1
  366. package/esm/components/organisms/DataGrid/Footer/Footer.js +20 -8
  367. package/esm/components/organisms/DataGrid/Footer/Footer.js.map +1 -1
  368. package/esm/components/organisms/DataGrid/Footer/styled.js +12 -12
  369. package/esm/components/organisms/DataGrid/Footer/styled.js.map +1 -1
  370. package/esm/components/organisms/DataGrid/Header/Header.js +21 -8
  371. package/esm/components/organisms/DataGrid/Header/Header.js.map +1 -1
  372. package/esm/components/organisms/DataGrid/Header/styled.js +2 -2
  373. package/esm/components/organisms/DataGrid/Header/styled.js.map +1 -1
  374. package/esm/components/organisms/DataGrid/Row/Row.js +1 -1
  375. package/esm/components/organisms/DataGrid/Row/Row.js.map +1 -1
  376. package/esm/components/organisms/DataGrid/styled.js +2 -2
  377. package/esm/components/organisms/DataGrid/styled.js.map +1 -1
  378. package/esm/components/organisms/DataGrid/utils.js +14 -1
  379. package/esm/components/organisms/DataGrid/utils.js.map +1 -1
  380. package/esm/hooks/useClickAwayListener.js +2 -5
  381. package/esm/hooks/useClickAwayListener.js.map +1 -1
  382. package/esm/hooks/useWindowSize.js +15 -2
  383. package/esm/hooks/useWindowSize.js.map +1 -1
  384. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"DatePicker.js","names":["Calendar","DatePicker","DatePickerCore","React","useCallback","useMemo","useState","Dropdown","value","type","rest","visible","setVisible","show","close","getYear","lowest","undefined","Date","getFullYear","getMonth","calendar"],"sources":["../../../../src/components/molecules/DatePicker/DatePicker.tsx"],"sourcesContent":["import {\n Calendar,\n DatePicker as DatePickerCore,\n DatePickerProps,\n DateRange,\n SelectionType,\n} from '@tecsinapse/react-core';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { Dropdown } from '../../atoms/Dropdown';\n\nexport type WebDatePickerProps<T extends SelectionType> = Omit<\n DatePickerProps<T>,\n | 'CalendarComponent'\n | 'renderCalendar'\n | 'requestCloseCalendar'\n | 'requestShowCalendar'\n>;\n\nexport const DatePicker = <T extends SelectionType>({\n value,\n type,\n ...rest\n}: WebDatePickerProps<T>): JSX.Element => {\n const [visible, setVisible] = useState(false);\n const show = useCallback(() => setVisible(true), []);\n const close = useCallback(() => setVisible(false), []);\n\n const getYear = useMemo(() => {\n if (value) {\n if (type === 'range') {\n if ((value as DateRange).lowest !== undefined)\n return new Date((value as DateRange).lowest).getFullYear();\n } else {\n return new Date(value as Date).getFullYear();\n }\n }\n return undefined;\n }, [value]);\n\n const getMonth = useMemo(() => {\n if (value) {\n if (type === 'range') {\n if ((value as DateRange).lowest !== undefined)\n return new Date((value as DateRange).lowest).getMonth();\n } else {\n return new Date(value as Date).getMonth();\n }\n }\n return undefined;\n }, [value]);\n\n return (\n <DatePickerCore\n {...rest}\n CalendarComponent={Calendar}\n value={value}\n type={type}\n year={getYear}\n month={getMonth}\n requestShowCalendar={show}\n requestCloseCalendar={close}\n renderCalendar={calendar => (\n <Dropdown visible={visible} setVisible={setVisible}>\n {calendar}\n </Dropdown>\n )}\n />\n );\n};\n"],"mappings":";;;;;;AAAA,SACEA,QADF,EAEEC,UAAU,IAAIC,cAFhB,QAMO,wBANP;AAOA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,EAAsCC,QAAtC,QAAsD,OAAtD;AACA,SAASC,QAAT;AAUA,OAAO,IAAMN,UAAU,GAAG,SAAbA,UAAa,OAIgB;EAAA,IAHxCO,KAGwC,QAHxCA,KAGwC;EAAA,IAFxCC,IAEwC,QAFxCA,IAEwC;EAAA,IADrCC,IACqC;;EACxC,gBAA8BJ,QAAQ,CAAC,KAAD,CAAtC;EAAA,IAAOK,OAAP;EAAA,IAAgBC,UAAhB;;EACA,IAAMC,IAAI,GAAGT,WAAW,CAAC;IAAA,OAAMQ,UAAU,CAAC,IAAD,CAAhB;EAAA,CAAD,EAAyB,EAAzB,CAAxB;EACA,IAAME,KAAK,GAAGV,WAAW,CAAC;IAAA,OAAMQ,UAAU,CAAC,KAAD,CAAhB;EAAA,CA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React","useCallback","useMemo","useState","Dropdown","value","type","rest","visible","setVisible","show","close","getYear","lowest","undefined","Date","getFullYear","getMonth","calendar"],"sources":["../../../../src/components/molecules/DatePicker/DatePicker.tsx"],"sourcesContent":["import {\n Calendar,\n DatePicker as DatePickerCore,\n DatePickerProps,\n DateRange,\n SelectionType,\n} from '@tecsinapse/react-core';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { Dropdown } from '../../atoms/Dropdown';\n\nexport type WebDatePickerProps<T extends SelectionType> = Omit<\n DatePickerProps<T>,\n | 'CalendarComponent'\n | 'renderCalendar'\n | 'requestCloseCalendar'\n | 'requestShowCalendar'\n>;\n\nexport const DatePicker = <T extends SelectionType>({\n value,\n type,\n ...rest\n}: WebDatePickerProps<T>): JSX.Element => {\n const [visible, setVisible] = useState(false);\n const show = useCallback(() => setVisible(true), []);\n const close = useCallback(() => setVisible(false), []);\n\n const getYear = useMemo(() => {\n if (value) {\n if (type === 'range') {\n if ((value as DateRange).lowest !== undefined)\n return new Date((value as DateRange).lowest).getFullYear();\n } else {\n return new Date(value as Date).getFullYear();\n }\n }\n return undefined;\n }, [value]);\n\n const getMonth = useMemo(() => {\n if (value) {\n if (type === 'range') {\n if ((value as DateRange).lowest !== undefined)\n return new Date((value as DateRange).lowest).getMonth();\n } else {\n return new Date(value as Date).getMonth();\n }\n }\n return undefined;\n }, [value]);\n\n return (\n <DatePickerCore\n {...rest}\n CalendarComponent={Calendar}\n value={value}\n type={type}\n year={getYear}\n month={getMonth}\n requestShowCalendar={show}\n requestCloseCalendar={close}\n renderCalendar={calendar => (\n <Dropdown visible={visible} setVisible={setVisible}>\n {calendar}\n </Dropdown>\n )}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SACEA,QADF,EAEEC,UAAU,IAAIC,cAFhB,QAMO,wBANP;AAOA,OAAOC,KAAP,IAAgBC,WAAhB,EAA6BC,OAA7B,EAAsCC,QAAtC,QAAsD,OAAtD;AACA,SAASC,QAAT;AA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A,OACE,oBAAC,cAAD,eACME,IADN;IAEE,iBAAiB,EAAEV,QAFrB;IAGE,KAAK,EAAEQ,KAHT;IAIE,IAAI,EAAEC,IAJR;IAKE,IAAI,EAAEM,OALR;IAME,KAAK,EAAEK,QANT;IAOE,mBAAmB,EAAEP,IAPvB;IAQE,oBAAoB,EAAEC,KARxB;IASE,cAAc,EAAE,wBAAAO,QAAQ;MAAA,OACtB,oBAAC,QAAD;QAAU,OAAO,EAAEV,OAAnB;QAA4B,UAAU,EAAEC;MAAxC,GACGS,QADH,CADsB;IAAA;EAT1B,GADF;AAiBD,CAlDM"}
@@ -2,6 +2,8 @@ var _excluded = ["onRequestClose", "children"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
5
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
8
 
7
9
  import { PressableSurface } from '@tecsinapse/react-core';
@@ -12,7 +14,7 @@ import { Backdrop, ModalContent } from "./styled";
12
14
  var Component = function Component(_ref) {
13
15
  var onRequestClose = _ref.onRequestClose,
14
16
  children = _ref.children,
15
- modalProps = _objectWithoutPropertiesLoose(_ref, _excluded);
17
+ modalProps = _objectWithoutProperties(_ref, _excluded);
16
18
 
17
19
  return React.createElement(RNModal, _extends({
18
20
  transparent: true,
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","names":["PressableSurface","React","Modal","RNModal","Backdrop","ModalContent","Component","onRequestClose","children","modalProps"],"sources":["../../../../src/components/molecules/DatePicker/Modal.tsx"],"sourcesContent":["import {\n CalendarProps,\n PressableSurface,\n SelectionType,\n} from '@tecsinapse/react-core';\nimport * as React from 'react';\nimport { Modal as RNModal, ModalProps } from 'react-native';\nimport { Backdrop, ModalContent } from './styled';\n\nconst Component = <T extends SelectionType>({\n onRequestClose,\n children,\n ...modalProps\n}: CalendarProps<T> & ModalProps & { children: JSX.Element }): JSX.Element => {\n return (\n <RNModal\n transparent\n hardwareAccelerated\n statusBarTranslucent\n {...modalProps}\n onRequestClose={onRequestClose}\n >\n <Backdrop onPress={onRequestClose} effect=\"none\">\n <PressableSurface>\n <ModalContent>{children}</ModalContent>\n </PressableSurface>\n </Backdrop>\n </RNModal>\n );\n};\n\nexport const Modal = Component;\n"],"mappings":";;;;;;AAAA,SAEEA,gBAFF,QAIO,wBAJP;AAKA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,KAAK,IAAIC,OAAlB;AACA,SAASC,QAAT,EAAmBC,YAAnB;;AAEA,IAAMC,SAAS,GAAG,SAAZA,SAAY,OAI4D;EAAA,IAH5EC,cAG4E,QAH5EA,cAG4E;EAAA,IAF5EC,QAE4E,QAF5EA,QAE4E;EAAA,IADzEC,UACyE;;EAC5E,OACE,oBAAC,OAAD;IACE,WAAW,MADb;IAEE,mBAAmB,MAFrB;IAGE,oBAAoB;EAHtB,GAIMA,UAJN;IAKE,cAAc,EAAEF;EALlB,IAOE,oBAAC,QAAD;IAAU,OAAO,EAAEA,cAAnB;IAAmC,MAAM,EAAC;EAA1C,GACE,oBAAC,gBAAD,QACE,oBAAC,YAAD,QAAeC,QAAf,CADF,CADF,CAPF,CADF;AAeD,CApBD;;AAsBA,OAAO,IAAMN,KAAK,GAAGI,SAAd"}
1
+ {"version":3,"file":"Modal.js","names":["PressableSurface","React","Modal","RNModal","Backdrop","ModalContent","Component","onRequestClose","children","modalProps"],"sources":["../../../../src/components/molecules/DatePicker/Modal.tsx"],"sourcesContent":["import {\n CalendarProps,\n PressableSurface,\n SelectionType,\n} from '@tecsinapse/react-core';\nimport * as React from 'react';\nimport { Modal as RNModal, ModalProps } from 'react-native';\nimport { Backdrop, ModalContent } from './styled';\n\nconst Component = <T extends SelectionType>({\n onRequestClose,\n children,\n ...modalProps\n}: CalendarProps<T> & ModalProps & { children: JSX.Element }): JSX.Element => {\n return (\n <RNModal\n transparent\n hardwareAccelerated\n statusBarTranslucent\n {...modalProps}\n onRequestClose={onRequestClose}\n >\n <Backdrop onPress={onRequestClose} effect=\"none\">\n <PressableSurface>\n <ModalContent>{children}</ModalContent>\n </PressableSurface>\n </Backdrop>\n </RNModal>\n );\n};\n\nexport const Modal = Component;\n"],"mappings":";;;;;;;;AAAA,SAEEA,gBAFF,QAIO,wBAJP;AAKA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,SAASC,KAAK,IAAIC,OAAlB;AACA,SAASC,QAAT,EAAmBC,YAAnB;;AAEA,IAAMC,SAAS,GAAG,SAAZA,SAAY,OAI4D;EAAA,IAH5EC,cAG4E,QAH5EA,cAG4E;EAAA,IAF5EC,QAE4E,QAF5EA,QAE4E;EAAA,IADzEC,UACyE;;EAC5E,OACE,oBAAC,OAAD;IACE,WAAW,MADb;IAEE,mBAAmB,MAFrB;IAGE,oBAAoB;EAHtB,GAIMA,UAJN;IAKE,cAAc,EAAEF;EALlB,IAOE,oBAAC,QAAD;IAAU,OAAO,EAAEA,cAAnB;IAAmC,MAAM,EAAC;EAA1C,GACE,oBAAC,gBAAD,QACE,oBAAC,YAAD,QAAeC,QAAf,CADF,CADF,CAPF,CADF;AAeD,CApBD;;AAsBA,OAAO,IAAMN,KAAK,GAAGI,SAAd"}
@@ -1,17 +1,17 @@
1
1
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
2
2
 
3
- function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
4
 
5
5
  import styled, { css } from '@emotion/native';
6
6
  import { hex2rgba, PressableSurface } from '@tecsinapse/react-core';
7
7
  import { Platform } from "react-native-web";
8
8
  var isWeb = Platform.OS === 'web';
9
- export var Backdrop = styled(PressableSurface)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n ", "\n"])), function (_ref) {
9
+ export var Backdrop = styled(PressableSurface)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
10
10
  var theme = _ref.theme;
11
- return isWeb ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n align-items: center;\n background-color: ", ";\n height: 100vh;\n "])), hex2rgba(theme.miscellaneous.overlay, 0.5)) : css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n justify-content: flex-end;\n background-color: ", ";\n height: 100%;\n "])), hex2rgba(theme.miscellaneous.overlay, 0.5));
11
+ return isWeb ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n justify-content: center;\n align-items: center;\n background-color: ", ";\n height: 100vh;\n "])), hex2rgba(theme.miscellaneous.overlay, 0.5)) : css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n justify-content: flex-end;\n background-color: ", ";\n height: 100%;\n "])), hex2rgba(theme.miscellaneous.overlay, 0.5));
12
12
  });
13
- export var ModalContent = styled.View(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n ", "\n overflow: hidden;\n"])), function (_ref2) {
13
+ export var ModalContent = styled.View(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: transparent;\n ", "\n overflow: hidden;\n"])), function (_ref2) {
14
14
  var borderRadius = _ref2.theme.borderRadius;
15
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n ", "\n "])), isWeb ? "\n border-radius: " + borderRadius.micro + ";\n " : "\n border-top-left-radius: " + borderRadius.deca + ";\n border-top-right-radius: " + borderRadius.deca + ";\n ");
15
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n "])), isWeb ? "\n border-radius: ".concat(borderRadius.micro, ";\n ") : "\n border-top-left-radius: ".concat(borderRadius.deca, ";\n border-top-right-radius: ").concat(borderRadius.deca, ";\n "));
16
16
  });
17
17
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","css","hex2rgba","PressableSurface","Platform","isWeb","OS","Backdrop","theme","miscellaneous","overlay","ModalContent","View","borderRadius","micro","deca"],"sources":["../../../../src/components/molecules/DatePicker/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { hex2rgba, PressableSurface, StyleProps } from '@tecsinapse/react-core';\nimport { Platform } from 'react-native';\n\nconst isWeb = Platform.OS === 'web';\n\nexport const Backdrop = styled(PressableSurface)<Partial<StyleProps>>`\n ${({ theme }) =>\n isWeb\n ? css`\n justify-content: center;\n align-items: center;\n background-color: ${hex2rgba(theme.miscellaneous.overlay, 0.5)};\n height: 100vh;\n `\n : css`\n justify-content: flex-end;\n background-color: ${hex2rgba(theme.miscellaneous.overlay, 0.5)};\n height: 100%;\n `}\n`;\n\nexport const ModalContent = styled.View<Partial<StyleProps>>`\n background-color: transparent;\n ${({ theme: { borderRadius } }) => css`\n ${isWeb\n ? `\n border-radius: ${borderRadius.micro};\n `\n : `\n border-top-left-radius: ${borderRadius.deca};\n border-top-right-radius: ${borderRadius.deca};\n `}\n `}\n overflow: hidden;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,iBAA5B;AACA,SAASC,QAAT,EAAmBC,gBAAnB,QAAuD,wBAAvD;AACA,SAASC,QAAT;AAEA,IAAMC,KAAK,GAAGD,QAAQ,CAACE,EAAT,KAAgB,KAA9B;AAEA,OAAO,IAAMC,QAAQ,GAAGP,MAAM,CAACG,gBAAD,CAAT,qFACjB;EAAA,IAAGK,KAAH,QAAGA,KAAH;EAAA,OACAH,KAAK,GACDJ,GADC,wNAIqBC,QAAQ,CAACM,KAAK,CAACC,aAAN,CAAoBC,OAArB,EAA8B,GAA9B,CAJ7B,IAODT,GAPC,yLASqBC,QAAQ,CAACM,KAAK,CAACC,aAAN,CAAoBC,OAArB,EAA8B,GAA9B,CAT7B,CADL;AAAA,CADiB,CAAd;AAgBP,OAAO,IAAMC,YAAY,GAAGX,MAAM,CAACY,IAAV,8IAErB;EAAA,IAAYC,YAAZ,SAAGL,KAAH,CAAYK,YAAZ;EAAA,OAAiCZ,GAAjC,2FACEI,KAAK,+BAEYQ,YAAY,CAACC,KAFzB,oDAKqBD,YAAY,CAACE,IALlC,0CAMsBF,YAAY,CAACE,IANnC,YADP;AAAA,CAFqB,CAAlB"}
1
+ {"version":3,"file":"styled.js","names":["styled","css","hex2rgba","PressableSurface","Platform","isWeb","OS","Backdrop","theme","miscellaneous","overlay","ModalContent","View","borderRadius","micro","deca"],"sources":["../../../../src/components/molecules/DatePicker/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport { hex2rgba, PressableSurface, StyleProps } from '@tecsinapse/react-core';\nimport { Platform } from 'react-native';\n\nconst isWeb = Platform.OS === 'web';\n\nexport const Backdrop = styled(PressableSurface)<Partial<StyleProps>>`\n ${({ theme }) =>\n isWeb\n ? css`\n justify-content: center;\n align-items: center;\n background-color: ${hex2rgba(theme.miscellaneous.overlay, 0.5)};\n height: 100vh;\n `\n : css`\n justify-content: flex-end;\n background-color: ${hex2rgba(theme.miscellaneous.overlay, 0.5)};\n height: 100%;\n `}\n`;\n\nexport const ModalContent = styled.View<Partial<StyleProps>>`\n background-color: transparent;\n ${({ theme: { borderRadius } }) => css`\n ${isWeb\n ? `\n border-radius: ${borderRadius.micro};\n `\n : `\n border-top-left-radius: ${borderRadius.deca};\n border-top-right-radius: ${borderRadius.deca};\n `}\n `}\n overflow: hidden;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,iBAA5B;AACA,SAASC,QAAT,EAAmBC,gBAAnB,QAAuD,wBAAvD;AACA,SAASC,QAAT;AAEA,IAAMC,KAAK,GAAGD,QAAQ,CAACE,EAAT,KAAgB,KAA9B;AAEA,OAAO,IAAMC,QAAQ,GAAGP,MAAM,CAACG,gBAAD,CAAT,gFACjB;EAAA,IAAGK,KAAH,QAAGA,KAAH;EAAA,OACAH,KAAK,GACDJ,GADC,mNAIqBC,QAAQ,CAACM,KAAK,CAACC,aAAN,CAAoBC,OAArB,EAA8B,GAA9B,CAJ7B,IAODT,GAPC,oLASqBC,QAAQ,CAACM,KAAK,CAACC,aAAN,CAAoBC,OAArB,EAA8B,GAA9B,CAT7B,CADL;AAAA,CADiB,CAAd;AAgBP,OAAO,IAAMC,YAAY,GAAGX,MAAM,CAACY,IAAV,yIAErB;EAAA,IAAYC,YAAZ,SAAGL,KAAH,CAAYK,YAAZ;EAAA,OAAiCZ,GAAjC,sFACEI,KAAK,oCAEYQ,YAAY,CAACC,KAFzB,yDAKqBD,YAAY,CAACE,IALlC,+CAMsBF,YAAY,CAACE,IANnC,YADP;AAAA,CAFqB,CAAlB"}
@@ -1,3 +1,15 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
9
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
+
11
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+
1
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
14
 
3
15
  import { DateTimePicker as DateTimePickerCore } from '@tecsinapse/react-core';
@@ -7,8 +19,9 @@ export var DateTimePicker = function DateTimePicker(_ref) {
7
19
  var rest = _extends({}, _ref);
8
20
 
9
21
  var _useState = useState(false),
10
- visible = _useState[0],
11
- setVisible = _useState[1];
22
+ _useState2 = _slicedToArray(_useState, 2),
23
+ visible = _useState2[0],
24
+ setVisible = _useState2[1];
12
25
 
13
26
  var show = useCallback(function () {
14
27
  return setVisible(true);
@@ -1 +1 @@
1
- {"version":3,"file":"DateTimePicker.js","names":["DateTimePicker","DateTimePickerCore","React","useCallback","useState","Dropdown","rest","visible","setVisible","show","close","selector"],"sources":["../../../../src/components/molecules/DateTimePicker/DateTimePicker.tsx"],"sourcesContent":["import {\n DateTimePicker as DateTimePickerCore,\n DateTimePickerProps,\n} from '@tecsinapse/react-core';\nimport React, { FC, useCallback, useState } from 'react';\nimport { Dropdown } from '../../atoms/Dropdown';\n\nexport type WebDateTimePickerProps = Omit<\n DateTimePickerProps,\n 'renderSelector' | 'requestShowSelector' | 'requestCloseSelector'\n>;\n\nexport const DateTimePicker: FC<WebDateTimePickerProps> = ({ ...rest }) => {\n const [visible, setVisible] = useState<boolean>(false);\n\n const show = useCallback(() => setVisible(true), []);\n const close = useCallback(() => setVisible(false), []);\n\n return (\n <DateTimePickerCore\n {...rest}\n requestShowSelector={show}\n requestCloseSelector={close}\n renderSelector={selector => (\n <Dropdown visible={visible} setVisible={setVisible}>\n {selector}\n </Dropdown>\n )}\n />\n );\n};\n"],"mappings":";;AAAA,SACEA,cAAc,IAAIC,kBADpB,QAGO,wBAHP;AAIA,OAAOC,KAAP,IAAoBC,WAApB,EAAiCC,QAAjC,QAAiD,OAAjD;AACA,SAASC,QAAT;AAOA,OAAO,IAAML,cAA0C,GAAG,SAA7CA,cAA6C,OAAiB;EAAA,IAAXM,IAAW;;EACzE,gBAA8BF,QAAQ,CAAU,KAAV,CAAtC;EAAA,IAAOG,OAAP;EAAA,IAAgBC,UAAhB;;EAEA,IAAMC,IAAI,GAAGN,WAAW,CAAC;IAAA,OAAMK,UAAU,CAAC,IAAD,CAAhB;EAAA,CAAD,EAAyB,EAAzB,CAAxB;EACA,IAAME,KAAK,GAAGP,WAAW,CAAC;IAAA,OAAMK,UAAU,CAAC,KAAD,CAAhB;EAAA,CAAD,EAA0B,EAA1B,CAAzB;EAEA,OACE,oBAAC,kBAAD,eACMF,IADN;IAEE,mBAAmB,EAAEG,IAFvB;IAGE,oBAAoB,EAAEC,KAHxB;IAIE,cAAc,EAAE,wBAAAC,QAAQ;MAAA,OACtB,oBAAC,QAAD;QAAU,OAAO,EAAEJ,OAAnB;QAA4B,UAAU,EAAEC;MAAxC,GACGG,QADH,CADsB;IAAA;EAJ1B,GADF;AAYD,CAlBM"}
1
+ {"version":3,"file":"DateTimePicker.js","names":["DateTimePicker","DateTimePickerCore","React","useCallback","useState","Dropdown","rest","visible","setVisible","show","close","selector"],"sources":["../../../../src/components/molecules/DateTimePicker/DateTimePicker.tsx"],"sourcesContent":["import {\n DateTimePicker as DateTimePickerCore,\n DateTimePickerProps,\n} from '@tecsinapse/react-core';\nimport React, { FC, useCallback, useState } from 'react';\nimport { Dropdown } from '../../atoms/Dropdown';\n\nexport type WebDateTimePickerProps = Omit<\n DateTimePickerProps,\n 'renderSelector' | 'requestShowSelector' | 'requestCloseSelector'\n>;\n\nexport const DateTimePicker: FC<WebDateTimePickerProps> = ({ ...rest }) => {\n const [visible, setVisible] = useState<boolean>(false);\n\n const show = useCallback(() => setVisible(true), []);\n const close = useCallback(() => setVisible(false), []);\n\n return (\n <DateTimePickerCore\n {...rest}\n requestShowSelector={show}\n requestCloseSelector={close}\n renderSelector={selector => (\n <Dropdown visible={visible} setVisible={setVisible}>\n {selector}\n </Dropdown>\n )}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,SACEA,cAAc,IAAIC,kBADpB,QAGO,wBAHP;AAIA,OAAOC,KAAP,IAAoBC,WAApB,EAAiCC,QAAjC,QAAiD,OAAjD;AACA,SAASC,QAAT;AAOA,OAAO,IAAML,cAA0C,GAAG,SAA7CA,cAA6C,OAAiB;EAAA,IAAXM,IAAW;;EACzE,gBAA8BF,QAAQ,CAAU,KAAV,CAAtC;EAAA;EAAA,IAAOG,OAAP;EAAA,IAAgBC,UAAhB;;EAEA,IAAMC,IAAI,GAAGN,WAAW,CAAC;IAAA,OAAMK,UAAU,CAAC,IAAD,CAAhB;EAAA,CAAD,EAAyB,EAAzB,CAAxB;EACA,IAAME,KAAK,GAAGP,WAAW,CAAC;IAAA,OAAMK,UAAU,CAAC,KAAD,CAAhB;EAAA,CAAD,EAA0B,EAA1B,CAAzB;EAEA,OACE,oBAAC,kBAAD,eACMF,IADN;IAEE,mBAAmB,EAAEG,IAFvB;IAGE,oBAAoB,EAAEC,KAHxB;IAIE,cAAc,EAAE,wBAAAC,QAAQ;MAAA,OACtB,oBAAC,QAAD;QAAU,OAAO,EAAEJ,OAAnB;QAA4B,UAAU,EAAEC;MAAxC,GACGG,QADH,CADsB;IAAA;EAJ1B,GADF;AAYD,CAlBM"}
@@ -2,6 +2,8 @@ var _excluded = ["onRequestClose", "children"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
5
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
8
 
7
9
  import * as React from 'react';
@@ -11,7 +13,7 @@ import { Backdrop, ModalContent } from "./styled";
11
13
  var Component = function Component(_ref) {
12
14
  var onRequestClose = _ref.onRequestClose,
13
15
  children = _ref.children,
14
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
16
+ rest = _objectWithoutProperties(_ref, _excluded);
15
17
 
16
18
  return React.createElement(RNModal, _extends({
17
19
  transparent: true,
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","names":["React","Modal","RNModal","Backdrop","ModalContent","Component","onRequestClose","children","rest"],"sources":["../../../../src/components/molecules/DateTimePicker/Modal.tsx"],"sourcesContent":["import { DateTimeSelectorProps } from '@tecsinapse/react-core';\nimport * as React from 'react';\nimport { Modal as RNModal, ModalProps } from 'react-native';\nimport { Backdrop, ModalContent } from './styled';\n\nconst Component: React.FC<DateTimeSelectorProps & ModalProps> = ({\n onRequestClose,\n children,\n ...rest\n}) => {\n return (\n <RNModal\n transparent\n hardwareAccelerated\n statusBarTranslucent\n {...rest}\n onRequestClose={onRequestClose}\n >\n <Backdrop onPress={onRequestClose} effect=\"none\">\n <ModalContent>{children}</ModalContent>\n </Backdrop>\n </RNModal>\n );\n};\n\nexport const Modal = Component;\n"],"mappings":";;;;;;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,KAAK,IAAIC,OAAlB;AACA,SAASC,QAAT,EAAmBC,YAAnB;;AAEA,IAAMC,SAAuD,GAAG,SAA1DA,SAA0D,OAI1D;EAAA,IAHJC,cAGI,QAHJA,cAGI;EAAA,IAFJC,QAEI,QAFJA,QAEI;EAAA,IADDC,IACC;;EACJ,OACE,oBAAC,OAAD;IACE,WAAW,MADb;IAEE,mBAAmB,MAFrB;IAGE,oBAAoB;EAHtB,GAIMA,IAJN;IAKE,cAAc,EAAEF;EALlB,IAOE,oBAAC,QAAD;IAAU,OAAO,EAAEA,cAAnB;IAAmC,MAAM,EAAC;EAA1C,GACE,oBAAC,YAAD,QAAeC,QAAf,CADF,CAPF,CADF;AAaD,CAlBD;;AAoBA,OAAO,IAAMN,KAAK,GAAGI,SAAd"}
1
+ {"version":3,"file":"Modal.js","names":["React","Modal","RNModal","Backdrop","ModalContent","Component","onRequestClose","children","rest"],"sources":["../../../../src/components/molecules/DateTimePicker/Modal.tsx"],"sourcesContent":["import { DateTimeSelectorProps } from '@tecsinapse/react-core';\nimport * as React from 'react';\nimport { Modal as RNModal, ModalProps } from 'react-native';\nimport { Backdrop, ModalContent } from './styled';\n\nconst Component: React.FC<DateTimeSelectorProps & ModalProps> = ({\n onRequestClose,\n children,\n ...rest\n}) => {\n return (\n <RNModal\n transparent\n hardwareAccelerated\n statusBarTranslucent\n {...rest}\n onRequestClose={onRequestClose}\n >\n <Backdrop onPress={onRequestClose} effect=\"none\">\n <ModalContent>{children}</ModalContent>\n </Backdrop>\n </RNModal>\n );\n};\n\nexport const Modal = Component;\n"],"mappings":";;;;;;;;AACA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,KAAK,IAAIC,OAAlB;AACA,SAASC,QAAT,EAAmBC,YAAnB;;AAEA,IAAMC,SAAuD,GAAG,SAA1DA,SAA0D,OAI1D;EAAA,IAHJC,cAGI,QAHJA,cAGI;EAAA,IAFJC,QAEI,QAFJA,QAEI;EAAA,IADDC,IACC;;EACJ,OACE,oBAAC,OAAD;IACE,WAAW,MADb;IAEE,mBAAmB,MAFrB;IAGE,oBAAoB;EAHtB,GAIMA,IAJN;IAKE,cAAc,EAAEF;EALlB,IAOE,oBAAC,QAAD;IAAU,OAAO,EAAEA,cAAnB;IAAmC,MAAM,EAAC;EAA1C,GACE,oBAAC,YAAD,QAAeC,QAAf,CADF,CAPF,CADF;AAaD,CAlBD;;AAoBA,OAAO,IAAMN,KAAK,GAAGI,SAAd"}
@@ -1,14 +1,14 @@
1
1
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
2
2
 
3
- function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
4
 
5
5
  import styled, { css } from '@emotion/native';
6
6
  import { PressableSurface, RFValueStr } from '@tecsinapse/react-core';
7
7
  import { Platform } from "react-native-web";
8
8
  var isWeb = Platform.OS === 'web';
9
- export var Backdrop = styled(PressableSurface)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n ", "\n"])), isWeb ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100vh;\n "]))) : css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n justify-content: flex-end;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100%;\n "]))));
10
- export var ModalContent = styled.View(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n background-color: transparent;\n ", "\n overflow: hidden;\n"])), function (_ref) {
9
+ export var Backdrop = styled(PressableSurface)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), isWeb ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100vh;\n "]))) : css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n justify-content: flex-end;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100%;\n "]))));
10
+ export var ModalContent = styled.View(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: transparent;\n ", "\n overflow: hidden;\n"])), function (_ref) {
11
11
  var borderRadius = _ref.theme.borderRadius;
12
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n ", "\n "])), isWeb ? "\n width: " + RFValueStr('375px') + ";\n border-radius: " + borderRadius.micro + ";\n " : "\n border-top-left-radius: " + borderRadius.deca + ";\n border-top-right-radius: " + borderRadius.deca + ";\n ");
12
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n "])), isWeb ? "\n width: ".concat(RFValueStr('375px'), ";\n border-radius: ").concat(borderRadius.micro, ";\n ") : "\n border-top-left-radius: ".concat(borderRadius.deca, ";\n border-top-right-radius: ").concat(borderRadius.deca, ";\n "));
13
13
  });
14
14
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","css","PressableSurface","RFValueStr","Platform","isWeb","OS","Backdrop","ModalContent","View","borderRadius","theme","micro","deca"],"sources":["../../../../src/components/molecules/DateTimePicker/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport {\n PressableSurface,\n RFValueStr,\n StyleProps,\n} from '@tecsinapse/react-core';\nimport { Platform } from 'react-native';\n\nconst isWeb = Platform.OS === 'web';\n\nexport const Backdrop = styled(PressableSurface)<Partial<StyleProps>>`\n ${isWeb\n ? css`\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100vh;\n `\n : css`\n justify-content: flex-end;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100%;\n `}\n`;\n\nexport const ModalContent = styled.View<Partial<StyleProps>>`\n background-color: transparent;\n ${({ theme: { borderRadius } }) => css`\n ${isWeb\n ? `\n width: ${RFValueStr('375px')};\n border-radius: ${borderRadius.micro};\n `\n : `\n border-top-left-radius: ${borderRadius.deca};\n border-top-right-radius: ${borderRadius.deca};\n `}\n `}\n overflow: hidden;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,iBAA5B;AACA,SACEC,gBADF,EAEEC,UAFF,QAIO,wBAJP;AAKA,SAASC,QAAT;AAEA,IAAMC,KAAK,GAAGD,QAAQ,CAACE,EAAT,KAAgB,KAA9B;AAEA,OAAO,IAAMC,QAAQ,GAAGP,MAAM,CAACE,gBAAD,CAAT,qFACjBG,KAAK,GACHJ,GADG,8NAOHA,GAPG,8LADY,CAAd;AAeP,OAAO,IAAMO,YAAY,GAAGR,MAAM,CAACS,IAAV,8IAErB;EAAA,IAAYC,YAAZ,QAAGC,KAAH,CAAYD,YAAZ;EAAA,OAAiCT,GAAjC,2FACEI,KAAK,uBAEIF,UAAU,CAAC,OAAD,CAFd,gCAGYO,YAAY,CAACE,KAHzB,oDAMqBF,YAAY,CAACG,IANlC,0CAOsBH,YAAY,CAACG,IAPnC,YADP;AAAA,CAFqB,CAAlB"}
1
+ {"version":3,"file":"styled.js","names":["styled","css","PressableSurface","RFValueStr","Platform","isWeb","OS","Backdrop","ModalContent","View","borderRadius","theme","micro","deca"],"sources":["../../../../src/components/molecules/DateTimePicker/styled.ts"],"sourcesContent":["import styled, { css } from '@emotion/native';\nimport {\n PressableSurface,\n RFValueStr,\n StyleProps,\n} from '@tecsinapse/react-core';\nimport { Platform } from 'react-native';\n\nconst isWeb = Platform.OS === 'web';\n\nexport const Backdrop = styled(PressableSurface)<Partial<StyleProps>>`\n ${isWeb\n ? css`\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100vh;\n `\n : css`\n justify-content: flex-end;\n background-color: rgba(0, 0, 0, 0.5);\n height: 100%;\n `}\n`;\n\nexport const ModalContent = styled.View<Partial<StyleProps>>`\n background-color: transparent;\n ${({ theme: { borderRadius } }) => css`\n ${isWeb\n ? `\n width: ${RFValueStr('375px')};\n border-radius: ${borderRadius.micro};\n `\n : `\n border-top-left-radius: ${borderRadius.deca};\n border-top-right-radius: ${borderRadius.deca};\n `}\n `}\n overflow: hidden;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,iBAA5B;AACA,SACEC,gBADF,EAEEC,UAFF,QAIO,wBAJP;AAKA,SAASC,QAAT;AAEA,IAAMC,KAAK,GAAGD,QAAQ,CAACE,EAAT,KAAgB,KAA9B;AAEA,OAAO,IAAMC,QAAQ,GAAGP,MAAM,CAACE,gBAAD,CAAT,gFACjBG,KAAK,GACHJ,GADG,yNAOHA,GAPG,yLADY,CAAd;AAeP,OAAO,IAAMO,YAAY,GAAGR,MAAM,CAACS,IAAV,yIAErB;EAAA,IAAYC,YAAZ,QAAGC,KAAH,CAAYD,YAAZ;EAAA,OAAiCT,GAAjC,sFACEI,KAAK,4BAEIF,UAAU,CAAC,OAAD,CAFd,qCAGYO,YAAY,CAACE,KAHzB,yDAMqBF,YAAY,CAACG,IANlC,+CAOsBH,YAAY,CAACG,IAPnC,YADP;AAAA,CAFqB,CAAlB"}
@@ -2,6 +2,14 @@ var _excluded = ["open", "anchorPosition", "onClose", "children", "style"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+
7
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
+
9
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+
11
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
+
5
13
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
14
 
7
15
  import React from 'react';
@@ -17,7 +25,7 @@ var Drawer = function Drawer(_ref) {
17
25
  onClose = _ref.onClose,
18
26
  children = _ref.children,
19
27
  style = _ref.style,
20
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
28
+ rest = _objectWithoutProperties(_ref, _excluded);
21
29
 
22
30
  var getStyles = function getStyles(anchorPosition, state) {
23
31
  var stylesLeftRight = defaultStylesLeftRight(anchorPosition);
@@ -26,9 +34,9 @@ var Drawer = function Drawer(_ref) {
26
34
  var transitionTopBottom = transitionStylesTopBottom(anchorPosition);
27
35
 
28
36
  if (['left', 'right'].includes(anchorPosition)) {
29
- return _extends({}, stylesLeftRight, transitionLeftRight[state]);
37
+ return _objectSpread(_objectSpread({}, stylesLeftRight), transitionLeftRight[state]);
30
38
  } else {
31
- return _extends({}, stylesTopBottom, transitionTopBottom[state]);
39
+ return _objectSpread(_objectSpread({}, stylesTopBottom), transitionTopBottom[state]);
32
40
  }
33
41
  };
34
42
 
@@ -42,7 +50,7 @@ var Drawer = function Drawer(_ref) {
42
50
  timeout: 300
43
51
  }, function (state) {
44
52
  return React.createElement(StyledContainerDrawer, _extends({
45
- style: _extends({}, style, getStyles(anchorPosition, state)),
53
+ style: _objectSpread(_objectSpread({}, style), getStyles(anchorPosition, state)),
46
54
  anchorPosition: anchorPosition,
47
55
  onClose: onClose,
48
56
  open: open
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","names":["React","StyledContainerDrawer","Transition","Overlay","transitionStylesTopBottom","defaultStylesTopBottom","defaultStylesLeftRight","transitionStylesLeftRight","Drawer","open","anchorPosition","onClose","children","style","rest","getStyles","state","stylesLeftRight","transitionLeftRight","stylesTopBottom","transitionTopBottom","includes"],"sources":["../../../../src/components/molecules/Drawer/Drawer.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyledContainerDrawer } from './styled';\nimport { Transition, TransitionStatus } from 'react-transition-group';\nimport { Overlay } from '../../atoms/Overlay';\nimport {\n transitionStylesTopBottom,\n defaultStylesTopBottom,\n defaultStylesLeftRight,\n transitionStylesLeftRight,\n} from './animations';\n\ntype AnchorPosition = 'left' | 'right' | 'top' | 'bottom';\n\nexport interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {\n open: boolean;\n onClose: () => void;\n anchorPosition: AnchorPosition;\n}\n\nconst Drawer: FC<DrawerProps> = ({\n open,\n anchorPosition = 'right',\n onClose,\n children,\n style,\n ...rest\n}) => {\n const getStyles = (\n anchorPosition: AnchorPosition,\n state: TransitionStatus\n ) => {\n const stylesLeftRight = defaultStylesLeftRight(anchorPosition);\n const transitionLeftRight = transitionStylesLeftRight(anchorPosition);\n const stylesTopBottom = defaultStylesTopBottom(anchorPosition);\n const transitionTopBottom = transitionStylesTopBottom(anchorPosition);\n\n if (['left', 'right'].includes(anchorPosition)) {\n return {\n ...stylesLeftRight,\n ...transitionLeftRight[state],\n };\n } else {\n return {\n ...stylesTopBottom,\n ...transitionTopBottom[state],\n };\n }\n };\n\n return (\n <>\n <Overlay timeout={300} open={open} onClose={onClose} zIndex=\"drawer\" />\n <Transition in={open} timeout={300}>\n {state => (\n <StyledContainerDrawer\n style={{ ...style, ...getStyles(anchorPosition, state) }}\n anchorPosition={anchorPosition}\n onClose={onClose}\n open={open}\n {...rest}\n >\n {children}\n </StyledContainerDrawer>\n )}\n </Transition>\n </>\n );\n};\n\nexport default Drawer;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAA0B,OAA1B;AACA,SAASC,qBAAT;AACA,SAASC,UAAT,QAA6C,wBAA7C;AACA,SAASC,OAAT;AACA,SACEC,yBADF,EAEEC,sBAFF,EAGEC,sBAHF,EAIEC,yBAJF;;AAeA,IAAMC,MAAuB,GAAG,SAA1BA,MAA0B,OAO1B;EAAA,IANJC,IAMI,QANJA,IAMI;EAAA,+BALJC,cAKI;EAAA,IALJA,cAKI,oCALa,OAKb;EAAA,IAJJC,OAII,QAJJA,OAII;EAAA,IAHJC,QAGI,QAHJA,QAGI;EAAA,IAFJC,KAEI,QAFJA,KAEI;EAAA,IADDC,IACC;;EACJ,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAChBL,cADgB,EAEhBM,KAFgB,EAGb;IACH,IAAMC,eAAe,GAAGX,sBAAsB,CAACI,cAAD,CAA9C;IACA,IAAMQ,mBAAmB,GAAGX,yBAAyB,CAACG,cAAD,CAArD;IACA,IAAMS,eAAe,GAAGd,sBAAsB,CAACK,cAAD,CAA9C;IACA,IAAMU,mBAAmB,GAAGhB,yBAAyB,CAACM,cAAD,CAArD;;IAEA,IAAI,CAAC,MAAD,EAAS,OAAT,EAAkBW,QAAlB,CAA2BX,cAA3B,CAAJ,EAAgD;MAC9C,oBACKO,eADL,EAEKC,mBAAmB,CAACF,KAAD,CAFxB;IAID,CALD,MAKO;MACL,oBACKG,eADL,EAEKC,mBAAmB,CAACJ,KAAD,CAFxB;IAID;EACF,CApBD;;EAsBA,OACE,0CACE,oBAAC,OAAD;IAAS,OAAO,EAAE,GAAlB;IAAuB,IAAI,EAAEP,IAA7B;IAAmC,OAAO,EAAEE,OAA5C;IAAqD,MAAM,EAAC;EAA5D,EADF,EAEE,oBAAC,UAAD;IAAY,MAAIF,IAAhB;IAAsB,OAAO,EAAE;EAA/B,GACG,UAAAO,KAAK;IAAA,OACJ,oBAAC,qBAAD;MACE,KAAK,eAAOH,KAAP,EAAiBE,SAAS,CAACL,cAAD,EAAiBM,KAAjB,CAA1B,CADP;MAEE,cAAc,EAAEN,cAFlB;MAGE,OAAO,EAAEC,OAHX;MAIE,IAAI,EAAEF;IAJR,GAKMK,IALN,GAOGF,QAPH,CADI;EAAA,CADR,CAFF,CADF;AAkBD,CAhDD;;AAkDA,eAAeJ,MAAf"}
1
+ {"version":3,"file":"Drawer.js","names":["React","StyledContainerDrawer","Transition","Overlay","transitionStylesTopBottom","defaultStylesTopBottom","defaultStylesLeftRight","transitionStylesLeftRight","Drawer","open","anchorPosition","onClose","children","style","rest","getStyles","state","stylesLeftRight","transitionLeftRight","stylesTopBottom","transitionTopBottom","includes"],"sources":["../../../../src/components/molecules/Drawer/Drawer.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { StyledContainerDrawer } from './styled';\nimport { Transition, TransitionStatus } from 'react-transition-group';\nimport { Overlay } from '../../atoms/Overlay';\nimport {\n transitionStylesTopBottom,\n defaultStylesTopBottom,\n defaultStylesLeftRight,\n transitionStylesLeftRight,\n} from './animations';\n\ntype AnchorPosition = 'left' | 'right' | 'top' | 'bottom';\n\nexport interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {\n open: boolean;\n onClose: () => void;\n anchorPosition: AnchorPosition;\n}\n\nconst Drawer: FC<DrawerProps> = ({\n open,\n anchorPosition = 'right',\n onClose,\n children,\n style,\n ...rest\n}) => {\n const getStyles = (\n anchorPosition: AnchorPosition,\n state: TransitionStatus\n ) => {\n const stylesLeftRight = defaultStylesLeftRight(anchorPosition);\n const transitionLeftRight = transitionStylesLeftRight(anchorPosition);\n const stylesTopBottom = defaultStylesTopBottom(anchorPosition);\n const transitionTopBottom = transitionStylesTopBottom(anchorPosition);\n\n if (['left', 'right'].includes(anchorPosition)) {\n return {\n ...stylesLeftRight,\n ...transitionLeftRight[state],\n };\n } else {\n return {\n ...stylesTopBottom,\n ...transitionTopBottom[state],\n };\n }\n };\n\n return (\n <>\n <Overlay timeout={300} open={open} onClose={onClose} zIndex=\"drawer\" />\n <Transition in={open} timeout={300}>\n {state => (\n <StyledContainerDrawer\n style={{ ...style, ...getStyles(anchorPosition, state) }}\n anchorPosition={anchorPosition}\n onClose={onClose}\n open={open}\n {...rest}\n >\n {children}\n </StyledContainerDrawer>\n )}\n </Transition>\n </>\n );\n};\n\nexport default Drawer;\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAA0B,OAA1B;AACA,SAASC,qBAAT;AACA,SAASC,UAAT,QAA6C,wBAA7C;AACA,SAASC,OAAT;AACA,SACEC,yBADF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PH,CADI;EAAA,CADR,CAFF,CADF;AAkBD,CAhDD;;AAkDA,eAAeJ,MAAf"}
@@ -1,6 +1,6 @@
1
1
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
2
2
 
3
- function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
3
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
4
 
5
5
  import styled from '@emotion/styled';
6
6
  import { css } from '@emotion/react';
@@ -8,34 +8,34 @@ import { css } from '@emotion/react';
8
8
  var anchorLeft = function anchorLeft(_ref) {
9
9
  var theme = _ref.theme,
10
10
  anchorPosition = _ref.anchorPosition;
11
- return anchorPosition === 'left' && css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n left: 0;\n top: 0;\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
11
+ return anchorPosition === 'left' && css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n left: 0;\n top: 0;\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
12
12
  };
13
13
 
14
14
  var anchorRight = function anchorRight(_ref2) {
15
15
  var theme = _ref2.theme,
16
16
  anchorPosition = _ref2.anchorPosition;
17
- return anchorPosition === 'right' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n right: 0;\n top: 0;\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
17
+ return anchorPosition === 'right' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n right: 0;\n top: 0;\n border-top-left-radius: ", ";\n border-bottom-left-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
18
18
  };
19
19
 
20
20
  var anchorTop = function anchorTop(_ref3) {
21
21
  var theme = _ref3.theme,
22
22
  anchorPosition = _ref3.anchorPosition;
23
- return anchorPosition === 'top' && css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n left: 0;\n right: 0;\n top: 0;\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
23
+ return anchorPosition === 'top' && css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n left: 0;\n right: 0;\n top: 0;\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
24
24
  };
25
25
 
26
26
  var anchorBottom = function anchorBottom(_ref4) {
27
27
  var theme = _ref4.theme,
28
28
  anchorPosition = _ref4.anchorPosition;
29
- return anchorPosition === 'bottom' && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n left: 0;\n right: 0;\n bottom: 0;\n border-top-right-radius: ", ";\n border-top-left-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
29
+ return anchorPosition === 'bottom' && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n left: 0;\n right: 0;\n bottom: 0;\n border-top-right-radius: ", ";\n border-top-left-radius: ", ";\n "])), theme.borderRadius.centi, theme.borderRadius.centi);
30
30
  };
31
31
 
32
32
  var baseStyles = function baseStyles(_ref5) {
33
33
  var theme = _ref5.theme,
34
34
  anchorPosition = _ref5.anchorPosition;
35
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n height: ", ";\n width: ", ";\n position: fixed;\n overflow: hidden;\n background-color: ", ";\n z-index: ", ";\n "])), ['left', 'right'].includes(anchorPosition) && '100vh', ['top', 'bottom'].includes(anchorPosition) && '100wh', theme.miscellaneous.bodyColor, theme.zIndex.drawer);
35
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n height: ", ";\n width: ", ";\n position: fixed;\n overflow: hidden;\n background-color: ", ";\n z-index: ", ";\n "])), ['left', 'right'].includes(anchorPosition) && '100vh', ['top', 'bottom'].includes(anchorPosition) && '100wh', theme.miscellaneous.bodyColor, theme.zIndex.drawer);
36
36
  };
37
37
 
38
38
  export var StyledContainerDrawer = styled('div')(function (props) {
39
- return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), baseStyles(props), anchorBottom(props), anchorTop(props), anchorLeft(props), anchorRight(props));
39
+ return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n ", "\n ", "\n "])), baseStyles(props), anchorBottom(props), anchorTop(props), anchorLeft(props), anchorRight(props));
40
40
  });
41
41
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","css","anchorLeft","theme","anchorPosition","borderRadius","centi","anchorRight","anchorTop","anchorBottom","baseStyles","includes","miscellaneous","bodyColor","zIndex","drawer","StyledContainerDrawer","props"],"sources":["../../../../src/components/molecules/Drawer/styled.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { DrawerProps } from './Drawer';\nimport { css } from '@emotion/react';\n\nconst anchorLeft = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'left' &&\n css`\n left: 0;\n top: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-bottom-right-radius: ${theme.borderRadius.centi};\n `\n );\n};\nconst anchorRight = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'right' &&\n css`\n right: 0;\n top: 0;\n border-top-left-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorTop = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'top' &&\n css`\n left: 0;\n right: 0;\n top: 0;\n border-bottom-right-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorBottom = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'bottom' &&\n css`\n left: 0;\n right: 0;\n bottom: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-top-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst baseStyles = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return css`\n height: ${['left', 'right'].includes(anchorPosition) && '100vh'};\n width: ${['top', 'bottom'].includes(anchorPosition) && '100wh'};\n position: fixed;\n overflow: hidden;\n background-color: ${theme.miscellaneous.bodyColor};\n z-index: ${theme.zIndex.drawer};\n `;\n};\n\nexport const StyledContainerDrawer = styled('div')<\n DrawerProps & Partial<StyleProps>\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)}\n ${anchorLeft(props)}\n ${anchorRight(props)}\n `\n);\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AAGA,SAASC,GAAT,QAAoB,gBAApB;;AAEA,IAAMC,UAAU,GAAG,SAAbA,UAAa,OAAyD;EAAA,IAAtDC,KAAsD,QAAtDA,KAAsD;EAAA,IAA/CC,cAA+C,QAA/CA,cAA+C;EAC1E,OACEA,cAAc,KAAK,MAAnB,IACAH,GADA,+LAI6BE,KAAK,CAACE,YAAN,CAAmBC,KAJhD,EAKgCH,KAAK,CAACE,YAAN,CAAmBC,KALnD,CADF;AASD,CAVD;;AAWA,IAAMC,WAAW,GAAG,SAAdA,WAAc,QAAyD;EAAA,IAAtDJ,KAAsD,SAAtDA,KAAsD;EAAA,IAA/CC,cAA+C,SAA/CA,cAA+C;EAC3E,OACEA,cAAc,KAAK,OAAnB,IACAH,GADA,gMAI4BE,KAAK,CAACE,YAAN,CAAmBC,KAJ/C,EAK+BH,KAAK,CAACE,YAAN,CAAmBC,KALlD,CADF;AASD,CAVD;;AAYA,IAAME,SAAS,GAAG,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","centi","anchorRight","anchorTop","anchorBottom","baseStyles","includes","miscellaneous","bodyColor","zIndex","drawer","StyledContainerDrawer","props"],"sources":["../../../../src/components/molecules/Drawer/styled.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { DrawerProps } from './Drawer';\nimport { css } from '@emotion/react';\n\nconst anchorLeft = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'left' &&\n css`\n left: 0;\n top: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-bottom-right-radius: ${theme.borderRadius.centi};\n `\n );\n};\nconst anchorRight = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'right' &&\n css`\n right: 0;\n top: 0;\n border-top-left-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorTop = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'top' &&\n css`\n left: 0;\n right: 0;\n top: 0;\n border-bottom-right-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorBottom = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'bottom' &&\n css`\n left: 0;\n right: 0;\n bottom: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-top-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst baseStyles = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return css`\n height: ${['left', 'right'].includes(anchorPosition) && '100vh'};\n width: ${['top', 'bottom'].includes(anchorPosition) && '100wh'};\n position: fixed;\n overflow: hidden;\n background-color: ${theme.miscellaneous.bodyColor};\n z-index: ${theme.zIndex.drawer};\n `;\n};\n\nexport const StyledContainerDrawer = styled('div')<\n DrawerProps & Partial<StyleProps>\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)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AAA,IAAtDP,KAAsD,SAAtDA,KAAsD;EAAA,IAA/CC,cAA+C,SAA/CA,cAA+C;EAC1E,OAAOH,GAAP,+MACY,CAAC,MAAD,EAAS,OAAT,EAAkBU,QAAlB,CAA2BP,cAA3B,KAA8C,OAD1D,EAEW,CAAC,KAAD,EAAQ,QAAR,EAAkBO,QAAlB,CAA2BP,cAA3B,KAA8C,OAFzD,EAKsBD,KAAK,CAACS,aAAN,CAAoBC,SAL1C,EAMaV,KAAK,CAACW,MAAN,CAAaC,MAN1B;AAQD,CATD;;AAWA,OAAO,IAAMC,qBAAqB,GAAGhB,MAAM,CAAC,KAAD,CAAN,CAGnC,UAAAiB,KAAK;EAAA,OAAIhB,GAAJ,8HACDS,UAAU,CAACO,KAAD,CADT,EAEDR,YAAY,CAACQ,KAAD,CAFX,EAGDT,SAAS,CAACS,KAAD,CAHR,EAIDf,UAAU,CAACe,KAAD,CAJT,EAKDV,WAAW,CAACU,KAAD,CALV;AAAA,CAH8B,CAA9B"}
@@ -2,6 +2,14 @@ var _excluded = ["children", "columns", "layout", "style", "spacing"];
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+
7
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
+
9
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+
11
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
+
5
13
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
14
 
7
15
  import React from 'react';
@@ -14,19 +22,19 @@ var Grid = function Grid(_ref) {
14
22
  layout = _ref.layout,
15
23
  style = _ref.style,
16
24
  spacing = _ref.spacing,
17
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
25
+ rest = _objectWithoutProperties(_ref, _excluded);
18
26
 
19
27
  if (layout) {
20
28
  var flatLayout = layout.flat();
21
29
  return React.createElement("div", _extends({
22
- style: _extends({}, style, {
30
+ style: _objectSpread(_objectSpread({}, style), {}, {
23
31
  display: 'flex',
24
32
  flexDirection: 'row',
25
33
  flexWrap: 'wrap'
26
34
  })
27
35
  }, rest), React.Children.map(children, function (child, index) {
28
36
  return React.createElement(GridItem, {
29
- key: "child-" + index,
37
+ key: "child-".concat(index),
30
38
  columns: columns,
31
39
  span: flatLayout[index],
32
40
  spacing: spacing
@@ -35,7 +43,7 @@ var Grid = function Grid(_ref) {
35
43
  }
36
44
 
37
45
  return React.createElement("div", _extends({
38
- style: _extends({}, style, {
46
+ style: _objectSpread(_objectSpread({}, style), {}, {
39
47
  display: 'flex',
40
48
  flexDirection: 'row',
41
49
  flexWrap: 'wrap'
@@ -43,10 +51,10 @@ var Grid = function Grid(_ref) {
43
51
  }, rest), React.Children.map(children, function (child, index) {
44
52
  var _child$props$spacing;
45
53
 
46
- return React.cloneElement(child, _extends({}, child == null ? void 0 : child.props, {
54
+ return React.cloneElement(child, _objectSpread(_objectSpread({}, child === null || child === void 0 ? void 0 : child.props), {}, {
47
55
  columns: columns,
48
- spacing: (_child$props$spacing = child == null ? void 0 : child.props.spacing) != null ? _child$props$spacing : spacing,
49
- key: "child-" + index
56
+ spacing: (_child$props$spacing = child === null || child === void 0 ? void 0 : child.props.spacing) !== null && _child$props$spacing !== void 0 ? _child$props$spacing : spacing,
57
+ key: "child-".concat(index)
50
58
  }));
51
59
  }));
52
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.js","names":["React","GridItem","Grid","children","columns","layout","style","spacing","rest","flatLayout","flat","display","flexDirection","flexWrap","Children","map","child","index","cloneElement","props","key"],"sources":["../../../../src/components/molecules/Grid/Grid.tsx"],"sourcesContent":["import React from 'react';\nimport { GridItem } from './Item';\nimport { IGrid } from '@tecsinapse/react-core';\n\nexport type IGridWeb = IGrid &\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nconst Grid = ({\n children,\n columns = 12,\n layout,\n style,\n spacing,\n ...rest\n}: IGridWeb): JSX.Element => {\n if (layout) {\n const flatLayout = layout.flat();\n return (\n <div\n style={{\n ...style,\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n }}\n {...rest}\n >\n {React.Children.map(children, (child, index) => (\n <GridItem\n key={`child-${index}`}\n columns={columns}\n span={flatLayout[index]}\n spacing={spacing}\n >\n {child}\n </GridItem>\n ))}\n </div>\n );\n }\n\n return (\n <div\n style={{\n ...style,\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n }}\n {...rest}\n >\n {React.Children.map(children, (child, index) => {\n return React.cloneElement(child, {\n ...child?.props,\n columns,\n spacing: child?.props.spacing ?? spacing,\n key: `child-${index}`,\n });\n })}\n </div>\n );\n};\n\nexport default Grid;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT;;AAMA,IAAMC,IAAI,GAAG,SAAPA,IAAO,OAOgB;EAAA,IAN3BC,QAM2B,QAN3BA,QAM2B;EAAA,wBAL3BC,OAK2B;EAAA,IAL3BA,OAK2B,6BALjB,EAKiB;EAAA,IAJ3BC,MAI2B,QAJ3BA,MAI2B;EAAA,IAH3BC,KAG2B,QAH3BA,KAG2B;EAAA,IAF3BC,OAE2B,QAF3BA,OAE2B;EAAA,IADxBC,IACwB;;EAC3B,IAAIH,MAAJ,EAAY;IACV,IAAMI,UAAU,GAAGJ,MAAM,CAACK,IAAP,EAAnB;IACA,OACE;MACE,KAAK,eACAJ,KADA;QAEHK,OAAO,EAAE,MAFN;QAGHC,aAAa,EAAE,KAHZ;QAIHC,QAAQ,EAAE;MAJP;IADP,GAOML,IAPN,GASGR,KAAK,CAACc,QAAN,CAAeC,GAAf,CAAmBZ,QAAnB,EAA6B,UAACa,KAAD,EAAQC,KAAR;MAAA,OAC5B,oBAAC,QAAD;QACE,GAAG,aAAWA,KADhB;QAEE,OAAO,EAAEb,OAFX;QAGE,IAAI,EAAEK,UAAU,CAACQ,KAAD,CAHlB;QAIE,OAAO,EAAEV;MAJX,GAMGS,KANH,CAD4B;IAAA,CAA7B,CATH,CADF;EAsBD;;EAED,OACE;IACE,KAAK,eACAV,KADA;MAEHK,OAAO,EAAE,MAFN;MAGHC,aAAa,EAAE,KAHZ;MAIHC,QAAQ,EAAE;IAJP;EADP,GAOML,IAPN,GASGR,KAAK,CAACc,QAAN,CAAeC,GAAf,CAAmBZ,QAAnB,EAA6B,UAACa,KAAD,EAAQC,KAAR,EAAkB;IAAA;;IAC9C,OAAOjB,KAAK,CAACkB,YAAN,CAAmBF,KAAnB,eACFA,KADE,oBACFA,KAAK,CAAEG,KADL;MAELf,OAAO,EAAPA,OAFK;MAGLG,OAAO,0BAAES,KAAF,oBAAEA,KAAK,CAAEG,KAAP,CAAaZ,OAAf,mCAA0BA,OAH5B;MAILa,GAAG,aAAWH;IAJT,GAAP;EAMD,CAPA,CATH,CADF;AAoBD,CAtDD;;AAwDA,eAAef,IAAf"}
1
+ {"version":3,"file":"Grid.js","names":["React","GridItem","Grid","children","columns","layout","style","spacing","rest","flatLayout","flat","display","flexDirection","flexWrap","Children","map","child","index","cloneElement","props","key"],"sources":["../../../../src/components/molecules/Grid/Grid.tsx"],"sourcesContent":["import React from 'react';\nimport { GridItem } from './Item';\nimport { IGrid } from '@tecsinapse/react-core';\n\nexport type IGridWeb = IGrid &\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;\n\nconst Grid = ({\n children,\n columns = 12,\n layout,\n style,\n spacing,\n ...rest\n}: IGridWeb): JSX.Element => {\n if (layout) {\n const flatLayout = layout.flat();\n return (\n <div\n style={{\n ...style,\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n }}\n {...rest}\n >\n {React.Children.map(children, (child, index) => (\n <GridItem\n key={`child-${index}`}\n columns={columns}\n span={flatLayout[index]}\n spacing={spacing}\n >\n {child}\n </GridItem>\n ))}\n </div>\n );\n }\n\n return (\n <div\n style={{\n ...style,\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n }}\n {...rest}\n >\n {React.Children.map(children, (child, index) => {\n return React.cloneElement(child, {\n ...child?.props,\n columns,\n spacing: child?.props.spacing ?? spacing,\n key: `child-${index}`,\n });\n })}\n </div>\n );\n};\n\nexport default Grid;\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT;;AAMA,IAAMC,IAAI,GAAG,SAAPA,IAAO,OAOgB;EAAA,IAN3BC,QAM2B,QAN3BA,QAM2B;EAAA,wBAL3BC,OAK2B;EAAA,IAL3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= ["children", "span", "columns", "loadingComponent", "loading", "
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+
7
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
+
9
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+
11
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
12
+
5
13
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
14
 
7
15
  import React from 'react';
@@ -30,7 +38,7 @@ var GridItem = function GridItem(_ref) {
30
38
  justifyContent = _ref.justifyContent,
31
39
  flexBasis = _ref.flexBasis,
32
40
  style = _ref.style,
33
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
41
+ rest = _objectWithoutProperties(_ref, _excluded);
34
42
 
35
43
  var _useTheme = useTheme(),
36
44
  spacing = _useTheme.spacing;
@@ -50,7 +58,7 @@ var GridItem = function GridItem(_ref) {
50
58
 
51
59
  var span = typeof _span === 'number' ? _span : getSpan(_span, sm, md, lg);
52
60
 
53
- var _style = _extends({}, style, {
61
+ var _style = _objectSpread(_objectSpread({}, style), {}, {
54
62
  alignContent: alignContent,
55
63
  alignItems: alignItems,
56
64
  alignSelf: alignSelf,
@@ -60,15 +68,15 @@ var GridItem = function GridItem(_ref) {
60
68
  justifyContent: justifyContent,
61
69
  flex: flex,
62
70
  boxSizing: 'border-box',
63
- flexBasis: flexBasis != null ? flexBasis : getGridItemColumSpan(columns, span) + "%",
71
+ flexBasis: flexBasis !== null && flexBasis !== void 0 ? flexBasis : "".concat(getGridItemColumSpan(columns, span), "%"),
64
72
  paddingTop: getGridItemPadding('top', _spacing, spacing),
65
73
  paddingBottom: getGridItemPadding('bottom', _spacing, spacing),
66
74
  paddingRight: getGridItemPadding('right', _spacing, spacing),
67
75
  paddingLeft: getGridItemPadding('left', _spacing, spacing)
68
76
  });
69
77
 
70
- var clone = React.cloneElement(children, _extends({}, children == null ? void 0 : children.props, {
71
- style: wrapper ? children == null ? void 0 : children.props.style : _extends({}, _style, children == null ? void 0 : children.props.style)
78
+ var clone = React.cloneElement(children, _objectSpread(_objectSpread({}, children === null || children === void 0 ? void 0 : children.props), {}, {
79
+ style: wrapper ? children === null || children === void 0 ? void 0 : children.props.style : _objectSpread(_objectSpread({}, _style), children === null || children === void 0 ? void 0 : children.props.style)
72
80
  }));
73
81
  return wrapper ? React.createElement("div", _extends({}, rest, {
74
82
  style: _style
@@ -1 +1 @@
1
- {"version":3,"file":"Item.js","names":["React","useTheme","getGridItemColumSpan","getGridItemPadding","useBreakpoints","getSpan","GridItem","children","_span","span","columns","loadingComponent","loading","_spacing","spacing","wrapper","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","justifyContent","flexBasis","style","rest","sm","md","lg","Children","only","Error","_style","boxSizing","paddingTop","paddingBottom","paddingRight","paddingLeft","clone","cloneElement","props"],"sources":["../../../../../src/components/molecules/Grid/Item/Item.tsx"],"sourcesContent":["import React from 'react';\nimport {\n IGridItem,\n useTheme,\n Breakpoints,\n getGridItemColumSpan,\n getGridItemPadding,\n} from '@tecsinapse/react-core';\nimport { useBreakpoints } from '@tecsinapse/react-web-kit';\nimport { getSpan } from './functions';\n\nexport type Span = Pick<Breakpoints, 'sm'> & Partial<Omit<Breakpoints, 'sm'>>;\n\nexport interface IGridItemWeb\n extends Omit<IGridItem, 'span'>,\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {\n /** At least sm should exist */\n span: number | Span;\n /** Only specify this property if the GridItem will be 'dynamic', adjusting itself to content. Use this with `wrapper` for better result. */\n flexBasis?:\n | string\n | 'content'\n | 'auto'\n | 'max-content'\n | 'min-content'\n | 'fit-content';\n}\n\nconst GridItem = ({\n children,\n span: _span,\n columns = 12,\n loadingComponent,\n loading = false,\n spacing: _spacing,\n wrapper = false,\n alignContent,\n alignItems,\n alignSelf,\n flex,\n flexDirection,\n flexGrow,\n flexShrink,\n justifyContent,\n flexBasis,\n style,\n ...rest\n}: IGridItemWeb): JSX.Element => {\n const { spacing } = useTheme();\n const { sm, md, lg } = useBreakpoints();\n if (!React.Children.only(children)) {\n throw new Error('The number of children in GridItem should be one');\n }\n if (loadingComponent && loading) {\n return loadingComponent;\n }\n\n const span = typeof _span === 'number' ? _span : getSpan(_span, sm, md, lg);\n\n const _style: React.CSSProperties = {\n ...style,\n alignContent,\n alignItems,\n alignSelf,\n flexDirection,\n flexGrow,\n flexShrink,\n justifyContent,\n flex,\n boxSizing: 'border-box',\n flexBasis: flexBasis ?? `${getGridItemColumSpan(columns, span)}%`,\n paddingTop: getGridItemPadding('top', _spacing, spacing),\n paddingBottom: getGridItemPadding('bottom', _spacing, spacing),\n paddingRight: getGridItemPadding('right', _spacing, spacing),\n paddingLeft: getGridItemPadding('left', _spacing, spacing),\n };\n\n const clone = React.cloneElement(children, {\n ...children?.props,\n style: wrapper\n ? children?.props.style\n : { ..._style, ...children?.props.style },\n });\n\n return wrapper ? (\n <div {...rest} style={_style}>\n {clone}\n </div>\n ) : (\n clone\n );\n};\n\nexport default GridItem;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAEEC,QAFF,EAIEC,oBAJF,EAKEC,kBALF,QAMO,wBANP;AAOA,SAASC,cAAT,QAA+B,2BAA/B;AACA,SAASC,OAAT;;AAmBA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,OAmBgB;EAAA,IAlB/BC,QAkB+B,QAlB/BA,QAkB+B;EAAA,IAjBzBC,KAiByB,QAjB/BC,IAiB+B;EAAA,wBAhB/BC,OAgB+B;EAAA,IAhB/BA,OAgB+B,6BAhBrB,EAgBqB;EAAA,IAf/BC,gBAe+B,QAf/BA,gBAe+B;EAAA,wBAd/BC,OAc+B;EAAA,IAd/BA,OAc+B,6BAdrB,KAcqB;EAAA,IAbtBC,QAasB,QAb/BC,OAa+B;EAAA,wBAZ/BC,OAY+B;EAAA,IAZ/BA,OAY+B,6BAZrB,KAYqB;EAAA,IAX/BC,YAW+B,QAX/BA,YAW+B;EAAA,IAV/BC,UAU+B,QAV/BA,UAU+B;EAAA,IAT/BC,SAS+B,QAT/BA,SAS+B;EAAA,IAR/BC,IAQ+B,QAR/BA,IAQ+B;EAAA,IAP/BC,aAO+B,QAP/BA,aAO+B;EAAA,IAN/BC,QAM+B,QAN/BA,QAM+B;EAAA,IAL/BC,UAK+B,QAL/BA,UAK+B;EAAA,IAJ/BC,cAI+B,QAJ/BA,cAI+B;EAAA,IAH/BC,SAG+B,QAH/BA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AAV,EAAoBC,OAApB,CAdD;IAe/BwB,WAAW,EAAEnC,kBAAkB,CAAC,MAAD,EAASU,QAAT,EAAmBC,OAAnB;EAfA,EAAjC;;EAkBA,IAAMyB,KAAK,GAAGvC,KAAK,CAACwC,YAAN,CAAmBjC,QAAnB,eACTA,QADS,oBACTA,QAAQ,CAAEkC,KADD;IAEZhB,KAAK,EAAEV,OAAO,GACVR,QADU,oBACVA,QAAQ,CAAEkC,KAAV,CAAgBhB,KADN,gBAELQ,MAFK,EAEM1B,QAFN,oBAEMA,QAAQ,CAAEkC,KAAV,CAAgBhB,KAFtB;EAFF,GAAd;EAOA,OAAOV,OAAO,GACZ,wCAASW,IAAT;IAAe,KAAK,EAAEO;EAAtB,IACGM,KADH,CADY,GAKZA,KALF;AAOD,CA/DD;;AAiEA,eAAejC,QAAf"}
1
+ {"version":3,"file":"Item.js","names":["React","useTheme","getGridItemColumSpan","getGridItemPadding","useBreakpoints","getSpan","GridItem","children","_span","span","columns","loadingComponent","loading","_spacing","spacing","wrapper","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","justifyContent","flexBasis","style","rest","sm","md","lg","Children","only","Error","_style","boxSizing","paddingTop","paddingBottom","paddingRight","paddingLeft","clone","cloneElement","props"],"sources":["../../../../../src/components/molecules/Grid/Item/Item.tsx"],"sourcesContent":["import React from 'react';\nimport {\n IGridItem,\n useTheme,\n Breakpoints,\n getGridItemColumSpan,\n getGridItemPadding,\n} from '@tecsinapse/react-core';\nimport { useBreakpoints } from '@tecsinapse/react-web-kit';\nimport { getSpan } from './functions';\n\nexport type Span = Pick<Breakpoints, 'sm'> & Partial<Omit<Breakpoints, 'sm'>>;\n\nexport interface IGridItemWeb\n extends Omit<IGridItem, 'span'>,\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {\n /** At least sm should exist */\n span: number | Span;\n /** Only specify this property if the GridItem will be 'dynamic', adjusting itself to content. Use this with `wrapper` for better result. */\n flexBasis?:\n | string\n | 'content'\n | 'auto'\n | 'max-content'\n | 'min-content'\n | 'fit-content';\n}\n\nconst GridItem = ({\n children,\n span: _span,\n columns = 12,\n loadingComponent,\n loading = false,\n spacing: _spacing,\n wrapper = false,\n alignContent,\n alignItems,\n alignSelf,\n flex,\n flexDirection,\n flexGrow,\n flexShrink,\n justifyContent,\n flexBasis,\n style,\n ...rest\n}: IGridItemWeb): JSX.Element => {\n const { spacing } = useTheme();\n const { sm, md, lg } = useBreakpoints();\n if (!React.Children.only(children)) {\n throw new Error('The number of children in GridItem should be one');\n }\n if (loadingComponent && loading) {\n return loadingComponent;\n }\n\n const span = typeof _span === 'number' ? _span : getSpan(_span, sm, md, lg);\n\n const _style: React.CSSProperties = {\n ...style,\n alignContent,\n alignItems,\n alignSelf,\n flexDirection,\n flexGrow,\n flexShrink,\n justifyContent,\n flex,\n boxSizing: 'border-box',\n flexBasis: flexBasis ?? `${getGridItemColumSpan(columns, span)}%`,\n paddingTop: getGridItemPadding('top', _spacing, spacing),\n paddingBottom: getGridItemPadding('bottom', _spacing, spacing),\n paddingRight: getGridItemPadding('right', _spacing, spacing),\n paddingLeft: getGridItemPadding('left', _spacing, spacing),\n };\n\n const clone = React.cloneElement(children, {\n ...children?.props,\n style: wrapper\n ? children?.props.style\n : { ..._style, ...children?.props.style },\n });\n\n return wrapper ? (\n <div {...rest} style={_style}>\n {clone}\n </div>\n ) : (\n clone\n );\n};\n\nexport default GridItem;\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAEEC,QAFF,EAIEC,oBAJF,EAKEC,kBALF,QAMO,wBANP;AAOA,SAASC,cAAT,QAA+B,2BAA/B;AACA,SAASC,OAAT;;AAmBA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,OAmBgB;EAAA,IAlB/BC,QAkB+B,QAlB/BA,QAkB+B;EAAA,IAjBzBC,KAiByB,QAjB/BC,IAiB+B;EAAA,wBAhB/BC,OAgB+B;EAAA,IAhB/BA,OAgB+B,6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= value == null ? void 0 : value.md) != null ? _value$md : value.sm;
6
- if (lg) return (_ref = (_value$lg = value == null ? void 0 : value.lg) != null ? _value$lg : value == null ? void 0 : value.md) != null ? _ref : value.sm;
5
+ if (md) return (_value$md = value === null || value === void 0 ? void 0 : value.md) !== null && _value$md !== void 0 ? _value$md : value.sm;
6
+ if (lg) return (_ref = (_value$lg = value === null || value === void 0 ? void 0 : value.lg) !== null && _value$lg !== void 0 ? _value$lg : value === null || value === void 0 ? void 0 : value.md) !== null && _ref !== void 0 ? _ref : value.sm;
7
7
  return 0;
8
8
  };
9
9
  //# sourceMappingURL=functions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.js","names":["getSpan","value","sm","md","lg"],"sources":["../../../../../src/components/molecules/Grid/Item/functions.ts"],"sourcesContent":["import { Span } from './Item';\n\nexport const getSpan = (\n value: Span,\n sm: boolean,\n md: boolean,\n lg: boolean\n): number => {\n if (sm) return value.sm;\n if (md) return value?.md ?? value.sm;\n if (lg) return value?.lg ?? value?.md ?? value.sm;\n return 0;\n};\n"],"mappings":"AAEA,OAAO,IAAMA,OAAO,GAAG,SAAVA,OAAU,CACrBC,KADqB,EAErBC,EAFqB,EAGrBC,EAHqB,EAIrBC,EAJqB,EAKV;EAAA;;EACX,IAAIF,EAAJ,EAAQ,OAAOD,KAAK,CAACC,EAAb;EACR,IAAIC,EAAJ,EAAQ,oBAAOF,KAAP,oBAAOA,KAAK,CAAEE,EAAd,wBAAoBF,KAAK,CAACC,EAA1B;EACR,IAAIE,EAAJ,EAAQ,4BAAOH,KAAP,oBAAOA,KAAK,CAAEG,EAAd,wBAAoBH,KAApB,oBAAoBA,KAAK,CAAEE,EAA3B,mBAAiCF,KAAK,CAACC,EAAvC;EACR,OAAO,CAAP;AACD,CAVM"}
1
+ {"version":3,"file":"functions.js","names":["getSpan","value","sm","md","lg"],"sources":["../../../../../src/components/molecules/Grid/Item/functions.ts"],"sourcesContent":["import { Span } from './Item';\n\nexport const getSpan = (\n value: Span,\n sm: boolean,\n md: boolean,\n lg: boolean\n): number => {\n if (sm) return value.sm;\n if (md) return value?.md ?? value.sm;\n if (lg) return value?.lg ?? value?.md ?? value.sm;\n return 0;\n};\n"],"mappings":"AAEA,OAAO,IAAMA,OAAO,GAAG,SAAVA,OAAU,CACrBC,KADqB,EAErBC,EAFqB,EAGrBC,EAHqB,EAIrBC,EAJqB,EAKV;EAAA;;EACX,IAAIF,EAAJ,EAAQ,OAAOD,KAAK,CAACC,EAAb;EACR,IAAIC,EAAJ,EAAQ,oBAAOF,KAAP,aAAOA,KAAP,uBAAOA,KAAK,CAAEE,EAAd,iDAAoBF,KAAK,CAACC,EAA1B;EACR,IAAIE,EAAJ,EAAQ,4BAAOH,KAAP,aAAOA,KAAP,uBAAOA,KAAK,CAAEG,EAAd,iDAAoBH,KAApB,aAAoBA,KAApB,uBAAoBA,KAAK,CAAEE,EAA3B,uCAAiCF,KAAK,CAACC,EAAvC;EACR,OAAO,CAAP;AACD,CAVM"}
@@ -2,6 +2,8 @@ var _excluded = ["iconProps", "iconPosition", "textProps", "label", "variant", "
2
2
 
3
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
4
 
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
5
7
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
8
 
7
9
  import { IconComponent } from '@tecsinapse/react-core';
@@ -20,7 +22,7 @@ var IconTextButton = function IconTextButton(_ref) {
20
22
  variant = _ref$variant === void 0 ? 'filled' : _ref$variant,
21
23
  _ref$size = _ref.size,
22
24
  size = _ref$size === void 0 ? 'default' : _ref$size,
23
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
25
+ rest = _objectWithoutProperties(_ref, _excluded);
24
26
 
25
27
  var _useIconTextButton = useIconTextButton(variant),
26
28
  handleHover = _useIconTextButton.handleHover,
@@ -1 +1 @@
1
- {"version":3,"file":"IconTextButton.js","names":["IconComponent","React","useIconTextButton","StyledIconTextButton","TextComponent","IconTextButton","iconProps","iconPosition","textProps","label","variant","size","rest","handleHover","handlePressed","defaultFontColor"],"sources":["../../../../src/components/molecules/IconTextButton/IconTextButton.tsx"],"sourcesContent":["import { IconComponent, IconTextButtonProps } from '@tecsinapse/react-core';\nimport React from 'react';\nimport { WebButtonProps } from '../../atoms/Button';\nimport useIconTextButton from './hooks/useIconTextButton';\nimport { StyledIconTextButton } from './styled';\nimport TextComponent from './TextComponent';\n\nexport type WebIconTextButtonProps = IconTextButtonProps &\n Omit<WebButtonProps, 'ButtonProps'>;\n\nconst IconTextButton: React.FC<WebIconTextButtonProps> = ({\n iconProps,\n iconPosition = 'left',\n textProps,\n label,\n variant = 'filled',\n size = 'default',\n ...rest\n}): JSX.Element => {\n const { handleHover, handlePressed, defaultFontColor } =\n useIconTextButton(variant);\n\n return (\n <StyledIconTextButton\n boxed={!label}\n variant={variant}\n size={size}\n onMouseOut={() => handleHover(true)}\n onMouseOver={() => handleHover(false)}\n onPressIn={() => handlePressed(true)}\n onPressOut={() => handlePressed(false)}\n {...rest}\n >\n {iconPosition === 'left' ? (\n <IconComponent\n iconProps={iconProps}\n size={size}\n defaultFontColor={defaultFontColor}\n />\n ) : (\n <></>\n )}\n <TextComponent\n label={label}\n defaultFontColor={defaultFontColor}\n hasIcon={!!iconProps}\n iconPosition={iconPosition}\n textProps={textProps}\n size={size}\n />\n {iconPosition === 'right' ? (\n <IconComponent\n iconProps={iconProps}\n size={size}\n defaultFontColor={defaultFontColor}\n />\n ) : (\n <></>\n )}\n </StyledIconTextButton>\n );\n};\n\nexport default IconTextButton;\n"],"mappings":";;;;;;AAAA,SAASA,aAAT,QAAmD,wBAAnD;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,OAAOC,iBAAP;AACA,SAASC,oBAAT;AACA,OAAOC,aAAP;;AAKA,IAAMC,cAAgD,GAAG,SAAnDA,cAAmD,OAQtC;EAAA,IAPjBC,SAOiB,QAPjBA,SAOiB;EAAA,6BANjBC,YAMiB;EAAA,IANjBA,YAMiB,kCANF,MAME;EAAA,IALjBC,SAKiB,QALjBA,SAKiB;EAAA,IAJjBC,KAIiB,QAJjBA,KAIiB;EAAA,wBAHjBC,OAGiB;EAAA,IAHjBA,OAGiB,6BAHP,QAGO;EAAA,qBAFjBC,IAEiB;EAAA,IAFjBA,IAEiB,0BAFV,SAEU;EAAA,IADdC,IACc;;EACjB,yBACEV,iBAAiB,CAACQ,OAAD,CADnB;EAAA,IAAQG,WAAR,sBAAQA,WAAR;EAAA,IAAqBC,aAArB,sBAAqBA,aAArB;EAAA,IAAoCC,gBAApC,sBAAoCA,gBAApC;;EAGA,OACE,oBAAC,oBAAD;IACE,KAAK,EAAE,CAACN,KADV;IAEE,OAAO,EAAEC,OAFX;IAGE,IAAI,EAAEC,IAHR;IAIE,UAAU,EAAE;MAAA,OAAME,WAAW,CAAC,IAAD,CAAjB;IAAA,CAJd;IAKE,WAAW,EAAE;MAAA,OAAMA,WAAW,CAAC,KAAD,CAAjB;IAAA,CALf;IAME,SAAS,EAAE;MAAA,OAAMC,aAAa,CAAC,IAAD,CAAnB;IAAA,CANb;IAOE,UAAU,EAAE;MAAA,OAAMA,aAAa,CAAC,KAAD,CAAnB;IAAA;EAPd,GAQMF,IARN,GAUGL,YAAY,KAAK,MAAjB,GACC,oBAAC,aAAD;IACE,SAAS,EAAED,SADb;IAEE,IAAI,EAAEK,IAFR;IAGE,gBAAgB,EAAEI;EAHpB,EADD,GAOC,yCAjBJ,EAmBE,oBAAC,aAAD;IACE,KAAK,EAAEN,KADT;IAEE,gBAAgB,EAAEM,gBAFpB;IAGE,OAAO,EAAE,CAAC,CAACT,SAHb;IAIE,YAAY,EAAEC,YAJhB;IAKE,SAAS,EAAEC,SALb;IAME,IAAI,EAAEG;EANR,EAnBF,EA2BGJ,YAAY,KAAK,OAAjB,GACC,oBAAC,aAAD;IACE,SAAS,EAAED,SADb;IAEE,IAAI,EAAEK,IAFR;IAGE,gBAAgB,EAAEI;EAHpB,EADD,GAOC,yCAlCJ,CADF;AAuCD,CAnDD;;AAqDA,eAAeV,cAAf"}
1
+ {"version":3,"file":"IconTextButton.js","names":["IconComponent","React","useIconTextButton","StyledIconTextButton","TextComponent","IconTextButton","iconProps","iconPosition","textProps","label","variant","size","rest","handleHover","handlePressed","defaultFontColor"],"sources":["../../../../src/components/molecules/IconTextButton/IconTextButton.tsx"],"sourcesContent":["import { IconComponent, IconTextButtonProps } from '@tecsinapse/react-core';\nimport React from 'react';\nimport { WebButtonProps } from '../../atoms/Button';\nimport useIconTextButton from './hooks/useIconTextButton';\nimport { StyledIconTextButton } from './styled';\nimport TextComponent from './TextComponent';\n\nexport type WebIconTextButtonProps = IconTextButtonProps &\n Omit<WebButtonProps, 'ButtonProps'>;\n\nconst IconTextButton: React.FC<WebIconTextButtonProps> = ({\n iconProps,\n iconPosition = 'left',\n textProps,\n label,\n variant = 'filled',\n size = 'default',\n ...rest\n}): JSX.Element => {\n const { handleHover, handlePressed, defaultFontColor } =\n useIconTextButton(variant);\n\n return (\n <StyledIconTextButton\n boxed={!label}\n variant={variant}\n size={size}\n onMouseOut={() => handleHover(true)}\n onMouseOver={() => handleHover(false)}\n onPressIn={() => handlePressed(true)}\n onPressOut={() => handlePressed(false)}\n {...rest}\n >\n {iconPosition === 'left' ? (\n <IconComponent\n iconProps={iconProps}\n size={size}\n defaultFontColor={defaultFontColor}\n />\n ) : (\n <></>\n )}\n <TextComponent\n label={label}\n defaultFontColor={defaultFontColor}\n hasIcon={!!iconProps}\n iconPosition={iconPosition}\n textProps={textProps}\n size={size}\n />\n {iconPosition === 'right' ? (\n <IconComponent\n iconProps={iconProps}\n size={size}\n defaultFontColor={defaultFontColor}\n />\n ) : (\n <></>\n )}\n </StyledIconTextButton>\n );\n};\n\nexport default IconTextButton;\n"],"mappings":";;;;;;;;AAAA,SAASA,aAAT,QAAmD,wBAAnD;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,OAAOC,iBAAP;AACA,SAASC,oBAAT;AACA,OAAOC,aAAP;;AAKA,IAAMC,cAAgD,GAAG,SAAnDA,cAAmD,OAQtC;EAAA,IAPjBC,SAOiB,QAPjBA,SAOiB;EAAA,6BANjBC,YAMiB;EAAA,IANjBA,YAMiB,kCANF,MAME;EAAA,IALjBC,SAKiB,QALjBA,SAKiB;EAAA,IAJjBC,KAIiB,QAJjBA,KAIiB;EAAA,wBAHjBC,OAGiB;EAAA,IAHjBA,OAGiB,6BAHP,QAGO;EAAA,qBAFjBC,IAEiB;EAAA,IAFjBA,IAEiB,0BAFV,SAEU;EAAA,IADdC,IACc;;EACjB,yBACEV,iBAAiB,CAACQ,OAAD,CADnB;EAAA,IAAQG,WAAR,sBAAQA,WAAR;EAAA,IAAqBC,aAArB,sBAAqBA,aAArB;EAAA,IAAoCC,gBAApC,sBAAoCA,gBAApC;;EAGA,OACE,oBAAC,oBAAD;IACE,KAAK,EAAE,CAACN,KADV;IAEE,OAAO,EAAEC,OAFX;IAGE,IAAI,EAAEC,IAHR;IAIE,UAAU,EAAE;MAAA,OAAME,WAAW,CAAC,IAAD,CAAjB;IAAA,CAJd;IAKE,WAAW,EAAE;MAAA,OAAMA,WAAW,CAAC,KAAD,CAAjB;IAAA,CALf;IAME,SAAS,EAAE;MAAA,OA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