@wazobiatech/wazui 0.0.3 → 0.0.5
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.
- package/package.json +3 -3
- package/src/assets/dashboard/book.svg +6 -0
- package/src/assets/dashboard/edit.svg +5 -0
- package/src/assets/dashboard/emerald.svg +9 -0
- package/src/assets/dashboard/eye.svg +4 -0
- package/src/assets/dashboard/gold.svg +9 -0
- package/src/assets/dashboard/percentage-square.svg +6 -0
- package/src/assets/dashboard/sapphire.svg +9 -0
- package/src/assets/dashboard/send-2.svg +4 -0
- package/src/assets/desktop.svg +7 -0
- package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.otf +0 -0
- package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.woff +0 -0
- package/src/assets/fonts/UniversalFeature/FeatureJungle-Light.woff2 +0 -0
- package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.otf +0 -0
- package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.woff +0 -0
- package/src/assets/fonts/UniversalFeature/FeatureJungle-Regular.woff2 +0 -0
- package/src/assets/fonts/UniversalJungle/UniversalJungle-420.otf +0 -0
- package/src/assets/fonts/UniversalJungle/UniversalJungle-420.woff +0 -0
- package/src/assets/fonts/UniversalJungle/UniversalJungle-420.woff2 +0 -0
- package/src/assets/fonts/UniversalJungle/UniversalJungle-515.otf +0 -0
- package/src/assets/fonts/UniversalJungle/UniversalJungle-515.woff +0 -0
- package/src/assets/fonts/UniversalJungle/UniversalJungle-515.woff2 +0 -0
- package/src/assets/instagram.svg +9 -0
- package/src/assets/mobile.svg +4 -0
- package/src/assets/no-data-image.svg +41 -0
- package/src/assets/no-image-icon.svg +84 -0
- package/src/assets/pexels.svg +9 -0
- package/src/assets/react.svg +1 -0
- package/src/assets/sounds/draft.mp3 +0 -0
- package/src/assets/sounds/error.mp3 +0 -0
- package/src/assets/sounds/publish.mp3 +0 -0
- package/src/assets/tablet.svg +4 -0
- package/src/assets/unsplash.svg +3 -0
- package/src/assets/upload-image.svg +43 -0
- package/src/assets/user.svg +4 -0
- package/src/components/shadcn/index.ts +31 -0
- package/src/config/env.ts +15 -0
- package/src/contexts/ThemeContext.tsx +11 -0
- package/src/data/users.json +6014 -0
- package/src/decorators/ActionModalDecorator.tsx +10 -0
- package/src/decorators/ApolloDecorator.tsx +19 -0
- package/src/decorators/DolosApolloDecorator.tsx +31 -0
- package/src/decorators/JestDecorators.tsx +34 -0
- package/src/decorators/ReactQueryDecorator.tsx +13 -0
- package/src/decorators/RouterDecorator.tsx +5 -0
- package/src/decorators/UnsafePropsDecorator.tsx +0 -0
- package/src/env.ts +99 -0
- package/src/hooks/use-autogrow.ts +28 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/useAuthors.ts +78 -0
- package/src/hooks/useDebounce.ts +18 -0
- package/src/hooks/useMercuryProjectToken.ts +112 -0
- package/src/hooks/useProjectToken.ts +21 -0
- package/src/hooks/useTheme.ts +12 -0
- package/src/index.css +397 -0
- package/src/index.ts +62 -0
- package/src/mocks/env.ts +12 -0
- package/src/providers/QueryProvider/index.tsx +10 -0
- package/src/providers/ThemeProvider/index.tsx +52 -0
- package/src/types/category.types.ts +13 -0
- package/src/types/image.types.ts +44 -0
- package/src/types/post.types.ts +121 -0
- package/src/types/theme.types.ts +10 -0
- package/src/types/users.types.ts +5 -0
- package/src/utils/apolloClient.ts +160 -0
- package/src/utils/articleMetadata.ts +92 -0
- package/src/utils/audio.ts +10 -0
- package/src/utils/imageProcessing.ts +399 -0
- package/src/utils/images.ts +279 -0
- package/src/utils/mercury.ts +0 -0
- package/src/utils/utils.ts +638 -0
- package/src/utils/videos.ts +29 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './ui/alert';
|
|
2
|
+
export * from './ui/badge';
|
|
3
|
+
export * from './ui/breadcrumb';
|
|
4
|
+
export * from './ui/button';
|
|
5
|
+
export * from './ui/calendar';
|
|
6
|
+
export * from './ui/card';
|
|
7
|
+
export * from './ui/checkbox';
|
|
8
|
+
export * from './ui/collapsible';
|
|
9
|
+
export * from './ui/command';
|
|
10
|
+
export * from './ui/context-menu';
|
|
11
|
+
export * from './ui/dialog';
|
|
12
|
+
export * from './ui/dropdown-menu';
|
|
13
|
+
export * from './ui/form';
|
|
14
|
+
export * from './ui/input';
|
|
15
|
+
export * from './ui/label';
|
|
16
|
+
export * from './ui/popover';
|
|
17
|
+
// export * from './ui/progress';
|
|
18
|
+
export * from './ui/radio-group';
|
|
19
|
+
export * from './ui/select';
|
|
20
|
+
export * from './ui/separator';
|
|
21
|
+
export * from './ui/sheet';
|
|
22
|
+
export * from './ui/sidebar';
|
|
23
|
+
export * from './ui/skeleton';
|
|
24
|
+
export * from './ui/switch';
|
|
25
|
+
export * from './ui/table';
|
|
26
|
+
export * from './ui/tabs';
|
|
27
|
+
export * from './ui/textarea';
|
|
28
|
+
export * from './ui/toggle-group';
|
|
29
|
+
export * from './ui/toggle';
|
|
30
|
+
export * from './ui/tooltip';
|
|
31
|
+
export * from './ui/sonner';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
const configSchema = z.object({
|
|
4
|
+
VITE_API_URL: z.string(),
|
|
5
|
+
VITE_APP_TITLE: z.string(),
|
|
6
|
+
VITE_APP_DESCRIPTION: z.string(),
|
|
7
|
+
VITE_APP_URL: z.string(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const config = configSchema.parse(import.meta.env);
|
|
11
|
+
|
|
12
|
+
export const apiUrl = config.VITE_API_URL;
|
|
13
|
+
export const appTitle = config.VITE_APP_TITLE;
|
|
14
|
+
export const appDescription = config.VITE_APP_DESCRIPTION;
|
|
15
|
+
export const appiUrl = config.VITE_APP_URL;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { ThemeProviderState } from '@/types/theme.types';
|
|
3
|
+
import { createContext } from 'react';
|
|
4
|
+
|
|
5
|
+
const initialState: ThemeProviderState = {
|
|
6
|
+
theme: 'system',
|
|
7
|
+
setTheme: () => null,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const ThemeContext = createContext<ThemeProviderState>(initialState);
|
|
11
|
+
export default ThemeContext;
|