@ardly/bunext 1.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.
- package/.eslintrc.json +8 -0
- package/.prettierignore +4 -0
- package/README.md +121 -0
- package/STRUCTURE.md +77 -0
- package/bin/cli.js +67 -0
- package/components.json +21 -0
- package/next.config.ts +22 -0
- package/package.json +59 -0
- package/postcss.config.mjs +8 -0
- package/prettier.config.js +7 -0
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/favicon.svg +1 -0
- package/public/loading-dots.gif +0 -0
- package/public/logo.svg +1 -0
- package/public/ogImage.webp +0 -0
- package/public/site.webmanifest +19 -0
- package/src/actions/placeholder.ts +30 -0
- package/src/actions/sampleAction.ts +39 -0
- package/src/app/(index)/intr/TestCard.tsx +31 -0
- package/src/app/(index)/intr/page.tsx +17 -0
- package/src/app/(index)/page.tsx +156 -0
- package/src/app/(index)/pagetr/page.tsx +37 -0
- package/src/app/error-wrapper.tsx +32 -0
- package/src/app/global-error.tsx +53 -0
- package/src/app/layout.tsx +56 -0
- package/src/app/loading.tsx +11 -0
- package/src/app/not-found.tsx +45 -0
- package/src/app/sitemap.ts +14 -0
- package/src/components/Providers/root-provider.tsx +22 -0
- package/src/components/Providers/theme-provider.tsx +27 -0
- package/src/components/TestComp.tsx +11 -0
- package/src/components/brand.tsx +35 -0
- package/src/components/navigation/footer.tsx +32 -0
- package/src/components/navigation/main-nav.tsx +55 -0
- package/src/components/navigation/mobile-nav.tsx +154 -0
- package/src/components/navigation/site-header.tsx +67 -0
- package/src/components/ui/avatar.tsx +50 -0
- package/src/components/ui/badge.tsx +36 -0
- package/src/components/ui/button.tsx +56 -0
- package/src/components/ui/card.tsx +79 -0
- package/src/components/ui/command.tsx +153 -0
- package/src/components/ui/dialog.tsx +122 -0
- package/src/components/ui/drawer.tsx +118 -0
- package/src/components/ui/dropdown-menu.tsx +200 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +26 -0
- package/src/components/ui/multi-select.tsx +380 -0
- package/src/components/ui/origin/multiselect.tsx +645 -0
- package/src/components/ui/popover.tsx +31 -0
- package/src/components/ui/radio-group.tsx +44 -0
- package/src/components/ui/separator.tsx +31 -0
- package/src/components/ui/skeleton.tsx +15 -0
- package/src/components/ui/themeSelector.tsx +157 -0
- package/src/components/ui/toast.tsx +129 -0
- package/src/components/ui/toaster.tsx +31 -0
- package/src/components/ui/tooltip.tsx +39 -0
- package/src/components/utils/ConditionalLink.tsx +46 -0
- package/src/components/utils/Image.tsx +57 -0
- package/src/components/utils/Img.tsx +104 -0
- package/src/components/utils/Spinner.tsx +29 -0
- package/src/components/utils/TopButton.tsx +67 -0
- package/src/components/utils/TransitionLink.tsx +67 -0
- package/src/components/utils/copy.tsx +98 -0
- package/src/components/utils/featureFlag.tsx +22 -0
- package/src/components/utils/icons.tsx +155 -0
- package/src/components/utils/share-modal.tsx +159 -0
- package/src/hooks/use-intersection.ts +52 -0
- package/src/hooks/use-lazy-load.ts +33 -0
- package/src/hooks/use-meta-color.ts +25 -0
- package/src/hooks/use-toast.ts +191 -0
- package/src/lib/config/featureflags.ts +63 -0
- package/src/lib/config/siteConfig.ts +172 -0
- package/src/lib/config/user.ts +9 -0
- package/src/lib/data/footer-data.ts +85 -0
- package/src/lib/data/nav-data.ts +30 -0
- package/src/lib/data/siteData.ts +52 -0
- package/src/lib/utils/index.ts +190 -0
- package/src/styles/customGlobal.css +141 -0
- package/src/styles/globals.css +72 -0
- package/src/styles/tailwind/base.ts +46 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Bold.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Bold.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Bold.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Bold.woff2 +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Extralight.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Extralight.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Extralight.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Extralight.woff2 +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Light.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Light.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Light.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Light.woff2 +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Medium.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Medium.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Medium.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Medium.woff2 +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Regular.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Regular.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Regular.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Regular.woff2 +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Semibold.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Semibold.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Semibold.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Semibold.woff2 +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Variable.eot +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Variable.ttf +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Variable.woff +0 -0
- package/src/styles/tailwind/fonts/ClashDisplay-Variable.woff2 +0 -0
- package/src/styles/tailwind/fonts/GeistMonoVF.woff +0 -0
- package/src/styles/tailwind/fonts/GeistVF.woff +0 -0
- package/src/styles/tailwind/fonts.ts +51 -0
- package/src/styles/tailwind/tailwindUtils.ts +29 -0
- package/src/types/index.ts +80 -0
- package/tailwind.config.ts +104 -0
- package/tsconfig.json +28 -0
- package/vercel.json +6 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { Config } from 'tailwindcss'
|
|
2
|
+
// plugins
|
|
3
|
+
import tailwindcssAnimate from 'tailwindcss-animate'
|
|
4
|
+
// @ts-expect-error doesn't have ts types yet
|
|
5
|
+
import tailwindcssMotion from 'tailwindcss-motion'
|
|
6
|
+
// import fluid, { extract, screens, fontSize } from 'fluid-tailwind'
|
|
7
|
+
|
|
8
|
+
// custom configs
|
|
9
|
+
import { fontFamily } from 'tailwindcss/defaultTheme'
|
|
10
|
+
import { base } from './src/styles/tailwind/base'
|
|
11
|
+
import { utilities } from './src/styles/tailwind/tailwindUtils'
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
darkMode: ['class'],
|
|
15
|
+
content: {
|
|
16
|
+
files: [
|
|
17
|
+
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
18
|
+
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
19
|
+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
20
|
+
],
|
|
21
|
+
// extract,
|
|
22
|
+
},
|
|
23
|
+
theme: {
|
|
24
|
+
// screens, //fluid tailwind uncomment this to use fluid tailwind
|
|
25
|
+
// fontSize, //fluid tailwind uncomment this to use fluid tailwind
|
|
26
|
+
container: {
|
|
27
|
+
center: true,
|
|
28
|
+
padding: {
|
|
29
|
+
DEFAULT: '1rem',
|
|
30
|
+
lg: '2rem',
|
|
31
|
+
xl: '3rem',
|
|
32
|
+
'2xl': '4rem',
|
|
33
|
+
},
|
|
34
|
+
screens: {
|
|
35
|
+
sm: '640px',
|
|
36
|
+
md: '768px',
|
|
37
|
+
lg: '1024px',
|
|
38
|
+
xl: '1280px',
|
|
39
|
+
'2xl': '1440px',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
extend: {
|
|
43
|
+
colors: {
|
|
44
|
+
background: 'hsl(var(--background))',
|
|
45
|
+
foreground: 'hsl(var(--foreground))',
|
|
46
|
+
card: {
|
|
47
|
+
DEFAULT: 'hsl(var(--card))',
|
|
48
|
+
foreground: 'hsl(var(--card-foreground))',
|
|
49
|
+
},
|
|
50
|
+
popover: {
|
|
51
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
52
|
+
foreground: 'hsl(var(--popover-foreground))',
|
|
53
|
+
},
|
|
54
|
+
primary: {
|
|
55
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
56
|
+
foreground: 'hsl(var(--primary-foreground))',
|
|
57
|
+
},
|
|
58
|
+
secondary: {
|
|
59
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
60
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
|
61
|
+
},
|
|
62
|
+
muted: {
|
|
63
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
64
|
+
foreground: 'hsl(var(--muted-foreground))',
|
|
65
|
+
},
|
|
66
|
+
accent: {
|
|
67
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
68
|
+
foreground: 'hsl(var(--accent-foreground))',
|
|
69
|
+
},
|
|
70
|
+
destructive: {
|
|
71
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
72
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
|
73
|
+
},
|
|
74
|
+
border: 'hsl(var(--border))',
|
|
75
|
+
input: 'hsl(var(--input))',
|
|
76
|
+
ring: 'hsl(var(--ring))',
|
|
77
|
+
chart: {
|
|
78
|
+
'1': 'hsl(var(--chart-1))',
|
|
79
|
+
'2': 'hsl(var(--chart-2))',
|
|
80
|
+
'3': 'hsl(var(--chart-3))',
|
|
81
|
+
'4': 'hsl(var(--chart-4))',
|
|
82
|
+
'5': 'hsl(var(--chart-5))',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
borderRadius: {
|
|
86
|
+
lg: 'var(--radius)',
|
|
87
|
+
md: 'calc(var(--radius) - 2px)',
|
|
88
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
89
|
+
},
|
|
90
|
+
fontFamily: {
|
|
91
|
+
sans: ['var(--font-inter)', ...fontFamily.sans],
|
|
92
|
+
clash: ['var(--font-clashDisplay)', ...fontFamily.sans],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
plugins: [
|
|
98
|
+
tailwindcssAnimate,
|
|
99
|
+
tailwindcssMotion,
|
|
100
|
+
utilities,
|
|
101
|
+
base,
|
|
102
|
+
// fluid, //fluid tailwind uncomment this to use fluid tailwind
|
|
103
|
+
],
|
|
104
|
+
} satisfies Config
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2017",
|
|
4
|
+
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"allowJs": true,
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noEmit": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"module": "esnext",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"jsx": "preserve",
|
|
15
|
+
"incremental": true,
|
|
16
|
+
"plugins": [
|
|
17
|
+
{
|
|
18
|
+
"name": "next"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"baseUrl": ".",
|
|
22
|
+
"paths": {
|
|
23
|
+
"@/*": ["./src/*"]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
27
|
+
"exclude": ["node_modules"]
|
|
28
|
+
}
|