@basis-ng/styles 0.0.1-alpha.189 → 0.0.1-alpha.190
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* Button styles — grouped sections: Base / Variants / Sizes / States / Squared */
|
|
2
2
|
button[b-button] {
|
|
3
3
|
/* Base */
|
|
4
|
-
@apply transition-colors duration-150 flex items-center justify-center gap-x-1.5 disabled:opacity-
|
|
4
|
+
@apply transition-colors duration-150 flex items-center justify-center gap-x-1.5 disabled:opacity-60 disabled:pointer-events-none;
|
|
5
5
|
|
|
6
6
|
/* Default spacing/typography applied when no explicit size is present */
|
|
7
7
|
@apply px-3 py-0 text-sm h-8 rounded-size-md;
|
package/src/components/input.css
CHANGED
|
@@ -8,7 +8,9 @@ input[b-input] {
|
|
|
8
8
|
@apply px-2.5 py-0 text-sm h-8 rounded-size-md;
|
|
9
9
|
|
|
10
10
|
/* Disabled */
|
|
11
|
-
|
|
11
|
+
&:disabled {
|
|
12
|
+
@apply opacity-60 pointer-events-none;
|
|
13
|
+
}
|
|
12
14
|
|
|
13
15
|
&:focus-visible:not(:read-only) {
|
|
14
16
|
/* Keep primary outline on focus to maintain emphasis */
|
|
@@ -30,10 +32,6 @@ input[b-input] {
|
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
&:disabled {
|
|
34
|
-
@apply opacity-60 pointer-events-none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
35
|
/* Sizes */
|
|
38
36
|
&.b-size-sm {
|
|
39
37
|
@apply px-2 py-0 text-xs h-6 rounded-size-sm;
|
|
@@ -3,7 +3,7 @@ b-select {
|
|
|
3
3
|
|
|
4
4
|
button[b-select-trigger] {
|
|
5
5
|
/* Base */
|
|
6
|
-
@apply w-full transition-colors duration-150 flex items-center justify-between gap-x-1.5 disabled:opacity-
|
|
6
|
+
@apply w-full transition-colors duration-150 flex items-center justify-between gap-x-1.5 disabled:opacity-60 disabled:pointer-events-none;
|
|
7
7
|
|
|
8
8
|
/* Default spacing/typography applied when no explicit size is present */
|
|
9
9
|
@apply px-3 py-0 text-sm h-8 rounded-size-md gap-2;
|
|
@@ -60,23 +60,21 @@ b-select {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
}
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
@apply text-destructive inset-ring-destructive/20 bg-destructive/10 hover:bg-destructive/20;
|
|
70
|
-
@apply dark:text-destructive-dark dark:inset-ring-destructive-dark/20 dark:bg-destructive-dark/10 dark:hover:bg-destructive-dark/20;
|
|
64
|
+
&.ng-invalid.ng-touched {
|
|
65
|
+
button[b-select-trigger] {
|
|
66
|
+
@apply text-destructive inset-ring-destructive/20 bg-destructive/10 hover:bg-destructive/20;
|
|
67
|
+
@apply dark:text-destructive-dark dark:inset-ring-destructive-dark/20 dark:bg-destructive-dark/10 dark:hover:bg-destructive-dark/20;
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
b-select-value {
|
|
70
|
+
@apply text-destructive;
|
|
71
|
+
@apply dark:text-destructive-dark;
|
|
72
|
+
}
|
|
76
73
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
&:focus-visible {
|
|
75
|
+
@apply outline-destructive;
|
|
76
|
+
@apply dark:outline-destructive-dark;
|
|
77
|
+
}
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
80
|
}
|