@usefidel/design-system 0.19.0 → 0.20.0

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/dist/index.d.cts CHANGED
@@ -14,9 +14,9 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
14
14
  variant?: ButtonVariant;
15
15
  /** Size step. @default 'medium' */
16
16
  size?: ButtonSize;
17
- /** Optional leading icon (rendered in a 20px slot). */
17
+ /** Optional leading icon (16px slot; 20px on `big`). */
18
18
  leftIcon?: ReactNode;
19
- /** Optional trailing icon (rendered in a 20px slot). */
19
+ /** Optional trailing icon (16px slot; 20px on `big`). */
20
20
  rightIcon?: ReactNode;
21
21
  }
22
22
  /**
@@ -537,7 +537,7 @@ interface SearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, '
537
537
  containerClassName?: string;
538
538
  }
539
539
  /**
540
- * Fidel design-system SearchInput: a 44px search field with a leading
540
+ * Fidel design-system SearchInput: a 36px search field with a leading
541
541
  * magnifier. Measured from Figma "✅Project" toolbar search (node 231:59687).
542
542
  */
543
543
  declare const SearchInput: react.ForwardRefExoticComponent<SearchInputProps & react.RefAttributes<HTMLInputElement>>;
@@ -767,7 +767,7 @@ interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
767
767
  'aria-label': string;
768
768
  /** @default 'outlined' */
769
769
  variant?: IconButtonVariant;
770
- /** 44px (`medium`, matches Button medium) or 28px (`small`). @default 'medium' */
770
+ /** 36px (`medium`, matches Button medium) or 28px (`small`). @default 'medium' */
771
771
  size?: IconButtonSize;
772
772
  }
773
773
  /**
package/dist/index.d.ts CHANGED
@@ -14,9 +14,9 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
14
14
  variant?: ButtonVariant;
15
15
  /** Size step. @default 'medium' */
16
16
  size?: ButtonSize;
17
- /** Optional leading icon (rendered in a 20px slot). */
17
+ /** Optional leading icon (16px slot; 20px on `big`). */
18
18
  leftIcon?: ReactNode;
19
- /** Optional trailing icon (rendered in a 20px slot). */
19
+ /** Optional trailing icon (16px slot; 20px on `big`). */
20
20
  rightIcon?: ReactNode;
21
21
  }
22
22
  /**
@@ -537,7 +537,7 @@ interface SearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, '
537
537
  containerClassName?: string;
538
538
  }
539
539
  /**
540
- * Fidel design-system SearchInput: a 44px search field with a leading
540
+ * Fidel design-system SearchInput: a 36px search field with a leading
541
541
  * magnifier. Measured from Figma "✅Project" toolbar search (node 231:59687).
542
542
  */
543
543
  declare const SearchInput: react.ForwardRefExoticComponent<SearchInputProps & react.RefAttributes<HTMLInputElement>>;
@@ -767,7 +767,7 @@ interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
767
767
  'aria-label': string;
768
768
  /** @default 'outlined' */
769
769
  variant?: IconButtonVariant;
770
- /** 44px (`medium`, matches Button medium) or 28px (`small`). @default 'medium' */
770
+ /** 36px (`medium`, matches Button medium) or 28px (`small`). @default 'medium' */
771
771
  size?: IconButtonSize;
772
772
  }
773
773
  /**
package/dist/index.js CHANGED
@@ -1178,7 +1178,7 @@ import { jsx as jsx18, jsxs as jsxs16 } from "react/jsx-runtime";
1178
1178
  var SearchInput = forwardRef3(function SearchInput2({ shortcut, containerClassName, className, value, ...rest }, ref) {
1179
1179
  const empty = value === void 0 || value === "";
1180
1180
  return /* @__PURE__ */ jsxs16("div", { className: ["fds-search", containerClassName].filter(Boolean).join(" "), children: [
1181
- /* @__PURE__ */ jsxs16("svg", { className: "fds-search__icon", viewBox: "0 0 24 24", width: "20", height: "20", fill: "none", "aria-hidden": "true", children: [
1181
+ /* @__PURE__ */ jsxs16("svg", { className: "fds-search__icon", viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", children: [
1182
1182
  /* @__PURE__ */ jsx18("circle", { cx: "11", cy: "11", r: "8", stroke: "currentColor", strokeWidth: "2" }),
1183
1183
  /* @__PURE__ */ jsx18("path", { d: "m21 21-4.3-4.3", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
1184
1184
  ] }),
package/dist/landing.css CHANGED
@@ -48,9 +48,14 @@
48
48
  --color-info: #1d4ed8;
49
49
  --color-info-strong: #2563eb;
50
50
  --color-info-surface: #eff6ff;
51
+ --color-info-border: #bfdbfe;
51
52
  --color-text-on-neutral: #404040;
52
53
  --color-surface-subtle: #fafafa;
53
54
  --color-accent-pressed: #9a3412;
55
+ --color-primary-pressed: #000000;
56
+ --color-error-pressed: #7f1d1d;
57
+ --color-error-border-hover: #fca5a5;
58
+ --color-error-bg-pressed: #fee2e2;
54
59
  --font-display: 'Rethink Sans', system-ui, -apple-system, sans-serif;
55
60
  --font-body: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
56
61
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
@@ -75,6 +80,11 @@
75
80
  --spacing-10: 40px;
76
81
  --spacing-12: 48px;
77
82
  --spacing-16: 64px;
83
+ --size-control-xs: 28px;
84
+ --size-control-sm: 32px;
85
+ --size-control-md: 36px;
86
+ --size-control-lg: 44px;
87
+ --size-nav: 56px;
78
88
  --font-size-body: 14px;
79
89
  --font-size-display-2xl: 70px;
80
90
  --font-size-display-xl: 60px;
@@ -86,7 +96,9 @@
86
96
  --font-size-text-lg: 18px;
87
97
  --font-size-text-md: 16px;
88
98
  --font-size-text-sm: 14px;
99
+ --font-size-text-compact: 13px;
89
100
  --font-size-text-xs: 12px;
101
+ --font-size-text-2xs: 11px;
90
102
  --font-size-label-sm: 14px;
91
103
  --font-size-label-xs: 12px;
92
104
  --line-height-body: 1.6;
@@ -100,7 +112,9 @@
100
112
  --line-height-text-lg: 26px;
101
113
  --line-height-text-md: 24px;
102
114
  --line-height-text-sm: 22px;
115
+ --line-height-text-compact: 20px;
103
116
  --line-height-text-xs: 18px;
117
+ --line-height-text-2xs: 16px;
104
118
  --line-height-label-sm: 22px;
105
119
  --line-height-label-xs: 18px;
106
120
  --duration-instant: 80ms;
package/dist/theme.css CHANGED
@@ -50,9 +50,14 @@
50
50
  --color-info: #1d4ed8;
51
51
  --color-info-strong: #2563eb;
52
52
  --color-info-surface: #eff6ff;
53
+ --color-info-border: #bfdbfe;
53
54
  --color-text-on-neutral: #404040;
54
55
  --color-surface-subtle: #fafafa;
55
56
  --color-accent-pressed: #9a3412;
57
+ --color-primary-pressed: #000000;
58
+ --color-error-pressed: #7f1d1d;
59
+ --color-error-border-hover: #fca5a5;
60
+ --color-error-bg-pressed: #fee2e2;
56
61
  --font-display: 'Rethink Sans', system-ui, -apple-system, sans-serif;
57
62
  --font-body: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
58
63
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
@@ -77,6 +82,11 @@
77
82
  --spacing-10: 40px;
78
83
  --spacing-12: 48px;
79
84
  --spacing-16: 64px;
85
+ --size-control-xs: 28px;
86
+ --size-control-sm: 32px;
87
+ --size-control-md: 36px;
88
+ --size-control-lg: 44px;
89
+ --size-nav: 56px;
80
90
  --font-size-body: 14px;
81
91
  --font-size-display-2xl: 70px;
82
92
  --font-size-display-xl: 60px;
@@ -88,7 +98,9 @@
88
98
  --font-size-text-lg: 18px;
89
99
  --font-size-text-md: 16px;
90
100
  --font-size-text-sm: 14px;
101
+ --font-size-text-compact: 13px;
91
102
  --font-size-text-xs: 12px;
103
+ --font-size-text-2xs: 11px;
92
104
  --font-size-label-sm: 14px;
93
105
  --font-size-label-xs: 12px;
94
106
  --line-height-body: 1.6;
@@ -102,7 +114,9 @@
102
114
  --line-height-text-lg: 26px;
103
115
  --line-height-text-md: 24px;
104
116
  --line-height-text-sm: 22px;
117
+ --line-height-text-compact: 20px;
105
118
  --line-height-text-xs: 18px;
119
+ --line-height-text-2xs: 16px;
106
120
  --line-height-label-sm: 22px;
107
121
  --line-height-label-xs: 18px;
108
122
  --duration-instant: 80ms;
package/dist/webapp.css CHANGED
@@ -48,9 +48,14 @@
48
48
  --color-info: #1d4ed8;
49
49
  --color-info-strong: #2563eb;
50
50
  --color-info-surface: #eff6ff;
51
+ --color-info-border: #bfdbfe;
51
52
  --color-text-on-neutral: #404040;
52
53
  --color-surface-subtle: #fafafa;
53
54
  --color-accent-pressed: #9a3412;
55
+ --color-primary-pressed: #000000;
56
+ --color-error-pressed: #7f1d1d;
57
+ --color-error-border-hover: #fca5a5;
58
+ --color-error-bg-pressed: #fee2e2;
54
59
  --font-display: 'Rethink Sans', system-ui, -apple-system, sans-serif;
55
60
  --font-body: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
56
61
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
@@ -75,6 +80,11 @@
75
80
  --spacing-10: 40px;
76
81
  --spacing-12: 48px;
77
82
  --spacing-16: 64px;
83
+ --size-control-xs: 28px;
84
+ --size-control-sm: 32px;
85
+ --size-control-md: 36px;
86
+ --size-control-lg: 44px;
87
+ --size-nav: 56px;
78
88
  --font-size-body: 14px;
79
89
  --font-size-display-2xl: 70px;
80
90
  --font-size-display-xl: 60px;
@@ -86,7 +96,9 @@
86
96
  --font-size-text-lg: 18px;
87
97
  --font-size-text-md: 16px;
88
98
  --font-size-text-sm: 14px;
99
+ --font-size-text-compact: 13px;
89
100
  --font-size-text-xs: 12px;
101
+ --font-size-text-2xs: 11px;
90
102
  --font-size-label-sm: 14px;
91
103
  --font-size-label-xs: 12px;
92
104
  --line-height-body: 1.6;
@@ -100,7 +112,9 @@
100
112
  --line-height-text-lg: 26px;
101
113
  --line-height-text-md: 24px;
102
114
  --line-height-text-sm: 22px;
115
+ --line-height-text-compact: 20px;
103
116
  --line-height-text-xs: 18px;
117
+ --line-height-text-2xs: 16px;
104
118
  --line-height-label-sm: 22px;
105
119
  --line-height-label-xs: 18px;
106
120
  --duration-instant: 80ms;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usefidel/design-system",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Fidel brand design tokens + React component library — DTCG token source of truth, generated per-surface CSS + Tailwind-v4 parser-compatibility output, and on-brand React components (Button, MismatchCard, DiffSection).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -264,6 +264,10 @@
264
264
  "$value": "#eff6ff",
265
265
  "$type": "color"
266
266
  },
267
+ "info-border": {
268
+ "$value": "#bfdbfe",
269
+ "$type": "color"
270
+ },
267
271
  "text-on-neutral": {
268
272
  "$value": "#404040",
269
273
  "$type": "color"
@@ -275,6 +279,22 @@
275
279
  "accent-pressed": {
276
280
  "$value": "#9a3412",
277
281
  "$type": "color"
282
+ },
283
+ "primary-pressed": {
284
+ "$value": "#000000",
285
+ "$type": "color"
286
+ },
287
+ "error-pressed": {
288
+ "$value": "#7f1d1d",
289
+ "$type": "color"
290
+ },
291
+ "error-border-hover": {
292
+ "$value": "#fca5a5",
293
+ "$type": "color"
294
+ },
295
+ "error-bg-pressed": {
296
+ "$value": "#fee2e2",
297
+ "$type": "color"
278
298
  }
279
299
  },
280
300
  "font": {
@@ -387,6 +407,28 @@
387
407
  "$type": "dimension"
388
408
  }
389
409
  },
410
+ "size": {
411
+ "control-xs": {
412
+ "$value": "28px",
413
+ "$type": "dimension"
414
+ },
415
+ "control-sm": {
416
+ "$value": "32px",
417
+ "$type": "dimension"
418
+ },
419
+ "control-md": {
420
+ "$value": "36px",
421
+ "$type": "dimension"
422
+ },
423
+ "control-lg": {
424
+ "$value": "44px",
425
+ "$type": "dimension"
426
+ },
427
+ "nav": {
428
+ "$value": "56px",
429
+ "$type": "dimension"
430
+ }
431
+ },
390
432
  "fontSize": {
391
433
  "body": {
392
434
  "$value": "14px",
@@ -440,10 +482,18 @@
440
482
  "$value": "14px",
441
483
  "$type": "dimension"
442
484
  },
485
+ "text-compact": {
486
+ "$value": "13px",
487
+ "$type": "dimension"
488
+ },
443
489
  "text-xs": {
444
490
  "$value": "12px",
445
491
  "$type": "dimension"
446
492
  },
493
+ "text-2xs": {
494
+ "$value": "11px",
495
+ "$type": "dimension"
496
+ },
447
497
  "label-sm": {
448
498
  "$value": "14px",
449
499
  "$type": "dimension"
@@ -506,10 +556,18 @@
506
556
  "$value": "22px",
507
557
  "$type": "dimension"
508
558
  },
559
+ "text-compact": {
560
+ "$value": "20px",
561
+ "$type": "dimension"
562
+ },
509
563
  "text-xs": {
510
564
  "$value": "18px",
511
565
  "$type": "dimension"
512
566
  },
567
+ "text-2xs": {
568
+ "$value": "16px",
569
+ "$type": "dimension"
570
+ },
513
571
  "label-sm": {
514
572
  "$value": "22px",
515
573
  "$type": "dimension"