@adecore/ui 0.49.3 → 0.49.5
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/dist/Meter.js +1 -1
- package/dist/theme.css +3 -0
- package/package.json +1 -1
- package/src/Meter.tsx +1 -1
- package/src/theme.css +3 -0
package/dist/Meter.js
CHANGED
|
@@ -37,7 +37,7 @@ export function Meter(t0) {
|
|
|
37
37
|
const t6 = value === null ? min : Math.min(max, Math.max(min, value));
|
|
38
38
|
let t7;
|
|
39
39
|
if ($[5] !== className) {
|
|
40
|
-
t7 = clsx("relative h-1.5 rounded-full bg-
|
|
40
|
+
t7 = clsx("relative h-1.5 rounded-full bg-track", className);
|
|
41
41
|
$[5] = className;
|
|
42
42
|
$[6] = t7;
|
|
43
43
|
} else {
|
package/dist/theme.css
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--surface: #ffffff;
|
|
11
11
|
--surface-raised: #ffffff;
|
|
12
12
|
--surface-sunken: #ececef;
|
|
13
|
+
--track: rgb(0 0 0 / 0.09);
|
|
13
14
|
/* A bar that is not the one in focus: between the sunken page behind it and a focused bar, so it
|
|
14
15
|
still reads as a bar. The toolbar of a cell in the grid that does not have the keyboard. */
|
|
15
16
|
--surface-idle: color-mix(in srgb, var(--surface) 50%, var(--surface-sunken));
|
|
@@ -118,6 +119,7 @@
|
|
|
118
119
|
--surface: #131316;
|
|
119
120
|
--surface-raised: #18181c;
|
|
120
121
|
--surface-sunken: #0b0b0e;
|
|
122
|
+
--track: rgb(255 255 255 / 0.11);
|
|
121
123
|
--surface-hover: #202024;
|
|
122
124
|
--surface-active: #28282e;
|
|
123
125
|
/* Derived, so an app that tints its surfaces tints its fields along. */
|
|
@@ -246,6 +248,7 @@
|
|
|
246
248
|
--color-surface: var(--surface);
|
|
247
249
|
--color-surface-raised: var(--surface-raised);
|
|
248
250
|
--color-surface-sunken: var(--surface-sunken);
|
|
251
|
+
--color-track: var(--track);
|
|
249
252
|
--color-surface-idle: var(--surface-idle);
|
|
250
253
|
--color-surface-hover: var(--surface-hover);
|
|
251
254
|
--color-surface-hover-edged: var(--surface-hover-edged);
|
package/package.json
CHANGED
package/src/Meter.tsx
CHANGED
|
@@ -34,7 +34,7 @@ export function Meter({ value, min = 0, max = 100, marks = [], label, valueText,
|
|
|
34
34
|
aria-valuemax={max}
|
|
35
35
|
aria-valuenow={value === null ? min : Math.min(max, Math.max(min, value))}
|
|
36
36
|
aria-valuetext={valueText}
|
|
37
|
-
className={clsx('relative h-1.5 rounded-full bg-
|
|
37
|
+
className={clsx('relative h-1.5 rounded-full bg-track', className)}
|
|
38
38
|
>
|
|
39
39
|
{/* No transition on the width: a level that updates many times a second would lag and blur. */}
|
|
40
40
|
{value !== null && <span className="absolute inset-y-0 left-0 rounded-full bg-accent" style={{ width: `${fractionOf(value) * 100}%` }} />}
|
package/src/theme.css
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
--surface: #ffffff;
|
|
11
11
|
--surface-raised: #ffffff;
|
|
12
12
|
--surface-sunken: #ececef;
|
|
13
|
+
--track: rgb(0 0 0 / 0.09);
|
|
13
14
|
/* A bar that is not the one in focus: between the sunken page behind it and a focused bar, so it
|
|
14
15
|
still reads as a bar. The toolbar of a cell in the grid that does not have the keyboard. */
|
|
15
16
|
--surface-idle: color-mix(in srgb, var(--surface) 50%, var(--surface-sunken));
|
|
@@ -118,6 +119,7 @@
|
|
|
118
119
|
--surface: #131316;
|
|
119
120
|
--surface-raised: #18181c;
|
|
120
121
|
--surface-sunken: #0b0b0e;
|
|
122
|
+
--track: rgb(255 255 255 / 0.11);
|
|
121
123
|
--surface-hover: #202024;
|
|
122
124
|
--surface-active: #28282e;
|
|
123
125
|
/* Derived, so an app that tints its surfaces tints its fields along. */
|
|
@@ -246,6 +248,7 @@
|
|
|
246
248
|
--color-surface: var(--surface);
|
|
247
249
|
--color-surface-raised: var(--surface-raised);
|
|
248
250
|
--color-surface-sunken: var(--surface-sunken);
|
|
251
|
+
--color-track: var(--track);
|
|
249
252
|
--color-surface-idle: var(--surface-idle);
|
|
250
253
|
--color-surface-hover: var(--surface-hover);
|
|
251
254
|
--color-surface-hover-edged: var(--surface-hover-edged);
|