@szum-tech/design-system 1.18.3 → 2.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.
- package/LICENSE +1 -1
- package/README.md +116 -62
- package/dist/chunk-EKHM64CK.js +7290 -0
- package/dist/chunk-G4TX2R77.cjs +7613 -0
- package/dist/chunk-H2BWO3SI.cjs +11 -0
- package/dist/chunk-ZD2QRAOX.js +9 -0
- package/dist/icons.cjs +1294 -0
- package/dist/icons.js +1 -0
- package/dist/index.cjs +906 -0
- package/dist/index.d.cts +285 -0
- package/dist/index.d.ts +136 -189
- package/dist/index.js +827 -99
- package/dist/utils.cjs +10 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +1 -0
- package/package.json +97 -70
- package/tailwind/animation.css +53 -0
- package/tailwind/global.css +23 -0
- package/tailwind/palette.css +196 -0
- package/tailwind/scroll.css +25 -0
- package/tailwind/typography.css +74 -0
- package/dist/index.d.mts +0 -338
- package/dist/index.mjs +0 -19
- package/icons/index.js +0 -17
- package/icons/index.mjs +0 -6
- package/theme/global.css +0 -141
- package/theme/main-preset.js +0 -231
- /package/{icons/index.d.mts → dist/icons.d.cts} +0 -0
- /package/{icons/index.d.ts → dist/icons.d.ts} +0 -0
package/theme/main-preset.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
4
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// src/theme/presets/colors.js
|
|
8
|
-
var require_colors = __commonJS({
|
|
9
|
-
"src/theme/presets/colors.js"(exports2, module2) {
|
|
10
|
-
"use strict";
|
|
11
|
-
module2.exports = {
|
|
12
|
-
theme: {
|
|
13
|
-
colors: {
|
|
14
|
-
app: {
|
|
15
|
-
primary: "rgb(var(--foreground))",
|
|
16
|
-
secondary: "rgb(var(--background))"
|
|
17
|
-
},
|
|
18
|
-
black: "rgb(var(--black) / <alpha-value>)",
|
|
19
|
-
error: {
|
|
20
|
-
100: "rgb(var(--error-100) / <alpha-value>)",
|
|
21
|
-
200: "rgb(var(--error-200) / <alpha-value>)",
|
|
22
|
-
300: "rgb(var(--error-300) / <alpha-value>)",
|
|
23
|
-
400: "rgb(var(--error-400) / <alpha-value>)",
|
|
24
|
-
500: "rgb(var(--error-500) / <alpha-value>)",
|
|
25
|
-
600: "rgb(var(--error-600) / <alpha-value>)",
|
|
26
|
-
700: "rgb(var(--error-700) / <alpha-value>)",
|
|
27
|
-
800: "rgb(var(--error-800) / <alpha-value>)",
|
|
28
|
-
900: "rgb(var(--error-900) / <alpha-value>)"
|
|
29
|
-
},
|
|
30
|
-
gray: {
|
|
31
|
-
100: "rgb(var(--gray-100) / <alpha-value>)",
|
|
32
|
-
200: "rgb(var(--gray-200) / <alpha-value>)",
|
|
33
|
-
300: "rgb(var(--gray-300) / <alpha-value>)",
|
|
34
|
-
350: "rgb(var(--gray-350) / <alpha-value>)",
|
|
35
|
-
400: "rgb(var(--gray-400) / <alpha-value>)"
|
|
36
|
-
},
|
|
37
|
-
primary: {
|
|
38
|
-
100: "rgb(var(--primary-100) / <alpha-value>)",
|
|
39
|
-
200: "rgb(var(--primary-200) / <alpha-value>)",
|
|
40
|
-
300: "rgb(var(--primary-300) / <alpha-value>)",
|
|
41
|
-
400: "rgb(var(--primary-400) / <alpha-value>)",
|
|
42
|
-
500: "rgb(var(--primary-500) / <alpha-value>)",
|
|
43
|
-
600: "rgb(var(--primary-600) / <alpha-value>)",
|
|
44
|
-
700: "rgb(var(--primary-700) / <alpha-value>)",
|
|
45
|
-
800: "rgb(var(--primary-800) / <alpha-value>)",
|
|
46
|
-
900: "rgb(var(--primary-900) / <alpha-value>)"
|
|
47
|
-
},
|
|
48
|
-
success: {
|
|
49
|
-
100: "rgb(var(--success-100) / <alpha-value>)",
|
|
50
|
-
200: "rgb(var(--success-200) / <alpha-value>)",
|
|
51
|
-
300: "rgb(var(--success-300) / <alpha-value>)",
|
|
52
|
-
400: "rgb(var(--success-400) / <alpha-value>)",
|
|
53
|
-
500: "rgb(var(--success-500) / <alpha-value>)",
|
|
54
|
-
600: "rgb(var(--success-600) / <alpha-value>)",
|
|
55
|
-
700: "rgb(var(--success-700) / <alpha-value>)",
|
|
56
|
-
800: "rgb(var(--success-800) / <alpha-value>)",
|
|
57
|
-
900: "rgb(var(--success-900) / <alpha-value>)"
|
|
58
|
-
},
|
|
59
|
-
transparent: "transparent",
|
|
60
|
-
warning: {
|
|
61
|
-
50: "rgb(var(--warning-50) / <alpha-value>)",
|
|
62
|
-
100: "rgb(var(--warning-100) / <alpha-value>)",
|
|
63
|
-
200: "rgb(var(--warning-200) / <alpha-value>)",
|
|
64
|
-
300: "rgb(var(--warning-300) / <alpha-value>)",
|
|
65
|
-
400: "rgb(var(--warning-400) / <alpha-value>)",
|
|
66
|
-
500: "rgb(var(--warning-500) / <alpha-value>)",
|
|
67
|
-
600: "rgb(var(--warning-600) / <alpha-value>)",
|
|
68
|
-
700: "rgb(var(--warning-700) / <alpha-value>)",
|
|
69
|
-
800: "rgb(var(--warning-800) / <alpha-value>)",
|
|
70
|
-
900: "rgb(var(--warning-900) / <alpha-value>)",
|
|
71
|
-
950: "rgb(var(--warning-950) / <alpha-value>)"
|
|
72
|
-
},
|
|
73
|
-
white: "rgb(var(--white) / <alpha-value>)",
|
|
74
|
-
foreground: "rgb(var(--foreground) / <alpha-value>)",
|
|
75
|
-
background: "rgb(var(--background) / <alpha-value>)"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
// src/theme/plugins/utilities/scroll.js
|
|
83
|
-
var require_scroll = __commonJS({
|
|
84
|
-
"src/theme/plugins/utilities/scroll.js"(exports2, module2) {
|
|
85
|
-
"use strict";
|
|
86
|
-
var plugin = require("tailwindcss/plugin");
|
|
87
|
-
module2.exports = plugin(function({ addUtilities }) {
|
|
88
|
-
addUtilities({
|
|
89
|
-
".scroll": {
|
|
90
|
-
"@apply scrollbar scrollbar-thin scrollbar-track-app-secondary scrollbar-thumb-gray-400 hover:scrollbar-thumb-gray-350": {}
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
// src/theme/plugins/utilities/typography.js
|
|
98
|
-
var require_typography = __commonJS({
|
|
99
|
-
"src/theme/plugins/utilities/typography.js"(exports2, module2) {
|
|
100
|
-
"use strict";
|
|
101
|
-
var plugin = require("tailwindcss/plugin");
|
|
102
|
-
module2.exports = plugin(function({ addUtilities }) {
|
|
103
|
-
addUtilities({
|
|
104
|
-
".typography-heading-1": {
|
|
105
|
-
"@apply font-poppins text-6xl font-light leading-relaxed -tracking-[.01562em]": {}
|
|
106
|
-
},
|
|
107
|
-
".typography-heading-2": {
|
|
108
|
-
"@apply leading-[1.2] font-poppins text-5xl font-light -tracking-[.00833em]": {}
|
|
109
|
-
},
|
|
110
|
-
".typography-heading-3": {
|
|
111
|
-
"@apply font-poppins text-4xl font-normal leading-[1.167] tracking-normal": {}
|
|
112
|
-
},
|
|
113
|
-
".typography-heading-4": {
|
|
114
|
-
"@apply font-poppins text-3xl font-normal leading-[1.235] tracking-[.00735em]": {}
|
|
115
|
-
},
|
|
116
|
-
".typography-heading-5": {
|
|
117
|
-
"@apply font-poppins text-2xl font-normal leading-[1.334] tracking-normal": {}
|
|
118
|
-
},
|
|
119
|
-
".typography-heading-6": {
|
|
120
|
-
"@apply font-poppins text-xl font-normal font-medium leading-[1.6] tracking-[.0075em]": {}
|
|
121
|
-
},
|
|
122
|
-
".typography-subtitle-1": {
|
|
123
|
-
"@apply font-poppins text-md leading-7 tracking-[.00938em]": {}
|
|
124
|
-
},
|
|
125
|
-
".typography-subtitle-2": {
|
|
126
|
-
"@apply font-poppins text-sm font-medium leading-[1.57] tracking-[.00714em]": {}
|
|
127
|
-
},
|
|
128
|
-
".typography-body-1": {
|
|
129
|
-
"@apply font-poppins text-md font-normal leading-normal tracking-[.00938em]": {}
|
|
130
|
-
},
|
|
131
|
-
".typography-body-2": {
|
|
132
|
-
"@apply font-poppins text-sm font-normal leading-[1.43] tracking-[.01071em]": {}
|
|
133
|
-
},
|
|
134
|
-
".typography-button": {
|
|
135
|
-
"@apply font-poppins text-sm font-medium leading-5 tracking-[.02857em]": {}
|
|
136
|
-
},
|
|
137
|
-
".typography-caption": {
|
|
138
|
-
"@apply font-poppins text-xs font-normal leading-[1.66] tracking-[.03333em]": {}
|
|
139
|
-
},
|
|
140
|
-
".typography-overline": {
|
|
141
|
-
"@apply font-poppins text-xs font-normal uppercase leading-[2.66] tracking-[.08333em]": {}
|
|
142
|
-
},
|
|
143
|
-
".typography-code": {
|
|
144
|
-
"@apply font-code text-md font-bold leading-5 tracking-wide": {}
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
// src/theme/main-preset.js
|
|
152
|
-
module.exports = {
|
|
153
|
-
darkMode: "class",
|
|
154
|
-
theme: {
|
|
155
|
-
container: {
|
|
156
|
-
center: true,
|
|
157
|
-
padding: "1rem",
|
|
158
|
-
screens: {
|
|
159
|
-
"2xl": "1400px"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
fontFamily: {
|
|
163
|
-
poppins: ["'Poppins', sans-serif"],
|
|
164
|
-
code: ["'JetBrains Mono', monospace"]
|
|
165
|
-
},
|
|
166
|
-
fontSize: {
|
|
167
|
-
xs: "0.75rem",
|
|
168
|
-
sm: "0.875rem",
|
|
169
|
-
md: "1rem",
|
|
170
|
-
xl: "1.25rem",
|
|
171
|
-
"2xl": "1.5rem",
|
|
172
|
-
"3xl": "2.125rem",
|
|
173
|
-
"4xl": "3rem",
|
|
174
|
-
"5xl": "3.75rem",
|
|
175
|
-
"6xl": "6rem"
|
|
176
|
-
},
|
|
177
|
-
extend: {
|
|
178
|
-
borderRadius: {
|
|
179
|
-
"1/2": "50%"
|
|
180
|
-
},
|
|
181
|
-
letterSpacing: {
|
|
182
|
-
1: "0.25rem",
|
|
183
|
-
2: "0.5rem",
|
|
184
|
-
8: "2.0rem"
|
|
185
|
-
},
|
|
186
|
-
spacing: {
|
|
187
|
-
4.5: "1.125rem",
|
|
188
|
-
5.5: "1.375rem"
|
|
189
|
-
},
|
|
190
|
-
width: {
|
|
191
|
-
128: "32.0rem",
|
|
192
|
-
300: "75.0rem"
|
|
193
|
-
},
|
|
194
|
-
minHeight: {
|
|
195
|
-
10: "2.5rem"
|
|
196
|
-
},
|
|
197
|
-
keyframes: {
|
|
198
|
-
slideDownAndFade: {
|
|
199
|
-
from: { opacity: 0, transform: "translateY(-2px)" },
|
|
200
|
-
to: { opacity: 1, transform: "translateY(0)" }
|
|
201
|
-
},
|
|
202
|
-
slideLeftAndFade: {
|
|
203
|
-
from: { opacity: 0, transform: "translateX(2px)" },
|
|
204
|
-
to: { opacity: 1, transform: "translateX(0)" }
|
|
205
|
-
},
|
|
206
|
-
slideUpAndFade: {
|
|
207
|
-
from: { opacity: 0, transform: "translateY(2px)" },
|
|
208
|
-
to: { opacity: 1, transform: "translateY(0)" }
|
|
209
|
-
},
|
|
210
|
-
slideRightAndFade: {
|
|
211
|
-
from: { opacity: 0, transform: "translateX(-2px)" },
|
|
212
|
-
to: { opacity: 1, transform: "translateX(0)" }
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
animation: {
|
|
216
|
-
slideDownAndFade: "slideDownAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
217
|
-
slideLeftAndFade: "slideLeftAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
218
|
-
slideUpAndFade: "slideUpAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)",
|
|
219
|
-
slideRightAndFade: "slideRightAndFade 400ms cubic-bezier(0.16, 1, 0.3, 1)"
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
presets: [require_colors()],
|
|
224
|
-
plugins: [
|
|
225
|
-
require("@tailwindcss/container-queries"),
|
|
226
|
-
require("tailwind-scrollbar"),
|
|
227
|
-
require("tailwindcss-animate"),
|
|
228
|
-
require_scroll(),
|
|
229
|
-
require_typography()
|
|
230
|
-
]
|
|
231
|
-
};
|
|
File without changes
|
|
File without changes
|