cherry-styled-components 0.1.0 → 0.1.2

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 (85) hide show
  1. package/.claude/settings.local.json +5 -0
  2. package/.eslintrc.cjs +18 -0
  3. package/.prettierignore +5 -0
  4. package/.prettierrc +11 -0
  5. package/.supermaven/config.json +6 -0
  6. package/README.md +33 -11
  7. package/dist/App.d.ts +2 -0
  8. package/dist/cherry.js +5258 -0
  9. package/dist/cherry.umd.cjs +1217 -0
  10. package/dist/lib/box.d.ts +4 -0
  11. package/dist/lib/button.d.ts +15 -0
  12. package/dist/lib/col.d.ts +16 -0
  13. package/dist/lib/container.d.ts +19 -0
  14. package/dist/lib/flex.d.ts +29 -0
  15. package/dist/lib/grid.d.ts +24 -0
  16. package/dist/lib/index.d.ts +15 -0
  17. package/dist/lib/input.d.ts +27 -0
  18. package/dist/lib/max-width.d.ts +14 -0
  19. package/dist/lib/range.d.ts +14 -0
  20. package/dist/lib/select.d.ts +16 -0
  21. package/dist/lib/space.d.ts +14 -0
  22. package/dist/lib/styled-components/index.d.ts +2 -0
  23. package/dist/lib/styled-components/registry.d.ts +5 -0
  24. package/dist/lib/styled-components/theme-provider.d.ts +12 -0
  25. package/dist/lib/textarea.d.ts +15 -0
  26. package/dist/lib/toggle.d.ts +15 -0
  27. package/dist/lib/utils/global.d.ts +3 -0
  28. package/dist/lib/utils/icons.d.ts +9 -0
  29. package/dist/lib/utils/index.d.ts +5 -0
  30. package/dist/lib/utils/mixins.d.ts +11 -0
  31. package/dist/lib/utils/theme.d.ts +231 -0
  32. package/dist/lib/utils/typography.d.ts +20 -0
  33. package/dist/main.d.ts +1 -0
  34. package/dist/toggle-theme.d.ts +3 -0
  35. package/index.html +13 -0
  36. package/package.json +38 -25
  37. package/pnpm-workspace.yaml +3 -0
  38. package/src/App.tsx +101 -0
  39. package/src/lib/box.tsx +26 -0
  40. package/src/lib/button.tsx +162 -0
  41. package/src/lib/col.tsx +48 -0
  42. package/src/lib/container.tsx +69 -0
  43. package/src/lib/flex.tsx +99 -0
  44. package/src/lib/grid.tsx +76 -0
  45. package/src/{app/components/cherry → lib}/index.ts +1 -1
  46. package/src/lib/input.tsx +418 -0
  47. package/src/lib/max-width.tsx +53 -0
  48. package/src/lib/range.tsx +234 -0
  49. package/src/lib/select.tsx +136 -0
  50. package/src/lib/space.tsx +55 -0
  51. package/src/lib/styled-components/registry.tsx +29 -0
  52. package/src/lib/styled-components/theme-provider.tsx +50 -0
  53. package/src/lib/textarea.tsx +115 -0
  54. package/src/lib/toggle.tsx +158 -0
  55. package/src/{app/components/cherry → lib}/utils/global.tsx +20 -3
  56. package/src/lib/utils/icons.tsx +84 -0
  57. package/src/lib/utils/mixins.tsx +108 -0
  58. package/src/lib/utils/theme.ts +289 -0
  59. package/src/lib/utils/typography.tsx +204 -0
  60. package/src/main.tsx +19 -0
  61. package/src/toggle-theme.tsx +25 -0
  62. package/src/vite-env.d.ts +8 -0
  63. package/tsconfig.json +24 -0
  64. package/vite.config.js +24 -0
  65. package/src/app/components/cherry/box.tsx +0 -16
  66. package/src/app/components/cherry/button.tsx +0 -177
  67. package/src/app/components/cherry/col.tsx +0 -39
  68. package/src/app/components/cherry/container.tsx +0 -55
  69. package/src/app/components/cherry/flex.tsx +0 -90
  70. package/src/app/components/cherry/grid.tsx +0 -60
  71. package/src/app/components/cherry/input.tsx +0 -254
  72. package/src/app/components/cherry/max-width.tsx +0 -43
  73. package/src/app/components/cherry/range.tsx +0 -223
  74. package/src/app/components/cherry/select.tsx +0 -122
  75. package/src/app/components/cherry/space.tsx +0 -54
  76. package/src/app/components/cherry/styled-components/registry.tsx +0 -26
  77. package/src/app/components/cherry/styled-components/theme-provider.tsx +0 -21
  78. package/src/app/components/cherry/textarea.tsx +0 -98
  79. package/src/app/components/cherry/toggle.tsx +0 -148
  80. package/src/app/components/cherry/utils/icons.tsx +0 -168
  81. package/src/app/components/cherry/utils/mixins.tsx +0 -107
  82. package/src/app/components/cherry/utils/theme.ts +0 -241
  83. package/src/app/components/cherry/utils/typography.tsx +0 -204
  84. /package/src/{app/components/cherry → lib}/styled-components/index.ts +0 -0
  85. /package/src/{app/components/cherry → lib}/utils/index.ts +0 -0
@@ -0,0 +1,5 @@
1
+ {
2
+ "permissions": {
3
+ "allow": ["Bash(npm run build:*)"]
4
+ }
5
+ }
package/.eslintrc.cjs ADDED
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: { browser: true, es2020: true },
4
+ extends: [
5
+ 'eslint:recommended',
6
+ 'plugin:@typescript-eslint/recommended',
7
+ 'plugin:react-hooks/recommended',
8
+ ],
9
+ ignorePatterns: ['dist', '.eslintrc.cjs'],
10
+ parser: '@typescript-eslint/parser',
11
+ plugins: ['react-refresh'],
12
+ rules: {
13
+ 'react-refresh/only-export-components': [
14
+ 'warn',
15
+ { allowConstantExport: true },
16
+ ],
17
+ },
18
+ }
@@ -0,0 +1,5 @@
1
+ node_modules
2
+ convex/_generated
3
+ package.json
4
+ package-lock.json
5
+ dist
package/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "printWidth": 80,
3
+ "useTabs": false,
4
+ "tabWidth": 2,
5
+ "endOfLine": "lf",
6
+ "semi": true,
7
+ "singleQuote": false,
8
+ "trailingComma": "all",
9
+ "bracketSpacing": true,
10
+ "arrowParens": "always"
11
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "api_key": "4e94fd92d9d3e56803d0d5340beb64a8",
3
+ "api_key_obtained_at": "2024-07-19T22:18:47+02:00",
4
+ "link_id": "bw4cwq4Og3aqUNwrefbPo9D016ptryeK",
5
+ "machine_id": "EgXOpDipQw6LbkqDKtbnec2TTIVC7Vg3"
6
+ }
package/README.md CHANGED
@@ -1,15 +1,37 @@
1
- # Cherry Design System
1
+ # Cherry React Library
2
+
2
3
  ## Introduction
3
- The **Cherry Design System** is a versatile foundation for your projects. As a starting point, it provides a clean slate—a white label—upon which you can build and extend. Whether you’re creating a web application, mobile app, or any other digital interface, Cherry defines the essential components you need.
4
4
 
5
- ## Key Features
6
- - **White Label Base**: Cherry serves as a neutral canvas, allowing you to customize and brand it according to your project’s requirements.
7
- - **React Components**: We’ve carefully curated the fundamental building blocks for a typical interface. These include components, typography, color schemes, and layout guidelines.
8
- - **Theming Support**: Cherry embraces theming, enabling you to adapt the design system to different contexts while maintaining consistency.
9
- Sanity and Consistency: By adhering to Cherry’s guidelines, you’ll create a cohesive user experience across various screens and interactions.
10
- - **Open Source**: Cherry takes it a step further by providing ready-to-use source code for the **Figma designs**. This means you not only get the visual templates but also the actual implementation. It’s like having a bridge between your design tool and your codebase.
5
+ Cherry Design System is a versatile foundation for projects. It offers a white label base, ready-to-use Figma designs, open-source React components, built-in support for theming and dark mode. Explore the [docs](https://cherry.al/) to create delightful user interfaces.
6
+
7
+ ---
8
+
9
+ # Installation
10
+
11
+ This project requires Node.js v20+ installed.
12
+
13
+ ```bash
14
+ npm install
15
+ ```
16
+
17
+ To run the development environment, use the following command:
18
+
19
+ ```bash
20
+ npm run dev
21
+ ```
22
+
23
+ To build the library for production, use the following command:
24
+
25
+ ```bash
26
+ npm run build
27
+ ```
28
+
29
+ ## Community
30
+
31
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
32
+
33
+ [Discuss Cherry on GitHub](https://github.com/cherry-design-system/styled-components/discussions)
11
34
 
12
- Getting Started
13
- To begin using Cherry, refer to our comprehensive documentation at [cherry.design](https://cherry.design/). Explore the components, study the design principles, and integrate them seamlessly into your project. Remember, Cherry is not just a set of rules—it’s a toolkit that empowers you to create delightful user interfaces.
35
+ For casual chit-chat with others using Cherry:
14
36
 
15
- Happy designing! 🍒
37
+ [Join the Discord Server](https://discord.gg/6JvcWU5bke)
package/dist/App.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react").JSX.Element;
2
+ export default App;