@joanroucoux/cairn-ui 0.6.1 → 0.6.3

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.1",
3
+ "version": "0.6.3",
4
4
  "description": "Cairn UI — a monochrome, accessible Angular design system.",
5
5
  "keywords": [
6
6
  "angular",
@@ -205,10 +205,10 @@ declare class UiButton {
205
205
  }
206
206
 
207
207
  /** Available card variants. `CardVariant` is derived from this tuple. */
208
- declare const CARD_VARIANTS: readonly ["default", "elevated"];
208
+ declare const CARD_VARIANTS: readonly ["default", "elevated", "inset"];
209
209
  type CardVariant = (typeof CARD_VARIANTS)[number];
210
210
  /** Available card paddings. `CardPadding` is derived from this tuple. */
211
- declare const CARD_PADDINGS: readonly ["none", "sm", "md", "list", "rows"];
211
+ declare const CARD_PADDINGS: readonly ["none", "xs", "sm", "md", "list", "rows", "recap", "panel"];
212
212
  type CardPadding = (typeof CARD_PADDINGS)[number];
213
213
  /** Where the card surface (fill, border, radius) and its padding apply. `CardSurface` is derived from this tuple. */
214
214
  declare const CARD_SURFACES: readonly ["always", "lg", "max-lg"];
@@ -216,19 +216,24 @@ type CardSurface = (typeof CARD_SURFACES)[number];
216
216
  /**
217
217
  * Surface that groups related content: a summary block, a table, a side panel. `surface` limits the
218
218
  * 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.
219
+ * plain on an iPhone, or the reverse. `variant="inset"` is the `--background` box that sits inside a
220
+ * card or a dialog: a picked title, a results list, a recap, an empty-state panel.
220
221
  *
221
222
  * @example
222
223
  * <ui-card variant="elevated" padding="sm">Total</ui-card>
224
+ * <ui-card variant="inset" border="hairline" padding="xs">Results</ui-card>
225
+ * <ui-card padding="none" clip>Table that touches the edges, clipped to the corners</ui-card>
223
226
  * <ui-card surface="max-lg">Card on an iPhone, plain on a desktop</ui-card>
224
227
  */
225
228
  declare class UiCard {
226
- readonly variant: _angular_core.InputSignal<"elevated" | "default">;
227
- readonly padding: _angular_core.InputSignal<"sm" | "md" | "none" | "list" | "rows">;
229
+ readonly variant: _angular_core.InputSignal<"elevated" | "default" | "inset">;
230
+ readonly padding: _angular_core.InputSignal<"sm" | "md" | "xs" | "none" | "list" | "rows" | "recap" | "panel">;
228
231
  readonly surface: _angular_core.InputSignal<"lg" | "always" | "max-lg">;
232
+ readonly border: _angular_core.InputSignal<"auto" | "none" | "border" | "hairline">;
233
+ readonly clip: _angular_core.InputSignalWithTransform<boolean, unknown>;
229
234
  protected readonly classes: _angular_core.Signal<string>;
230
235
  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>;
236
+ 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
237
  }
233
238
 
234
239
  /**
@@ -444,7 +449,7 @@ declare class UiExternalLink {
444
449
  }
445
450
 
446
451
  /** Available fact row sizes. `FactSize` is derived from this tuple. */
447
- declare const FACT_SIZES: readonly ["md", "sm", "auto"];
452
+ declare const FACT_SIZES: readonly ["md", "sm", "auto", "recap"];
448
453
  type FactSize = (typeof FACT_SIZES)[number];
449
454
  /** Colour of the line under a fact value. `stale` flags an out-of-date figure. */
450
455
  declare const FACT_SUB_TONES: readonly ["subtle", "stale"];
@@ -460,7 +465,7 @@ type FactSubTone = (typeof FACT_SUB_TONES)[number];
460
465
  */
461
466
  declare class UiFacts {
462
467
  readonly ruled: _angular_core.InputSignalWithTransform<boolean, unknown>;
463
- protected readonly classes: _angular_core.Signal<string>;
468
+ protected readonly classes: _angular_core.Signal<"m-0 flex flex-col shadow-[inset_0_1px_0_var(--hairline)]" | "m-0 flex flex-col">;
464
469
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiFacts, never>;
465
470
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiFacts, "dl[uiFacts]", never, { "ruled": { "alias": "ruled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
466
471
  }
@@ -475,7 +480,7 @@ declare class UiFact {
475
480
  readonly label: _angular_core.InputSignal<string>;
476
481
  readonly sub: _angular_core.InputSignal<string | undefined>;
477
482
  readonly subTone: _angular_core.InputSignal<"subtle" | "stale">;
478
- readonly size: _angular_core.InputSignal<"auto" | "sm" | "md">;
483
+ readonly size: _angular_core.InputSignal<"auto" | "sm" | "md" | "recap">;
479
484
  protected readonly classes: _angular_core.Signal<string>;
480
485
  protected readonly valueClasses: _angular_core.Signal<string>;
481
486
  protected readonly subClasses: _angular_core.Signal<string>;
@@ -876,10 +881,24 @@ declare class UiRowItem {
876
881
  */
877
882
  declare class UiListRow {
878
883
  readonly ruled: _angular_core.InputSignalWithTransform<boolean, unknown>;
879
- protected readonly classes: _angular_core.Signal<string>;
884
+ protected readonly classes: _angular_core.Signal<"flex min-h-18 items-center gap-3 py-1.5 lg:min-h-17 shadow-[inset_0_-1px_0_var(--hairline)]" | "flex min-h-18 items-center gap-3 py-1.5 lg:min-h-17">;
880
885
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiListRow, never>;
881
886
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiListRow, "[uiListRow]", never, { "ruled": { "alias": "ruled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
882
887
  }
888
+ /**
889
+ * The 36px filled tile that leads a row: an icon on a muted square with the control radius. Put it on
890
+ * a `span` as the first child of a `ui-row` or a `uiListRow`.
891
+ *
892
+ * @example
893
+ * <a ui-row size="xl" padding="sm" href="/export">
894
+ * <span uiRowTile><svg lucideDownload [size]="18" /></span>
895
+ * Export
896
+ * </a>
897
+ */
898
+ declare class UiRowTile {
899
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiRowTile, never>;
900
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<UiRowTile, "[uiRowTile]", never, {}, {}, never, never, true, never>;
901
+ }
883
902
 
884
903
  type SegmentedOption = {
885
904
  value: string;
@@ -1152,5 +1171,5 @@ declare class UiCellSub {
1152
1171
  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
1172
  }
1154
1173
 
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 };
1174
+ 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
1175
  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 };