@wazobiatech/wazui 0.0.2 → 0.0.4

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 (73) hide show
  1. package/package.json +3 -3
  2. package/src/assets/dashboard/book.svg +6 -0
  3. package/src/assets/dashboard/edit.svg +5 -0
  4. package/src/assets/dashboard/emerald.svg +9 -0
  5. package/src/assets/dashboard/eye.svg +4 -0
  6. package/src/assets/dashboard/gold.svg +9 -0
  7. package/src/assets/dashboard/percentage-square.svg +6 -0
  8. package/src/assets/dashboard/sapphire.svg +9 -0
  9. package/src/assets/dashboard/send-2.svg +4 -0
  10. package/src/assets/desktop.svg +7 -0
  11. package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.otf +0 -0
  12. package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.woff +0 -0
  13. package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.woff2 +0 -0
  14. package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.otf +0 -0
  15. package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.woff +0 -0
  16. package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.woff2 +0 -0
  17. package/src/assets/fonts/UniversalJungle/UniversalJungle-420.otf +0 -0
  18. package/src/assets/fonts/UniversalJungle/UniversalJungle-420.woff +0 -0
  19. package/src/assets/fonts/UniversalJungle/UniversalJungle-420.woff2 +0 -0
  20. package/src/assets/fonts/UniversalJungle/UniversalJungle-515.otf +0 -0
  21. package/src/assets/fonts/UniversalJungle/UniversalJungle-515.woff +0 -0
  22. package/src/assets/fonts/UniversalJungle/UniversalJungle-515.woff2 +0 -0
  23. package/src/assets/instagram.svg +9 -0
  24. package/src/assets/mobile.svg +4 -0
  25. package/src/assets/no-data-image.svg +41 -0
  26. package/src/assets/no-image-icon.svg +84 -0
  27. package/src/assets/pexels.svg +9 -0
  28. package/src/assets/react.svg +1 -0
  29. package/src/assets/sounds/draft.mp3 +0 -0
  30. package/src/assets/sounds/error.mp3 +0 -0
  31. package/src/assets/sounds/publish.mp3 +0 -0
  32. package/src/assets/tablet.svg +4 -0
  33. package/src/assets/unsplash.svg +3 -0
  34. package/src/assets/upload-image.svg +43 -0
  35. package/src/assets/user.svg +4 -0
  36. package/src/components/shadcn/index.ts +31 -0
  37. package/src/config/env.ts +15 -0
  38. package/src/contexts/ThemeContext.tsx +11 -0
  39. package/src/data/users.json +6014 -0
  40. package/src/decorators/ActionModalDecorator.tsx +10 -0
  41. package/src/decorators/ApolloDecorator.tsx +19 -0
  42. package/src/decorators/DolosApolloDecorator.tsx +31 -0
  43. package/src/decorators/JestDecorators.tsx +34 -0
  44. package/src/decorators/ReactQueryDecorator.tsx +13 -0
  45. package/src/decorators/RouterDecorator.tsx +5 -0
  46. package/src/decorators/UnsafePropsDecorator.tsx +0 -0
  47. package/src/env.ts +99 -0
  48. package/src/hooks/use-autogrow.ts +28 -0
  49. package/src/hooks/use-mobile.ts +19 -0
  50. package/src/hooks/useAuthors.ts +78 -0
  51. package/src/hooks/useDebounce.ts +18 -0
  52. package/src/hooks/useMercuryProjectToken.ts +112 -0
  53. package/src/hooks/useProjectToken.ts +21 -0
  54. package/src/hooks/useTheme.ts +12 -0
  55. package/src/index.css +397 -0
  56. package/src/index.ts +62 -0
  57. package/src/mocks/env.ts +12 -0
  58. package/src/providers/QueryProvider/index.tsx +10 -0
  59. package/src/providers/ThemeProvider/index.tsx +52 -0
  60. package/src/types/category.types.ts +13 -0
  61. package/src/types/image.types.ts +44 -0
  62. package/src/types/post.types.ts +121 -0
  63. package/src/types/theme.types.ts +10 -0
  64. package/src/types/users.types.ts +5 -0
  65. package/src/utils/apolloClient.ts +160 -0
  66. package/src/utils/articleMetadata.ts +92 -0
  67. package/src/utils/audio.ts +10 -0
  68. package/src/utils/imageProcessing.ts +399 -0
  69. package/src/utils/images.ts +279 -0
  70. package/src/utils/mercury.ts +0 -0
  71. package/src/utils/utils.ts +638 -0
  72. package/src/utils/videos.ts +29 -0
  73. package/src/vite-env.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wazobiatech/wazui",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "description": "`@repo/wazui` is a React component library that provides a set of reusable UI components, hooks, and providers for building modern web applications. It is built with TypeScript, Tailwind CSS, and integrates Shadcn UI components.",
6
6
  "homepage": "https://bitbucket.org/wazobiatech/wazui#readme",
@@ -15,9 +15,9 @@
15
15
  "author": "",
16
16
  "type": "module",
17
17
  "exports": {
18
- "./shadcn": "./src/components/shadcn/index.ts",
18
+ "./shadcn": "./dist/components/shadcn/index.ts",
19
19
  "./styles.css": "./dist/styles.css",
20
- ".": "./src/index.ts"
20
+ ".": "./dist/index.ts"
21
21
  },
22
22
  "main": "index.js",
23
23
  "scripts": {
@@ -0,0 +1,6 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.3332 13.9501V3.89174C18.3332 2.89174 17.5165 2.15008 16.5248 2.23341H16.4748C14.7248 2.38341 12.0665 3.27508 10.5832 4.20841L10.4415 4.30008C10.1998 4.45008 9.79984 4.45008 9.55817 4.30008L9.34984 4.17508C7.8665 3.25008 5.2165 2.36674 3.4665 2.22508C2.47484 2.14174 1.6665 2.89174 1.6665 3.88341V13.9501C1.6665 14.7501 2.3165 15.5001 3.1165 15.6001L3.35817 15.6334C5.1665 15.8751 7.95817 16.7917 9.55817 17.6667L9.5915 17.6834C9.8165 17.8084 10.1748 17.8084 10.3915 17.6834C11.9915 16.8001 14.7915 15.8751 16.6082 15.6334L16.8832 15.6001C17.6832 15.5001 18.3332 14.7501 18.3332 13.9501Z" stroke="#6574FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M10 4.57422V17.0742" stroke="#6574FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M6.4585 7.07422H4.5835" stroke="#6574FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M7.0835 9.57422H4.5835" stroke="#6574FF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.1665 1.66602H7.49984C3.33317 1.66602 1.6665 3.33268 1.6665 7.49935V12.4993C1.6665 16.666 3.33317 18.3327 7.49984 18.3327H12.4998C16.6665 18.3327 18.3332 16.666 18.3332 12.4993V10.8327" stroke="#208B02" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M13.3666 2.51639L6.7999 9.08306C6.5499 9.33306 6.2999 9.82472 6.2499 10.1831L5.89157 12.6914C5.75823 13.5997 6.3999 14.2331 7.30823 14.1081L9.81657 13.7497C10.1666 13.6997 10.6582 13.4497 10.9166 13.1997L17.4832 6.63306C18.6166 5.49972 19.1499 4.18306 17.4832 2.51639C15.8166 0.849722 14.4999 1.38306 13.3666 2.51639Z" stroke="#208B02" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M12.4248 3.45898C12.9831 5.45065 14.5415 7.00898 16.5415 7.57565" stroke="#208B02" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>