@kouji-ui/components 0.6.3 → 0.7.1

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": "@kouji-ui/components",
3
- "version": "0.6.3",
3
+ "version": "0.7.1",
4
4
  "description": "Opinionated styled Angular components built on @kouji-ui/core directives. Themed at runtime via @kouji-ui/themes.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -726,9 +726,9 @@ declare class KjBadgeComponent {
726
726
  */
727
727
  declare class KjBreadcrumbComponent {
728
728
  /** Size preset cascaded onto descendants. Default `'md'`. */
729
- readonly kjSize: _angular_core.InputSignal<string>;
729
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
730
730
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KjBreadcrumbComponent, never>;
731
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjBreadcrumbComponent, "nav[kj-breadcrumb], kj-breadcrumb", never, { "kjSize": { "alias": "kjSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.KjBreadcrumb; inputs: { "kjAriaLabel": "kjAriaLabel"; "kjSeparator": "kjSeparator"; "kjMaxItems": "kjMaxItems"; "kjOverflow": "kjOverflow"; }; outputs: {}; }]>;
731
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjBreadcrumbComponent, "nav[kj-breadcrumb], kj-breadcrumb", never, { "kjSize": { "alias": "kjSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.KjBreadcrumb; inputs: { "kjAriaLabel": "kjAriaLabel"; "kjSeparator": "kjSeparator"; "kjMaxItems": "kjMaxItems"; "kjOverflow": "kjOverflow"; }; outputs: {}; }, { directive: typeof i1.KjSize; inputs: { "kjSize": "kjSize"; }; outputs: {}; }]>;
732
732
  }
733
733
  /**
734
734
  * Wraps `KjBreadcrumbList`. Renders an `<ol>` host inside the breadcrumb
@@ -772,11 +772,12 @@ declare class KjBreadcrumbLinkComponent {
772
772
  readonly kjTarget: _angular_core.InputSignal<string | undefined>;
773
773
  /** Bound to `[attr.aria-label]` on the inner `<a>`. */
774
774
  readonly kjAriaLabel: _angular_core.InputSignal<string | undefined>;
775
- /** KjLink variant. Defaults to `'muted'` (the breadcrumb default). */
775
+ private readonly config;
776
+ /** KjLink variant. Defaults to `provideKjBreadcrumb(…)`'s `linkVariant` (`'muted'`). */
776
777
  readonly kjVariant: _angular_core.InputSignal<string>;
777
- /** KjLink size. Defaults to `'sm'` (the breadcrumb default). */
778
+ /** KjLink size. Defaults to `provideKjBreadcrumb(…)`'s `linkSize` (`'sm'`). */
778
779
  readonly kjSize: _angular_core.InputSignal<string>;
779
- /** Underline mode. Defaults to `'hover'`. */
780
+ /** Underline mode. Defaults to `provideKjBreadcrumb(…)`'s `linkUnderline` (`'hover'`). */
780
781
  readonly kjUnderline: _angular_core.InputSignal<"always" | "hover" | "none">;
781
782
  /** External-link tri-state. Forwarded to `KjLink`. */
782
783
  readonly kjExternal: _angular_core.InputSignal<boolean>;
@@ -929,8 +930,15 @@ declare class KjBreadcrumbEllipsisComponent {
929
930
  * @doc-description Themed button with variants, sizes, and built-in disabled, loading, and pressed states.
930
931
  */
931
932
  declare class KjButtonComponent {
932
- readonly kjVariant: _angular_core.InputSignal<string>;
933
- readonly kjSize: _angular_core.InputSignal<string>;
933
+ /**
934
+ * Visual variant. Left unset, the inner `[kjButton]` resolves it:
935
+ * enclosing button-group cascade, else the `provideKjButton(…)` default,
936
+ * else `'default'`. Binding a hardcoded default here would clobber that
937
+ * chain — keep it `undefined` when the consumer didn't choose one.
938
+ */
939
+ readonly kjVariant: _angular_core.InputSignal<string | undefined>;
940
+ /** Size preset. Resolution mirrors {@link kjVariant} (default `'md'`). */
941
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
934
942
  readonly kjDisabled: _angular_core.InputSignal<boolean>;
935
943
  readonly kjLoading: _angular_core.InputSignal<boolean>;
936
944
  readonly kjFullWidth: _angular_core.InputSignal<boolean>;
@@ -1699,10 +1707,10 @@ declare class KjChatHeaderComponent {
1699
1707
  * @doc-name chat
1700
1708
  */
1701
1709
  declare class KjChatBubbleComponent {
1702
- /** Visual register. Validated against `KJ_CHAT_BUBBLE_CONFIG`. */
1703
- readonly kjVariant: _angular_core.InputSignal<KjChatBubbleVariant>;
1704
- /** Density preset. Drives padding + font-size on the bubble. */
1705
- readonly kjSize: _angular_core.InputSignal<KjChatBubbleSize>;
1710
+ /** Visual register. Validated against `KJ_CHAT_BUBBLE_CONFIG`. Unset falls back to the `provideKjChatBubble(…)` default (`'default'`). */
1711
+ readonly kjVariant: _angular_core.InputSignal<KjChatBubbleVariant | undefined>;
1712
+ /** Density preset. Drives padding + font-size on the bubble. Unset falls back to the configured default (`'md'`). */
1713
+ readonly kjSize: _angular_core.InputSignal<KjChatBubbleSize | undefined>;
1706
1714
  /** Suppresses the tail unconditionally. Auto-suppression on grouped rows is independent. */
1707
1715
  readonly kjChatBubbleNoTail: _angular_core.InputSignal<boolean>;
1708
1716
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KjChatBubbleComponent, never>;
@@ -4527,10 +4535,10 @@ declare class KjLinkComponent {
4527
4535
  readonly kjTarget: _angular_core.InputSignal<string | undefined>;
4528
4536
  /** Bound to `[attr.aria-label]` on the inner `<a>`. When set, suppresses the AT suffix injection. */
4529
4537
  readonly kjAriaLabel: _angular_core.InputSignal<string | undefined>;
4530
- /** Forwarded to the directive's `KjVariant` host directive. */
4531
- readonly kjVariant: _angular_core.InputSignal<string>;
4532
- /** Forwarded to the directive's `KjSize` host directive. */
4533
- readonly kjSize: _angular_core.InputSignal<string>;
4538
+ /** Forwarded to the directive's `KjVariant` host directive. Unset falls back to the `provideKjLink(…)` default (`'primary'`). */
4539
+ readonly kjVariant: _angular_core.InputSignal<string | undefined>;
4540
+ /** Forwarded to the directive's `KjSize` host directive. Unset falls back to the configured default (`'inherit'`). */
4541
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
4534
4542
  /** Forwarded to the directive's underline-mode reflection. */
4535
4543
  readonly kjUnderline: _angular_core.InputSignal<"always" | "hover" | "none">;
4536
4544
  /** Forwarded to the directive's external-link tri-state. */
@@ -5304,8 +5312,10 @@ declare class KjPaginationDefaultComponent {
5304
5312
  readonly kjTotalPages: _angular_core.InputSignal<number>;
5305
5313
  readonly kjSiblingCount: _angular_core.InputSignal<number>;
5306
5314
  readonly kjBoundaryCount: _angular_core.InputSignal<number>;
5307
- readonly kjVariant: _angular_core.InputSignal<string>;
5308
- readonly kjSize: _angular_core.InputSignal<string>;
5315
+ /** Cascaded onto items/boundaries. Unset falls back to the `provideKjPagination(…)` default (`'default'`). */
5316
+ readonly kjVariant: _angular_core.InputSignal<string | undefined>;
5317
+ /** Cascaded onto items/boundaries. Unset falls back to the configured default (`'md'`). */
5318
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
5309
5319
  /** Render the First / Last boundary buttons. Default `true`. */
5310
5320
  readonly kjShowFirstLast: _angular_core.InputSignal<boolean>;
5311
5321
  /** Render the trailing "Page N of M" info span. Default `false`. */
@@ -5616,14 +5626,16 @@ declare class KjProgressBarComponent {
5616
5626
  readonly kjAriaValuetext: _angular_core.InputSignal<string>;
5617
5627
  /**
5618
5628
  * Variant — one of the configured presets (`primary` | `success` |
5619
- * `warning` | `error` by default). @default 'primary'
5629
+ * `warning` | `error` by default). Unset falls back to the
5630
+ * `provideKjProgressBar(…)` default. @default 'primary'
5620
5631
  */
5621
- readonly kjVariant: _angular_core.InputSignal<string>;
5632
+ readonly kjVariant: _angular_core.InputSignal<string | undefined>;
5622
5633
  /**
5623
5634
  * Size — one of the configured presets (`xs` | `sm` | `md` | `lg` by
5624
- * default). Drives the bar height. @default 'md'
5635
+ * default). Drives the bar height. Unset falls back to the configured
5636
+ * default. @default 'md'
5625
5637
  */
5626
- readonly kjSize: _angular_core.InputSignal<string>;
5638
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
5627
5639
  /**
5628
5640
  * Accessible label for the bar. At least one of `kjAriaLabel` or
5629
5641
  * `kjAriaLabelledby` must be set — a progress bar without a name announces
@@ -6583,17 +6595,19 @@ declare class KjSpeedDialActionComponent {
6583
6595
  */
6584
6596
  declare class KjSpinnerComponent {
6585
6597
  /**
6586
- * Color preset reflected to `data-variant` on the host. Defaults to
6587
- * `'neutral'`, which resolves to `currentColor` in shipped themes — so a
6588
- * spinner inside a coloured surface inherits its parent's text colour.
6598
+ * Color preset reflected to `data-variant` on the host. Unset falls back
6599
+ * to the `provideKjSpinner(…)` default (`'neutral'`, which resolves to
6600
+ * `currentColor` in shipped themes so a spinner inside a coloured
6601
+ * surface inherits its parent's text colour).
6589
6602
  */
6590
- readonly kjVariant: _angular_core.InputSignal<string>;
6603
+ readonly kjVariant: _angular_core.InputSignal<string | undefined>;
6591
6604
  /**
6592
- * Size preset reflected to `data-size` on the host. Defaults to `'md'`.
6593
- * Sizes ship as `xs | sm | md | lg`; an `xl` is intentionally absent — a
6594
- * spinner that big almost always wants a determinate Progress Bar instead.
6605
+ * Size preset reflected to `data-size` on the host. Unset falls back to
6606
+ * the configured default (`'md'`). Sizes ship as `xs | sm | md | lg`; an
6607
+ * `xl` is intentionally absent — a spinner that big almost always wants a
6608
+ * determinate Progress Bar instead.
6595
6609
  */
6596
- readonly kjSize: _angular_core.InputSignal<string>;
6610
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
6597
6611
  /**
6598
6612
  * Animation shape preset forwarded to `KjSpinner.kjAnimation` via the
6599
6613
  * composed host directive. Reflects on the host as `data-animation`.
@@ -6628,7 +6642,7 @@ declare class KjSpinnerComponent {
6628
6642
  protected readonly shouldRenderHiddenLabel: _angular_core.Signal<boolean>;
6629
6643
  constructor();
6630
6644
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KjSpinnerComponent, never>;
6631
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjSpinnerComponent, "kj-spinner", never, { "kjVariant": { "alias": "kjVariant"; "required": false; "isSignal": true; }; "kjSize": { "alias": "kjSize"; "required": false; "isSignal": true; }; "kjAnimation": { "alias": "kjAnimation"; "required": false; "isSignal": true; }; "kjAriaLabel": { "alias": "kjAriaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.KjSpinner; inputs: { "kjAnimation": "kjAnimation"; "kjAriaLabel": "kjAriaLabel"; }; outputs: {}; }]>;
6645
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjSpinnerComponent, "kj-spinner", never, { "kjVariant": { "alias": "kjVariant"; "required": false; "isSignal": true; }; "kjSize": { "alias": "kjSize"; "required": false; "isSignal": true; }; "kjAnimation": { "alias": "kjAnimation"; "required": false; "isSignal": true; }; "kjAriaLabel": { "alias": "kjAriaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.KjSpinner; inputs: { "kjAnimation": "kjAnimation"; "kjAriaLabel": "kjAriaLabel"; }; outputs: {}; }, { directive: typeof i1.KjVariant; inputs: { "kjVariant": "kjVariant"; }; outputs: {}; }, { directive: typeof i1.KjSize; inputs: { "kjSize": "kjSize"; }; outputs: {}; }]>;
6632
6646
  }
6633
6647
 
6634
6648
  /**
@@ -8006,10 +8020,19 @@ declare class KjTableErrorTemplate {
8006
8020
  * @doc-is-main
8007
8021
  */
8008
8022
  declare class KjTabsComponent {
8009
- /** Visual chrome for the tab strip. Reflected as `data-variant` on the host. */
8010
- readonly variant: _angular_core.InputSignal<"default" | "pills">;
8023
+ /**
8024
+ * Visual chrome for the tab strip, reflected as `data-variant` on the host.
8025
+ * Ships `'default'` (underline strip) and `'pills'` (recessed chip tray);
8026
+ * register more with `provideKjTabs({ variants: [...] })` and key a CSS rule
8027
+ * on `.kj-tabs[data-variant="…"]`.
8028
+ *
8029
+ * Declared here for the docs extractor only — the value is owned by the
8030
+ * composed `KjVariant` preset directive (see `hostDirectives`), which is
8031
+ * what actually resolves and reflects it.
8032
+ */
8033
+ readonly variant: _angular_core.InputSignal<string | undefined>;
8011
8034
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<KjTabsComponent, never>;
8012
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjTabsComponent, "kj-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.KjTabs; inputs: { "kjValue": "value"; "kjOrientation": "orientation"; "kjActivationMode": "activationMode"; }; outputs: { "kjValueChange": "valueChange"; }; }]>;
8035
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<KjTabsComponent, "kj-tabs", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.KjTabs; inputs: { "kjValue": "value"; "kjOrientation": "orientation"; "kjActivationMode": "activationMode"; }; outputs: { "kjValueChange": "valueChange"; }; }, { directive: typeof i1.KjVariant; inputs: { "kjVariant": "variant"; }; outputs: {}; }]>;
8013
8036
  }
8014
8037
  /**
8015
8038
  * Styled wrapper around `KjTabList`. Hosts `role="tablist"` (provided by the
@@ -8294,10 +8317,10 @@ declare class KjTextareaComponent implements ControlValueAccessor {
8294
8317
  readonly kjInvalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
8295
8318
  /** Disables the textarea. Reflects `aria-disabled` and native `disabled`. */
8296
8319
  readonly kjDisabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
8297
- /** Theme variant. Configurable via `provideKjTextarea(...)`. */
8298
- readonly kjVariant: _angular_core.InputSignal<string>;
8299
- /** Theme size. Configurable via `provideKjTextarea(...)`. */
8300
- readonly kjSize: _angular_core.InputSignal<string>;
8320
+ /** Theme variant. Unset falls back to the `provideKjTextarea(...)` default (`'outlined'`). */
8321
+ readonly kjVariant: _angular_core.InputSignal<string | undefined>;
8322
+ /** Theme size. Unset falls back to the `provideKjTextarea(...)` default (`'md'`). */
8323
+ readonly kjSize: _angular_core.InputSignal<string | undefined>;
8301
8324
  /** @internal stable id for the counter / aria-describedby wiring. */
8302
8325
  protected readonly counterId: string;
8303
8326
  private readonly cvaValue;