ziya-uikit 0.0.1
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/dist/Provider.d.ts +2 -0
- package/dist/Provider.js +6 -0
- package/dist/components/NotFound.d.ts +1 -0
- package/dist/components/NotFound.js +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +10 -0
- package/package.json +29 -0
- package/src/Provider.tsx +7 -0
- package/src/components/NotFound.tsx +54 -0
- package/src/components/index.ts +1 -0
- package/src/index.ts +5 -0
- package/src/theme.ts +11 -0
- package/tsconfig.json +15 -0
package/dist/Provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function NotFound(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Button, Heading, Text, VStack, useColorModeValue } from "@chakra-ui/react";
|
|
3
|
+
export function NotFound() {
|
|
4
|
+
const bg = useColorModeValue("gray.50", "gray.900");
|
|
5
|
+
const card = useColorModeValue("white", "whiteAlpha.100");
|
|
6
|
+
const border = useColorModeValue("blackAlpha.200", "whiteAlpha.200");
|
|
7
|
+
return (_jsx(Box, { minH: "100vh", bg: bg, display: "grid", placeItems: "center", p: 6, children: _jsxs(VStack, { spacing: 4, textAlign: "center", bg: card, border: "1px solid", borderColor: border, borderRadius: "2xl", p: 8, maxW: "420px", w: "full", boxShadow: "lg", children: [_jsx(Box, { w: "160px", h: "160px", children: _jsxs("svg", { viewBox: "0 0 200 200", width: "100%", height: "100%", children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "g", x1: "0", x2: "1", children: [_jsx("stop", { offset: "0", stopColor: "#805AD5" }), _jsx("stop", { offset: "1", stopColor: "#3182CE" })] }) }), _jsx("circle", { cx: "100", cy: "100", r: "78", fill: "url(#g)", opacity: "0.15" }), _jsx("circle", { cx: "100", cy: "92", r: "46", fill: "#111827", opacity: "0.9" }), _jsx("circle", { cx: "82", cy: "86", r: "6", fill: "#fff", opacity: "0.9" }), _jsx("circle", { cx: "118", cy: "86", r: "6", fill: "#fff", opacity: "0.9" }), _jsx("path", { d: "M78 110 Q100 130 122 110", fill: "none", stroke: "#fff", strokeWidth: "6", strokeLinecap: "round" }), _jsx("path", { d: "M40 150 Q100 175 160 150", fill: "none", stroke: "url(#g)", strokeWidth: "10", strokeLinecap: "round" }), _jsx("text", { x: "100", y: "55", textAnchor: "middle", fontSize: "20", fill: "#805AD5", fontFamily: "ui-sans-serif", children: "404" })] }) }), _jsx(Heading, { size: "lg", children: "Page not found" }), _jsx(Text, { color: useColorModeValue("gray.600", "gray.300"), children: "Looks like this link took a wrong turn. Try going back home." }), _jsx(Button, { colorScheme: "purple", onClick: () => (window.location.href = "/"), children: "Go Home" })] }) }));
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NotFound";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NotFound";
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/theme.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const theme: Record<string, any>;
|
package/dist/theme.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ziya-uikit",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"react": "^18",
|
|
15
|
+
"react-dom": "^18"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@chakra-ui/react": "^2.10.7",
|
|
19
|
+
"@emotion/react": "^11.13.3",
|
|
20
|
+
"@emotion/styled": "^11.13.0",
|
|
21
|
+
"framer-motion": "^11.0.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"typescript": "^5.9.3"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc -p tsconfig.json"
|
|
28
|
+
}
|
|
29
|
+
}
|
package/src/Provider.tsx
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChakraProvider } from "@chakra-ui/react";
|
|
3
|
+
import { theme } from "./theme";
|
|
4
|
+
|
|
5
|
+
export const ZiyaThemeProvider: React.FC<React.PropsWithChildren> = ({ children }) => {
|
|
6
|
+
return <ChakraProvider theme={theme}>{children}</ChakraProvider>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box, Button, Heading, Text, VStack, useColorModeValue } from "@chakra-ui/react";
|
|
3
|
+
|
|
4
|
+
export function NotFound() {
|
|
5
|
+
const bg = useColorModeValue("gray.50", "gray.900");
|
|
6
|
+
const card = useColorModeValue("white", "whiteAlpha.100");
|
|
7
|
+
const border = useColorModeValue("blackAlpha.200", "whiteAlpha.200");
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<Box minH="100vh" bg={bg} display="grid" placeItems="center" p={6}>
|
|
11
|
+
<VStack
|
|
12
|
+
spacing={4}
|
|
13
|
+
textAlign="center"
|
|
14
|
+
bg={card}
|
|
15
|
+
border="1px solid"
|
|
16
|
+
borderColor={border}
|
|
17
|
+
borderRadius="2xl"
|
|
18
|
+
p={8}
|
|
19
|
+
maxW="420px"
|
|
20
|
+
w="full"
|
|
21
|
+
boxShadow="lg"
|
|
22
|
+
>
|
|
23
|
+
<Box w="160px" h="160px">
|
|
24
|
+
<svg viewBox="0 0 200 200" width="100%" height="100%">
|
|
25
|
+
<defs>
|
|
26
|
+
<linearGradient id="g" x1="0" x2="1">
|
|
27
|
+
<stop offset="0" stopColor="#805AD5" />
|
|
28
|
+
<stop offset="1" stopColor="#3182CE" />
|
|
29
|
+
</linearGradient>
|
|
30
|
+
</defs>
|
|
31
|
+
<circle cx="100" cy="100" r="78" fill="url(#g)" opacity="0.15" />
|
|
32
|
+
<circle cx="100" cy="92" r="46" fill="#111827" opacity="0.9" />
|
|
33
|
+
<circle cx="82" cy="86" r="6" fill="#fff" opacity="0.9" />
|
|
34
|
+
<circle cx="118" cy="86" r="6" fill="#fff" opacity="0.9" />
|
|
35
|
+
<path d="M78 110 Q100 130 122 110" fill="none" stroke="#fff" strokeWidth="6" strokeLinecap="round" />
|
|
36
|
+
<path d="M40 150 Q100 175 160 150" fill="none" stroke="url(#g)" strokeWidth="10" strokeLinecap="round" />
|
|
37
|
+
<text x="100" y="55" textAnchor="middle" fontSize="20" fill="#805AD5" fontFamily="ui-sans-serif">
|
|
38
|
+
404
|
|
39
|
+
</text>
|
|
40
|
+
</svg>
|
|
41
|
+
</Box>
|
|
42
|
+
|
|
43
|
+
<Heading size="lg">Page not found</Heading>
|
|
44
|
+
<Text color={useColorModeValue("gray.600", "gray.300")}>
|
|
45
|
+
Looks like this link took a wrong turn. Try going back home.
|
|
46
|
+
</Text>
|
|
47
|
+
|
|
48
|
+
<Button colorScheme="purple" onClick={() => (window.location.href = "/")}>
|
|
49
|
+
Go Home
|
|
50
|
+
</Button>
|
|
51
|
+
</VStack>
|
|
52
|
+
</Box>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NotFound";
|
package/src/index.ts
ADDED
package/src/theme.ts
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": false,
|
|
8
|
+
"emitDeclarationOnly": false,
|
|
9
|
+
"outDir": "dist",
|
|
10
|
+
"jsx": "react-jsx",
|
|
11
|
+
"strict": true,
|
|
12
|
+
"skipLibCheck": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src"]
|
|
15
|
+
}
|