@szum-tech/design-system 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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/index.css +126 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +58 -0
- package/dist/index.mjs +47 -0
- package/dist/tailwind-preset.js +58 -0
- package/package.json +89 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Szum-Tech
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
package/dist/index.css
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap");
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
|
|
3
|
+
|
|
4
|
+
@tailwind base;
|
|
5
|
+
@tailwind components;
|
|
6
|
+
@tailwind utilities;
|
|
7
|
+
|
|
8
|
+
@layer base {
|
|
9
|
+
:root {
|
|
10
|
+
--white: 250 250 250; /* rgb(250 250 250) */
|
|
11
|
+
--black: 28 28 28; /* rgb(28, 28, 28) */
|
|
12
|
+
|
|
13
|
+
--text-color: 28 28 28; /* rgb(28 28 28) */
|
|
14
|
+
|
|
15
|
+
--primary-100: 153 206 255; /* rgb(153, 206, 255) 60% */
|
|
16
|
+
--primary-200: 115 187 255; /* rgb(115, 187, 255) 45% */
|
|
17
|
+
--primary-300: 77 169 255; /* rgb(77, 169, 255) 30% */
|
|
18
|
+
--primary-400: 38 150 255; /* rgb(38, 150, 255) 15% */
|
|
19
|
+
--primary-500: 0 132 255; /* rgb(0, 132, 255) */
|
|
20
|
+
--primary-600: 0 112 217; /* rgb(0, 112, 217) 15% */
|
|
21
|
+
--primary-700: 0 92 179; /* rgb(0, 92, 179) 30% */
|
|
22
|
+
--primary-800: 0 73 140; /* rgb(0, 73, 140) 45% */
|
|
23
|
+
--primary-900: 0 53 102; /* rgb(0, 53, 102) 60% */
|
|
24
|
+
|
|
25
|
+
--success-100: 125 255 162; /* rgb(125, 255, 162) */
|
|
26
|
+
--success-200: 77 255 127; /* rgb(77, 255, 127) */
|
|
27
|
+
--success-300: 28 255 92; /* rgb(28, 255, 92) */
|
|
28
|
+
--success-400: 0 235 66; /* rgb(0, 235, 66) */
|
|
29
|
+
--success-500: 0 186 52; /* rgb(0, 186, 52) */
|
|
30
|
+
--success-600: 0 158 44; /* rgb(0, 158, 44) */
|
|
31
|
+
--success-700: 0 130 36; /* rgb(0, 130, 36) */
|
|
32
|
+
--success-800: 0 102 29; /* rgb(0, 102, 29) */
|
|
33
|
+
--success-900: 0 74 21; /* rgb(0, 74, 21) */
|
|
34
|
+
|
|
35
|
+
--warning-100: 255 207 151; /* rgb(255, 207, 151) */
|
|
36
|
+
--warning-200: 255 189 111; /* rgb(255, 189, 111) */
|
|
37
|
+
--warning-300: 255 171 72; /* rgb(255, 171, 72) */
|
|
38
|
+
--warning-400: 255 153 33; /* rgb(255, 153, 33) */
|
|
39
|
+
--warning-500: 249 134 0; /* rgb(249, 134, 0) */
|
|
40
|
+
--warning-600: 212 114 0; /* rgb(212, 114, 0) */
|
|
41
|
+
--warning-700: 174 94 0; /* rgb(174, 94, 0) */
|
|
42
|
+
--warning-800: 137 74 0; /* rgb(137, 74, 0) */
|
|
43
|
+
--warning-900: 100 54 0; /* rgb(100, 54, 0) */
|
|
44
|
+
|
|
45
|
+
--error-100: 246 171 171; /* rgb(246, 171, 171) */
|
|
46
|
+
--error-200: 243 139 139; /* rgb(243, 139, 139) */
|
|
47
|
+
--error-300: 240 107 107; /* rgb(240, 107, 107) */
|
|
48
|
+
--error-400: 236 76 76; /* rgb(236, 76, 76) */
|
|
49
|
+
--error-500: 233 44 44; /* rgb(233, 44, 44) */
|
|
50
|
+
--error-600: 213 22 22; /* rgb(213, 22, 22) */
|
|
51
|
+
--error-700: 176 18 18; /* rgb(176, 18, 18) */
|
|
52
|
+
--error-800: 138 14 14; /* rgb(138, 14, 14) */
|
|
53
|
+
--error-900: 100 10 10; /* rgb(100, 10, 10) */
|
|
54
|
+
|
|
55
|
+
--gray-100: 75 75 75; /* rgb(75, 75, 75) 70% */
|
|
56
|
+
--gray-200: 100 100 100; /* rgb(100, 100, 100) 60% */
|
|
57
|
+
--gray-300: 125 125 125; /* rgb(125, 125, 125) 50% */
|
|
58
|
+
--gray-400: 150 150 150; /* rgb(150, 150, 150) 40% */
|
|
59
|
+
--gray-500: 175 175 175; /* rgb(175, 175, 175) 30% */
|
|
60
|
+
--gray-600: 200 200 200; /* rgb(200, 200, 200) 20% */
|
|
61
|
+
--gray-700: 212 212 212; /* rgb(212, 212, 212) 15% */
|
|
62
|
+
--gray-800: 225 225 225; /* rgb(225, 225, 225) 10% */
|
|
63
|
+
--gray-900: 237 237 237; /* rgb(237, 237, 237) 5% */
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.dark {
|
|
67
|
+
--white: 250 250 250; /* rgb(250, 250, 250) */
|
|
68
|
+
--black: 28 28 28; /* rgb(28, 28, 28) */
|
|
69
|
+
|
|
70
|
+
--text-color: 242 242 242; /* rgb(242, 242, 242) */
|
|
71
|
+
|
|
72
|
+
--primary-100: 161 210 255; /* rgb(161, 210, 255) */
|
|
73
|
+
--primary-200: 126 193 255; /* rgb(126,193,255) */
|
|
74
|
+
--primary-300: 91 177 255; /* rgb(91,177,255) */
|
|
75
|
+
--primary-400: 56 160 255; /* rgb(56, 160, 255) */
|
|
76
|
+
--primary-500: 21 143 255; /* rgb(21, 143, 255) */
|
|
77
|
+
--primary-600: 0 122 235; /* rgb(0,122,235) */
|
|
78
|
+
--primary-700: 0 101 193; /* rgb(0, 101, 193) */
|
|
79
|
+
--primary-800: 0 79 152; /* rgb(0, 79, 152) */
|
|
80
|
+
--primary-900: 0 58 110; /* rgb(0, 58, 110) */
|
|
81
|
+
|
|
82
|
+
--success-100: 152 244 178; /* rgb(152, 244, 178) */
|
|
83
|
+
--success-200: 114 240 149; /* rgb(114, 240, 149) */
|
|
84
|
+
--success-300: 75 235 120; /* rgb(75, 235, 120) */
|
|
85
|
+
--success-400: 36 231 91; /* rgb(36, 231, 91) */
|
|
86
|
+
--success-500: 22 203 73; /* rgb(22, 203, 73) */
|
|
87
|
+
--success-600: 19 173 62; /* rgb(19, 173, 62) */
|
|
88
|
+
--success-700: 15 142 51; /* rgb(15, 142, 51) */
|
|
89
|
+
--success-800: 12 112 40; /* rgb(12, 112, 40) */
|
|
90
|
+
--success-900: 9 81 29; /* rgb(9, 81, 29) */
|
|
91
|
+
|
|
92
|
+
--warning-100: 255 217 171; /* rgb(255, 217, 171) */
|
|
93
|
+
--warning-200: 255 202 139; /* rgb(255, 202, 139) */
|
|
94
|
+
--warning-300: 255 188 108; /* rgb(255, 188, 108) */
|
|
95
|
+
--warning-400: 255 173 77; /* rgb(255, 173, 77) */
|
|
96
|
+
--warning-500: 255 159 45; /* rgb(255, 159, 45) */
|
|
97
|
+
--warning-600: 255 138 0; /* rgb(255, 138, 0) */
|
|
98
|
+
--warning-700: 210 114 0; /* rgb(210, 114, 0) */
|
|
99
|
+
--warning-800: 165 90 0; /* rgb(165, 90, 0) */
|
|
100
|
+
--warning-900: 120 65 0; /* rgb(120, 65, 0) */
|
|
101
|
+
|
|
102
|
+
--error-100: 252 179 179; /* rgb(252, 179, 179) */
|
|
103
|
+
--error-200: 251 150 150; /* rgb(251, 150, 150) */
|
|
104
|
+
--error-300: 249 122 121; /* rgb(249, 122, 121) */
|
|
105
|
+
--error-400: 248 93 93; /* rgb(248, 93, 93) */
|
|
106
|
+
--error-500: 247 65 64; /* rgb(247, 65, 64) */
|
|
107
|
+
--error-600: 245 20 19; /* rgb(245, 20, 19) */
|
|
108
|
+
--error-700: 209 10 9; /* rgb(209, 10, 9) */
|
|
109
|
+
--error-800: 164 8 7; /* rgb(164, 8, 7) */
|
|
110
|
+
--error-900: 119 6 5; /* rgb(119, 6, 5) */
|
|
111
|
+
|
|
112
|
+
--gray-100: 187 187 187; /* rgb(187, 187, 187) 70% */
|
|
113
|
+
--gray-200: 164 164 164; /* rgb(164, 164, 164) 60% */
|
|
114
|
+
--gray-300: 141 141 141; /* rgb(141, 141, 141) 50% */
|
|
115
|
+
--gray-400: 119 119 119; /* rgb(119, 119, 119) 40% */
|
|
116
|
+
--gray-500: 96 96 96; /* rgb(96, 96, 96) 30% */
|
|
117
|
+
--gray-600: 73 73 73; /* rgb(73, 73, 73) 20% */
|
|
118
|
+
--gray-700: 62 62 62; /* rgb(62, 62, 62) 15% */
|
|
119
|
+
--gray-800: 51 51 51; /* rgb(51, 51, 51) 10% */
|
|
120
|
+
--gray-900: 39 39 39; /* rgb(39, 39, 39) 5% */
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
body {
|
|
124
|
+
@apply text-typography-primary font-sans;
|
|
125
|
+
}
|
|
126
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
declare function Button(): JSX.Element;
|
|
4
|
+
|
|
5
|
+
declare type ThemeType = "light" | "dark";
|
|
6
|
+
interface ThemeContextType {
|
|
7
|
+
theme: ThemeType;
|
|
8
|
+
setTheme: React.Dispatch<React.SetStateAction<ThemeType>>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const ThemeContext: React.Context<ThemeContextType>;
|
|
12
|
+
|
|
13
|
+
interface ThemeProviderProps {
|
|
14
|
+
defaultTheme?: ThemeType;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare function ThemeProvider({ children, defaultTheme }: ThemeProviderProps): JSX.Element;
|
|
18
|
+
|
|
19
|
+
declare const useTheme: () => ThemeContextType;
|
|
20
|
+
|
|
21
|
+
export { Button, ThemeContext, ThemeContextType, ThemeProvider, ThemeProviderProps, ThemeType, useTheme };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var React2 = require('react');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var React2__default = /*#__PURE__*/_interopDefaultLegacy(React2);
|
|
11
|
+
|
|
12
|
+
// src/components/index.tsx
|
|
13
|
+
function Button() {
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx("button", {
|
|
15
|
+
className: "rounded-lg border border-red-800 bg-red-300 p-4",
|
|
16
|
+
children: "button"
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var ThemeContext = React2__default["default"].createContext({});
|
|
20
|
+
function getInitialTheme() {
|
|
21
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
22
|
+
const storageTheme = window.localStorage.getItem("theme");
|
|
23
|
+
if (storageTheme === "dark" || !storageTheme && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
24
|
+
return "dark";
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return "light";
|
|
28
|
+
}
|
|
29
|
+
function ThemeProvider({ children, defaultTheme }) {
|
|
30
|
+
const [theme, setTheme] = React2__default["default"].useState(
|
|
31
|
+
defaultTheme ? defaultTheme : getInitialTheme
|
|
32
|
+
);
|
|
33
|
+
function rawSetTheme(rawTheme) {
|
|
34
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
35
|
+
if (rawTheme === "dark") {
|
|
36
|
+
document.documentElement.classList.add("dark");
|
|
37
|
+
} else {
|
|
38
|
+
document.documentElement.classList.remove("dark");
|
|
39
|
+
}
|
|
40
|
+
localStorage.setItem("theme", rawTheme);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
React2__default["default"].useEffect(() => {
|
|
44
|
+
rawSetTheme(theme);
|
|
45
|
+
}, [theme]);
|
|
46
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, {
|
|
47
|
+
value: { theme, setTheme },
|
|
48
|
+
children
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/hooks/useTheme/useTheme.tsx
|
|
53
|
+
var useTheme = () => React2__default["default"].useContext(ThemeContext);
|
|
54
|
+
|
|
55
|
+
exports.Button = Button;
|
|
56
|
+
exports.ThemeContext = ThemeContext;
|
|
57
|
+
exports.ThemeProvider = ThemeProvider;
|
|
58
|
+
exports.useTheme = useTheme;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React2 from 'react';
|
|
3
|
+
|
|
4
|
+
// src/components/index.tsx
|
|
5
|
+
function Button() {
|
|
6
|
+
return /* @__PURE__ */ jsx("button", {
|
|
7
|
+
className: "rounded-lg border border-red-800 bg-red-300 p-4",
|
|
8
|
+
children: "button"
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
var ThemeContext = React2.createContext({});
|
|
12
|
+
function getInitialTheme() {
|
|
13
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
14
|
+
const storageTheme = window.localStorage.getItem("theme");
|
|
15
|
+
if (storageTheme === "dark" || !storageTheme && window.matchMedia("(prefers-color-scheme: dark)").matches) {
|
|
16
|
+
return "dark";
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return "light";
|
|
20
|
+
}
|
|
21
|
+
function ThemeProvider({ children, defaultTheme }) {
|
|
22
|
+
const [theme, setTheme] = React2.useState(
|
|
23
|
+
defaultTheme ? defaultTheme : getInitialTheme
|
|
24
|
+
);
|
|
25
|
+
function rawSetTheme(rawTheme) {
|
|
26
|
+
if (typeof window !== "undefined" && window.localStorage) {
|
|
27
|
+
if (rawTheme === "dark") {
|
|
28
|
+
document.documentElement.classList.add("dark");
|
|
29
|
+
} else {
|
|
30
|
+
document.documentElement.classList.remove("dark");
|
|
31
|
+
}
|
|
32
|
+
localStorage.setItem("theme", rawTheme);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
React2.useEffect(() => {
|
|
36
|
+
rawSetTheme(theme);
|
|
37
|
+
}, [theme]);
|
|
38
|
+
return /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
39
|
+
value: { theme, setTheme },
|
|
40
|
+
children
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// src/hooks/useTheme/useTheme.tsx
|
|
45
|
+
var useTheme = () => React2.useContext(ThemeContext);
|
|
46
|
+
|
|
47
|
+
export { Button, ThemeContext, ThemeProvider, useTheme };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
darkMode: "class",
|
|
4
|
+
theme: {
|
|
5
|
+
extend: {
|
|
6
|
+
borderRadius: {
|
|
7
|
+
"1/2": "50%"
|
|
8
|
+
},
|
|
9
|
+
fontFamily: {
|
|
10
|
+
sans: ["'Open Sans', sans-serif"],
|
|
11
|
+
code: ["'JetBrains Mono', monospace"]
|
|
12
|
+
},
|
|
13
|
+
width: {
|
|
14
|
+
128: "32.0rem",
|
|
15
|
+
300: "75.0rem"
|
|
16
|
+
},
|
|
17
|
+
letterSpacing: {
|
|
18
|
+
1: "0.25rem",
|
|
19
|
+
2: "0.5rem",
|
|
20
|
+
8: "2.0rem"
|
|
21
|
+
},
|
|
22
|
+
colors: {
|
|
23
|
+
black: "rgb(var(--black) / <alpha-value>)",
|
|
24
|
+
gray: {
|
|
25
|
+
100: "rgb(var(--gray-100) / <alpha-value>)",
|
|
26
|
+
200: "rgb(var(--gray-200) / <alpha-value>)",
|
|
27
|
+
300: "rgb(var(--gray-300) / <alpha-value>)",
|
|
28
|
+
400: "rgb(var(--gray-400) / <alpha-value>)",
|
|
29
|
+
500: "rgb(var(--gray-500) / <alpha-value>)",
|
|
30
|
+
600: "rgb(var(--gray-600) / <alpha-value>)",
|
|
31
|
+
700: "rgb(var(--gray-700) / <alpha-value>)",
|
|
32
|
+
800: "rgb(var(--gray-800) / <alpha-value>)",
|
|
33
|
+
900: "rgb(var(--gray-900) / <alpha-value>)"
|
|
34
|
+
},
|
|
35
|
+
primary: {
|
|
36
|
+
100: "rgb(var(--primary-100) / <alpha-value>)",
|
|
37
|
+
200: "rgb(var(--primary-200) / <alpha-value>)",
|
|
38
|
+
300: "rgb(var(--primary-300) / <alpha-value>)",
|
|
39
|
+
400: "rgb(var(--primary-400) / <alpha-value>)",
|
|
40
|
+
500: "rgb(var(--primary-500) / <alpha-value>)",
|
|
41
|
+
600: "rgb(var(--primary-600) / <alpha-value>)",
|
|
42
|
+
700: "rgb(var(--primary-700) / <alpha-value>)",
|
|
43
|
+
800: "rgb(var(--primary-800) / <alpha-value>)",
|
|
44
|
+
900: "rgb(var(--primary-900) / <alpha-value>)"
|
|
45
|
+
},
|
|
46
|
+
transparent: "transparent",
|
|
47
|
+
typography: {
|
|
48
|
+
DEFAULT: "rgb(var(--text-color) / <alpha-value>)",
|
|
49
|
+
primary: "rgb(var(--text-color) / 1)",
|
|
50
|
+
secondary: "rgb(var(--text-color) / 0.60)",
|
|
51
|
+
disabled: "rgb(var(--text-color) / 0.43)"
|
|
52
|
+
},
|
|
53
|
+
white: "rgb(var(--white) / <alpha-value>)"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
plugins: []
|
|
58
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Jan Szewczyk (Szum-Tech)",
|
|
3
|
+
"bugs": {
|
|
4
|
+
"url": "https://github.com/JanSzewczyk/design-system/issues"
|
|
5
|
+
},
|
|
6
|
+
"description": "Szum-Tech design system with tailwindcss support",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@babel/core": "^7.19.6",
|
|
9
|
+
"@semantic-release/changelog": "^6.0.1",
|
|
10
|
+
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
11
|
+
"@semantic-release/git": "^10.0.1",
|
|
12
|
+
"@semantic-release/github": "^8.0.6",
|
|
13
|
+
"@semantic-release/npm": "^9.0.1",
|
|
14
|
+
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
15
|
+
"@storybook/addon-actions": "^6.5.13",
|
|
16
|
+
"@storybook/addon-essentials": "^6.5.13",
|
|
17
|
+
"@storybook/addon-interactions": "^6.5.13",
|
|
18
|
+
"@storybook/addon-links": "^6.5.13",
|
|
19
|
+
"@storybook/addons": "^6.5.13",
|
|
20
|
+
"@storybook/builder-webpack5": "^6.5.13",
|
|
21
|
+
"@storybook/core-events": "^6.5.13",
|
|
22
|
+
"@storybook/manager-webpack5": "^6.5.13",
|
|
23
|
+
"@storybook/react": "^6.5.13",
|
|
24
|
+
"@storybook/testing-library": "^0.0.13",
|
|
25
|
+
"@storybook/theming": "^6.5.13",
|
|
26
|
+
"@testing-library/react": "^13.4.0",
|
|
27
|
+
"@testing-library/user-event": "^14.4.3",
|
|
28
|
+
"@types/prettier": "^2.7.1",
|
|
29
|
+
"@types/react": "^18.0.24",
|
|
30
|
+
"@types/react-dom": "^18.0.8",
|
|
31
|
+
"@types/semantic-release": "^17.2.4",
|
|
32
|
+
"autoprefixer": "^10.4.13",
|
|
33
|
+
"babel-loader": "^8.2.5",
|
|
34
|
+
"concurrently": "^7.5.0",
|
|
35
|
+
"cpy-cli": "^4.2.0",
|
|
36
|
+
"postcss": "^8.4.18",
|
|
37
|
+
"prettier": "^2.7.1",
|
|
38
|
+
"prettier-plugin-tailwindcss": "^0.1.13",
|
|
39
|
+
"react": "^18.2.0",
|
|
40
|
+
"react-docgen": "^5.4.3",
|
|
41
|
+
"react-docgen-typescript": "^2.2.2",
|
|
42
|
+
"react-dom": "^18.2.0",
|
|
43
|
+
"semantic-release": "^19.0.5",
|
|
44
|
+
"storybook-dark-mode": "^1.1.2",
|
|
45
|
+
"tailwindcss": "^3.2.1",
|
|
46
|
+
"tsup": "^6.3.0",
|
|
47
|
+
"typescript": "^4.8.4"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist/**"
|
|
51
|
+
],
|
|
52
|
+
"homepage": "https://github.com/JanSzewczyk/design-system#readme",
|
|
53
|
+
"keywords": [
|
|
54
|
+
"szum-tech",
|
|
55
|
+
"Szum-Tech",
|
|
56
|
+
"szum-tech design system",
|
|
57
|
+
"tailwindcss",
|
|
58
|
+
"React components",
|
|
59
|
+
"React JS"
|
|
60
|
+
],
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"main": "./dist/index.js",
|
|
63
|
+
"name": "@szum-tech/design-system",
|
|
64
|
+
"module": "./dist/index.mjs",
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public"
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/JanSzewczyk/design-system.git"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "tsup src/index.tsx --format esm,cjs --dts --treeshake --external react",
|
|
74
|
+
"clean": "rm -rf node_modules && rm -rf dist",
|
|
75
|
+
"dev": "concurrently \"npm run dev:css\" \"npm run dev:build\"",
|
|
76
|
+
"dev:build": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
77
|
+
"dev:css": "tailwindcss -w -i ./src/theme/index.css -o ./src/styles/default.css",
|
|
78
|
+
"postbuild": "cpy './tailwind-preset.js' './dist' && cpy 'index.css' '../../dist/' --cwd='src/theme'",
|
|
79
|
+
"storybook": "start-storybook -p 6006",
|
|
80
|
+
"semantic-release": "semantic-release",
|
|
81
|
+
"build-storybook": "build-storybook",
|
|
82
|
+
"build-storybook:docs": "build-storybook --docs",
|
|
83
|
+
"sd": "tailwindcss -i ./src/theme/index.css -o ./src/styles/default.css"
|
|
84
|
+
},
|
|
85
|
+
"sideEffects": false,
|
|
86
|
+
"types": "./dist/index.d.ts",
|
|
87
|
+
"version": "1.0.0",
|
|
88
|
+
"dependencies": {}
|
|
89
|
+
}
|