@kenlo/kdls-design-system 2.29.0 → 2.30.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.
@@ -33,6 +33,8 @@ export interface HeaderProduct {
33
33
  href?: string;
34
34
  active?: boolean;
35
35
  onClick?: () => void;
36
+ /** Draws the "Novo" badge after the name, in every product list (split-logo menu, grid panel, mobile overlay) — same as HeaderNavItem.isNew */
37
+ isNew?: boolean;
36
38
  }
37
39
  export interface HeaderProfileMenuItem {
38
40
  label: string;
@@ -2,6 +2,10 @@ import React from 'react';
2
2
  import './Text.css';
3
3
  export type TextVariant = 'displayLg' | 'displayMd' | 'displaySm' | 'titleLg' | 'titleMd' | 'titleSm' | 'bodyMd' | 'bodySm' | 'labelSemiBold' | 'labelRegular';
4
4
  export type TextColor = 'default' | 'inherit' | 'primary' | 'error' | 'success' | 'alert';
5
+ /** Variants that accept `outline` — titles and display only; body and label ignore it. */
6
+ export declare const TEXT_OUTLINE_VARIANTS: readonly TextVariant[];
7
+ /** Line thickness of the outline, in px, per variant when `outlineWidth` is not given. */
8
+ export declare const TEXT_OUTLINE_DEFAULT_WIDTH: Readonly<Partial<Record<TextVariant, number>>>;
5
9
  export interface TextProps {
6
10
  /** Displayed text content — free-form */
7
11
  children: React.ReactNode;
@@ -13,10 +17,17 @@ export interface TextProps {
13
17
  * decided by an ancestor (e.g. a component's own variant, like Alert's tinted surface).
14
18
  * 'primary' follows the selected scheme/custom — automatically becomes a gradient when the active scheme is lya */
15
19
  color?: TextColor;
20
+ /** Experimental. Line thickness of the outline in px (only with `outline`). Default
21
+ * follows the size: 2 on displayLg, 1.5 on displayMd/displaySm, 1 on the title variants */
22
+ outlineWidth?: number;
16
23
  /** Associates a <label> with its control by id — only meaningful when as="label" */
17
24
  htmlFor?: string;
18
25
  /** Element id — e.g. to be referenced by another element's aria-labelledby/aria-describedby */
19
26
  id?: string;
27
+ /** Experimental. Draws the letters with only their contour (no fill), in the text's own
28
+ * colour (follows `color`, the theme and a custom gradient). Titles and display only:
29
+ * ignored on body and label variants */
30
+ outline?: boolean;
20
31
  /** Additional CSS classes */
21
32
  className?: string;
22
33
  }
@@ -1,10 +1,19 @@
1
1
  export type ColorScheme = 'primary' | 'neutral' | 'secondary' | 'tertiary' | 'lya' | 'leaf' | 'sand' | 'wood' | 'clay' | 'flower' | 'dusk' | 'sky' | 'sea' | 'lake';
2
2
  export type RadiusScheme = 'default' | 'flat' | 'soft' | 'medium' | 'rounded';
3
3
  export type FontScheme = 'manrope' | 'inter' | 'helvetica' | 'source-sans' | 'nunito' | 'montserrat' | 'archivo-expanded' | 'unbounded' | 'red-hat-display' | 'red-hat-text';
4
- /** Thickness of every UI stroke, in px. 1 is the default. */
5
- export type StrokeScheme = 1 | 2 | 3 | 4;
6
- /** 'smooth' = blurred shadows (default); 'hard' = offset shadows with no blur. */
7
- export type ShadowScheme = 'smooth' | 'hard';
4
+ /**
5
+ * Thickness of every UI stroke. 'soft' is the default (1px; 2px where the design draws 2px);
6
+ * 'medium' adds 1px to every stroke and 'hard' adds 2px.
7
+ * @deprecated values 1 | 2 | 3 | 4 (the first version, in px) still work and keep their look.
8
+ */
9
+ export type StrokeScheme = 'soft' | 'medium' | 'hard' | 1 | 2 | 3 | 4;
10
+ /**
11
+ * 'soft' = blurred shadows (default); 'medium' = offset 4px with a blur; 'hard' = offset 8px, no blur.
12
+ * Colour and distance can be changed in CSS: --shadow-hard-color, --shadow-hard-distance,
13
+ * --shadow-medium-color, --shadow-medium-distance (see the token reference).
14
+ * @deprecated value 'smooth' is the old name of 'soft'.
15
+ */
16
+ export type ShadowScheme = 'soft' | 'medium' | 'hard' | 'smooth';
8
17
  export type ThemeMode = 'light' | 'dark' | 'system';
9
18
  /** 'default' = the kit as it always was; 'rede' = the Kenlo Rede look (see KENLO_REDE). */
10
19
  export type LookScheme = 'default' | 'rede';
@@ -16,7 +25,11 @@ export interface KdlsConfig {
16
25
  /** Optional second font for title small (16px) and up. Unset = one font for everything. */
17
26
  fontDisplay?: FontScheme;
18
27
  stroke?: StrokeScheme;
28
+ /** "Linha marcada": every line goes 5 steps up the neutral scale (controls 30 -> 80, dividers 20 -> 70). */
29
+ strokeMarked?: boolean;
19
30
  shadow?: ShadowScheme;
31
+ /** "Sombra colorida": the shadow takes the scheme colour (a gradient gives its first colour). */
32
+ shadowColored?: boolean;
20
33
  /** 'rede' fills the primary Button with the darker Kenlo blue, so its white label passes
21
34
  * WCAG AA (4.5:1) in both themes. Only the Kenlo blue scheme; other schemes keep their own. */
22
35
  look?: LookScheme;