@shuriken-ui/tailwind 0.0.3 → 0.0.5
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.md +21 -0
- package/README.md +54 -0
- package/dist/config.cjs +2 -0
- package/dist/config.d.ts +7 -12
- package/dist/config.mjs +2 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +19 -36
- package/dist/index.mjs +1 -0
- package/dist/options-cff79ff9.d.ts +5 -0
- package/dist/preset.cjs +547 -120
- package/dist/preset.d.ts +7 -12
- package/dist/preset.mjs +546 -120
- package/package.json +1 -1
package/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Css Ninja
|
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
CHANGED
@@ -50,4 +50,58 @@ export default {
|
|
50
50
|
presets: [shurikenUIPreset],
|
51
51
|
// your config
|
52
52
|
} satisfies Config
|
53
|
+
```
|
54
|
+
|
55
|
+
## Customization
|
56
|
+
|
57
|
+
Shuriken UI is fully customizable. You can override components by using the `theme` option.
|
58
|
+
|
59
|
+
```ts
|
60
|
+
export default withShurikenUI({
|
61
|
+
theme: {
|
62
|
+
extend: {
|
63
|
+
shurikenUi: {
|
64
|
+
dropdownDivider: {
|
65
|
+
space: '2',
|
66
|
+
border: 'muted-200', // you can use arbitrary value like '[#fff]'
|
67
|
+
borderDark: 'muted-600',
|
68
|
+
},
|
69
|
+
focus: {
|
70
|
+
offset: '2',
|
71
|
+
width: '1',
|
72
|
+
style: 'dashed',
|
73
|
+
color: 'muted-300',
|
74
|
+
colorDark: 'muted-600',
|
75
|
+
},
|
76
|
+
label: {
|
77
|
+
font: 'alt',
|
78
|
+
text: 'muted-400',
|
79
|
+
textDark: 'muted-400/80',
|
80
|
+
},
|
81
|
+
mark: {
|
82
|
+
bg: 'primary-100',
|
83
|
+
bgDark: 'primary-800',
|
84
|
+
text: 'primary-800',
|
85
|
+
textDark: 'primary-200',
|
86
|
+
},
|
87
|
+
slimscroll: {
|
88
|
+
width: '[6px]',
|
89
|
+
bg: 'black/5',
|
90
|
+
bgDark: 'white/5',
|
91
|
+
bgHover: 'black/20',
|
92
|
+
bgHoverDark: 'white/20',
|
93
|
+
},
|
94
|
+
tooltip: {
|
95
|
+
font: 'sans',
|
96
|
+
bg: '[#1e293b]',
|
97
|
+
bgDark: '[#ec4899]',
|
98
|
+
text: '[#fff]',
|
99
|
+
textDark: '[#fff]',
|
100
|
+
minWidth: '3rem',
|
101
|
+
maxWidth: '21rem',
|
102
|
+
},
|
103
|
+
},
|
104
|
+
},
|
105
|
+
},
|
106
|
+
})
|
53
107
|
```
|
package/dist/config.cjs
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
const preset = require('./preset.cjs');
|
4
|
+
require('tailwindcss/defaultTheme');
|
4
5
|
require('tailwindcss/colors');
|
5
6
|
require('@tailwindcss/typography');
|
6
7
|
require('@tailwindcss/aspect-ratio');
|
7
8
|
require('tailwindcss/plugin');
|
9
|
+
require('defu');
|
8
10
|
|
9
11
|
const config = {
|
10
12
|
content: [],
|
package/dist/config.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { P as PluginOption } from './options-cff79ff9.js';
|
1
2
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
3
|
import * as _tailwindcss_typography from '@tailwindcss/typography';
|
3
4
|
import { Config } from 'tailwindcss';
|
@@ -10,7 +11,10 @@ declare const _default: {
|
|
10
11
|
plugins: (typeof _tailwindcss_typography | {
|
11
12
|
handler: () => void;
|
12
13
|
} | {
|
13
|
-
|
14
|
+
handler: tailwindcss_types_config.PluginCreator;
|
15
|
+
config?: Partial<Config> | undefined;
|
16
|
+
} | {
|
17
|
+
(options: PluginOption): {
|
14
18
|
handler: tailwindcss_types_config.PluginCreator;
|
15
19
|
config?: Partial<Config> | undefined;
|
16
20
|
};
|
@@ -196,7 +200,7 @@ declare const _default: {
|
|
196
200
|
};
|
197
201
|
};
|
198
202
|
keyframes: {
|
199
|
-
indeterminate: {
|
203
|
+
'nui-indeterminate': {
|
200
204
|
'0%': {
|
201
205
|
'margin-left': string;
|
202
206
|
};
|
@@ -204,18 +208,9 @@ declare const _default: {
|
|
204
208
|
'margin-left': string;
|
205
209
|
};
|
206
210
|
};
|
207
|
-
placeload: {
|
208
|
-
'0%': {
|
209
|
-
'background-position': string;
|
210
|
-
};
|
211
|
-
'100%': {
|
212
|
-
'background-position': string;
|
213
|
-
};
|
214
|
-
};
|
215
211
|
};
|
216
212
|
animation: {
|
217
|
-
indeterminate: string;
|
218
|
-
placeload: string;
|
213
|
+
'nui-indeterminate': string;
|
219
214
|
};
|
220
215
|
};
|
221
216
|
};
|
package/dist/config.mjs
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import shurikenUIPreset from './preset.mjs';
|
2
|
+
import 'tailwindcss/defaultTheme';
|
2
3
|
import 'tailwindcss/colors';
|
3
4
|
import '@tailwindcss/typography';
|
4
5
|
import '@tailwindcss/aspect-ratio';
|
5
6
|
import 'tailwindcss/plugin';
|
7
|
+
import 'defu';
|
6
8
|
|
7
9
|
const config = {
|
8
10
|
content: [],
|
package/dist/index.cjs
CHANGED
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { P as PluginOption } from './options-cff79ff9.js';
|
1
2
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
3
|
import * as _tailwindcss_typography from '@tailwindcss/typography';
|
3
4
|
import { Config } from 'tailwindcss';
|
@@ -10,7 +11,10 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
10
11
|
plugins: (typeof _tailwindcss_typography | {
|
11
12
|
handler: () => void;
|
12
13
|
} | {
|
13
|
-
|
14
|
+
handler: tailwindcss_types_config.PluginCreator;
|
15
|
+
config?: Partial<Config> | undefined;
|
16
|
+
} | {
|
17
|
+
(options: PluginOption): {
|
14
18
|
handler: tailwindcss_types_config.PluginCreator;
|
15
19
|
config?: Partial<Config> | undefined;
|
16
20
|
};
|
@@ -196,7 +200,7 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
196
200
|
};
|
197
201
|
};
|
198
202
|
keyframes: {
|
199
|
-
indeterminate: {
|
203
|
+
'nui-indeterminate': {
|
200
204
|
'0%': {
|
201
205
|
'margin-left': string;
|
202
206
|
};
|
@@ -204,18 +208,9 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
204
208
|
'margin-left': string;
|
205
209
|
};
|
206
210
|
};
|
207
|
-
placeload: {
|
208
|
-
'0%': {
|
209
|
-
'background-position': string;
|
210
|
-
};
|
211
|
-
'100%': {
|
212
|
-
'background-position': string;
|
213
|
-
};
|
214
|
-
};
|
215
211
|
};
|
216
212
|
animation: {
|
217
|
-
indeterminate: string;
|
218
|
-
placeload: string;
|
213
|
+
'nui-indeterminate': string;
|
219
214
|
};
|
220
215
|
};
|
221
216
|
};
|
@@ -227,7 +222,10 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
227
222
|
plugins: (typeof _tailwindcss_typography | {
|
228
223
|
handler: () => void;
|
229
224
|
} | {
|
230
|
-
|
225
|
+
handler: tailwindcss_types_config.PluginCreator;
|
226
|
+
config?: Partial<Config> | undefined;
|
227
|
+
} | {
|
228
|
+
(options: PluginOption): {
|
231
229
|
handler: tailwindcss_types_config.PluginCreator;
|
232
230
|
config?: Partial<Config> | undefined;
|
233
231
|
};
|
@@ -413,7 +411,7 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
413
411
|
};
|
414
412
|
};
|
415
413
|
keyframes: {
|
416
|
-
indeterminate: {
|
414
|
+
'nui-indeterminate': {
|
417
415
|
'0%': {
|
418
416
|
'margin-left': string;
|
419
417
|
};
|
@@ -421,18 +419,9 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
421
419
|
'margin-left': string;
|
422
420
|
};
|
423
421
|
};
|
424
|
-
placeload: {
|
425
|
-
'0%': {
|
426
|
-
'background-position': string;
|
427
|
-
};
|
428
|
-
'100%': {
|
429
|
-
'background-position': string;
|
430
|
-
};
|
431
|
-
};
|
432
422
|
};
|
433
423
|
animation: {
|
434
|
-
indeterminate: string;
|
435
|
-
placeload: string;
|
424
|
+
'nui-indeterminate': string;
|
436
425
|
};
|
437
426
|
};
|
438
427
|
};
|
@@ -442,7 +431,10 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
442
431
|
plugins: (typeof _tailwindcss_typography | {
|
443
432
|
handler: () => void;
|
444
433
|
} | {
|
445
|
-
|
434
|
+
handler: tailwindcss_types_config.PluginCreator;
|
435
|
+
config?: Partial<Config> | undefined;
|
436
|
+
} | {
|
437
|
+
(options: PluginOption): {
|
446
438
|
handler: tailwindcss_types_config.PluginCreator;
|
447
439
|
config?: Partial<Config> | undefined;
|
448
440
|
};
|
@@ -628,7 +620,7 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
628
620
|
};
|
629
621
|
};
|
630
622
|
keyframes: {
|
631
|
-
indeterminate: {
|
623
|
+
'nui-indeterminate': {
|
632
624
|
'0%': {
|
633
625
|
'margin-left': string;
|
634
626
|
};
|
@@ -636,18 +628,9 @@ declare function withShurikenUI(userConfig: Config): Omit<Config, "presets" | "c
|
|
636
628
|
'margin-left': string;
|
637
629
|
};
|
638
630
|
};
|
639
|
-
placeload: {
|
640
|
-
'0%': {
|
641
|
-
'background-position': string;
|
642
|
-
};
|
643
|
-
'100%': {
|
644
|
-
'background-position': string;
|
645
|
-
};
|
646
|
-
};
|
647
631
|
};
|
648
632
|
animation: {
|
649
|
-
indeterminate: string;
|
650
|
-
placeload: string;
|
633
|
+
'nui-indeterminate': string;
|
651
634
|
};
|
652
635
|
};
|
653
636
|
};
|
package/dist/index.mjs
CHANGED