@eagami/ui 5.2.2 → 5.3.0
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/fesm2022/eagami-ui.mjs +31 -17
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/tokens/_colors.scss +20 -10
- package/types/eagami-ui.d.ts +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Lightweight, accessible, themeable Angular UI component library and icon set built on CSS custom properties",
|
|
5
5
|
"author": "Michal Wiraszka <michal@eagami.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
--color-primary-800: #162f41;
|
|
17
17
|
--color-primary-900: #0d1c26;
|
|
18
18
|
|
|
19
|
-
--color-secondary-50: #
|
|
20
|
-
--color-secondary-100: #
|
|
21
|
-
--color-secondary-200: #
|
|
22
|
-
--color-secondary-300: #
|
|
23
|
-
--color-secondary-400: #
|
|
24
|
-
--color-secondary-500: #
|
|
25
|
-
--color-secondary-600: #
|
|
26
|
-
--color-secondary-700: #
|
|
27
|
-
--color-secondary-800: #
|
|
28
|
-
--color-secondary-900: #
|
|
19
|
+
--color-secondary-50: #f3f5fa;
|
|
20
|
+
--color-secondary-100: #dce1ec;
|
|
21
|
+
--color-secondary-200: #bbc4d8;
|
|
22
|
+
--color-secondary-300: #93a1bf;
|
|
23
|
+
--color-secondary-400: #687aa5;
|
|
24
|
+
--color-secondary-500: #506086;
|
|
25
|
+
--color-secondary-600: #404c6a;
|
|
26
|
+
--color-secondary-700: #313b51;
|
|
27
|
+
--color-secondary-800: #232938;
|
|
28
|
+
--color-secondary-900: #151922;
|
|
29
29
|
|
|
30
30
|
--color-neutral-0: #ffffff;
|
|
31
31
|
--color-neutral-50: #f9fafb;
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
--color-brand-secondary-default: var(--color-secondary-500);
|
|
133
133
|
--color-brand-secondary-hover: var(--color-secondary-600);
|
|
134
134
|
--color-brand-secondary-active: var(--color-secondary-700);
|
|
135
|
+
--color-brand-secondary-text: var(--color-secondary-700);
|
|
135
136
|
--color-brand-secondary-subtle: var(--color-secondary-50);
|
|
136
137
|
--color-brand-secondary-muted: var(--color-secondary-100);
|
|
137
138
|
|
|
@@ -233,6 +234,15 @@
|
|
|
233
234
|
--color-brand-subtle: rgba(75, 145, 195, 0.1);
|
|
234
235
|
--color-brand-muted: rgba(75, 145, 195, 0.2);
|
|
235
236
|
|
|
237
|
+
// The secondary surface does not lighten in dark mode: its 500 shade is dark
|
|
238
|
+
// enough that a white label clears 4.5:1 in both modes. The text token flips
|
|
239
|
+
// lighter (700 to 200) to stay readable on the dark elevated popover, and the
|
|
240
|
+
// washes re-tint to a low-alpha secondary hue so they darken enough for light
|
|
241
|
+
// text.
|
|
242
|
+
--color-brand-secondary-text: var(--color-secondary-200);
|
|
243
|
+
--color-brand-secondary-subtle: rgba(104, 122, 165, 0.1);
|
|
244
|
+
--color-brand-secondary-muted: rgba(104, 122, 165, 0.2);
|
|
245
|
+
|
|
236
246
|
// Light pastels become unreadable behind light text in dark mode. Re-tint as
|
|
237
247
|
// a low-alpha wash of the saturated *-500 hue so the surface darkens enough
|
|
238
248
|
// for white text.
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -1187,6 +1187,8 @@ declare class ColorPickerComponent implements ControlValueAccessor {
|
|
|
1187
1187
|
readonly errorMessages: _angular_core.InputSignal<Partial<Record<string, string>> | undefined>;
|
|
1188
1188
|
/** Whether to show the alpha slider. When `false` the emitted value always has alpha = 1. */
|
|
1189
1189
|
readonly showAlpha: _angular_core.InputSignal<boolean>;
|
|
1190
|
+
/** Whether to show the clear button when a value is set. */
|
|
1191
|
+
readonly clearable: _angular_core.InputSignal<boolean>;
|
|
1190
1192
|
/** Output format. `all` lets the user cycle hex/rgb/hsl in the popover; a specific value locks it. */
|
|
1191
1193
|
readonly format: _angular_core.InputSignal<ColorPickerFormat>;
|
|
1192
1194
|
/** Preset swatches shown at the bottom of the popover. Pass an empty array to hide. */
|
|
@@ -1319,7 +1321,7 @@ declare class ColorPickerComponent implements ControlValueAccessor {
|
|
|
1319
1321
|
private commit;
|
|
1320
1322
|
private refreshHexInput;
|
|
1321
1323
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
|
|
1322
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ea-color-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "errorMessages": { "alias": "errorMessages"; "required": false; "isSignal": true; }; "showAlpha": { "alias": "showAlpha"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
1324
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorPickerComponent, "ea-color-picker", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "errorMsg": { "alias": "errorMsg"; "required": false; "isSignal": true; }; "errorMessages": { "alias": "errorMessages"; "required": false; "isSignal": true; }; "showAlpha": { "alias": "showAlpha"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "presets": { "alias": "presets"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "changed": "changed"; }, never, never, true, never>;
|
|
1323
1325
|
}
|
|
1324
1326
|
|
|
1325
1327
|
/** Vertical density preset for table rows and header cells. */
|
|
@@ -2602,16 +2604,23 @@ declare class ProgressBarComponent {
|
|
|
2602
2604
|
/** Shows the rounded percentage alongside the label. */
|
|
2603
2605
|
readonly showPercentage: _angular_core.InputSignal<boolean>;
|
|
2604
2606
|
readonly indeterminate: _angular_core.InputSignal<boolean>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Optional buffered position ahead of `value` (same scale as `value`),
|
|
2609
|
+
* rendered as a secondary-colour segment behind the fill. Use for
|
|
2610
|
+
* download/upload-then-process style progress.
|
|
2611
|
+
*/
|
|
2612
|
+
readonly buffer: _angular_core.InputSignal<number | undefined>;
|
|
2605
2613
|
/** Whether to render the percentage. */
|
|
2606
2614
|
readonly showsPercentage: _angular_core.Signal<boolean>;
|
|
2607
2615
|
readonly percentage: _angular_core.Signal<number>;
|
|
2608
2616
|
readonly percentageRounded: _angular_core.Signal<number>;
|
|
2617
|
+
readonly bufferPercentage: _angular_core.Signal<number | null>;
|
|
2609
2618
|
readonly hostClasses: _angular_core.Signal<{
|
|
2610
2619
|
[x: string]: boolean;
|
|
2611
2620
|
'ea-progress-bar--indeterminate': boolean;
|
|
2612
2621
|
}>;
|
|
2613
2622
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProgressBarComponent, never>;
|
|
2614
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "ea-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showPercentage": { "alias": "showPercentage"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2623
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProgressBarComponent, "ea-progress-bar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "showPercentage": { "alias": "showPercentage"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "buffer": { "alias": "buffer"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2615
2624
|
}
|
|
2616
2625
|
|
|
2617
2626
|
/** Visual size shared by all radios in the group. */
|