@shuriken-ui/tailwind 4.0.0-alpha.3 → 4.0.0-alpha.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/{src → lib}/css/accordion.css +21 -21
- package/{src → lib}/css/autocomplete.css +46 -47
- package/{src → lib}/css/avatar-group.css +19 -20
- package/{src → lib}/css/avatar.css +25 -26
- package/{src → lib}/css/breadcrumb.css +6 -7
- package/{src → lib}/css/button-action.css +0 -1
- package/{src → lib}/css/button-close.css +1 -2
- package/{src → lib}/css/button-group.css +0 -1
- package/{src → lib}/css/button-icon.css +2 -3
- package/{src → lib}/css/button.css +0 -1
- package/{src → lib}/css/card.css +0 -1
- package/{src → lib}/css/checkbox.css +6 -7
- package/{src → lib}/css/dropdown-divider.css +0 -1
- package/{src → lib}/css/dropdown-item.css +14 -15
- package/{src → lib}/css/dropdown.css +21 -22
- package/{src → lib}/css/focus.css +0 -1
- package/{src → lib}/css/fullscreen-dropfile.css +2 -3
- package/{src → lib}/css/heading.css +11 -12
- package/{src → lib}/css/icon-box.css +69 -70
- package/{src → lib}/css/input-file-regular.css +66 -67
- package/{src → lib}/css/input-file.css +0 -1
- package/{src → lib}/css/input-help-text.css +0 -1
- package/{src → lib}/css/input-number.css +0 -1
- package/{src → lib}/css/input.css +33 -33
- package/{src → lib}/css/kbd.css +1 -2
- package/{src → lib}/css/label.css +0 -1
- package/{src → lib}/css/link.css +0 -1
- package/{src → lib}/css/list.css +1 -1
- package/{src → lib}/css/listbox.css +0 -1
- package/{src → lib}/css/mark.css +0 -1
- package/{src → lib}/css/mask.css +0 -1
- package/{src → lib}/css/message-text.css +0 -1
- package/{src → lib}/css/message.css +5 -7
- package/{src → lib}/css/modal.css +0 -1
- package/{src → lib}/css/pagination.css +3 -4
- package/{src → lib}/css/paragraph.css +11 -12
- package/{src → lib}/css/placeholder-page.css +0 -1
- package/lib/css/placeload.css +11 -0
- package/{src → lib}/css/progress-circle.css +2 -3
- package/{src → lib}/css/progress.css +1 -2
- package/{src → lib}/css/prose.css +2 -2
- package/{src → lib}/css/radio.css +0 -1
- package/{src → lib}/css/select.css +0 -1
- package/{src → lib}/css/slimscroll.css +0 -1
- package/{src → lib}/css/snack.css +0 -1
- package/{src → lib}/css/switch-ball.css +0 -1
- package/{src → lib}/css/switch-thin.css +0 -1
- package/{src → lib}/css/tab-slider.css +0 -1
- package/{src → lib}/css/tabs.css +30 -32
- package/{src → lib}/css/tag.css +1 -2
- package/lib/css/text.css +77 -0
- package/{src → lib}/css/textarea.css +0 -1
- package/{src → lib}/css/theme-switch.css +0 -1
- package/{src → lib}/css/theme-toggle.css +0 -1
- package/{src → lib}/css/toast.css +2 -3
- package/{src → lib}/css/tooltip.css +0 -21
- package/{src → lib}/index.css +11 -9
- package/{src → lib}/theme.css +37 -0
- package/package.json +13 -53
- package/LICENSE.md +0 -21
- package/README.md +0 -109
- package/src/css/placeload.css +0 -13
- package/src/css/text.css +0 -78
@@ -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,12 +18,12 @@
|
|
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
29
|
&.nui-has-dot {
|
@@ -32,13 +31,13 @@
|
|
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 {
|
40
|
+
.nui-breadcrumb-item-inner {
|
42
41
|
&.nui-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;
|
@@ -46,7 +45,7 @@
|
|
46
45
|
}
|
47
46
|
}
|
48
47
|
@utility nui-breadcrumb-dark {
|
49
|
-
.nui-item-inner {
|
48
|
+
.nui-breadcrumb-item-inner {
|
50
49
|
&.nui-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;
|
@@ -54,7 +53,7 @@
|
|
54
53
|
}
|
55
54
|
}
|
56
55
|
@utility nui-breadcrumb-black {
|
57
|
-
.nui-item-inner {
|
56
|
+
.nui-breadcrumb-item-inner {
|
58
57
|
&.nui-has-link {
|
59
58
|
@apply hover:text-black focus:text-black;
|
60
59
|
@apply dark:hover:text-white dark:focus:text-white;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-button-close */
|
3
2
|
|
4
3
|
@utility nui-button-close {
|
@@ -41,7 +40,7 @@
|
|
41
40
|
}
|
42
41
|
}
|
43
42
|
@utility nui-button-close-rounded-sm {
|
44
|
-
@apply rounded;
|
43
|
+
@apply rounded-sm;
|
45
44
|
}
|
46
45
|
@utility nui-button-close-rounded-md {
|
47
46
|
@apply rounded-md;
|
@@ -1,7 +1,6 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-button-icon */
|
3
2
|
|
4
|
-
@utility nui-button-icon
|
3
|
+
@utility nui-button-icon {
|
5
4
|
@apply nui-focus relative inline-flex items-center justify-center space-x-1 leading-5 no-underline disabled:opacity-60 disabled:cursor-not-allowed hover:shadow-none;
|
6
5
|
@apply font-sans text-sm font-normal;
|
7
6
|
@apply transition-all duration-300;
|
@@ -19,7 +18,7 @@
|
|
19
18
|
@apply h-14 w-14 p-4;
|
20
19
|
}
|
21
20
|
@utility nui-button-icon-rounded-sm {
|
22
|
-
@apply rounded;
|
21
|
+
@apply rounded-sm;
|
23
22
|
}
|
24
23
|
@utility nui-button-icon-rounded-md {
|
25
24
|
@apply rounded-md;
|
package/{src → lib}/css/card.css
RENAMED
@@ -1,11 +1,10 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-checkbox */
|
3
2
|
|
4
3
|
@utility nui-checkbox {
|
5
4
|
@apply relative inline-flex items-start gap-1;
|
6
5
|
|
7
6
|
&.nui-checkbox-rounded-sm .nui-checkbox-outer, &.nui-checkbox-rounded-sm .nui-checkbox-inner {
|
8
|
-
@apply rounded;
|
7
|
+
@apply rounded-sm;
|
9
8
|
}
|
10
9
|
|
11
10
|
&.nui-checkbox-rounded-md .nui-checkbox-outer, &.nui-checkbox-rounded-md .nui-checkbox-inner {
|
@@ -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
|
}
|
@@ -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
|
}
|
@@ -1,11 +1,10 @@
|
|
1
|
-
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
1
|
/* @utility nui-fullscreen-dropfile */
|
3
2
|
|
4
3
|
@utility nui-fullscreen-dropfile {
|
5
4
|
@apply block;
|
6
5
|
}
|
7
6
|
@utility nui-fullscreen-dropfile-outer {
|
8
|
-
@apply bg-muted-100/50 dark:bg-muted-800/20 fixed inset-0 z-40 backdrop-blur-
|
7
|
+
@apply bg-muted-100/50 dark:bg-muted-800/20 fixed inset-0 z-40 backdrop-blur-xs transition-all hover:backdrop-blur-none;
|
9
8
|
}
|
10
9
|
@utility nui-fullscreen-dropfile-inner {
|
11
10
|
@apply fixed inset-0 z-50;
|
@@ -14,7 +13,7 @@
|
|
14
13
|
@apply flex h-full flex-1 items-center justify-center;
|
15
14
|
|
16
15
|
.nui-fullscreen-dropfile-content {
|
17
|
-
@apply h-[230px] w-[500px] mx-auto flex flex-col items-center justify-center gap-6 drop-shadow-
|
16
|
+
@apply h-[230px] w-[500px] mx-auto flex flex-col items-center justify-center gap-6 drop-shadow-xs;
|
18
17
|
@apply bg-muted-100 dark:bg-muted-800;
|
19
18
|
@apply rounded-md border-2 border-dashed border-muted-200 dark:border-muted-700;
|
20
19
|
|
@@ -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
|
}
|