layered-ui-rails 0.27.2 → 0.28.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a104dd90d9d3788698cd380040b5cb994dd117d4e9977068cbe2dd329cbd9445
|
|
4
|
+
data.tar.gz: aa10d890803555e8a66800b854cd88a2c05702b6dd2728bbd1f7dffa420e2798
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6051277431bb1c307f38f284aaeb9c35330baf847a33c299cebcb0797fb998365d863ac7478152b656d0361a3b5f833475494c050e9a07c4995d568cfd74c5b7
|
|
7
|
+
data.tar.gz: 51cd2b99a0bc22e7c27bb5a8d6b6e66a14304abbd979c89db6606a2c6e249784474213659c44182e06667bf988552dea36fd56a27cd05ab7b15149d55f9360cc
|
|
@@ -535,6 +535,8 @@ Tier 2 - Full palette (override individually as needed):
|
|
|
535
535
|
--button-primary-icon Icon color on filled icon buttons (defaults to --button-primary-text)
|
|
536
536
|
--danger Danger/error color
|
|
537
537
|
--danger-foreground Text/icon color on solid danger buttons
|
|
538
|
+
--button-danger-bg Background of solid danger buttons
|
|
539
|
+
--button-outline-danger-text Label color on outline danger buttons
|
|
538
540
|
--danger-light Light danger background
|
|
539
541
|
--danger-text Danger text color
|
|
540
542
|
--success-bg Success background
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. This project follows [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [0.28.1] - 2026-10-28
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- A single-select `l_ui_combobox` no longer shows its placeholder once a value is chosen. The placeholder stayed visible beside the token and read as a second value. It is now transparent while a token is selected; multi-select comboboxes are unchanged.
|
|
10
|
+
|
|
11
|
+
## [0.28.0] - 2026-10-25
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- `--button-danger-bg` sets the background of `.l-ui-button--danger`. It defaults to `--danger` in light mode and a deeper red in dark mode.
|
|
16
|
+
- `--button-outline-danger-text` sets the label colour of `.l-ui-button--outline-danger`. It defaults to `--foreground` in light mode and white in dark mode.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Danger buttons are easier to read in dark mode. The solid button's label is now white on a deeper red (6.1:1), rather than near-black on a bright red. The outline button's label is white in dark mode and the default text colour in light mode; its border stays red. If you override `--danger` to recolour solid danger buttons, set `--button-danger-bg` instead.
|
|
21
|
+
|
|
5
22
|
## [0.27.2] - 2026-10-05
|
|
6
23
|
|
|
7
24
|
### Fixed
|
|
@@ -71,6 +71,8 @@
|
|
|
71
71
|
--button-primary-icon: var(--button-primary-text);
|
|
72
72
|
--danger: oklch(0.47 0.1742 27.23);
|
|
73
73
|
--danger-foreground: oklch(1 0 0);
|
|
74
|
+
--button-danger-bg: var(--danger);
|
|
75
|
+
--button-outline-danger-text: var(--foreground);
|
|
74
76
|
--danger-light: oklch(0.9663 0.0166 17.44);
|
|
75
77
|
--danger-text: oklch(0.443 0.1634 27.14);
|
|
76
78
|
--success-bg: oklch(0.8395 0.1698 152.91);
|
|
@@ -128,7 +130,9 @@
|
|
|
128
130
|
--button-primary-text: var(--accent-foreground);
|
|
129
131
|
--button-primary-icon: var(--button-primary-text);
|
|
130
132
|
--danger: oklch(0.6362 0.2102 25.49);
|
|
131
|
-
--danger-foreground: oklch(
|
|
133
|
+
--danger-foreground: oklch(1 0 0);
|
|
134
|
+
--button-danger-bg: oklch(0.52 0.19 27);
|
|
135
|
+
--button-outline-danger-text: oklch(1 0 0);
|
|
132
136
|
--danger-light: oklch(0.2596 0.1021 28.32);
|
|
133
137
|
--danger-text: oklch(0.6607 0.1921 24.02);
|
|
134
138
|
--success-bg: oklch(0.3385 0.0852 150.45);
|
|
@@ -239,6 +243,8 @@
|
|
|
239
243
|
--color-button-primary-icon: var(--button-primary-icon);
|
|
240
244
|
--color-danger: var(--danger);
|
|
241
245
|
--color-danger-foreground: var(--danger-foreground);
|
|
246
|
+
--color-button-danger-bg: var(--button-danger-bg);
|
|
247
|
+
--color-button-outline-danger-text: var(--button-outline-danger-text);
|
|
242
248
|
--color-danger-light: var(--danger-light);
|
|
243
249
|
--color-danger-text: var(--danger-text);
|
|
244
250
|
--color-success-bg: var(--success-bg);
|
|
@@ -1284,11 +1290,11 @@
|
|
|
1284
1290
|
|
|
1285
1291
|
.l-ui-button--danger {
|
|
1286
1292
|
@apply text-danger-foreground
|
|
1287
|
-
bg-danger;
|
|
1293
|
+
bg-button-danger-bg;
|
|
1288
1294
|
}
|
|
1289
1295
|
|
|
1290
1296
|
.l-ui-button--outline-danger {
|
|
1291
|
-
@apply text-danger
|
|
1297
|
+
@apply text-button-outline-danger-text
|
|
1292
1298
|
border border-danger;
|
|
1293
1299
|
}
|
|
1294
1300
|
|
|
@@ -2171,6 +2177,14 @@ pre.l-ui-surface {
|
|
|
2171
2177
|
outline-none;
|
|
2172
2178
|
}
|
|
2173
2179
|
|
|
2180
|
+
/* A single select holds one value, so once a token is chosen the placeholder
|
|
2181
|
+
would read as a second value beside it. It is made transparent rather than
|
|
2182
|
+
removed so the input keeps its width and the attribute stays intact. */
|
|
2183
|
+
.l-ui-combobox[data-l-ui--combobox-multiple-value="false"]
|
|
2184
|
+
.l-ui-combobox__tokens:not(:empty) ~ .l-ui-combobox__input::placeholder {
|
|
2185
|
+
@apply text-transparent;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2174
2188
|
.l-ui-combobox__listbox {
|
|
2175
2189
|
@apply absolute right-0 left-0 z-30
|
|
2176
2190
|
max-h-64
|
|
@@ -79,6 +79,9 @@ module Layered
|
|
|
79
79
|
--button-primary-text: var(--accent-foreground);
|
|
80
80
|
--button-primary-icon: var(--button-primary-text);
|
|
81
81
|
--danger: oklch(0.47 0.1742 27.23);
|
|
82
|
+
--danger-foreground: oklch(1 0 0);
|
|
83
|
+
--button-danger-bg: var(--danger);
|
|
84
|
+
--button-outline-danger-text: var(--foreground);
|
|
82
85
|
--danger-light: oklch(0.9663 0.0166 17.44);
|
|
83
86
|
--danger-text: oklch(0.443 0.1634 27.14);
|
|
84
87
|
--success-bg: oklch(0.8395 0.1698 152.91);
|
|
@@ -102,6 +105,9 @@ module Layered
|
|
|
102
105
|
--button-primary-text: var(--accent-foreground);
|
|
103
106
|
--button-primary-icon: var(--button-primary-text);
|
|
104
107
|
--danger: oklch(0.6362 0.2102 25.49);
|
|
108
|
+
--danger-foreground: oklch(1 0 0);
|
|
109
|
+
--button-danger-bg: oklch(0.52 0.19 27);
|
|
110
|
+
--button-outline-danger-text: oklch(1 0 0);
|
|
105
111
|
--danger-light: oklch(0.2596 0.1021 28.32);
|
|
106
112
|
--danger-text: oklch(0.6607 0.1921 24.02);
|
|
107
113
|
--success-bg: oklch(0.3385 0.0852 150.45);
|
data/lib/layered/ui/version.rb
CHANGED