@tecsinapse/react-web-kit 1.20.1 → 1.21.1

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 (553) hide show
  1. package/CHANGELOG.md +30 -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/index.d.ts +2 -1
  9. package/dist/components/atoms/Accordion/index.js +2 -10
  10. package/dist/components/atoms/Accordion/index.js.map +1 -1
  11. package/dist/components/atoms/Accordion/styled.js +33 -37
  12. package/dist/components/atoms/Accordion/styled.js.map +1 -1
  13. package/dist/components/atoms/Badge/Badge.js +7 -6
  14. package/dist/components/atoms/Badge/Badge.js.map +1 -1
  15. package/dist/components/atoms/Badge/index.d.ts +2 -1
  16. package/dist/components/atoms/Badge/index.js +2 -10
  17. package/dist/components/atoms/Badge/index.js.map +1 -1
  18. package/dist/components/atoms/Button/Button.js +14 -12
  19. package/dist/components/atoms/Button/Button.js.map +1 -1
  20. package/dist/components/atoms/Button/index.d.ts +2 -1
  21. package/dist/components/atoms/Button/index.js +3 -12
  22. package/dist/components/atoms/Button/index.js.map +1 -1
  23. package/dist/components/atoms/Button/styled.js +14 -16
  24. package/dist/components/atoms/Button/styled.js.map +1 -1
  25. package/dist/components/atoms/Dropdown/index.js +6 -5
  26. package/dist/components/atoms/Dropdown/index.js.map +1 -1
  27. package/dist/components/atoms/Dropdown/styled.js +30 -21
  28. package/dist/components/atoms/Dropdown/styled.js.map +1 -1
  29. package/dist/components/atoms/Input/Input.js +26 -24
  30. package/dist/components/atoms/Input/Input.js.map +1 -1
  31. package/dist/components/atoms/Input/index.d.ts +2 -1
  32. package/dist/components/atoms/Input/index.js +2 -10
  33. package/dist/components/atoms/Input/index.js.map +1 -1
  34. package/dist/components/atoms/Input/styled.js +5 -5
  35. package/dist/components/atoms/Input/styled.js.map +1 -1
  36. package/dist/components/atoms/InputMask/InputMask.js +26 -24
  37. package/dist/components/atoms/InputMask/InputMask.js.map +1 -1
  38. package/dist/components/atoms/InputMask/index.d.ts +2 -1
  39. package/dist/components/atoms/InputMask/index.js +2 -10
  40. package/dist/components/atoms/InputMask/index.js.map +1 -1
  41. package/dist/components/atoms/InputMask/styled.js +5 -5
  42. package/dist/components/atoms/InputMask/styled.js.map +1 -1
  43. package/dist/components/atoms/Modal/Modal.js +8 -7
  44. package/dist/components/atoms/Modal/Modal.js.map +1 -1
  45. package/dist/components/atoms/Modal/animations.js +1 -1
  46. package/dist/components/atoms/Modal/animations.js.map +1 -1
  47. package/dist/components/atoms/Modal/index.d.ts +2 -1
  48. package/dist/components/atoms/Modal/index.js +2 -10
  49. package/dist/components/atoms/Modal/index.js.map +1 -1
  50. package/dist/components/atoms/Modal/styled.js +30 -24
  51. package/dist/components/atoms/Modal/styled.js.map +1 -1
  52. package/dist/components/atoms/Overlay/Overlay.js +8 -7
  53. package/dist/components/atoms/Overlay/Overlay.js.map +1 -1
  54. package/dist/components/atoms/Overlay/animations.js +1 -1
  55. package/dist/components/atoms/Overlay/animations.js.map +1 -1
  56. package/dist/components/atoms/Overlay/styled.js +21 -20
  57. package/dist/components/atoms/Overlay/styled.js.map +1 -1
  58. package/dist/components/atoms/Skeleton/Skeleton.js +11 -9
  59. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
  60. package/dist/components/atoms/Skeleton/index.d.ts +2 -1
  61. package/dist/components/atoms/Skeleton/index.js +2 -10
  62. package/dist/components/atoms/Skeleton/index.js.map +1 -1
  63. package/dist/components/atoms/Skeleton/styled.js +42 -66
  64. package/dist/components/atoms/Skeleton/styled.js.map +1 -1
  65. package/dist/components/atoms/Table/Body/TBody.js +5 -4
  66. package/dist/components/atoms/Table/Body/TBody.js.map +1 -1
  67. package/dist/components/atoms/Table/Cell/Td.js +5 -4
  68. package/dist/components/atoms/Table/Cell/Td.js.map +1 -1
  69. package/dist/components/atoms/Table/Cell/styled.js +34 -20
  70. package/dist/components/atoms/Table/Cell/styled.js.map +1 -1
  71. package/dist/components/atoms/Table/Container/TableContainer.js +5 -4
  72. package/dist/components/atoms/Table/Container/TableContainer.js.map +1 -1
  73. package/dist/components/atoms/Table/Container/styled.js +25 -15
  74. package/dist/components/atoms/Table/Container/styled.js.map +1 -1
  75. package/dist/components/atoms/Table/Footer/TFoot.js +5 -4
  76. package/dist/components/atoms/Table/Footer/TFoot.js.map +1 -1
  77. package/dist/components/atoms/Table/Footer/styled.js +5 -6
  78. package/dist/components/atoms/Table/Footer/styled.js.map +1 -1
  79. package/dist/components/atoms/Table/Header/THead.js +5 -4
  80. package/dist/components/atoms/Table/Header/THead.js.map +1 -1
  81. package/dist/components/atoms/Table/Header/Th.js +5 -4
  82. package/dist/components/atoms/Table/Header/Th.js.map +1 -1
  83. package/dist/components/atoms/Table/Header/styled.js +41 -38
  84. package/dist/components/atoms/Table/Header/styled.js.map +1 -1
  85. package/dist/components/atoms/Table/Row/Tr.js +5 -4
  86. package/dist/components/atoms/Table/Row/Tr.js.map +1 -1
  87. package/dist/components/atoms/Table/Row/styled.js +15 -9
  88. package/dist/components/atoms/Table/Row/styled.js.map +1 -1
  89. package/dist/components/atoms/Table/Table.js +5 -4
  90. package/dist/components/atoms/Table/Table.js.map +1 -1
  91. package/dist/components/atoms/Table/Toolbar/TableToolbar.js +7 -6
  92. package/dist/components/atoms/Table/Toolbar/TableToolbar.js.map +1 -1
  93. package/dist/components/atoms/Table/Toolbar/index.d.ts +2 -1
  94. package/dist/components/atoms/Table/Toolbar/index.js +2 -10
  95. package/dist/components/atoms/Table/Toolbar/index.js.map +1 -1
  96. package/dist/components/atoms/Table/Toolbar/styled.js +5 -6
  97. package/dist/components/atoms/Table/Toolbar/styled.js.map +1 -1
  98. package/dist/components/atoms/Table/index.d.ts +2 -1
  99. package/dist/components/atoms/Table/index.js +0 -6
  100. package/dist/components/atoms/Table/index.js.map +1 -1
  101. package/dist/components/atoms/Table/styled.js +10 -7
  102. package/dist/components/atoms/Table/styled.js.map +1 -1
  103. package/dist/components/atoms/Tag/Tag.js +6 -5
  104. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  105. package/dist/components/atoms/Tag/index.d.ts +2 -1
  106. package/dist/components/atoms/Tag/index.js +2 -10
  107. package/dist/components/atoms/Tag/index.js.map +1 -1
  108. package/dist/components/atoms/Tooltip/Tooltip.js +7 -5
  109. package/dist/components/atoms/Tooltip/Tooltip.js.map +1 -1
  110. package/dist/components/atoms/Tooltip/index.d.ts +2 -1
  111. package/dist/components/atoms/Tooltip/index.js +2 -10
  112. package/dist/components/atoms/Tooltip/index.js.map +1 -1
  113. package/dist/components/atoms/Tooltip/styled.js +41 -122
  114. package/dist/components/atoms/Tooltip/styled.js.map +1 -1
  115. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +7 -6
  116. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js.map +1 -1
  117. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js +16 -18
  118. package/dist/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js.map +1 -1
  119. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +5 -4
  120. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -1
  121. package/dist/components/molecules/Breadcrumbs/index.d.ts +2 -1
  122. package/dist/components/molecules/Breadcrumbs/index.js +2 -16
  123. package/dist/components/molecules/Breadcrumbs/index.js.map +1 -1
  124. package/dist/components/molecules/Breadcrumbs/styled.js +25 -18
  125. package/dist/components/molecules/Breadcrumbs/styled.js.map +1 -1
  126. package/dist/components/molecules/DatePicker/DatePicker.js +6 -5
  127. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  128. package/dist/components/molecules/DatePicker/Modal.js +6 -5
  129. package/dist/components/molecules/DatePicker/Modal.js.map +1 -1
  130. package/dist/components/molecules/DatePicker/index.d.ts +2 -1
  131. package/dist/components/molecules/DatePicker/index.js +0 -6
  132. package/dist/components/molecules/DatePicker/index.js.map +1 -1
  133. package/dist/components/molecules/DatePicker/styled.js +20 -30
  134. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  135. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +3 -2
  136. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  137. package/dist/components/molecules/DateTimePicker/Modal.js +6 -5
  138. package/dist/components/molecules/DateTimePicker/Modal.js.map +1 -1
  139. package/dist/components/molecules/DateTimePicker/index.d.ts +2 -1
  140. package/dist/components/molecules/DateTimePicker/index.js +0 -6
  141. package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
  142. package/dist/components/molecules/DateTimePicker/styled.js +15 -29
  143. package/dist/components/molecules/DateTimePicker/styled.js.map +1 -1
  144. package/dist/components/molecules/Drawer/Drawer.js +10 -10
  145. package/dist/components/molecules/Drawer/Drawer.js.map +1 -1
  146. package/dist/components/molecules/Drawer/index.d.ts +2 -1
  147. package/dist/components/molecules/Drawer/index.js +2 -10
  148. package/dist/components/molecules/Drawer/index.js.map +1 -1
  149. package/dist/components/molecules/Drawer/styled.js +35 -63
  150. package/dist/components/molecules/Drawer/styled.js.map +1 -1
  151. package/dist/components/molecules/Grid/Grid.js +15 -11
  152. package/dist/components/molecules/Grid/Grid.js.map +1 -1
  153. package/dist/components/molecules/Grid/Item/Item.js +22 -21
  154. package/dist/components/molecules/Grid/Item/Item.js.map +1 -1
  155. package/dist/components/molecules/Grid/Item/functions.js +5 -2
  156. package/dist/components/molecules/Grid/Item/functions.js.map +1 -1
  157. package/dist/components/molecules/IconTextButton/IconTextButton.js +10 -9
  158. package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
  159. package/dist/components/molecules/IconTextButton/TextComponent.js +12 -9
  160. package/dist/components/molecules/IconTextButton/TextComponent.js.map +1 -1
  161. package/dist/components/molecules/IconTextButton/index.d.ts +2 -1
  162. package/dist/components/molecules/IconTextButton/index.js +2 -10
  163. package/dist/components/molecules/IconTextButton/index.js.map +1 -1
  164. package/dist/components/molecules/IconTextButton/styled.js +25 -18
  165. package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
  166. package/dist/components/molecules/InputPassword/InputPassword.js +5 -4
  167. package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
  168. package/dist/components/molecules/InputPassword/index.d.ts +2 -1
  169. package/dist/components/molecules/InputPassword/index.js +2 -10
  170. package/dist/components/molecules/InputPassword/index.js.map +1 -1
  171. package/dist/components/molecules/LabeledSwitch/LabelComponent.js +13 -10
  172. package/dist/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
  173. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +11 -10
  174. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
  175. package/dist/components/molecules/LabeledSwitch/index.d.ts +2 -1
  176. package/dist/components/molecules/LabeledSwitch/index.js +2 -10
  177. package/dist/components/molecules/LabeledSwitch/index.js.map +1 -1
  178. package/dist/components/molecules/LabeledSwitch/styled.js +12 -17
  179. package/dist/components/molecules/LabeledSwitch/styled.js.map +1 -1
  180. package/dist/components/molecules/Masonry/Masonry.js +8 -6
  181. package/dist/components/molecules/Masonry/Masonry.js.map +1 -1
  182. package/dist/components/molecules/Masonry/styled.js +21 -28
  183. package/dist/components/molecules/Masonry/styled.js.map +1 -1
  184. package/dist/components/molecules/Menubar/MenuBlock/MenuBlock.js +24 -20
  185. package/dist/components/molecules/Menubar/MenuBlock/MenuBlock.js.map +1 -1
  186. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +10 -8
  187. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js.map +1 -1
  188. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js +5 -4
  189. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/SubMenuBlock.js.map +1 -1
  190. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js +21 -15
  191. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js.map +1 -1
  192. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/styled.js +21 -19
  193. package/dist/components/molecules/Menubar/MenuBlock/MenuItem/styled.js.map +1 -1
  194. package/dist/components/molecules/Menubar/MenuBlock/styled.js +34 -33
  195. package/dist/components/molecules/Menubar/MenuBlock/styled.js.map +1 -1
  196. package/dist/components/molecules/Menubar/Menubar.js +14 -12
  197. package/dist/components/molecules/Menubar/Menubar.js.map +1 -1
  198. package/dist/components/molecules/Menubar/MostUsed/MostUsed.js +29 -25
  199. package/dist/components/molecules/Menubar/MostUsed/MostUsed.js.map +1 -1
  200. package/dist/components/molecules/Menubar/MostUsed/styled.js +41 -27
  201. package/dist/components/molecules/Menubar/MostUsed/styled.js.map +1 -1
  202. package/dist/components/molecules/Menubar/SearchResultItem/SearchResultItem.js +6 -5
  203. package/dist/components/molecules/Menubar/SearchResultItem/SearchResultItem.js.map +1 -1
  204. package/dist/components/molecules/Menubar/SearchResultItem/styled.js +21 -16
  205. package/dist/components/molecules/Menubar/SearchResultItem/styled.js.map +1 -1
  206. package/dist/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
  207. package/dist/components/molecules/Menubar/SearchResultItem/utils.js.map +1 -1
  208. package/dist/components/molecules/Menubar/index.d.ts +1 -1
  209. package/dist/components/molecules/Menubar/index.js +1 -24
  210. package/dist/components/molecules/Menubar/index.js.map +1 -1
  211. package/dist/components/molecules/Menubar/styled.js +117 -96
  212. package/dist/components/molecules/Menubar/styled.js.map +1 -1
  213. package/dist/components/molecules/Select/Dropdown/Dropdown.js +16 -15
  214. package/dist/components/molecules/Select/Dropdown/Dropdown.js.map +1 -1
  215. package/dist/components/molecules/Select/Dropdown/components/SearchInput.js +7 -6
  216. package/dist/components/molecules/Select/Dropdown/components/SearchInput.js.map +1 -1
  217. package/dist/components/molecules/Select/Dropdown/styled.js +111 -107
  218. package/dist/components/molecules/Select/Dropdown/styled.js.map +1 -1
  219. package/dist/components/molecules/Select/Select.js +20 -18
  220. package/dist/components/molecules/Select/Select.js.map +1 -1
  221. package/dist/components/molecules/Select/SelectItem/SelectItem.js +13 -12
  222. package/dist/components/molecules/Select/SelectItem/SelectItem.js.map +1 -1
  223. package/dist/components/molecules/Select/SelectItem/styled.js +38 -39
  224. package/dist/components/molecules/Select/SelectItem/styled.js.map +1 -1
  225. package/dist/components/molecules/Select/index.d.ts +2 -1
  226. package/dist/components/molecules/Select/index.js +2 -10
  227. package/dist/components/molecules/Select/index.js.map +1 -1
  228. package/dist/components/molecules/Select/styled.js +6 -11
  229. package/dist/components/molecules/Select/styled.js.map +1 -1
  230. package/dist/components/molecules/Snackbar/Snackbar.js +9 -8
  231. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  232. package/dist/components/molecules/Snackbar/index.d.ts +2 -1
  233. package/dist/components/molecules/Snackbar/index.js +2 -10
  234. package/dist/components/molecules/Snackbar/index.js.map +1 -1
  235. package/dist/components/molecules/Snackbar/styled.js +6 -7
  236. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  237. package/dist/components/molecules/TextArea/TextArea.js +27 -26
  238. package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
  239. package/dist/components/molecules/TextArea/index.d.ts +2 -1
  240. package/dist/components/molecules/TextArea/index.js +2 -10
  241. package/dist/components/molecules/TextArea/index.js.map +1 -1
  242. package/dist/components/molecules/TextArea/styled.js +17 -11
  243. package/dist/components/molecules/TextArea/styled.js.map +1 -1
  244. package/dist/components/organisms/DataGrid/DataGrid.js +34 -32
  245. package/dist/components/organisms/DataGrid/DataGrid.js.map +1 -1
  246. package/dist/components/organisms/DataGrid/Footer/Footer.js +17 -15
  247. package/dist/components/organisms/DataGrid/Footer/Footer.js.map +1 -1
  248. package/dist/components/organisms/DataGrid/Footer/styled.js +75 -74
  249. package/dist/components/organisms/DataGrid/Footer/styled.js.map +1 -1
  250. package/dist/components/organisms/DataGrid/Header/Header.js +37 -32
  251. package/dist/components/organisms/DataGrid/Header/Header.js.map +1 -1
  252. package/dist/components/organisms/DataGrid/Header/styled.js +10 -8
  253. package/dist/components/organisms/DataGrid/Header/styled.js.map +1 -1
  254. package/dist/components/organisms/DataGrid/Row/Row.js +18 -14
  255. package/dist/components/organisms/DataGrid/Row/Row.js.map +1 -1
  256. package/dist/components/organisms/DataGrid/index.d.ts +2 -1
  257. package/dist/components/organisms/DataGrid/index.js +3 -12
  258. package/dist/components/organisms/DataGrid/index.js.map +1 -1
  259. package/dist/components/organisms/DataGrid/styled.js +10 -8
  260. package/dist/components/organisms/DataGrid/styled.js.map +1 -1
  261. package/dist/hooks/useClickAwayListener.js +3 -1
  262. package/dist/hooks/useClickAwayListener.js.map +1 -1
  263. package/dist/index.d.ts +42 -21
  264. package/dist/index.js +3 -194
  265. package/dist/index.js.map +1 -1
  266. package/esm/components/atoms/Accordion/Accordion.js +30 -10
  267. package/esm/components/atoms/Accordion/Accordion.js.map +1 -1
  268. package/esm/components/atoms/Accordion/animations.js +2 -2
  269. package/esm/components/atoms/Accordion/animations.js.map +1 -1
  270. package/esm/components/atoms/Accordion/index.d.ts +2 -1
  271. package/esm/components/atoms/Accordion/index.js +1 -1
  272. package/esm/components/atoms/Accordion/index.js.map +1 -1
  273. package/esm/components/atoms/Accordion/styled.js +7 -7
  274. package/esm/components/atoms/Accordion/styled.js.map +1 -1
  275. package/esm/components/atoms/Badge/Badge.js +3 -1
  276. package/esm/components/atoms/Badge/Badge.js.map +1 -1
  277. package/esm/components/atoms/Badge/index.d.ts +2 -1
  278. package/esm/components/atoms/Badge/index.js +1 -1
  279. package/esm/components/atoms/Badge/index.js.map +1 -1
  280. package/esm/components/atoms/Button/Button.js +3 -1
  281. package/esm/components/atoms/Button/Button.js.map +1 -1
  282. package/esm/components/atoms/Button/hooks/useMouseHover.js +17 -4
  283. package/esm/components/atoms/Button/hooks/useMouseHover.js.map +1 -1
  284. package/esm/components/atoms/Button/hooks/useMousePressed.js +17 -4
  285. package/esm/components/atoms/Button/hooks/useMousePressed.js.map +1 -1
  286. package/esm/components/atoms/Button/index.d.ts +2 -1
  287. package/esm/components/atoms/Button/index.js +1 -1
  288. package/esm/components/atoms/Button/index.js.map +1 -1
  289. package/esm/components/atoms/Button/styled.js +3 -3
  290. package/esm/components/atoms/Button/styled.js.map +1 -1
  291. package/esm/components/atoms/Dropdown/index.js +6 -2
  292. package/esm/components/atoms/Dropdown/index.js.map +1 -1
  293. package/esm/components/atoms/Dropdown/styled.js +2 -2
  294. package/esm/components/atoms/Dropdown/styled.js.map +1 -1
  295. package/esm/components/atoms/Input/Input.js +3 -1
  296. package/esm/components/atoms/Input/Input.js.map +1 -1
  297. package/esm/components/atoms/Input/index.d.ts +2 -1
  298. package/esm/components/atoms/Input/index.js +1 -1
  299. package/esm/components/atoms/Input/index.js.map +1 -1
  300. package/esm/components/atoms/Input/styled.js +2 -2
  301. package/esm/components/atoms/Input/styled.js.map +1 -1
  302. package/esm/components/atoms/InputMask/InputMask.js +3 -1
  303. package/esm/components/atoms/InputMask/InputMask.js.map +1 -1
  304. package/esm/components/atoms/InputMask/index.d.ts +2 -1
  305. package/esm/components/atoms/InputMask/index.js +1 -1
  306. package/esm/components/atoms/InputMask/index.js.map +1 -1
  307. package/esm/components/atoms/InputMask/styled.js +2 -2
  308. package/esm/components/atoms/InputMask/styled.js.map +1 -1
  309. package/esm/components/atoms/Modal/Modal.js +10 -2
  310. package/esm/components/atoms/Modal/Modal.js.map +1 -1
  311. package/esm/components/atoms/Modal/index.d.ts +2 -1
  312. package/esm/components/atoms/Modal/index.js +1 -1
  313. package/esm/components/atoms/Modal/index.js.map +1 -1
  314. package/esm/components/atoms/Modal/styled.js +2 -2
  315. package/esm/components/atoms/Modal/styled.js.map +1 -1
  316. package/esm/components/atoms/Overlay/Overlay.js +6 -2
  317. package/esm/components/atoms/Overlay/Overlay.js.map +1 -1
  318. package/esm/components/atoms/Overlay/styled.js +2 -2
  319. package/esm/components/atoms/Overlay/styled.js.map +1 -1
  320. package/esm/components/atoms/Skeleton/Skeleton.js +3 -1
  321. package/esm/components/atoms/Skeleton/Skeleton.js.map +1 -1
  322. package/esm/components/atoms/Skeleton/index.d.ts +2 -1
  323. package/esm/components/atoms/Skeleton/index.js +1 -1
  324. package/esm/components/atoms/Skeleton/index.js.map +1 -1
  325. package/esm/components/atoms/Skeleton/styled.js +8 -8
  326. package/esm/components/atoms/Skeleton/styled.js.map +1 -1
  327. package/esm/components/atoms/Table/Body/TBody.js +3 -1
  328. package/esm/components/atoms/Table/Body/TBody.js.map +1 -1
  329. package/esm/components/atoms/Table/Cell/Td.js +3 -1
  330. package/esm/components/atoms/Table/Cell/Td.js.map +1 -1
  331. package/esm/components/atoms/Table/Cell/styled.js +2 -2
  332. package/esm/components/atoms/Table/Cell/styled.js.map +1 -1
  333. package/esm/components/atoms/Table/Container/TableContainer.js +3 -1
  334. package/esm/components/atoms/Table/Container/TableContainer.js.map +1 -1
  335. package/esm/components/atoms/Table/Container/styled.js +3 -3
  336. package/esm/components/atoms/Table/Container/styled.js.map +1 -1
  337. package/esm/components/atoms/Table/Footer/TFoot.js +3 -1
  338. package/esm/components/atoms/Table/Footer/TFoot.js.map +1 -1
  339. package/esm/components/atoms/Table/Footer/styled.js +2 -2
  340. package/esm/components/atoms/Table/Footer/styled.js.map +1 -1
  341. package/esm/components/atoms/Table/Header/THead.js +3 -1
  342. package/esm/components/atoms/Table/Header/THead.js.map +1 -1
  343. package/esm/components/atoms/Table/Header/Th.js +3 -1
  344. package/esm/components/atoms/Table/Header/Th.js.map +1 -1
  345. package/esm/components/atoms/Table/Header/styled.js +5 -5
  346. package/esm/components/atoms/Table/Header/styled.js.map +1 -1
  347. package/esm/components/atoms/Table/Row/Tr.js +3 -1
  348. package/esm/components/atoms/Table/Row/Tr.js.map +1 -1
  349. package/esm/components/atoms/Table/Row/styled.js +2 -2
  350. package/esm/components/atoms/Table/Row/styled.js.map +1 -1
  351. package/esm/components/atoms/Table/Table.js +3 -1
  352. package/esm/components/atoms/Table/Table.js.map +1 -1
  353. package/esm/components/atoms/Table/Toolbar/TableToolbar.js +3 -1
  354. package/esm/components/atoms/Table/Toolbar/TableToolbar.js.map +1 -1
  355. package/esm/components/atoms/Table/Toolbar/index.d.ts +2 -1
  356. package/esm/components/atoms/Table/Toolbar/index.js +1 -1
  357. package/esm/components/atoms/Table/Toolbar/index.js.map +1 -1
  358. package/esm/components/atoms/Table/Toolbar/styled.js +2 -2
  359. package/esm/components/atoms/Table/Toolbar/styled.js.map +1 -1
  360. package/esm/components/atoms/Table/index.d.ts +2 -1
  361. package/esm/components/atoms/Table/index.js +1 -1
  362. package/esm/components/atoms/Table/index.js.map +1 -1
  363. package/esm/components/atoms/Table/styled.js +3 -3
  364. package/esm/components/atoms/Table/styled.js.map +1 -1
  365. package/esm/components/atoms/Tag/Tag.js +3 -1
  366. package/esm/components/atoms/Tag/Tag.js.map +1 -1
  367. package/esm/components/atoms/Tag/index.d.ts +2 -1
  368. package/esm/components/atoms/Tag/index.js +1 -1
  369. package/esm/components/atoms/Tag/index.js.map +1 -1
  370. package/esm/components/atoms/Tooltip/Tooltip.js +17 -4
  371. package/esm/components/atoms/Tooltip/Tooltip.js.map +1 -1
  372. package/esm/components/atoms/Tooltip/index.d.ts +2 -1
  373. package/esm/components/atoms/Tooltip/index.js +1 -1
  374. package/esm/components/atoms/Tooltip/index.js.map +1 -1
  375. package/esm/components/atoms/Tooltip/styled.js +15 -15
  376. package/esm/components/atoms/Tooltip/styled.js.map +1 -1
  377. package/esm/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js +3 -3
  378. package/esm/components/molecules/Breadcrumbs/BreadcrumbItem/styled.js.map +1 -1
  379. package/esm/components/molecules/Breadcrumbs/Breadcrumbs.js +3 -1
  380. package/esm/components/molecules/Breadcrumbs/Breadcrumbs.js.map +1 -1
  381. package/esm/components/molecules/Breadcrumbs/index.d.ts +2 -1
  382. package/esm/components/molecules/Breadcrumbs/index.js +1 -1
  383. package/esm/components/molecules/Breadcrumbs/index.js.map +1 -1
  384. package/esm/components/molecules/Breadcrumbs/styled.js +3 -3
  385. package/esm/components/molecules/Breadcrumbs/styled.js.map +1 -1
  386. package/esm/components/molecules/DatePicker/DatePicker.js +18 -3
  387. package/esm/components/molecules/DatePicker/DatePicker.js.map +1 -1
  388. package/esm/components/molecules/DatePicker/Modal.js +3 -1
  389. package/esm/components/molecules/DatePicker/Modal.js.map +1 -1
  390. package/esm/components/molecules/DatePicker/index.d.ts +2 -1
  391. package/esm/components/molecules/DatePicker/index.js +1 -1
  392. package/esm/components/molecules/DatePicker/index.js.map +1 -1
  393. package/esm/components/molecules/DatePicker/styled.js +5 -5
  394. package/esm/components/molecules/DatePicker/styled.js.map +1 -1
  395. package/esm/components/molecules/DateTimePicker/DateTimePicker.js +15 -2
  396. package/esm/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  397. package/esm/components/molecules/DateTimePicker/Modal.js +3 -1
  398. package/esm/components/molecules/DateTimePicker/Modal.js.map +1 -1
  399. package/esm/components/molecules/DateTimePicker/index.d.ts +2 -1
  400. package/esm/components/molecules/DateTimePicker/index.js +1 -1
  401. package/esm/components/molecules/DateTimePicker/index.js.map +1 -1
  402. package/esm/components/molecules/DateTimePicker/styled.js +4 -4
  403. package/esm/components/molecules/DateTimePicker/styled.js.map +1 -1
  404. package/esm/components/molecules/Drawer/Drawer.js +12 -4
  405. package/esm/components/molecules/Drawer/Drawer.js.map +1 -1
  406. package/esm/components/molecules/Drawer/index.d.ts +2 -1
  407. package/esm/components/molecules/Drawer/index.js +1 -1
  408. package/esm/components/molecules/Drawer/index.js.map +1 -1
  409. package/esm/components/molecules/Drawer/styled.js +7 -7
  410. package/esm/components/molecules/Drawer/styled.js.map +1 -1
  411. package/esm/components/molecules/Grid/Grid.js +15 -7
  412. package/esm/components/molecules/Grid/Grid.js.map +1 -1
  413. package/esm/components/molecules/Grid/Item/Item.js +13 -5
  414. package/esm/components/molecules/Grid/Item/Item.js.map +1 -1
  415. package/esm/components/molecules/Grid/Item/functions.js +3 -2
  416. package/esm/components/molecules/Grid/Item/functions.js.map +1 -1
  417. package/esm/components/molecules/IconTextButton/IconTextButton.js +3 -1
  418. package/esm/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
  419. package/esm/components/molecules/IconTextButton/TextComponent.js +3 -3
  420. package/esm/components/molecules/IconTextButton/TextComponent.js.map +1 -1
  421. package/esm/components/molecules/IconTextButton/hooks/useIconTextButton.js +19 -5
  422. package/esm/components/molecules/IconTextButton/hooks/useIconTextButton.js.map +1 -1
  423. package/esm/components/molecules/IconTextButton/index.d.ts +2 -1
  424. package/esm/components/molecules/IconTextButton/index.js +1 -1
  425. package/esm/components/molecules/IconTextButton/index.js.map +1 -1
  426. package/esm/components/molecules/IconTextButton/styled.js +4 -4
  427. package/esm/components/molecules/IconTextButton/styled.js.map +1 -1
  428. package/esm/components/molecules/InputPassword/InputPassword.js +18 -3
  429. package/esm/components/molecules/InputPassword/InputPassword.js.map +1 -1
  430. package/esm/components/molecules/InputPassword/index.d.ts +2 -1
  431. package/esm/components/molecules/InputPassword/index.js +1 -1
  432. package/esm/components/molecules/InputPassword/index.js.map +1 -1
  433. package/esm/components/molecules/LabeledSwitch/LabelComponent.js +5 -3
  434. package/esm/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
  435. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +3 -1
  436. package/esm/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
  437. package/esm/components/molecules/LabeledSwitch/index.d.ts +2 -1
  438. package/esm/components/molecules/LabeledSwitch/index.js +1 -1
  439. package/esm/components/molecules/LabeledSwitch/index.js.map +1 -1
  440. package/esm/components/molecules/LabeledSwitch/styled.js +4 -4
  441. package/esm/components/molecules/LabeledSwitch/styled.js.map +1 -1
  442. package/esm/components/molecules/Masonry/styled.js +4 -4
  443. package/esm/components/molecules/Masonry/styled.js.map +1 -1
  444. package/esm/components/molecules/Menubar/MenuBlock/MenuBlock.js +1 -1
  445. package/esm/components/molecules/Menubar/MenuBlock/MenuBlock.js.map +1 -1
  446. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js +16 -3
  447. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/MenuItem.js.map +1 -1
  448. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js +4 -4
  449. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/SubMenuBlock/styled.js.map +1 -1
  450. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/styled.js +3 -3
  451. package/esm/components/molecules/Menubar/MenuBlock/MenuItem/styled.js.map +1 -1
  452. package/esm/components/molecules/Menubar/MenuBlock/styled.js +7 -7
  453. package/esm/components/molecules/Menubar/MenuBlock/styled.js.map +1 -1
  454. package/esm/components/molecules/Menubar/Menubar.js +30 -12
  455. package/esm/components/molecules/Menubar/Menubar.js.map +1 -1
  456. package/esm/components/molecules/Menubar/MostUsed/MostUsed.js +2 -2
  457. package/esm/components/molecules/Menubar/MostUsed/MostUsed.js.map +1 -1
  458. package/esm/components/molecules/Menubar/MostUsed/styled.js +3 -3
  459. package/esm/components/molecules/Menubar/MostUsed/styled.js.map +1 -1
  460. package/esm/components/molecules/Menubar/SearchResultItem/styled.js +5 -5
  461. package/esm/components/molecules/Menubar/SearchResultItem/styled.js.map +1 -1
  462. package/esm/components/molecules/Menubar/SearchResultItem/utils.js +2 -2
  463. package/esm/components/molecules/Menubar/SearchResultItem/utils.js.map +1 -1
  464. package/esm/components/molecules/Menubar/animations.js +7 -3
  465. package/esm/components/molecules/Menubar/animations.js.map +1 -1
  466. package/esm/components/molecules/Menubar/index.d.ts +1 -1
  467. package/esm/components/molecules/Menubar/index.js +0 -1
  468. package/esm/components/molecules/Menubar/index.js.map +1 -1
  469. package/esm/components/molecules/Menubar/styled.js +11 -11
  470. package/esm/components/molecules/Menubar/styled.js.map +1 -1
  471. package/esm/components/molecules/Menubar/utils.js +1 -1
  472. package/esm/components/molecules/Menubar/utils.js.map +1 -1
  473. package/esm/components/molecules/Select/Dropdown/Dropdown.js +20 -6
  474. package/esm/components/molecules/Select/Dropdown/Dropdown.js.map +1 -1
  475. package/esm/components/molecules/Select/Dropdown/styled.js +13 -13
  476. package/esm/components/molecules/Select/Dropdown/styled.js.map +1 -1
  477. package/esm/components/molecules/Select/Select.js +25 -4
  478. package/esm/components/molecules/Select/Select.js.map +1 -1
  479. package/esm/components/molecules/Select/SelectItem/SelectItem.js +28 -6
  480. package/esm/components/molecules/Select/SelectItem/SelectItem.js.map +1 -1
  481. package/esm/components/molecules/Select/SelectItem/styled.js +6 -6
  482. package/esm/components/molecules/Select/SelectItem/styled.js.map +1 -1
  483. package/esm/components/molecules/Select/index.d.ts +2 -1
  484. package/esm/components/molecules/Select/index.js +1 -1
  485. package/esm/components/molecules/Select/index.js.map +1 -1
  486. package/esm/components/molecules/Select/styled.js +3 -3
  487. package/esm/components/molecules/Select/styled.js.map +1 -1
  488. package/esm/components/molecules/Snackbar/Snackbar.js +3 -1
  489. package/esm/components/molecules/Snackbar/Snackbar.js.map +1 -1
  490. package/esm/components/molecules/Snackbar/index.d.ts +2 -1
  491. package/esm/components/molecules/Snackbar/index.js +1 -1
  492. package/esm/components/molecules/Snackbar/index.js.map +1 -1
  493. package/esm/components/molecules/Snackbar/styled.js +3 -3
  494. package/esm/components/molecules/Snackbar/styled.js.map +1 -1
  495. package/esm/components/molecules/TextArea/TextArea.js +3 -1
  496. package/esm/components/molecules/TextArea/TextArea.js.map +1 -1
  497. package/esm/components/molecules/TextArea/index.d.ts +2 -1
  498. package/esm/components/molecules/TextArea/index.js +1 -1
  499. package/esm/components/molecules/TextArea/index.js.map +1 -1
  500. package/esm/components/molecules/TextArea/styled.js +3 -3
  501. package/esm/components/molecules/TextArea/styled.js.map +1 -1
  502. package/esm/components/organisms/DataGrid/DataGrid.js +27 -13
  503. package/esm/components/organisms/DataGrid/DataGrid.js.map +1 -1
  504. package/esm/components/organisms/DataGrid/Footer/Footer.js +20 -8
  505. package/esm/components/organisms/DataGrid/Footer/Footer.js.map +1 -1
  506. package/esm/components/organisms/DataGrid/Footer/styled.js +12 -12
  507. package/esm/components/organisms/DataGrid/Footer/styled.js.map +1 -1
  508. package/esm/components/organisms/DataGrid/Header/Header.js +21 -8
  509. package/esm/components/organisms/DataGrid/Header/Header.js.map +1 -1
  510. package/esm/components/organisms/DataGrid/Header/styled.js +2 -2
  511. package/esm/components/organisms/DataGrid/Header/styled.js.map +1 -1
  512. package/esm/components/organisms/DataGrid/Row/Row.js +1 -1
  513. package/esm/components/organisms/DataGrid/Row/Row.js.map +1 -1
  514. package/esm/components/organisms/DataGrid/index.d.ts +2 -1
  515. package/esm/components/organisms/DataGrid/index.js +1 -1
  516. package/esm/components/organisms/DataGrid/index.js.map +1 -1
  517. package/esm/components/organisms/DataGrid/styled.js +2 -2
  518. package/esm/components/organisms/DataGrid/styled.js.map +1 -1
  519. package/esm/components/organisms/DataGrid/utils.js +14 -1
  520. package/esm/components/organisms/DataGrid/utils.js.map +1 -1
  521. package/esm/hooks/useClickAwayListener.js +2 -5
  522. package/esm/hooks/useClickAwayListener.js.map +1 -1
  523. package/esm/hooks/useWindowSize.js +15 -2
  524. package/esm/hooks/useWindowSize.js.map +1 -1
  525. package/esm/index.d.ts +42 -21
  526. package/esm/index.js +21 -21
  527. package/esm/index.js.map +1 -1
  528. package/package.json +3 -3
  529. package/src/components/atoms/Accordion/index.ts +2 -1
  530. package/src/components/atoms/Badge/index.ts +2 -1
  531. package/src/components/atoms/Button/index.ts +2 -1
  532. package/src/components/atoms/Input/index.ts +2 -1
  533. package/src/components/atoms/InputMask/index.ts +2 -1
  534. package/src/components/atoms/Modal/index.ts +2 -1
  535. package/src/components/atoms/Skeleton/index.ts +2 -1
  536. package/src/components/atoms/Table/Toolbar/index.ts +2 -1
  537. package/src/components/atoms/Table/index.ts +2 -1
  538. package/src/components/atoms/Tag/index.ts +2 -1
  539. package/src/components/atoms/Tooltip/index.ts +2 -1
  540. package/src/components/molecules/Breadcrumbs/index.ts +2 -5
  541. package/src/components/molecules/DatePicker/index.ts +2 -1
  542. package/src/components/molecules/DateTimePicker/index.ts +2 -1
  543. package/src/components/molecules/Drawer/index.ts +2 -1
  544. package/src/components/molecules/Grid/Item/functions.ts +1 -0
  545. package/src/components/molecules/IconTextButton/index.ts +2 -4
  546. package/src/components/molecules/InputPassword/index.ts +2 -4
  547. package/src/components/molecules/LabeledSwitch/index.ts +2 -4
  548. package/src/components/molecules/Menubar/index.ts +1 -1
  549. package/src/components/molecules/Select/index.ts +2 -1
  550. package/src/components/molecules/Snackbar/index.ts +2 -1
  551. package/src/components/molecules/TextArea/index.ts +2 -1
  552. package/src/components/organisms/DataGrid/index.ts +2 -1
  553. package/src/index.ts +42 -48
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["default","webStyled","nativeStyled","hex2rgba","Button","Input","StyledIconInput","theme","spacing","centi","StyledMenuBar","miscellaneous","surfaceColor","deca","kilo","shadow","StyledMenuButton","StyledContainerOpenMenu","borderWidth","pico","borderRadius","mili","mega","zIndex","header","StyledInput","StyledInputContainer","StyledSearchResultsContainer","StyledSearchTextContainer"],"sources":["../../../../src/components/molecules/Menubar/styled.ts"],"sourcesContent":["import { default as webStyled } from '@emotion/styled';\nimport { default as nativeStyled } from '@emotion/native';\nimport { hex2rgba, StyleProps } from '@tecsinapse/react-core';\nimport { Button } from '../../atoms/Button';\nimport { Input } from '../../atoms/Input';\n\nexport const StyledIconInput = webStyled('div')<Partial<StyleProps>>`\n padding-top: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-left: ${({ theme }) => theme.spacing.centi};\n padding-bottom: calc(${({ theme }) => theme.spacing.centi} - 2px);\n padding-right: ${({ theme }) => theme.spacing.centi};\n`;\n\nexport const StyledMenuBar = webStyled('div')<Partial<StyleProps>>`\n position: relative;\n background-color: ${({ theme }) => theme.miscellaneous.surfaceColor};\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: ${({ theme }) => `${theme.spacing.deca} ${theme.spacing.kilo}`};\n box-shadow: 0px 2px 8px ${({ theme }) =>\n hex2rgba(theme.miscellaneous.shadow, 0.05)};\n`;\n\nexport const StyledMenuButton = nativeStyled(Button)<Partial<StyleProps>>`\n padding-top: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-right: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-bottom: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-left: calc(${({ theme }) => theme.spacing.centi} + 2px);\n margin-right: ${({ theme }) => theme.spacing.kilo};\n & * {\n user-select: none;\n }\n`;\n\nexport const StyledContainerOpenMenu = webStyled('div')<Partial<StyleProps>>`\n border-top: ${({ theme }) =>\n `${theme.borderWidth.pico} solid ${hex2rgba(\n theme.miscellaneous.shadow,\n 0.05\n )}`};\n background-color: ${({ theme }) => theme.miscellaneous.surfaceColor}; \n border-bottom-left-radius: ${({ theme }) => theme.borderRadius.mili}; \n border-bottom-right-radius: ${({ theme }) => theme.borderRadius.mili};\n box-shadow: 0px 2px 8px ${({ theme }) =>\n hex2rgba(theme.miscellaneous.shadow, 0.05)};\n padding-right: 8vw;\n padding-left: 8vw;\n padding-top: ${({ theme }) => theme.spacing.kilo};\n padding-bottom: ${({ theme }) => theme.spacing.mega};\n position: absolute;\n z-index: ${({ theme }) => theme.zIndex.header + 1};\n width: -webkit-fill-available;\n width: -moz-available;\n`;\n\nexport const StyledInput = nativeStyled(Input)<Partial<StyleProps>>`\n width: 100%;\n`;\n\nexport const StyledInputContainer = webStyled('div')`\n display: flex;\n flex: 1;\n`;\n\nexport const StyledSearchResultsContainer = webStyled('div')`\n display: flex;\n flex-direction: column;\n`;\n\nexport const StyledSearchTextContainer = webStyled('div')<Partial<StyleProps>>`\n margin-bottom: ${({ theme }) => theme.spacing.mili};\n`;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f,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAACgB,MAAN,CAAaC,MAAb,GAAsB,CAArC;AAAA,CAhBqB,CAA7B;AAqBP,OAAO,IAAMC,WAAW,GAAGvB,YAAY,CAACG,KAAD,CAAf,iGAAjB;AAIP,OAAO,IAAMqB,oBAAoB,GAAGzB,SAAS,CAAC,KAAD,CAAZ,gHAA1B;AAKP,OAAO,IAAM0B,4BAA4B,GAAG1B,SAAS,CAAC,KAAD,CAAZ,+HAAlC;AAKP,OAAO,IAAM2B,yBAAyB,GAAG3B,SAAS,CAAC,KAAD,CAAZ,yGACjB;EAAA,IAAGM,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,OAAN,CAAca,IAA7B;AAAA,CADiB,CAA/B"}
1
+ {"version":3,"file":"styled.js","names":["default","webStyled","nativeStyled","hex2rgba","Button","Input","StyledIconInput","theme","spacing","centi","StyledMenuBar","miscellaneous","surfaceColor","deca","kilo","shadow","StyledMenuButton","StyledContainerOpenMenu","borderWidth","pico","borderRadius","mili","mega","zIndex","header","StyledInput","StyledInputContainer","StyledSearchResultsContainer","StyledSearchTextContainer"],"sources":["../../../../src/components/molecules/Menubar/styled.ts"],"sourcesContent":["import { default as webStyled } from '@emotion/styled';\nimport { default as nativeStyled } from '@emotion/native';\nimport { hex2rgba, StyleProps } from '@tecsinapse/react-core';\nimport { Button } from '../../atoms/Button';\nimport { Input } from '../../atoms/Input';\n\nexport const StyledIconInput = webStyled('div')<Partial<StyleProps>>`\n padding-top: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-left: ${({ theme }) => theme.spacing.centi};\n padding-bottom: calc(${({ theme }) => theme.spacing.centi} - 2px);\n padding-right: ${({ theme }) => theme.spacing.centi};\n`;\n\nexport const StyledMenuBar = webStyled('div')<Partial<StyleProps>>`\n position: relative;\n background-color: ${({ theme }) => theme.miscellaneous.surfaceColor};\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: ${({ theme }) => `${theme.spacing.deca} ${theme.spacing.kilo}`};\n box-shadow: 0px 2px 8px ${({ theme }) =>\n hex2rgba(theme.miscellaneous.shadow, 0.05)};\n`;\n\nexport const StyledMenuButton = nativeStyled(Button)<Partial<StyleProps>>`\n padding-top: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-right: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-bottom: calc(${({ theme }) => theme.spacing.centi} + 2px);\n padding-left: calc(${({ theme }) => theme.spacing.centi} + 2px);\n margin-right: ${({ theme }) => theme.spacing.kilo};\n & * {\n user-select: none;\n }\n`;\n\nexport const StyledContainerOpenMenu = webStyled('div')<Partial<StyleProps>>`\n border-top: ${({ theme }) =>\n `${theme.borderWidth.pico} solid ${hex2rgba(\n theme.miscellaneous.shadow,\n 0.05\n )}`};\n background-color: ${({ theme }) => theme.miscellaneous.surfaceColor}; \n border-bottom-left-radius: ${({ theme }) => theme.borderRadius.mili}; \n border-bottom-right-radius: ${({ theme }) => theme.borderRadius.mili};\n box-shadow: 0px 2px 8px ${({ theme }) =>\n hex2rgba(theme.miscellaneous.shadow, 0.05)};\n padding-right: 8vw;\n padding-left: 8vw;\n padding-top: ${({ theme }) => theme.spacing.kilo};\n padding-bottom: ${({ theme }) => theme.spacing.mega};\n position: absolute;\n z-index: ${({ theme }) => theme.zIndex.header + 1};\n width: -webkit-fill-available;\n width: -moz-available;\n`;\n\nexport const StyledInput = nativeStyled(Input)<Partial<StyleProps>>`\n width: 100%;\n`;\n\nexport const StyledInputContainer = webStyled('div')`\n display: flex;\n flex: 1;\n`;\n\nexport const StyledSearchResultsContainer = webStyled('div')`\n display: flex;\n flex-direction: column;\n`;\n\nexport const StyledSearchTextContainer = webStyled('div')<Partial<StyleProps>>`\n margin-bottom: ${({ theme }) => theme.spacing.mili};\n`;\n"],"mappings":";;;;AAAA,SAASA,OAAO,IAAIC,SAApB,QAAqC,iBAArC;AACA,SAASD,OAAO,IAAIE,YAApB,QAAwC,iBAAxC;AACA,SAASC,QAAT,Q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,WAAW,GAAGvB,YAAY,CAACG,KAAD,CAAf,4FAAjB;AAIP,OAAO,IAAMqB,oBAAoB,GAAGzB,SAAS,CAAC,KAAD,CAAZ,2GAA1B;AAKP,OAAO,IAAM0B,4BAA4B,GAAG1B,SAAS,CAAC,KAAD,CAAZ,0HAAlC;AAKP,OAAO,IAAM2B,yBAAyB,GAAG3B,SAAS,CAAC,KAAD,CAAZ,oGACjB;EAAA,IAAGM,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,OAAN,CAAca,IAA7B;AAAA,CADiB,CAA/B"}
@@ -13,7 +13,7 @@ export var filterAndTransform = function filterAndTransform(options, search) {
13
13
  });
14
14
  }
15
15
 
16
- (_item$items = item.items) == null ? void 0 : _item$items.forEach(function (sub) {
16
+ (_item$items = item.items) === null || _item$items === void 0 ? void 0 : _item$items.forEach(function (sub) {
17
17
  if (sub.title.toLowerCase().startsWith(search)) {
18
18
  normalized.push({
19
19
  title: sub.title,
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":["filterAndTransform","options","search","normalized","forEach","option","items","item","title","toLowerCase","startsWith","push","Component","props","category","sub"],"sources":["../../../../src/components/molecules/Menubar/utils.ts"],"sourcesContent":["import { MostUsedType, OptionsType } from './types';\n\nexport const filterAndTransform = (\n options: OptionsType[],\n search: string\n): MostUsedType[] => {\n const normalized: MostUsedType[] = [];\n options.forEach(option => {\n option.items.forEach(item => {\n if (item.title.toLowerCase().startsWith(search)) {\n normalized.push({\n title: item.title,\n Component: item.Component,\n props: item.props,\n category: option.title,\n });\n }\n item.items?.forEach(sub => {\n if (sub.title.toLowerCase().startsWith(search)) {\n normalized.push({\n title: sub.title,\n Component: sub.Component,\n props: sub.props,\n category: option.title,\n });\n }\n });\n });\n });\n\n return normalized;\n};\n"],"mappings":"AAEA,OAAO,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,OADgC,EAEhCC,MAFgC,EAGb;EACnB,IAAMC,UAA0B,GAAG,EAAnC;EACAF,OAAO,CAACG,OAAR,CAAgB,UAAAC,MAAM,EAAI;IACxBA,MAAM,CAACC,KAAP,CAAaF,OAAb,CAAqB,UAAAG,IAAI,EAAI;MAAA;;MAC3B,IAAIA,IAAI,CAACC,KAAL,CAAWC,WAAX,GAAyBC,UAAzB,CAAoCR,MAApC,CAAJ,EAAiD;QAC/CC,UAAU,CAACQ,IAAX,CAAgB;UACdH,KAAK,EAAED,IAAI,CAACC,KADE;UAEdI,SAAS,EAAEL,IAAI,CAACK,SAFF;UAGdC,KAAK,EAAEN,IAAI,CAACM,KAHE;UAIdC,QAAQ,EAAET,MAAM,CAACG;QAJH,CAAhB;MAMD;;MACD,eAAAD,IAAI,CAACD,KAAL,iCAAYF,OAAZ,CAAoB,UAAAW,GAAG,EAAI;QACzB,IAAIA,GAAG,CAACP,KAAJ,CAAUC,WAAV,GAAwBC,UAAxB,CAAmCR,MAAnC,CAAJ,EAAgD;UAC9CC,UAAU,CAACQ,IAAX,CAAgB;YACdH,KAAK,EAAEO,GAAG,CAACP,KADG;YAEdI,SAAS,EAAEG,GAAG,CAACH,SAFD;YAGdC,KAAK,EAAEE,GAAG,CAACF,KAHG;YAIdC,QAAQ,EAAET,MAAM,CAACG;UAJH,CAAhB;QAMD;MACF,CATD;IAUD,CAnBD;EAoBD,CArBD;EAuBA,OAAOL,UAAP;AACD,CA7BM"}
1
+ {"version":3,"file":"utils.js","names":["filterAndTransform","options","search","normalized","forEach","option","items","item","title","toLowerCase","startsWith","push","Component","props","category","sub"],"sources":["../../../../src/components/molecules/Menubar/utils.ts"],"sourcesContent":["import { MostUsedType, OptionsType } from './types';\n\nexport const filterAndTransform = (\n options: OptionsType[],\n search: string\n): MostUsedType[] => {\n const normalized: MostUsedType[] = [];\n options.forEach(option => {\n option.items.forEach(item => {\n if (item.title.toLowerCase().startsWith(search)) {\n normalized.push({\n title: item.title,\n Component: item.Component,\n props: item.props,\n category: option.title,\n });\n }\n item.items?.forEach(sub => {\n if (sub.title.toLowerCase().startsWith(search)) {\n normalized.push({\n title: sub.title,\n Component: sub.Component,\n props: sub.props,\n category: option.title,\n });\n }\n });\n });\n });\n\n return normalized;\n};\n"],"mappings":"AAEA,OAAO,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CAChCC,OADgC,EAEhCC,MAFgC,EAGb;EACnB,IAAMC,UAA0B,GAAG,EAAnC;EACAF,OAAO,CAACG,OAAR,CAAgB,UAAAC,MAAM,EAAI;IACxBA,MAAM,CAACC,KAAP,CAAaF,OAAb,CAAqB,UAAAG,IAAI,EAAI;MAAA;;MAC3B,IAAIA,IAAI,CAACC,KAAL,CAAWC,WAAX,GAAyBC,UAAzB,CAAoCR,MAApC,CAAJ,EAAiD;QAC/CC,UAAU,CAACQ,IAAX,CAAgB;UACdH,KAAK,EAAED,IAAI,CAACC,KADE;UAEdI,SAAS,EAAEL,IAAI,CAACK,SAFF;UAGdC,KAAK,EAAEN,IAAI,CAACM,KAHE;UAIdC,QAAQ,EAAET,MAAM,CAACG;QAJH,CAAhB;MAMD;;MACD,eAAAD,IAAI,CAACD,KAAL,4DAAYF,OAAZ,CAAoB,UAAAW,GAAG,EAAI;QACzB,IAAIA,GAAG,CAACP,KAAJ,CAAUC,WAAV,GAAwBC,UAAxB,CAAmCR,MAAnC,CAAJ,EAAgD;UAC9CC,UAAU,CAACQ,IAAX,CAAgB;YACdH,KAAK,EAAEO,GAAG,CAACP,KADG;YAEdI,SAAS,EAAEG,GAAG,CAACH,SAFD;YAGdC,KAAK,EAAEE,GAAG,CAACF,KAHG;YAIdC,QAAQ,EAAET,MAAM,CAACG;UAJH,CAAhB;QAMD;MACF,CATD;IAUD,CAnBD;EAoBD,CArBD;EAuBA,OAAOL,UAAP;AACD,CA7BM"}
@@ -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
  import React from 'react';
2
14
  import { Checkbox, Text, useDebouncedState } from '@tecsinapse/react-core';
3
15
  import { ItemSelect } from "../SelectItem";
@@ -23,20 +35,22 @@ var Dropdown = function Dropdown(_ref) {
23
35
  searchBarPlaceholder = _ref.searchBarPlaceholder;
24
36
 
25
37
  var _useDebouncedState = useDebouncedState('', onSearch),
26
- searchArg = _useDebouncedState[0],
27
- setSearchArg = _useDebouncedState[1];
38
+ _useDebouncedState2 = _slicedToArray(_useDebouncedState, 2),
39
+ searchArg = _useDebouncedState2[0],
40
+ setSearchArg = _useDebouncedState2[1];
28
41
 
29
42
  var lengthOptions = React.useMemo(function () {
30
43
  return options.length;
31
44
  }, [options]);
32
45
 
33
- var _React$useState = React.useState(type === 'multi' && (value == null ? void 0 : value.length) === lengthOptions),
34
- checkedAll = _React$useState[0],
35
- setCheckedAll = _React$useState[1];
46
+ var _React$useState = React.useState(type === 'multi' && (value === null || value === void 0 ? void 0 : value.length) === lengthOptions),
47
+ _React$useState2 = _slicedToArray(_React$useState, 2),
48
+ checkedAll = _React$useState2[0],
49
+ setCheckedAll = _React$useState2[1];
36
50
 
37
51
  React.useEffect(function () {
38
52
  if (type === 'multi') {
39
- lengthOptions === (value == null ? void 0 : value.length) ? setCheckedAll(true) : setCheckedAll(false);
53
+ lengthOptions === (value === null || value === void 0 ? void 0 : value.length) ? setCheckedAll(true) : setCheckedAll(false);
40
54
  }
41
55
  }, [value, type, lengthOptions]);
42
56
  var onClickCheckAll = React.useCallback(function () {
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.js","names":["React","Checkbox","Text","useDebouncedState","ItemSelect","SearchBarContainer","StyledContainerCheckAll","StyledContainerDropdown","StyledContainerTextLabel","StyledSpan","OptionsContainer","PaddedContainer","SearchInput","fullWidth","width","Dropdown","options","onSearch","type","hideSearchBar","onSelect","value","keyExtractor","labelExtractor","setDropDownVisible","style","anchor","selectAllLabel","searchBarPlaceholder","searchArg","setSearchArg","lengthOptions","useMemo","length","useState","checkedAll","setCheckedAll","useEffect","onClickCheckAll","useCallback","items","map","option","aux","prev","auxArray","onChange","text","undefined","item","index"],"sources":["../../../../../src/components/molecules/Select/Dropdown/Dropdown.tsx"],"sourcesContent":["import React from 'react';\nimport { Checkbox, Text, useDebouncedState } from '@tecsinapse/react-core';\nimport { ItemSelect } from '../SelectItem';\nimport { SelectProps } from '../Select';\nimport {\n SearchBarContainer,\n StyledContainerCheckAll,\n StyledContainerDropdown,\n StyledContainerTextLabel,\n StyledSpan,\n OptionsContainer,\n PaddedContainer,\n} from './styled';\nimport { SearchInput } from './components';\n\nconst fullWidth = { width: '100%' };\n\nconst Dropdown = <Data, Type extends 'single' | 'multi'>({\n options,\n onSearch,\n type,\n hideSearchBar,\n onSelect,\n value,\n keyExtractor,\n labelExtractor,\n setDropDownVisible,\n style,\n anchor,\n selectAllLabel,\n searchBarPlaceholder,\n}: SelectProps<Data, Type> & {\n setDropDownVisible: (t: boolean) => void;\n}): JSX.Element => {\n const [searchArg, setSearchArg] = useDebouncedState<string>('', onSearch);\n const lengthOptions = React.useMemo(() => options.length, [options]);\n\n const [checkedAll, setCheckedAll] = React.useState<boolean>(\n type === 'multi' && (value as Data[])?.length === lengthOptions\n );\n\n React.useEffect(() => {\n if (type === 'multi') {\n lengthOptions === (value as Data[])?.length\n ? setCheckedAll(true)\n : setCheckedAll(false);\n }\n }, [value, type, lengthOptions]);\n\n const onClickCheckAll = React.useCallback(() => {\n const items = options.map(option => option);\n let aux;\n setCheckedAll(prev => {\n aux = !prev;\n return !prev;\n });\n type OnSelectArg = Parameters<typeof onSelect>[0];\n const auxArray: Data[] = [];\n !aux ? onSelect(auxArray as OnSelectArg) : onSelect(items as OnSelectArg);\n }, [options, setCheckedAll, onSelect]);\n\n const onChange = React.useCallback(\n text => setSearchArg(text),\n [setSearchArg]\n );\n\n return (\n <StyledContainerDropdown\n lengthOptions={lengthOptions}\n style={style}\n anchor={anchor}\n >\n {type === 'multi' && (\n <StyledContainerCheckAll\n onClick={hideSearchBar ? onClickCheckAll : undefined}\n >\n <Checkbox checked={checkedAll} onChange={onClickCheckAll} />\n {!hideSearchBar ? (\n <SearchBarContainer>\n <SearchInput\n searchArg={searchArg}\n onChange={onChange}\n fullWidth={fullWidth}\n placeholder={searchBarPlaceholder}\n />\n </SearchBarContainer>\n ) : (\n <StyledContainerTextLabel>\n <Text fontWeight=\"bold\">\n <StyledSpan>{selectAllLabel}</StyledSpan>\n </Text>\n </StyledContainerTextLabel>\n )}\n </StyledContainerCheckAll>\n )}\n {type === 'single' && !hideSearchBar && (\n <PaddedContainer>\n <SearchInput\n searchArg={searchArg}\n onChange={onChange}\n fullWidth={fullWidth}\n placeholder={searchBarPlaceholder}\n />\n </PaddedContainer>\n )}\n <OptionsContainer lengthOptions={options.length}>\n {options.map((item, index) => (\n <ItemSelect\n type={type}\n key={keyExtractor(item)}\n item={item}\n onSelect={onSelect}\n value={value}\n keyExtractor={keyExtractor}\n index={index}\n labelExtractor={labelExtractor}\n setDropDownVisible={setDropDownVisible}\n checkedAll={checkedAll}\n setCheckedAll={setCheckedAll}\n lenghtOptions={lengthOptions}\n />\n ))}\n </OptionsContainer>\n </StyledContainerDropdown>\n );\n};\n\nexport default Dropdown;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,EAAmBC,IAAnB,EAAyBC,iBAAzB,QAAkD,wBAAlD;AACA,SAASC,UAAT;AAEA,SACEC,kBADF,EAEEC,uBAFF,EAGEC,uBAHF,EAIEC,wBAJF,EAKEC,UALF,EAMEC,gBANF,EAOEC,eAPF;AASA,SAASC,WAAT;AAEA,IAAMC,SAAS,GAAG;EAAEC,KAAK,EAAE;AAAT,CAAlB;;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,OAgBE;EAAA,IAfjBC,OAeiB,QAfjBA,OAeiB;EAAA,IAdjBC,QAciB,QAdjBA,QAciB;EAAA,IAbjBC,IAaiB,QAbjBA,IAaiB;EAAA,IAZjBC,aAYiB,QAZjBA,aAYiB;EAAA,IAXjBC,QAWiB,QAXjBA,QAWiB;EAAA,IAVjBC,KAUiB,QAVjBA,KAUiB;EAAA,IATjBC,YASiB,QATjBA,YASiB;EAAA,IARjBC,cAQiB,QARjBA,cAQiB;EAAA,IAPjBC,kBAOiB,QAPjBA,kBAOiB;EAAA,IANjBC,KAMiB,QANjBA,KAMiB;EAAA,IALjBC,MAKiB,QALjBA,MAKiB;EAAA,IAJjBC,cAIiB,QAJjBA,cAIiB;EAAA,IAHjBC,oBAGiB,QAHjBA,oBAGiB;;EACjB,yBAAkCzB,iBAAiB,CAAS,EAAT,EAAac,QAAb,CAAnD;EAAA,IAAOY,SAAP;EAAA,IAAkBC,YAAlB;;EACA,IAAMC,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CAAZ,CADH,CAtCF,CADF;AA2DD,CA5GD;;AA8GA,eAAehB,QAAf"}
1
+ {"version":3,"file":"Dropdown.js","names":["React","Checkbox","Text","useDebouncedState","ItemSelect","SearchBarContainer","StyledContainerCheckAll","StyledContainerDropdown","StyledContainerTextLabel","StyledSpan","OptionsContainer","PaddedContainer","SearchInput","fullWidth","width","Dropdown","options","onSearch","type","hideSearchBar","onSelect","value","keyExtractor","labelExtractor","setDropDownVisible","style","anchor","selectAllLabel","searchBarPlaceholder","searchArg","setSearchArg","lengthOptions","useMemo","length","useState","checkedAll","setCheckedAll","useEffect","onClickCheckAll","useCallback","items","map","option","aux","prev","auxArray","onChange","text","undefined","item","index"],"sources":["../../../../../src/components/molecules/Select/Dropdown/Dropdown.tsx"],"sourcesContent":["import React from 'react';\nimport { Checkbox, Text, useDebouncedState } from '@tecsinapse/react-core';\nimport { ItemSelect } from '../SelectItem';\nimport { SelectProps } from '../Select';\nimport {\n SearchBarContainer,\n StyledContainerCheckAll,\n StyledContainerDropdown,\n StyledContainerTextLabel,\n StyledSpan,\n OptionsContainer,\n PaddedContainer,\n} from './styled';\nimport { SearchInput } from './components';\n\nconst fullWidth = { width: '100%' };\n\nconst Dropdown = <Data, Type extends 'single' | 'multi'>({\n options,\n onSearch,\n type,\n hideSearchBar,\n onSelect,\n value,\n keyExtractor,\n labelExtractor,\n setDropDownVisible,\n style,\n anchor,\n selectAllLabel,\n searchBarPlaceholder,\n}: SelectProps<Data, Type> & {\n setDropDownVisible: (t: boolean) => void;\n}): JSX.Element => {\n const [searchArg, setSearchArg] = useDebouncedState<string>('', onSearch);\n const lengthOptions = React.useMemo(() => options.length, [options]);\n\n const [checkedAll, setCheckedAll] = React.useState<boolean>(\n type === 'multi' && (value as Data[])?.length === lengthOptions\n );\n\n React.useEffect(() => {\n if (type === 'multi') {\n lengthOptions === (value as Data[])?.length\n ? setCheckedAll(true)\n : setCheckedAll(false);\n }\n }, [value, type, lengthOptions]);\n\n const onClickCheckAll = React.useCallback(() => {\n const items = options.map(option => option);\n let aux;\n setCheckedAll(prev => {\n aux = !prev;\n return !prev;\n });\n type OnSelectArg = Parameters<typeof onSelect>[0];\n const auxArray: Data[] = [];\n !aux ? onSelect(auxArray as OnSelectArg) : onSelect(items as OnSelectArg);\n }, [options, setCheckedAll, onSelect]);\n\n const onChange = React.useCallback(\n text => setSearchArg(text),\n [setSearchArg]\n );\n\n return (\n <StyledContainerDropdown\n lengthOptions={lengthOptions}\n style={style}\n anchor={anchor}\n >\n {type === 'multi' && (\n <StyledContainerCheckAll\n onClick={hideSearchBar ? onClickCheckAll : undefined}\n >\n <Checkbox checked={checkedAll} onChange={onClickCheckAll} />\n {!hideSearchBar ? (\n <SearchBarContainer>\n <SearchInput\n searchArg={searchArg}\n onChange={onChange}\n fullWidth={fullWidth}\n placeholder={searchBarPlaceholder}\n />\n </SearchBarContainer>\n ) : (\n <StyledContainerTextLabel>\n <Text fontWeight=\"bold\">\n <StyledSpan>{selectAllLabel}</StyledSpan>\n </Text>\n </StyledContainerTextLabel>\n )}\n </StyledContainerCheckAll>\n )}\n {type === 'single' && !hideSearchBar && (\n <PaddedContainer>\n <SearchInput\n searchArg={searchArg}\n onChange={onChange}\n fullWidth={fullWidth}\n placeholder={searchBarPlaceholder}\n />\n </PaddedContainer>\n )}\n <OptionsContainer lengthOptions={options.length}>\n {options.map((item, index) => (\n <ItemSelect\n type={type}\n key={keyExtractor(item)}\n item={item}\n onSelect={onSelect}\n value={value}\n keyExtractor={keyExtractor}\n index={index}\n labelExtractor={labelExtractor}\n setDropDownVisible={setDropDownVisible}\n checkedAll={checkedAll}\n setCheckedAll={setCheckedAll}\n lenghtOptions={lengthOptions}\n />\n ))}\n </OptionsContainer>\n </StyledContainerDropdown>\n );\n};\n\nexport default Dropdown;\n"],"mappings":";;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,EAAmBC,IAAnB,EAAyBC,iBAAzB,QAAkD,wBAAlD;AACA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AS,EAAEjC,SAHb;IAIE,WAAW,EAAEe;EAJf,EADF,CADD,GAUC,oBAAC,wBAAD,QACE,oBAAC,IAAD;IAAM,UAAU,EAAC;EAAjB,GACE,oBAAC,UAAD,QAAaD,cAAb,CADF,CADF,CAdJ,CANJ,EA4BGT,IAAI,KAAK,QAAT,IAAqB,CAACC,aAAtB,IACC,oBAAC,eAAD,QACE,oBAAC,WAAD;IACE,SAAS,EAAEU,SADb;IAEE,QAAQ,EAAEiB,QAFZ;IAGE,SAAS,EAAEjC,SAHb;IAIE,WAAW,EAAEe;EAJf,EADF,CA7BJ,EAsCE,oBAAC,gBAAD;IAAkB,aAAa,EAAEZ,OAAO,CAACiB;EAAzC,GACGjB,OAAO,CAACyB,GAAR,CAAY,UAACQ,IAAD,EAAOC,KAAP;IAAA,OACX,oBAAC,UAAD;MACE,IAAI,EAAEhC,IADR;MAEE,GAAG,EAAEI,YAAY,CAAC2B,IAAD,CAFnB;MAGE,IAAI,EAAEA,IAHR;MAIE,QAAQ,EAAE7B,QAJZ;MAKE,KAAK,EAAEC,KALT;MAME,YAAY,EAAEC,YANhB;MAOE,KAAK,EAAE4B,KAPT;MAQE,cAAc,EAAE3B,cARlB;MASE,kBAAkB,EAAEC,kBATtB;MAUE,UAAU,EAAEW,UAVd;MAWE,aAAa,EAAEC,aAXjB;MAYE,aAAa,EAAEL;IAZjB,EADW;EAAA,CAAZ,CADH,CAtCF,CADF;AA2DD,CA5GD;;AA8GA,eAAehB,QAAf"}
@@ -1,6 +1,6 @@
1
1
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
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 { hex2rgba } from '@tecsinapse/react-core';
@@ -9,16 +9,16 @@ import { css } from '@emotion/react';
9
9
  var anchorBottom = function anchorBottom(_ref) {
10
10
  var theme = _ref.theme,
11
11
  anchor = _ref.anchor;
12
- return anchor === 'bottom' && css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n margin-top: ", ";\n top: 100%;\n "])), theme.spacing.centi);
12
+ return anchor === 'bottom' && css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: ", ";\n top: 100%;\n "])), theme.spacing.centi);
13
13
  };
14
14
 
15
15
  var anchorTop = function anchorTop(_ref2) {
16
16
  var theme = _ref2.theme,
17
17
  anchor = _ref2.anchor;
18
- return anchor === 'top' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n margin-bottom: ", ";\n bottom: 100%;\n "])), theme.spacing.centi);
18
+ return anchor === 'top' && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n bottom: 100%;\n "])), theme.spacing.centi);
19
19
  };
20
20
 
21
- export var StyledContainerDropdown = styled('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n width: 100%;\n background-color: ", ";\n border-radius: ", ";\n box-shadow: 0 2px 8px\n ", ";\n position: absolute;\n padding-top: ", ";\n padding-bottom: ", ";\n z-index: ", ";\n ", "\n ", "\n"])), function (_ref3) {
21
+ export var StyledContainerDropdown = styled('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n background-color: ", ";\n border-radius: ", ";\n box-shadow: 0 2px 8px\n ", ";\n position: absolute;\n padding-top: ", ";\n padding-bottom: ", ";\n z-index: ", ";\n ", "\n ", "\n"])), function (_ref3) {
22
22
  var theme = _ref3.theme;
23
23
  return theme.miscellaneous.surfaceColor;
24
24
  }, function (_ref4) {
@@ -30,7 +30,7 @@ export var StyledContainerDropdown = styled('div')(_templateObject3 || (_templat
30
30
  }, function (_ref6) {
31
31
  var theme = _ref6.theme,
32
32
  hideSearchBar = _ref6.hideSearchBar;
33
- return !hideSearchBar ? "" + theme.spacing.deca : '0px';
33
+ return !hideSearchBar ? "".concat(theme.spacing.deca) : '0px';
34
34
  }, function (_ref7) {
35
35
  var theme = _ref7.theme;
36
36
  return theme.spacing.mili;
@@ -38,7 +38,7 @@ export var StyledContainerDropdown = styled('div')(_templateObject3 || (_templat
38
38
  var theme = _ref8.theme;
39
39
  return theme.zIndex.select;
40
40
  }, anchorTop, anchorBottom);
41
- export var OptionsContainer = styled('div')(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n max-height: 250px;\n top: 100%;\n overflow-y: ", ";\n ::-webkit-scrollbar {\n width: 8px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n ::-webkit-scrollbar-thumb:hover {\n background-color: ", ";\n },\n"])), function (_ref9) {
41
+ export var OptionsContainer = styled('div')(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n max-height: 250px;\n top: 100%;\n overflow-y: ", ";\n ::-webkit-scrollbar {\n width: 8px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background-color: ", ";\n }\n ::-webkit-scrollbar-thumb:hover {\n background-color: ", ";\n },\n"])), function (_ref9) {
42
42
  var _ref9$lengthOptions = _ref9.lengthOptions,
43
43
  lengthOptions = _ref9$lengthOptions === void 0 ? 0 : _ref9$lengthOptions;
44
44
  return lengthOptions > 5 ? 'scroll' : 'hidden';
@@ -52,29 +52,29 @@ export var OptionsContainer = styled('div')(_templateObject4 || (_templateObject
52
52
  var theme = _ref12.theme;
53
53
  return theme.color.primary.light;
54
54
  });
55
- export var SearchBarContainer = styled('div')(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n width: 100%;\n"])), function (_ref13) {
55
+ export var SearchBarContainer = styled('div')(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-left: ", ";\n width: 100%;\n"])), function (_ref13) {
56
56
  var theme = _ref13.theme;
57
57
  return theme.spacing.mili;
58
58
  });
59
- export var PaddedContainer = styled('div')(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n"])), function (_ref14) {
59
+ export var PaddedContainer = styled('div')(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n padding: ", ";\n"])), function (_ref14) {
60
60
  var theme = _ref14.theme;
61
- return theme.spacing.mili + " " + theme.spacing.deca;
61
+ return "".concat(theme.spacing.mili, " ").concat(theme.spacing.deca);
62
62
  });
63
- export var StyledContainerCheckAll = styled(PaddedContainer)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n flex-direction: row;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n &:hover span {\n color: ", ";\n }\n"])), function (_ref15) {
63
+ export var StyledContainerCheckAll = styled(PaddedContainer)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n flex-direction: row;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n &:hover span {\n color: ", ";\n }\n"])), function (_ref15) {
64
64
  var theme = _ref15.theme;
65
65
  return theme.color.primary.xlight;
66
66
  }, function (_ref16) {
67
67
  var theme = _ref16.theme;
68
68
  return theme.color.primary.medium;
69
69
  });
70
- export var StyledSpan = styled('span')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: ", ";\n"])), function (_ref17) {
70
+ export var StyledSpan = styled('span')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n color: ", ";\n padding: ", ";\n"])), function (_ref17) {
71
71
  var theme = _ref17.theme;
72
72
  return theme.font.color.dark;
73
73
  }, function (_ref18) {
74
74
  var theme = _ref18.theme;
75
- return theme.spacing.mili + " 0px";
75
+ return "".concat(theme.spacing.mili, " 0px");
76
76
  });
77
- export var StyledContainerTextLabel = styled('div')(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n width: 100%;\n display: flex;\n overflow: hidden;\n"])), function (_ref19) {
77
+ export var StyledContainerTextLabel = styled('div')(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n padding-left: ", ";\n width: 100%;\n display: flex;\n overflow: hidden;\n"])), function (_ref19) {
78
78
  var theme = _ref19.theme;
79
79
  return theme.spacing.mili;
80
80
  });
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","hex2rgba","css","anchorBottom","theme","anchor","spacing","centi","anchorTop","StyledContainerDropdown","miscellaneous","surfaceColor","borderRadius","mili","shadow","hideSearchBar","deca","zIndex","select","OptionsContainer","lengthOptions","color","secondary","light","primary","SearchBarContainer","PaddedContainer","StyledContainerCheckAll","xlight","medium","StyledSpan","font","dark","StyledContainerTextLabel"],"sources":["../../../../../src/components/molecules/Select/Dropdown/styled.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { hex2rgba, StyleProps } from '@tecsinapse/react-core';\nimport { SelectProps } from '../Select';\nimport { css } from '@emotion/react';\n\ntype InjectedProps = Partial<\n StyleProps &\n SelectProps<unknown, 'single' | 'multi'> & { lengthOptions: number }\n>;\n\nconst anchorBottom = ({\n theme,\n anchor,\n}: StyleProps & Omit<InjectedProps, 'theme'>) =>\n anchor === 'bottom' &&\n css`\n margin-top: ${theme.spacing.centi};\n top: 100%;\n `;\n\nconst anchorTop = ({\n theme,\n anchor,\n}: StyleProps & Omit<InjectedProps, 'theme'>) =>\n anchor === 'top' &&\n css`\n margin-bottom: ${theme.spacing.centi};\n bottom: 100%;\n `;\n\nexport const StyledContainerDropdown = styled('div')<InjectedProps>`\n width: 100%;\n background-color: ${({ theme }: StyleProps) =>\n theme.miscellaneous.surfaceColor};\n border-radius: ${({ theme }: StyleProps) => theme.borderRadius.mili};\n box-shadow: 0 2px 8px\n ${({ theme }: StyleProps) => hex2rgba(theme.miscellaneous.shadow, 0.05)};\n position: absolute;\n padding-top: ${({\n theme,\n hideSearchBar,\n }: StyleProps & Partial<SelectProps<unknown, 'single' | 'multi'>>) =>\n !hideSearchBar ? `${theme.spacing.deca}` : '0px'};\n padding-bottom: ${({ theme }: StyleProps) => theme.spacing.mili};\n z-index: ${({ theme }: StyleProps) => theme.zIndex.select};\n ${anchorTop}\n ${anchorBottom}\n`;\n\nexport const OptionsContainer = styled('div')<InjectedProps>`\n max-height: 250px;\n top: 100%;\n overflow-y: ${({ lengthOptions = 0 }: InjectedProps) =>\n lengthOptions > 5 ? 'scroll' : 'hidden'};\n ::-webkit-scrollbar {\n width: 8px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: ${({ theme }: StyleProps) => theme.borderRadius.centi};\n background-color: ${({ theme }: StyleProps) => theme.color.secondary.light};\n }\n ::-webkit-scrollbar-thumb:hover {\n background-color: ${({ theme }: StyleProps) => theme.color.primary.light};\n },\n`;\n\nexport const SearchBarContainer = styled('div')<Partial<StyleProps>>`\n padding-left: ${({ theme }) => theme.spacing.mili};\n width: 100%;\n`;\n\nexport const PaddedContainer = styled('div')<Partial<StyleProps>>`\n padding: ${({ theme }) => `${theme.spacing.mili} ${theme.spacing.deca}`};\n`;\n\nexport const StyledContainerCheckAll = styled(PaddedContainer)<\n Partial<StyleProps>\n>`\n flex-direction: row;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: ${({ theme }) => theme.color.primary.xlight};\n }\n &:hover span {\n color: ${({ theme }) => theme.color.primary.medium};\n }\n`;\n\nexport const StyledSpan = styled('span')<Partial<StyleProps>>`\n color: ${({ theme }) => theme.font.color.dark};\n padding: ${({ theme }) => `${theme.spacing.mili} 0px`};\n`;\n\nexport const StyledContainerTextLabel = styled('div')<Partial<StyleProps>>`\n padding-left: ${({ theme }) => theme.spacing.mili};\n width: 100%;\n display: flex;\n overflow: hidden;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AACA,SAASC,QAAT,QAAq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P,OAAO,IAAMC,UAAU,GAAG9B,MAAM,CAAC,MAAD,CAAT,iHACZ;EAAA,IAAGI,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAAC2B,IAAN,CAAWV,KAAX,CAAiBW,IAAhC;AAAA,CADY,EAEV;EAAA,IAAG5B,KAAH,UAAGA,KAAH;EAAA,OAAkBA,KAAK,CAACE,OAAN,CAAcO,IAAhC;AAAA,CAFU,CAAhB;AAKP,OAAO,IAAMoB,wBAAwB,GAAGjC,MAAM,CAAC,KAAD,CAAT,6JACnB;EAAA,IAAGI,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAACE,OAAN,CAAcO,IAA7B;AAAA,CADmB,CAA9B"}
1
+ {"version":3,"file":"styled.js","names":["styled","hex2rgba","css","anchorBottom","theme","anchor","spacing","centi","anchorTop","StyledContainerDropdown","miscellaneous","surfaceColor","borderRadius","mili","shadow","hideSearchBar","deca","zIndex","select","OptionsContainer","lengthOptions","color","secondary","light","primary","SearchBarContainer","PaddedContainer","StyledContainerCheckAll","xlight","medium","StyledSpan","font","dark","StyledContainerTextLabel"],"sources":["../../../../../src/components/molecules/Select/Dropdown/styled.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { hex2rgba, StyleProps } from '@tecsinapse/react-core';\nimport { SelectProps } from '../Select';\nimport { css } from '@emotion/react';\n\ntype InjectedProps = Partial<\n StyleProps &\n SelectProps<unknown, 'single' | 'multi'> & { lengthOptions: number }\n>;\n\nconst anchorBottom = ({\n theme,\n anchor,\n}: StyleProps & Omit<InjectedProps, 'theme'>) =>\n anchor === 'bottom' &&\n css`\n margin-top: ${theme.spacing.centi};\n top: 100%;\n `;\n\nconst anchorTop = ({\n theme,\n anchor,\n}: StyleProps & Omit<InjectedProps, 'theme'>) =>\n anchor === 'top' &&\n css`\n margin-bottom: ${theme.spacing.centi};\n bottom: 100%;\n `;\n\nexport const StyledContainerDropdown = styled('div')<InjectedProps>`\n width: 100%;\n background-color: ${({ theme }: StyleProps) =>\n theme.miscellaneous.surfaceColor};\n border-radius: ${({ theme }: StyleProps) => theme.borderRadius.mili};\n box-shadow: 0 2px 8px\n ${({ theme }: StyleProps) => hex2rgba(theme.miscellaneous.shadow, 0.05)};\n position: absolute;\n padding-top: ${({\n theme,\n hideSearchBar,\n }: StyleProps & Partial<SelectProps<unknown, 'single' | 'multi'>>) =>\n !hideSearchBar ? `${theme.spacing.deca}` : '0px'};\n padding-bottom: ${({ theme }: StyleProps) => theme.spacing.mili};\n z-index: ${({ theme }: StyleProps) => theme.zIndex.select};\n ${anchorTop}\n ${anchorBottom}\n`;\n\nexport const OptionsContainer = styled('div')<InjectedProps>`\n max-height: 250px;\n top: 100%;\n overflow-y: ${({ lengthOptions = 0 }: InjectedProps) =>\n lengthOptions > 5 ? 'scroll' : 'hidden'};\n ::-webkit-scrollbar {\n width: 8px;\n }\n ::-webkit-scrollbar-thumb {\n border-radius: ${({ theme }: StyleProps) => theme.borderRadius.centi};\n background-color: ${({ theme }: StyleProps) => theme.color.secondary.light};\n }\n ::-webkit-scrollbar-thumb:hover {\n background-color: ${({ theme }: StyleProps) => theme.color.primary.light};\n },\n`;\n\nexport const SearchBarContainer = styled('div')<Partial<StyleProps>>`\n padding-left: ${({ theme }) => theme.spacing.mili};\n width: 100%;\n`;\n\nexport const PaddedContainer = styled('div')<Partial<StyleProps>>`\n padding: ${({ theme }) => `${theme.spacing.mili} ${theme.spacing.deca}`};\n`;\n\nexport const StyledContainerCheckAll = styled(PaddedContainer)<\n Partial<StyleProps>\n>`\n flex-direction: row;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n cursor: pointer;\n &:hover {\n background-color: ${({ theme }) => theme.color.primary.xlight};\n }\n &:hover span {\n color: ${({ theme }) => theme.color.primary.medium};\n }\n`;\n\nexport const StyledSpan = styled('span')<Partial<StyleProps>>`\n color: ${({ theme }) => theme.font.color.dark};\n padding: ${({ theme }) => `${theme.spacing.mili} 0px`};\n`;\n\nexport const StyledContainerTextLabel = styled('div')<Partial<StyleProps>>`\n padding-left: ${({ theme }) => theme.spacing.mili};\n width: 100%;\n display: flex;\n overflow: hidden;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AACA,SAASC,QAAT,QAAqC,wBAArC;AAEA,SAASC,GAAT,QAAoB,gBAApB;;AAOA,IAAMC,YAAY,GAAG,SAAfA,YAAe;EAAA,IACnBC,KADmB,QACnBA,KADmB;EAAA,IAEnBC,MAFmB,QAEnBA,MAFmB;EAAA,OAInBA,MAAM,KAAK,QAAX,IACAH,GADA,iHAEgBE,KAAK,CAACE,OAAN,CAAcC,KAF9B,CAJmB;AAAA,CAArB;;AAUA,IAAMC,SAAS,GAAG,SAAZA,SAAY;EAAA,IAChBJ,KADgB,SAChBA,KADgB;EAAA,IAEhBC,MAFgB,SAEhBA,MAFgB;EAAA,OAIhBA,MAAM,KAAK,KAAX,IACAH,GADA,yHAEmBE,KAAK,CAACE,OAAN,CAAcC,KAFjC,CAJgB;AAAA,CAAlB;;AAUA,OAAO,IAAME,uBAAuB,GAAGT,MAAM,CAAC,KAAD,CAAT,yRAEd;EAAA,IAAGI,KAAH,SAAGA,KAAH;EAAA,OAClBA,KAAK,CAACM,aAAN,CAAoBC,YADF;AAAA,CAFc,EAIjB;EAAA,IAAGP,KAAH,SAAGA,KAAH;EAAA,OAA2BA,KAAK,CAACQ,YAAN,CAAmBC,IAA9C;AAAA,CAJiB,EAM9B;EAAA,IAAGT,KAAH,SAAGA,KAAH;EAAA,OAA2BH,QAAQ,CAACG,KAAK,CAACM,aAAN,CAAoBI,MAArB,EAA6B,IAA7B,CAAnC;AAAA,CAN8B,EAQnB;EAAA,IACbV,KADa,SACbA,KADa;EAAA,IAEbW,aAFa,SAEbA,aAFa;EAAA,OAIb,CAACA,aAAD,aAAoBX,KAAK,CAACE,OAAN,CAAcU,IAAlC,IAA2C,KAJ9B;AAAA,CARmB,EAahB;EAAA,IAAGZ,KAAH,SAAGA,KAAH;EAAA,OAA2BA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,CAAoBI,MAAnC;AAAA,CATY,EAYvB;EAAA,IAAGxB,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAACiB,KAAN,CAAYG,OAAZ,CAAoBK,MAAnC;AAAA,CAZuB,CAA7B;AAgBP,OAAO,IAAMC,UAAU,GAAG9B,MAAM,CAAC,MAAD,CAAT,4GACZ;EAAA,IAAGI,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAAC2B,IAAN,CAAWV,KAAX,CAAiBW,IAAhC;AAAA,CADY,EAEV;EAAA,IAAG5B,KAAH,UAAGA,KAAH;EAAA,iBAAkBA,KAAK,CAACE,OAAN,CAAcO,IAAhC;AAAA,CAFU,CAAhB;AAKP,OAAO,IAAMoB,wBAAwB,GAAGjC,MAAM,CAAC,KAAD,CAAT,wJACnB;EAAA,IAAGI,KAAH,UAAGA,KAAH;EAAA,OAAeA,KAAK,CAACE,OAAN,CAAcO,IAA7B;AAAA,CADmB,CAA9B"}
@@ -1,7 +1,27 @@
1
1
  var _excluded = ["value", "options", "keyExtractor", "onSelect", "type", "labelExtractor", "placeholder", "onSearch", "searchBarPlaceholder", "hideSearchBar", "label", "disabled", "anchor", "displayTextProps", "selectAllLabel"];
2
2
 
3
+ 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; }
4
+
5
+ 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; }
6
+
7
+ 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; }
8
+
3
9
  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
10
 
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
+
13
+ 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."); }
14
+
15
+ 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); }
16
+
17
+ 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; }
18
+
19
+ 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; }
20
+
21
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
+
23
+ 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; }
24
+
5
25
  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
26
 
7
27
  import { PressableInputContainer, Text } from '@tecsinapse/react-core';
@@ -33,11 +53,12 @@ export var Select = function Select(_ref) {
33
53
  displayTextProps = _ref.displayTextProps,
34
54
  _ref$selectAllLabel = _ref.selectAllLabel,
35
55
  selectAllLabel = _ref$selectAllLabel === void 0 ? 'Selecionar todos' : _ref$selectAllLabel,
36
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
56
+ rest = _objectWithoutProperties(_ref, _excluded);
37
57
 
38
58
  var _React$useState = React.useState(false),
39
- dropDownVisible = _React$useState[0],
40
- setDropDownVisible = _React$useState[1];
59
+ _React$useState2 = _slicedToArray(_React$useState, 2),
60
+ dropDownVisible = _React$useState2[0],
61
+ setDropDownVisible = _React$useState2[1];
41
62
 
42
63
  var refDropDown = React.useRef(null);
43
64
  useClickAwayListener(refDropDown, setDropDownVisible);
@@ -78,7 +99,7 @@ export var Select = function Select(_ref) {
78
99
  hideSearchBar: hideSearchBar,
79
100
  searchBarPlaceholder: searchBarPlaceholder,
80
101
  onSearch: onSearch,
81
- style: _extends({}, defaultStyles, transition[anchor][state]),
102
+ style: _objectSpread(_objectSpread({}, defaultStyles), transition[anchor][state]),
82
103
  setDropDownVisible: setDropDownVisible,
83
104
  anchor: anchor,
84
105
  selectAllLabel: selectAllLabel
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["PressableInputContainer","Text","React","Transition","useClickAwayListener","defaultStyles","transition","Dropdown","getDisplayValue","RightComponent","StyledContainer","StyledInputContainer","Select","value","options","keyExtractor","onSelect","type","labelExtractor","placeholder","onSearch","searchBarPlaceholder","hideSearchBar","label","disabled","anchor","displayTextProps","selectAllLabel","rest","useState","dropDownVisible","setDropDownVisible","refDropDown","useRef","onlyLabel","hasValue","length","_placeholder","_label","undefined","displayValue","onPress","useCallback","prev","state"],"sources":["../../../../src/components/molecules/Select/Select.tsx"],"sourcesContent":["import {\n PressableInputContainer,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport React from 'react';\nimport { Transition } from 'react-transition-group';\nimport { useClickAwayListener } from '../../../hooks';\nimport { defaultStyles, transition } from './animations';\nimport { Dropdown } from './Dropdown';\nimport { getDisplayValue } from './functions';\nimport {\n RightComponent,\n StyledContainer,\n StyledInputContainer,\n} from './styled';\n\nexport interface SelectProps<Data, Type extends 'single' | 'multi'>\n extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {\n options: Data[];\n onSelect: (\n option: Type extends 'single' ? Data | undefined : Data[]\n ) => never | void;\n value: Type extends 'single' ? Data | undefined : Data[];\n type: Type;\n keyExtractor: (t: Data, index?: number) => string;\n labelExtractor: (t: Data) => string;\n placeholder?: string;\n onSearch?: (searchArg: string) => void | never;\n searchBarPlaceholder?: string;\n hideSearchBar?: boolean;\n selectAllLabel?: string;\n disabled?: boolean;\n label?: string;\n anchor?: 'top' | 'bottom';\n displayTextProps?: TextProps;\n}\n\n/** NOTE: For better performance, you should memoize options and handlers */\nexport const Select = <Data, Type extends 'single' | 'multi'>({\n value,\n options,\n keyExtractor,\n onSelect,\n type,\n labelExtractor,\n placeholder,\n onSearch,\n searchBarPlaceholder = 'Busque a opção desejada',\n hideSearchBar = true,\n label,\n disabled = false,\n anchor = 'bottom',\n displayTextProps,\n selectAllLabel = 'Selecionar todos',\n ...rest\n}: SelectProps<Data, Type>): JSX.Element => {\n const [dropDownVisible, setDropDownVisible] = React.useState<boolean>(false);\n const refDropDown = React.useRef(null);\n useClickAwayListener(refDropDown, setDropDownVisible);\n\n const onlyLabel = label && !placeholder;\n const hasValue =\n type === 'single' ? !!value : ((value || []) as []).length > 0;\n const _placeholder = onlyLabel ? label : placeholder;\n const _label = hasValue ? label : undefined;\n\n const displayValue = getDisplayValue<Data>(\n type,\n value,\n options,\n _placeholder,\n keyExtractor,\n labelExtractor\n );\n\n const onPress = React.useCallback(\n () => setDropDownVisible(prev => !prev),\n [setDropDownVisible]\n );\n\n return (\n <StyledContainer ref={refDropDown} {...rest}>\n <StyledInputContainer>\n <PressableInputContainer\n label={_label}\n onPress={onPress}\n disabled={disabled}\n rightComponent={RightComponent}\n >\n <Text {...displayTextProps} ellipsizeMode=\"tail\" numberOfLines={1}>\n {displayValue}\n </Text>\n </PressableInputContainer>\n </StyledInputContainer>\n <Transition in={dropDownVisible} timeout={300}>\n {state => (\n <Dropdown\n options={options}\n onSelect={onSelect}\n value={value}\n type={type}\n keyExtractor={keyExtractor}\n labelExtractor={labelExtractor}\n hideSearchBar={hideSearchBar}\n searchBarPlaceholder={searchBarPlaceholder}\n onSearch={onSearch}\n style={{ ...defaultStyles, ...transition[anchor][state] }}\n setDropDownVisible={setDropDownVisible}\n anchor={anchor}\n selectAllLabel={selectAllLabel}\n />\n )}\n </Transition>\n </StyledContainer>\n );\n};\n\nexport default Select;\n"],"mappings":";;;;;;AAAA,SACEA,uBADF,EAEEC,IAFF,QAIO,wBAJP;AAKA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,QAA2B,wBAA3B;AACA,SAASC,oBAAT;AACA,SAASC,aAAT,EAAwBC,UAAxB;AACA,SAASC,QAAT;AACA,SAASC,eAAT;AACA,SACEC,cADF,EAEEC,eAFF,EAGEC,oBAHF;AA4BA,OAAO,IAAMC,MAAM,GAAG,SAATA,MAAS,OAiBsB;EAAA,IAhB1CC,KAgB0C,QAhB1CA,KAgB0C;EAAA,IAf1CC,OAe0C,QAf1CA,OAe0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kC,EAGlCC,OAHkC,EAIlCuB,YAJkC,EAKlCtB,YALkC,EAMlCG,cANkC,CAApC;EASA,IAAMuB,OAAO,GAAGvC,KAAK,CAACwC,WAAN,CACd;IAAA,OAAMX,kBAAkB,CAAC,UAAAY,IAAI;MAAA,OAAI,CAACA,IAAL;IAAA,CAAL,CAAxB;EAAA,CADc,EAEd,CAACZ,kBAAD,CAFc,CAAhB;EAKA,OACE,oBAAC,eAAD;IAAiB,GAAG,EAAEC;EAAtB,GAAuCJ,IAAvC,GACE,oBAAC,oBAAD,QACE,oBAAC,uBAAD;IACE,KAAK,EAAEU,MADT;IAEE,OAAO,EAAEG,OAFX;IAGE,QAAQ,EAAEjB,QAHZ;IAIE,cAAc,EAAEf;EAJlB,GAME,oBAAC,IAAD,eAAUiB,gBAAV;IAA4B,aAAa,EAAC,MAA1C;IAAiD,aAAa,EAAE;EAAhE,IACGc,YADH,CANF,CADF,CADF,EAaE,oBAAC,UAAD;IAAY,MAAIV,eAAhB;IAAiC,OAAO,EAAE;EAA1C,GACG,UAAAc,KAAK;IAAA,OACJ,oBAAC,QAAD;MACE,OAAO,EAAE9B,OADX;MAEE,QAAQ,EAAEE,QAFZ;MAGE,KAAK,EAAEH,KAHT;MAIE,IAAI,EAAEI,IAJR;MAKE,YAAY,EAAEF,YALhB;MAME,cAAc,EAAEG,cANlB;MAOE,aAAa,EAAEI,aAPjB;MAQE,oBAAoB,EAAED,oBARxB;MASE,QAAQ,EAAED,QATZ;MAUE,KAAK,eAAOf,aAAP,EAAyBC,UAAU,CAACmB,MAAD,CAAV,CAAmBmB,KAAnB,CAAzB,CAVP;MAWE,kBAAkB,EAAEb,kBAXtB;MAYE,MAAM,EAAEN,MAZV;MAaE,cAAc,EAAEE;IAblB,EADI;EAAA,CADR,CAbF,CADF;AAmCD,CA7EM;AA+EP,eAAef,MAAf"}
1
+ {"version":3,"file":"Select.js","names":["PressableInputContainer","Text","React","Transition","useClickAwayListener","defaultStyles","transition","Dropdown","getDisplayValue","RightComponent","StyledContainer","StyledInputContainer","Select","value","options","keyExtractor","onSelect","type","labelExtractor","placeholder","onSearch","searchBarPlaceholder","hideSearchBar","label","disabled","anchor","displayTextProps","selectAllLabel","rest","useState","dropDownVisible","setDropDownVisible","refDropDown","useRef","onlyLabel","hasValue","length","_placeholder","_label","undefined","displayValue","onPress","useCallback","prev","state"],"sources":["../../../../src/components/molecules/Select/Select.tsx"],"sourcesContent":["import {\n PressableInputContainer,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport React from 'react';\nimport { Transition } from 'react-transition-group';\nimport { useClickAwayListener } from '../../../hooks';\nimport { defaultStyles, transition } from './animations';\nimport { Dropdown } from './Dropdown';\nimport { getDisplayValue } from './functions';\nimport {\n RightComponent,\n StyledContainer,\n StyledInputContainer,\n} from './styled';\n\nexport interface SelectProps<Data, Type extends 'single' | 'multi'>\n extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'> {\n options: Data[];\n onSelect: (\n option: Type extends 'single' ? Data | undefined : Data[]\n ) => never | void;\n value: Type extends 'single' ? Data | undefined : Data[];\n type: Type;\n keyExtractor: (t: Data, index?: number) => string;\n labelExtractor: (t: Data) => string;\n placeholder?: string;\n onSearch?: (searchArg: string) => void | never;\n searchBarPlaceholder?: string;\n hideSearchBar?: boolean;\n selectAllLabel?: string;\n disabled?: boolean;\n label?: string;\n anchor?: 'top' | 'bottom';\n displayTextProps?: TextProps;\n}\n\n/** NOTE: For better performance, you should memoize options and handlers */\nexport const Select = <Data, Type extends 'single' | 'multi'>({\n value,\n options,\n keyExtractor,\n onSelect,\n type,\n labelExtractor,\n placeholder,\n onSearch,\n searchBarPlaceholder = 'Busque a opção desejada',\n hideSearchBar = true,\n label,\n disabled = false,\n anchor = 'bottom',\n displayTextProps,\n selectAllLabel = 'Selecionar todos',\n ...rest\n}: SelectProps<Data, Type>): JSX.Element => {\n const [dropDownVisible, setDropDownVisible] = React.useState<boolean>(false);\n const refDropDown = React.useRef(null);\n useClickAwayListener(refDropDown, setDropDownVisible);\n\n const onlyLabel = label && !placeholder;\n const hasValue =\n type === 'single' ? !!value : ((value || []) as []).length > 0;\n const _placeholder = onlyLabel ? label : placeholder;\n const _label = hasValue ? label : undefined;\n\n const displayValue = getDisplayValue<Data>(\n type,\n value,\n options,\n _placeholder,\n keyExtractor,\n labelExtractor\n );\n\n const onPress = React.useCallback(\n () => setDropDownVisible(prev => !prev),\n [setDropDownVisible]\n );\n\n return (\n <StyledContainer ref={refDropDown} {...rest}>\n <StyledInputContainer>\n <PressableInputContainer\n label={_label}\n onPress={onPress}\n disabled={disabled}\n rightComponent={RightComponent}\n >\n <Text {...displayTextProps} ellipsizeMode=\"tail\" numberOfLines={1}>\n {displayValue}\n </Text>\n </PressableInputContainer>\n </StyledInputContainer>\n <Transition in={dropDownVisible} timeout={300}>\n {state => (\n <Dropdown\n options={options}\n onSelect={onSelect}\n value={value}\n type={type}\n keyExtractor={keyExtractor}\n labelExtractor={labelExtractor}\n hideSearchBar={hideSearchBar}\n searchBarPlaceholder={searchBarPlaceholder}\n onSearch={onSearch}\n style={{ ...defaultStyles, ...transition[anchor][state] }}\n setDropDownVisible={setDropDownVisible}\n anchor={anchor}\n selectAllLabel={selectAllLabel}\n />\n )}\n </Transition>\n </StyledContainer>\n );\n};\n\nexport default Select;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SACEA,uBADF,EAEEC,IAFF,QAIO,wBAJP;AAKA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,QAA2B,wBAA3B;AACA,SAASC,oBAAT;AACA,SAASC,aAAT,EAAwBC,UAAxB;AACA,SAASC,QAAT;AACA,SAASC,eAAT;AACA,SACEC,cADF,EAEEC,eAFF,EAGEC,oBAHF;AA4BA,OAAO,IAAMC,MAAM,GAAG,SAATA,MAAS,OAiBsB;EAAA,IAhB1CC,KAgB0C,QAhB1CA,KAgB0C;EAAA,IAf1CC,OAe0C,QAf1CA,OAe0C;EAAA,IAd1C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r) || _nonIterableSpread(); }
2
+
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+
7
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
8
+
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+
11
+ 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."); }
12
+
13
+ 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); }
14
+
15
+ 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; }
16
+
17
+ 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; }
18
+
19
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
+
1
21
  import React from 'react';
2
22
  import { Checkbox, Text } from '@tecsinapse/react-core';
3
23
  import { ContainerItemSelect, StyledContainerTextLabel, StyledSpan } from "./styled";
@@ -18,8 +38,9 @@ var SelectItem = function SelectItem(_ref) {
18
38
  var _React$useState = React.useState(value !== undefined && type === 'multi' && value.find(function (data) {
19
39
  return keyExtractor(data) === keyExtractor(item);
20
40
  }) !== undefined),
21
- checked = _React$useState[0],
22
- setChecked = _React$useState[1];
41
+ _React$useState2 = _slicedToArray(_React$useState, 2),
42
+ checked = _React$useState2[0],
43
+ setChecked = _React$useState2[1];
23
44
 
24
45
  React.useEffect(function () {
25
46
  if (!checked && value !== undefined && (type === 'multi' && value.find(function (data) {
@@ -41,15 +62,16 @@ var SelectItem = function SelectItem(_ref) {
41
62
  setChecked(!checked);
42
63
 
43
64
  if (auxChecked) {
44
- onSelect([].concat(_value, [key]));
45
- [].concat(_value, [key]).length === lenghtOptions && setCheckedAll(true);
65
+ onSelect([].concat(_toConsumableArray(_value), [key]));
66
+ [].concat(_toConsumableArray(_value), [key]).length === lenghtOptions && setCheckedAll(true);
46
67
  } else {
47
- var auxArray = [].concat(_value);
68
+ var auxArray = _toConsumableArray(_value);
69
+
48
70
  var indexToExclude = auxArray.findIndex(function (data) {
49
71
  return keyExtractor(data) === keyExtractor(key);
50
72
  });
51
73
  auxArray.splice(indexToExclude, 1);
52
- onSelect([].concat(auxArray));
74
+ onSelect(_toConsumableArray(auxArray));
53
75
  setCheckedAll(false);
54
76
  }
55
77
  } else {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectItem.js","names":["React","Checkbox","Text","ContainerItemSelect","StyledContainerTextLabel","StyledSpan","SelectItem","item","onSelect","type","value","labelExtractor","setDropDownVisible","checkedAll","setCheckedAll","lenghtOptions","keyExtractor","isMulti","useState","undefined","find","data","checked","setChecked","useEffect","clickItem","useCallback","_value","key","Array","isArray","auxChecked","length","auxArray","indexToExclude","findIndex","splice","memo"],"sources":["../../../../../src/components/molecules/Select/SelectItem/SelectItem.tsx"],"sourcesContent":["import React from 'react';\nimport { Checkbox, Text } from '@tecsinapse/react-core';\nimport {\n ContainerItemSelect,\n StyledContainerTextLabel,\n StyledSpan,\n} from './styled';\n\ninterface SelectItemProps<Data, Type extends 'single' | 'multi'> {\n item: Data;\n type: Type;\n value: Type extends 'single' ? Data | undefined : Data[];\n onSelect: (\n option: Type extends 'single' ? Data | undefined : Data[]\n ) => never | void;\n keyExtractor: (t: Data, index?: number) => string;\n labelExtractor: (t: Data) => string;\n index: number;\n}\n\nconst SelectItem = <Data, Type extends 'single' | 'multi'>({\n item,\n onSelect,\n type,\n value,\n labelExtractor,\n setDropDownVisible,\n checkedAll,\n setCheckedAll,\n lenghtOptions,\n keyExtractor,\n}: SelectItemProps<Data, Type> & {\n setDropDownVisible: (t: boolean) => void;\n checkedAll: boolean;\n setCheckedAll: (t: boolean) => void;\n lenghtOptions: number;\n}): JSX.Element => {\n const isMulti = type === 'multi';\n const [checked, setChecked] = React.useState<boolean>(\n value !== undefined &&\n type === 'multi' &&\n (value as Data[]).find(\n data => keyExtractor(data) === keyExtractor(item)\n ) !== undefined\n );\n\n React.useEffect(() => {\n if (\n !checked &&\n value !== undefined &&\n ((type === 'multi' &&\n (value as Data[]).find(\n data => keyExtractor(data) === keyExtractor(item)\n )) ||\n (type === 'single' &&\n keyExtractor(value as Data) === keyExtractor(item)))\n )\n setChecked(true);\n }, [value, keyExtractor, type]);\n\n React.useEffect(() => {\n if (type === 'multi') {\n checkedAll\n ? setChecked(true)\n : setChecked(\n (value as Data[]).find(\n data => keyExtractor(data) === keyExtractor(item)\n ) !== undefined\n );\n }\n }, [checkedAll]);\n\n const clickItem = React.useCallback(\n (item, _value) => {\n // TS Workaround since TS won't infer the ternary operator's result type correctly\n type OnSelectArg = Parameters<typeof onSelect>[0];\n const key: Data = item;\n if (Array.isArray(_value)) {\n const auxChecked = !checked;\n setChecked(!checked);\n if (auxChecked) {\n onSelect([..._value, key] as OnSelectArg);\n [..._value, key].length === lenghtOptions && setCheckedAll(true);\n } else {\n const auxArray: Data[] = [..._value];\n const indexToExclude = auxArray.findIndex(\n data => keyExtractor(data) === keyExtractor(key)\n );\n auxArray.splice(indexToExclude, 1);\n onSelect([...auxArray] as OnSelectArg);\n setCheckedAll(false);\n }\n } else {\n onSelect(key as OnSelectArg);\n setDropDownVisible(false);\n }\n },\n [onSelect, setDropDownVisible, setCheckedAll, setChecked, checked]\n );\n\n return (\n <ContainerItemSelect onClick={() => clickItem(item, value)}>\n {isMulti && (\n <Checkbox checked={checked} onChange={() => clickItem(item, value)} />\n )}\n <StyledContainerTextLabel>\n <Text fontWeight=\"bold\" ellipsizeMode=\"tail\" numberOfLines={1}>\n <StyledSpan singleHighligh={type === 'single' && value === item}>\n {labelExtractor(item)}\n </StyledSpan>\n </Text>\n </StyledContainerTextLabel>\n </ContainerItemSelect>\n );\n};\n\nexport default React.memo(SelectItem) as typeof SelectItem;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,EAAmBC,IAAnB,QAA+B,wBAA/B;AACA,SACEC,mBADF,EAEEC,wBAFF,EAGEC,UAHF;;AAkBA,IAAMC,UAAU,GAAG,SAAbA,UAAa,OAgBA;EAAA,IAfjBC,IAeiB,QAfjBA,IAeiB;EAAA,IAdjBC,QAciB,QAdjBA,QAciB;EAAA,IAbjBC,IAaiB,QAbjBA,IAaiB;EAAA,IAZjBC,KAYiB,QAZjBA,KAYiB;EAAA,IAXjBC,cAWiB,QAXjBA,cAWiB;EAAA,IAVjBC,kBAUiB,QAVjBA,kBAUiB;EAAA,IATjBC,UASiB,QATjBA,UASiB;EAAA,IARjBC,aAQiB,QARjBA,aAQiB;EAAA,IAPjBC,aAOiB,QAPjBA,aAOiB;EAAA,IANjBC,YAMiB,QANjBA,YAMiB;EACjB,IAAMC,OAAO,GAAGR,IAAI,KAAK,OAAzB;;EACA,sBAA8BT,KAAK,CAACkB,QAAN,CAC5BR,KAAK,KAAKS,SAAV,IACEV,IAAI,KAAK,OADX,IAEGC,KAAD,C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,IAAN,CAAW/B,UAAX,CAAf"}
1
+ {"version":3,"file":"SelectItem.js","names":["React","Checkbox","Text","ContainerItemSelect","StyledContainerTextLabel","StyledSpan","SelectItem","item","onSelect","type","value","labelExtractor","setDropDownVisible","checkedAll","setCheckedAll","lenghtOptions","keyExtractor","isMulti","useState","undefined","find","data","checked","setChecked","useEffect","clickItem","useCallback","_value","key","Array","isArray","auxChecked","length","auxArray","indexToExclude","findIndex","splice","memo"],"sources":["../../../../../src/components/molecules/Select/SelectItem/SelectItem.tsx"],"sourcesContent":["import React from 'react';\nimport { Checkbox, Text } from '@tecsinapse/react-core';\nimport {\n ContainerItemSelect,\n StyledContainerTextLabel,\n StyledSpan,\n} from './styled';\n\ninterface SelectItemProps<Data, Type extends 'single' | 'multi'> {\n item: Data;\n type: Type;\n value: Type extends 'single' ? Data | undefined : Data[];\n onSelect: (\n option: Type extends 'single' ? Data | undefined : Data[]\n ) => never | void;\n keyExtractor: (t: Data, index?: number) => string;\n labelExtractor: (t: Data) => string;\n index: number;\n}\n\nconst SelectItem = <Data, Type extends 'single' | 'multi'>({\n item,\n onSelect,\n type,\n value,\n labelExtractor,\n setDropDownVisible,\n checkedAll,\n setCheckedAll,\n lenghtOptions,\n keyExtractor,\n}: SelectItemProps<Data, Type> & {\n setDropDownVisible: (t: boolean) => void;\n checkedAll: boolean;\n setCheckedAll: (t: boolean) => void;\n lenghtOptions: number;\n}): JSX.Element => {\n const isMulti = type === 'multi';\n const [checked, setChecked] = React.useState<boolean>(\n value !== undefined &&\n type === 'multi' &&\n (value as Data[]).find(\n data => keyExtractor(data) === keyExtractor(item)\n ) !== undefined\n );\n\n React.useEffect(() => {\n if (\n !checked &&\n value !== undefined &&\n ((type === 'multi' &&\n (value as Data[]).find(\n data => keyExtractor(data) === keyExtractor(item)\n )) ||\n (type === 'single' &&\n keyExtractor(value as Data) === keyExtractor(item)))\n )\n setChecked(true);\n }, [value, keyExtractor, type]);\n\n React.useEffect(() => {\n if (type === 'multi') {\n checkedAll\n ? setChecked(true)\n : setChecked(\n (value as Data[]).find(\n data => keyExtractor(data) === keyExtractor(item)\n ) !== undefined\n );\n }\n }, [checkedAll]);\n\n const clickItem = React.useCallback(\n (item, _value) => {\n // TS Workaround since TS won't infer the ternary operator's result type correctly\n type OnSelectArg = Parameters<typeof onSelect>[0];\n const key: Data = item;\n if (Array.isArray(_value)) {\n const auxChecked = !checked;\n setChecked(!checked);\n if (auxChecked) {\n onSelect([..._value, key] as OnSelectArg);\n [..._value, key].length === lenghtOptions && setCheckedAll(true);\n } else {\n const auxArray: Data[] = [..._value];\n const indexToExclude = auxArray.findIndex(\n data => keyExtractor(data) === keyExtractor(key)\n );\n auxArray.splice(indexToExclude, 1);\n onSelect([...auxArray] as OnSelectArg);\n setCheckedAll(false);\n }\n } else {\n onSelect(key as OnSelectArg);\n setDropDownVisible(false);\n }\n },\n [onSelect, setDropDownVisible, setCheckedAll, setChecked, checked]\n );\n\n return (\n <ContainerItemSelect onClick={() => clickItem(item, value)}>\n {isMulti && (\n <Checkbox checked={checked} onChange={() => clickItem(item, value)} />\n )}\n <StyledContainerTextLabel>\n <Text fontWeight=\"bold\" ellipsizeMode=\"tail\" numberOfLines={1}>\n <StyledSpan singleHighligh={type === 'single' && value === item}>\n {labelExtractor(item)}\n </StyledSpan>\n </Text>\n </StyledContainerTextLabel>\n </ContainerItemSelect>\n );\n};\n\nexport default React.memo(SelectItem) as typeof SelectItem;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,EAAmBC,IAAnB,QAA+B,wBAA/B;AACA,SACEC,mBADF,EAEEC,wBAFF,EAGEC,UAHF;;AAkBA,IAAMC,UAAU,GAAG,SAAbA,UAAa,OAgBA;EAAA,IAfjBC,IAeiB,QAfjBA,IAeiB;EAAA,IAdjBC,QAciB,QAdjBA,QAciB;EAAA,IAbjBC,IAaiB,QAbjBA,IAaiB;EAAA,IAZjBC,KAYiB,QAZj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IAA4B,QAAQ,EAAE;MAAA,OAAMG,SAAS,CAAClB,IAAD,EAAOG,KAAP,CAAf;IAAA;EAAtC,EAFJ,EAIE,oBAAC,wBAAD,QACE,oBAAC,IAAD;IAAM,UAAU,EAAC,MAAjB;IAAwB,aAAa,EAAC,MAAtC;IAA6C,aAAa,EAAE;EAA5D,GACE,oBAAC,UAAD;IAAY,cAAc,EAAED,IAAI,KAAK,QAAT,IAAqBC,KAAK,KAAKH;EAA3D,GACGI,cAAc,CAACJ,IAAD,CADjB,CADF,CADF,CAJF,CADF;AAcD,CA9FD;;AAgGA,eAAeP,KAAK,CAACqC,IAAN,CAAW/B,UAAX,CAAf"}
@@ -1,11 +1,11 @@
1
1
  var _templateObject, _templateObject2, _templateObject3;
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
- export var ContainerItemSelect = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n padding: ", ";\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n &:hover span {\n color: ", ";\n }\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])), function (_ref) {
6
+ export var ContainerItemSelect = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", ";\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n &:hover span {\n color: ", ";\n }\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n align-items: center;\n"])), function (_ref) {
7
7
  var theme = _ref.theme;
8
- return theme.spacing.mili + " " + theme.spacing.deca;
8
+ return "".concat(theme.spacing.mili, " ").concat(theme.spacing.deca);
9
9
  }, function (_ref2) {
10
10
  var theme = _ref2.theme;
11
11
  return theme.color.primary.xlight;
@@ -13,15 +13,15 @@ export var ContainerItemSelect = styled('div')(_templateObject || (_templateObje
13
13
  var theme = _ref3.theme;
14
14
  return theme.color.primary.medium;
15
15
  });
16
- export var StyledSpan = styled('span')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n color: ", ";\n padding: ", ";\n"])), function (_ref4) {
16
+ export var StyledSpan = styled('span')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n padding: ", ";\n"])), function (_ref4) {
17
17
  var theme = _ref4.theme,
18
18
  singleHighligh = _ref4.singleHighligh;
19
19
  return singleHighligh ? theme.color.primary.medium : theme.color.secondary.xdark;
20
20
  }, function (_ref5) {
21
21
  var theme = _ref5.theme;
22
- return theme.spacing.mili + " 0px";
22
+ return "".concat(theme.spacing.mili, " 0px");
23
23
  });
24
- export var StyledContainerTextLabel = styled('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n padding-left: ", ";\n width: 100%;\n display: flex;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), function (_ref6) {
24
+ export var StyledContainerTextLabel = styled('div')(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding-left: ", ";\n width: 100%;\n display: flex;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), function (_ref6) {
25
25
  var theme = _ref6.theme;
26
26
  return theme.spacing.mili;
27
27
  });
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","ContainerItemSelect","theme","spacing","mili","deca","color","primary","xlight","medium","StyledSpan","singleHighligh","secondary","xdark","StyledContainerTextLabel"],"sources":["../../../../../src/components/molecules/Select/SelectItem/styled.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { StyleProps } from '@tecsinapse/react-core';\n\nexport const ContainerItemSelect = styled('div')<Partial<StyleProps>>`\n padding: ${({ theme }) => `${theme.spacing.mili} ${theme.spacing.deca}`};\n cursor: pointer;\n &:hover {\n background-color: ${({ theme }) => theme.color.primary.xlight};\n }\n &:hover span {\n color: ${({ theme }) => theme.color.primary.medium};\n }\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledSpan = styled('span')<\n Partial<StyleProps> & { singleHighligh: boolean }\n>`\n color: ${({ theme, singleHighligh }) =>\n singleHighligh ? theme.color.primary.medium : theme.color.secondary.xdark};\n padding: ${({ theme }) => `${theme.spacing.mili} 0px`};\n`;\n\nexport const StyledContainerTextLabel = styled('div')<Partial<StyleProps>>`\n padding-left: ${({ theme }) => theme.spacing.mili};\n width: 100%;\n display: flex;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AAGA,OAAO,IAAMC,mBAAmB,GAAGD,MAAM,CAAC,KAAD,CAAT,gTACnB;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,OAAkBA,KAAK,CAACC,OAAN,CAAcC,IAAhC,SAAwCF,KAAK,CAACC,OAAN,CAAcE,IAAtD;AAAA,CADmB,EAIR;EAAA,IAAGH,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACI,KAAN,CAAYC,OAAZ,CAAoBC,MAAnC;AAAA,CAJQ,EAOnB;EAAA,IAAGN,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACI,KAAN,CAAYC,OAAZ,CAAoBE,MAAnC;AAAA,CAPmB,CAAzB;AAeP,OAAO,IAAMC,UAAU,GAAGV,MAAM,CAAC,MAAD,CAAT,iHAGZ;EAAA,IAAGE,KAAH,SAAGA,KAAH;EAAA,IAAUS,cAAV,SAAUA,cAAV;EAAA,OACPA,cAAc,GAAGT,KAAK,CAACI,KAAN,CAAYC,OAAZ,CAAoBE,MAAvB,GAAgCP,KAAK,CAACI,KAAN,CAAYM,SAAZ,CAAsBC,KAD7D;AAAA,CAHY,EAKV;EAAA,IAAGX,KAAH,SAAGA,KAAH;EAAA,OAAkBA,KAAK,CAACC,OAAN,CAAcC,IAAhC;AAAA,CALU,CAAhB;AAQP,OAAO,IAAMU,wBAAwB,GAAGd,MAAM,CAAC,KAAD,CAAT,iNACnB;EAAA,IAAGE,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,OAAN,CAAcC,IAA7B;AAAA,CADmB,CAA9B"}
1
+ {"version":3,"file":"styled.js","names":["styled","ContainerItemSelect","theme","spacing","mili","deca","color","primary","xlight","medium","StyledSpan","singleHighligh","secondary","xdark","StyledContainerTextLabel"],"sources":["../../../../../src/components/molecules/Select/SelectItem/styled.ts"],"sourcesContent":["import styled from '@emotion/styled';\nimport { StyleProps } from '@tecsinapse/react-core';\n\nexport const ContainerItemSelect = styled('div')<Partial<StyleProps>>`\n padding: ${({ theme }) => `${theme.spacing.mili} ${theme.spacing.deca}`};\n cursor: pointer;\n &:hover {\n background-color: ${({ theme }) => theme.color.primary.xlight};\n }\n &:hover span {\n color: ${({ theme }) => theme.color.primary.medium};\n }\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const StyledSpan = styled('span')<\n Partial<StyleProps> & { singleHighligh: boolean }\n>`\n color: ${({ theme, singleHighligh }) =>\n singleHighligh ? theme.color.primary.medium : theme.color.secondary.xdark};\n padding: ${({ theme }) => `${theme.spacing.mili} 0px`};\n`;\n\nexport const StyledContainerTextLabel = styled('div')<Partial<StyleProps>>`\n padding-left: ${({ theme }) => theme.spacing.mili};\n width: 100%;\n display: flex;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n`;\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AAGA,OAAO,IAAMC,mBAAmB,GAAGD,MAAM,CAAC,KAAD,CAAT,2SACnB;EAAA,IAAGE,KAAH,QAAGA,KAAH;EAAA,iBAAkBA,KAAK,CAACC,OAAN,CAAcC,IAAhC,cAAwCF,KAAK,CAACC,OAAN,CAAcE,IAAtD;AAAA,CADmB,EAIR;EAAA,IAAGH,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACI,KAAN,CAAYC,OAAZ,CAAoBC,MAAnC;AAAA,CAJQ,EAOnB;EAAA,IAAGN,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACI,KAAN,CAAYC,OAAZ,CAAoBE,MAAnC;AAAA,CAPmB,CAAzB;AAeP,OAAO,IAAMC,UAAU,GAAGV,MAAM,CAAC,MAAD,CAAT,4GAGZ;EAAA,IAAGE,KAAH,SAAGA,KAAH;EAAA,IAAUS,cAAV,SAAUA,cAAV;EAAA,OACPA,cAAc,GAAGT,KAAK,CAACI,KAAN,CAAYC,OAAZ,CAAoBE,MAAvB,GAAgCP,KAAK,CAACI,KAAN,CAAYM,SAAZ,CAAsBC,KAD7D;AAAA,CAHY,EAKV;EAAA,IAAGX,KAAH,SAAGA,KAAH;EAAA,iBAAkBA,KAAK,CAACC,OAAN,CAAcC,IAAhC;AAAA,CALU,CAAhB;AAQP,OAAO,IAAMU,wBAAwB,GAAGd,MAAM,CAAC,KAAD,CAAT,4MACnB;EAAA,IAAGE,KAAH,SAAGA,KAAH;EAAA,OAAeA,KAAK,CAACC,OAAN,CAAcC,IAA7B;AAAA,CADmB,CAA9B"}
@@ -1 +1,2 @@
1
- export { default as Select, SelectProps } from './Select';
1
+ export { default as Select } from './Select';
2
+ export type { SelectProps } from './Select';
@@ -1,2 +1,2 @@
1
- export { default as Select, SelectProps } from "./Select";
1
+ export { default as Select } from "./Select";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","Select","SelectProps"],"sources":["../../../../src/components/molecules/Select/index.ts"],"sourcesContent":["export { default as Select, SelectProps } from './Select';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,MAApB,EAA4BC,WAA5B"}
1
+ {"version":3,"file":"index.js","names":["default","Select"],"sources":["../../../../src/components/molecules/Select/index.ts"],"sourcesContent":["export { default as Select } from './Select';\nexport type { SelectProps } from './Select';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,MAApB"}
@@ -1,12 +1,12 @@
1
1
  var _templateObject, _templateObject2;
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 { Icon } from '@tecsinapse/react-core';
7
7
  import React from 'react';
8
- export var StyledContainer = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n position: relative;\n"])));
9
- export var StyledInputContainer = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n width: 100%;\n"])));
8
+ export var StyledContainer = styled('div')(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n position: relative;\n"])));
9
+ export var StyledInputContainer = styled('div')(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
10
10
  export var RightComponent = React.createElement(Icon, {
11
11
  name: "chevron-down",
12
12
  type: "material-community",
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["styled","Icon","React","StyledContainer","StyledInputContainer","RightComponent","marginRight"],"sources":["../../../../src/components/molecules/Select/styled.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport { Icon, StyleProps } from '@tecsinapse/react-core';\nimport React from 'react';\n\nexport const StyledContainer = styled('div')<Partial<StyleProps>>`\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n position: relative;\n`;\n\nexport const StyledInputContainer = styled('div')<Partial<StyleProps>>`\n width: 100%;\n`;\n\nexport const RightComponent = (\n <Icon\n name=\"chevron-down\"\n type=\"material-community\"\n size=\"centi\"\n style={{ marginRight: 12 }}\n />\n);\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AACA,SAASC,IAAT,QAAiC,wBAAjC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,OAAO,IAAMC,eAAe,GAAGH,MAAM,CAAC,KAAD,CAAT,oNAArB;AASP,OAAO,IAAMI,oBAAoB,GAAGJ,MAAM,CAAC,KAAD,CAAT,8FAA1B;AAIP,OAAO,IAAMK,cAAc,GACzB,oBAAC,IAAD;EACE,IAAI,EAAC,cADP;EAEE,IAAI,EAAC,oBAFP;EAGE,IAAI,EAAC,OAHP;EAIE,KAAK,EAAE;IAAEC,WAAW,EAAE;EAAf;AAJT,EADK"}
1
+ {"version":3,"file":"styled.js","names":["styled","Icon","React","StyledContainer","StyledInputContainer","RightComponent","marginRight"],"sources":["../../../../src/components/molecules/Select/styled.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport { Icon, StyleProps } from '@tecsinapse/react-core';\nimport React from 'react';\n\nexport const StyledContainer = styled('div')<Partial<StyleProps>>`\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n width: 100%;\n position: relative;\n`;\n\nexport const StyledInputContainer = styled('div')<Partial<StyleProps>>`\n width: 100%;\n`;\n\nexport const RightComponent = (\n <Icon\n name=\"chevron-down\"\n type=\"material-community\"\n size=\"centi\"\n style={{ marginRight: 12 }}\n />\n);\n"],"mappings":";;;;AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AACA,SAASC,IAAT,QAAiC,wBAAjC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AAEA,OAAO,IAAMC,eAAe,GAAGH,MAAM,CAAC,KAAD,CAAT,+MAArB;AASP,OAAO,IAAMI,oBAAoB,GAAGJ,MAAM,CAAC,KAAD,CAAT,yFAA1B;AAIP,OAAO,IAAMK,cAAc,GACzB,oBAAC,IAAD;EACE,IAAI,EAAC,cADP;EAEE,IAAI,EAAC,oBAFP;EAGE,IAAI,EAAC,OAHP;EAIE,KAAK,EAAE;IAAEC,WAAW,EAAE;EAAf;AAJT,EADK"}
@@ -2,6 +2,8 @@ var _excluded = ["value", "textProps"];
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 React from 'react';
@@ -14,7 +16,7 @@ export var Snackbar = function Snackbar(_ref) {
14
16
  colorVariant: 'primary',
15
17
  colorTone: 'medium'
16
18
  } : _ref$textProps,
17
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
19
+ rest = _objectWithoutProperties(_ref, _excluded);
18
20
 
19
21
  return React.createElement(SnackbarStyled, rest, React.createElement(Text, _extends({}, textProps, {
20
22
  fontWeight: "bold",
@@ -1 +1 @@
1
- {"version":3,"file":"Snackbar.js","names":["React","Text","SnackbarStyled","Snackbar","value","textProps","colorVariant","colorTone","rest"],"sources":["../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SnackbarProps as SnackPropsCore,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport { SnackbarStyled } from './styled';\n\nexport interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {\n value: string;\n textProps?: TextProps;\n}\n\nexport const Snackbar: React.FC<SnackbarWebProps> = ({\n value,\n textProps = { colorVariant: 'primary', colorTone: 'medium' },\n ...rest\n}) => {\n return (\n <SnackbarStyled {...rest}>\n <Text {...textProps} fontWeight=\"bold\" typography=\"base\">\n {value}\n </Text>\n </SnackbarStyled>\n );\n};\n\nexport default Snackbar;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAEEC,IAFF,QAIO,wBAJP;AAKA,SAASC,cAAT;AAOA,OAAO,IAAMC,QAAoC,GAAG,SAAvCA,QAAuC,OAI9C;EAAA,IAHJC,KAGI,QAHJA,KAGI;EAAA,0BAFJC,SAEI;EAAA,IAFJA,SAEI,+BAFQ;IAAEC,YAAY,EAAE,SAAhB;IAA2BC,SAAS,EAAE;EAAtC,CAER;EAAA,IADDC,IACC;;EACJ,OACE,oBAAC,cAAD,EAAoBA,IAApB,EACE,oBAAC,IAAD,eAAUH,SAAV;IAAqB,UAAU,EAAC,MAAhC;IAAuC,UAAU,EAAC;EAAlD,IACGD,KADH,CADF,CADF;AAOD,CAZM;AAcP,eAAeD,QAAf"}
1
+ {"version":3,"file":"Snackbar.js","names":["React","Text","SnackbarStyled","Snackbar","value","textProps","colorVariant","colorTone","rest"],"sources":["../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SnackbarProps as SnackPropsCore,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport { SnackbarStyled } from './styled';\n\nexport interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {\n value: string;\n textProps?: TextProps;\n}\n\nexport const Snackbar: React.FC<SnackbarWebProps> = ({\n value,\n textProps = { colorVariant: 'primary', colorTone: 'medium' },\n ...rest\n}) => {\n return (\n <SnackbarStyled {...rest}>\n <Text {...textProps} fontWeight=\"bold\" typography=\"base\">\n {value}\n </Text>\n </SnackbarStyled>\n );\n};\n\nexport default Snackbar;\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAEEC,IAFF,QAIO,wBAJP;AAKA,SAASC,cAAT;AAOA,OAAO,IAAMC,QAAoC,GAAG,SAAvCA,QAAuC,OAI9C;EAAA,IAHJC,KAGI,QAHJA,KAGI;EAAA,0BAFJC,SAEI;EAAA,IAFJA,SAEI,+BAFQ;IAAEC,YAAY,EAAE,SAAhB;IAA2BC,SAAS,EAAE;EAAtC,CAER;EAAA,IADDC,IACC;;EACJ,OACE,oBAAC,cAAD,EAAoBA,IAApB,EACE,oBAAC,IAAD,eAAUH,SAAV;IAAqB,UAAU,EAAC,MAAhC;IAAuC,UAAU,EAAC;EAAlD,IACGD,KADH,CADF,CADF;AAOD,CAZM;AAcP,eAAeD,QAAf"}
@@ -1 +1,2 @@
1
- export { default as Snackbar, SnackbarWebProps } from './Snackbar';
1
+ export { default as Snackbar } from './Snackbar';
2
+ export type { SnackbarWebProps } from './Snackbar';