@sei-js/create-sei 1.0.0 → 2.0.0

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +5 -4
  3. package/dist/extensions/precompiles/src/components/default/index.tsx +44 -51
  4. package/dist/main.js +112 -34
  5. package/dist/templates/next-template/.env.example +2 -2
  6. package/dist/templates/next-template/.eslintrc.json +1 -3
  7. package/dist/templates/next-template/README.md +56 -32
  8. package/dist/templates/next-template/biome.json +17 -10
  9. package/dist/templates/next-template/gitignore +41 -0
  10. package/dist/templates/next-template/next.config.mjs +17 -1
  11. package/dist/templates/next-template/package.json +37 -26
  12. package/dist/templates/next-template/public/brand/powered-by-sei-light.png +0 -0
  13. package/dist/templates/next-template/public/brand/sei-lockup-light.svg +7 -0
  14. package/dist/templates/next-template/public/brand/sei-mark.png +0 -0
  15. package/dist/templates/next-template/src/app/development/page.tsx +29 -30
  16. package/dist/templates/next-template/src/app/favicon.ico/route.ts +3 -0
  17. package/dist/templates/next-template/src/app/globals.css +49 -10
  18. package/dist/templates/next-template/src/app/layout.tsx +14 -13
  19. package/dist/templates/next-template/src/app/page.tsx +3 -3
  20. package/dist/templates/next-template/src/app/resources/page.tsx +34 -51
  21. package/dist/templates/next-template/src/app/resources/resources.ts +19 -32
  22. package/dist/templates/next-template/src/components/default/examples.ts +4 -7
  23. package/dist/templates/next-template/src/components/default/index.tsx +46 -46
  24. package/dist/templates/next-template/src/components/index.ts +3 -3
  25. package/dist/templates/next-template/src/components/landing/index.tsx +19 -49
  26. package/dist/templates/next-template/src/components/providers/index.ts +1 -1
  27. package/dist/templates/next-template/src/components/providers/providers.tsx +39 -26
  28. package/dist/templates/next-template/src/components/shell/index.ts +1 -1
  29. package/dist/templates/next-template/src/components/shell/shell.tsx +34 -26
  30. package/dist/templates/next-template/src/theme.ts +1 -0
  31. package/dist/templates/next-template/tailwind.config.js +4 -16
  32. package/package.json +25 -9
  33. package/.rsyncignore +0 -13
  34. package/CHANGELOG.md +0 -114
  35. package/biome.json +0 -8
  36. package/dist/extensions/precompiles/package.json +0 -44
  37. package/dist/main.test.js +0 -34
  38. package/dist/templates/next-template/public/favicon.ico +0 -0
  39. package/extensions/precompiles/package.json +0 -44
  40. package/extensions/precompiles/src/components/default/index.tsx +0 -201
  41. package/jest.config.js +0 -14
  42. package/src/main.test.ts +0 -38
  43. package/src/main.ts +0 -159
  44. package/templates/next-template/.env.example +0 -8
  45. package/templates/next-template/.eslintrc.json +0 -3
  46. package/templates/next-template/.nvmrc +0 -1
  47. package/templates/next-template/README.md +0 -58
  48. package/templates/next-template/biome.json +0 -48
  49. package/templates/next-template/next-env.d.ts +0 -5
  50. package/templates/next-template/next.config.mjs +0 -4
  51. package/templates/next-template/package.json +0 -44
  52. package/templates/next-template/postcss.config.mjs +0 -6
  53. package/templates/next-template/public/favicon.ico +0 -0
  54. package/templates/next-template/src/app/development/page.tsx +0 -260
  55. package/templates/next-template/src/app/globals.css +0 -14
  56. package/templates/next-template/src/app/layout.tsx +0 -30
  57. package/templates/next-template/src/app/page.tsx +0 -10
  58. package/templates/next-template/src/app/resources/page.tsx +0 -175
  59. package/templates/next-template/src/app/resources/resources.ts +0 -56
  60. package/templates/next-template/src/components/default/examples.ts +0 -63
  61. package/templates/next-template/src/components/default/index.tsx +0 -402
  62. package/templates/next-template/src/components/index.ts +0 -3
  63. package/templates/next-template/src/components/landing/index.tsx +0 -107
  64. package/templates/next-template/src/components/providers/index.ts +0 -1
  65. package/templates/next-template/src/components/providers/providers.tsx +0 -89
  66. package/templates/next-template/src/components/shell/index.ts +0 -1
  67. package/templates/next-template/src/components/shell/shell.tsx +0 -87
  68. package/templates/next-template/tailwind.config.js +0 -17
  69. package/templates/next-template/tsconfig.json +0 -27
  70. package/tsconfig.json +0 -19
@@ -1,87 +0,0 @@
1
- 'use client';
2
-
3
- import { ActionIcon, AppShell, Container, Group } from '@mantine/core';
4
- import { ConnectButton } from '@rainbow-me/rainbowkit';
5
- import { IconBook, IconCode, IconLogout } from '@tabler/icons-react';
6
- import Link from 'next/link';
7
- import type { PropsWithChildren } from 'react';
8
- import { useAccount, useDisconnect } from 'wagmi';
9
-
10
- export default function Shell({ children }: PropsWithChildren) {
11
- const { address, isConnected } = useAccount();
12
- const { disconnect } = useDisconnect();
13
-
14
- return (
15
- <AppShell header={{ height: 64 }} padding="md">
16
- <AppShell.Header>
17
- <Container size="xl" h="100%">
18
- <Group justify="space-between" align="center" h="100%">
19
- <Link href="/" aria-label="Sei">
20
- <img src="https://cdn.sei.io/assets/sei-icon.svg" alt="Sei" style={{ height: 28, display: 'block' }} />
21
- </Link>
22
- <Group align="center" gap="md">
23
- <ActionIcon
24
- component={Link}
25
- href="/resources"
26
- variant="light"
27
- c="gray"
28
- size="lg"
29
- radius="md"
30
- aria-label="View Resources"
31
- style={{
32
- transition: 'all 0.2s ease',
33
- '&:hover': {
34
- transform: 'translateY(-1px)',
35
- boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
36
- },
37
- }}
38
- >
39
- <IconBook size={18} />
40
- </ActionIcon>
41
- <ActionIcon
42
- component={Link}
43
- href="/development"
44
- variant="light"
45
- c="gray"
46
- size="lg"
47
- radius="md"
48
- aria-label="View Development Guide"
49
- style={{
50
- transition: 'all 0.2s ease',
51
- '&:hover': {
52
- transform: 'translateY(-1px)',
53
- boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
54
- },
55
- }}
56
- >
57
- <IconCode size={18} />
58
- </ActionIcon>
59
- {isConnected && address ? (
60
- <ActionIcon
61
- variant="light"
62
- c="red"
63
- size="lg"
64
- radius="md"
65
- onClick={() => disconnect()}
66
- aria-label="Disconnect Wallet"
67
- style={{
68
- transition: 'all 0.2s ease',
69
- '&:hover': {
70
- transform: 'translateY(-1px)',
71
- boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
72
- },
73
- }}
74
- >
75
- <IconLogout size={18} />
76
- </ActionIcon>
77
- ) : (
78
- <ConnectButton showBalance={{ smallScreen: false, largeScreen: true }} />
79
- )}
80
- </Group>
81
- </Group>
82
- </Container>
83
- </AppShell.Header>
84
- <AppShell.Main>{children}</AppShell.Main>
85
- </AppShell>
86
- );
87
- }
@@ -1,17 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: [
4
- './src/pages/**/*.{js,ts,jsx,tsx,mdx}',
5
- './src/components/**/*.{js,ts,jsx,tsx,mdx}',
6
- './src/app/**/*.{js,ts,jsx,tsx,mdx}',
7
- ],
8
- theme: {
9
- extend: {
10
- colors: {
11
- 'sei-red': '#9E1F19',
12
- 'sei-dark': '#1a1a1a',
13
- },
14
- },
15
- },
16
- plugins: [],
17
- }
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["dom", "dom.iterable", "esnext"],
4
- "allowJs": true,
5
- "skipLibCheck": true,
6
- "strict": true,
7
- "noEmit": true,
8
- "esModuleInterop": true,
9
- "module": "esnext",
10
- "moduleResolution": "bundler",
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "jsx": "preserve",
14
- "incremental": true,
15
- "plugins": [
16
- {
17
- "name": "next"
18
- }
19
- ],
20
- "paths": {
21
- "@/*": ["./src/*"]
22
- },
23
- "target": "ES2017"
24
- },
25
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
26
- "exclude": ["node_modules"]
27
- }
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "exclude": ["node_modules", "dist", "test"],
4
- "compilerOptions": {
5
- "outDir": "./dist",
6
- "target": "ES2020",
7
- "useDefineForClassFields": true,
8
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
9
- "module": "ESNext",
10
- "skipLibCheck": true,
11
- "isolatedModules": true,
12
- "jsx": "react-jsx",
13
- "strict": true,
14
- "noUnusedLocals": true,
15
- "noUnusedParameters": true,
16
- "noFallthroughCasesInSwitch": true
17
- },
18
- "include": ["src"]
19
- }