polpo 0.1.7 → 0.1.8

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 (391) hide show
  1. package/dist/components.cjs +31 -0
  2. package/dist/components.cjs.map +1 -0
  3. package/dist/components.d.cts +1866 -0
  4. package/dist/components.d.ts +1866 -0
  5. package/dist/components.js +31 -0
  6. package/dist/components.js.map +1 -0
  7. package/dist/{get-modal-position-drle0OjP.d.cts → get-modal-position-C5jQsaGx.d.cts} +1 -1
  8. package/dist/{get-modal-position-drle0OjP.d.ts → get-modal-position-C5jQsaGx.d.ts} +1 -1
  9. package/dist/helpers.cjs +1 -1
  10. package/dist/helpers.cjs.map +1 -1
  11. package/dist/helpers.d.cts +2 -2
  12. package/dist/helpers.d.ts +2 -2
  13. package/dist/helpers.js +1 -1
  14. package/dist/helpers.js.map +1 -1
  15. package/dist/hooks.cjs +1 -1
  16. package/dist/hooks.cjs.map +1 -1
  17. package/dist/hooks.d.cts +15 -13
  18. package/dist/hooks.d.ts +15 -13
  19. package/dist/hooks.js +1 -1
  20. package/dist/hooks.js.map +1 -1
  21. package/dist/layouts.cjs +4 -0
  22. package/dist/layouts.cjs.map +1 -0
  23. package/dist/{ui.d.cts → layouts.d.cts} +237 -2202
  24. package/dist/{ui.d.ts → layouts.d.ts} +237 -2202
  25. package/dist/layouts.js +4 -0
  26. package/dist/layouts.js.map +1 -0
  27. package/dist/types.cjs +3 -0
  28. package/dist/types.cjs.map +1 -0
  29. package/dist/types.d.cts +8 -0
  30. package/dist/types.d.ts +8 -0
  31. package/dist/types.js +2 -0
  32. package/dist/types.js.map +1 -0
  33. package/dist/{use-modal-transition-XQHye62R.d.cts → use-modal-transition-C0lyjvkD.d.ts} +4 -4
  34. package/dist/{use-modal-transition-DPZFWFFf.d.ts → use-modal-transition-C7DzbnY5.d.cts} +4 -4
  35. package/package.json +76 -76
  36. package/.eslintrc.cjs +0 -9
  37. package/.storybook/decorators.tsx +0 -61
  38. package/.storybook/main.ts +0 -47
  39. package/.storybook/manager-head.html +0 -2
  40. package/.storybook/manager.ts +0 -7
  41. package/.storybook/preview-head.html +0 -2
  42. package/.storybook/preview.ts +0 -38
  43. package/.storybook/theme.ts +0 -47
  44. package/.turbo/turbo-lint.log +0 -4
  45. package/README.md +0 -65
  46. package/dist/chunk-CF5MBMWG.js +0 -3
  47. package/dist/chunk-CF5MBMWG.js.map +0 -1
  48. package/dist/chunk-MAWW6AA7.js +0 -3
  49. package/dist/chunk-MAWW6AA7.js.map +0 -1
  50. package/dist/ui.cjs +0 -2279
  51. package/dist/ui.cjs.map +0 -1
  52. package/dist/ui.js +0 -2279
  53. package/dist/ui.js.map +0 -1
  54. package/src/components/accordion/accordion-item.stories.tsx +0 -128
  55. package/src/components/accordion/accordion-item.tsx +0 -119
  56. package/src/components/accordion/accordion.stories.tsx +0 -74
  57. package/src/components/accordion/accordion.style.ts +0 -42
  58. package/src/components/accordion/accordion.tsx +0 -74
  59. package/src/components/accordion/index.ts +0 -2
  60. package/src/components/buttons/button/button.stories.tsx +0 -103
  61. package/src/components/buttons/button/button.style.ts +0 -152
  62. package/src/components/buttons/button/button.tsx +0 -107
  63. package/src/components/buttons/button/index.ts +0 -1
  64. package/src/components/buttons/index.ts +0 -1
  65. package/src/components/cards/flip-card/flip-card.stories.tsx +0 -61
  66. package/src/components/cards/flip-card/flip-card.style.ts +0 -45
  67. package/src/components/cards/flip-card/flip-card.tsx +0 -55
  68. package/src/components/cards/flip-card/index.ts +0 -1
  69. package/src/components/cards/hover-card/hover-card.stories.tsx +0 -45
  70. package/src/components/cards/hover-card/hover-card.style.ts +0 -13
  71. package/src/components/cards/hover-card/hover-card.tsx +0 -71
  72. package/src/components/cards/hover-card/index.ts +0 -1
  73. package/src/components/cards/index.ts +0 -3
  74. package/src/components/cards/slide-card/index.ts +0 -1
  75. package/src/components/cards/slide-card/slide-card.stories.tsx +0 -47
  76. package/src/components/cards/slide-card/slide-card.tsx +0 -42
  77. package/src/components/cursor/cursor.stories.tsx +0 -36
  78. package/src/components/cursor/cursor.style.ts +0 -73
  79. package/src/components/cursor/cursor.tsx +0 -49
  80. package/src/components/cursor/index.ts +0 -1
  81. package/src/components/form/checkbox/checkbox.stories.tsx +0 -85
  82. package/src/components/form/checkbox/checkbox.style.ts +0 -109
  83. package/src/components/form/checkbox/checkbox.tsx +0 -120
  84. package/src/components/form/checkbox/index.ts +0 -1
  85. package/src/components/form/controller/controller.tsx +0 -42
  86. package/src/components/form/controller/index.ts +0 -1
  87. package/src/components/form/date-picker/date-picker.stories.tsx +0 -38
  88. package/src/components/form/date-picker/date-picker.tsx +0 -67
  89. package/src/components/form/date-picker/index.ts +0 -1
  90. package/src/components/form/field/field.stories.tsx +0 -52
  91. package/src/components/form/field/field.style.ts +0 -94
  92. package/src/components/form/field/field.tsx +0 -86
  93. package/src/components/form/field/field.types.ts +0 -34
  94. package/src/components/form/field/index.ts +0 -2
  95. package/src/components/form/form.stories.types.tsx +0 -50
  96. package/src/components/form/form.types.ts +0 -37
  97. package/src/components/form/index.ts +0 -14
  98. package/src/components/form/input/index.ts +0 -1
  99. package/src/components/form/input/input.stories.tsx +0 -41
  100. package/src/components/form/input/input.tsx +0 -73
  101. package/src/components/form/input-color/index.ts +0 -1
  102. package/src/components/form/input-color/input-color.stories.tsx +0 -46
  103. package/src/components/form/input-color/input-color.style.ts +0 -94
  104. package/src/components/form/input-color/input-color.tsx +0 -162
  105. package/src/components/form/input-file/index.ts +0 -1
  106. package/src/components/form/input-file/input-file.stories.tsx +0 -40
  107. package/src/components/form/input-file/input-file.style.ts +0 -143
  108. package/src/components/form/input-file/input-file.tsx +0 -214
  109. package/src/components/form/input-password/index.ts +0 -1
  110. package/src/components/form/input-password/input-password.stories.tsx +0 -37
  111. package/src/components/form/input-password/input-password.tsx +0 -83
  112. package/src/components/form/radio/index.ts +0 -1
  113. package/src/components/form/radio/radio.stories.tsx +0 -68
  114. package/src/components/form/radio/radio.style.ts +0 -79
  115. package/src/components/form/radio/radio.tsx +0 -106
  116. package/src/components/form/select/data.stories.json +0 -452
  117. package/src/components/form/select/index.ts +0 -1
  118. package/src/components/form/select/option.tsx +0 -101
  119. package/src/components/form/select/options.tsx +0 -161
  120. package/src/components/form/select/select.stories.tsx +0 -369
  121. package/src/components/form/select/select.style.ts +0 -116
  122. package/src/components/form/select/select.tsx +0 -312
  123. package/src/components/form/select/select.types.ts +0 -97
  124. package/src/components/form/slider/index.ts +0 -1
  125. package/src/components/form/slider/slider.stories.tsx +0 -40
  126. package/src/components/form/slider/slider.style.ts +0 -92
  127. package/src/components/form/slider/slider.tsx +0 -108
  128. package/src/components/form/switch/index.ts +0 -1
  129. package/src/components/form/switch/switch.stories.tsx +0 -88
  130. package/src/components/form/switch/switch.style.ts +0 -137
  131. package/src/components/form/switch/switch.tsx +0 -177
  132. package/src/components/form/textarea/index.ts +0 -1
  133. package/src/components/form/textarea/textarea.stories.tsx +0 -43
  134. package/src/components/form/textarea/textarea.style.ts +0 -7
  135. package/src/components/form/textarea/textarea.tsx +0 -76
  136. package/src/components/icon/icon.stories.tsx +0 -63
  137. package/src/components/icon/icon.tsx +0 -64
  138. package/src/components/icon/icons/index.ts +0 -18
  139. package/src/components/icon/icons/object.tsx +0 -482
  140. package/src/components/icon/icons/social.tsx +0 -88
  141. package/src/components/icon/icons/symbol.tsx +0 -776
  142. package/src/components/icon/index.ts +0 -5
  143. package/src/components/image/image.stories.tsx +0 -25
  144. package/src/components/image/image.tsx +0 -7
  145. package/src/components/image/index.ts +0 -1
  146. package/src/components/index.ts +0 -17
  147. package/src/components/infinity-scroll/index.ts +0 -1
  148. package/src/components/infinity-scroll/infinity-scroll.stories.tsx +0 -118
  149. package/src/components/infinity-scroll/infinity-scroll.style.ts +0 -30
  150. package/src/components/infinity-scroll/infinity-scroll.tsx +0 -53
  151. package/src/components/line/index.ts +0 -1
  152. package/src/components/line/line.stories.tsx +0 -66
  153. package/src/components/line/line.style.ts +0 -57
  154. package/src/components/line/line.tsx +0 -76
  155. package/src/components/loaders/icons/box-1.tsx +0 -31
  156. package/src/components/loaders/icons/box-2.tsx +0 -30
  157. package/src/components/loaders/icons/box-3.tsx +0 -66
  158. package/src/components/loaders/icons/clock-1.tsx +0 -25
  159. package/src/components/loaders/icons/clock-2.tsx +0 -58
  160. package/src/components/loaders/icons/dots-1.tsx +0 -194
  161. package/src/components/loaders/icons/dots-2.tsx +0 -15
  162. package/src/components/loaders/icons/dots-3.tsx +0 -38
  163. package/src/components/loaders/icons/dots-4.tsx +0 -90
  164. package/src/components/loaders/icons/dots-5.tsx +0 -30
  165. package/src/components/loaders/icons/dots-6.tsx +0 -72
  166. package/src/components/loaders/icons/dots-7.tsx +0 -51
  167. package/src/components/loaders/icons/dots-8.tsx +0 -42
  168. package/src/components/loaders/icons/dots-9.tsx +0 -27
  169. package/src/components/loaders/icons/lines-1.tsx +0 -96
  170. package/src/components/loaders/icons/lines-2.tsx +0 -48
  171. package/src/components/loaders/icons/pulse-1.tsx +0 -69
  172. package/src/components/loaders/icons/pulse-2.tsx +0 -69
  173. package/src/components/loaders/icons/pulse-3.tsx +0 -105
  174. package/src/components/loaders/icons/pulse-4.tsx +0 -105
  175. package/src/components/loaders/icons/pulse-5.tsx +0 -56
  176. package/src/components/loaders/icons/spinner-1.tsx +0 -162
  177. package/src/components/loaders/icons/spinner-2.tsx +0 -147
  178. package/src/components/loaders/icons/spinner-3.tsx +0 -35
  179. package/src/components/loaders/icons/spinner-4.tsx +0 -16
  180. package/src/components/loaders/index.ts +0 -1
  181. package/src/components/loaders/simple-loader/index.ts +0 -1
  182. package/src/components/loaders/simple-loader/simple-loader.stories.tsx +0 -42
  183. package/src/components/loaders/simple-loader/simple-loader.style.ts +0 -12
  184. package/src/components/loaders/simple-loader/simple-loader.tsx +0 -99
  185. package/src/components/modals/action-modal/action-modal.stories.tsx +0 -157
  186. package/src/components/modals/action-modal/action-modal.style.ts +0 -117
  187. package/src/components/modals/action-modal/action-modal.tsx +0 -148
  188. package/src/components/modals/action-modal/index.ts +0 -1
  189. package/src/components/modals/aside-modal/aside-modal.stories.tsx +0 -81
  190. package/src/components/modals/aside-modal/aside-modal.style.ts +0 -88
  191. package/src/components/modals/aside-modal/aside-modal.tsx +0 -64
  192. package/src/components/modals/aside-modal/index.ts +0 -1
  193. package/src/components/modals/confirmation-modal/confirmation-modal.stories.tsx +0 -62
  194. package/src/components/modals/confirmation-modal/confirmation-modal.style.ts +0 -17
  195. package/src/components/modals/confirmation-modal/confirmation-modal.tsx +0 -43
  196. package/src/components/modals/confirmation-modal/index.ts +0 -1
  197. package/src/components/modals/index.ts +0 -6
  198. package/src/components/modals/menu/index.ts +0 -1
  199. package/src/components/modals/menu/menu.stories.tsx +0 -79
  200. package/src/components/modals/menu/menu.style.ts +0 -103
  201. package/src/components/modals/menu/menu.tsx +0 -186
  202. package/src/components/modals/modal/backdrop.tsx +0 -70
  203. package/src/components/modals/modal/index.ts +0 -2
  204. package/src/components/modals/modal/modal.stories.tsx +0 -328
  205. package/src/components/modals/modal/modal.style.ts +0 -70
  206. package/src/components/modals/modal/modal.tsx +0 -106
  207. package/src/components/modals/portal/index.ts +0 -1
  208. package/src/components/modals/portal/portal.tsx +0 -21
  209. package/src/components/ripple/index.ts +0 -1
  210. package/src/components/ripple/ripple.stories.tsx +0 -38
  211. package/src/components/ripple/ripple.style.ts +0 -33
  212. package/src/components/ripple/ripple.tsx +0 -65
  213. package/src/components/smart-table/index.ts +0 -1
  214. package/src/components/smart-table/smart-table.column.tsx +0 -63
  215. package/src/components/smart-table/smart-table.helpers.tsx +0 -59
  216. package/src/components/smart-table/smart-table.hooks.ts +0 -27
  217. package/src/components/smart-table/smart-table.row.tsx +0 -29
  218. package/src/components/smart-table/smart-table.stories.tsx +0 -301
  219. package/src/components/smart-table/smart-table.style.ts +0 -102
  220. package/src/components/smart-table/smart-table.tsx +0 -112
  221. package/src/components/smart-table/smart-table.types.ts +0 -41
  222. package/src/components/tabs/index.ts +0 -1
  223. package/src/components/tabs/tabs-container.stories.tsx +0 -159
  224. package/src/components/tabs/tabs-list.tsx +0 -134
  225. package/src/components/tabs/tabs.stories.tsx +0 -68
  226. package/src/components/tabs/tabs.style.ts +0 -137
  227. package/src/components/tabs/tabs.tsx +0 -117
  228. package/src/components/tag/index.ts +0 -1
  229. package/src/components/tag/tag.stories.tsx +0 -48
  230. package/src/components/tag/tag.style.ts +0 -29
  231. package/src/components/tag/tag.tsx +0 -34
  232. package/src/components/tooltips/click-to-copy/click-to-copy.stories.tsx +0 -39
  233. package/src/components/tooltips/click-to-copy/click-to-copy.tsx +0 -41
  234. package/src/components/tooltips/click-to-copy/index.ts +0 -1
  235. package/src/components/tooltips/index.ts +0 -2
  236. package/src/components/tooltips/tooltip/index.ts +0 -1
  237. package/src/components/tooltips/tooltip/tooltip.stories.tsx +0 -38
  238. package/src/components/tooltips/tooltip/tooltip.style.ts +0 -93
  239. package/src/components/tooltips/tooltip/tooltip.tsx +0 -59
  240. package/src/components/typography/index.ts +0 -2
  241. package/src/components/typography/typography.constants.ts +0 -43
  242. package/src/components/typography/typography.stories.tsx +0 -108
  243. package/src/components/typography/typography.style.ts +0 -76
  244. package/src/components/typography/typography.tsx +0 -100
  245. package/src/contexts/fetch-context/fetch-context.tsx +0 -114
  246. package/src/contexts/fetch-context/index.ts +0 -1
  247. package/src/contexts/form-context/form-context.tsx +0 -43
  248. package/src/contexts/form-context/index.ts +0 -1
  249. package/src/contexts/index.ts +0 -3
  250. package/src/contexts/theme-context/index.ts +0 -3
  251. package/src/contexts/theme-context/theme-context.tsx +0 -158
  252. package/src/contexts/theme-context/theme.animations.ts +0 -269
  253. package/src/contexts/theme-context/theme.defaults.ts +0 -209
  254. package/src/contexts/theme-context/theme.style.ts +0 -78
  255. package/src/contexts/theme-context/themes.ts +0 -98
  256. package/src/core/http-client.d.ts +0 -11
  257. package/src/core/http-client.d.ts.map +0 -1
  258. package/src/core/http-client.ts +0 -49
  259. package/src/core/index.d.ts +0 -2
  260. package/src/core/index.d.ts.map +0 -1
  261. package/src/core/index.ts +0 -1
  262. package/src/core/variants/color.ts +0 -9
  263. package/src/core/variants/index.ts +0 -3
  264. package/src/core/variants/radius.ts +0 -27
  265. package/src/core/variants/size.ts +0 -19
  266. package/src/helpers/format-bytes.ts +0 -11
  267. package/src/helpers/format-dates.ts +0 -11
  268. package/src/helpers/get-modal-position-relative-to-screen.ts +0 -86
  269. package/src/helpers/get-modal-position.ts +0 -211
  270. package/src/helpers/index.ts +0 -5
  271. package/src/helpers/text/index.ts +0 -1
  272. package/src/helpers/text/to-capitalize.ts +0 -17
  273. package/src/hooks/index.ts +0 -29
  274. package/src/hooks/use-async.ts +0 -88
  275. package/src/hooks/use-classnames.ts +0 -13
  276. package/src/hooks/use-click-outside.ts +0 -32
  277. package/src/hooks/use-constant.ts +0 -3
  278. package/src/hooks/use-cookie.ts +0 -124
  279. package/src/hooks/use-debounce.ts +0 -15
  280. package/src/hooks/use-dimensions.ts +0 -19
  281. package/src/hooks/use-dom-container.ts +0 -35
  282. package/src/hooks/use-event-listener.ts +0 -71
  283. package/src/hooks/use-file-reader.ts +0 -69
  284. package/src/hooks/use-geolocation.ts +0 -63
  285. package/src/hooks/use-hover.ts +0 -17
  286. package/src/hooks/use-in-view.ts +0 -18
  287. package/src/hooks/use-input-handlers.ts +0 -49
  288. package/src/hooks/use-intersection-observer.ts +0 -19
  289. package/src/hooks/use-media-query.ts +0 -25
  290. package/src/hooks/use-modal-in-container.ts +0 -85
  291. package/src/hooks/use-modal-transition.ts +0 -64
  292. package/src/hooks/use-modal.ts +0 -21
  293. package/src/hooks/use-mouse-position.ts +0 -64
  294. package/src/hooks/use-online-status.ts +0 -12
  295. package/src/hooks/use-render-count.ts +0 -11
  296. package/src/hooks/use-resize-observer.ts +0 -18
  297. package/src/hooks/use-safe-dispatch.ts +0 -22
  298. package/src/hooks/use-scroll.ts +0 -31
  299. package/src/hooks/use-state-history.ts +0 -22
  300. package/src/hooks/use-toggle-values.ts +0 -14
  301. package/src/hooks/use-toggle.ts +0 -11
  302. package/src/hooks/use-viewport.ts +0 -38
  303. package/src/index.ts +0 -5
  304. package/src/layouts/flex/flex.tsx +0 -75
  305. package/src/layouts/flex/index.ts +0 -1
  306. package/src/layouts/grid/grid.tsx +0 -86
  307. package/src/layouts/grid/index.ts +0 -1
  308. package/src/layouts/index.ts +0 -3
  309. package/src/layouts/section-layout/index.ts +0 -1
  310. package/src/layouts/section-layout/section-layout.stories.tsx +0 -55
  311. package/src/layouts/section-layout/section-layout.style.ts +0 -21
  312. package/src/layouts/section-layout/section-layout.tsx +0 -46
  313. package/src/stories/GettingStarted.mdx +0 -62
  314. package/src/types/generics.ts +0 -68
  315. package/src/types/index.ts +0 -1
  316. package/svg/Name=airplane, Category=object.svg +0 -3
  317. package/svg/Name=arrow-circle, Category=symbol.svg +0 -3
  318. package/svg/Name=arrow-down, Category=symbol.svg +0 -3
  319. package/svg/Name=arrow-left, Category=symbol.svg +0 -3
  320. package/svg/Name=arrow-right, Category=symbol.svg +0 -3
  321. package/svg/Name=arrow-up, Category=symbol.svg +0 -3
  322. package/svg/Name=bell, Category=object.svg +0 -3
  323. package/svg/Name=bicycle, Category=object.svg +0 -3
  324. package/svg/Name=book-open, Category=object.svg +0 -3
  325. package/svg/Name=book-solid, Category=object.svg +0 -6
  326. package/svg/Name=box-shadow, Category=symbol.svg +0 -5
  327. package/svg/Name=calendar, Category=object.svg +0 -3
  328. package/svg/Name=camera, Category=object.svg +0 -3
  329. package/svg/Name=caret-down, Category=symbol.svg +0 -3
  330. package/svg/Name=caret-left, Category=symbol.svg +0 -3
  331. package/svg/Name=caret-right, Category=symbol.svg +0 -3
  332. package/svg/Name=caret-up, Category=symbol.svg +0 -3
  333. package/svg/Name=checkmark, Category=symbol.svg +0 -3
  334. package/svg/Name=clean-computer, Category=object.svg +0 -10
  335. package/svg/Name=codepen, Category=social.svg +0 -3
  336. package/svg/Name=creative, Category=symbol.svg +0 -5
  337. package/svg/Name=cross, Category=symbol.svg +0 -4
  338. package/svg/Name=crossed-flags, Category=object.svg +0 -4
  339. package/svg/Name=cv, Category=symbol.svg +0 -5
  340. package/svg/Name=design-ui, Category=symbol.svg +0 -9
  341. package/svg/Name=document, Category=object.svg +0 -3
  342. package/svg/Name=door-closed, Category=object.svg +0 -3
  343. package/svg/Name=door-open, Category=object.svg +0 -3
  344. package/svg/Name=double-caret-down, Category=symbol.svg +0 -4
  345. package/svg/Name=double-caret-left, Category=symbol.svg +0 -4
  346. package/svg/Name=double-caret-righ, Category=symbol.svg +0 -4
  347. package/svg/Name=double-caret-up, Category=symbol.svg +0 -4
  348. package/svg/Name=download, Category=symbol.svg +0 -5
  349. package/svg/Name=dropper, Category=object.svg +0 -5
  350. package/svg/Name=envelope, Category=object.svg +0 -3
  351. package/svg/Name=exclamation-close, Category=symbol.svg +0 -4
  352. package/svg/Name=exclamation-open, Category=symbol.svg +0 -4
  353. package/svg/Name=external-link, Category=symbol.svg +0 -3
  354. package/svg/Name=eye, Category=object.svg +0 -4
  355. package/svg/Name=eye-hidden, Category=object.svg +0 -7
  356. package/svg/Name=facebook, Category=social.svg +0 -3
  357. package/svg/Name=form, Category=symbol.svg +0 -8
  358. package/svg/Name=game-control, Category=object.svg +0 -3
  359. package/svg/Name=gear, Category=object.svg +0 -3
  360. package/svg/Name=github, Category=social.svg +0 -3
  361. package/svg/Name=house, Category=object.svg +0 -3
  362. package/svg/Name=hyphen, Category=symbol.svg +0 -3
  363. package/svg/Name=info, Category=symbol.svg +0 -3
  364. package/svg/Name=instagram, Category=social.svg +0 -3
  365. package/svg/Name=link, Category=symbol.svg +0 -5
  366. package/svg/Name=linkedin, Category=social.svg +0 -3
  367. package/svg/Name=magnifying-glass, Category=object.svg +0 -3
  368. package/svg/Name=message, Category=symbol.svg +0 -4
  369. package/svg/Name=moon, Category=object.svg +0 -5
  370. package/svg/Name=npm, Category=social.svg +0 -3
  371. package/svg/Name=order-list, Category=symbol.svg +0 -7
  372. package/svg/Name=pencil, Category=object.svg +0 -3
  373. package/svg/Name=pin-location, Category=symbol.svg +0 -3
  374. package/svg/Name=question-mark-close, Category=symbol.svg +0 -3
  375. package/svg/Name=question-mark-open, Category=symbol.svg +0 -3
  376. package/svg/Name=share, Category=symbol.svg +0 -5
  377. package/svg/Name=spinner, Category=symbol.svg +0 -9
  378. package/svg/Name=star, Category=object.svg +0 -3
  379. package/svg/Name=star-empty, Category=object.svg +0 -3
  380. package/svg/Name=sun, Category=object.svg +0 -11
  381. package/svg/Name=text-shadow, Category=symbol.svg +0 -4
  382. package/svg/Name=thinking, Category=symbol.svg +0 -3
  383. package/svg/Name=trash-can, Category=object.svg +0 -4
  384. package/svg/Name=upload, Category=symbol.svg +0 -5
  385. package/svg/Name=user, Category=symbol.svg +0 -4
  386. package/svg/Name=warning, Category=symbol.svg +0 -5
  387. package/svg/Name=whatsapp, Category=social.svg +0 -3
  388. package/svgconfig.json +0 -4
  389. package/tsconfig.json +0 -15
  390. package/tsup.config.cjs +0 -21
  391. package/vite.config.ts +0 -14
@@ -1,209 +0,0 @@
1
- import { CommonThemeEntity, PaletteThemeEntity, ThemeConstantsEntity } from './themes';
2
-
3
- export const ThemeConstants: ThemeConstantsEntity = {
4
- fontFamily: '"Montserrat Alternates", sans-serif',
5
- sectionMinHeight: '810px',
6
- breakpoints: {
7
- mobile: '360px',
8
- mobileL: '480px',
9
- tablet: '768px',
10
- laptopS: '1024px',
11
- laptopM: '1280px',
12
- laptopL: '1440px',
13
- desktop: '1920px',
14
- large: '2560px',
15
- },
16
- typography: {
17
- hero: {
18
- fontSize: '60px',
19
- lineHeight: '120%',
20
- defaultWeight: 700,
21
- weights: {
22
- bold: 700,
23
- },
24
- breakpoints: [],
25
- },
26
- header1: {
27
- fontSize: '48px',
28
- lineHeight: '120%',
29
- defaultWeight: 700,
30
- weights: {
31
- bold: 700,
32
- },
33
- breakpoints: [],
34
- },
35
- header2: {
36
- fontSize: '40px',
37
- lineHeight: '120%',
38
- defaultWeight: 700,
39
- weights: {
40
- bold: 700,
41
- },
42
- breakpoints: [],
43
- },
44
- header3: {
45
- fontSize: '32px',
46
- lineHeight: '120%',
47
- defaultWeight: 700,
48
- weights: {
49
- bold: 700,
50
- },
51
- breakpoints: [],
52
- },
53
- header4: {
54
- fontSize: '24px',
55
- lineHeight: '120%',
56
- defaultWeight: 700,
57
- weights: {
58
- bold: 700,
59
- regular: 400,
60
- },
61
- breakpoints: [],
62
- },
63
- body: {
64
- fontSize: '16px',
65
- lineHeight: '140%',
66
- defaultWeight: 400,
67
- weights: {
68
- bold: 700,
69
- regular: 400,
70
- light: 300,
71
- },
72
- breakpoints: [],
73
- },
74
- label: {
75
- fontSize: '14px',
76
- lineHeight: '140%',
77
- defaultWeight: 400,
78
- weights: {
79
- bold: 700,
80
- regular: 400,
81
- light: 300,
82
- },
83
- breakpoints: [],
84
- },
85
- small: {
86
- fontSize: '12px',
87
- lineHeight: '140%',
88
- defaultWeight: 400,
89
- weights: {
90
- bold: 700,
91
- regular: 400,
92
- light: 300,
93
- },
94
- breakpoints: [],
95
- },
96
- },
97
- };
98
-
99
- export const CommonTheme: CommonThemeEntity = {
100
- black: '#000000',
101
- gray1: '#191919',
102
- gray2: '#323232',
103
- gray3: '#4B4B4B',
104
- gray4: '#646464',
105
- gray5: '#4B4B4B',
106
- gray6: '#969696',
107
- gray7: '#CCCCCC',
108
- gray8: '#DEDEDE',
109
- gray9: '#F0F0F0',
110
- white: '#FFFFFF',
111
- info: {
112
- main: '#0581ff',
113
- contrast: '#FFFFFF',
114
- light: '#7bc1ff',
115
- dark: '#0057b5',
116
- },
117
- active: {
118
- main: '#00B450',
119
- contrast: '#FFFFFF',
120
- light: '#3dd581',
121
- dark: '#029341',
122
- },
123
- warning: {
124
- main: '#FFA300',
125
- contrast: '#FFFFFF',
126
- light: '#ffc97a',
127
- dark: '#a16903',
128
- },
129
- alert: {
130
- main: '#F95F62',
131
- contrast: '#FFFFFF',
132
- light: '#ff9c9d',
133
- dark: '#b1282b',
134
- },
135
- };
136
-
137
- export const DarkTheme: PaletteThemeEntity = {
138
- background: {
139
- main: '#24263A',
140
- light: '#292b40',
141
- dark: '#1e2032',
142
- paper: '#131520',
143
- disabled: '#3e3e42',
144
- },
145
- text: {
146
- main: '#FFFFFF',
147
- light: '#FFFFFF',
148
- dark: '#d1cfcf',
149
- disabled: '#9e9e9e',
150
- },
151
- border: {
152
- main: '#3a4145',
153
- },
154
- primary: {
155
- main: '#B91345',
156
- contrast: '#FFFFFF',
157
- light: '#fa2f6d',
158
- dark: '#880a2f',
159
- },
160
- secondary: {
161
- main: '#450b7c',
162
- contrast: '#FFFFFF',
163
- light: '#5c11a3',
164
- dark: '#33075c',
165
- },
166
- tertiary: {
167
- main: '#012e64',
168
- contrast: '#FFFFFF',
169
- light: '#033f83',
170
- dark: '#011c42',
171
- },
172
- };
173
-
174
- export const LightTheme: PaletteThemeEntity = {
175
- background: {
176
- main: '#FFFFFF',
177
- light: '#efefef',
178
- dark: '#b5b5b5',
179
- paper: '#f1f1f1',
180
- disabled: '#d1d1d1',
181
- },
182
- text: {
183
- main: '#333333',
184
- light: '#434242',
185
- dark: '#1c1b1b',
186
- disabled: '#c1c0c0',
187
- },
188
- border: {
189
- main: '#c1c1c1',
190
- },
191
- primary: {
192
- main: '#450b7c',
193
- contrast: '#FFFFFF',
194
- light: '#5c11a3',
195
- dark: '#33075c',
196
- },
197
- secondary: {
198
- main: '#563cc9',
199
- contrast: '#FFFFFF',
200
- light: '#6d50e4',
201
- dark: '#3e2795',
202
- },
203
- tertiary: {
204
- main: '#49e9fb',
205
- contrast: '#FFFFFF',
206
- light: '#a2edff',
207
- dark: '#1fa5b5',
208
- },
209
- };
@@ -1,78 +0,0 @@
1
- import styled, { createGlobalStyle } from 'styled-components';
2
-
3
- export const ThemeStyle = styled.main`
4
- height: 100dvh;
5
- overflow: auto;
6
- background: ${props => props.theme.colors.background.main};
7
- `;
8
-
9
- export const GlobalStyles = createGlobalStyle`
10
- *, *::before, *::after {
11
- box-sizing: border-box;
12
- }
13
-
14
- /* width */
15
- ::-webkit-scrollbar {
16
- width: 0;
17
- height: 0;
18
- }
19
-
20
- /* Track */
21
- ::-webkit-scrollbar-track {
22
- border-radius: 10px;
23
- }
24
-
25
- /* Handle */
26
- ::-webkit-scrollbar-thumb {
27
- background: #cecece;
28
- border-radius: 10px;
29
- }
30
-
31
- /* Handle on hover */
32
- ::-webkit-scrollbar-thumb:hover {
33
- background: #cecece;
34
- }
35
-
36
- :root {
37
- color-scheme: light dark;
38
- font-synthesis: none;
39
- text-rendering: optimizeLegibility;
40
- -webkit-font-smoothing: antialiased;
41
- -moz-osx-font-smoothing: grayscale;
42
- }
43
-
44
- *, *::after, *::before {
45
- box-sizing: border-box;
46
- }
47
-
48
- html {
49
- scroll-behavior: smooth;
50
- }
51
-
52
- a {
53
- text-decoration: none;
54
- color: inherit;
55
- }
56
-
57
- input, textarea {
58
- color: currentColor;
59
- font-family: inherit;
60
- padding: 0;
61
- margin: 0;
62
- width: 100%;
63
- background: transparent;
64
- }
65
-
66
- input {
67
- border: 0;
68
- outline: 0;
69
- padding: 0;
70
- width: 100%;
71
- }
72
-
73
- body, ${ThemeStyle} {
74
- min-width: ${props => props.theme.constants.breakpoints.mobile};
75
- font-family: ${props => props.theme.constants.fontFamily};
76
- color: ${props => props.theme.colors.text.main};
77
- }
78
- `;
@@ -1,98 +0,0 @@
1
- import React from 'react';
2
-
3
- export enum TypographyVariants {
4
- HERO = 'hero',
5
- HEADER1 = 'header1',
6
- HEADER2 = 'header2',
7
- HEADER3 = 'header3',
8
- HEADER4 = 'header4',
9
- BODY = 'body',
10
- LABEL = 'label',
11
- SMALL = 'small',
12
- }
13
- export enum Breakpoints {
14
- MOBILE = 'mobile',
15
- MOBILE_L = 'mobileL',
16
- TABLET = 'tablet',
17
- LAPTOPS = 'laptopS',
18
- LAPTOP_M = 'laptopM',
19
- LAPTOP_L = 'laptopL',
20
- DESKTOP = 'desktop',
21
- LARGE = 'large',
22
- }
23
-
24
- export type TypographyEntity = {
25
- fontSize: string;
26
- lineHeight: string;
27
- defaultWeight: React.CSSProperties['fontWeight'];
28
- weights: Record<string, React.CSSProperties['fontWeight']>;
29
- breakpoints: Array<{
30
- from: `${Breakpoints}`;
31
- fontSize: string;
32
- lineHeight: string;
33
- }>;
34
- };
35
-
36
- export type ThemeConstantsEntity = {
37
- fontFamily: string;
38
- sectionMinHeight: string;
39
- breakpoints: Record<`${Breakpoints}`, string>;
40
- typography: Record<`${TypographyVariants}`, TypographyEntity>;
41
- };
42
-
43
- export type ThemeColor = {
44
- main: string;
45
- contrast: string;
46
- light: string;
47
- dark: string;
48
- };
49
-
50
- export type CommonThemeEntity = {
51
- black: string;
52
- white: string;
53
- gray1: string;
54
- gray2: string;
55
- gray3: string;
56
- gray4: string;
57
- gray5: string;
58
- gray6: string;
59
- gray7: string;
60
- gray8: string;
61
- gray9: string;
62
- info: ThemeColor;
63
- active: ThemeColor;
64
- warning: ThemeColor;
65
- alert: ThemeColor;
66
- };
67
-
68
- export type PaletteThemeEntity = {
69
- background: {
70
- main: string;
71
- paper: string;
72
- disabled: string;
73
- light: string;
74
- dark: string;
75
- };
76
- text: {
77
- main: string;
78
- light: string;
79
- dark: string;
80
- disabled: string;
81
- };
82
- border: {
83
- main: string;
84
- };
85
- primary: ThemeColor;
86
- secondary: ThemeColor;
87
- tertiary: ThemeColor;
88
- };
89
-
90
- export type ThemeEntity = PaletteThemeEntity & CommonThemeEntity;
91
-
92
- declare module 'styled-components' {
93
- export interface DefaultTheme {
94
- name: string;
95
- colors: ThemeEntity;
96
- constants: ThemeConstantsEntity;
97
- }
98
- }
@@ -1,11 +0,0 @@
1
- import { AxiosInstance } from 'axios';
2
- export declare class HttpClient {
3
- private _instance;
4
- private _token;
5
- logout: () => void;
6
- constructor(baseURL: string);
7
- get instance(): AxiosInstance;
8
- get token(): string;
9
- set token(token: string);
10
- }
11
- //# sourceMappingURL=http-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["http-client.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,qBAAa,UAAU;IACrB,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,MAAM,CAAS;IAEhB,MAAM,aAA0C;gBAE3C,OAAO,EAAE,MAAM;IA0B3B,IAAW,QAAQ,IAAI,aAAa,CAEnC;IAED,IAAW,KAAK,IAIQ,MAAM,CAF7B;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAG7B;CACF"}
@@ -1,49 +0,0 @@
1
- /*
2
- * import axios, { AxiosInstance } from 'axios';
3
- *
4
- * export class HttpClient {
5
- * private _instance: AxiosInstance;
6
- * private _token: string;
7
- *
8
- * public logout = () => localStorage.removeItem('token');
9
- *
10
- * constructor(baseURL: string) {
11
- * this._token = localStorage.getItem('token') ?? '';
12
- *
13
- * this._instance = axios.create({
14
- * baseURL: baseURL,
15
- * headers: {
16
- * 'Content-Type': 'application/json',
17
- * },
18
- * });
19
- *
20
- * this._instance.interceptors.request.use(req => {
21
- * const token = this.token;
22
- * token !== null && req.headers.setAuthorization(`Bearer ${token}`);
23
- *
24
- * return req;
25
- * });
26
- *
27
- * this._instance.interceptors.response.use(
28
- * response => Promise.resolve(response),
29
- * error => {
30
- * error.response.status === 401 && this.logout();
31
- * Promise.reject(error);
32
- * },
33
- * );
34
- * }
35
- *
36
- * public get instance(): AxiosInstance {
37
- * return this._instance;
38
- * }
39
- *
40
- * public get token() {
41
- * return this._token;
42
- * }
43
- *
44
- * public set token(token: string) {
45
- * this._token = token;
46
- * localStorage.setItem('token', token);
47
- * }
48
- * }
49
- */
@@ -1,2 +0,0 @@
1
- export * from './http-client';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
package/src/core/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './http-client';
@@ -1,9 +0,0 @@
1
- export enum ColorVariants {
2
- Primary = 'primary',
3
- Secondary = 'secondary',
4
- Tertiary = 'tertiary',
5
- Info = 'info',
6
- Active = 'active',
7
- Warning = 'warning',
8
- Alert = 'alert',
9
- }
@@ -1,3 +0,0 @@
1
- export * from './color';
2
- export * from './radius';
3
- export * from './size';
@@ -1,27 +0,0 @@
1
- import { css } from 'styled-components';
2
-
3
- export enum RadiusVariants {
4
- None = 'none',
5
- Small = 'small',
6
- Medium = 'medium',
7
- Large = 'large',
8
- Full = 'full',
9
- }
10
-
11
- export const RadiusStyles: Record<RadiusVariants, ReturnType<typeof css>> = {
12
- [RadiusVariants.None]: css`
13
- border-radius: 0;
14
- `,
15
- [RadiusVariants.Small]: css`
16
- border-radius: 0.5em;
17
- `,
18
- [RadiusVariants.Medium]: css`
19
- border-radius: 1em;
20
- `,
21
- [RadiusVariants.Large]: css`
22
- border-radius: 1.5em;
23
- `,
24
- [RadiusVariants.Full]: css`
25
- border-radius: 100em;
26
- `,
27
- };
@@ -1,19 +0,0 @@
1
- import { css } from 'styled-components';
2
-
3
- export enum SizeVariants {
4
- Small = 'small',
5
- Medium = 'medium',
6
- Large = 'large',
7
- }
8
-
9
- export const SizeStyles: Record<SizeVariants, ReturnType<typeof css>> = {
10
- [SizeVariants.Small]: css`
11
- font-size: ${props => props.theme.constants.typography.small.fontSize};
12
- `,
13
- [SizeVariants.Medium]: css`
14
- font-size: ${props => props.theme.constants.typography.label.fontSize};
15
- `,
16
- [SizeVariants.Large]: css`
17
- font-size: ${props => props.theme.constants.typography.body.fontSize};
18
- `,
19
- };
@@ -1,11 +0,0 @@
1
- export const formatBytes = (bytes: number, decimals = 2) => {
2
- if (bytes === 0) return '0 Bytes';
3
-
4
- const k = 1000;
5
- const dm = decimals < 0 ? 0 : decimals;
6
- const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
7
-
8
- const i = Math.floor(Math.log(bytes) / Math.log(k));
9
-
10
- return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
11
- };
@@ -1,11 +0,0 @@
1
- import moment from 'moment/moment';
2
-
3
- export const formatDate = (date: string) => {
4
- return Date.parse(date) ? moment(date, 'YYYY-MM-DD').format('MMM YYYY') : date;
5
- };
6
-
7
- export const timeBetween = (date_start: string, date_end: string) => {
8
- const momentStart = moment(date_start);
9
-
10
- return Date.parse(date_end) ? moment(date_end).from(momentStart, true) : momentStart.fromNow();
11
- };
@@ -1,86 +0,0 @@
1
- import { PositionContainer } from './get-modal-position';
2
-
3
- export type GetModalPositionRelativeToScreenParams = {
4
- position: PositionContainer;
5
- windowOffset: number;
6
- };
7
-
8
- export const getModalPositionRelativeToScreen = ({
9
- position,
10
- windowOffset,
11
- }: GetModalPositionRelativeToScreenParams): Record<string, string> => {
12
- switch (position) {
13
- case PositionContainer.CENTER:
14
- return {
15
- top: '50%',
16
- left: '50%',
17
- transform: 'translate(-50%, -50%)',
18
- };
19
-
20
- case PositionContainer.TOP:
21
- case PositionContainer.TOP_CENTER:
22
- return {
23
- top: `${windowOffset}px`,
24
- left: '50%',
25
- transform: 'translateX(-50%)',
26
- };
27
-
28
- case PositionContainer.TOP_LEFT:
29
- case PositionContainer.LEFT_TOP:
30
- return {
31
- top: `${windowOffset}px`,
32
- left: `${windowOffset}px`,
33
- };
34
-
35
- case PositionContainer.TOP_RIGHT:
36
- case PositionContainer.RIGHT_TOP:
37
- return {
38
- top: `${windowOffset}px`,
39
- right: `${windowOffset}px`,
40
- };
41
-
42
- case PositionContainer.BOTTOM:
43
- case PositionContainer.BOTTOM_CENTER:
44
- return {
45
- bottom: `${windowOffset}px`,
46
- left: '50%',
47
- transform: 'translateX(-50%)',
48
- };
49
-
50
- case PositionContainer.LEFT_BOTTOM:
51
- case PositionContainer.BOTTOM_LEFT:
52
- return {
53
- bottom: `${windowOffset}px`,
54
- left: `${windowOffset}px`,
55
- };
56
-
57
- case PositionContainer.RIGHT_BOTTOM:
58
- case PositionContainer.BOTTOM_RIGHT:
59
- return {
60
- bottom: `${windowOffset}px`,
61
- right: `${windowOffset}px`,
62
- };
63
-
64
- case PositionContainer.LEFT:
65
- case PositionContainer.LEFT_CENTER:
66
- return {
67
- top: '50%',
68
- left: `${windowOffset}px`,
69
- transform: 'translateY(-50%)',
70
- };
71
-
72
- case PositionContainer.RIGHT:
73
- case PositionContainer.RIGHT_CENTER:
74
- return {
75
- top: '50%',
76
- right: `${windowOffset}px`,
77
- transform: 'translateY(-50%)',
78
- };
79
- }
80
-
81
- return {
82
- top: '50%',
83
- left: '50%',
84
- transform: 'translate(-50%, -50%)',
85
- };
86
- };