@eagami/ui 5.60.1 → 5.61.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eagami/ui",
3
- "version": "5.60.1",
3
+ "version": "5.61.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",
@@ -0,0 +1,22 @@
1
+ // Arial with metric overrides matching DM Sans and Syne, named right after each web font
2
+ // in the font tokens, so text laid out before the web font arrives already takes its
3
+ // final size and the swap moves nothing. Changing a web font means regenerating these
4
+ // (Capsize, fontaine or fallback-font-generator).
5
+
6
+ @font-face {
7
+ font-family: 'DM Sans Fallback';
8
+ src: local('Arial');
9
+ ascent-override: 92.5%;
10
+ descent-override: 24.4%;
11
+ line-gap-override: 0%;
12
+ size-adjust: 100.06%;
13
+ }
14
+
15
+ @font-face {
16
+ font-family: 'Syne Fallback';
17
+ src: local('Arial');
18
+ ascent-override: 102%;
19
+ descent-override: 27%;
20
+ line-gap-override: 0%;
21
+ size-adjust: 105%;
22
+ }
@@ -2,6 +2,7 @@
2
2
  // Consumers must also load the DM Sans and Syne fonts via <link> tags in the HTML head.
3
3
 
4
4
  @use 'tokens/index';
5
+ @use 'fallback-fonts';
5
6
  @use 'reset';
6
7
  @use 'tooltip';
7
8
  @use 'form-field';
@@ -234,6 +234,8 @@
234
234
  );
235
235
  --color-border-default: var(--color-neutral-400);
236
236
  --color-border-strong: var(--color-neutral-300);
237
+ // primary-500 drops under 3:1 on the dark surfaces, so focus lifts to a lighter step
238
+ --color-border-focus: var(--color-primary-300);
237
239
  // Dividers flip to a light wash so the rule stays visible on every dark tier
238
240
  --color-divider: rgba(255, 255, 255, 0.12);
239
241
 
@@ -27,7 +27,9 @@
27
27
  --shadow-well-strong:
28
28
  inset 0 2px 3px rgba(0, 0, 0, 0.4), inset 0 -1.5px 1px rgba(255, 255, 255, 0.55);
29
29
 
30
- --shadow-focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.45);
30
+ // The gap keeps the ring apart from a filled control of the same hue
31
+ --shadow-focus-ring:
32
+ 0 0 0 2px var(--color-bg-base), 0 0 0 4px var(--color-border-focus);
31
33
  --shadow-focus-ring-error: 0 0 0 3px var(--color-error-200);
32
34
  --shadow-focus-ring-success: 0 0 0 3px var(--color-success-200);
33
35
 
@@ -194,6 +194,7 @@ export interface EagamiMessages {
194
194
  entriesPerPage: string;
195
195
  postsPerPage: string;
196
196
  articlesPerPage: string;
197
+ monthsPerPage: string;
197
198
  all: string;
198
199
  range: (start: string, end: string, total: string) => string;
199
200
  previousPage: string;
@@ -6306,7 +6307,7 @@ export interface PaginatorState {
6306
6307
  /** The page size the "All" option sets, putting every item on a single page. */
6307
6308
  export declare const PAGE_SIZE_ALL = -1;
6308
6309
  /** What the page-size selector counts, picking its localized "... per page" label. */
6309
- export type PaginatorPageSizeLabel = 'rows' | 'items' | 'results' | 'products' | 'records' | 'entries' | 'posts' | 'articles';
6310
+ export type PaginatorPageSizeLabel = 'rows' | 'items' | 'results' | 'products' | 'records' | 'entries' | 'posts' | 'articles' | 'months';
6310
6311
  /**
6311
6312
  * Page navigation control with previous/next buttons, numbered page jumps,
6312
6313
  * an optional page-size selector, and a range label. Exposes `page` and
@@ -9350,7 +9351,9 @@ export declare function iconDisplayName(iconOrSlug: IconComponentType | string):
9350
9351
  * the consuming bundle, which is the right trade-off when you actually want
9351
9352
  * the full set. For single-icon usage import the component directly (e.g.
9352
9353
  * `import { HomeIconComponent } from '@eagami/ui'`) and the bundler will
9353
- * tree-shake `ICONS` away.
9354
+ * tree-shake `ICONS` away. The `@__PURE__` annotation is what allows that:
9355
+ * bundlers that keep unannotated calls in third-party code, as Angular's build
9356
+ * does, would otherwise keep the `.sort()` call and every icon with it.
9354
9357
  */
9355
9358
  export declare const ICONS: ReadonlyArray<IconComponentType>;
9356
9359
  export declare class AccessibilityIconComponent extends IconComponentBase {