@eagami/ui 5.77.0 → 5.78.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 +20 -20
- package/fesm2022/eagami-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/styles/_mixins.scss +25 -0
- package/types/eagami-ui.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.78.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",
|
package/src/styles/_mixins.scss
CHANGED
|
@@ -40,6 +40,31 @@ $target-size-min: 24px;
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
// The inset ring for an element that can carry a solid fill of its own, such as a
|
|
44
|
+
// filled button or a selected day, where a ring in the focus colour alone could all
|
|
45
|
+
// but vanish into the fill. A band of the page colour runs just inside the ring to
|
|
46
|
+
// set it apart. `$offset` moves the ring and the band follows it, and `$shadow`
|
|
47
|
+
// keeps a shadow the element already wears.
|
|
48
|
+
@mixin focus-ring-inset-banded(
|
|
49
|
+
$offset: calc(-1 * var(--border-width-medium)),
|
|
50
|
+
$shadow: null
|
|
51
|
+
) {
|
|
52
|
+
$band: inset 0 0 0 calc(var(--border-width-medium) - #{$offset}) var(--color-bg-base);
|
|
53
|
+
|
|
54
|
+
outline: var(--border-width-medium) solid var(--color-border-focus);
|
|
55
|
+
outline-offset: $offset;
|
|
56
|
+
|
|
57
|
+
@if $shadow {
|
|
58
|
+
box-shadow: $band, $shadow;
|
|
59
|
+
} @else {
|
|
60
|
+
box-shadow: $band;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@media (forced-colors: active) {
|
|
64
|
+
outline-color: Highlight;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
43
68
|
// Floating surfaces (menus, dialogs, popovers, toasts) lean on elevation shadow
|
|
44
69
|
// for their boundary, but shadows are dropped in forced-colors mode. Add a
|
|
45
70
|
// hairline border there so the surface stays separated from the content behind.
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -1967,10 +1967,10 @@ export type ButtonAlign = 'start' | 'center' | 'end';
|
|
|
1967
1967
|
* while preserving the rendered width. Chrome is tunable per instance via
|
|
1968
1968
|
* `--ea-button-padding`, `--ea-button-min-height` and `--ea-button-radius`,
|
|
1969
1969
|
* which is how an icon-only button comes down to little more than its glyph
|
|
1970
|
-
* and how a call-to-action becomes a pill
|
|
1971
|
-
*
|
|
1972
|
-
*
|
|
1973
|
-
* navigation, put
|
|
1970
|
+
* and how a call-to-action becomes a pill. The focus ring is drawn just inside
|
|
1971
|
+
* the button over a band of the page colour, so it never overlaps a neighbour
|
|
1972
|
+
* and stands out on any fill; `--ea-button-focus-ring-offset` moves it, and a
|
|
1973
|
+
* positive length draws it outside instead. For navigation, put
|
|
1974
1974
|
* `ButtonLinkComponent` on an anchor instead (`<a eaButtonLink href="...">`):
|
|
1975
1975
|
* it takes the same styling inputs and keeps real link behaviour.
|
|
1976
1976
|
*/
|