jk-ui-cli 0.0.4 → 0.0.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/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
- package/stubs/css/buttons.stub +20 -48
- package/stubs/css/dark/buttons.stub +20 -0
- package/stubs/css/dark/utilities.stub +11 -0
- package/stubs/css/light/buttons.stub +9 -0
- package/stubs/css/light/utilities.stub +10 -0
- package/stubs/css/utilities.stub +22 -0
- package/stubs/css/all-themes.stub +0 -61
- package/stubs/css/flexiwind/base.stub +0 -36
- package/stubs/css/flexiwind/button.stub +0 -100
- package/stubs/css/flexiwind/form.stub +0 -189
- package/stubs/css/flexiwind/grid-bg.stub +0 -128
- package/stubs/css/flexiwind/ui.stub +0 -171
- package/stubs/css/flexiwind/utils.stub +0 -189
- /package/stubs/{utls → utils}/lib.stub +0 -0
package/package.json
CHANGED
package/stubs/css/buttons.stub
CHANGED
|
@@ -18,6 +18,26 @@
|
|
|
18
18
|
--btn-solid-color-press: var(--color-secondary-800);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
@utility btn-solid-success {
|
|
22
|
+
--btn-solid-top-shadow: var(--color-success-500);
|
|
23
|
+
--btn-solid-bottom-shadow: var(--color-success-700);
|
|
24
|
+
--btn-solid-top-shadow-hover: var(--color-success-600);
|
|
25
|
+
--btn-solid-bottom-shadow-hover: var(--color-success-800);
|
|
26
|
+
--btn-solid-color: var(--color-success-600);
|
|
27
|
+
--btn-solid-color-hover: var(--color-success-700);
|
|
28
|
+
--btn-solid-color-press: var(--color-success-800);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@utility btn-solid-danger {
|
|
32
|
+
--btn-solid-top-shadow: var(--color-danger-500);
|
|
33
|
+
--btn-solid-bottom-shadow: var(--color-danger-700);
|
|
34
|
+
--btn-solid-top-shadow-hover: var(--color-danger-600);
|
|
35
|
+
--btn-solid-bottom-shadow-hover: var(--color-danger-800);
|
|
36
|
+
--btn-solid-color: var(--color-danger-600);
|
|
37
|
+
--btn-solid-color-hover: var(--color-danger-700);
|
|
38
|
+
--btn-solid-color-press: var(--color-danger-800);
|
|
39
|
+
}
|
|
40
|
+
|
|
21
41
|
@utility btn-solid-neutral {
|
|
22
42
|
--btn-solid-top-shadow: var(--color-gray-800);
|
|
23
43
|
--btn-solid-bottom-shadow: var(--color-gray-700);
|
|
@@ -38,54 +58,6 @@
|
|
|
38
58
|
}
|
|
39
59
|
}
|
|
40
60
|
|
|
41
|
-
@utility btn-flexi-white {
|
|
42
|
-
--btn-flexi-bg: var(--color-white);
|
|
43
|
-
--btn-flexi-hover-bg: var(--color-gray-100);
|
|
44
|
-
--btn-flexi-active-bg: var(--color-gray-50);
|
|
45
|
-
--btn-flexi-shadow-a: var(--color-gray-300);
|
|
46
|
-
--btn-flexi-shadow-b: var(--color-gray-200);
|
|
47
|
-
--btn-flexi-shadow-c: var(--color-gray-50);
|
|
48
|
-
--btn-flexi-shadow-active-a: var(--color-gray-400);
|
|
49
|
-
--btn-flexi-shadow-active-b: var(--color-gray-300);
|
|
50
|
-
--btn-flexi-shadow-active-c: var(--color-gray-500);
|
|
51
|
-
|
|
52
|
-
&:is(.dark *) {
|
|
53
|
-
--btn-flexi-bg: var(--color-gray-900);
|
|
54
|
-
--btn-flexi-hover-bg: var(--color-gray-800);
|
|
55
|
-
--btn-flexi-active-bg: var(--color-gray-900);
|
|
56
|
-
--btn-flexi-shadow-a: var(--color-gray-800);
|
|
57
|
-
--btn-flexi-shadow-b: var(--color-gray-900);
|
|
58
|
-
--btn-flexi-shadow-c: var(--color-gray-800);
|
|
59
|
-
--btn-flexi-shadow-active-a: var(--color-gray-700);
|
|
60
|
-
--btn-flexi-shadow-active-b: var(--color-gray-800);
|
|
61
|
-
--btn-flexi-shadow-active-c: var(--color-gray-900);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@utility btn-flexi-neutral {
|
|
66
|
-
--btn-flexi-bg: var(--color-gray-900);
|
|
67
|
-
--btn-flexi-hover-bg: var(--color-gray-800);
|
|
68
|
-
--btn-flexi-active-bg: var(--color-gray-950);
|
|
69
|
-
--btn-flexi-shadow-a: var(--color-gray-700);
|
|
70
|
-
--btn-flexi-shadow-b: var(--color-gray-500);
|
|
71
|
-
--btn-flexi-shadow-c: var(--color-gray-400);
|
|
72
|
-
--btn-flexi-shadow-active-a: var(--color-gray-700);
|
|
73
|
-
--btn-flexi-shadow-active-b: var(--color-gray-600);
|
|
74
|
-
--btn-flexi-shadow-active-c: var(--color-gray-500);
|
|
75
|
-
|
|
76
|
-
&:is(.dark *) {
|
|
77
|
-
--btn-flexi-bg: var(--color-white);
|
|
78
|
-
--btn-flexi-hover-bg: var(--color-gray-100);
|
|
79
|
-
--btn-flexi-active-bg: var(--color-gray-50);
|
|
80
|
-
--btn-flexi-shadow-a: var(--color-gray-100);
|
|
81
|
-
--btn-flexi-shadow-b: var(--color-gray-200);
|
|
82
|
-
--btn-flexi-shadow-c: var(--color-gray-50);
|
|
83
|
-
--btn-flexi-shadow-active-a: var(--color-gray-200);
|
|
84
|
-
--btn-flexi-shadow-active-b: var(--color-gray-300);
|
|
85
|
-
--btn-flexi-shadow-active-c: var(--color-gray-50);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
61
|
|
|
90
62
|
@utility btn-outline-danger {
|
|
91
63
|
--btn-outline-bg: var(--color-danger-50);
|
|
@@ -18,6 +18,26 @@
|
|
|
18
18
|
--btn-solid-color-press: var(--color-secondary-800);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
@utility btn-solid-success {
|
|
22
|
+
--btn-solid-top-shadow: var(--color-success-500);
|
|
23
|
+
--btn-solid-bottom-shadow: var(--color-success-700);
|
|
24
|
+
--btn-solid-top-shadow-hover: var(--color-success-600);
|
|
25
|
+
--btn-solid-bottom-shadow-hover: var(--color-success-800);
|
|
26
|
+
--btn-solid-color: var(--color-success-600);
|
|
27
|
+
--btn-solid-color-hover: var(--color-success-700);
|
|
28
|
+
--btn-solid-color-press: var(--color-success-800);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@utility btn-solid-danger {
|
|
32
|
+
--btn-solid-top-shadow: var(--color-danger-500);
|
|
33
|
+
--btn-solid-bottom-shadow: var(--color-danger-700);
|
|
34
|
+
--btn-solid-top-shadow-hover: var(--color-danger-600);
|
|
35
|
+
--btn-solid-bottom-shadow-hover: var(--color-danger-800);
|
|
36
|
+
--btn-solid-color: var(--color-danger-600);
|
|
37
|
+
--btn-solid-color-hover: var(--color-danger-700);
|
|
38
|
+
--btn-solid-color-press: var(--color-danger-800);
|
|
39
|
+
}
|
|
40
|
+
|
|
21
41
|
@utility btn-solid-neutral {
|
|
22
42
|
--btn-solid-top-shadow: var(--color-gray-200);
|
|
23
43
|
--btn-solid-bottom-shadow: var(--color-gray-100);
|
|
@@ -37,6 +37,11 @@
|
|
|
37
37
|
--ui-outline-text: var(--color-danger-500);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
|
|
41
|
+
@utility ui-soft-gray {
|
|
42
|
+
--ui-soft-bg: --alpha(var(--color-gray-700) / 30%);
|
|
43
|
+
--ui-soft-text: var(--color-gray-300);
|
|
44
|
+
}
|
|
40
45
|
@utility ui-soft-success {
|
|
41
46
|
--ui-soft-bg: --alpha(var(--color-success-900) / 30%);
|
|
42
47
|
--ui-soft-text: var(--color-success-300);
|
|
@@ -52,6 +57,12 @@
|
|
|
52
57
|
--ui-soft-text: var(--color-danger-300);
|
|
53
58
|
}
|
|
54
59
|
|
|
60
|
+
|
|
61
|
+
@utility ui-subtle-gray {
|
|
62
|
+
--ui-subtle-bg: --alpha(var(--color-gray-800) / 30%);
|
|
63
|
+
--ui-subtle-text: var(--color-gray-300);
|
|
64
|
+
--ui-subtle-border: --alpha(var(--color-gray-800) / 80%);
|
|
65
|
+
}
|
|
55
66
|
@utility ui-subtle-success {
|
|
56
67
|
--ui-subtle-bg: --alpha(var(--color-success-900) / 30%);
|
|
57
68
|
--ui-subtle-text: var(--color-success-300);
|
|
@@ -27,6 +27,15 @@
|
|
|
27
27
|
--btn-solid-color-hover: var(--color-success-700);
|
|
28
28
|
--btn-solid-color-press: var(--color-success-800);
|
|
29
29
|
}
|
|
30
|
+
@utility btn-solid-danger {
|
|
31
|
+
--btn-solid-top-shadow: var(--color-danger-500);
|
|
32
|
+
--btn-solid-bottom-shadow: var(--color-danger-700);
|
|
33
|
+
--btn-solid-top-shadow-hover: var(--color-danger-600);
|
|
34
|
+
--btn-solid-bottom-shadow-hover: var(--color-danger-800);
|
|
35
|
+
--btn-solid-color: var(--color-danger-600);
|
|
36
|
+
--btn-solid-color-hover: var(--color-danger-700);
|
|
37
|
+
--btn-solid-color-press: var(--color-danger-800);
|
|
38
|
+
}
|
|
30
39
|
|
|
31
40
|
@utility btn-solid-neutral {
|
|
32
41
|
--btn-solid-top-shadow: var(--color-gray-800);
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
--ui-outline-text: var(--color-danger-600);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
@utility ui-soft-gray {
|
|
41
|
+
--ui-soft-bg: --alpha(var(--color-gray-200) / 40%);
|
|
42
|
+
--ui-soft-text: var(--color-gray-700);
|
|
43
|
+
}
|
|
40
44
|
@utility ui-soft-success {
|
|
41
45
|
--ui-soft-bg: --alpha(var(--color-success-100) / 40%);
|
|
42
46
|
--ui-soft-text: var(--color-success-600);
|
|
@@ -52,6 +56,12 @@
|
|
|
52
56
|
--ui-soft-text: var(--color-danger-600);
|
|
53
57
|
}
|
|
54
58
|
|
|
59
|
+
@utility ui-subtle-gray {
|
|
60
|
+
--ui-subtle-bg: --alpha(var(--color-gray-200) / 40%);
|
|
61
|
+
--ui-subtle-text: var(--color-gray-700);
|
|
62
|
+
--ui-subtle-border: var(--color-gray-200);
|
|
63
|
+
}
|
|
64
|
+
|
|
55
65
|
@utility ui-subtle-success {
|
|
56
66
|
--ui-subtle-bg: --alpha(var(--color-success-100) / 40%);
|
|
57
67
|
--ui-subtle-text: var(--color-success-600);
|
package/stubs/css/utilities.stub
CHANGED
|
@@ -110,6 +110,15 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
@utility ui-soft-gray {
|
|
114
|
+
--ui-soft-bg: --alpha(var(--color-gray-200) / 40%);
|
|
115
|
+
--ui-soft-text: var(--color-gray-700);
|
|
116
|
+
|
|
117
|
+
&:is(.dark *) {
|
|
118
|
+
--ui-soft-bg: --alpha(var(--color-gray-700) / 30%);
|
|
119
|
+
--ui-soft-text: var(--color-gray-300);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
113
122
|
@utility ui-soft-success {
|
|
114
123
|
--ui-soft-bg: --alpha(var(--color-success-100) / 40%);
|
|
115
124
|
--ui-soft-text: var(--color-success-600);
|
|
@@ -141,6 +150,19 @@
|
|
|
141
150
|
}
|
|
142
151
|
|
|
143
152
|
|
|
153
|
+
|
|
154
|
+
@utility ui-subtle-gray {
|
|
155
|
+
--ui-subtle-bg: --alpha(var(--color-gray-200) / 40%);
|
|
156
|
+
--ui-subtle-text: var(--color-gray-700);
|
|
157
|
+
--ui-subtle-border: var(--color-gray-200);
|
|
158
|
+
|
|
159
|
+
&:is(.dark *) {
|
|
160
|
+
--ui-subtle-bg: --alpha(var(--color-gray-800) / 30%);
|
|
161
|
+
--ui-subtle-text: var(--color-gray-300);
|
|
162
|
+
--ui-subtle-border: --alpha(var(--color-gray-800) / 80%);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
144
166
|
@utility ui-subtle-success {
|
|
145
167
|
--ui-subtle-bg: --alpha(var(--color-success-100) / 40%);
|
|
146
168
|
--ui-subtle-text: var(--color-success-600);
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
:root {
|
|
3
|
-
--c-primary: var(--color-primary-600);
|
|
4
|
-
--c-secondary: var(--color-secondary-600);
|
|
5
|
-
--c-accent: var(--color-accent-600);
|
|
6
|
-
--c-info: var(--color-info-600);
|
|
7
|
-
--c-warning: var(--color-warning-600);
|
|
8
|
-
--c-danger: var(--color-danger-600);
|
|
9
|
-
--c-success: var(--color-success-600);
|
|
10
|
-
|
|
11
|
-
--c-fg-title: var(--color-gray-900);
|
|
12
|
-
--c-fg-subtitle: var(--color-gray-800);
|
|
13
|
-
--c-fg: var(--color-gray-700);
|
|
14
|
-
--c-fg-muted: var(--color-gray-600);
|
|
15
|
-
|
|
16
|
-
--c-bg: var(--color-white);
|
|
17
|
-
--c-bg-subtle: var(--color-gray-100);
|
|
18
|
-
--c-bg-surface: var(--color-gray-50);
|
|
19
|
-
--c-bg-muted: var(--color-gray-200);
|
|
20
|
-
--c-bg-surface-elevated: var(--color-gray-300);
|
|
21
|
-
--c-card: var(--color-bg);
|
|
22
|
-
--c-card-gray: var(--color-bg-subtle);
|
|
23
|
-
--c-overlay: var(--c-bg);
|
|
24
|
-
--c-overlay-gray: var(--c-bg-subtle);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--c-border-strong: var(--color-gray-300);
|
|
28
|
-
--c-border-amphasis: var(--color-gray-400);
|
|
29
|
-
--c-border: var(--color-gray-200);
|
|
30
|
-
--c-border-sub: var(--color-gray-100);
|
|
31
|
-
--c-border-card:var(--color-gray-200);
|
|
32
|
-
--c-border-input: var(--color-gray-200);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.dark {
|
|
37
|
-
--c-primary: var(--color-primary-500);
|
|
38
|
-
--c-secondary: var(--color-secondary-500);
|
|
39
|
-
--c-accent: var(--color-accent-500);
|
|
40
|
-
--c-info: var(--color-info-500);
|
|
41
|
-
--c-warning: var(--color-warning-500);
|
|
42
|
-
--c-danger: var(--color-danger-500);
|
|
43
|
-
--c-success: var(--color-success-500);
|
|
44
|
-
|
|
45
|
-
--c-fg-title: var(--color-white);
|
|
46
|
-
--c-fg-subtitle: var(--color-gray-100);
|
|
47
|
-
--c-fg: var(--color-gray-300);
|
|
48
|
-
--c-fg-muted: var(--color-gray-400);
|
|
49
|
-
|
|
50
|
-
--c-bg: var(--color-gray-950);
|
|
51
|
-
--c-bg-subtle: var(--color-gray-900);
|
|
52
|
-
|
|
53
|
-
--c-bg-muted: var(--color-gray-800);
|
|
54
|
-
--c-bg-surface-elevated: var(--color-gray-700);
|
|
55
|
-
|
|
56
|
-
--c-border-strong: var(--color-gray-700);
|
|
57
|
-
--c-border-amphasis: var(--color-gray-600);
|
|
58
|
-
--c-border: var(--color-gray-900);
|
|
59
|
-
--c-border-sub: var(--color-gray-900);
|
|
60
|
-
--c-border-card:var(--color-gray-800);
|
|
61
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@custom-variant fx-open (&[data-state="open"]);
|
|
2
|
-
@custom-variant fx-close (&[data-state="close"]);
|
|
3
|
-
@custom-variant fx-visible (&[data-state="visible"]);
|
|
4
|
-
@custom-variant fx-hidden (&[data-state="hidden"]);
|
|
5
|
-
@custom-variant fx-opened (&[data-state="opened"]);
|
|
6
|
-
@custom-variant fx-closed (&[data-state="closed"]);
|
|
7
|
-
@custom-variant fx-resized (&[data-resized="true"]);
|
|
8
|
-
@custom-variant fx-active (&[data-state="active"]);
|
|
9
|
-
@custom-variant fx-inactive (&[data-state="inactive"]);
|
|
10
|
-
@custom-variant fx-focus-active (&[data-focus="active"]);
|
|
11
|
-
|
|
12
|
-
@custom-variant fx-selected (&[data-selected]);
|
|
13
|
-
@custom-variant fx-checked (&[data-checked="true"]);
|
|
14
|
-
@custom-variant fx-indeterminate (&[data-indeterminate="true"]);
|
|
15
|
-
@custom-variant fx-inert (&[data-inert]);
|
|
16
|
-
@custom-variant fx-focused (&[data-focus="true"]);
|
|
17
|
-
@custom-variant fx-focus-visible (&[data-focus-visible="true"]);
|
|
18
|
-
@custom-variant fx-invalid (&[data-invalid="true"]);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@custom-variant slot-icon (&[slot="icon"]);
|
|
22
|
-
@custom-variant slot-label (&[slot="label"]);
|
|
23
|
-
@custom-variant slot-description (&[slot="description"]);
|
|
24
|
-
@custom-variant slot-kbd (&[slot="kbd"]);
|
|
25
|
-
|
|
26
|
-
@custom-variant fx-slide-x (&[data-ax="x"]);
|
|
27
|
-
@custom-variant fx-slide-y (&[data-ax="y"]);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@custom-variant placement-left (&[data-placement="left"]);
|
|
31
|
-
@custom-variant placement-right (&[data-placement="right"]);
|
|
32
|
-
@custom-variant placement-top (&[data-placement="top"]);
|
|
33
|
-
@custom-variant placement-bottom (&[data-placement="bottom"]);
|
|
34
|
-
|
|
35
|
-
@custom-variant exiting (&[data-exiting]);
|
|
36
|
-
@custom-variant entering (&[data-entering]);
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
@utility btn {
|
|
4
|
-
@apply flex items-center disabled:opacity-90 disabled:cursor-not-allowed disabled:hover:opacity-70 transition-colors ease-linear outline-offset-2 outline-2 outline-transparent focus-visible:outline-(--btn-focus-outline-color);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@utility btn-xs {
|
|
8
|
-
@apply h-6 px-3.5 text-xs;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@utility btn-icon-xs {
|
|
12
|
-
@apply size-6 text-xs justify-center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@utility btn-sm {
|
|
16
|
-
@apply h-8 px-4 text-sm;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@utility btn-icon-sm {
|
|
20
|
-
@apply size-8 text-sm justify-center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@utility btn-md {
|
|
24
|
-
@apply h-10 px-5 text-sm;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@utility btn-icon-md {
|
|
28
|
-
@apply size-10 justify-center text-sm;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@utility btn-lg {
|
|
32
|
-
@apply h-12 px-6 text-sm;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@utility btn-icon-lg {
|
|
36
|
-
@apply size-12 justify-center text-sm;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@utility btn-xl {
|
|
40
|
-
@apply h-14 px-7 text-sm;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@utility btn-icon-xl {
|
|
44
|
-
@apply size-14 justify-center text-sm;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
@utility btn-solid {
|
|
49
|
-
@apply bg-(--btn-solid-color) hover:bg-(--btn-solid-color-hover) active:bg-(--btn-solid-color-press) focus-visible:outline-(--btn-solid-color-hover) [--btn-focus-outline-color:var(--btn-solid-color-hover)];
|
|
50
|
-
background-image: radial-gradient(farthest-corner at 50% -50%, rgba(255, 255, 255, .1) 0%, transparent 100%);
|
|
51
|
-
box-shadow: inset 0px 2px 0 var(--btn-solid-top-shadow), inset 0px -2px 0 var(--btn-solid-bottom-shadow);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@utility btn-flexi {
|
|
55
|
-
@apply bg-(--btn-flexi-bg) hover:bg-(--btn-flexi-hover-bg) active:bg-(--btn-flexi-active-bg) active:[--btn-flexi-shadow-a:--btn-flexi-shadow-active-a] active:[--btn-flexi-shadow-b:--btn-flexi-shadow-active-b] active:[--btn-flexi-shadow-c:--btn-flexi-shadow-active-c] [--btn-focus-outline-color:--btn-flexi-hover-bg];
|
|
56
|
-
--tw-shadow: 0 -1px 0 0px var(--tw-shadow-color, var(--btn-flexi-shadow-a)) inset, 0 0 0 1px var(--tw-shadow-color, var(--btn-flexi-shadow-b)) inset, 0 0.5px 0 1.5px var(--tw-shadow-color, var(--btn-flexi-shadow-c)) inset;
|
|
57
|
-
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@utility btn-outline {
|
|
61
|
-
background-image: radial-gradient(76% 151% at 52% -52%, rgba(255, 255, 255, var(--outline-radial-opacity)) 0%, transparent 100%);
|
|
62
|
-
box-shadow: rgba(255, 255, 255, var(--inner-border-color)) 0px 1px 0px 0px inset, var(--btn-outline-color) 0px 0px 0px 1px, 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
63
|
-
@apply hover:brightness-[0.98] active:brightness-100 bg-(--btn-outline-bg) hover:bg-(--btn-outline-bg-hover) active:bg-(--btn-outline-bg) [--outline-radial-opacity:0.6] [--inner-border-color:1] text-(--btn-outline-text-color) focus-visible:outline-(--btn-outline-color-hover);
|
|
64
|
-
|
|
65
|
-
&:is(.dark *) {
|
|
66
|
-
background-image: none;
|
|
67
|
-
--inner-border-color: 0;
|
|
68
|
-
--outline-radial-opacity: 0.2;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@utility btn-soft {
|
|
73
|
-
@apply bg-(--btn-soft-bg-color) hover:bg-(--btn-soft-bg-color-hover) active:bg-(--btn-soft-bg-color-press) text-(--btn-soft-text-color) [--btn-focus-outline-color:--btn-soft-text-color];
|
|
74
|
-
|
|
75
|
-
&:hover {
|
|
76
|
-
@media (hover: hover) {
|
|
77
|
-
color: var(--btn-soft-text-color-hover, --btn-soft-text-color);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&:active {
|
|
82
|
-
color: var(--btn-soft-text-color-hover, --btn-soft-text-color);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
@utility btn-ghost {
|
|
89
|
-
@apply hover:bg-(--btn-ghost-bg-color-hover) active:bg-(--btn-ghost-bg-color-press) text-(--btn-ghost-text-color) [--btn-focus-outline-color:--btn-ghost-text-color];
|
|
90
|
-
|
|
91
|
-
&:hover {
|
|
92
|
-
@media (hover: hover) {
|
|
93
|
-
color: var(--btn-ghost-text-color-hover, --btn-ghost-text-color);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&:active {
|
|
98
|
-
color: var(--btn-ghost-text-color-hover, --btn-ghost-text-color);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
@utility ui-form-ring-base {
|
|
2
|
-
@apply outline outline-transparent ring-transparent ring-offset-transparent ring-3 ring-offset-1;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
@utility ui-form-ring {
|
|
6
|
-
@apply focus:ring-(--focus-ring) focus:outline-(--ui-input-focus-outline);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@utility ui-input-opt-ring {
|
|
10
|
-
@apply data-[active=true]:ring-(--focus-ring) data-[active=true]:outline-(--ui-input-focus-outline) hover:outline-(--ui-input-focus-outline);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@utility ui-input-opt-ring-danger {
|
|
14
|
-
@apply data-[active=true]:aria-invalid:ring-(--focus-ring-invalid) data-[active=true]:aria-invalid:outline-(--ui-input-focus-outline-invalid);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@utility ui-form-input {
|
|
20
|
-
@apply disabled:hover:cursor-not-allowed disabled:opacity-60 transition-all ease-linear duration-200;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@utility ui-form-outline {
|
|
24
|
-
@apply outline-offset-0 focus:outline-offset-0 focus:border-transparent;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@utility ui-form-otp-outline {
|
|
28
|
-
@apply outline-offset-0 data-[active=true]:outline-offset-0 data-[active=true]:border-transparent;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@utility ui-form-group-base {
|
|
33
|
-
@apply w-full data-invalide:outline-(--ui-input-invalid-outline);
|
|
34
|
-
|
|
35
|
-
& input,
|
|
36
|
-
& select {
|
|
37
|
-
@apply flex-1 placeholder-(--ui-input-place-holder) leading-6;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@utility ui-form-group {
|
|
42
|
-
@apply has-disabled:hover:cursor-not-allowed disabled:hover:cursor-not-allowed has-disabled:opacity-80 disabled:opacity-80 outline-offset-0 transition-all ease-linear duration-200;
|
|
43
|
-
|
|
44
|
-
& input {
|
|
45
|
-
@apply outline-none focus:outline-none appearance-none;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
@utility ui-form-group-ring {
|
|
51
|
-
@apply focus-within:outline-offset-0 focus-within:border-transparent focus-within:outline-(--ui-input-focus-outline) focus-within:ring-(--focus-ring);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
@utility ui-input-select-trigger-base {
|
|
55
|
-
@apply relative focus:enabled:hover:border-ring/80 enabled:hover:border-fg-muted/30 flex w-full min-w-0 items-center;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@utility ui-form-select-trigger {
|
|
59
|
-
@apply relative;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@utility ui-form-select-trigger-invalid {
|
|
63
|
-
@apply group-open/select:border-ring/70 group-open/select:ring-3 group-open/select:ring-ring/20;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@utility ui-form-select-triger-invalid-base {
|
|
67
|
-
@apply group-focus/select:group-invalid/select:border-(--select-trigger-danger-border) group-focus/select:group-invalid/select:enabled:hover:border-(--select-trigger-danger-border-hover);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@utility ui-form-select-trigger-invalid-outline {
|
|
71
|
-
@apply group-open/select:invalid:border-(--select-trigger-danger-border) group-open/select:invalid:ring-3 group-open/select:invalid:ring-(--select-trigger-danger-ring) group-invalid/select:border-(--select-trigger-danger-border) group-invalid/select:ring-(--select-trigger-danger-ring) group-invalid/select:enabled:hover:border-(--select-trigger-danger-border);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@utility ui-form-select-trigger-access {
|
|
75
|
-
@apply in-disabled:bg-bg-muted in-disabled:opacity-50 forced-colors:in-disabled:border-[GrayText] forced-colors:in-disabled:text-[GrayText];
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@utility ui-form-select-trigger-ring {
|
|
79
|
-
@apply focus:outline-offset-0 focus:border-transparent focus:outline-(--ui-input-focus-outline) focus:ring-(--focus-ring)
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* to complete for select trigger */
|
|
83
|
-
|
|
84
|
-
/* "*:data-[slot=icon]:size-5 *:data-[slot=icon]:shrink-0 *:data-[slot=icon]:self-center *:data-[slot=icon]:text-(--btn-icon) pressed:*:data-[slot=icon]:text-(--btn-icon-active) focus-visible:*:data-[slot=icon]:text-(--btn-icon-active)/80 enabled:hover:*:data-[slot=icon]:text-(--btn-icon-active)/90 sm:*:data-[slot=icon]:size-4 forced-colors:[--btn-icon:ButtonText] forced-colors:hover:[--btn-icon:ButtonText]",
|
|
85
|
-
"*:data-[slot=loader]:size-5 *:data-[slot=loader]:shrink-0 *:data-[slot=loader]:self-center *:data-[slot=loader]:text-(--btn-icon) sm:*:data-[slot=loader]:size-4",
|
|
86
|
-
|
|
87
|
-
"forced-colors:group-focus/select:border-[Highlight] forced-colors:group-invalid/select:border-[Mark] forced-colors:group-focus/select:group-invalid/select:border-[Mark]",
|
|
88
|
-
"group-disabled/select:bg-muted group-disabled/select:opacity-50 forced-colors:group-disabled/select:border-[GrayText] forced-colors:group-disabled/select:text-[GrayText]",
|
|
89
|
-
"",
|
|
90
|
-
"dark:scheme-dark", */
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
@utility ui-form-input-xs {
|
|
96
|
-
@apply px-2 text-xs h-6;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@utility ui-form-input-sm {
|
|
100
|
-
@apply px-2.5 text-sm h-8;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@utility ui-form-input-md {
|
|
104
|
-
@apply px-3 text-sm h-9;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@utility ui-form-input-lg {
|
|
108
|
-
@apply px-3 text-sm h-10;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@utility ui-form-input-xl {
|
|
112
|
-
@apply px-3.5 text-base h-11;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
@utility ui-form-base {
|
|
116
|
-
@apply appearance-none w-full placeholder-(--ui-input-place-holder) data-invalid:outline-(--ui-input-invalid-outline) leading-6;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
@utility ui_c_r {
|
|
122
|
-
@apply outline-offset-0 outline outline-transparent fx-checked:outline-offset-0 fx-checked:border-transparent fx-indeterminate:outline-offset-0 fx-indeterminate:border-transparent fx-checked:outline-(--ui-input-focus-outline) fx-indeterminate:outline-(--ui-input-focus-outline);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@utility ui_c_r-selected {
|
|
126
|
-
@apply bg-(--checkbox-bg) text-(--checkbox-fg) fx-checked:[--checkbox-bg:var(--checkbox-bg-checked)] fx-checked:[--checkbox-fg:var(--checkbox-fg-checked)];
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@utility ui-c_r-ring {
|
|
130
|
-
@apply ring-transparent ring-offset-transparent fx-focus-visible:ring-(--focus-ring) ring-3 ring-offset-1;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@utility ui_c_r_invalid {
|
|
134
|
-
@apply border-transparent outline outline-(--invalid-outline) outline-offset-0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@utility ui-c_r-selected-indeterminate {
|
|
138
|
-
|
|
139
|
-
&[data-checked="true"],
|
|
140
|
-
&[data-indeterminate="true"] {
|
|
141
|
-
@apply bg-(--checkbox-bg) text-(--checkbox-fg)
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
@utility ui-c_r-group {
|
|
148
|
-
@apply space-y-3 has-[[slot=description]]:space-y-6 has-[[slot=description]]:**:data-[slot=label]:font-medium **:[[slot=description]]:block;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
@utility ui-c_r-wrapper {
|
|
152
|
-
@apply grid gap-y-1 gap-x-3;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@utility ui-c_r-wrapper-indicator {
|
|
156
|
-
@apply *:data-[slot=indicator]:col-start-1 *:data-[slot=indicator]:row-start-1;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@utility ui-c_r-wrapper-label {
|
|
160
|
-
@apply *:data-[slot=label]:col-start-2 *:data-[slot=label]:row-start-1;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
@utility ui-c_r-wrapper-description {
|
|
164
|
-
@apply has-[[slot=description]]:**:data-[slot=label]:font-medium *:[[slot=description]]:col-start-2 *:[[slot=description]]:row-start-2
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@utility ui-checkbox-base {
|
|
168
|
-
@apply in-disabled:bg-bg-muted relative size-(--checkbox-size) *:data-[slot=check-indicator]:size-(--checkbox-indicator-size) isolate flex shrink-0 items-center justify-center;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
@utility ui-radio-base {
|
|
173
|
-
@apply relative isolate size-(--radio-size) flex before:absolute rounded-full before:rounded-full;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@utility ui-radio-indicator {
|
|
177
|
-
@apply before:top-1/2 before:left-1/2 before:-translate-1/2 before:size-2 before:bg-current
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
@utility ui-data-segment-placeholder {
|
|
181
|
-
@apply text-(--ui-input-place-holder) [data-focused]:text-(--date-segment-focus-fg)
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
@utility ui-date-segment {
|
|
185
|
-
color: var(--date-segment-focus-fg) !important;
|
|
186
|
-
@apply bg-(--date-segment-focus-bg) forced-colors:bg-[Highlight] forced-colors:text-[HighlightText]
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|