@dishopsaas/design-system 0.0.47
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/README.md +69 -0
- package/dist/design-system.css +1 -0
- package/dist/index.cjs +172 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +26081 -0
- package/dist/index.mjs.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +80 -0
- package/src/css/design-system.css +169 -0
package/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) 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
|
|
9
|
+
|
|
10
|
+
## Expanding the ESLint configuration
|
|
11
|
+
|
|
12
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
export default tseslint.config([
|
|
16
|
+
globalIgnores(['dist']),
|
|
17
|
+
{
|
|
18
|
+
files: ['**/*.{ts,tsx}'],
|
|
19
|
+
extends: [
|
|
20
|
+
// Other configs...
|
|
21
|
+
|
|
22
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
23
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
24
|
+
// Alternatively, use this for stricter rules
|
|
25
|
+
...tseslint.configs.strictTypeChecked,
|
|
26
|
+
// Optionally, add this for stylistic rules
|
|
27
|
+
...tseslint.configs.stylisticTypeChecked,
|
|
28
|
+
|
|
29
|
+
// Other configs...
|
|
30
|
+
],
|
|
31
|
+
languageOptions: {
|
|
32
|
+
parserOptions: {
|
|
33
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
34
|
+
tsconfigRootDir: import.meta.dirname,
|
|
35
|
+
},
|
|
36
|
+
// other options...
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
])
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
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:
|
|
43
|
+
|
|
44
|
+
```js
|
|
45
|
+
// eslint.config.js
|
|
46
|
+
import reactX from 'eslint-plugin-react-x'
|
|
47
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
48
|
+
|
|
49
|
+
export default tseslint.config([
|
|
50
|
+
globalIgnores(['dist']),
|
|
51
|
+
{
|
|
52
|
+
files: ['**/*.{ts,tsx}'],
|
|
53
|
+
extends: [
|
|
54
|
+
// Other configs...
|
|
55
|
+
// Enable lint rules for React
|
|
56
|
+
reactX.configs['recommended-typescript'],
|
|
57
|
+
// Enable lint rules for React DOM
|
|
58
|
+
reactDom.configs.recommended,
|
|
59
|
+
],
|
|
60
|
+
languageOptions: {
|
|
61
|
+
parserOptions: {
|
|
62
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
63
|
+
tsconfigRootDir: import.meta.dirname,
|
|
64
|
+
},
|
|
65
|
+
// other options...
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
])
|
|
69
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.design-system-wrapper{font-family:GT America LCGV VF,sans-serif;color:#333;background-color:#fff}.design-system-wrapper h1{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:24px;line-height:1.2;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h2{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:20px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h3{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:18px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h4{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:16px;line-height:1.2;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h5{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:14px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper h6{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:600;font-size:12px;line-height:1.25;letter-spacing:-.02em;margin-bottom:0rem}.design-system-wrapper .subtitle2{font-family:GT America LCGV VF,sans-serif;font-weight:500;font-size:14px;line-height:1.125}.design-system-wrapper .body1{font-family:GT America LCGV VF,sans-serif;font-weight:400;font-size:18px;line-height:1.25}.design-system-wrapper .body2{font-family:GT America LCGV VF,sans-serif;font-weight:400;font-size:14px;line-height:1.125}.design-system-wrapper .caption{font-family:GT America LCGV VF,sans-serif;font-weight:400;font-size:12px;line-height:1.2}.design-system-wrapper button{font-family:PP Right Grotesk Casual Variable,sans-serif;font-weight:620;font-size:14px;line-height:1.25}.design-system-wrapper .accordion{box-shadow:none;border-bottom:1px solid #E1E1E1}.design-system-wrapper .accordion-header{min-height:32px;padding:8px}.design-system-wrapper .accordion-header.expanded{border:1px solid #E1E1E1}.design-system-wrapper .accordion-header svg{width:24px;height:24px}.design-system-wrapper .list-item-icon{min-width:0!important;margin-right:15px;display:flex;align-items:center;justify-content:center;width:20px;height:20px}:root{--ds-primary-color: #1E90FF;--ds-secondary-color: #9013FE;--ds-error-color: #D6392C;--ds-success-color: #039F43;--ds-warning-color: #FFC107;--ds-info-color: #17A2B8;--ds-gray-50: #F9F9F9;--ds-gray-100: #F0F0F0;--ds-gray-200: #E0E0E0;--ds-gray-300: #CFCFCF;--ds-gray-400: #B0B0B0;--ds-gray-500: #999999;--ds-gray-600: #707070;--ds-gray-700: #2D2E2C;--ds-gray-800: #3D3D3D;--ds-gray-900: #1A1A1A}
|