@kirana-style/angular 0.4.3 → 0.4.5

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,64 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.5](https://github.com/kirana-style/kirana/compare/v0.4.4...v0.4.5) (2026-12-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * states for kirana ui 0.4.3 and react aria 1.23 ([#388](https://github.com/kirana-style/kirana/pull/388)) ([e15b370](https://github.com/kirana-style/kirana/commit/e15b3703db211961a3eeae5a13f34b44e9ca18aa))
9
+ * states for kirana ui primitives 0.4.2 ([#375](https://github.com/kirana-style/kirana/pull/375)) ([57c963b](https://github.com/kirana-style/kirana/commit/57c963b73f4b565c6c725a3be317ac334b65c773))
10
+ * states for reka ui 2.12 ([#384](https://github.com/kirana-style/kirana/pull/384)) ([e2fdbdf](https://github.com/kirana-style/kirana/commit/e2fdbdf84732dfdf1792c427e46c930f13f94ca0))
11
+ * states for ui-sdk beta.19 ([#385](https://github.com/kirana-style/kirana/pull/385)) ([f0e7387](https://github.com/kirana-style/kirana/commit/f0e7387cdaad4c021a711fbd9348b63d02a9e8b8))
12
+
13
+
14
+ ### Bug fixes
15
+
16
+ * angular cli builders run under yarn plug'n'play ([#377](https://github.com/kirana-style/kirana/pull/377)) ([4364da4](https://github.com/kirana-style/kirana/commit/4364da4a16faacd64a7e0312b9e379b378331990))
17
+ * imports resolve past a tsconfig that cannot be loaded ([#376](https://github.com/kirana-style/kirana/pull/376)) ([c72eb3f](https://github.com/kirana-style/kirana/commit/c72eb3fd3a9f5546d7e8f853aee96eceeed22ac0))
18
+ * nuxt in a workspace lists the shared stylesheet from the app's root ([#380](https://github.com/kirana-style/kirana/pull/380)) ([9c660ea](https://github.com/kirana-style/kirana/commit/9c660eaf3af18b2e5dd902a884ae1fc9417f2a76))
19
+
20
+
21
+ ### Documentation
22
+
23
+ * take the benchmarks of kirana 0.4.4 from kirana-lab ([#366](https://github.com/kirana-style/kirana/pull/366)) ([98c8f89](https://github.com/kirana-style/kirana/commit/98c8f899ee52ccb06598c480428e05191830b4c8))
24
+ * what the docs say of kirana ui and its primitives ([#381](https://github.com/kirana-style/kirana/pull/381)) ([f259174](https://github.com/kirana-style/kirana/commit/f259174741987774f8f79857047ac14f3055bfb3))
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * bump @ui-sdk/core to beta.23 and pin-project-lite to 0.2.19 ([#387](https://github.com/kirana-style/kirana/pull/387)) ([b0940b6](https://github.com/kirana-style/kirana/commit/b0940b6aef5a24834017ab4cd78e49095bf46690))
30
+ * bump napi from 3.16.2 to 3.16.3 in /packages/kirana in the minor-and-patch group across 1 directory ([#378](https://github.com/kirana-style/kirana/pull/378)) ([943effe](https://github.com/kirana-style/kirana/commit/943effea07cc233f6dcbb23b701c9bda8abfdd63))
31
+ * bump the minor-and-patch group across 1 directory with 16 updates ([#386](https://github.com/kirana-style/kirana/pull/386)) ([f1fae2a](https://github.com/kirana-style/kirana/commit/f1fae2aff8ffbd56d0156277520d7c29f1eede1d))
32
+ * bump the minor-and-patch group in /packages/kirana with 2 updates ([#371](https://github.com/kirana-style/kirana/pull/371)) ([1549bf1](https://github.com/kirana-style/kirana/commit/1549bf1604c8633d41fd1d05ac499cb98718c62f))
33
+ * bump the napi group in /packages/kirana with 2 updates ([#370](https://github.com/kirana-style/kirana/pull/370)) ([f9649ea](https://github.com/kirana-style/kirana/commit/f9649eaea2c89be57bc1402bf492b5344db596f4))
34
+ * bump vscode-languageclient from 11.0.0 to 12.0.0 ([#374](https://github.com/kirana-style/kirana/pull/374)) ([66b74e0](https://github.com/kirana-style/kirana/commit/66b74e0f57015e55b1497b3b53decc1de814ab9a))
35
+ * oxc 0.160.0 ([#383](https://github.com/kirana-style/kirana/pull/383)) ([e707368](https://github.com/kirana-style/kirana/commit/e707368f01b943c8533933f65e47f24b9ae3341c))
36
+
37
+ ## [0.4.4](https://github.com/kirana-style/kirana/compare/v0.4.3...v0.4.4) (2026-11-30)
38
+
39
+
40
+ ### Features
41
+
42
+ * 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))
43
+ * 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))
44
+ * 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))
45
+ * 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))
46
+ * 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))
47
+
48
+
49
+ ### Bug fixes
50
+
51
+ * 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))
52
+ * 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))
53
+ * 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))
54
+ * 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))
55
+ * 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))
56
+
57
+
58
+ ### Performance
59
+
60
+ * 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))
61
+
3
62
  ## [0.4.3](https://github.com/kirana-style/kirana/compare/v0.4.2...v0.4.3) (2026-11-26)
4
63
 
5
64
 
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.5",
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,23 +30,19 @@
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.5",
34
+ "@kirana-style/core": "0.4.5"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@angular/core": ">=20.0.0",
38
38
  "@angular/build": ">=20.0.0",
39
- "@angular-devkit/architect": ">=0.2000.0",
40
- "@kirana-style/vite": "0.4.3"
39
+ "@kirana-style/vite": "0.4.5"
41
40
  },
42
41
  "builders": "./builders.json",
43
42
  "peerDependenciesMeta": {
44
43
  "@angular/build": {
45
44
  "optional": true
46
45
  },
47
- "@angular-devkit/architect": {
48
- "optional": true
49
- },
50
46
  "@kirana-style/vite": {
51
47
  "optional": true
52
48
  }
package/src/builders.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Mirror } from "./mirror.js";
2
- import { Builder, BuilderContext, BuilderOutput } from "@angular-devkit/architect";
3
2
  import { ApplicationBuilderOptions, DevServerBuilderOptions } from "@angular/build";
3
+ import { Builder, BuilderContext, BuilderOutput } from "@angular-devkit/architect";
4
4
  /**
5
5
  * Application options with the mirror's replacements and the stylesheet added. The entry files
6
6
  * (`browser`, `server`) are not replaced: Angular type-checks only the files its tsconfig lists, and
package/src/builders.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { STYLESHEET, createMirror, watchMirror } from "./mirror.js";
2
+ import { createRequire } from "node:module";
2
3
  import path from "node:path";
3
- import { createBuilder } from "@angular-devkit/architect";
4
4
  import { buildApplication, executeDevServerBuilder } from "@angular/build";
5
5
  // src/builders.ts
6
6
  /**
@@ -12,6 +12,12 @@ import { buildApplication, executeDevServerBuilder } from "@angular/build";
12
12
  *
13
13
  * The dev server is Angular's, given a context whose build target's options carry the mirror.
14
14
  */
15
+ /**
16
+ * Architect, from Angular's build package, which depends on it (KF-163): an Angular CLI project
17
+ * declares `@angular/build`, never `@angular-devkit/architect`, which only comes in under it, and
18
+ * under Yarn's Plug'n'Play a package reaches only what it or the project declares.
19
+ */
20
+ const { createBuilder } = createRequire(createRequire(import.meta.url).resolve("@angular/build/package.json"))("@angular-devkit/architect");
15
21
  /** The project's source folder, from its configuration (`src` unless it says otherwise). */
16
22
  async function sourceRootOf(context) {
17
23
  const project = context.target?.project;
@@ -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",