@efolusi/meridian 1.21.6 → 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 +1 -1
- package/ai/ToolCall.d.ts +3 -3
- package/components.css +1 -1
- package/files/FileDrop.d.ts +1 -1
- package/forms/IconButton.d.ts +1 -1
- package/forms/NumberInput.d.ts +4 -4
- package/forms/Textarea.d.ts +1 -1
- package/package.json +1 -1
- package/styles.css +1 -0
- package/tailwind.preset.cjs +1 -0
- package/tokens/layers.css +6 -0
- package/tokens/spacing.css +13 -1
- package/tokens.json +14 -4
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
|
|
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
|
|
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
|
|
14
|
+
/** Approve action, rendered when status is 'approval' */
|
|
15
15
|
onApprove?: () => void;
|
|
16
|
-
/** Reject action
|
|
16
|
+
/** Reject action, rendered when status is 'approval' */
|
|
17
17
|
onReject?: () => void;
|
|
18
18
|
/** @default 'Approve' */
|
|
19
19
|
approveLabel?: string;
|
package/components.css
CHANGED
|
@@ -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-
|
|
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)}
|
package/files/FileDrop.d.ts
CHANGED
|
@@ -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
|
|
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/IconButton.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
/** Accessible label (required; rendered as aria-label + title) */
|
|
5
5
|
label: string;
|
|
6
6
|
/** @default 'quiet' */
|
|
7
7
|
variant?: 'quiet' | 'outline' | 'solid';
|
package/forms/NumberInput.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
package/forms/Textarea.d.ts
CHANGED
|
@@ -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
|
|
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.
|
|
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";
|
package/tailwind.preset.cjs
CHANGED
|
@@ -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;
|
package/tokens/spacing.css
CHANGED
|
@@ -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-
|
|
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
|
-
"
|
|
587
|
+
"xs": {
|
|
588
588
|
"$value": "4px",
|
|
589
589
|
"$type": "dimension"
|
|
590
590
|
},
|
|
591
|
-
"
|
|
591
|
+
"sm": {
|
|
592
592
|
"$value": "8px",
|
|
593
593
|
"$type": "dimension"
|
|
594
594
|
},
|
|
595
|
-
"
|
|
595
|
+
"md": {
|
|
596
596
|
"$value": "12px",
|
|
597
597
|
"$type": "dimension"
|
|
598
598
|
},
|
|
599
|
-
"
|
|
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",
|