@shuriken-ui/tailwind 3.1.2 → 4.0.0-alpha.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/package.json +30 -80
- package/src/css/accordion.css +175 -0
- package/src/css/autocomplete.css +511 -0
- package/src/css/avatar-group.css +138 -0
- package/src/css/avatar.css +738 -0
- package/src/css/breadcrumb.css +63 -0
- package/src/css/button-action.css +108 -0
- package/src/css/button-close.css +117 -0
- package/src/css/button-group.css +236 -0
- package/src/css/button-icon.css +97 -0
- package/src/css/button.css +565 -0
- package/src/css/card.css +69 -0
- package/src/css/checkbox.css +99 -0
- package/src/css/dropdown-divider.css +6 -0
- package/src/css/dropdown-item.css +62 -0
- package/src/css/dropdown.css +102 -0
- package/src/css/focus.css +12 -0
- package/src/css/fullscreen-dropfile.css +63 -0
- package/src/css/heading.css +78 -0
- package/src/css/icon-box.css +305 -0
- package/src/css/input-file-regular.css +255 -0
- package/src/css/input-file.css +224 -0
- package/src/css/input-help-text.css +7 -0
- package/src/css/input-number.css +469 -0
- package/src/css/input.css +402 -0
- package/src/css/kbd.css +94 -0
- package/src/css/label.css +6 -0
- package/src/css/link.css +8 -0
- package/src/css/list.css +23 -0
- package/src/css/listbox.css +511 -0
- package/src/css/mark.css +7 -0
- package/src/css/mask.css +23 -0
- package/src/css/message-text.css +72 -0
- package/src/css/message.css +245 -0
- package/src/css/modal.css +51 -0
- package/src/css/pagination.css +93 -0
- package/src/css/paragraph.css +78 -0
- package/src/css/placeholder-page.css +44 -0
- package/src/css/placeload.css +13 -0
- package/src/css/progress-circle.css +18 -0
- package/src/css/progress.css +90 -0
- package/src/css/prose.css +22 -0
- package/src/css/radio.css +73 -0
- package/src/css/select.css +404 -0
- package/src/css/slimscroll.css +32 -0
- package/src/css/snack.css +101 -0
- package/src/css/switch-ball.css +94 -0
- package/src/css/switch-thin.css +76 -0
- package/src/css/tab-slider.css +190 -0
- package/src/css/tabs.css +175 -0
- package/src/css/tag.css +312 -0
- package/src/css/text.css +78 -0
- package/src/css/textarea.css +228 -0
- package/src/css/theme-switch.css +65 -0
- package/src/css/theme-toggle.css +62 -0
- package/src/css/toast.css +132 -0
- package/src/css/tooltip.css +99 -0
- package/src/index.css +57 -0
- package/dist/colors.cjs +0 -2
- package/dist/colors.d.cts +0 -2
- package/dist/colors.d.mts +0 -2
- package/dist/colors.d.ts +0 -2
- package/dist/colors.mjs +0 -1
- package/dist/config.cjs +0 -18
- package/dist/config.d.cts +0 -6
- package/dist/config.d.mts +0 -6
- package/dist/config.d.ts +0 -6
- package/dist/config.mjs +0 -16
- package/dist/index.cjs +0 -25
- package/dist/index.d.cts +0 -11
- package/dist/index.d.mts +0 -11
- package/dist/index.d.ts +0 -11
- package/dist/index.mjs +0 -21
- package/dist/plugins/index.cjs +0 -21074
- package/dist/plugins/index.d.cts +0 -308
- package/dist/plugins/index.d.mts +0 -308
- package/dist/plugins/index.d.ts +0 -308
- package/dist/plugins/index.mjs +0 -21008
- package/dist/preset.cjs +0 -53
- package/dist/preset.d.cts +0 -3
- package/dist/preset.d.mts +0 -3
- package/dist/preset.d.ts +0 -3
- package/dist/preset.mjs +0 -44
- package/dist/shared/tailwind.6e316a50.d.cts +0 -49966
- package/dist/shared/tailwind.6e316a50.d.mts +0 -49966
- package/dist/shared/tailwind.6e316a50.d.ts +0 -49966
- package/dist/themes.cjs +0 -119
- package/dist/themes.d.cts +0 -187
- package/dist/themes.d.mts +0 -187
- package/dist/themes.d.ts +0 -187
- package/dist/themes.mjs +0 -113
package/package.json
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@shuriken-ui/tailwind",
|
3
|
-
"version": "
|
3
|
+
"version": "4.0.0-alpha.1",
|
4
|
+
"packageManager": "pnpm@9.12.3",
|
4
5
|
"license": "MIT",
|
5
6
|
"author": "Css Ninja <hello@cssninja.io> (https://cssninja.io)",
|
6
7
|
"repository": "shuriken-ui/tailwind",
|
@@ -19,42 +20,14 @@
|
|
19
20
|
"module"
|
20
21
|
],
|
21
22
|
"type": "module",
|
22
|
-
"main": "./
|
23
|
-
"types": "./dist/index.d.ts",
|
23
|
+
"main": "./src/index.css",
|
24
24
|
"exports": {
|
25
|
-
".":
|
26
|
-
|
27
|
-
"import": "./dist/index.mjs",
|
28
|
-
"require": "./dist/index.cjs"
|
29
|
-
},
|
30
|
-
"./preset": {
|
31
|
-
"types": "./dist/preset.d.ts",
|
32
|
-
"import": "./dist/preset.mjs",
|
33
|
-
"require": "./dist/preset.cjs"
|
34
|
-
},
|
35
|
-
"./config": {
|
36
|
-
"types": "./dist/config.d.ts",
|
37
|
-
"import": "./dist/config.mjs",
|
38
|
-
"require": "./dist/config.cjs"
|
39
|
-
},
|
40
|
-
"./colors": {
|
41
|
-
"types": "./dist/colors.d.ts",
|
42
|
-
"import": "./dist/colors.mjs",
|
43
|
-
"require": "./dist/colors.cjs"
|
44
|
-
},
|
45
|
-
"./themes": {
|
46
|
-
"types": "./dist/themes.d.ts",
|
47
|
-
"import": "./dist/themes.mjs",
|
48
|
-
"require": "./dist/themes.cjs"
|
49
|
-
},
|
50
|
-
"./plugins": {
|
51
|
-
"types": "./dist/plugins/index.d.ts",
|
52
|
-
"import": "./dist/plugins/index.mjs",
|
53
|
-
"require": "./dist/plugins/index.cjs"
|
54
|
-
}
|
25
|
+
".": "./src/index.css",
|
26
|
+
"./*.css": "./src/css/*.css"
|
55
27
|
},
|
56
28
|
"files": [
|
57
|
-
"
|
29
|
+
"src/index.css",
|
30
|
+
"src/css"
|
58
31
|
],
|
59
32
|
"scripts": {
|
60
33
|
"dev": "storybook dev -p 6006",
|
@@ -68,62 +41,39 @@
|
|
68
41
|
"test": "run-s lint:eslint lint:prettier test:vitest",
|
69
42
|
"test:vitest": "vitest",
|
70
43
|
"coverage": "vitest run --coverage",
|
71
|
-
"prepack": "pnpm run build",
|
72
44
|
"release": "run-s test release:*",
|
73
45
|
"release:standard-version": "standard-version",
|
74
|
-
"release:publish": "git push --follow-tags origin main && npm publish"
|
75
|
-
"prepare": "simple-git-hooks"
|
46
|
+
"release:publish": "git push --follow-tags origin main && npm publish"
|
76
47
|
},
|
77
48
|
"dependencies": {
|
78
49
|
"@tailwindcss/container-queries": "^0.1.1",
|
79
|
-
"@tailwindcss/typography": "^0.5.
|
80
|
-
"
|
81
|
-
"tailwindcss": "^3.4.1"
|
50
|
+
"@tailwindcss/typography": "^0.5.15",
|
51
|
+
"tailwindcss": "^4.0.0 || 4.0.0-alpha.31"
|
82
52
|
},
|
83
53
|
"devDependencies": {
|
84
|
-
"@
|
85
|
-
"@
|
86
|
-
"@
|
87
|
-
"@storybook/addon-
|
88
|
-
"@storybook/
|
89
|
-
"@storybook/
|
90
|
-
"@storybook/
|
91
|
-
"@
|
92
|
-
"@
|
93
|
-
"@
|
94
|
-
"@
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"
|
98
|
-
"
|
99
|
-
"
|
100
|
-
"
|
101
|
-
"eslint-config-prettier": "9.1.0",
|
102
|
-
"eslint-plugin-storybook": "^0.8.0",
|
103
|
-
"eslint-plugin-tailwindcss": "3.13.1",
|
104
|
-
"eslint-plugin-unicorn": "^50.0.1",
|
105
|
-
"jsdom": "^23.2.0",
|
106
|
-
"lint-staged": "^15.2.0",
|
107
|
-
"lit": "^3.1.1",
|
54
|
+
"@open-wc/lit-helpers": "0.7.0",
|
55
|
+
"@storybook/addon-essentials": "^8.4.2",
|
56
|
+
"@storybook/addon-links": "^8.4.2",
|
57
|
+
"@storybook/addon-themes": "^8.4.2",
|
58
|
+
"@storybook/blocks": "^8.4.2",
|
59
|
+
"@storybook/web-components": "^8.4.2",
|
60
|
+
"@storybook/web-components-vite": "^8.4.2",
|
61
|
+
"@types/node": "22.9.0",
|
62
|
+
"@typescript-eslint/eslint-plugin": "^8.13.0",
|
63
|
+
"@vitest/coverage-v8": "^2.1.4",
|
64
|
+
"@vitest/ui": "^2.1.4",
|
65
|
+
"chromatic": "^11.16.5",
|
66
|
+
"defu": "^6.1.4",
|
67
|
+
"glob": "^11.0.0",
|
68
|
+
"jiti": "^2.4.0",
|
69
|
+
"jsdom": "^25.0.1",
|
70
|
+
"lit": "^3.2.1",
|
108
71
|
"npm-run-all": "^4.1.5",
|
109
|
-
"postcss": "^8.4.33",
|
110
|
-
"prettier": "^3.1.1",
|
111
|
-
"simple-git-hooks": "^2.9.0",
|
112
72
|
"standard-version": "^9.5.0",
|
113
|
-
"storybook": "^8.
|
114
|
-
"typescript": "^5.
|
73
|
+
"storybook": "^8.4.2",
|
74
|
+
"typescript": "^5.6.3",
|
115
75
|
"unbuild": "^2.0.0",
|
116
|
-
"vitest": "^
|
76
|
+
"vitest": "^2.1.4",
|
117
77
|
"vitest-axe": "1.0.0-pre.2"
|
118
|
-
},
|
119
|
-
"simple-git-hooks": {
|
120
|
-
"pre-commit": "pnpm lint-staged",
|
121
|
-
"commit-msg": "pnpm commitlint -e -V "
|
122
|
-
},
|
123
|
-
"lint-staged": {
|
124
|
-
"*.ts?(x)": [
|
125
|
-
"prettier --parser=typescript --write",
|
126
|
-
"eslint -c .eslintrc.cjs --fix --ext .ts"
|
127
|
-
]
|
128
78
|
}
|
129
79
|
}
|
@@ -0,0 +1,175 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-accordion */
|
3
|
+
|
4
|
+
@utility nui-accordion {
|
5
|
+
&:not(:last-child) {
|
6
|
+
@apply border-b-0;
|
7
|
+
}
|
8
|
+
@apply w-full block overflow-hidden;
|
9
|
+
@apply bg-white dark:bg-muted-800;
|
10
|
+
@apply hover:bg-muted-50/60 dark:hover:bg-muted-800/60;
|
11
|
+
@apply border border-muted-300 dark:border-muted-700;
|
12
|
+
@apply transition-colors duration-300;
|
13
|
+
|
14
|
+
.nui-accordion-detail[open]:not(:first-child) {
|
15
|
+
@apply border-t border-muted-300 dark:border-muted-700;
|
16
|
+
}
|
17
|
+
|
18
|
+
.nui-accordion-detail .nui-accordion-dot {
|
19
|
+
@apply bg-muted-200 dark:bg-muted-700;
|
20
|
+
}
|
21
|
+
|
22
|
+
&.nui-accordion-chevron, &.nui-accordion-plus {
|
23
|
+
.nui-accordion-header {
|
24
|
+
@apply px-4 py-3;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
+ .nui-accordion {
|
29
|
+
@apply !border-t-0;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
@utility nui-accordion-summary {
|
33
|
+
@apply cursor-pointer list-none outline-none;
|
34
|
+
}
|
35
|
+
@utility nui-accordion-header {
|
36
|
+
@apply flex items-center justify-between;
|
37
|
+
|
38
|
+
.nui-accordion-header-inner {
|
39
|
+
@apply text-muted-800 dark:text-white;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
@utility nui-accordion-dot {
|
43
|
+
@apply ms-2 h-3 w-3 rounded-full;
|
44
|
+
@apply transition-colors duration-300;
|
45
|
+
}
|
46
|
+
@utility nui-icon-outer {
|
47
|
+
@apply ms-2 flex items-center justify-center;
|
48
|
+
@apply h-8 w-8 rounded-full;
|
49
|
+
@apply border border-transparent dark:border-transparent;
|
50
|
+
@apply bg-white dark:bg-muted-700/60;
|
51
|
+
@apply transition-all duration-300;
|
52
|
+
}
|
53
|
+
@utility nui-chevron-icon {
|
54
|
+
@apply text-muted-400 h-4 w-4;
|
55
|
+
@apply transition-transform duration-300;
|
56
|
+
}
|
57
|
+
@utility nui-plus-icon {
|
58
|
+
@apply text-muted-400 h-4 w-4;
|
59
|
+
@apply transition-transform duration-300;
|
60
|
+
}
|
61
|
+
@utility nui-accordion-content {
|
62
|
+
@apply px-4 pb-4;
|
63
|
+
@apply font-sans text-sm text-muted-500 dark:text-muted-400;
|
64
|
+
}
|
65
|
+
@utility nui-accordion-default {
|
66
|
+
@apply bg-white dark:bg-muted-800;
|
67
|
+
@apply hover:bg-muted-50/60 dark:hover:bg-muted-800/60;
|
68
|
+
@apply border border-muted-300 dark:border-muted-700;
|
69
|
+
}
|
70
|
+
@utility nui-accordion-default-contrast {
|
71
|
+
@apply bg-white dark:bg-muted-950;
|
72
|
+
@apply hover:bg-muted-50/60 dark:hover:bg-muted-950/60;
|
73
|
+
@apply border border-muted-300 dark:border-muted-800;
|
74
|
+
}
|
75
|
+
@utility nui-accordion-muted {
|
76
|
+
@apply bg-muted-100 dark:bg-muted-800;
|
77
|
+
@apply hover:bg-muted-100/60 dark:hover:bg-muted-800/60;
|
78
|
+
@apply border border-muted-200 dark:border-muted-700;
|
79
|
+
}
|
80
|
+
@utility nui-accordion-muted-contrast {
|
81
|
+
@apply bg-muted-100 dark:bg-muted-950;
|
82
|
+
@apply hover:bg-muted-100/60 dark:hover:bg-muted-950/60;
|
83
|
+
@apply border border-muted-200 dark:border-muted-800;
|
84
|
+
}
|
85
|
+
@utility nui-dot-default {
|
86
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
87
|
+
@apply bg-muted-400 dark:bg-muted-700;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
@utility nui-dot-primary {
|
91
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
92
|
+
@apply bg-primary-500 dark:bg-primary-500;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
@utility nui-dot-info {
|
96
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
97
|
+
@apply bg-info-500 dark:bg-info-500;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
@utility nui-dot-success {
|
101
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
102
|
+
@apply bg-success-500 dark:bg-success-500;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
@utility nui-dot-warning {
|
106
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
107
|
+
@apply bg-warning-500 dark:bg-warning-500;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
@utility nui-dot-danger {
|
111
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
112
|
+
@apply bg-danger-500 dark:bg-danger-500;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
@utility nui-dot-dark {
|
116
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
117
|
+
@apply bg-muted-900 dark:bg-muted-100;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
@utility nui-dot-black {
|
121
|
+
.nui-accordion-detail[open] .nui-accordion-dot {
|
122
|
+
@apply bg-black dark:bg-white;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
@utility nui-accordion-dot {
|
126
|
+
.nui-accordion-header {
|
127
|
+
@apply p-4;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
@utility nui-accordion-chevron {
|
131
|
+
.nui-accordion-detail[open] .nui-icon-outer {
|
132
|
+
@apply rotate-180;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
@utility nui-accordion-plus {
|
136
|
+
.nui-accordion-detail[open] .nui-icon-outer {
|
137
|
+
@apply rotate-45;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
@utility nui-accordion-straight {
|
141
|
+
&.nui-accordion:first-child {
|
142
|
+
@apply rounded-t-none;
|
143
|
+
}
|
144
|
+
|
145
|
+
&.nui-accordion:last-child {
|
146
|
+
@apply rounded-b-none;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
@utility nui-accordion-rounded-sm {
|
150
|
+
&.nui-accordion:first-child {
|
151
|
+
@apply rounded-t-md;
|
152
|
+
}
|
153
|
+
|
154
|
+
&.nui-accordion:last-child {
|
155
|
+
@apply rounded-b-md;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
@utility nui-accordion-rounded-md {
|
159
|
+
&.nui-accordion:first-child {
|
160
|
+
@apply rounded-t-lg;
|
161
|
+
}
|
162
|
+
|
163
|
+
&.nui-accordion:last-child {
|
164
|
+
@apply rounded-b-lg;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
@utility nui-accordion-rounded-lg {
|
168
|
+
&.nui-accordion:first-child {
|
169
|
+
@apply rounded-t-xl;
|
170
|
+
}
|
171
|
+
|
172
|
+
&.nui-accordion:last-child {
|
173
|
+
@apply rounded-b-xl;
|
174
|
+
}
|
175
|
+
}
|