@kirana-style/angular 0.4.3 → 0.4.4

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 CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.4](https://github.com/kirana-style/kirana/compare/v0.4.3...v0.4.4) (2026-11-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * a key written with & under a target is the element's own state ([#357](https://github.com/kirana-style/kirana/pull/357)) ([a4fe3f6](https://github.com/kirana-style/kirana/commit/a4fe3f600af5075b1b9b962e3da3da77be2e4857))
9
+ * a template's readme names the package manager's own commands ([#365](https://github.com/kirana-style/kirana/pull/365)) ([8d02940](https://github.com/kirana-style/kirana/commit/8d029404a3c428a9c6fc58b7cfebee802997a57e))
10
+ * angular icons from @lucide/angular, on a host, checked by build ([#359](https://github.com/kirana-style/kirana/pull/359)) ([9fdcaa0](https://github.com/kirana-style/kirana/commit/9fdcaa0caadb67737ee1f62773ca1c64d51e6e48))
11
+ * registry builds can be keyed by framework and base ([#361](https://github.com/kirana-style/kirana/pull/361)) ([6fe117d](https://github.com/kirana-style/kirana/commit/6fe117d56ade5348ff35c793f736e8ba02a6d502))
12
+ * registry items take an empty build and files built per base ([#355](https://github.com/kirana-style/kirana/pull/355)) ([065765b](https://github.com/kirana-style/kirana/commit/065765b207f03557e31da21736cfa2df3006bf59))
13
+
14
+
15
+ ### Bug fixes
16
+
17
+ * init --template runs under deno and says how to go on ([#360](https://github.com/kirana-style/kirana/pull/360)) ([dfd2859](https://github.com/kirana-style/kirana/commit/dfd2859033601a70de51e22f47cbaefaf9121634))
18
+ * resolve and read installed packages under yarn plug'n'play ([#364](https://github.com/kirana-style/kirana/pull/364)) ([642a469](https://github.com/kirana-style/kirana/commit/642a4690218f56b2fe84c78a0401b59248d634ed))
19
+ * token-namespace-shared counts only the token groups a project uses ([#363](https://github.com/kirana-style/kirana/pull/363)) ([f1eb992](https://github.com/kirana-style/kirana/commit/f1eb9929b620c7e974591f9105933de053e3396e))
20
+ * ui add counts infos only in the project's own files ([#362](https://github.com/kirana-style/kirana/pull/362)) ([c0b8a88](https://github.com/kirana-style/kirana/commit/c0b8a88c25b147b3e3799767cb713c94a06360de))
21
+ * ui add, init, update and preset print infos as a count ([#356](https://github.com/kirana-style/kirana/pull/356)) ([d0990fd](https://github.com/kirana-style/kirana/commit/d0990fd584c2b76d68ffe306219517151afbb03b))
22
+
23
+
24
+ ### Performance
25
+
26
+ * compiled modules drop the constants only their styles read ([#354](https://github.com/kirana-style/kirana/pull/354)) ([fda3549](https://github.com/kirana-style/kirana/commit/fda35494d63f9cb5907459c1dbde28fcf3ac3e77))
27
+
3
28
  ## [0.4.3](https://github.com/kirana-style/kirana/compare/v0.4.2...v0.4.3) (2026-11-26)
4
29
 
5
30
 
package/README.md CHANGED
@@ -22,7 +22,8 @@ export class Card {
22
22
  ```
23
23
 
24
24
  - **`SxDirective`** merges the handles with Kirana's runtime and adds and removes only the classes
25
- and custom properties it set. `provideKirana({ prefix })` matches a `names.prefix` other than `k`.
25
+ and custom properties it set, adding its classes back when a component on the same element rewrites
26
+ the whole `class` attribute (`@lucide/angular`'s icons). `provideKirana({ prefix })` matches a `names.prefix` other than `k`.
26
27
  - **Parts.** A directive that takes `sx` merges it with its own styles through `partSx(own, sx)`,
27
28
  binds the `class` and `style` it returns to its host, types the input `SxInput`, and lists
28
29
  `provideSxPart()` in its `providers`, which keeps `SxDirective` off its element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirana-style/angular",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Kirana for Angular: the [sx] directive, the Analog (Vite) plugin and Angular CLI builders.",
5
5
  "license": "MIT",
6
6
  "author": "The Kirana authors",
@@ -30,14 +30,14 @@
30
30
  "./builders.json": "./builders.json"
31
31
  },
32
32
  "dependencies": {
33
- "@kirana-style/compiler": "0.4.3",
34
- "@kirana-style/core": "0.4.3"
33
+ "@kirana-style/compiler": "0.4.4",
34
+ "@kirana-style/core": "0.4.4"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@angular/core": ">=20.0.0",
38
38
  "@angular/build": ">=20.0.0",
39
39
  "@angular-devkit/architect": ">=0.2000.0",
40
- "@kirana-style/vite": "0.4.3"
40
+ "@kirana-style/vite": "0.4.4"
41
41
  },
42
42
  "builders": "./builders.json",
43
43
  "peerDependenciesMeta": {
@@ -15,7 +15,7 @@ export declare function provideKirana(options: {
15
15
  export declare const SX_PART: i0.InjectionToken<boolean>;
16
16
  /** The provider that marks a part's element, so `SxDirective` leaves `[sx]` to the part. */
17
17
  export declare function provideSxPart(): i0.Provider;
18
- export declare class SxDirective implements i0.OnChanges {
18
+ export declare class SxDirective implements i0.OnChanges, i0.AfterViewChecked {
19
19
  #private;
20
20
  /**
21
21
  * The handles: one, or an array with falsy guards (`[styles.card, active && styles.on]`). Compiled
@@ -24,6 +24,12 @@ export declare class SxDirective implements i0.OnChanges {
24
24
  */
25
25
  sx: SxInput;
26
26
  ngOnChanges(): void;
27
+ /**
28
+ * Adds back a class it applied that the element lost: a component on the same element that binds
29
+ * its whole `class` attribute from its host (`[attr.class]`, as `@lucide/angular`'s icons do on
30
+ * the `<svg>`) writes it after `ngOnChanges`, in the same change detection (KF-148).
31
+ */
32
+ ngAfterViewChecked(): void;
27
33
  static ɵfac: i0.ɵɵFactoryDeclaration<SxDirective, never>;
28
34
  static ɵdir: i0.ɵɵDirectiveDeclaration<SxDirective, "[sx]", never, {
29
35
  sx: {
@@ -57,6 +57,15 @@ var SxDirective = class SxDirective {
57
57
  if (this.#part) return;
58
58
  this.#applied = applySx(this.#renderer, this.#element, this.#applied, this.sx, this.#prefix);
59
59
  }
60
+ /**
61
+ * Adds back a class it applied that the element lost: a component on the same element that binds
62
+ * its whole `class` attribute from its host (`[attr.class]`, as `@lucide/angular`'s icons do on
63
+ * the `<svg>`) writes it after `ngOnChanges`, in the same change detection (KF-148).
64
+ */
65
+ ngAfterViewChecked() {
66
+ const { classList } = this.#element;
67
+ for (const name of this.#applied.classes) if (!classList.contains(name)) this.#renderer.addClass(this.#element, name);
68
+ }
60
69
  static ɵfac = i0.ɵɵngDeclareFactory({
61
70
  minVersion: "12.0.0",
62
71
  version: "22.2.1",