@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,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-ng/styles",
3
- "version": "0.0.1-alpha.189",
3
+ "version": "0.0.1-alpha.190",
4
4
  "description": "CSS foundation for @basis-ng/primitives components",
5
5
  "main": "src/index.css",
6
6
  "exports": {
@@ -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-50 disabled:cursor-not-allowed;
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;
@@ -10,7 +10,7 @@ button[b-checkbox] {
10
10
  }
11
11
 
12
12
  &[data-disabled] {
13
- @apply opacity-50 cursor-not-allowed;
13
+ @apply opacity-60 pointer-events-none;
14
14
  }
15
15
 
16
16
  &[data-state='checked'] {
@@ -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
- @apply disabled:opacity-50 disabled:cursor-not-allowed;
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-50 disabled:cursor-not-allowed;
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
- /* Invalid state - Angular applies ng-invalid/ng-touched to parent wrapper components, not b-select */
66
- .ng-invalid.ng-touched b-select,
67
- b-select.ng-invalid.ng-touched {
68
- button[b-select-trigger] {
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
- b-select-value {
73
- @apply text-destructive;
74
- @apply dark:text-destructive-dark;
75
- }
69
+ b-select-value {
70
+ @apply text-destructive;
71
+ @apply dark:text-destructive-dark;
72
+ }
76
73
 
77
- &:focus-visible {
78
- @apply outline-destructive;
79
- @apply dark:outline-destructive-dark;
74
+ &:focus-visible {
75
+ @apply outline-destructive;
76
+ @apply dark:outline-destructive-dark;
77
+ }
80
78
  }
81
79
  }
82
80
  }
@@ -36,7 +36,7 @@ b-tabs {
36
36
 
37
37
  /* Disabled state */
38
38
  &[aria-disabled='true'] {
39
- @apply opacity-50 cursor-not-allowed pointer-events-none;
39
+ @apply opacity-60 pointer-events-none;
40
40
  }
41
41
  }
42
42