@ethlete/components 0.1.0-next.15 → 0.1.0-next.16
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/CHANGELOG.md +32 -0
- package/fesm2022/ethlete-components.mjs +86 -78
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/generators.json +9 -0
- package/generators/icons/generator.js +183 -0
- package/generators/icons/schema.json +35 -0
- package/package.json +8 -1
- package/types/ethlete-components.d.ts +58 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.16
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`89a1d38`](https://github.com/ethlete-io/ethdk/commit/89a1d383cea36583c9459bd13e6c41ec25e0ecb7) Thanks [@TomTomB](https://github.com/TomTomB)! - Add icon variants and an icon generator.
|
|
8
|
+
- `IconDefinition` gains an optional `variant`, and `provideIcons` now keys the registry by name + variant, so the same icon name can exist in multiple styles.
|
|
9
|
+
- `IconDirective` gains a `variant` input: `<i etIcon="shield" variant="light">`. When omitted it matches a variant-less icon first, then falls back to the `solid` variant.
|
|
10
|
+
- `etIcon` and `variant` are now typed against the augmentable `EthleteIconNameRegistry` / `EthleteIconVariantRegistry` interfaces (they stay `string` until augmented).
|
|
11
|
+
- New `@ethlete/components:icons` generator reads a small config, auto-detects an installed SVG source (Font Awesome pro then free), and generates `IconDefinition` constants plus a `.d.ts` that augments the registries. Run with `nx g @ethlete/components:icons`.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`ea1eb65`](https://github.com/ethlete-io/ethdk/commit/ea1eb656b4f1144602830a3cd27a521ca50a9d06) Thanks [@TomTomB](https://github.com/TomTomB)! - Theming: add `AutoSurfaceDirective` (`etAutoSurface`), which resolves the surface
|
|
16
|
+
theme one elevation above its parent (or an explicitly provided) surface context
|
|
17
|
+
and applies it through a host `ProvideSurfaceDirective`. Meant to be used as a
|
|
18
|
+
host directive on components that render inside a detached overlay pane, where
|
|
19
|
+
surface context can't cascade through the DOM.
|
|
20
|
+
|
|
21
|
+
Tooltip and toggletip now use `AutoSurfaceDirective` as a host directive instead
|
|
22
|
+
of duplicating the auto-surface resolution logic. No change to their rendered
|
|
23
|
+
surface.
|
|
24
|
+
|
|
25
|
+
- [`efe9cc3`](https://github.com/ethlete-io/ethdk/commit/efe9cc30b61245fd3c7fd1eaeedc3be7b85ed275) Thanks [@TomTomB](https://github.com/TomTomB)! - Grid: prevent text selection inside a grid item when dragging it in
|
|
26
|
+
non-readonly mode. `user-select` is now disabled on the item content whenever the
|
|
27
|
+
grid is editable, instead of only after a drag has committed — so the initial
|
|
28
|
+
pointer movement before the drag threshold no longer selects the item's text.
|
|
29
|
+
|
|
30
|
+
- [`70308a7`](https://github.com/ethlete-io/ethdk/commit/70308a7e0ce81d97c91d55fb7f619f1384a0e3bc) Thanks [@TomTomB](https://github.com/TomTomB)! - Overlay routing: support routes that nest their own `et-overlay-header`/`et-overlay-body`/`et-overlay-footer` (a full `et-overlay-main`) directly inside the router outlet, without a shared shell or sidebar. Previously the active route grew past the overlay, pushing the footer off-screen and preventing the body from scrolling.
|
|
31
|
+
- The router-outlet content wrapper now propagates a bounded height, so each route's body scrolls with its header and footer pinned. Combine with a fixed dialog height to keep a stable size across navigation.
|
|
32
|
+
- On navigation, focus now moves to the first sensible element of the new page (first-tabbable, so buttons/inputs win over headings), mirroring the overlay's open-time `autoFocus` behaviour and respecting the configured `autoFocus` (including `false`). It falls back to the page container when the page has nothing tabbable.
|
|
33
|
+
- Removed the stray focus outline that appeared around the whole modal on window blur/refocus, caused by the programmatically focused page container.
|
|
34
|
+
|
|
3
35
|
## 0.1.0-next.15
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|