@shuriken-ui/tailwind 1.0.0-beta.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/colors.d.cts +2 -0
- package/dist/colors.d.mts +2 -0
- package/dist/colors.d.ts +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +200 -0
- package/dist/config.d.mts +200 -0
- package/dist/config.d.ts +2 -15
- package/dist/config.mjs +2 -2
- package/dist/index.cjs +12 -5
- package/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +4 -627
- package/dist/index.mjs +11 -6
- package/dist/preset.cjs +68 -26
- package/dist/preset.d.cts +393 -0
- package/dist/preset.d.mts +393 -0
- package/dist/preset.d.ts +6 -31
- package/dist/preset.mjs +67 -24
- package/package.json +15 -15
package/dist/colors.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
|
2
|
-
export {
|
2
|
+
export { }
|
package/dist/config.cjs
CHANGED
@@ -0,0 +1,200 @@
|
|
1
|
+
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
|
+
import * as typography from '@tailwindcss/typography';
|
3
|
+
import { Config } from 'tailwindcss';
|
4
|
+
|
5
|
+
declare const _default: {
|
6
|
+
content: never[];
|
7
|
+
presets: {
|
8
|
+
darkMode: "class";
|
9
|
+
content: never[];
|
10
|
+
plugins: (typeof typography | {
|
11
|
+
handler: () => void;
|
12
|
+
} | {
|
13
|
+
handler: tailwindcss_types_config.PluginCreator;
|
14
|
+
config?: Partial<Config> | undefined;
|
15
|
+
})[];
|
16
|
+
theme: {
|
17
|
+
fontFamily: {
|
18
|
+
sans: string[];
|
19
|
+
heading: string[];
|
20
|
+
alt: string[];
|
21
|
+
mono: string[];
|
22
|
+
};
|
23
|
+
extend: {
|
24
|
+
colors: {
|
25
|
+
muted: {
|
26
|
+
'50': "#f8fafc";
|
27
|
+
'100': "#f1f5f9";
|
28
|
+
'200': "#e2e8f0";
|
29
|
+
'300': "#cbd5e1";
|
30
|
+
'400': "#94a3b8";
|
31
|
+
'500': "#64748b";
|
32
|
+
'600': "#475569";
|
33
|
+
'700': "#334155";
|
34
|
+
'800': "#1e293b";
|
35
|
+
'900': "#0f172a";
|
36
|
+
'950': "#020617";
|
37
|
+
};
|
38
|
+
primary: {
|
39
|
+
'50': "#f5f3ff";
|
40
|
+
'100': "#ede9fe";
|
41
|
+
'200': "#ddd6fe";
|
42
|
+
'300': "#c4b5fd";
|
43
|
+
'400': "#a78bfa";
|
44
|
+
'500': "#8b5cf6";
|
45
|
+
'600': "#7c3aed";
|
46
|
+
'700': "#6d28d9";
|
47
|
+
'800': "#5b21b6";
|
48
|
+
'900': "#4c1d95";
|
49
|
+
'950': "#2e1065";
|
50
|
+
};
|
51
|
+
info: {
|
52
|
+
'50': "#f0f9ff";
|
53
|
+
'100': "#e0f2fe";
|
54
|
+
'200': "#bae6fd";
|
55
|
+
'300': "#7dd3fc";
|
56
|
+
'400': "#38bdf8";
|
57
|
+
'500': "#0ea5e9";
|
58
|
+
'600': "#0284c7";
|
59
|
+
'700': "#0369a1";
|
60
|
+
'800': "#075985";
|
61
|
+
'900': "#0c4a6e";
|
62
|
+
'950': "#082f49";
|
63
|
+
};
|
64
|
+
success: {
|
65
|
+
'50': "#f0fdfa";
|
66
|
+
'100': "#ccfbf1";
|
67
|
+
'200': "#99f6e4";
|
68
|
+
'300': "#5eead4";
|
69
|
+
'400': "#2dd4bf";
|
70
|
+
'500': "#14b8a6";
|
71
|
+
'600': "#0d9488";
|
72
|
+
'700': "#0f766e";
|
73
|
+
'800': "#115e59";
|
74
|
+
'900': "#134e4a";
|
75
|
+
'950': "#042f2e";
|
76
|
+
};
|
77
|
+
warning: {
|
78
|
+
'50': "#fffbeb";
|
79
|
+
'100': "#fef3c7";
|
80
|
+
'200': "#fde68a";
|
81
|
+
'300': "#fcd34d";
|
82
|
+
'400': "#fbbf24";
|
83
|
+
'500': "#f59e0b";
|
84
|
+
'600': "#d97706";
|
85
|
+
'700': "#b45309";
|
86
|
+
'800': "#92400e";
|
87
|
+
'900': "#78350f";
|
88
|
+
'950': "#451a03";
|
89
|
+
};
|
90
|
+
danger: {
|
91
|
+
'50': "#fff1f2";
|
92
|
+
'100': "#ffe4e6";
|
93
|
+
'200': "#fecdd3";
|
94
|
+
'300': "#fda4af";
|
95
|
+
'400': "#fb7185";
|
96
|
+
'500': "#f43f5e";
|
97
|
+
'600': "#e11d48";
|
98
|
+
'700': "#be123c";
|
99
|
+
'800': "#9f1239";
|
100
|
+
'900': "#881337";
|
101
|
+
'950': "#4c0519";
|
102
|
+
};
|
103
|
+
};
|
104
|
+
screens: {
|
105
|
+
xs: {
|
106
|
+
max: string;
|
107
|
+
};
|
108
|
+
lg: string;
|
109
|
+
ptablet: {
|
110
|
+
raw: string;
|
111
|
+
};
|
112
|
+
ltablet: {
|
113
|
+
raw: string;
|
114
|
+
};
|
115
|
+
};
|
116
|
+
typography: ({ theme }: any) => {
|
117
|
+
primary: {
|
118
|
+
css: {
|
119
|
+
'--tw-prose-links': any;
|
120
|
+
'--tw-prose-quote-borders': any;
|
121
|
+
'--tw-prose-invert-links': any;
|
122
|
+
'--tw-prose-invert-quote-borders': any;
|
123
|
+
};
|
124
|
+
};
|
125
|
+
muted: {
|
126
|
+
css: {
|
127
|
+
'--tw-prose-body': any;
|
128
|
+
'--tw-prose-headings': any;
|
129
|
+
'--tw-prose-lead': any;
|
130
|
+
'--tw-prose-bold': any;
|
131
|
+
'--tw-prose-counters': any;
|
132
|
+
'--tw-prose-bullets': any;
|
133
|
+
'--tw-prose-hr': any;
|
134
|
+
'--tw-prose-quotes': any;
|
135
|
+
'--tw-prose-captions': any;
|
136
|
+
'--tw-prose-code': any;
|
137
|
+
'--tw-prose-pre-code': any;
|
138
|
+
'--tw-prose-pre-bg': any;
|
139
|
+
'--tw-prose-th-borders': any;
|
140
|
+
'--tw-prose-td-borders': any;
|
141
|
+
'--tw-prose-invert-body': any;
|
142
|
+
'--tw-prose-invert-headings': any;
|
143
|
+
'--tw-prose-invert-lead': any;
|
144
|
+
'--tw-prose-invert-bold': any;
|
145
|
+
'--tw-prose-invert-counters': any;
|
146
|
+
'--tw-prose-invert-bullets': any;
|
147
|
+
'--tw-prose-invert-hr': any;
|
148
|
+
'--tw-prose-invert-quotes': any;
|
149
|
+
'--tw-prose-invert-captions': any;
|
150
|
+
'--tw-prose-invert-code': any;
|
151
|
+
'--tw-prose-invert-pre-code': any;
|
152
|
+
'--tw-prose-invert-pre-bg': any;
|
153
|
+
'--tw-prose-invert-th-borders': any;
|
154
|
+
'--tw-prose-invert-td-borders': any;
|
155
|
+
};
|
156
|
+
};
|
157
|
+
css: {
|
158
|
+
h1: {
|
159
|
+
fontWeight: number;
|
160
|
+
};
|
161
|
+
h2: {
|
162
|
+
fontWeight: number;
|
163
|
+
};
|
164
|
+
h3: {
|
165
|
+
fontWeight: number;
|
166
|
+
};
|
167
|
+
h4: {
|
168
|
+
fontWeight: number;
|
169
|
+
};
|
170
|
+
li: {
|
171
|
+
fontSize: string;
|
172
|
+
padding: string;
|
173
|
+
};
|
174
|
+
em: {
|
175
|
+
fontSize: string;
|
176
|
+
lineHeight: number;
|
177
|
+
};
|
178
|
+
blockquote: {
|
179
|
+
fontSize: string;
|
180
|
+
lineHeight: number;
|
181
|
+
fontWeight: number;
|
182
|
+
padding: string;
|
183
|
+
};
|
184
|
+
pre: {
|
185
|
+
fontFamily: any;
|
186
|
+
};
|
187
|
+
code: {
|
188
|
+
fontFamily: any;
|
189
|
+
padding: string;
|
190
|
+
fontWeight: number;
|
191
|
+
fontSize: string;
|
192
|
+
};
|
193
|
+
};
|
194
|
+
};
|
195
|
+
};
|
196
|
+
};
|
197
|
+
}[];
|
198
|
+
};
|
199
|
+
|
200
|
+
export { _default as default };
|
@@ -0,0 +1,200 @@
|
|
1
|
+
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
|
+
import * as typography from '@tailwindcss/typography';
|
3
|
+
import { Config } from 'tailwindcss';
|
4
|
+
|
5
|
+
declare const _default: {
|
6
|
+
content: never[];
|
7
|
+
presets: {
|
8
|
+
darkMode: "class";
|
9
|
+
content: never[];
|
10
|
+
plugins: (typeof typography | {
|
11
|
+
handler: () => void;
|
12
|
+
} | {
|
13
|
+
handler: tailwindcss_types_config.PluginCreator;
|
14
|
+
config?: Partial<Config> | undefined;
|
15
|
+
})[];
|
16
|
+
theme: {
|
17
|
+
fontFamily: {
|
18
|
+
sans: string[];
|
19
|
+
heading: string[];
|
20
|
+
alt: string[];
|
21
|
+
mono: string[];
|
22
|
+
};
|
23
|
+
extend: {
|
24
|
+
colors: {
|
25
|
+
muted: {
|
26
|
+
'50': "#f8fafc";
|
27
|
+
'100': "#f1f5f9";
|
28
|
+
'200': "#e2e8f0";
|
29
|
+
'300': "#cbd5e1";
|
30
|
+
'400': "#94a3b8";
|
31
|
+
'500': "#64748b";
|
32
|
+
'600': "#475569";
|
33
|
+
'700': "#334155";
|
34
|
+
'800': "#1e293b";
|
35
|
+
'900': "#0f172a";
|
36
|
+
'950': "#020617";
|
37
|
+
};
|
38
|
+
primary: {
|
39
|
+
'50': "#f5f3ff";
|
40
|
+
'100': "#ede9fe";
|
41
|
+
'200': "#ddd6fe";
|
42
|
+
'300': "#c4b5fd";
|
43
|
+
'400': "#a78bfa";
|
44
|
+
'500': "#8b5cf6";
|
45
|
+
'600': "#7c3aed";
|
46
|
+
'700': "#6d28d9";
|
47
|
+
'800': "#5b21b6";
|
48
|
+
'900': "#4c1d95";
|
49
|
+
'950': "#2e1065";
|
50
|
+
};
|
51
|
+
info: {
|
52
|
+
'50': "#f0f9ff";
|
53
|
+
'100': "#e0f2fe";
|
54
|
+
'200': "#bae6fd";
|
55
|
+
'300': "#7dd3fc";
|
56
|
+
'400': "#38bdf8";
|
57
|
+
'500': "#0ea5e9";
|
58
|
+
'600': "#0284c7";
|
59
|
+
'700': "#0369a1";
|
60
|
+
'800': "#075985";
|
61
|
+
'900': "#0c4a6e";
|
62
|
+
'950': "#082f49";
|
63
|
+
};
|
64
|
+
success: {
|
65
|
+
'50': "#f0fdfa";
|
66
|
+
'100': "#ccfbf1";
|
67
|
+
'200': "#99f6e4";
|
68
|
+
'300': "#5eead4";
|
69
|
+
'400': "#2dd4bf";
|
70
|
+
'500': "#14b8a6";
|
71
|
+
'600': "#0d9488";
|
72
|
+
'700': "#0f766e";
|
73
|
+
'800': "#115e59";
|
74
|
+
'900': "#134e4a";
|
75
|
+
'950': "#042f2e";
|
76
|
+
};
|
77
|
+
warning: {
|
78
|
+
'50': "#fffbeb";
|
79
|
+
'100': "#fef3c7";
|
80
|
+
'200': "#fde68a";
|
81
|
+
'300': "#fcd34d";
|
82
|
+
'400': "#fbbf24";
|
83
|
+
'500': "#f59e0b";
|
84
|
+
'600': "#d97706";
|
85
|
+
'700': "#b45309";
|
86
|
+
'800': "#92400e";
|
87
|
+
'900': "#78350f";
|
88
|
+
'950': "#451a03";
|
89
|
+
};
|
90
|
+
danger: {
|
91
|
+
'50': "#fff1f2";
|
92
|
+
'100': "#ffe4e6";
|
93
|
+
'200': "#fecdd3";
|
94
|
+
'300': "#fda4af";
|
95
|
+
'400': "#fb7185";
|
96
|
+
'500': "#f43f5e";
|
97
|
+
'600': "#e11d48";
|
98
|
+
'700': "#be123c";
|
99
|
+
'800': "#9f1239";
|
100
|
+
'900': "#881337";
|
101
|
+
'950': "#4c0519";
|
102
|
+
};
|
103
|
+
};
|
104
|
+
screens: {
|
105
|
+
xs: {
|
106
|
+
max: string;
|
107
|
+
};
|
108
|
+
lg: string;
|
109
|
+
ptablet: {
|
110
|
+
raw: string;
|
111
|
+
};
|
112
|
+
ltablet: {
|
113
|
+
raw: string;
|
114
|
+
};
|
115
|
+
};
|
116
|
+
typography: ({ theme }: any) => {
|
117
|
+
primary: {
|
118
|
+
css: {
|
119
|
+
'--tw-prose-links': any;
|
120
|
+
'--tw-prose-quote-borders': any;
|
121
|
+
'--tw-prose-invert-links': any;
|
122
|
+
'--tw-prose-invert-quote-borders': any;
|
123
|
+
};
|
124
|
+
};
|
125
|
+
muted: {
|
126
|
+
css: {
|
127
|
+
'--tw-prose-body': any;
|
128
|
+
'--tw-prose-headings': any;
|
129
|
+
'--tw-prose-lead': any;
|
130
|
+
'--tw-prose-bold': any;
|
131
|
+
'--tw-prose-counters': any;
|
132
|
+
'--tw-prose-bullets': any;
|
133
|
+
'--tw-prose-hr': any;
|
134
|
+
'--tw-prose-quotes': any;
|
135
|
+
'--tw-prose-captions': any;
|
136
|
+
'--tw-prose-code': any;
|
137
|
+
'--tw-prose-pre-code': any;
|
138
|
+
'--tw-prose-pre-bg': any;
|
139
|
+
'--tw-prose-th-borders': any;
|
140
|
+
'--tw-prose-td-borders': any;
|
141
|
+
'--tw-prose-invert-body': any;
|
142
|
+
'--tw-prose-invert-headings': any;
|
143
|
+
'--tw-prose-invert-lead': any;
|
144
|
+
'--tw-prose-invert-bold': any;
|
145
|
+
'--tw-prose-invert-counters': any;
|
146
|
+
'--tw-prose-invert-bullets': any;
|
147
|
+
'--tw-prose-invert-hr': any;
|
148
|
+
'--tw-prose-invert-quotes': any;
|
149
|
+
'--tw-prose-invert-captions': any;
|
150
|
+
'--tw-prose-invert-code': any;
|
151
|
+
'--tw-prose-invert-pre-code': any;
|
152
|
+
'--tw-prose-invert-pre-bg': any;
|
153
|
+
'--tw-prose-invert-th-borders': any;
|
154
|
+
'--tw-prose-invert-td-borders': any;
|
155
|
+
};
|
156
|
+
};
|
157
|
+
css: {
|
158
|
+
h1: {
|
159
|
+
fontWeight: number;
|
160
|
+
};
|
161
|
+
h2: {
|
162
|
+
fontWeight: number;
|
163
|
+
};
|
164
|
+
h3: {
|
165
|
+
fontWeight: number;
|
166
|
+
};
|
167
|
+
h4: {
|
168
|
+
fontWeight: number;
|
169
|
+
};
|
170
|
+
li: {
|
171
|
+
fontSize: string;
|
172
|
+
padding: string;
|
173
|
+
};
|
174
|
+
em: {
|
175
|
+
fontSize: string;
|
176
|
+
lineHeight: number;
|
177
|
+
};
|
178
|
+
blockquote: {
|
179
|
+
fontSize: string;
|
180
|
+
lineHeight: number;
|
181
|
+
fontWeight: number;
|
182
|
+
padding: string;
|
183
|
+
};
|
184
|
+
pre: {
|
185
|
+
fontFamily: any;
|
186
|
+
};
|
187
|
+
code: {
|
188
|
+
fontFamily: any;
|
189
|
+
padding: string;
|
190
|
+
fontWeight: number;
|
191
|
+
fontSize: string;
|
192
|
+
};
|
193
|
+
};
|
194
|
+
};
|
195
|
+
};
|
196
|
+
};
|
197
|
+
}[];
|
198
|
+
};
|
199
|
+
|
200
|
+
export { _default as default };
|
package/dist/config.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
|
-
import * as
|
2
|
+
import * as typography from '@tailwindcss/typography';
|
3
3
|
import { Config } from 'tailwindcss';
|
4
4
|
|
5
5
|
declare const _default: {
|
@@ -7,7 +7,7 @@ declare const _default: {
|
|
7
7
|
presets: {
|
8
8
|
darkMode: "class";
|
9
9
|
content: never[];
|
10
|
-
plugins: (typeof
|
10
|
+
plugins: (typeof typography | {
|
11
11
|
handler: () => void;
|
12
12
|
} | {
|
13
13
|
handler: tailwindcss_types_config.PluginCreator;
|
@@ -192,19 +192,6 @@ declare const _default: {
|
|
192
192
|
};
|
193
193
|
};
|
194
194
|
};
|
195
|
-
keyframes: {
|
196
|
-
'nui-indeterminate': {
|
197
|
-
'0%': {
|
198
|
-
'margin-left': string;
|
199
|
-
};
|
200
|
-
'100%': {
|
201
|
-
'margin-left': string;
|
202
|
-
};
|
203
|
-
};
|
204
|
-
};
|
205
|
-
animation: {
|
206
|
-
'nui-indeterminate': string;
|
207
|
-
};
|
208
195
|
};
|
209
196
|
};
|
210
197
|
}[];
|
package/dist/config.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { preset } from './preset.mjs';
|
2
2
|
import 'tailwindcss/defaultTheme';
|
3
3
|
import 'tailwindcss/colors';
|
4
4
|
import '@tailwindcss/typography';
|
@@ -9,7 +9,7 @@ import 'defu';
|
|
9
9
|
|
10
10
|
const config = {
|
11
11
|
content: [],
|
12
|
-
presets: [
|
12
|
+
presets: [preset]
|
13
13
|
};
|
14
14
|
|
15
15
|
export { config as default };
|
package/dist/index.cjs
CHANGED
@@ -1,17 +1,24 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const
|
4
|
-
const config = require('./config.cjs');
|
5
|
-
require('./preset.cjs');
|
3
|
+
const preset = require('./preset.cjs');
|
6
4
|
require('tailwindcss/defaultTheme');
|
7
5
|
require('tailwindcss/colors');
|
8
6
|
require('@tailwindcss/typography');
|
9
7
|
require('@tailwindcss/aspect-ratio');
|
10
8
|
require('@tailwindcss/container-queries');
|
11
9
|
require('tailwindcss/plugin');
|
10
|
+
require('defu');
|
12
11
|
|
13
|
-
function withShurikenUI(
|
14
|
-
|
12
|
+
function withShurikenUI(config) {
|
13
|
+
if (preset.hasPreset(config)) {
|
14
|
+
return config;
|
15
|
+
}
|
16
|
+
config.presets ?? (config.presets = []);
|
17
|
+
config.presets.push(preset.preset);
|
18
|
+
return config;
|
15
19
|
}
|
16
20
|
|
21
|
+
exports.createPreset = preset.createPreset;
|
22
|
+
exports.hasPreset = preset.hasPreset;
|
23
|
+
exports.preset = preset.preset;
|
17
24
|
exports.withShurikenUI = withShurikenUI;
|
package/dist/index.d.cts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Config } from 'tailwindcss';
|
2
|
+
export { createPreset, hasPreset, preset } from './preset.cjs';
|
3
|
+
import 'tailwindcss/types/config';
|
4
|
+
import '@tailwindcss/typography';
|
5
|
+
|
6
|
+
declare function withShurikenUI(config: Config): Config;
|
7
|
+
|
8
|
+
export { withShurikenUI };
|
package/dist/index.d.mts
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Config } from 'tailwindcss';
|
2
|
+
export { createPreset, hasPreset, preset } from './preset.mjs';
|
3
|
+
import 'tailwindcss/types/config';
|
4
|
+
import '@tailwindcss/typography';
|
5
|
+
|
6
|
+
declare function withShurikenUI(config: Config): Config;
|
7
|
+
|
8
|
+
export { withShurikenUI };
|