@shuriken-ui/tailwind 3.1.3 → 4.0.0-alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. package/package.json +41 -90
  2. package/src/css/accordion.css +175 -0
  3. package/src/css/autocomplete.css +511 -0
  4. package/src/css/avatar-group.css +138 -0
  5. package/src/css/avatar.css +738 -0
  6. package/src/css/breadcrumb.css +63 -0
  7. package/src/css/button-action.css +108 -0
  8. package/src/css/button-close.css +117 -0
  9. package/src/css/button-group.css +236 -0
  10. package/src/css/button-icon.css +97 -0
  11. package/src/css/button.css +565 -0
  12. package/src/css/card.css +69 -0
  13. package/src/css/checkbox.css +99 -0
  14. package/src/css/dropdown-divider.css +6 -0
  15. package/src/css/dropdown-item.css +62 -0
  16. package/src/css/dropdown.css +102 -0
  17. package/src/css/focus.css +12 -0
  18. package/src/css/fullscreen-dropfile.css +63 -0
  19. package/src/css/heading.css +78 -0
  20. package/src/css/icon-box.css +305 -0
  21. package/src/css/input-file-regular.css +255 -0
  22. package/src/css/input-file.css +224 -0
  23. package/src/css/input-help-text.css +7 -0
  24. package/src/css/input-number.css +469 -0
  25. package/src/css/input.css +402 -0
  26. package/src/css/kbd.css +94 -0
  27. package/src/css/label.css +6 -0
  28. package/src/css/link.css +8 -0
  29. package/src/css/list.css +23 -0
  30. package/src/css/listbox.css +511 -0
  31. package/src/css/mark.css +7 -0
  32. package/src/css/mask.css +23 -0
  33. package/src/css/message-text.css +72 -0
  34. package/src/css/message.css +245 -0
  35. package/src/css/modal.css +51 -0
  36. package/src/css/pagination.css +93 -0
  37. package/src/css/paragraph.css +78 -0
  38. package/src/css/placeholder-page.css +44 -0
  39. package/src/css/placeload.css +13 -0
  40. package/src/css/progress-circle.css +18 -0
  41. package/src/css/progress.css +90 -0
  42. package/src/css/prose.css +22 -0
  43. package/src/css/radio.css +73 -0
  44. package/src/css/select.css +404 -0
  45. package/src/css/slimscroll.css +32 -0
  46. package/src/css/snack.css +101 -0
  47. package/src/css/switch-ball.css +94 -0
  48. package/src/css/switch-thin.css +76 -0
  49. package/src/css/tab-slider.css +190 -0
  50. package/src/css/tabs.css +175 -0
  51. package/src/css/tag.css +312 -0
  52. package/src/css/text.css +78 -0
  53. package/src/css/textarea.css +228 -0
  54. package/src/css/theme-switch.css +65 -0
  55. package/src/css/theme-toggle.css +62 -0
  56. package/src/css/toast.css +132 -0
  57. package/src/css/tooltip.css +99 -0
  58. package/src/index.css +58 -0
  59. package/src/theme.css +80 -0
  60. package/dist/colors.cjs +0 -2
  61. package/dist/colors.d.cts +0 -2
  62. package/dist/colors.d.mts +0 -2
  63. package/dist/colors.d.ts +0 -2
  64. package/dist/colors.mjs +0 -1
  65. package/dist/config.cjs +0 -18
  66. package/dist/config.d.cts +0 -6
  67. package/dist/config.d.mts +0 -6
  68. package/dist/config.d.ts +0 -6
  69. package/dist/config.mjs +0 -16
  70. package/dist/index.cjs +0 -25
  71. package/dist/index.d.cts +0 -11
  72. package/dist/index.d.mts +0 -11
  73. package/dist/index.d.ts +0 -11
  74. package/dist/index.mjs +0 -21
  75. package/dist/plugins/index.cjs +0 -21074
  76. package/dist/plugins/index.d.cts +0 -308
  77. package/dist/plugins/index.d.mts +0 -308
  78. package/dist/plugins/index.d.ts +0 -308
  79. package/dist/plugins/index.mjs +0 -21008
  80. package/dist/preset.cjs +0 -53
  81. package/dist/preset.d.cts +0 -3
  82. package/dist/preset.d.mts +0 -3
  83. package/dist/preset.d.ts +0 -3
  84. package/dist/preset.mjs +0 -44
  85. package/dist/shared/tailwind.6e316a50.d.cts +0 -49966
  86. package/dist/shared/tailwind.6e316a50.d.mts +0 -49966
  87. package/dist/shared/tailwind.6e316a50.d.ts +0 -49966
  88. package/dist/themes.cjs +0 -119
  89. package/dist/themes.d.cts +0 -187
  90. package/dist/themes.d.mts +0 -187
  91. package/dist/themes.d.ts +0 -187
  92. package/dist/themes.mjs +0 -113
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuriken-ui/tailwind",
3
- "version": "3.1.3",
3
+ "version": "4.0.0-alpha.2",
4
4
  "license": "MIT",
5
5
  "author": "Css Ninja <hello@cssninja.io> (https://cssninja.io)",
6
6
  "repository": "shuriken-ui/tailwind",
@@ -19,43 +19,48 @@
19
19
  "module"
20
20
  ],
21
21
  "type": "module",
22
- "main": "./dist/index.cjs",
23
- "types": "./dist/index.d.ts",
22
+ "main": "./src/index.css",
24
23
  "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
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
- }
24
+ ".": "./src/index.css",
25
+ "./theme.css": "./src/theme.css",
26
+ "./*.css": "./src/css/*.css"
55
27
  },
56
28
  "files": [
57
- "dist"
29
+ "src/index.css",
30
+ "src/theme.css",
31
+ "src/css"
58
32
  ],
33
+ "dependencies": {
34
+ "@tailwindcss/container-queries": "^0.1.1",
35
+ "@tailwindcss/typography": "^0.5.15",
36
+ "tailwindcss": "^4.0.0 || 4.0.0-alpha.31"
37
+ },
38
+ "devDependencies": {
39
+ "@open-wc/lit-helpers": "0.7.0",
40
+ "@storybook/addon-essentials": "^8.4.2",
41
+ "@storybook/addon-links": "^8.4.2",
42
+ "@storybook/addon-themes": "^8.4.2",
43
+ "@storybook/blocks": "^8.4.2",
44
+ "@storybook/web-components": "^8.4.2",
45
+ "@storybook/web-components-vite": "^8.4.2",
46
+ "@types/node": "22.9.0",
47
+ "@typescript-eslint/eslint-plugin": "^8.13.0",
48
+ "@vitest/coverage-v8": "^2.1.4",
49
+ "@vitest/ui": "^2.1.4",
50
+ "chromatic": "^11.16.5",
51
+ "defu": "^6.1.4",
52
+ "glob": "^11.0.0",
53
+ "jiti": "^2.4.0",
54
+ "jsdom": "^25.0.1",
55
+ "lit": "^3.2.1",
56
+ "npm-run-all": "^4.1.5",
57
+ "standard-version": "^9.5.0",
58
+ "storybook": "^8.4.2",
59
+ "typescript": "^5.6.3",
60
+ "unbuild": "^2.0.0",
61
+ "vitest": "^2.1.4",
62
+ "vitest-axe": "1.0.0-pre.2"
63
+ },
59
64
  "scripts": {
60
65
  "dev": "storybook dev -p 6006",
61
66
  "build": "unbuild",
@@ -68,62 +73,8 @@
68
73
  "test": "run-s lint:eslint lint:prettier test:vitest",
69
74
  "test:vitest": "vitest",
70
75
  "coverage": "vitest run --coverage",
71
- "prepack": "pnpm run build",
72
76
  "release": "run-s test release:*",
73
77
  "release:standard-version": "standard-version",
74
- "release:publish": "git push --follow-tags origin main && npm publish",
75
- "prepare": "simple-git-hooks"
76
- },
77
- "dependencies": {
78
- "@tailwindcss/container-queries": "^0.1.1",
79
- "@tailwindcss/typography": "^0.5.10",
80
- "defu": "^6.1.4",
81
- "tailwindcss": "^3.4.1"
82
- },
83
- "devDependencies": {
84
- "@commitlint/cli": "^18.4.4",
85
- "@commitlint/config-conventional": "^18.4.4",
86
- "@open-wc/lit-helpers": "0.6.0",
87
- "@storybook/addon-essentials": "^8.0.5",
88
- "@storybook/addon-links": "^8.0.5",
89
- "@storybook/addon-themes": "^8.0.5",
90
- "@storybook/blocks": "^8.0.5",
91
- "@storybook/web-components": "^8.0.5",
92
- "@storybook/web-components-vite": "^8.0.5",
93
- "@types/node": "20.11.0",
94
- "@typescript-eslint/eslint-plugin": "^6.18.1",
95
- "@vitest/coverage-v8": "^1.1.3",
96
- "@vitest/ui": "^1.1.3",
97
- "autoprefixer": "^10.4.16",
98
- "chromatic": "^10.2.1",
99
- "commitlint": "^18.4.4",
100
- "eslint": "8.56.0",
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",
108
- "npm-run-all": "^4.1.5",
109
- "postcss": "^8.4.33",
110
- "prettier": "^3.1.1",
111
- "simple-git-hooks": "^2.9.0",
112
- "standard-version": "^9.5.0",
113
- "storybook": "^8.0.5",
114
- "typescript": "^5.3.3",
115
- "unbuild": "^2.0.0",
116
- "vitest": "^1.1.3",
117
- "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
- ]
78
+ "release:publish": "git push --follow-tags origin main && npm publish"
128
79
  }
129
- }
80
+ }
@@ -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
+ }