@wazobiatech/wazui 0.0.5 → 0.0.7

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 (75) hide show
  1. package/README.md +3 -3
  2. package/USAGE.md +96 -0
  3. package/package.json +8 -4
  4. package/src/assets/dashboard/book.svg +0 -6
  5. package/src/assets/dashboard/edit.svg +0 -5
  6. package/src/assets/dashboard/emerald.svg +0 -9
  7. package/src/assets/dashboard/eye.svg +0 -4
  8. package/src/assets/dashboard/gold.svg +0 -9
  9. package/src/assets/dashboard/percentage-square.svg +0 -6
  10. package/src/assets/dashboard/sapphire.svg +0 -9
  11. package/src/assets/dashboard/send-2.svg +0 -4
  12. package/src/assets/desktop.svg +0 -7
  13. package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.otf +0 -0
  14. package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.woff +0 -0
  15. package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.woff2 +0 -0
  16. package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.otf +0 -0
  17. package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.woff +0 -0
  18. package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.woff2 +0 -0
  19. package/src/assets/fonts/UniversalJungle/UniversalJungle-420.otf +0 -0
  20. package/src/assets/fonts/UniversalJungle/UniversalJungle-420.woff +0 -0
  21. package/src/assets/fonts/UniversalJungle/UniversalJungle-420.woff2 +0 -0
  22. package/src/assets/fonts/UniversalJungle/UniversalJungle-515.otf +0 -0
  23. package/src/assets/fonts/UniversalJungle/UniversalJungle-515.woff +0 -0
  24. package/src/assets/fonts/UniversalJungle/UniversalJungle-515.woff2 +0 -0
  25. package/src/assets/instagram.svg +0 -9
  26. package/src/assets/mobile.svg +0 -4
  27. package/src/assets/no-data-image.svg +0 -41
  28. package/src/assets/no-image-icon.svg +0 -84
  29. package/src/assets/pexels.svg +0 -9
  30. package/src/assets/react.svg +0 -1
  31. package/src/assets/sounds/draft.mp3 +0 -0
  32. package/src/assets/sounds/error.mp3 +0 -0
  33. package/src/assets/sounds/publish.mp3 +0 -0
  34. package/src/assets/tablet.svg +0 -4
  35. package/src/assets/unsplash.svg +0 -3
  36. package/src/assets/upload-image.svg +0 -43
  37. package/src/assets/user.svg +0 -4
  38. package/src/components/shadcn/index.ts +0 -31
  39. package/src/config/env.ts +0 -15
  40. package/src/contexts/ThemeContext.tsx +0 -11
  41. package/src/data/users.json +0 -6014
  42. package/src/decorators/ActionModalDecorator.tsx +0 -10
  43. package/src/decorators/ApolloDecorator.tsx +0 -19
  44. package/src/decorators/DolosApolloDecorator.tsx +0 -31
  45. package/src/decorators/JestDecorators.tsx +0 -34
  46. package/src/decorators/ReactQueryDecorator.tsx +0 -13
  47. package/src/decorators/RouterDecorator.tsx +0 -5
  48. package/src/decorators/UnsafePropsDecorator.tsx +0 -0
  49. package/src/env.ts +0 -99
  50. package/src/hooks/use-autogrow.ts +0 -28
  51. package/src/hooks/use-mobile.ts +0 -19
  52. package/src/hooks/useAuthors.ts +0 -78
  53. package/src/hooks/useDebounce.ts +0 -18
  54. package/src/hooks/useMercuryProjectToken.ts +0 -112
  55. package/src/hooks/useProjectToken.ts +0 -21
  56. package/src/hooks/useTheme.ts +0 -12
  57. package/src/index.css +0 -397
  58. package/src/index.ts +0 -62
  59. package/src/mocks/env.ts +0 -12
  60. package/src/providers/QueryProvider/index.tsx +0 -10
  61. package/src/providers/ThemeProvider/index.tsx +0 -52
  62. package/src/types/category.types.ts +0 -13
  63. package/src/types/image.types.ts +0 -44
  64. package/src/types/post.types.ts +0 -121
  65. package/src/types/theme.types.ts +0 -10
  66. package/src/types/users.types.ts +0 -5
  67. package/src/utils/apolloClient.ts +0 -160
  68. package/src/utils/articleMetadata.ts +0 -92
  69. package/src/utils/audio.ts +0 -10
  70. package/src/utils/imageProcessing.ts +0 -399
  71. package/src/utils/images.ts +0 -279
  72. package/src/utils/mercury.ts +0 -0
  73. package/src/utils/utils.ts +0 -638
  74. package/src/utils/videos.ts +0 -29
  75. package/src/vite-env.d.ts +0 -1
package/README.md CHANGED
@@ -34,7 +34,7 @@ To use the Wazui component library, you need to have a React project set up.
34
34
  For the components to be styled correctly, import the CSS file into your main application file (e.g., `index.tsx` or `App.tsx`).
35
35
 
36
36
  ```tsx
37
- import '@repo/wazui/styles.css';
37
+ import '@wazobiatech/wazui/styles.css';
38
38
  ```
39
39
 
40
40
  ### 2. Set up Providers
@@ -46,8 +46,8 @@ The library includes providers for theme and data fetching. Wrap your applicatio
46
46
  import React from 'react';
47
47
  import ReactDOM from 'react-dom/client';
48
48
  import App from './App';
49
- import { WazUIThemeProvider, WazUIQueryProvider } from '@repo/wazui';
50
- import '@repo/wazui/styles.css';
49
+ import { WazUIThemeProvider, WazUIQueryProvider } from '@wazobiatech/wazui';
50
+ import '@wazobiatech/wazui/styles.css';
51
51
 
52
52
  ReactDOM.createRoot(document.getElementById('root')!).render(
53
53
  <React.StrictMode>
package/USAGE.md ADDED
@@ -0,0 +1,96 @@
1
+ # WazUI Usage Guide
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ npm install @wazobiatech/wazui
7
+ # or
8
+ yarn add @wazobiatech/wazui
9
+ ```
10
+
11
+ ## Importing Components
12
+
13
+ ### Shadcn UI Components
14
+
15
+ All shadcn UI components are now available from the main package export:
16
+
17
+ ```tsx
18
+ import { Button, Card, Badge, Alert, Input, Dialog } from '@wazobiatech/wazui';
19
+ // Import CSS
20
+ import '@wazobiatech/wazui/styles.css';
21
+
22
+ export function MyComponent() {
23
+ return (
24
+ <Card>
25
+ <CardHeader>
26
+ <CardTitle>Example Card</CardTitle>
27
+ </CardHeader>
28
+ <CardContent>
29
+ <p>This uses shadcn components from WazUI</p>
30
+ <Button variant='primary'>Click me</Button>
31
+ <Badge variant='secondary'>New</Badge>
32
+ </CardContent>
33
+ </Card>
34
+ );
35
+ }
36
+ ```
37
+
38
+ ### Available Shadcn Components
39
+
40
+ - Alert (Alert, AlertDescription, AlertTitle)
41
+ - Badge
42
+ - Breadcrumb (Breadcrumb, BreadcrumbItem, BreadcrumbLink, etc.)
43
+ - Button
44
+ - Calendar
45
+ - Card (Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle)
46
+ - Checkbox
47
+ - Collapsible (Collapsible, CollapsibleContent, CollapsibleTrigger)
48
+ - Command (Command, CommandDialog, CommandEmpty, etc.)
49
+ - ContextMenu (ContextMenu, ContextMenuContent, ContextMenuItem, etc.)
50
+ - Dialog (Dialog, DialogContent, DialogDescription, etc.)
51
+ - DropdownMenu (DropdownMenu, DropdownMenuContent, DropdownMenuItem, etc.)
52
+ - Form (Form, FormControl, FormDescription, etc.)
53
+ - Input
54
+ - Label
55
+ - Popover (Popover, PopoverContent, PopoverTrigger)
56
+ - RadioGroup (RadioGroup, RadioGroupItem)
57
+ - Select (Select, SelectContent, SelectItem, etc.)
58
+ - Separator
59
+ - Sheet (Sheet, SheetContent, SheetDescription, etc.)
60
+ - Sidebar (Sidebar, SidebarContent, SidebarProvider, etc.)
61
+ - Skeleton
62
+ - Switch
63
+ - ShadcnTable (TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow) _Note: Exported as `ShadcnTable` to avoid conflicts_
64
+ - Tabs (Tabs, TabsContent, TabsList, TabsTrigger)
65
+ - Textarea
66
+ - Toggle (Toggle, ToggleGroup, ToggleGroupItem)
67
+ - Tooltip (Tooltip, TooltipContent, TooltipProvider, TooltipTrigger)
68
+ - Toast (Toaster)
69
+
70
+ ### WazUI Custom Components
71
+
72
+ ```tsx
73
+ import {
74
+ WazUIButton,
75
+ WazUIBlogComponent,
76
+ WazUiPostCard,
77
+ WazUIThemeProvider,
78
+ WazUIQueryProvider,
79
+ } from '@wazobiatech/wazui';
80
+ ```
81
+
82
+ ## CSS Import
83
+
84
+ Always import the CSS file in your main application file:
85
+
86
+ ```tsx
87
+ import '@wazobiatech/wazui/styles.css';
88
+ ```
89
+
90
+ ## TypeScript Support
91
+
92
+ The library includes full TypeScript definitions. All components are properly typed.
93
+
94
+ ## Migration Note
95
+
96
+ Previously, shadcn components were available via `@wazobiatech/wazui/shadcn`. This export has been removed. All shadcn components are now available from the main package export for better tree-shaking and simpler imports.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wazobiatech/wazui",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
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,11 +15,15 @@
15
15
  "author": "",
16
16
  "type": "module",
17
17
  "exports": {
18
- "./shadcn": "./src/components/shadcn/index.ts",
19
18
  "./styles.css": "./dist/styles.css",
20
- ".": "./src/index.ts"
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "import": "./dist/index.js",
22
+ "require": "./dist/index.js"
23
+ }
21
24
  },
22
- "main": "index.js",
25
+ "main": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
23
27
  "scripts": {
24
28
  "dev": "storybook dev -p 6007 --no-open",
25
29
  "build": "node --max-old-space-size=16384 ./node_modules/.bin/vite build",
@@ -1,6 +0,0 @@
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>
@@ -1,5 +0,0 @@
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>