@nordcode/ui 2.1.2 → 2.1.4

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/CHANGELOG.md CHANGED
@@ -1,4 +1,16 @@
1
- ## 2.1.1 (2025-11-15)
1
+ ## 2.1.4 (2025-11-15)
2
+
3
+ ### fixes
4
+
5
+ - cleanup button
6
+
7
+ ## 2.1.3 (2025-11-15)
8
+
9
+ ### improvements
10
+
11
+ - update checkbox, radio and switch hover styles
12
+
13
+ ## 2.1.2 (2025-11-15)
2
14
 
3
15
  ### fixes
4
16
 
package/out/complete.css CHANGED
@@ -2248,7 +2248,7 @@
2248
2248
  }
2249
2249
 
2250
2250
  :where(input[type="checkbox"], input[type="radio"], .nc-input-checkbox, .nc-input-radio, .nc-input-switch):checked:hover, :where(input[type="checkbox"], input[type="radio"], .nc-input-checkbox, .nc-input-radio, .nc-input-switch):checked:focus-visible {
2251
- background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 20%);
2251
+ background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 8%);
2252
2252
  }
2253
2253
 
2254
2254
  :where(input[type="checkbox"], .nc-input-checkbox) {
@@ -2414,7 +2414,7 @@
2414
2414
  }
2415
2415
 
2416
2416
  :where(.nc-checkbox-wrapper):hover input:checked {
2417
- background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 20%);
2417
+ background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 8%);
2418
2418
  }
2419
2419
 
2420
2420
  :where(.nc-radio-field, .nc-checkbox-field) {
@@ -2040,7 +2040,7 @@
2040
2040
  }
2041
2041
 
2042
2042
  :where(input[type="checkbox"], input[type="radio"], .nc-input-checkbox, .nc-input-radio, .nc-input-switch):checked:hover, :where(input[type="checkbox"], input[type="radio"], .nc-input-checkbox, .nc-input-radio, .nc-input-switch):checked:focus-visible {
2043
- background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 20%);
2043
+ background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 8%);
2044
2044
  }
2045
2045
 
2046
2046
  :where(input[type="checkbox"], .nc-input-checkbox) {
@@ -2206,7 +2206,7 @@
2206
2206
  }
2207
2207
 
2208
2208
  :where(.nc-checkbox-wrapper):hover input:checked {
2209
- background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 20%);
2209
+ background-color: color-mix(in oklch, var(--current-checkbox-bg), var(--_input-hover-background) 8%);
2210
2210
  }
2211
2211
 
2212
2212
  :where(.nc-radio-field, .nc-checkbox-field) {
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "type": "git",
13
13
  "url": "https://github.com/nordcode-agency/nordcode/tree/main/packages/ui"
14
14
  },
15
- "version": "2.1.2",
15
+ "version": "2.1.4",
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
@@ -1,5 +1,5 @@
1
1
  @layer components.buttons {
2
- :where(button, button, input[type="button"], input[type="submit"], input[type="reset"], input[type="file"], input[type="file"]::-webkit-file-upload-button, input[type="file"]::file-selector-button, .nc-button) {
2
+ :where(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="file"], input[type="file"]::-webkit-file-upload-button, input[type="file"]::file-selector-button, .nc-button) {
3
3
  --_button-background: var(--button-background, var(--surface-hover));
4
4
  --_button-color: var(--button-color, var(--text-hover));
5
5
  --_button-border-color: var(--button-border-color, var(--surface-hover));
@@ -35,7 +35,7 @@
35
35
  justify-content: center;
36
36
  text-align: center;
37
37
  position: relative;
38
- transition: var(--transition-duration-base) var(--ease-2);
38
+ transition: var(--transition-duration-quick-2) var(--ease-2);
39
39
  transition-property: box-shadow, transform;
40
40
  text-decoration: unset;
41
41
  box-shadow: var(--_button-box-shadow);
@@ -173,7 +173,7 @@
173
173
  * it is assumed that an `aria-label` is that
174
174
  * and the button will be styled as an icon button.
175
175
  */
176
- :is([aria-label], .-icon):where(button, button[type], input[type="button"], input[type="submit"], input[type="reset"], .nc-button) {
176
+ :is([aria-label], .-icon):where(button, button, input[type="button"], input[type="submit"], input[type="reset"], .nc-button) {
177
177
  --_button-border-radius: var(--border-radius-round);
178
178
  padding: 0;
179
179
  aspect-ratio: 1;
@@ -193,7 +193,7 @@
193
193
  }
194
194
  }
195
195
 
196
- [disabled]:where(button, button[type], input[type="button"], input[type="submit"], input[type="reset"], .nc-button) {
196
+ [disabled]:where(button, input[type="button"], input[type="submit"], input[type="reset"], .nc-button) {
197
197
  --_button-background: none !important;
198
198
  --_button-background-hover: none !important;
199
199
  --_button-color: var(--color-text-subtle) !important;
@@ -129,7 +129,7 @@
129
129
  background-color: color-mix(
130
130
  in oklch,
131
131
  var(--current-checkbox-bg),
132
- var(--_input-hover-background) 20%
132
+ var(--_input-hover-background) 8%
133
133
  );
134
134
  }
135
135
  }
@@ -69,7 +69,7 @@
69
69
  background-color: color-mix(
70
70
  in oklch,
71
71
  var(--current-checkbox-bg),
72
- var(--_input-hover-background) 20%
72
+ var(--_input-hover-background) 8%
73
73
  );
74
74
  }
75
75
  }