@joanroucoux/cairn-ui 0.6.2 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joanroucoux/cairn-ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
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>
@@ -205,10 +206,10 @@ declare class UiButton {
205
206
  }
206
207
 
207
208
  /** Available card variants. `CardVariant` is derived from this tuple. */
208
- declare const CARD_VARIANTS: readonly ["default", "elevated"];
209
+ declare const CARD_VARIANTS: readonly ["default", "elevated", "inset"];
209
210
  type CardVariant = (typeof CARD_VARIANTS)[number];
210
211
  /** Available card paddings. `CardPadding` is derived from this tuple. */
211
- declare const CARD_PADDINGS: readonly ["none", "sm", "md", "list", "rows"];
212
+ declare const CARD_PADDINGS: readonly ["none", "xs", "sm", "md", "list", "rows", "recap", "panel"];
212
213
  type CardPadding = (typeof CARD_PADDINGS)[number];
213
214
  /** Where the card surface (fill, border, radius) and its padding apply. `CardSurface` is derived from this tuple. */
214
215
  declare const CARD_SURFACES: readonly ["always", "lg", "max-lg"];
@@ -216,19 +217,24 @@ type CardSurface = (typeof CARD_SURFACES)[number];
216
217
  /**
217
218
  * Surface that groups related content: a summary block, a table, a side panel. `surface` limits the
218
219
  * fill, border, radius and padding to one side of `64rem`, for a block that is a card on a desktop and
219
- * plain on an iPhone, or the reverse.
220
+ * plain on an iPhone, or the reverse. `variant="inset"` is the `--background` box that sits inside a
221
+ * card or a dialog: a picked title, a results list, a recap, an empty-state panel.
220
222
  *
221
223
  * @example
222
224
  * <ui-card variant="elevated" padding="sm">Total</ui-card>
225
+ * <ui-card variant="inset" border="hairline" padding="xs">Results</ui-card>
226
+ * <ui-card padding="none" clip>Table that touches the edges, clipped to the corners</ui-card>
223
227
  * <ui-card surface="max-lg">Card on an iPhone, plain on a desktop</ui-card>
224
228
  */
225
229
  declare class UiCard {
226
- readonly variant: _angular_core.InputSignal<"elevated" | "default">;
227
- readonly padding: _angular_core.InputSignal<"sm" | "md" | "none" | "list" | "rows">;
230
+ readonly variant: _angular_core.InputSignal<"elevated" | "default" | "inset">;
231
+ readonly padding: _angular_core.InputSignal<"sm" | "md" | "xs" | "none" | "list" | "rows" | "recap" | "panel">;
228
232
  readonly surface: _angular_core.InputSignal<"lg" | "always" | "max-lg">;
233
+ readonly border: _angular_core.InputSignal<"auto" | "none" | "border" | "hairline">;
234
+ readonly clip: _angular_core.InputSignalWithTransform<boolean, unknown>;
229
235
  protected readonly classes: _angular_core.Signal<string>;
230
236
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiCard, never>;
231
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiCard, "ui-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "surface": { "alias": "surface"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
237
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiCard, "ui-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "surface": { "alias": "surface"; "required": false; "isSignal": true; }; "border": { "alias": "border"; "required": false; "isSignal": true; }; "clip": { "alias": "clip"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
232
238
  }
233
239
 
234
240
  /**
@@ -444,7 +450,7 @@ declare class UiExternalLink {
444
450
  }
445
451
 
446
452
  /** Available fact row sizes. `FactSize` is derived from this tuple. */
447
- declare const FACT_SIZES: readonly ["md", "sm", "auto"];
453
+ declare const FACT_SIZES: readonly ["md", "sm", "auto", "recap"];
448
454
  type FactSize = (typeof FACT_SIZES)[number];
449
455
  /** Colour of the line under a fact value. `stale` flags an out-of-date figure. */
450
456
  declare const FACT_SUB_TONES: readonly ["subtle", "stale"];
@@ -475,7 +481,7 @@ declare class UiFact {
475
481
  readonly label: _angular_core.InputSignal<string>;
476
482
  readonly sub: _angular_core.InputSignal<string | undefined>;
477
483
  readonly subTone: _angular_core.InputSignal<"subtle" | "stale">;
478
- readonly size: _angular_core.InputSignal<"auto" | "sm" | "md">;
484
+ readonly size: _angular_core.InputSignal<"auto" | "sm" | "md" | "recap">;
479
485
  protected readonly classes: _angular_core.Signal<string>;
480
486
  protected readonly valueClasses: _angular_core.Signal<string>;
481
487
  protected readonly subClasses: _angular_core.Signal<string>;
@@ -880,6 +886,20 @@ declare class UiListRow {
880
886
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiListRow, never>;
881
887
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiListRow, "[uiListRow]", never, { "ruled": { "alias": "ruled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
882
888
  }
889
+ /**
890
+ * The 36px filled tile that leads a row: an icon on a muted square with the control radius. Put it on
891
+ * a `span` as the first child of a `ui-row` or a `uiListRow`.
892
+ *
893
+ * @example
894
+ * <a ui-row size="xl" padding="sm" href="/export">
895
+ * <span uiRowTile><svg lucideDownload [size]="18" /></span>
896
+ * Export
897
+ * </a>
898
+ */
899
+ declare class UiRowTile {
900
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiRowTile, never>;
901
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiRowTile, "[uiRowTile]", never, {}, {}, never, never, true, never>;
902
+ }
883
903
 
884
904
  type SegmentedOption = {
885
905
  value: string;
@@ -1152,5 +1172,5 @@ declare class UiCellSub {
1152
1172
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiCellSub, "[uiCellSub]", never, { "narrow": { "alias": "narrow"; "required": false; "isSignal": true; }; "tone": { "alias": "tone"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1153
1173
  }
1154
1174
 
1155
- export { ALERT_VARIANTS, AMOUNT_MASKINGS, AMOUNT_NUMERICS, ASYNC_ALIGNS, ASYNC_STATES, ASYNC_VARIANTS, AVATAR_SIZES, BACK_LINK_SIZES, BADGE_SIZES, BADGE_VARIANTS, BUTTON_SIZES, BUTTON_VARIANTS, CARD_PADDINGS, CARD_SURFACES, CARD_VARIANTS, CELL_BREAKPOINTS, CONTROL_SIZES, CONTROL_SURFACES, DELTA_EMPHASES, DELTA_SIZES, DELTA_WEIGHTS, DIALOG_LAYOUTS, DIALOG_WIDTHS, FACT_SIZES, FACT_SUB_TONES, GROUP_SIZES, METER_SIZES, METER_TONES, ROW_GAPS, ROW_PADDINGS, ROW_SIZES, SEGMENTED_SIZES, SKELETON_SHAPES, STAT_SIZES, SUB_TONES, TABLE_ROWS, UI_AMOUNT_MASKED, UiActionBar, UiAlert, UiAmount, UiAsync, UiAvatar, UiAvatarLink, UiBackLink, UiBadge, UiButton, UiCard, UiCellSub, UiChoiceChips, UiDelta, UiDialog, UiDonut, UiExternalLink, UiFact, UiFacts, UiField, UiFieldLeading, UiFieldTrailing, UiFilterChips, UiGroup, UiGroupCell, UiInput, UiLineChart, UiListRow, UiMenu, UiMenuItem, UiMenuTrigger, UiMeter, UiNavItem, UiRow, UiRowAction, UiRowItem, UiRowLink, UiSegmented, UiSelect, UiSkeleton, UiStat, UiSwitch, UiTab, UiTabBar, UiTable, UiTd, UiTextarea, UiTh, UiTr, formatAmount };
1175
+ export { ALERT_VARIANTS, AMOUNT_MASKINGS, AMOUNT_NUMERICS, ASYNC_ALIGNS, ASYNC_STATES, ASYNC_VARIANTS, AVATAR_SIZES, BACK_LINK_SIZES, BADGE_SIZES, BADGE_VARIANTS, BUTTON_SIZES, BUTTON_VARIANTS, CARD_PADDINGS, CARD_SURFACES, CARD_VARIANTS, CELL_BREAKPOINTS, CONTROL_SIZES, CONTROL_SURFACES, DELTA_EMPHASES, DELTA_SIZES, DELTA_WEIGHTS, DIALOG_LAYOUTS, DIALOG_WIDTHS, FACT_SIZES, FACT_SUB_TONES, GROUP_SIZES, METER_SIZES, METER_TONES, ROW_GAPS, ROW_PADDINGS, ROW_SIZES, SEGMENTED_SIZES, SKELETON_SHAPES, STAT_SIZES, SUB_TONES, TABLE_ROWS, UI_AMOUNT_MASKED, UiActionBar, UiAlert, UiAmount, UiAsync, UiAvatar, UiAvatarLink, UiBackLink, UiBadge, UiButton, UiCard, UiCellSub, UiChoiceChips, UiDelta, UiDialog, UiDonut, UiExternalLink, UiFact, UiFacts, UiField, UiFieldLeading, UiFieldTrailing, UiFilterChips, UiGroup, UiGroupCell, UiInput, UiLineChart, UiListRow, UiMenu, UiMenuItem, UiMenuTrigger, UiMeter, UiNavItem, UiRow, UiRowAction, UiRowItem, UiRowLink, UiRowTile, UiSegmented, UiSelect, UiSkeleton, UiStat, UiSwitch, UiTab, UiTabBar, UiTable, UiTd, UiTextarea, UiTh, UiTr, formatAmount };
1156
1176
  export type { AlertVariant, AmountFormatOptions, AmountMasking, AmountNumeric, AsyncAlign, AsyncState, AsyncVariant, AvatarSize, AxisTicks, BackLinkSize, BadgeSize, BadgeVariant, ButtonSize, ButtonVariant, CardPadding, CardSurface, CardVariant, CellBreakpoint, ChartPoint, ChoiceChipOption, ControlSize, ControlSurface, DeltaEmphasis, DeltaSize, DeltaWeight, DialogLayout, DialogWidth, DonutSlice, FactSize, FactSubTone, FilterChipOption, GroupSize, MeterSize, MeterTone, RowGap, RowPadding, RowSize, SegmentedOption, SegmentedSize, SkeletonShape, StatSize, SubTone, TableRow, TooltipSize, UiControlError };