@efolusi/meridian 1.21.5 → 1.21.7

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/ai/AgentRun.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export interface AgentRunStep {
2
2
  id?: string;
3
3
  title: React.ReactNode;
4
- /** Supporting line — text or nodes */
4
+ /** Supporting line: text or nodes */
5
5
  detail?: React.ReactNode;
6
6
  /** Collapsible panel (ToolCall, Diff…) behind a "Show detail" toggle */
7
7
  children?: React.ReactNode;
package/ai/ToolCall.d.ts CHANGED
@@ -3,7 +3,7 @@ export interface ToolCallProps {
3
3
  name: string;
4
4
  /** @default 'running' */
5
5
  status?: 'pending' | 'approval' | 'running' | 'success' | 'error';
6
- /** Input args — object renders a key/value grid, string renders raw */
6
+ /** Input args: an object renders a key/value grid, a string renders raw */
7
7
  args?: object | string;
8
8
  /** Result body (also accepts children) */
9
9
  result?: React.ReactNode;
@@ -11,9 +11,9 @@ export interface ToolCallProps {
11
11
  error?: React.ReactNode;
12
12
  /** Pulses the last arg row while args stream in */
13
13
  streaming?: boolean;
14
- /** Approve action — rendered when status is 'approval' */
14
+ /** Approve action, rendered when status is 'approval' */
15
15
  onApprove?: () => void;
16
- /** Reject action — rendered when status is 'approval' */
16
+ /** Reject action, rendered when status is 'approval' */
17
17
  onReject?: () => void;
18
18
  /** @default 'Approve' */
19
19
  approveLabel?: string;
package/components.css CHANGED
@@ -1054,8 +1054,8 @@ a.ef-sourcecard:focus-visible{outline:none;box-shadow:var(--focus-ring)}
1054
1054
  .ef-btn{line-height:var(--leading-normal)}
1055
1055
  .ef-btn:hover,.ef-btn:focus,.ef-btn:visited{text-decoration:none}
1056
1056
  .ef-btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}
1057
- .ef-btn:active:not(:disabled){transform:scale(.985)}
1058
- .ef-btn:disabled{opacity:.45;cursor:not-allowed}
1057
+ .ef-btn:active{transform:scale(.985)}
1058
+ .ef-btn:is(:disabled,[aria-disabled="true"],[data-disabled]){opacity:.45;cursor:not-allowed;pointer-events:none}
1059
1059
  .ef-btn--sm{height:var(--control-h-sm);padding:0 10px;font-size:var(--text-sm)}
1060
1060
  .ef-btn--md{height:var(--control-h-md);padding:0 14px;font-size:var(--text-md)}
1061
1061
  .ef-btn--lg{height:var(--control-h-lg);padding:0 20px;font-size:var(--text-lg)}
@@ -1065,22 +1065,22 @@ a.ef-sourcecard:focus-visible{outline:none;box-shadow:var(--focus-ring)}
1065
1065
  .ef-btn--icon-sm{width:var(--control-h-sm);height:var(--control-h-sm);padding:0}
1066
1066
  .ef-btn--icon-lg{width:var(--control-h-lg);height:var(--control-h-lg);padding:0}
1067
1067
  .ef-btn--primary{background:var(--accent);color:var(--accent-contrast)}
1068
- .ef-btn--primary:hover:not(:disabled){background:var(--accent-hover)}
1069
- .ef-btn--primary:active:not(:disabled){background:var(--accent-active)}
1068
+ .ef-btn--primary:hover{background:var(--accent-hover)}
1069
+ .ef-btn--primary:active{background:var(--accent-active)}
1070
1070
  .ef-btn--secondary{background:transparent;color:var(--text-primary);border-color:var(--border-strong)}
1071
- .ef-btn--secondary:hover:not(:disabled){background:var(--surface-sunken)}
1071
+ .ef-btn--secondary:hover{background:var(--surface-sunken)}
1072
1072
  .ef-btn--ghost{background:transparent;color:var(--text-secondary)}
1073
- .ef-btn--ghost:hover:not(:disabled){background:var(--surface-sunken);color:var(--text-primary)}
1073
+ .ef-btn--ghost:hover{background:var(--surface-sunken);color:var(--text-primary)}
1074
1074
  .ef-btn--danger{background:var(--danger-600);color:var(--danger-contrast)}
1075
- .ef-btn--danger:hover:not(:disabled){background:var(--danger-700)}
1075
+ .ef-btn--danger:hover{background:var(--danger-700)}
1076
1076
  .ef-btn--brand{background:var(--brand-700);color:var(--text-on-brand)}
1077
- .ef-btn--brand:hover:not(:disabled){background:var(--brand-800)}
1077
+ .ef-btn--brand:hover{background:var(--brand-800)}
1078
1078
  .ef-btn--outline{background:transparent;color:var(--text-primary);border-color:var(--border-strong)}
1079
- .ef-btn--outline:hover:not(:disabled){background:var(--surface-sunken)}
1079
+ .ef-btn--outline:hover{background:var(--surface-sunken)}
1080
1080
  .ef-btn--destructive{background:var(--danger-600);color:var(--danger-contrast)}
1081
- .ef-btn--destructive:hover:not(:disabled){background:var(--danger-700)}
1081
+ .ef-btn--destructive:hover{background:var(--danger-700)}
1082
1082
  .ef-btn--link{height:auto;padding:0;background:transparent;color:var(--text-link);text-underline-offset:4px}
1083
- .ef-btn--link:hover:not(:disabled){color:var(--text-link-hover);text-decoration:none}
1083
+ .ef-btn--link:hover{color:var(--text-link-hover);text-decoration:none}
1084
1084
  @keyframes ef-spin{to{transform:rotate(360deg)}}
1085
1085
  .ef-btn__spin{display:inline-flex;animation:ef-spin .7s linear infinite}
1086
1086
  /* components/forms/ButtonGroup.jsx */
@@ -1113,7 +1113,7 @@ a.ef-sourcecard:focus-visible{outline:none;box-shadow:var(--focus-ring)}
1113
1113
  .ef-check{display:inline-flex;align-items:flex-start;gap:10px;user-select:none}
1114
1114
  .ef-check--disabled{opacity:.45;cursor:not-allowed}
1115
1115
  .ef-check__input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
1116
- .ef-check__box{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;margin-top:1px;padding:0;border:1.5px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-card);color:var(--accent-contrast);cursor:pointer;transition:background var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out),transform var(--dur-med) var(--ease-spring)}
1116
+ .ef-check__box{display:inline-flex;align-items:center;justify-content:center;flex:none;width:18px;height:18px;margin-top:1px;padding:0;border:1.5px solid var(--border-strong);border-radius:var(--radius-xs);background:var(--surface-card);color:var(--accent-contrast);cursor:pointer;transition:background var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out),transform var(--dur-med) var(--ease-spring)}
1117
1117
  .ef-check__box svg{opacity:0;transform:scale(.5);transition:opacity var(--dur-fast) var(--ease-out),transform var(--dur-med) var(--ease-spring)}
1118
1118
  .ef-check__box[data-state="checked"],.ef-check__box[data-state="indeterminate"]{background:var(--accent);border-color:var(--accent)}
1119
1119
  .ef-check__box[data-state="checked"] svg,.ef-check__box[data-state="indeterminate"] svg{opacity:1;transform:scale(1)}
@@ -7,7 +7,7 @@ export interface FileDropProps {
7
7
  multiple?: boolean;
8
8
  /** Replaces "Drop files here or browse" */
9
9
  title?: React.ReactNode;
10
- /** Muted line, e.g. "PNG, MP4, PDF — up to 2 GB" */
10
+ /** Muted line, e.g. "PNG, MP4, PDF, up to 2 GB" */
11
11
  hint?: React.ReactNode;
12
12
  style?: React.CSSProperties;
13
13
  className?: string;
package/forms/Button.js CHANGED
@@ -111,12 +111,15 @@ export const Button = /*#__PURE__*/React.forwardRef(function Button({
111
111
  className
112
112
  }),
113
113
  disabled: disabled || loading,
114
+ "aria-busy": loading || undefined,
115
+ "data-loading": loading ? '' : undefined,
114
116
  style: {
115
117
  width: fullWidth ? '100%' : undefined,
116
118
  ...style
117
119
  }
118
120
  }, rest), loading ? /*#__PURE__*/React.createElement("span", {
119
- className: "ef-btn__spin"
121
+ className: "ef-btn__spin",
122
+ "aria-hidden": "true"
120
123
  }, /*#__PURE__*/React.createElement(Icon, {
121
124
  name: "loader-circle",
122
125
  size: isz
@@ -1,7 +1,7 @@
1
1
  export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2
2
  /** Lucide icon name */
3
3
  icon: string;
4
- /** Accessible label (required — rendered as aria-label + title) */
4
+ /** Accessible label (required; rendered as aria-label + title) */
5
5
  label: string;
6
6
  /** @default 'quiet' */
7
7
  variant?: 'quiet' | 'outline' | 'solid';
@@ -3,7 +3,7 @@ export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
3
3
  label?: string;
4
4
  /** Muted helper text below */
5
5
  hint?: string;
6
- /** Error message below — also sets invalid styling */
6
+ /** Error message below; also sets invalid styling. */
7
7
  error?: string;
8
8
  /** Invalid styling with no message. @default false */
9
9
  invalid?: boolean;
@@ -24,7 +24,7 @@ export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
24
24
  placeholder?: string;
25
25
  /**
26
26
  * BCP 47 locale (e.g. 'id', 'en-US') for locale-aware display and parsing via
27
- * Intl.NumberFormat — 'id' groups with '.' and decimals with ',', 'en' the
27
+ * Intl.NumberFormat: 'id' groups with '.' and decimals with ',', 'en' the
28
28
  * reverse. Ignored when both `format` and `parse` are given. Omit for plain,
29
29
  * ungrouped formatting (the default).
30
30
  */
@@ -37,8 +37,8 @@ export interface NumberInputProps extends Omit<React.InputHTMLAttributes<HTMLInp
37
37
  className?: string;
38
38
  }
39
39
  /**
40
- * Numeric field with stepper buttons. A text input with inputmode="decimal" —
41
- * not type=number — so typing stays free-form; the value commits on blur:
40
+ * Numeric field with stepper buttons. A text input with inputmode="decimal"
41
+ * (not type=number), so typing stays free-form; the value commits on blur:
42
42
  * parse, clamp to min/max, snap to the step grid. Empty commits null.
43
43
  * ArrowUp/Down step, Shift+Arrow steps by 10× step, Home/End jump to finite
44
44
  * rails. Steppers disable at the rails.
@@ -1,7 +1,7 @@
1
1
  export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
2
2
  label?: string;
3
3
  hint?: string;
4
- /** Error message below — also sets invalid styling */
4
+ /** Error message below; also sets invalid styling. */
5
5
  error?: string;
6
6
  invalid?: boolean;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@efolusi/meridian",
3
- "version": "1.21.5",
3
+ "version": "1.21.7",
4
4
  "description": "A general-purpose open-source design system by Efolusi: accessible React components, design tokens, blocks and example apps.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://meridian.efolusi.com",
package/styles.css CHANGED
@@ -2,6 +2,7 @@
2
2
  valid relative URL to a browser, so the CDN path never noticed, but css-loader
3
3
  and other bundler CSS pipelines read a non-relative specifier as a module
4
4
  request into node_modules and fail to resolve it. "./" works everywhere. */
5
+ @import "./tokens/layers.css";
5
6
  @import "./tokens/fonts.css";
6
7
  @import "./tokens/colors.css";
7
8
  @import "./tokens/typography.css";
@@ -108,6 +108,7 @@ module.exports = { theme: { extend: {
108
108
  "32": "var(--space-32)"
109
109
  },
110
110
  "borderRadius": {
111
+ "xs": "var(--radius-xs)",
111
112
  "sm": "var(--radius-sm)",
112
113
  "md": "var(--radius-md)",
113
114
  "lg": "var(--radius-lg)",
package/tokens/base.css CHANGED
@@ -5,7 +5,7 @@ p{margin:0}
5
5
  Zero specificity also lets .ef-btn keep its foreground within this layer. */
6
6
  @layer meridian{
7
7
  :where(a){color:var(--text-link);text-decoration:none;transition:color var(--dur-fast) var(--ease-out)}
8
- :where(a:hover){color:var(--accent-hover);text-decoration:none}
8
+ :where(a:hover){color:var(--text-link-hover);text-decoration:none}
9
9
  :where(a:focus-visible){outline:none;box-shadow:var(--focus-ring);border-radius:var(--radius-sm)}
10
10
  }
11
11
  code,pre,kbd{font-family:var(--font-mono)}
@@ -0,0 +1,6 @@
1
+ /* Meridian's framework integration contract.
2
+ Load styles.css before Tailwind so this declaration is the first occurrence
3
+ of these layer names. Preflight/base stays below Meridian components, while
4
+ component and utility layers stay available above Meridian for deliberate
5
+ product composition. Unlayered product CSS still wins by CSS definition. */
6
+ @layer theme,base,tw-preflight,meridian,components,utilities;
@@ -1,8 +1,9 @@
1
1
  :root{
2
2
  --space-0:0;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-20:80px;--space-24:96px;--space-32:128px;
3
- --radius-sm:4px;--radius-md:8px;--radius-lg:12px;--radius-xl:16px;--radius-full:999px;
3
+ --radius-xs:4px;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:24px;--radius-full:999px;
4
4
  --container-max:1200px;--container-text:720px;
5
5
  --control-h-sm:28px;--control-h-md:36px;--control-h-lg:44px;
6
+ --tap-min:44px;
6
7
  --table-pad-y:12px;--table-pad-x:16px;
7
8
  }
8
9
  /* Compact density — data-heavy B2B views */
@@ -10,3 +11,14 @@
10
11
  --control-h-sm:24px;--control-h-md:30px;--control-h-lg:38px;
11
12
  --table-pad-y:7px;--table-pad-x:12px;
12
13
  }
14
+
15
+ /* Touch pointers: the default control height (36px) is below the 44px minimum
16
+ touch target, so raise sm and md to --tap-min there. Compact density keeps
17
+ its own scale: it exists for mouse-driven data views, and a coarse pointer
18
+ on a compact view still needs the larger target, so it is raised too.
19
+ Fine pointers keep the tighter scale — desktop layout does not move. */
20
+ @media (pointer: coarse) {
21
+ :root, [data-density="compact"] {
22
+ --control-h-sm:var(--tap-min);--control-h-md:var(--tap-min);--control-h-lg:var(--tap-min);
23
+ }
24
+ }
package/tokens.json CHANGED
@@ -584,22 +584,26 @@
584
584
  }
585
585
  },
586
586
  "radius": {
587
- "sm": {
587
+ "xs": {
588
588
  "$value": "4px",
589
589
  "$type": "dimension"
590
590
  },
591
- "md": {
591
+ "sm": {
592
592
  "$value": "8px",
593
593
  "$type": "dimension"
594
594
  },
595
- "lg": {
595
+ "md": {
596
596
  "$value": "12px",
597
597
  "$type": "dimension"
598
598
  },
599
- "xl": {
599
+ "lg": {
600
600
  "$value": "16px",
601
601
  "$type": "dimension"
602
602
  },
603
+ "xl": {
604
+ "$value": "24px",
605
+ "$type": "dimension"
606
+ },
603
607
  "full": {
604
608
  "$value": "999px",
605
609
  "$type": "dimension"
@@ -629,6 +633,12 @@
629
633
  "$type": "dimension"
630
634
  }
631
635
  },
636
+ "tap": {
637
+ "min": {
638
+ "$value": "44px",
639
+ "$type": "other"
640
+ }
641
+ },
632
642
  "table": {
633
643
  "pad-y": {
634
644
  "$value": "12px",