@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.
Files changed (117) hide show
  1. package/.eslintrc.json +8 -0
  2. package/.prettierignore +4 -0
  3. package/README.md +121 -0
  4. package/STRUCTURE.md +77 -0
  5. package/bin/cli.js +67 -0
  6. package/components.json +21 -0
  7. package/next.config.ts +22 -0
  8. package/package.json +59 -0
  9. package/postcss.config.mjs +8 -0
  10. package/prettier.config.js +7 -0
  11. package/public/android-chrome-192x192.png +0 -0
  12. package/public/android-chrome-512x512.png +0 -0
  13. package/public/favicon.svg +1 -0
  14. package/public/loading-dots.gif +0 -0
  15. package/public/logo.svg +1 -0
  16. package/public/ogImage.webp +0 -0
  17. package/public/site.webmanifest +19 -0
  18. package/src/actions/placeholder.ts +30 -0
  19. package/src/actions/sampleAction.ts +39 -0
  20. package/src/app/(index)/intr/TestCard.tsx +31 -0
  21. package/src/app/(index)/intr/page.tsx +17 -0
  22. package/src/app/(index)/page.tsx +156 -0
  23. package/src/app/(index)/pagetr/page.tsx +37 -0
  24. package/src/app/error-wrapper.tsx +32 -0
  25. package/src/app/global-error.tsx +53 -0
  26. package/src/app/layout.tsx +56 -0
  27. package/src/app/loading.tsx +11 -0
  28. package/src/app/not-found.tsx +45 -0
  29. package/src/app/sitemap.ts +14 -0
  30. package/src/components/Providers/root-provider.tsx +22 -0
  31. package/src/components/Providers/theme-provider.tsx +27 -0
  32. package/src/components/TestComp.tsx +11 -0
  33. package/src/components/brand.tsx +35 -0
  34. package/src/components/navigation/footer.tsx +32 -0
  35. package/src/components/navigation/main-nav.tsx +55 -0
  36. package/src/components/navigation/mobile-nav.tsx +154 -0
  37. package/src/components/navigation/site-header.tsx +67 -0
  38. package/src/components/ui/avatar.tsx +50 -0
  39. package/src/components/ui/badge.tsx +36 -0
  40. package/src/components/ui/button.tsx +56 -0
  41. package/src/components/ui/card.tsx +79 -0
  42. package/src/components/ui/command.tsx +153 -0
  43. package/src/components/ui/dialog.tsx +122 -0
  44. package/src/components/ui/drawer.tsx +118 -0
  45. package/src/components/ui/dropdown-menu.tsx +200 -0
  46. package/src/components/ui/input.tsx +22 -0
  47. package/src/components/ui/label.tsx +26 -0
  48. package/src/components/ui/multi-select.tsx +380 -0
  49. package/src/components/ui/origin/multiselect.tsx +645 -0
  50. package/src/components/ui/popover.tsx +31 -0
  51. package/src/components/ui/radio-group.tsx +44 -0
  52. package/src/components/ui/separator.tsx +31 -0
  53. package/src/components/ui/skeleton.tsx +15 -0
  54. package/src/components/ui/themeSelector.tsx +157 -0
  55. package/src/components/ui/toast.tsx +129 -0
  56. package/src/components/ui/toaster.tsx +31 -0
  57. package/src/components/ui/tooltip.tsx +39 -0
  58. package/src/components/utils/ConditionalLink.tsx +46 -0
  59. package/src/components/utils/Image.tsx +57 -0
  60. package/src/components/utils/Img.tsx +104 -0
  61. package/src/components/utils/Spinner.tsx +29 -0
  62. package/src/components/utils/TopButton.tsx +67 -0
  63. package/src/components/utils/TransitionLink.tsx +67 -0
  64. package/src/components/utils/copy.tsx +98 -0
  65. package/src/components/utils/featureFlag.tsx +22 -0
  66. package/src/components/utils/icons.tsx +155 -0
  67. package/src/components/utils/share-modal.tsx +159 -0
  68. package/src/hooks/use-intersection.ts +52 -0
  69. package/src/hooks/use-lazy-load.ts +33 -0
  70. package/src/hooks/use-meta-color.ts +25 -0
  71. package/src/hooks/use-toast.ts +191 -0
  72. package/src/lib/config/featureflags.ts +63 -0
  73. package/src/lib/config/siteConfig.ts +172 -0
  74. package/src/lib/config/user.ts +9 -0
  75. package/src/lib/data/footer-data.ts +85 -0
  76. package/src/lib/data/nav-data.ts +30 -0
  77. package/src/lib/data/siteData.ts +52 -0
  78. package/src/lib/utils/index.ts +190 -0
  79. package/src/styles/customGlobal.css +141 -0
  80. package/src/styles/globals.css +72 -0
  81. package/src/styles/tailwind/base.ts +46 -0
  82. package/src/styles/tailwind/fonts/ClashDisplay-Bold.eot +0 -0
  83. package/src/styles/tailwind/fonts/ClashDisplay-Bold.ttf +0 -0
  84. package/src/styles/tailwind/fonts/ClashDisplay-Bold.woff +0 -0
  85. package/src/styles/tailwind/fonts/ClashDisplay-Bold.woff2 +0 -0
  86. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.eot +0 -0
  87. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.ttf +0 -0
  88. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.woff +0 -0
  89. package/src/styles/tailwind/fonts/ClashDisplay-Extralight.woff2 +0 -0
  90. package/src/styles/tailwind/fonts/ClashDisplay-Light.eot +0 -0
  91. package/src/styles/tailwind/fonts/ClashDisplay-Light.ttf +0 -0
  92. package/src/styles/tailwind/fonts/ClashDisplay-Light.woff +0 -0
  93. package/src/styles/tailwind/fonts/ClashDisplay-Light.woff2 +0 -0
  94. package/src/styles/tailwind/fonts/ClashDisplay-Medium.eot +0 -0
  95. package/src/styles/tailwind/fonts/ClashDisplay-Medium.ttf +0 -0
  96. package/src/styles/tailwind/fonts/ClashDisplay-Medium.woff +0 -0
  97. package/src/styles/tailwind/fonts/ClashDisplay-Medium.woff2 +0 -0
  98. package/src/styles/tailwind/fonts/ClashDisplay-Regular.eot +0 -0
  99. package/src/styles/tailwind/fonts/ClashDisplay-Regular.ttf +0 -0
  100. package/src/styles/tailwind/fonts/ClashDisplay-Regular.woff +0 -0
  101. package/src/styles/tailwind/fonts/ClashDisplay-Regular.woff2 +0 -0
  102. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.eot +0 -0
  103. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.ttf +0 -0
  104. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.woff +0 -0
  105. package/src/styles/tailwind/fonts/ClashDisplay-Semibold.woff2 +0 -0
  106. package/src/styles/tailwind/fonts/ClashDisplay-Variable.eot +0 -0
  107. package/src/styles/tailwind/fonts/ClashDisplay-Variable.ttf +0 -0
  108. package/src/styles/tailwind/fonts/ClashDisplay-Variable.woff +0 -0
  109. package/src/styles/tailwind/fonts/ClashDisplay-Variable.woff2 +0 -0
  110. package/src/styles/tailwind/fonts/GeistMonoVF.woff +0 -0
  111. package/src/styles/tailwind/fonts/GeistVF.woff +0 -0
  112. package/src/styles/tailwind/fonts.ts +51 -0
  113. package/src/styles/tailwind/tailwindUtils.ts +29 -0
  114. package/src/types/index.ts +80 -0
  115. package/tailwind.config.ts +104 -0
  116. package/tsconfig.json +28 -0
  117. 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
+ }
package/vercel.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "installCommand": "bun install",
3
+ "buildCommand": "bun run build",
4
+ "framework": "nextjs",
5
+ "redirects": [{ "source": "/home", "destination": "/" }]
6
+ }