@courtneyring/components-library 0.1.0 → 1.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.
Files changed (57) hide show
  1. package/README.md +60 -27
  2. package/dist/ScrollTrigger-DDbij8gI.js +3102 -0
  3. package/dist/animations/FadeIn.js +26 -0
  4. package/dist/animations/FadeInMotion.js +4785 -0
  5. package/dist/assets/Background.css +1 -0
  6. package/dist/assets/Banner.css +1 -0
  7. package/dist/assets/BorderedBackground.css +1 -0
  8. package/dist/assets/Button.css +1 -0
  9. package/dist/assets/Container.css +1 -0
  10. package/dist/assets/Fifty.css +1 -0
  11. package/dist/assets/Footer.css +1 -0
  12. package/dist/assets/ImageTextBlock.css +1 -0
  13. package/dist/assets/List.css +1 -0
  14. package/dist/assets/MenuButton.css +1 -0
  15. package/dist/assets/Navbar.css +1 -0
  16. package/dist/assets/Note.css +1 -0
  17. package/dist/assets/Overlay.css +1 -0
  18. package/dist/assets/OverlayHero.css +1 -0
  19. package/dist/assets/PageContainer.css +1 -0
  20. package/dist/assets/Promo.css +1 -0
  21. package/dist/assets/PromoGroup.css +1 -0
  22. package/dist/assets/Timeline.css +1 -0
  23. package/dist/assets/icons/checkmark.svg +3 -0
  24. package/dist/components/Background/Background.js +55 -0
  25. package/dist/components/Banner/Banner.js +14 -0
  26. package/dist/components/BorderedBackground/BorderedBackground.js +40 -0
  27. package/dist/components/Button/Button.js +30 -13
  28. package/dist/components/Container/Container.js +9 -0
  29. package/dist/components/Fifty/Fifty.js +33 -0
  30. package/dist/components/Fifty/Fifty.stories.js +32 -0
  31. package/dist/components/Footer/Footer.js +13 -0
  32. package/dist/components/Icon/Icon.js +13 -0
  33. package/dist/components/ImageTextBlock/ImageTextBlock.js +39 -0
  34. package/dist/components/List/List.js +20 -0
  35. package/dist/components/MenuButton/MenuButton.js +18 -0
  36. package/dist/components/Navbar/Navbar.js +416 -0
  37. package/dist/components/Note/Note.js +26 -0
  38. package/dist/components/Overlay/Overlay.js +31 -0
  39. package/dist/components/OverlayHero/OverlayHero.js +24 -0
  40. package/dist/components/PageContainer/PageContainer.js +25 -0
  41. package/dist/components/Promo/Promo.js +24 -0
  42. package/dist/components/PromoGroup/PromoGroup.js +9 -0
  43. package/dist/components/Timeline/Timeline.js +53 -0
  44. package/dist/hooks/useFadeIn.js +27 -0
  45. package/dist/hooks/useRepeatable.js +32 -0
  46. package/dist/hooks/useResize.js +19 -0
  47. package/dist/hooks/useResponsive.js +15 -0
  48. package/dist/index-BIlioXmW.js +47 -0
  49. package/dist/index-BlCqcUwj.js +29 -0
  50. package/dist/main.js +30 -0
  51. package/dist/utils/breakpoints.js +8 -0
  52. package/dist/utils/gsapSetup.js +7 -0
  53. package/dist/utils/parse.js +12 -0
  54. package/package.json +38 -25
  55. package/dist/components/Button/Button.d.ts +0 -12
  56. package/dist/exports.d.ts +0 -1
  57. package/dist/exports.js +0 -18
package/README.md CHANGED
@@ -1,40 +1,73 @@
1
- This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/pages/api-reference/create-next-app).
1
+ # React + TypeScript + Vite
2
2
 
3
- ## Getting Started
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
4
 
5
- First, run the development server:
5
+ Currently, two official plugins are available:
6
6
 
7
- ```bash
8
- npm run dev
9
- # or
10
- yarn dev
11
- # or
12
- pnpm dev
13
- # or
14
- bun dev
15
- ```
16
-
17
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
-
19
- You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
20
9
 
21
- [API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
10
+ ## React Compiler
22
11
 
23
- The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/pages/building-your-application/routing/api-routes) instead of React pages.
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
24
13
 
25
- This project uses [`next/font`](https://nextjs.org/docs/pages/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
14
+ ## Expanding the ESLint configuration
26
15
 
27
- ## Learn More
16
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
28
17
 
29
- To learn more about Next.js, take a look at the following resources:
18
+ ```js
19
+ export default defineConfig([
20
+ globalIgnores(['dist']),
21
+ {
22
+ files: ['**/*.{ts,tsx}'],
23
+ extends: [
24
+ // Other configs...
30
25
 
31
- - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
32
- - [Learn Next.js](https://nextjs.org/learn-pages-router) - an interactive Next.js tutorial.
26
+ // Remove tseslint.configs.recommended and replace with this
27
+ tseslint.configs.recommendedTypeChecked,
28
+ // Alternatively, use this for stricter rules
29
+ tseslint.configs.strictTypeChecked,
30
+ // Optionally, add this for stylistic rules
31
+ tseslint.configs.stylisticTypeChecked,
33
32
 
34
- You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
33
+ // Other configs...
34
+ ],
35
+ languageOptions: {
36
+ parserOptions: {
37
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
+ tsconfigRootDir: import.meta.dirname,
39
+ },
40
+ // other options...
41
+ },
42
+ },
43
+ ])
44
+ ```
35
45
 
36
- ## Deploy on Vercel
46
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
37
47
 
38
- The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
48
+ ```js
49
+ // eslint.config.js
50
+ import reactX from 'eslint-plugin-react-x'
51
+ import reactDom from 'eslint-plugin-react-dom'
39
52
 
40
- Check out our [Next.js deployment documentation](https://nextjs.org/docs/pages/building-your-application/deploying) for more details.
53
+ export default defineConfig([
54
+ globalIgnores(['dist']),
55
+ {
56
+ files: ['**/*.{ts,tsx}'],
57
+ extends: [
58
+ // Other configs...
59
+ // Enable lint rules for React
60
+ reactX.configs['recommended-typescript'],
61
+ // Enable lint rules for React DOM
62
+ reactDom.configs.recommended,
63
+ ],
64
+ languageOptions: {
65
+ parserOptions: {
66
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
+ tsconfigRootDir: import.meta.dirname,
68
+ },
69
+ // other options...
70
+ },
71
+ },
72
+ ])
73
+ ```