@shuriken-ui/tailwind 3.1.3 → 4.0.0-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,99 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-checkbox */
|
3
|
+
|
4
|
+
@utility nui-checkbox {
|
5
|
+
@apply relative inline-flex items-start gap-1;
|
6
|
+
|
7
|
+
&.nui-checkbox-rounded-sm .nui-checkbox-outer, &.nui-checkbox-rounded-sm .nui-checkbox-inner {
|
8
|
+
@apply rounded;
|
9
|
+
}
|
10
|
+
|
11
|
+
&.nui-checkbox-rounded-md .nui-checkbox-outer, &.nui-checkbox-rounded-md .nui-checkbox-inner {
|
12
|
+
@apply rounded-md;
|
13
|
+
}
|
14
|
+
|
15
|
+
&.nui-checkbox-rounded-lg .nui-checkbox-outer, &.nui-checkbox-rounded-lg .nui-checkbox-inner {
|
16
|
+
@apply rounded-lg;
|
17
|
+
}
|
18
|
+
|
19
|
+
&.nui-checkbox-rounded-full .nui-checkbox-outer, &.nui-checkbox-rounded-full .nui-checkbox-inner {
|
20
|
+
@apply rounded-full;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
@utility nui-checkbox-outer {
|
24
|
+
@apply nui-focus relative flex items-center justify-center h-5 w-5 shrink-0 cursor-pointer disabled:cursor-not-allowed overflow-hidden;
|
25
|
+
}
|
26
|
+
@utility nui-checkbox-inner {
|
27
|
+
@apply absolute start-0 top-0 z-0 h-full w-full;
|
28
|
+
@apply bg-white dark:bg-muted-700;
|
29
|
+
@apply border-2 border-muted-400 dark:border-muted-700;
|
30
|
+
}
|
31
|
+
@utility nui-icon-check {
|
32
|
+
@apply pointer-events-none absolute z-10 fill-current translate-y-6 opacity-0;
|
33
|
+
@apply h-2.5 w-2.5;
|
34
|
+
@apply transition-all duration-300;
|
35
|
+
}
|
36
|
+
@utility nui-icon-indeterminate {
|
37
|
+
@apply pointer-events-none absolute z-10 fill-current translate-y-6 opacity-0;
|
38
|
+
@apply h-2.5 w-2.5;
|
39
|
+
@apply transition-all duration-300;
|
40
|
+
}
|
41
|
+
@utility nui-checkbox-input {
|
42
|
+
@apply absolute z-20 h-5 w-5 cursor-pointer disabled:cursor-not-allowed opacity-0;
|
43
|
+
|
44
|
+
&:checked ~ .nui-checkbox-inner, &:indeterminate ~ .nui-checkbox-inner {
|
45
|
+
@apply border-current dark:border-current;
|
46
|
+
}
|
47
|
+
|
48
|
+
&:checked ~ .nui-icon-check {
|
49
|
+
@apply translate-y-0 opacity-100;
|
50
|
+
}
|
51
|
+
|
52
|
+
&:indeterminate ~ .nui-icon-check {
|
53
|
+
@apply !translate-y-6;
|
54
|
+
}
|
55
|
+
|
56
|
+
&:indeterminate ~ .nui-icon-indeterminate {
|
57
|
+
@apply !translate-y-0 !opacity-100;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
@utility nui-checkbox-label-wrapper {
|
61
|
+
@apply inline-flex flex-col;
|
62
|
+
}
|
63
|
+
@utility nui-checkbox-label-text {
|
64
|
+
@apply font-sans text-sm ms-1 cursor-pointer select-none;
|
65
|
+
@apply text-muted-400 dark:text-muted-400;
|
66
|
+
}
|
67
|
+
@utility nui-checkbox-error {
|
68
|
+
@apply ms-1 inline-block;
|
69
|
+
}
|
70
|
+
@utility nui-checkbox-default {
|
71
|
+
@apply text-muted-600 dark:text-muted-200;
|
72
|
+
}
|
73
|
+
@utility nui-checkbox-muted {
|
74
|
+
@apply text-muted-400 dark:text-muted-400;
|
75
|
+
}
|
76
|
+
@utility nui-checkbox-light {
|
77
|
+
@apply text-white dark:text-white;
|
78
|
+
}
|
79
|
+
@utility nui-checkbox-dark {
|
80
|
+
@apply text-muted-900 dark:text-muted-100;
|
81
|
+
}
|
82
|
+
@utility nui-checkbox-black {
|
83
|
+
@apply text-black dark:text-white;
|
84
|
+
}
|
85
|
+
@utility nui-checkbox-primary {
|
86
|
+
@apply text-primary-500 dark:text-primary-500;
|
87
|
+
}
|
88
|
+
@utility nui-checkbox-info {
|
89
|
+
@apply text-info-500 dark:text-info-500;
|
90
|
+
}
|
91
|
+
@utility nui-checkbox-success {
|
92
|
+
@apply text-success-500 dark:text-success-500;
|
93
|
+
}
|
94
|
+
@utility nui-checkbox-warning {
|
95
|
+
@apply text-warning-500 dark:text-warning-500;
|
96
|
+
}
|
97
|
+
@utility nui-checkbox-danger {
|
98
|
+
@apply text-danger-500 dark:text-danger-500;
|
99
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-dropdown-item */
|
3
|
+
|
4
|
+
@utility nui-dropdown-item {
|
5
|
+
@apply nui-focus flex w-full items-center justify-start gap-2 px-3 py-2 cursor-pointer;
|
6
|
+
@apply text-start font-sans text-sm;
|
7
|
+
@apply transition-colors duration-300;
|
8
|
+
|
9
|
+
&:not(.nui-active) {
|
10
|
+
@apply text-muted-500 dark:text-muted-500;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@utility nui-item-content {
|
14
|
+
@apply grow;
|
15
|
+
}
|
16
|
+
@utility nui-item-disabled {
|
17
|
+
@apply opacity-50 pointer-events-none;
|
18
|
+
}
|
19
|
+
@utility nui-item-default {
|
20
|
+
@apply hover:bg-muted-100 dark:hover:bg-muted-700;
|
21
|
+
|
22
|
+
&.nui-active {
|
23
|
+
@apply bg-muted-100 dark:bg-muted-700;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
@utility nui-item-contrast {
|
27
|
+
@apply hover:bg-muted-100 dark:hover:bg-muted-900;
|
28
|
+
|
29
|
+
&.nui-active {
|
30
|
+
@apply bg-muted-100 dark:bg-muted-900;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
@utility nui-item-primary {
|
34
|
+
@apply hover:text-primary-500 dark:hover:text-primary-500;
|
35
|
+
}
|
36
|
+
@utility nui-item-info {
|
37
|
+
@apply hover:text-info-500 dark:hover:text-info-500;
|
38
|
+
}
|
39
|
+
@utility nui-item-success {
|
40
|
+
@apply hover:text-success-500 dark:hover:text-success-500;
|
41
|
+
}
|
42
|
+
@utility nui-item-warning {
|
43
|
+
@apply hover:text-info-500 dark:hover:text-info-500;
|
44
|
+
}
|
45
|
+
@utility nui-item-danger {
|
46
|
+
@apply hover:text-info-500 dark:hover:text-info-500;
|
47
|
+
}
|
48
|
+
@utility nui-item-dark {
|
49
|
+
@apply hover:text-muted-900 dark:hover:text-muted-100;
|
50
|
+
}
|
51
|
+
@utility nui-item-black {
|
52
|
+
@apply hover:text-black dark:hover:text-white;
|
53
|
+
}
|
54
|
+
@utility nui-item-rounded-sm {
|
55
|
+
@apply rounded-md;
|
56
|
+
}
|
57
|
+
@utility nui-item-rounded-md {
|
58
|
+
@apply rounded-lg;
|
59
|
+
}
|
60
|
+
@utility nui-item-rounded-lg {
|
61
|
+
@apply rounded-xl;
|
62
|
+
}
|
@@ -0,0 +1,102 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-dropdown */
|
3
|
+
|
4
|
+
@utility nui-dropdown {
|
5
|
+
@apply text-start;
|
6
|
+
|
7
|
+
&:hover {
|
8
|
+
.nui-context-button {
|
9
|
+
@apply ring-offset-4 ring-muted-200 dark:ring-muted-700;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@utility nui-dropdown-menu {
|
14
|
+
@apply absolute z-50 mt-2 focus:outline-none;
|
15
|
+
@apply shadow-lg shadow-muted-300/30 dark:shadow-muted-800/20;
|
16
|
+
}
|
17
|
+
@utility nui-menu {
|
18
|
+
@apply relative inline-block;
|
19
|
+
}
|
20
|
+
@utility nui-menu-content {
|
21
|
+
@apply p-2;
|
22
|
+
}
|
23
|
+
@utility nui-context-button {
|
24
|
+
@apply inline-flex items-center justify-center rounded-full;
|
25
|
+
@apply h-9 w-9;
|
26
|
+
@apply ring-1 ring-transparent ring-offset-white dark:ring-offset-muted-900;
|
27
|
+
@apply transition-all duration-300;
|
28
|
+
|
29
|
+
.nui-context-button-inner {
|
30
|
+
@apply flex items-center justify-center rounded-full;
|
31
|
+
@apply h-9 w-9;
|
32
|
+
@apply bg-white dark:bg-muted-800;
|
33
|
+
@apply border border-muted-200 dark:border-muted-700;
|
34
|
+
}
|
35
|
+
|
36
|
+
.nui-context-icon {
|
37
|
+
@apply h-5 w-5;
|
38
|
+
@apply text-muted-400 dark:text-muted-400;
|
39
|
+
@apply transition-all duration-300;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
@utility nui-text-button {
|
43
|
+
@apply flex items-center space-x-1;
|
44
|
+
}
|
45
|
+
@utility nui-chevron {
|
46
|
+
@apply h-4 w-4;
|
47
|
+
@apply transition-transform duration-300;
|
48
|
+
}
|
49
|
+
@utility nui-dropdown-start {
|
50
|
+
.nui-dropdown-menu {
|
51
|
+
@apply start-0 origin-top-left;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
@utility nui-dropdown-end {
|
55
|
+
.nui-dropdown-menu {
|
56
|
+
@apply end-0 origin-top-right;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
@utility nui-menu-header {
|
60
|
+
@apply px-4 pt-5;
|
61
|
+
}
|
62
|
+
@utility nui-menu-header-inner {
|
63
|
+
@apply relative flex items-center justify-between;
|
64
|
+
}
|
65
|
+
@utility nui-menu-header-title {
|
66
|
+
@apply font-sans font-medium text-xs uppercase;
|
67
|
+
@apply text-muted-500 dark:text-muted-200;
|
68
|
+
}
|
69
|
+
@utility nui-menu-content {
|
70
|
+
@apply p-2 space-y-1;
|
71
|
+
}
|
72
|
+
@utility nui-menu-md {
|
73
|
+
@apply w-56;
|
74
|
+
}
|
75
|
+
@utility nui-menu-lg {
|
76
|
+
@apply w-72;
|
77
|
+
}
|
78
|
+
@utility nui-menu-rounded-sm {
|
79
|
+
@apply rounded-md;
|
80
|
+
}
|
81
|
+
@utility nui-menu-rounded-md {
|
82
|
+
@apply rounded-lg;
|
83
|
+
}
|
84
|
+
@utility nui-menu-rounded-lg {
|
85
|
+
@apply rounded-xl;
|
86
|
+
}
|
87
|
+
@utility nui-menu-default {
|
88
|
+
@apply border border-muted-200 dark:border-muted-700;
|
89
|
+
@apply bg-white dark:bg-muted-800;
|
90
|
+
}
|
91
|
+
@utility nui-menu-default-contrast {
|
92
|
+
@apply border border-muted-200 dark:border-muted-800;
|
93
|
+
@apply bg-white dark:bg-muted-950;
|
94
|
+
}
|
95
|
+
@utility nui-menu-muted {
|
96
|
+
@apply border border-muted-200 dark:border-muted-700;
|
97
|
+
@apply bg-white dark:bg-muted-800;
|
98
|
+
}
|
99
|
+
@utility nui-menu-muted-contrast {
|
100
|
+
@apply border border-muted-200 dark:border-muted-800;
|
101
|
+
@apply bg-white dark:bg-muted-950;
|
102
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-focus */
|
3
|
+
|
4
|
+
@utility nui-focus {
|
5
|
+
@apply outline-2 outline-dashed outline-offset-2;
|
6
|
+
@apply outline-transparent;
|
7
|
+
|
8
|
+
&:focus-within {
|
9
|
+
@apply outline-muted-300 dark:outline-muted-600;
|
10
|
+
@apply outline-dashed ring-0;
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-fullscreen-dropfile */
|
3
|
+
|
4
|
+
@utility nui-fullscreen-dropfile {
|
5
|
+
@apply block;
|
6
|
+
}
|
7
|
+
@utility nui-fullscreen-dropfile-outer {
|
8
|
+
@apply bg-muted-100/50 dark:bg-muted-800/20 fixed inset-0 z-40 backdrop-blur-sm transition-all hover:backdrop-blur-none;
|
9
|
+
}
|
10
|
+
@utility nui-fullscreen-dropfile-inner {
|
11
|
+
@apply fixed inset-0 z-50;
|
12
|
+
|
13
|
+
.nui-fullscreen-dropfile-container {
|
14
|
+
@apply flex h-full flex-1 items-center justify-center;
|
15
|
+
|
16
|
+
.nui-fullscreen-dropfile-content {
|
17
|
+
@apply h-[230px] w-[500px] mx-auto flex flex-col items-center justify-center gap-6 drop-shadow-sm;
|
18
|
+
@apply bg-muted-100 dark:bg-muted-800;
|
19
|
+
@apply rounded-md border-2 border-dashed border-muted-200 dark:border-muted-700;
|
20
|
+
|
21
|
+
.nui-fullscreen-dropfile-icon {
|
22
|
+
@apply h-10 w-10;
|
23
|
+
}
|
24
|
+
|
25
|
+
.nui-fullscreen-dropfile-label {
|
26
|
+
@apply text-base text-muted-500 dark:text-muted-400;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
@utility nui-dropfile-primary {
|
32
|
+
.nui-fullscreen-dropfile-inner {
|
33
|
+
.nui-fullscreen-dropfile-container {
|
34
|
+
.nui-fullscreen-dropfile-content {
|
35
|
+
.nui-fullscreen-dropfile-icon {
|
36
|
+
@apply text-primary-500 dark:text-primary-500;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
@utility nui-dropfile-dark {
|
43
|
+
.nui-fullscreen-dropfile-inner {
|
44
|
+
.nui-fullscreen-dropfile-container {
|
45
|
+
.nui-fullscreen-dropfile-content {
|
46
|
+
.nui-fullscreen-dropfile-icon {
|
47
|
+
@apply text-muted-900 dark:text-muted-100;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
@utility nui-dropfile-black {
|
54
|
+
.nui-fullscreen-dropfile-inner {
|
55
|
+
.nui-fullscreen-dropfile-container {
|
56
|
+
.nui-fullscreen-dropfile-content {
|
57
|
+
.nui-fullscreen-dropfile-icon {
|
58
|
+
@apply text-black dark:text-white;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/* generated using "pnpm jiti scripts/generate-utilities.ts" */
|
2
|
+
/* @utility nui-heading */
|
3
|
+
|
4
|
+
@utility nui-heading {
|
5
|
+
@apply font-sans;
|
6
|
+
}
|
7
|
+
@utility nui-heading-xs {
|
8
|
+
@apply text-xs;
|
9
|
+
}
|
10
|
+
@utility nui-heading-sm {
|
11
|
+
@apply text-sm;
|
12
|
+
}
|
13
|
+
@utility nui-heading-md {
|
14
|
+
@apply text-base;
|
15
|
+
}
|
16
|
+
@utility nui-heading-lg {
|
17
|
+
@apply text-lg;
|
18
|
+
}
|
19
|
+
@utility nui-heading-xl {
|
20
|
+
@apply text-xl;
|
21
|
+
}
|
22
|
+
@utility nui-heading-2xl {
|
23
|
+
@apply text-2xl;
|
24
|
+
}
|
25
|
+
@utility nui-heading-3xl {
|
26
|
+
@apply text-3xl;
|
27
|
+
}
|
28
|
+
@utility nui-heading-4xl {
|
29
|
+
@apply text-4xl;
|
30
|
+
}
|
31
|
+
@utility nui-heading-5xl {
|
32
|
+
@apply text-5xl;
|
33
|
+
}
|
34
|
+
@utility nui-heading-6xl {
|
35
|
+
@apply text-6xl;
|
36
|
+
}
|
37
|
+
@utility nui-heading-7xl {
|
38
|
+
@apply text-7xl;
|
39
|
+
}
|
40
|
+
@utility nui-heading-8xl {
|
41
|
+
@apply text-8xl;
|
42
|
+
}
|
43
|
+
@utility nui-heading-9xl {
|
44
|
+
@apply text-9xl;
|
45
|
+
}
|
46
|
+
@utility nui-weight-light {
|
47
|
+
@apply font-light;
|
48
|
+
}
|
49
|
+
@utility nui-weight-normal {
|
50
|
+
@apply font-normal;
|
51
|
+
}
|
52
|
+
@utility nui-weight-medium {
|
53
|
+
@apply font-medium;
|
54
|
+
}
|
55
|
+
@utility nui-weight-semibold {
|
56
|
+
@apply font-semibold;
|
57
|
+
}
|
58
|
+
@utility nui-weight-bold {
|
59
|
+
@apply font-bold;
|
60
|
+
}
|
61
|
+
@utility nui-weight-extrabold {
|
62
|
+
@apply font-extrabold;
|
63
|
+
}
|
64
|
+
@utility nui-lead-none {
|
65
|
+
@apply leading-none;
|
66
|
+
}
|
67
|
+
@utility nui-lead-normal {
|
68
|
+
@apply leading-normal;
|
69
|
+
}
|
70
|
+
@utility nui-lead-tight {
|
71
|
+
@apply leading-tight;
|
72
|
+
}
|
73
|
+
@utility nui-lead-snug {
|
74
|
+
@apply leading-snug;
|
75
|
+
}
|
76
|
+
@utility nui-lead-loose {
|
77
|
+
@apply leading-loose;
|
78
|
+
}
|