@shuriken-ui/tailwind 4.0.0-alpha.4 → 4.0.0-alpha.6
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/README.md +55 -0
- package/lib/css/accordion.css +8 -9
- package/lib/css/autocomplete.css +143 -134
- package/lib/css/avatar-group.css +19 -20
- package/lib/css/avatar.css +16 -17
- package/lib/css/breadcrumb.css +10 -11
- package/lib/css/button-action.css +0 -1
- package/lib/css/button-close.css +0 -1
- package/lib/css/button-group.css +0 -1
- package/lib/css/button-icon.css +0 -1
- package/lib/css/button.css +0 -1
- package/lib/css/card.css +0 -1
- package/lib/css/checkbox.css +5 -6
- package/lib/css/dropdown-divider.css +0 -1
- package/lib/css/dropdown-item.css +14 -15
- package/lib/css/dropdown.css +21 -22
- package/lib/css/focus.css +0 -1
- package/lib/css/fullscreen-dropfile.css +0 -1
- package/lib/css/heading.css +11 -12
- package/lib/css/icon-box.css +67 -68
- package/lib/css/input-file-regular.css +68 -69
- package/lib/css/input-file.css +0 -1
- package/lib/css/input-help-text.css +0 -1
- package/lib/css/input-number.css +147 -137
- package/lib/css/input.css +144 -138
- package/lib/css/kbd.css +0 -1
- package/lib/css/label.css +0 -1
- package/lib/css/link.css +0 -1
- package/lib/css/list.css +0 -1
- package/lib/css/listbox.css +155 -138
- package/lib/css/mark.css +0 -1
- package/lib/css/mask.css +0 -1
- package/lib/css/message-text.css +24 -25
- package/lib/css/message.css +0 -1
- package/lib/css/modal.css +0 -1
- package/lib/css/pagination.css +4 -5
- package/lib/css/paragraph.css +11 -12
- package/lib/css/placeholder-page.css +0 -1
- package/lib/css/placeload.css +0 -1
- package/lib/css/progress-circle.css +0 -1
- package/lib/css/progress.css +0 -17
- package/lib/css/prose.css +0 -1
- package/lib/css/radio.css +0 -1
- package/lib/css/select.css +128 -125
- package/lib/css/slimscroll.css +4 -4
- package/lib/css/snack.css +3 -4
- package/lib/css/switch-ball.css +0 -1
- package/lib/css/switch-thin.css +0 -1
- package/lib/css/tab-slider.css +0 -1
- package/lib/css/tabs.css +0 -1
- package/lib/css/tag.css +0 -1
- package/lib/css/text.css +24 -25
- package/lib/css/textarea.css +52 -41
- package/lib/css/theme-switch.css +6 -7
- package/lib/css/theme-toggle.css +8 -9
- package/lib/css/toast.css +1 -2
- package/lib/css/tooltip.css +0 -1
- package/lib/index.css +4 -0
- package/lib/theme.css +4 -4
- package/package.json +2 -2
package/lib/css/avatar.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-avatar */
|
3
2
|
|
4
3
|
@utility nui-avatar {
|
@@ -34,35 +33,35 @@
|
|
34
33
|
@apply absolute block;
|
35
34
|
@apply border border-white dark:border-muted-800 rounded-full;
|
36
35
|
|
37
|
-
&.nui-dot-primary {
|
36
|
+
&.nui-avatar-dot-primary {
|
38
37
|
@apply bg-primary-500;
|
39
38
|
}
|
40
39
|
|
41
|
-
&.nui-dot-info {
|
40
|
+
&.nui-avatar-dot-info {
|
42
41
|
@apply bg-info-500;
|
43
42
|
}
|
44
43
|
|
45
|
-
&.nui-dot-success {
|
44
|
+
&.nui-avatar-dot-success {
|
46
45
|
@apply bg-success-500;
|
47
46
|
}
|
48
47
|
|
49
|
-
&.nui-dot-warning {
|
48
|
+
&.nui-avatar-dot-warning {
|
50
49
|
@apply bg-warning-500;
|
51
50
|
}
|
52
51
|
|
53
|
-
&.nui-dot-danger {
|
52
|
+
&.nui-avatar-dot-danger {
|
54
53
|
@apply bg-danger-500;
|
55
54
|
}
|
56
55
|
|
57
|
-
&.nui-dot-yellow {
|
56
|
+
&.nui-avatar-dot-yellow {
|
58
57
|
@apply bg-yellow-400;
|
59
58
|
}
|
60
59
|
|
61
|
-
&.nui-dot-pink {
|
60
|
+
&.nui-avatar-dot-pink {
|
62
61
|
@apply bg-pink-500;
|
63
62
|
}
|
64
63
|
|
65
|
-
&.nui-dot-indigo {
|
64
|
+
&.nui-avatar-dot-indigo {
|
66
65
|
@apply bg-indigo-500;
|
67
66
|
}
|
68
67
|
}
|
@@ -72,35 +71,35 @@
|
|
72
71
|
@apply ring-offset-2 ring-offset-white dark:ring-offset-muted-800;
|
73
72
|
}
|
74
73
|
|
75
|
-
&.nui-ring-primary {
|
74
|
+
&.nui-avatar-ring-primary {
|
76
75
|
@apply bg-primary-500;
|
77
76
|
}
|
78
77
|
|
79
|
-
&.nui-ring-info {
|
78
|
+
&.nui-avatar-ring-info {
|
80
79
|
@apply bg-info-500;
|
81
80
|
}
|
82
81
|
|
83
|
-
&.nui-ring-success {
|
82
|
+
&.nui-avatar-ring-success {
|
84
83
|
@apply bg-success-500;
|
85
84
|
}
|
86
85
|
|
87
|
-
&.nui-ring-warning {
|
86
|
+
&.nui-avatar-ring-warning {
|
88
87
|
@apply bg-warning-500;
|
89
88
|
}
|
90
89
|
|
91
|
-
&.nui-ring-danger {
|
90
|
+
&.nui-avatar-ring-danger {
|
92
91
|
@apply bg-danger-500;
|
93
92
|
}
|
94
93
|
|
95
|
-
&.nui-ring-yellow {
|
94
|
+
&.nui-avatar-ring-yellow {
|
96
95
|
@apply bg-yellow-400;
|
97
96
|
}
|
98
97
|
|
99
|
-
&.nui-ring-pink {
|
98
|
+
&.nui-avatar-ring-pink {
|
100
99
|
@apply bg-pink-500;
|
101
100
|
}
|
102
101
|
|
103
|
-
&.nui-ring-indigo {
|
102
|
+
&.nui-avatar-ring-indigo {
|
104
103
|
@apply bg-indigo-500;
|
105
104
|
}
|
106
105
|
}
|
package/lib/css/breadcrumb.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-breadcrumb */
|
3
2
|
|
4
3
|
@utility nui-breadcrumb {
|
@@ -19,43 +18,43 @@
|
|
19
18
|
@apply flex text-muted-500 dark:text-muted-400;
|
20
19
|
}
|
21
20
|
|
22
|
-
.nui-item-inner {
|
21
|
+
.nui-breadcrumb-item-inner {
|
23
22
|
@apply text-[0.85rem] flex items-center gap-x-1;
|
24
23
|
@apply text-muted-500 dark:text-muted-400;
|
25
24
|
@apply transition-colors duration-300;
|
26
25
|
|
27
|
-
.nui-item-icon {
|
26
|
+
.nui-breadcrumb-item-icon {
|
28
27
|
@apply flex items-center justify-center h-4 w-4 shrink-0;
|
29
28
|
|
30
|
-
&.nui-has-dot {
|
29
|
+
&.nui-breadcrumb-has-dot {
|
31
30
|
@apply text-xl;
|
32
31
|
}
|
33
32
|
}
|
34
33
|
|
35
|
-
.nui-item-text {
|
34
|
+
.nui-breadcrumb-item-text {
|
36
35
|
@apply text-muted-500 dark:text-muted-400 px-2;
|
37
36
|
}
|
38
37
|
}
|
39
38
|
}
|
40
39
|
@utility nui-breadcrumb-primary {
|
41
|
-
.nui-item-inner {
|
42
|
-
&.nui-has-link {
|
40
|
+
.nui-breadcrumb-item-inner {
|
41
|
+
&.nui-breadcrumb-has-link {
|
43
42
|
@apply hover:text-primary-500 focus:text-primary-500;
|
44
43
|
@apply dark:hover:text-primary-500 dark:focus:text-primary-500;
|
45
44
|
}
|
46
45
|
}
|
47
46
|
}
|
48
47
|
@utility nui-breadcrumb-dark {
|
49
|
-
.nui-item-inner {
|
50
|
-
&.nui-has-link {
|
48
|
+
.nui-breadcrumb-item-inner {
|
49
|
+
&.nui-breadcrumb-has-link {
|
51
50
|
@apply hover:text-muted-900 focus:text-muted-900;
|
52
51
|
@apply dark:hover:text-muted-100 dark:focus:text-muted-100;
|
53
52
|
}
|
54
53
|
}
|
55
54
|
}
|
56
55
|
@utility nui-breadcrumb-black {
|
57
|
-
.nui-item-inner {
|
58
|
-
&.nui-has-link {
|
56
|
+
.nui-breadcrumb-item-inner {
|
57
|
+
&.nui-breadcrumb-has-link {
|
59
58
|
@apply hover:text-black focus:text-black;
|
60
59
|
@apply dark:hover:text-white dark:focus:text-white;
|
61
60
|
}
|
package/lib/css/button-close.css
CHANGED
package/lib/css/button-group.css
CHANGED
package/lib/css/button-icon.css
CHANGED
package/lib/css/button.css
CHANGED
package/lib/css/card.css
CHANGED
package/lib/css/checkbox.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-checkbox */
|
3
2
|
|
4
3
|
@utility nui-checkbox {
|
@@ -28,12 +27,12 @@
|
|
28
27
|
@apply bg-white dark:bg-muted-700;
|
29
28
|
@apply border-2 border-muted-400 dark:border-muted-700;
|
30
29
|
}
|
31
|
-
@utility nui-icon-check {
|
30
|
+
@utility nui-checkbox-icon-check {
|
32
31
|
@apply pointer-events-none absolute z-10 fill-current translate-y-6 opacity-0;
|
33
32
|
@apply h-2.5 w-2.5;
|
34
33
|
@apply transition-all duration-300;
|
35
34
|
}
|
36
|
-
@utility nui-icon-indeterminate {
|
35
|
+
@utility nui-checkbox-icon-indeterminate {
|
37
36
|
@apply pointer-events-none absolute z-10 fill-current translate-y-6 opacity-0;
|
38
37
|
@apply h-2.5 w-2.5;
|
39
38
|
@apply transition-all duration-300;
|
@@ -45,15 +44,15 @@
|
|
45
44
|
@apply border-current dark:border-current;
|
46
45
|
}
|
47
46
|
|
48
|
-
&:checked ~ .nui-icon-check {
|
47
|
+
&:checked ~ .nui-checkbox-icon-check {
|
49
48
|
@apply translate-y-0 opacity-100;
|
50
49
|
}
|
51
50
|
|
52
|
-
&:indeterminate ~ .nui-icon-check {
|
51
|
+
&:indeterminate ~ .nui-checkbox-icon-check {
|
53
52
|
@apply !translate-y-6;
|
54
53
|
}
|
55
54
|
|
56
|
-
&:indeterminate ~ .nui-icon-indeterminate {
|
55
|
+
&:indeterminate ~ .nui-checkbox-icon-indeterminate {
|
57
56
|
@apply !translate-y-0 !opacity-100;
|
58
57
|
}
|
59
58
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-dropdown-item */
|
3
2
|
|
4
3
|
@utility nui-dropdown-item {
|
@@ -10,53 +9,53 @@
|
|
10
9
|
@apply text-muted-500 dark:text-muted-500;
|
11
10
|
}
|
12
11
|
}
|
13
|
-
@utility nui-item-content {
|
12
|
+
@utility nui-dropdown-item-content {
|
14
13
|
@apply grow;
|
15
14
|
}
|
16
|
-
@utility nui-item-disabled {
|
15
|
+
@utility nui-dropdown-item-disabled {
|
17
16
|
@apply opacity-50 pointer-events-none;
|
18
17
|
}
|
19
|
-
@utility nui-item-default {
|
18
|
+
@utility nui-dropdown-item-default {
|
20
19
|
@apply hover:bg-muted-100 dark:hover:bg-muted-700;
|
21
20
|
|
22
21
|
&.nui-active {
|
23
22
|
@apply bg-muted-100 dark:bg-muted-700;
|
24
23
|
}
|
25
24
|
}
|
26
|
-
@utility nui-item-contrast {
|
25
|
+
@utility nui-dropdown-item-contrast {
|
27
26
|
@apply hover:bg-muted-100 dark:hover:bg-muted-900;
|
28
27
|
|
29
28
|
&.nui-active {
|
30
29
|
@apply bg-muted-100 dark:bg-muted-900;
|
31
30
|
}
|
32
31
|
}
|
33
|
-
@utility nui-item-primary {
|
32
|
+
@utility nui-dropdown-item-primary {
|
34
33
|
@apply hover:text-primary-500 dark:hover:text-primary-500;
|
35
34
|
}
|
36
|
-
@utility nui-item-info {
|
35
|
+
@utility nui-dropdown-item-info {
|
37
36
|
@apply hover:text-info-500 dark:hover:text-info-500;
|
38
37
|
}
|
39
|
-
@utility nui-item-success {
|
38
|
+
@utility nui-dropdown-item-success {
|
40
39
|
@apply hover:text-success-500 dark:hover:text-success-500;
|
41
40
|
}
|
42
|
-
@utility nui-item-warning {
|
41
|
+
@utility nui-dropdown-item-warning {
|
43
42
|
@apply hover:text-info-500 dark:hover:text-info-500;
|
44
43
|
}
|
45
|
-
@utility nui-item-danger {
|
44
|
+
@utility nui-dropdown-item-danger {
|
46
45
|
@apply hover:text-info-500 dark:hover:text-info-500;
|
47
46
|
}
|
48
|
-
@utility nui-item-dark {
|
47
|
+
@utility nui-dropdown-item-dark {
|
49
48
|
@apply hover:text-muted-900 dark:hover:text-muted-100;
|
50
49
|
}
|
51
|
-
@utility nui-item-black {
|
50
|
+
@utility nui-dropdown-item-black {
|
52
51
|
@apply hover:text-black dark:hover:text-white;
|
53
52
|
}
|
54
|
-
@utility nui-item-rounded-sm {
|
53
|
+
@utility nui-dropdown-item-rounded-sm {
|
55
54
|
@apply rounded-md;
|
56
55
|
}
|
57
|
-
@utility nui-item-rounded-md {
|
56
|
+
@utility nui-dropdown-item-rounded-md {
|
58
57
|
@apply rounded-lg;
|
59
58
|
}
|
60
|
-
@utility nui-item-rounded-lg {
|
59
|
+
@utility nui-dropdown-item-rounded-lg {
|
61
60
|
@apply rounded-xl;
|
62
61
|
}
|
package/lib/css/dropdown.css
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-dropdown */
|
3
2
|
|
4
3
|
@utility nui-dropdown {
|
5
4
|
@apply text-start;
|
6
5
|
|
7
6
|
&:hover {
|
8
|
-
.nui-context-button {
|
7
|
+
.nui-dropdown-context-button {
|
9
8
|
@apply ring-offset-4 ring-muted-200 dark:ring-muted-700;
|
10
9
|
}
|
11
10
|
}
|
@@ -14,35 +13,35 @@
|
|
14
13
|
@apply absolute z-50 mt-2 focus:outline-none;
|
15
14
|
@apply shadow-lg shadow-muted-300/30 dark:shadow-muted-800/20;
|
16
15
|
}
|
17
|
-
@utility nui-menu {
|
16
|
+
@utility nui-dropdown-menu {
|
18
17
|
@apply relative inline-block;
|
19
18
|
}
|
20
|
-
@utility nui-menu-content {
|
19
|
+
@utility nui-dropdown-menu-content {
|
21
20
|
@apply p-2;
|
22
21
|
}
|
23
|
-
@utility nui-context-button {
|
22
|
+
@utility nui-dropdown-context-button {
|
24
23
|
@apply inline-flex items-center justify-center rounded-full;
|
25
24
|
@apply h-9 w-9;
|
26
25
|
@apply ring-1 ring-transparent ring-offset-white dark:ring-offset-muted-900;
|
27
26
|
@apply transition-all duration-300;
|
28
27
|
|
29
|
-
.nui-context-button-inner {
|
28
|
+
.nui-dropdown-context-button-inner {
|
30
29
|
@apply flex items-center justify-center rounded-full;
|
31
30
|
@apply h-9 w-9;
|
32
31
|
@apply bg-white dark:bg-muted-800;
|
33
32
|
@apply border border-muted-200 dark:border-muted-700;
|
34
33
|
}
|
35
34
|
|
36
|
-
.nui-context-icon {
|
35
|
+
.nui-dropdown-context-icon {
|
37
36
|
@apply h-5 w-5;
|
38
37
|
@apply text-muted-400 dark:text-muted-400;
|
39
38
|
@apply transition-all duration-300;
|
40
39
|
}
|
41
40
|
}
|
42
|
-
@utility nui-text-button {
|
41
|
+
@utility nui-dropdown-text-button {
|
43
42
|
@apply flex items-center space-x-1;
|
44
43
|
}
|
45
|
-
@utility nui-chevron {
|
44
|
+
@utility nui-dropdown-chevron {
|
46
45
|
@apply h-4 w-4;
|
47
46
|
@apply transition-transform duration-300;
|
48
47
|
}
|
@@ -56,47 +55,47 @@
|
|
56
55
|
@apply end-0 origin-top-right;
|
57
56
|
}
|
58
57
|
}
|
59
|
-
@utility nui-menu-header {
|
58
|
+
@utility nui-dropdown-menu-header {
|
60
59
|
@apply px-4 pt-5;
|
61
60
|
}
|
62
|
-
@utility nui-menu-header-inner {
|
61
|
+
@utility nui-dropdown-menu-header-inner {
|
63
62
|
@apply relative flex items-center justify-between;
|
64
63
|
}
|
65
|
-
@utility nui-menu-header-title {
|
64
|
+
@utility nui-dropdown-menu-header-title {
|
66
65
|
@apply font-sans font-medium text-xs uppercase;
|
67
66
|
@apply text-muted-500 dark:text-muted-200;
|
68
67
|
}
|
69
|
-
@utility nui-menu-content {
|
68
|
+
@utility nui-dropdown-menu-content {
|
70
69
|
@apply p-2 space-y-1;
|
71
70
|
}
|
72
|
-
@utility nui-menu-md {
|
71
|
+
@utility nui-dropdown-menu-md {
|
73
72
|
@apply w-56;
|
74
73
|
}
|
75
|
-
@utility nui-menu-lg {
|
74
|
+
@utility nui-dropdown-menu-lg {
|
76
75
|
@apply w-72;
|
77
76
|
}
|
78
|
-
@utility nui-menu-rounded-sm {
|
77
|
+
@utility nui-dropdown-menu-rounded-sm {
|
79
78
|
@apply rounded-md;
|
80
79
|
}
|
81
|
-
@utility nui-menu-rounded-md {
|
80
|
+
@utility nui-dropdown-menu-rounded-md {
|
82
81
|
@apply rounded-lg;
|
83
82
|
}
|
84
|
-
@utility nui-menu-rounded-lg {
|
83
|
+
@utility nui-dropdown-menu-rounded-lg {
|
85
84
|
@apply rounded-xl;
|
86
85
|
}
|
87
|
-
@utility nui-menu-default {
|
86
|
+
@utility nui-dropdown-menu-default {
|
88
87
|
@apply border border-muted-200 dark:border-muted-700;
|
89
88
|
@apply bg-white dark:bg-muted-800;
|
90
89
|
}
|
91
|
-
@utility nui-menu-default-contrast {
|
90
|
+
@utility nui-dropdown-menu-default-contrast {
|
92
91
|
@apply border border-muted-200 dark:border-muted-800;
|
93
92
|
@apply bg-white dark:bg-muted-950;
|
94
93
|
}
|
95
|
-
@utility nui-menu-muted {
|
94
|
+
@utility nui-dropdown-menu-muted {
|
96
95
|
@apply border border-muted-200 dark:border-muted-700;
|
97
96
|
@apply bg-white dark:bg-muted-800;
|
98
97
|
}
|
99
|
-
@utility nui-menu-muted-contrast {
|
98
|
+
@utility nui-dropdown-menu-muted-contrast {
|
100
99
|
@apply border border-muted-200 dark:border-muted-800;
|
101
100
|
@apply bg-white dark:bg-muted-950;
|
102
101
|
}
|
package/lib/css/focus.css
CHANGED
package/lib/css/heading.css
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-heading */
|
3
2
|
|
4
3
|
@utility nui-heading {
|
@@ -43,36 +42,36 @@
|
|
43
42
|
@utility nui-heading-9xl {
|
44
43
|
@apply text-9xl;
|
45
44
|
}
|
46
|
-
@utility nui-weight-light {
|
45
|
+
@utility nui-heading-weight-light {
|
47
46
|
@apply font-light;
|
48
47
|
}
|
49
|
-
@utility nui-weight-normal {
|
48
|
+
@utility nui-heading-weight-normal {
|
50
49
|
@apply font-normal;
|
51
50
|
}
|
52
|
-
@utility nui-weight-medium {
|
51
|
+
@utility nui-heading-weight-medium {
|
53
52
|
@apply font-medium;
|
54
53
|
}
|
55
|
-
@utility nui-weight-semibold {
|
54
|
+
@utility nui-heading-weight-semibold {
|
56
55
|
@apply font-semibold;
|
57
56
|
}
|
58
|
-
@utility nui-weight-bold {
|
57
|
+
@utility nui-heading-weight-bold {
|
59
58
|
@apply font-bold;
|
60
59
|
}
|
61
|
-
@utility nui-weight-extrabold {
|
60
|
+
@utility nui-heading-weight-extrabold {
|
62
61
|
@apply font-extrabold;
|
63
62
|
}
|
64
|
-
@utility nui-lead-none {
|
63
|
+
@utility nui-heading-lead-none {
|
65
64
|
@apply leading-none;
|
66
65
|
}
|
67
|
-
@utility nui-lead-normal {
|
66
|
+
@utility nui-heading-lead-normal {
|
68
67
|
@apply leading-normal;
|
69
68
|
}
|
70
|
-
@utility nui-lead-tight {
|
69
|
+
@utility nui-heading-lead-tight {
|
71
70
|
@apply leading-tight;
|
72
71
|
}
|
73
|
-
@utility nui-lead-snug {
|
72
|
+
@utility nui-heading-lead-snug {
|
74
73
|
@apply leading-snug;
|
75
74
|
}
|
76
|
-
@utility nui-lead-loose {
|
75
|
+
@utility nui-heading-lead-loose {
|
77
76
|
@apply leading-loose;
|
78
77
|
}
|