@joanroucoux/cairn-ui 0.6.3 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joanroucoux/cairn-ui",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "description": "Cairn UI — a monochrome, accessible Angular design system.",
5
5
  "keywords": [
6
6
  "angular",
@@ -133,7 +133,8 @@ declare class UiAvatar {
133
133
  }
134
134
  /**
135
135
  * Round hit area around a `ui-avatar` that links somewhere: 44px on touch, 40px from 64rem, with a
136
- * glow on hover and the press scale. The avatar itself keeps its own size.
136
+ * glow on hover and the press scale. On the current page (`aria-current="page"`, which `routerLinkActive`
137
+ * sets through `ariaCurrentWhenActive`) it holds a soft halo. The avatar itself keeps its own size.
137
138
  *
138
139
  * @example
139
140
  * <a uiAvatarLink routerLink="/profile"><ui-avatar initials="JR" label="Profile" size="auto" /></a>
@@ -635,10 +636,6 @@ declare class UiTextarea implements UiControl {
635
636
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiTextarea, "textarea[uiTextarea]", never, { "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
636
637
  }
637
638
 
638
- declare const TOOLTIP_SIZES: readonly ["compact", "large"];
639
- type TooltipSize = (typeof TOOLTIP_SIZES)[number];
640
- type AxisTicks = 3 | 5 | 'auto';
641
-
642
639
  type ChartPoint = {
643
640
  t: number;
644
641
  v: number;
@@ -661,10 +658,24 @@ type ChartGeometry = {
661
658
  plotTop: number;
662
659
  };
663
660
 
661
+ type TickLabel = {
662
+ text: string;
663
+ classes: string;
664
+ };
665
+
666
+ declare const TOOLTIP_SIZES: readonly ["compact", "large"];
667
+ type TooltipSize = (typeof TOOLTIP_SIZES)[number];
668
+ type AxisTicks = 3 | 5 | 'auto';
669
+
664
670
  type PlotRef = ElementRef<SVGSVGElement>;
665
671
  /**
666
672
  * Value over time: a monotone curve with a dashed line at the starting value and a tooltip.
667
673
  *
674
+ * Axis labels are never repeated: a tick whose `axisFormat` text equals the previous drawn label is
675
+ * not rendered. The first tick always is, so only the last edge label can drop. With `axisTicks="3"`
676
+ * only the first, middle and last ticks count; with `auto` every tick counts from `sm` up and the
677
+ * three core ticks below it. Tick positions are unchanged.
678
+ *
668
679
  * @example
669
680
  * <ui-line-chart [points]="points" label="Net worth over one month" startLabel="Since" [valueFormat]="formatEur" />
670
681
  */
@@ -685,7 +696,6 @@ declare class UiLineChart {
685
696
  readonly tooltipDelta: _angular_core.InputSignalWithTransform<boolean, unknown>;
686
697
  readonly axisGap: _angular_core.InputSignal<number | "auto">;
687
698
  readonly axisTicks: _angular_core.InputSignalWithTransform<AxisTicks, string | 3 | 5>;
688
- protected readonly isCoreTick: (index: number, count: number) => boolean;
689
699
  protected readonly svgRef: _angular_core.Signal<PlotRef>;
690
700
  protected readonly activeIndex: _angular_core.WritableSignal<number | null>;
691
701
  protected readonly animatedLine: _angular_core.WritableSignal<string | null>;
@@ -705,6 +715,7 @@ declare class UiLineChart {
705
715
  protected readonly geometry: _angular_core.Signal<ChartGeometry | null>;
706
716
  protected readonly displayLine: _angular_core.Signal<string>;
707
717
  protected readonly ticks: _angular_core.Signal<PlottedPoint[]>;
718
+ protected readonly tickTexts: _angular_core.Signal<(TickLabel | null)[]>;
708
719
  protected readonly active: _angular_core.Signal<PlottedPoint | null>;
709
720
  protected readonly startLabelInfo: _angular_core.Signal<{
710
721
  label: string;