@uncinq/css-components 0.2.0 → 0.2.2

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.
@@ -13,7 +13,7 @@
13
13
  font-weight: var(--btn-font-weight);
14
14
  gap: var(--btn-gap);
15
15
  justify-content: center;
16
- padding: var(--btn-padding);
16
+ padding: var(--btn-padding-y) var(--btn-padding-x);
17
17
  text-decoration-color: var(--btn-color-text-decoration);
18
18
  text-decoration-line: var(--btn-text-decoration-line);
19
19
  text-decoration-thickness: var(--text-decoration-thickness);
@@ -21,8 +21,8 @@
21
21
  text-underline-offset: var(--text-decoration-offset);
22
22
 
23
23
  &:focus-visible {
24
- outline: 2px solid var(--color-focus);
25
- outline-offset: 2px;
24
+ outline: var(--focus-outline-width, 2px) solid var(--color-focus);
25
+ outline-offset: var(--focus-outline-offset, 2px);
26
26
  }
27
27
 
28
28
  &:disabled,
@@ -78,26 +78,31 @@
78
78
  /* Sizes */
79
79
  .btn-xs {
80
80
  --btn-font-size: var(--font-size-xs);
81
- --btn-padding: var(--spacing-xs);
81
+ --btn-padding-x: var(--spacing-xs);
82
+ --btn-padding-y: var(--spacing-xs);
82
83
  }
83
84
 
84
85
  .btn-sm {
85
86
  --btn-font-size: var(--font-size-sm);
86
- --btn-padding: var(--spacing-sm);
87
+ --btn-padding-x: var(--spacing-sm);
88
+ --btn-padding-y: var(--spacing-sm);
87
89
  }
88
90
 
89
91
  .btn-md {
90
92
  --btn-font-size: var(--font-size-md);
91
- --btn-padding: var(--spacing-md);
93
+ --btn-padding-x: var(--spacing-md);
94
+ --btn-padding-y: var(--spacing-md);
92
95
  }
93
96
 
94
97
  .btn-lg {
95
98
  --btn-font-size: var(--font-size-lg);
96
- --btn-padding: var(--spacing-lg);
99
+ --btn-padding-x: var(--spacing-lg);
100
+ --btn-padding-y: var(--spacing-lg);
97
101
  }
98
102
 
99
103
  .btn-xl {
100
104
  --btn-font-size: var(--font-size-xl);
101
- --btn-padding: var(--spacing-xl);
105
+ --btn-padding-x: var(--spacing-xl);
106
+ --btn-padding-y: var(--spacing-xl);
102
107
  }
103
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinq/css-components",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Framework-agnostic CSS component implementations.",
5
5
  "license": "MIT",
6
6
  "repository": {