@skeletonlabs/skeleton 3.0.0-next.1 → 3.0.0-next.10
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/dist/core/index.cjs +2 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/plugin/index.cjs +26 -4
- package/dist/plugin/index.cjs.map +1 -1
- package/dist/plugin/index.d.cts +286 -0
- package/dist/plugin/index.d.ts +18 -2
- package/dist/plugin/index.js +419 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/themes/index.cjs +5044 -0
- package/dist/themes/index.cjs.map +1 -0
- package/dist/themes/index.d.cts +5223 -0
- package/dist/themes/index.d.ts +4128 -22
- package/dist/themes/index.js +4445 -384
- package/dist/themes/index.js.map +1 -1
- package/package.json +36 -30
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import * as tailwindcss_types_config_js from 'tailwindcss/types/config.js';
|
|
2
|
+
|
|
3
|
+
type Theme = {
|
|
4
|
+
name: string;
|
|
5
|
+
properties: ThemeProperties;
|
|
6
|
+
metadata: {
|
|
7
|
+
version: string;
|
|
8
|
+
emoji?: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
type ThemeProperties = {
|
|
12
|
+
'--space-scale-factor': string;
|
|
13
|
+
'--type-scale-factor': string;
|
|
14
|
+
'--type-scale-1': string;
|
|
15
|
+
'--type-scale-2': string;
|
|
16
|
+
'--type-scale-3': string;
|
|
17
|
+
'--type-scale-4': string;
|
|
18
|
+
'--type-scale-5': string;
|
|
19
|
+
'--type-scale-6': string;
|
|
20
|
+
'--type-scale-7': string;
|
|
21
|
+
'--type-scale-8': string;
|
|
22
|
+
'--type-scale-9': string;
|
|
23
|
+
'--type-scale-10': string;
|
|
24
|
+
'--type-scale-11': string;
|
|
25
|
+
'--type-scale-12': string;
|
|
26
|
+
'--type-scale-13': string;
|
|
27
|
+
'--base-font-color': string;
|
|
28
|
+
'--base-font-color-dark': string;
|
|
29
|
+
'--base-font-family': string;
|
|
30
|
+
'--base-font-size': string;
|
|
31
|
+
'--base-line-height': string;
|
|
32
|
+
'--base-font-weight': string;
|
|
33
|
+
'--base-font-style': string;
|
|
34
|
+
'--base-letter-spacing': string;
|
|
35
|
+
'--heading-font-color': string;
|
|
36
|
+
'--heading-font-color-dark': string;
|
|
37
|
+
'--heading-font-family': string;
|
|
38
|
+
'--heading-font-weight': string;
|
|
39
|
+
'--heading-font-style': string;
|
|
40
|
+
'--heading-letter-spacing': string;
|
|
41
|
+
'--anchor-font-color': string;
|
|
42
|
+
'--anchor-font-color-dark': string;
|
|
43
|
+
'--anchor-font-family': string;
|
|
44
|
+
'--anchor-font-size': string;
|
|
45
|
+
'--anchor-line-height': string;
|
|
46
|
+
'--anchor-font-weight': string;
|
|
47
|
+
'--anchor-font-style': string;
|
|
48
|
+
'--anchor-letter-spacing': string;
|
|
49
|
+
'--anchor-text-decoration': string;
|
|
50
|
+
'--anchor-text-decoration-hover': string;
|
|
51
|
+
'--anchor-text-decoration-active': string;
|
|
52
|
+
'--anchor-text-decoration-focus': string;
|
|
53
|
+
'--body-background-color': string;
|
|
54
|
+
'--body-background-color-dark': string;
|
|
55
|
+
'--radii-default': string;
|
|
56
|
+
'--radii-container': string;
|
|
57
|
+
'--border-width-default': string;
|
|
58
|
+
'--ring-width-default': string;
|
|
59
|
+
'--outline-width-default': string;
|
|
60
|
+
'--divide-width-default': string;
|
|
61
|
+
'--color-primary-50': string;
|
|
62
|
+
'--color-primary-100': string;
|
|
63
|
+
'--color-primary-200': string;
|
|
64
|
+
'--color-primary-300': string;
|
|
65
|
+
'--color-primary-400': string;
|
|
66
|
+
'--color-primary-500': string;
|
|
67
|
+
'--color-primary-600': string;
|
|
68
|
+
'--color-primary-700': string;
|
|
69
|
+
'--color-primary-800': string;
|
|
70
|
+
'--color-primary-900': string;
|
|
71
|
+
'--color-primary-950': string;
|
|
72
|
+
'--color-primary-contrast-dark': string;
|
|
73
|
+
'--color-primary-contrast-light': string;
|
|
74
|
+
'--color-primary-contrast-50': string;
|
|
75
|
+
'--color-primary-contrast-100': string;
|
|
76
|
+
'--color-primary-contrast-200': string;
|
|
77
|
+
'--color-primary-contrast-300': string;
|
|
78
|
+
'--color-primary-contrast-400': string;
|
|
79
|
+
'--color-primary-contrast-500': string;
|
|
80
|
+
'--color-primary-contrast-600': string;
|
|
81
|
+
'--color-primary-contrast-700': string;
|
|
82
|
+
'--color-primary-contrast-800': string;
|
|
83
|
+
'--color-primary-contrast-900': string;
|
|
84
|
+
'--color-primary-contrast-950': string;
|
|
85
|
+
'--color-secondary-50': string;
|
|
86
|
+
'--color-secondary-100': string;
|
|
87
|
+
'--color-secondary-200': string;
|
|
88
|
+
'--color-secondary-300': string;
|
|
89
|
+
'--color-secondary-400': string;
|
|
90
|
+
'--color-secondary-500': string;
|
|
91
|
+
'--color-secondary-600': string;
|
|
92
|
+
'--color-secondary-700': string;
|
|
93
|
+
'--color-secondary-800': string;
|
|
94
|
+
'--color-secondary-900': string;
|
|
95
|
+
'--color-secondary-950': string;
|
|
96
|
+
'--color-secondary-contrast-dark': string;
|
|
97
|
+
'--color-secondary-contrast-light': string;
|
|
98
|
+
'--color-secondary-contrast-50': string;
|
|
99
|
+
'--color-secondary-contrast-100': string;
|
|
100
|
+
'--color-secondary-contrast-200': string;
|
|
101
|
+
'--color-secondary-contrast-300': string;
|
|
102
|
+
'--color-secondary-contrast-400': string;
|
|
103
|
+
'--color-secondary-contrast-500': string;
|
|
104
|
+
'--color-secondary-contrast-600': string;
|
|
105
|
+
'--color-secondary-contrast-700': string;
|
|
106
|
+
'--color-secondary-contrast-800': string;
|
|
107
|
+
'--color-secondary-contrast-900': string;
|
|
108
|
+
'--color-secondary-contrast-950': string;
|
|
109
|
+
'--color-tertiary-50': string;
|
|
110
|
+
'--color-tertiary-100': string;
|
|
111
|
+
'--color-tertiary-200': string;
|
|
112
|
+
'--color-tertiary-300': string;
|
|
113
|
+
'--color-tertiary-400': string;
|
|
114
|
+
'--color-tertiary-500': string;
|
|
115
|
+
'--color-tertiary-600': string;
|
|
116
|
+
'--color-tertiary-700': string;
|
|
117
|
+
'--color-tertiary-800': string;
|
|
118
|
+
'--color-tertiary-900': string;
|
|
119
|
+
'--color-tertiary-950': string;
|
|
120
|
+
'--color-tertiary-contrast-dark': string;
|
|
121
|
+
'--color-tertiary-contrast-light': string;
|
|
122
|
+
'--color-tertiary-contrast-50': string;
|
|
123
|
+
'--color-tertiary-contrast-100': string;
|
|
124
|
+
'--color-tertiary-contrast-200': string;
|
|
125
|
+
'--color-tertiary-contrast-300': string;
|
|
126
|
+
'--color-tertiary-contrast-400': string;
|
|
127
|
+
'--color-tertiary-contrast-500': string;
|
|
128
|
+
'--color-tertiary-contrast-600': string;
|
|
129
|
+
'--color-tertiary-contrast-700': string;
|
|
130
|
+
'--color-tertiary-contrast-800': string;
|
|
131
|
+
'--color-tertiary-contrast-900': string;
|
|
132
|
+
'--color-tertiary-contrast-950': string;
|
|
133
|
+
'--color-success-50': string;
|
|
134
|
+
'--color-success-100': string;
|
|
135
|
+
'--color-success-200': string;
|
|
136
|
+
'--color-success-300': string;
|
|
137
|
+
'--color-success-400': string;
|
|
138
|
+
'--color-success-500': string;
|
|
139
|
+
'--color-success-600': string;
|
|
140
|
+
'--color-success-700': string;
|
|
141
|
+
'--color-success-800': string;
|
|
142
|
+
'--color-success-900': string;
|
|
143
|
+
'--color-success-950': string;
|
|
144
|
+
'--color-success-contrast-dark': string;
|
|
145
|
+
'--color-success-contrast-light': string;
|
|
146
|
+
'--color-success-contrast-50': string;
|
|
147
|
+
'--color-success-contrast-100': string;
|
|
148
|
+
'--color-success-contrast-200': string;
|
|
149
|
+
'--color-success-contrast-300': string;
|
|
150
|
+
'--color-success-contrast-400': string;
|
|
151
|
+
'--color-success-contrast-500': string;
|
|
152
|
+
'--color-success-contrast-600': string;
|
|
153
|
+
'--color-success-contrast-700': string;
|
|
154
|
+
'--color-success-contrast-800': string;
|
|
155
|
+
'--color-success-contrast-900': string;
|
|
156
|
+
'--color-success-contrast-950': string;
|
|
157
|
+
'--color-warning-50': string;
|
|
158
|
+
'--color-warning-100': string;
|
|
159
|
+
'--color-warning-200': string;
|
|
160
|
+
'--color-warning-300': string;
|
|
161
|
+
'--color-warning-400': string;
|
|
162
|
+
'--color-warning-500': string;
|
|
163
|
+
'--color-warning-600': string;
|
|
164
|
+
'--color-warning-700': string;
|
|
165
|
+
'--color-warning-800': string;
|
|
166
|
+
'--color-warning-900': string;
|
|
167
|
+
'--color-warning-950': string;
|
|
168
|
+
'--color-warning-contrast-dark': string;
|
|
169
|
+
'--color-warning-contrast-light': string;
|
|
170
|
+
'--color-warning-contrast-50': string;
|
|
171
|
+
'--color-warning-contrast-100': string;
|
|
172
|
+
'--color-warning-contrast-200': string;
|
|
173
|
+
'--color-warning-contrast-300': string;
|
|
174
|
+
'--color-warning-contrast-400': string;
|
|
175
|
+
'--color-warning-contrast-500': string;
|
|
176
|
+
'--color-warning-contrast-600': string;
|
|
177
|
+
'--color-warning-contrast-700': string;
|
|
178
|
+
'--color-warning-contrast-800': string;
|
|
179
|
+
'--color-warning-contrast-900': string;
|
|
180
|
+
'--color-warning-contrast-950': string;
|
|
181
|
+
'--color-error-50': string;
|
|
182
|
+
'--color-error-100': string;
|
|
183
|
+
'--color-error-200': string;
|
|
184
|
+
'--color-error-300': string;
|
|
185
|
+
'--color-error-400': string;
|
|
186
|
+
'--color-error-500': string;
|
|
187
|
+
'--color-error-600': string;
|
|
188
|
+
'--color-error-700': string;
|
|
189
|
+
'--color-error-800': string;
|
|
190
|
+
'--color-error-900': string;
|
|
191
|
+
'--color-error-950': string;
|
|
192
|
+
'--color-error-contrast-dark': string;
|
|
193
|
+
'--color-error-contrast-light': string;
|
|
194
|
+
'--color-error-contrast-50': string;
|
|
195
|
+
'--color-error-contrast-100': string;
|
|
196
|
+
'--color-error-contrast-200': string;
|
|
197
|
+
'--color-error-contrast-300': string;
|
|
198
|
+
'--color-error-contrast-400': string;
|
|
199
|
+
'--color-error-contrast-500': string;
|
|
200
|
+
'--color-error-contrast-600': string;
|
|
201
|
+
'--color-error-contrast-700': string;
|
|
202
|
+
'--color-error-contrast-800': string;
|
|
203
|
+
'--color-error-contrast-900': string;
|
|
204
|
+
'--color-error-contrast-950': string;
|
|
205
|
+
'--color-surface-50': string;
|
|
206
|
+
'--color-surface-100': string;
|
|
207
|
+
'--color-surface-200': string;
|
|
208
|
+
'--color-surface-300': string;
|
|
209
|
+
'--color-surface-400': string;
|
|
210
|
+
'--color-surface-500': string;
|
|
211
|
+
'--color-surface-600': string;
|
|
212
|
+
'--color-surface-700': string;
|
|
213
|
+
'--color-surface-800': string;
|
|
214
|
+
'--color-surface-900': string;
|
|
215
|
+
'--color-surface-950': string;
|
|
216
|
+
'--color-surface-contrast-dark': string;
|
|
217
|
+
'--color-surface-contrast-light': string;
|
|
218
|
+
'--color-surface-contrast-50': string;
|
|
219
|
+
'--color-surface-contrast-100': string;
|
|
220
|
+
'--color-surface-contrast-200': string;
|
|
221
|
+
'--color-surface-contrast-300': string;
|
|
222
|
+
'--color-surface-contrast-400': string;
|
|
223
|
+
'--color-surface-contrast-500': string;
|
|
224
|
+
'--color-surface-contrast-600': string;
|
|
225
|
+
'--color-surface-contrast-700': string;
|
|
226
|
+
'--color-surface-contrast-800': string;
|
|
227
|
+
'--color-surface-contrast-900': string;
|
|
228
|
+
'--color-surface-contrast-950': string;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
type ConfigOptions = {
|
|
232
|
+
/**
|
|
233
|
+
* Prefixes Skeleton component classes with a specified string.
|
|
234
|
+
*
|
|
235
|
+
* This should be used when there are Skeleton class names
|
|
236
|
+
* that conflict with other plugins. For example, our `btn` class
|
|
237
|
+
* can often conflict with other UI libraries.
|
|
238
|
+
*
|
|
239
|
+
* **NOTE:** Only use this if you're using this plugin WITHOUT
|
|
240
|
+
* our accompanying component library, `@skeletonlabs/skeleton`.
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* // Skeleton classes will be prefixed with 'sk-' (e.g., sk-btn)
|
|
244
|
+
* prefix = 'sk-'
|
|
245
|
+
*
|
|
246
|
+
* @default ''
|
|
247
|
+
*/
|
|
248
|
+
prefix?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Whether to include Skeleton's base styles.
|
|
251
|
+
* @default true
|
|
252
|
+
*/
|
|
253
|
+
base?: boolean;
|
|
254
|
+
/**
|
|
255
|
+
* Theme config for configuring your themes.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* import * as themes from "@skeletonlabs/skeleton/themes";
|
|
259
|
+
* import myCustomTheme from "./custom-theme.js"
|
|
260
|
+
*
|
|
261
|
+
* skeleton({ themes: [myCustomTheme, themes.cerberus, themes.pine] })
|
|
262
|
+
*/
|
|
263
|
+
themes?: Array<Theme>;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
declare const skeleton: {
|
|
267
|
+
(options: ConfigOptions): {
|
|
268
|
+
handler: tailwindcss_types_config_js.PluginCreator;
|
|
269
|
+
config?: Partial<tailwindcss_types_config_js.Config>;
|
|
270
|
+
};
|
|
271
|
+
__isOptionsFunction: true;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Assembles content glob patterns for skeleton component packages
|
|
275
|
+
* @example
|
|
276
|
+
* const config = {
|
|
277
|
+
* // ...
|
|
278
|
+
* content: [
|
|
279
|
+
* // ...
|
|
280
|
+
* contentPath(import.meta.url, "svelte")
|
|
281
|
+
* ]
|
|
282
|
+
* }
|
|
283
|
+
*/
|
|
284
|
+
declare function contentPath(fileURL: string | URL, framework: 'svelte' | 'react'): string;
|
|
285
|
+
|
|
286
|
+
export { type ConfigOptions, type Theme, contentPath, skeleton };
|
package/dist/plugin/index.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import * as tailwindcss_types_config_js from 'tailwindcss/types/config.js';
|
|
|
3
3
|
type Theme = {
|
|
4
4
|
name: string;
|
|
5
5
|
properties: ThemeProperties;
|
|
6
|
+
metadata: {
|
|
7
|
+
version: string;
|
|
8
|
+
emoji?: string;
|
|
9
|
+
};
|
|
6
10
|
};
|
|
7
11
|
type ThemeProperties = {
|
|
8
12
|
'--space-scale-factor': string;
|
|
@@ -262,9 +266,21 @@ type ConfigOptions = {
|
|
|
262
266
|
declare const skeleton: {
|
|
263
267
|
(options: ConfigOptions): {
|
|
264
268
|
handler: tailwindcss_types_config_js.PluginCreator;
|
|
265
|
-
config?: Partial<tailwindcss_types_config_js.Config
|
|
269
|
+
config?: Partial<tailwindcss_types_config_js.Config>;
|
|
266
270
|
};
|
|
267
271
|
__isOptionsFunction: true;
|
|
268
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* Assembles content glob patterns for skeleton component packages
|
|
275
|
+
* @example
|
|
276
|
+
* const config = {
|
|
277
|
+
* // ...
|
|
278
|
+
* content: [
|
|
279
|
+
* // ...
|
|
280
|
+
* contentPath(import.meta.url, "svelte")
|
|
281
|
+
* ]
|
|
282
|
+
* }
|
|
283
|
+
*/
|
|
284
|
+
declare function contentPath(fileURL: string | URL, framework: 'svelte' | 'react'): string;
|
|
269
285
|
|
|
270
|
-
export { ConfigOptions, Theme, skeleton };
|
|
286
|
+
export { type ConfigOptions, type Theme, contentPath, skeleton };
|