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,5 +0,0 @@
1
- import { IconNameT } from './icon';
2
- import { Icons } from './icons';
3
-
4
- export * from './icon';
5
- export const IconNames: Array<IconNameT> = Object.keys(Icons) as Array<IconNameT>;
@@ -1,25 +0,0 @@
1
- import { Image } from './image';
2
-
3
- import type { Meta, StoryObj } from '@storybook/react';
4
-
5
- const meta: Meta<typeof Image> = {
6
- title: 'Image',
7
- component: Image,
8
- argTypes: {
9
- src: { control: { type: 'text' } },
10
- alt: { control: { type: 'text' } },
11
- loading: { control: 'select', options: ['eager', 'lazy'] },
12
- },
13
- args: {
14
- src: 'https://t4.ftcdn.net/jpg/07/28/89/61/360_F_728896171_M2pPUCPkTyFiSYWhDsJI5A45TsI6B5Gk.jpg',
15
- alt: 'Image',
16
- loading: 'eager',
17
- },
18
- };
19
-
20
- export default meta;
21
- type Story = StoryObj<typeof Image>;
22
-
23
- export const Default: Story = {
24
- args: {},
25
- };
@@ -1,7 +0,0 @@
1
- import { DetailedHTMLProps, ImgHTMLAttributes } from 'react';
2
-
3
- type ImageProps = DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> & {};
4
-
5
- export const Image = ({ alt = '', loading = 'eager', ...props }: ImageProps) => {
6
- return <img loading={loading} alt={alt} {...props} width='100%' />;
7
- };
@@ -1 +0,0 @@
1
- export * from './image';
@@ -1,17 +0,0 @@
1
- export * from './accordion';
2
- export * from './buttons';
3
- export * from './cards';
4
- export * from './cursor';
5
- export * from './form';
6
- export * from './icon';
7
- export * from './image';
8
- export * from './infinity-scroll';
9
- export * from './line';
10
- export * from './loaders';
11
- export * from './modals';
12
- export * from './ripple';
13
- export * from './smart-table';
14
- export * from './tabs';
15
- export * from './tag';
16
- export * from './tooltips';
17
- export * from './typography';
@@ -1 +0,0 @@
1
- export * from './infinity-scroll';
@@ -1,118 +0,0 @@
1
- import { useCallback, useState } from 'react';
2
-
3
- import { Grid } from '../../layouts';
4
- import { Typography } from '../typography';
5
-
6
- import { InfinityScroll } from './infinity-scroll';
7
-
8
- import type { Meta, StoryObj } from '@storybook/react';
9
-
10
- const meta: Meta<typeof InfinityScroll> = {
11
- title: 'InfinityScroll',
12
- component: InfinityScroll,
13
- argTypes: {
14
- isLoading: { control: 'boolean' },
15
- hasNextPage: { control: 'boolean' },
16
- loadMore: { control: false },
17
- customLoadMoreElement: { control: false },
18
- emptyMessage: { control: 'text' },
19
- children: { control: 'text' },
20
- },
21
- decorators: [
22
- Story => (
23
- <Grid style={{ height: '300px', width: '300px', overflow: 'auto', border: '1px solid' }}>
24
- <Story />
25
- </Grid>
26
- ),
27
- ],
28
- render: args => {
29
- const [data, setData] = useState<Array<string>>([]);
30
- const [hasNextPage, setHasNextPage] = useState(true);
31
- const [isLoading, setIsLoading] = useState(false);
32
-
33
- const loadMore = useCallback(() => {
34
- if (!hasNextPage) return;
35
-
36
- setIsLoading(true);
37
- setTimeout(() => {
38
- setData([...data, ...['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']]);
39
- setHasNextPage(data.length < 100);
40
- setIsLoading(false);
41
- }, 1000);
42
- }, [data, hasNextPage]);
43
-
44
- return (
45
- <Grid gap='10px' style={{ padding: '10px' }}>
46
- <InfinityScroll {...args} hasNextPage={hasNextPage} isLoading={isLoading} loadMore={loadMore}>
47
- {data.map((v: string, key: number) => (
48
- <section key={key} style={{ padding: '10px', background: '#55882233' }}>
49
- <Typography variant='label' weight='bold' align='center' as='p'>
50
- {v}
51
- </Typography>
52
- </section>
53
- ))}
54
- </InfinityScroll>
55
- </Grid>
56
- );
57
- },
58
- };
59
-
60
- export default meta;
61
- type Story = StoryObj<typeof InfinityScroll>;
62
-
63
- export const Default: Story = {
64
- args: {},
65
- render: args => {
66
- const [data, setData] = useState<Array<string>>([]);
67
- const [hasNextPage, setHasNextPage] = useState(true);
68
- const [isLoading, setIsLoading] = useState(false);
69
-
70
- const loadMore = useCallback(() => {
71
- if (!hasNextPage) return;
72
-
73
- setIsLoading(true);
74
- setTimeout(() => {
75
- setData([...data, ...['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']]);
76
- setHasNextPage(data.length < 100);
77
- setIsLoading(false);
78
- }, 1000);
79
- }, [data, hasNextPage]);
80
-
81
- return (
82
- <Grid gap='10px' style={{ padding: '10px' }}>
83
- <InfinityScroll {...args} hasNextPage={hasNextPage} isLoading={isLoading} loadMore={loadMore}>
84
- {data.map((v: string, key: number) => (
85
- <section key={key} style={{ padding: '10px', background: '#55882233' }}>
86
- <Typography variant='label' weight='bold' align='center' as='p'>
87
- {v}
88
- </Typography>
89
- </section>
90
- ))}
91
- </InfinityScroll>
92
- </Grid>
93
- );
94
- },
95
- };
96
-
97
- export const Empty: Story = {
98
- args: {
99
- emptyMessage: 'No data',
100
- },
101
- render: args => {
102
- const [data] = useState<Array<string>>([]);
103
-
104
- return (
105
- <Grid gap='10px' style={{ padding: '10px' }}>
106
- <InfinityScroll {...args} hasNextPage={false} isLoading={false} loadMore={() => null}>
107
- {data.map((v: string, key: number) => (
108
- <section key={key} style={{ padding: '10px', background: '#55882233' }}>
109
- <Typography variant='label' weight='bold' align='center' as='p'>
110
- {v}
111
- </Typography>
112
- </section>
113
- ))}
114
- </InfinityScroll>
115
- </Grid>
116
- );
117
- },
118
- };
@@ -1,30 +0,0 @@
1
- import styled from 'styled-components';
2
-
3
- export const InfiniteScrollStyle = styled.section`
4
- display: grid;
5
- gap: 1em;
6
- `;
7
-
8
- export const InfinityScrollFooterStyle = styled.section`
9
- display: grid;
10
- place-content: start center;
11
- place-items: start center;
12
-
13
- .loading {
14
- width: 100%;
15
- height: 30px;
16
- display: grid;
17
- place-content: center;
18
-
19
- &--icon {
20
- animation: spin 0.5s linear infinite;
21
- font-size: 20px;
22
- }
23
- }
24
-
25
- .empty-message {
26
- font-size: 0.8em;
27
- text-align: center;
28
- color: #a6a6a6;
29
- }
30
- `;
@@ -1,53 +0,0 @@
1
- import { LegacyRef, RefObject, useEffect } from 'react';
2
-
3
- import { Icon } from '../icon';
4
-
5
- import { InfinityScrollFooterStyle } from './infinity-scroll.style';
6
-
7
- import { useDebounce, useInView } from '@polpo/hooks';
8
-
9
- export type InfinityScrollProps = {
10
- isLoading: boolean;
11
- hasNextPage: boolean;
12
- loadMore: () => void;
13
- customLoadMoreElement?: (ref: RefObject<Element>) => React.ReactNode;
14
- emptyMessage?: string;
15
- children?: React.ReactNode;
16
- };
17
-
18
- export const InfinityScroll = ({
19
- isLoading: isLoadingProp = false,
20
- hasNextPage = false,
21
- loadMore,
22
- customLoadMoreElement,
23
- emptyMessage,
24
- children,
25
- }: InfinityScrollProps): React.ReactElement => {
26
- const { ref, inView } = useInView();
27
- const isLoading = useDebounce(isLoadingProp, 100);
28
-
29
- useEffect(() => {
30
- if (hasNextPage && inView && !isLoading) {
31
- loadMore();
32
- }
33
- }, [hasNextPage, isLoading, loadMore, inView]);
34
-
35
- const childrenExists = Array.isArray(children) ? children.length > 0 : Boolean(children);
36
-
37
- return (
38
- <>
39
- {children}
40
- <InfinityScrollFooterStyle>
41
- {Boolean(emptyMessage) && !childrenExists && !isLoading && <p className='empty-message'>{emptyMessage}</p>}
42
- {(hasNextPage || isLoading) &&
43
- (customLoadMoreElement ? (
44
- customLoadMoreElement(ref)
45
- ) : (
46
- <section ref={ref as LegacyRef<HTMLElement>} className='loading'>
47
- {isLoading && <Icon name='spinner' className='loading--icon' />}
48
- </section>
49
- ))}
50
- </InfinityScrollFooterStyle>
51
- </>
52
- );
53
- };
@@ -1 +0,0 @@
1
- export * from './line';
@@ -1,66 +0,0 @@
1
- import { Grid } from '../../layouts';
2
- import { Typography } from '../typography';
3
-
4
- import { Line, LineOrientation, LineStyle } from './line';
5
-
6
- import type { Meta, StoryObj } from '@storybook/react';
7
-
8
- const meta: Meta<typeof Line> = {
9
- title: 'Line',
10
- component: Line,
11
- argTypes: {
12
- orientation: { control: false },
13
- className: { control: false },
14
- style: { control: false },
15
- color: { control: 'color' },
16
- lineStyle: { control: false },
17
- lineWidth: { control: { type: 'range', min: 1, max: 10 }, if: { arg: 'lineStyle', neq: LineStyle.DOTTED } },
18
- dotSize: { control: { type: 'range', min: 1, max: 100 }, if: { arg: 'lineStyle', eq: LineStyle.DOTTED } },
19
- dashedSize: { control: { type: 'range', min: 1, max: 100 }, if: { arg: 'lineStyle', eq: LineStyle.DASHED } },
20
- spacing: { control: { type: 'range', min: 1, max: 100 }, if: { arg: 'lineStyle', neq: LineStyle.SOLID } },
21
- },
22
- args: {
23
- color: 'currentColor',
24
- },
25
- decorators: [
26
- (Story, { args }) => (
27
- <Grid ac='start' gtr='auto 1fr auto auto' gap='0.5em' style={{ width: '300px', height: '300px' }}>
28
- <Typography variant='small' noPadding>
29
- Vertical
30
- </Typography>
31
- <Story args={{ ...args, orientation: LineOrientation.VERTICAL }} />
32
- <Typography variant='small' noPadding>
33
- Horizontal
34
- </Typography>
35
- <Story args={{ ...args, orientation: LineOrientation.HORIZONTAL }} />
36
- </Grid>
37
- ),
38
- ],
39
- };
40
-
41
- export default meta;
42
- type Story = StoryObj<typeof Line>;
43
-
44
- export const Solid: Story = {
45
- args: {
46
- lineStyle: LineStyle.SOLID,
47
- lineWidth: 1,
48
- },
49
- };
50
-
51
- export const Dotted: Story = {
52
- args: {
53
- lineStyle: LineStyle.DOTTED,
54
- dotSize: 2,
55
- spacing: 5,
56
- },
57
- };
58
-
59
- export const Dashed: Story = {
60
- args: {
61
- lineStyle: LineStyle.DASHED,
62
- lineWidth: 2,
63
- dashedSize: 10,
64
- spacing: 15,
65
- },
66
- };
@@ -1,57 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
-
3
- export type LineStyleProps = {
4
- $color: string;
5
- $size: number;
6
- $spacing: number;
7
- $dashSize: number;
8
- };
9
-
10
- export const LineStyle = styled.span<LineStyleProps>`
11
- &.horizontal,
12
- &.vertical {
13
- background: ${props => props.$color ?? 'currentColor'};
14
- display: inline-block;
15
- border-radius: 100px;
16
- }
17
-
18
- &.horizontal {
19
- width: 100%;
20
- height: ${props => props.$size}px;
21
- ${({ $size: sz, $spacing: sp, $color: cl, $dashSize: ds }) => css`
22
- &.dotted {
23
- background: radial-gradient(${sz / 2}px ${sz / 2}px, ${cl} 100%, transparent) 0 0 / ${sp + sz}px 100%;
24
- }
25
-
26
- &.dashed {
27
- background: repeating-linear-gradient(
28
- 90deg,
29
- ${cl},
30
- ${cl} ${ds}px,
31
- transparent ${ds}px,
32
- transparent ${sp + ds}px
33
- );
34
- }
35
- `}
36
- }
37
-
38
- &.vertical {
39
- height: 100%;
40
- width: ${props => props.$size}px;
41
- ${({ $size: sz, $spacing: sp, $color: cl, $dashSize: ds }) => css`
42
- &.dotted {
43
- background: radial-gradient(${sz / 2}px ${sz / 2}px, ${cl} 100%, transparent) 0 0 / 100% ${sp + sz}px;
44
- }
45
-
46
- &.dashed {
47
- background: repeating-linear-gradient(
48
- 0deg,
49
- ${cl},
50
- ${cl} ${ds}px,
51
- transparent ${ds}px,
52
- transparent ${sp + ds}px
53
- );
54
- }
55
- `}
56
- }
57
- `;
@@ -1,76 +0,0 @@
1
- import { LineStyle as LineComponentStyle } from './line.style';
2
-
3
- import { useClassNames } from '@polpo/hooks';
4
-
5
- export enum LineOrientation {
6
- VERTICAL = 'vertical',
7
- HORIZONTAL = 'horizontal',
8
- }
9
-
10
- export enum LineStyle {
11
- SOLID = 'solid',
12
- DOTTED = 'dotted',
13
- DASHED = 'dashed',
14
- }
15
-
16
- type LineCommonProps = {
17
- orientation?: `${LineOrientation}`;
18
- className?: string;
19
- style?: React.CSSProperties;
20
- color?: string;
21
- };
22
-
23
- type LineSolidProps = LineCommonProps & {
24
- lineStyle?: `${LineStyle.SOLID}`;
25
- spacing?: never;
26
- dotSize?: never;
27
- dashedSize?: never;
28
- lineWidth?: number;
29
- };
30
-
31
- type LineDottedProps = LineCommonProps & {
32
- lineStyle: `${LineStyle.DOTTED}`;
33
- spacing?: number;
34
- dotSize?: number;
35
- dashedSize?: never;
36
- lineWidth?: never;
37
- };
38
-
39
- type LineDashedProps = LineCommonProps & {
40
- lineStyle: `${LineStyle.DASHED}`;
41
- spacing?: number;
42
- dotSize?: never;
43
- dashedSize?: number;
44
- lineWidth?: number;
45
- };
46
-
47
- type LineProps = LineSolidProps | LineDottedProps | LineDashedProps;
48
-
49
- export const Line = ({
50
- orientation = LineOrientation.HORIZONTAL,
51
- className = '',
52
- style = {},
53
- color = 'currentColor',
54
- lineWidth = 1,
55
- lineStyle = LineStyle.SOLID,
56
- dotSize = 1,
57
- dashedSize = 1,
58
- spacing = 1,
59
- }: LineProps) => {
60
- const classNames = useClassNames({
61
- [orientation]: true,
62
- [className]: !!className,
63
- [lineStyle]: true,
64
- });
65
-
66
- return (
67
- <LineComponentStyle
68
- className={classNames}
69
- style={style}
70
- $dashSize={dashedSize}
71
- $color={color}
72
- $size={lineStyle === LineStyle.DOTTED ? dotSize : lineWidth}
73
- $spacing={spacing}
74
- />
75
- );
76
- };
@@ -1,31 +0,0 @@
1
- export const Box1 = () => {
2
- return (
3
- <svg fill='currentColor' width='1em' height='1em' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>
4
- <rect x='1' y='1' rx='1' width='10' height='10'>
5
- <animate
6
- id='spinner_c7A9'
7
- begin='0;spinner_23zP.end'
8
- attributeName='x'
9
- dur='0.2s'
10
- values='1;13'
11
- fill='freeze'
12
- />
13
- <animate id='spinner_Acnw' begin='spinner_ZmWi.end' attributeName='y' dur='0.2s' values='1;13' fill='freeze' />
14
- <animate id='spinner_iIcm' begin='spinner_zfQN.end' attributeName='x' dur='0.2s' values='13;1' fill='freeze' />
15
- <animate id='spinner_WX4U' begin='spinner_rRAc.end' attributeName='y' dur='0.2s' values='13;1' fill='freeze' />
16
- </rect>
17
- <rect x='1' y='13' rx='1' width='10' height='10'>
18
- <animate id='spinner_YLx7' begin='spinner_c7A9.end' attributeName='y' dur='0.2s' values='13;1' fill='freeze' />
19
- <animate id='spinner_vwnJ' begin='spinner_Acnw.end' attributeName='x' dur='0.2s' values='1;13' fill='freeze' />
20
- <animate id='spinner_KQuy' begin='spinner_iIcm.end' attributeName='y' dur='0.2s' values='1;13' fill='freeze' />
21
- <animate id='spinner_arKy' begin='spinner_WX4U.end' attributeName='x' dur='0.2s' values='13;1' fill='freeze' />
22
- </rect>
23
- <rect x='13' y='13' rx='1' width='10' height='10'>
24
- <animate id='spinner_ZmWi' begin='spinner_YLx7.end' attributeName='x' dur='0.2s' values='13;1' fill='freeze' />
25
- <animate id='spinner_zfQN' begin='spinner_vwnJ.end' attributeName='y' dur='0.2s' values='13;1' fill='freeze' />
26
- <animate id='spinner_rRAc' begin='spinner_KQuy.end' attributeName='x' dur='0.2s' values='1;13' fill='freeze' />
27
- <animate id='spinner_23zP' begin='spinner_arKy.end' attributeName='y' dur='0.2s' values='1;13' fill='freeze' />
28
- </rect>
29
- </svg>
30
- );
31
- };
@@ -1,30 +0,0 @@
1
- export const Box2 = () => {
2
- return (
3
- <svg
4
- fill='currentColor'
5
- width='1em'
6
- height='1em'
7
- xmlns='http://www.w3.org/2000/svg'
8
- xmlSpace='preserve'
9
- id='cog9_1_'
10
- x={0}
11
- y={0}
12
- viewBox='0 0 36 36'
13
- >
14
- <style>
15
- {
16
- '@keyframes box5532-1{9.0909090909%,90.9090909091%{transform:translate(-12px,0)}18.1818181818%,27.2727272727%,81.8181818182%,to{transform:translate(0,0)}36.3636363636%,72.7272727273%{transform:translate(12px,0)}45.4545454545%,54.5454545455%,63.6363636364%{transform:translate(12px,12px)}}@keyframes box5532-2{27.2727272727%,9.0909090909%,to{transform:translate(0,0)}18.1818181818%,36.3636363636%{transform:translate(12px,0)}45.4545454545%,54.5454545455%,63.6363636364%,72.7272727273%{transform:translate(12px,12px)}81.8181818182%,90.9090909091%{transform:translate(0,12px)}}@keyframes box5532-3{18.1818181818%,36.3636363636%,45.4545454545%,54.5454545455%,63.6363636364%,72.7272727273%,9.0909090909%{transform:translate(-12px,0)}27.2727272727%,to{transform:translate(0,0)}81.8181818182%{transform:translate(-12px,-12px)}90.9090909091%{transform:translate(0,-12px)}}@keyframes box5532-4{18.1818181818%,9.0909090909%,90.9090909091%{transform:translate(-12px,0)}27.2727272727%,81.8181818182%{transform:translate(-12px,-12px)}36.3636363636%,54.5454545455%,63.6363636364%,72.7272727273%{transform:translate(0,-12px)}45.4545454545%,to{transform:translate(0,0)}}@keyframes box5532-5{18.1818181818%,27.2727272727%,9.0909090909%,to{transform:translate(0,0)}36.3636363636%,45.4545454545%,54.5454545455%,63.6363636364%,72.7272727273%{transform:translate(12px,0)}81.8181818182%{transform:translate(12px,-12px)}90.9090909091%{transform:translate(0,-12px)}}@keyframes box5532-6{36.3636363636%,45.4545454545%,54.5454545455%,63.6363636364%,9.0909090909%,to{transform:translate(0,0)}18.1818181818%,27.2727272727%,90.9090909091%{transform:translate(-12px,0)}72.7272727273%{transform:translate(0,12px)}81.8181818182%{transform:translate(-12px,12px)}}@keyframes box5532-7{18.1818181818%,27.2727272727%,9.0909090909%,90.9090909091%{transform:translate(12px,0)}36.3636363636%,81.8181818182%,to{transform:translate(0,0)}45.4545454545%,63.6363636364%,72.7272727273%{transform:translate(0,-12px)}54.5454545455%{transform:translate(12px,-12px)}}@keyframes box5532-8{9.0909090909%,to{transform:translate(0,0)}18.1818181818%{transform:translate(-12px,0)}27.2727272727%{transform:translate(-12px,-12px)}36.3636363636%,45.4545454545%,54.5454545455%,63.6363636364%,72.7272727273%{transform:translate(0,-12px)}81.8181818182%{transform:translate(12px,-12px)}90.9090909091%{transform:translate(12px,0)}}@keyframes box5532-9{18.1818181818%,36.3636363636%,63.6363636364%,72.7272727273%,9.0909090909%,90.9090909091%{transform:translate(-12px,0)}27.2727272727%,45.4545454545%,54.5454545455%,to{transform:translate(0,0)}81.8181818182%{transform:translate(-24px,0)}}.box5532{fill:currentColor;transform-origin:50% 50%}.box5532:nth-child(1){animation:box5532-1 4s infinite}.box5532:nth-child(2){animation:box5532-2 4s infinite}.box5532:nth-child(3){animation:box5532-3 4s infinite}.box5532:nth-child(4){animation:box5532-4 4s infinite}.box5532:nth-child(5){animation:box5532-5 4s infinite}.box5532:nth-child(6){animation:box5532-6 4s infinite}.box5532:nth-child(7){animation:box5532-7 4s infinite}.box5532:nth-child(8){animation:box5532-8 4s infinite}.box5532:nth-child(9){animation:box5532-9 4s infinite}'
17
- }
18
- </style>
19
- <rect width={10} height={10} x={13} y={1} className='box5532' rx={1} />
20
- <rect width={10} height={10} x={13} y={1} className='box5532' rx={1} />
21
- <rect width={10} height={10} x={25} y={25} className='box5532' rx={1} />
22
- <rect width={10} height={10} x={13} y={13} className='box5532' rx={1} />
23
- <rect width={10} height={10} x={13} y={13} className='box5532' rx={1} />
24
- <rect width={10} height={10} x={25} y={13} className='box5532' rx={1} />
25
- <rect width={10} height={10} x={1} y={25} className='box5532' rx={1} />
26
- <rect width={10} height={10} x={13} y={25} className='box5532' rx={1} />
27
- <rect width={10} height={10} x={25} y={25} className='box5532' rx={1} />
28
- </svg>
29
- );
30
- };
@@ -1,66 +0,0 @@
1
- export const Box3 = () => {
2
- return (
3
- <svg fill='currentColor' width='1em' height='1em' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>
4
- <rect x='1' y='1' width='7.33' height='7.33'>
5
- <animate id='spinner_oJFS' begin='0;spinner_5T1J.end+0.2s' attributeName='x' dur='0.6s' values='1;4;1' />
6
- <animate begin='0;spinner_5T1J.end+0.2s' attributeName='y' dur='0.6s' values='1;4;1' />
7
- <animate begin='0;spinner_5T1J.end+0.2s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
8
- <animate begin='0;spinner_5T1J.end+0.2s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
9
- </rect>
10
- <rect x='8.33' y='1' width='7.33' height='7.33'>
11
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='x' dur='0.6s' values='8.33;11.33;8.33' />
12
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='y' dur='0.6s' values='1;4;1' />
13
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
14
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
15
- </rect>
16
- <rect x='1' y='8.33' width='7.33' height='7.33'>
17
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='x' dur='0.6s' values='1;4;1' />
18
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='y' dur='0.6s' values='8.33;11.33;8.33' />
19
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
20
- <animate begin='spinner_oJFS.begin+0.1s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
21
- </rect>
22
- <rect x='15.66' y='1' width='7.33' height='7.33'>
23
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='x' dur='0.6s' values='15.66;18.66;15.66' />
24
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='y' dur='0.6s' values='1;4;1' />
25
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
26
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
27
- </rect>
28
- <rect x='8.33' y='8.33' width='7.33' height='7.33'>
29
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='x' dur='0.6s' values='8.33;11.33;8.33' />
30
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='y' dur='0.6s' values='8.33;11.33;8.33' />
31
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
32
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
33
- </rect>
34
- <rect x='1' y='15.66' width='7.33' height='7.33'>
35
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='x' dur='0.6s' values='1;4;1' />
36
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='y' dur='0.6s' values='15.66;18.66;15.66' />
37
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
38
- <animate begin='spinner_oJFS.begin+0.2s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
39
- </rect>
40
- <rect x='15.66' y='8.33' width='7.33' height='7.33'>
41
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='x' dur='0.6s' values='15.66;18.66;15.66' />
42
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='y' dur='0.6s' values='8.33;11.33;8.33' />
43
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
44
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
45
- </rect>
46
- <rect x='8.33' y='15.66' width='7.33' height='7.33'>
47
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='x' dur='0.6s' values='8.33;11.33;8.33' />
48
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='y' dur='0.6s' values='15.66;18.66;15.66' />
49
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
50
- <animate begin='spinner_oJFS.begin+0.3s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
51
- </rect>
52
- <rect x='15.66' y='15.66' width='7.33' height='7.33'>
53
- <animate
54
- id='spinner_5T1J'
55
- begin='spinner_oJFS.begin+0.4s'
56
- attributeName='x'
57
- dur='0.6s'
58
- values='15.66;18.66;15.66'
59
- />
60
- <animate begin='spinner_oJFS.begin+0.4s' attributeName='y' dur='0.6s' values='15.66;18.66;15.66' />
61
- <animate begin='spinner_oJFS.begin+0.4s' attributeName='width' dur='0.6s' values='7.33;1.33;7.33' />
62
- <animate begin='spinner_oJFS.begin+0.4s' attributeName='height' dur='0.6s' values='7.33;1.33;7.33' />
63
- </rect>
64
- </svg>
65
- );
66
- };
@@ -1,25 +0,0 @@
1
- export const Clock1 = () => {
2
- return (
3
- <svg fill='currentColor' width='1em' height='1em' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>
4
- <path d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z' />
5
- <rect x='11' y='6' rx='1' width='2' height='7'>
6
- <animateTransform
7
- attributeName='transform'
8
- type='rotate'
9
- dur='9s'
10
- values='0 12 12;360 12 12'
11
- repeatCount='indefinite'
12
- />
13
- </rect>
14
- <rect x='11' y='11' rx='1' width='2' height='9'>
15
- <animateTransform
16
- attributeName='transform'
17
- type='rotate'
18
- dur='0.75s'
19
- values='0 12 12;360 12 12'
20
- repeatCount='indefinite'
21
- />
22
- </rect>
23
- </svg>
24
- );
25
- };