@efolusi/meridian 1.5.2 → 1.6.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/THIRD_PARTY_NOTICES.md +1 -1
- package/ai/AgentRun.js +0 -27
- package/ai/ChatMessage.js +0 -16
- package/ai/Citation.js +0 -28
- package/ai/Confirmation.js +0 -23
- package/ai/Conversation.js +0 -11
- package/ai/DocumentCard.js +0 -19
- package/ai/FeedbackBar.js +0 -11
- package/ai/GeneratedImage.js +0 -30
- package/ai/ModelSelector.js +0 -21
- package/ai/Player.js +1 -20
- package/ai/PromptComposer.js +0 -15
- package/ai/PromptSteps.js +0 -18
- package/ai/Reasoning.js +0 -13
- package/ai/RichComposer.js +0 -22
- package/ai/Sandbox.js +0 -27
- package/ai/SelectionQuote.js +0 -10
- package/ai/SourceCard.js +0 -14
- package/ai/Suggestions.js +0 -9
- package/ai/Task.js +0 -14
- package/ai/Todo.js +0 -24
- package/ai/ToolCall.js +0 -41
- package/ai/Transcript.js +0 -23
- package/ai/UsageMeter.js +1 -14
- package/ai/WebPreview.js +0 -26
- package/assets/fonts/BricolageGrotesque-Variable.woff2 +0 -0
- package/assets/fonts/Figtree-Italic-Variable.woff2 +0 -0
- package/assets/fonts/Figtree-Variable.woff2 +0 -0
- package/assets/fonts/JetBrainsMono-Italic-Variable.woff2 +0 -0
- package/assets/fonts/JetBrainsMono-Variable.woff2 +0 -0
- package/code/CodeBlock.js +0 -15
- package/code/Console.js +0 -22
- package/code/CopyField.js +0 -8
- package/code/Diff.js +0 -28
- package/code/EnvList.js +0 -19
- package/code/Exception.js +0 -28
- package/code/Terminal.js +0 -18
- package/components.css +1233 -0
- package/data/BarChart.js +1 -9
- package/data/DonutChart.js +0 -9
- package/data/EmptyState.js +0 -10
- package/data/KeyValueList.js +0 -10
- package/data/LineChart.js +1 -6
- package/data/Skeleton.js +0 -7
- package/data/Stat.js +0 -12
- package/data/StatusDot.d.ts +3 -1
- package/data/StatusDot.js +20 -20
- package/data/Table.js +0 -25
- package/dates/Calendar.js +0 -17
- package/dates/DatePicker.js +0 -12
- package/display/Accordion.js +0 -16
- package/display/Avatar.js +0 -10
- package/display/Badge.js +0 -16
- package/display/Card.js +0 -13
- package/display/Carousel.js +0 -19
- package/display/Collapsible.js +0 -10
- package/display/Divider.js +0 -8
- package/display/Kbd.js +0 -5
- package/display/Link.js +0 -10
- package/display/ListItem.js +0 -12
- package/display/Resizable.js +1 -15
- package/display/ScrollArea.js +0 -9
- package/display/Tag.js +0 -10
- package/display/Toolbar.js +0 -12
- package/display/TreeList.js +0 -15
- package/feedback/Alert.js +0 -14
- package/feedback/Banner.js +0 -13
- package/feedback/Dialog.js +4 -15
- package/feedback/Loader.js +0 -14
- package/feedback/Progress.js +0 -12
- package/feedback/Spinner.js +0 -6
- package/feedback/Toast.js +0 -26
- package/feedback/Tooltip.js +0 -9
- package/files/FileDrop.js +0 -12
- package/files/FileTile.js +0 -9
- package/files/FileTypeIcon.js +0 -6
- package/finance/PaymentCard.js +0 -13
- package/forms/Button.js +0 -23
- package/forms/ButtonGroup.js +0 -8
- package/forms/ButtonTile.js +0 -17
- package/forms/Checkbox.js +0 -15
- package/forms/Combobox.js +15 -17
- package/forms/DigitEntry.js +0 -10
- package/forms/FormField.js +0 -10
- package/forms/IconButton.js +0 -16
- package/forms/Input.js +0 -23
- package/forms/InputGroup.js +0 -20
- package/forms/Label.js +0 -7
- package/forms/Radio.js +0 -15
- package/forms/Select.js +0 -17
- package/forms/Slider.js +0 -18
- package/forms/Switch.js +0 -16
- package/forms/Textarea.js +0 -15
- package/forms/Toggle.js +0 -12
- package/navigation/Breadcrumbs.js +0 -9
- package/navigation/Menubar.js +0 -19
- package/navigation/PageControl.js +0 -9
- package/navigation/Pagination.js +0 -11
- package/navigation/SegmentedControl.js +0 -10
- package/navigation/SideNav.js +0 -12
- package/navigation/Steps.js +0 -23
- package/navigation/Tabs.js +1 -12
- package/navigation/TopNav.js +0 -7
- package/overlay/CommandPalette.js +4 -21
- package/overlay/ContextMenu.js +0 -14
- package/overlay/Drawer.js +6 -18
- package/overlay/HoverCard.js +0 -11
- package/overlay/Menu.js +1 -18
- package/overlay/Popover.js +1 -9
- package/overlay/Portal.js +0 -6
- package/package.json +2 -1
- package/styles.css +1 -0
- package/tokens/fonts.css +5 -5
- package/assets/fonts/BricolageGrotesque-Variable.ttf +0 -0
- package/assets/fonts/Figtree-Italic-Variable.ttf +0 -0
- package/assets/fonts/Figtree-Variable.ttf +0 -0
- package/assets/fonts/JetBrainsMono-Italic-Variable.ttf +0 -0
- package/assets/fonts/JetBrainsMono-Variable.ttf +0 -0
package/navigation/Steps.js
CHANGED
|
@@ -2,28 +2,6 @@
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Icon } from "../icons/Icon.js";
|
|
5
|
-
import { injectEfCss } from "../forms/Button.js";
|
|
6
|
-
const CSS = `
|
|
7
|
-
.ef-steps{display:flex;flex-direction:column;gap:0}
|
|
8
|
-
.ef-steps__item{display:flex;gap:12px}
|
|
9
|
-
.ef-steps__rail{display:flex;flex-direction:column;align-items:center;flex:none}
|
|
10
|
-
.ef-steps__marker{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:var(--radius-full);border:1.5px solid var(--sand-300);background:var(--surface-card);color:var(--text-muted);font-size:11px;font-weight:var(--weight-semibold);font-family:var(--font-mono);flex:none;transition:background var(--dur-fast) var(--ease-out),border-color var(--dur-fast) var(--ease-out)}
|
|
11
|
-
.ef-steps__item--done .ef-steps__marker{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}
|
|
12
|
-
.ef-steps__item--active .ef-steps__marker{border-color:var(--accent);color:var(--text-primary)}
|
|
13
|
-
.ef-steps__line{width:1.5px;flex:1;min-height:16px;background:var(--sand-200);margin:3px 0}
|
|
14
|
-
.ef-steps__item--done .ef-steps__line{background:var(--accent)}
|
|
15
|
-
.ef-steps__content{padding-bottom:20px;min-width:0}
|
|
16
|
-
.ef-steps__item:last-child .ef-steps__content{padding-bottom:0}
|
|
17
|
-
.ef-steps__title{font-size:var(--text-md);font-weight:var(--weight-semibold);color:var(--text-muted);line-height:24px}
|
|
18
|
-
.ef-steps__item--active .ef-steps__title,.ef-steps__item--done .ef-steps__title{color:var(--text-primary)}
|
|
19
|
-
.ef-steps__desc{font-size:var(--text-sm);color:var(--text-muted);margin-top:2px;line-height:1.5}
|
|
20
|
-
.ef-steps--h{flex-direction:row;gap:8px}
|
|
21
|
-
.ef-steps--h .ef-steps__item{flex:1;flex-direction:column;gap:8px}
|
|
22
|
-
.ef-steps--h .ef-steps__rail{flex-direction:row;width:100%}
|
|
23
|
-
.ef-steps--h .ef-steps__line{width:auto;flex:1;height:1.5px;min-height:0;margin:0 6px;align-self:center}
|
|
24
|
-
.ef-steps--h .ef-steps__item:last-child .ef-steps__line{display:none}
|
|
25
|
-
.ef-steps--h .ef-steps__content{padding-bottom:0}
|
|
26
|
-
`;
|
|
27
5
|
export function Steps({
|
|
28
6
|
items,
|
|
29
7
|
current = 0,
|
|
@@ -32,7 +10,6 @@ export function Steps({
|
|
|
32
10
|
className,
|
|
33
11
|
...rest
|
|
34
12
|
}) {
|
|
35
|
-
injectEfCss('ef-css-steps', CSS);
|
|
36
13
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
37
14
|
className: `ef-steps${orientation === 'horizontal' ? ' ef-steps--h' : ''}${className ? ' ' + className : ''}`,
|
|
38
15
|
style: style
|
package/navigation/Tabs.js
CHANGED
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Icon } from "../icons/Icon.js";
|
|
5
|
-
import {
|
|
6
|
-
const CSS = `
|
|
7
|
-
.ef-tabs{position:relative;display:flex;gap:4px;border-bottom:1px solid var(--border-default)}
|
|
8
|
-
.ef-tabs__tab{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border:none;background:transparent;color:var(--text-secondary);font-family:var(--font-sans);font-size:var(--text-md);font-weight:var(--weight-medium);cursor:pointer;border-radius:var(--radius-sm) var(--radius-sm) 0 0;transition:color var(--dur-fast) var(--ease-out),background var(--dur-fast) var(--ease-out)}
|
|
9
|
-
.ef-tabs__tab:hover{color:var(--text-primary);background:var(--surface-sunken)}
|
|
10
|
-
.ef-tabs__tab:focus-visible{outline:none;box-shadow:var(--focus-ring)}
|
|
11
|
-
.ef-tabs__tab--active{color:var(--text-primary);font-weight:var(--weight-semibold)}
|
|
12
|
-
.ef-tabs__ink{position:absolute;bottom:-1px;height:2px;background:var(--accent);border-radius:2px;transition:left var(--dur-med) var(--ease-spring),width var(--dur-med) var(--ease-spring)}
|
|
13
|
-
.ef-tabs__count{font-size:var(--text-xs);font-weight:var(--weight-medium);color:var(--text-muted)}
|
|
14
|
-
.ef-tabs__tab--active .ef-tabs__count{color:var(--text-primary)}
|
|
15
|
-
`;
|
|
5
|
+
import { mergeRefs } from "../forms/Button.js";
|
|
16
6
|
export const Tabs = /*#__PURE__*/React.forwardRef(function Tabs({
|
|
17
7
|
items,
|
|
18
8
|
value,
|
|
@@ -21,7 +11,6 @@ export const Tabs = /*#__PURE__*/React.forwardRef(function Tabs({
|
|
|
21
11
|
className,
|
|
22
12
|
...rest
|
|
23
13
|
}, fRef) {
|
|
24
|
-
injectEfCss('ef-css-tabs', CSS);
|
|
25
14
|
const ref = React.useRef(null);
|
|
26
15
|
const [ink, setInk] = React.useState({
|
|
27
16
|
left: 0,
|
package/navigation/TopNav.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { injectEfCss } from "../forms/Button.js";
|
|
5
|
-
const CSS = `
|
|
6
|
-
.ef-topnav{display:flex;align-items:center;gap:12px;height:60px;padding:0 24px;border-bottom:1px solid var(--border-default);background:color-mix(in srgb,var(--surface-page) 85%,transparent);backdrop-filter:blur(12px);position:sticky;top:0;z-index:20}
|
|
7
|
-
.ef-topnav__title{font-size:18px;font-weight:700;font-family:var(--font-display);letter-spacing:-0.02em;color:var(--text-primary);margin:0}
|
|
8
|
-
.ef-topnav__spacer{margin-left:auto}
|
|
9
|
-
`;
|
|
10
4
|
export function TopNav({
|
|
11
5
|
title,
|
|
12
6
|
leading,
|
|
@@ -15,7 +9,6 @@ export function TopNav({
|
|
|
15
9
|
className,
|
|
16
10
|
...rest
|
|
17
11
|
}) {
|
|
18
|
-
injectEfCss('ef-css-topnav', CSS);
|
|
19
12
|
return /*#__PURE__*/React.createElement("header", _extends({}, rest, {
|
|
20
13
|
className: `ef-topnav${className ? ' ' + className : ''}`,
|
|
21
14
|
style: style
|
|
@@ -3,34 +3,16 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Icon } from "../icons/Icon.js";
|
|
5
5
|
import { Kbd } from "../display/Kbd.js";
|
|
6
|
-
import { injectEfCss } from "../forms/Button.js";
|
|
7
|
-
const CSS = `
|
|
8
|
-
.ef-cmdk__overlay{position:fixed;inset:0;background:var(--overlay-scrim);display:flex;justify-content:center;align-items:flex-start;padding:100px 24px 24px;z-index:var(--z-modal);animation:ef-cmdk-fade var(--dur-fast) var(--ease-out)}
|
|
9
|
-
@keyframes ef-cmdk-fade{from{opacity:0}}
|
|
10
|
-
.ef-cmdk{width:100%;max-width:560px;background:var(--surface-card);border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-pop);overflow:hidden;animation:ef-cmdk-in var(--dur-med) var(--ease-out)}
|
|
11
|
-
@keyframes ef-cmdk-in{from{opacity:0;transform:translateY(-6px)}}
|
|
12
|
-
.ef-cmdk__inputrow{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border-default)}
|
|
13
|
-
.ef-cmdk__input{flex:1;border:none;outline:none;background:none;font-family:var(--font-sans);font-size:var(--text-lg);color:var(--text-primary)}
|
|
14
|
-
.ef-cmdk__input::placeholder{color:var(--text-muted)}
|
|
15
|
-
.ef-cmdk__list{max-height:320px;overflow-y:auto;padding:6px}
|
|
16
|
-
.ef-cmdk__group{font-size:10px;font-weight:var(--weight-semibold);letter-spacing:0.06em;text-transform:uppercase;color:var(--text-muted);padding:10px 10px 4px}
|
|
17
|
-
.ef-cmdk__item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;text-align:left;font-family:var(--font-sans);font-size:var(--text-md);color:var(--text-primary)}
|
|
18
|
-
.ef-cmdk__item--active{background:var(--surface-sunken)}
|
|
19
|
-
.ef-cmdk__item__icon{color:var(--text-muted);display:inline-flex}
|
|
20
|
-
.ef-cmdk__item__hint{margin-left:auto;font-size:var(--text-xs);color:var(--text-muted)}
|
|
21
|
-
.ef-cmdk__empty{padding:32px;text-align:center;color:var(--text-muted);font-size:var(--text-sm)}
|
|
22
|
-
.ef-cmdk__foot{display:flex;align-items:center;gap:14px;padding:9px 14px;border-top:1px solid var(--border-default);background:var(--surface-subtle);font-size:var(--text-xs);color:var(--text-muted)}
|
|
23
|
-
.ef-cmdk__foot span{display:inline-flex;align-items:center;gap:5px}
|
|
24
|
-
`;
|
|
25
6
|
export function CommandPalette({
|
|
26
7
|
open,
|
|
27
8
|
onClose,
|
|
28
9
|
groups,
|
|
29
10
|
onSelect,
|
|
30
11
|
placeholder = 'Type a command or search…',
|
|
12
|
+
style,
|
|
13
|
+
className,
|
|
31
14
|
...rest
|
|
32
15
|
}) {
|
|
33
|
-
injectEfCss('ef-css-cmdk', CSS);
|
|
34
16
|
const [q, setQ] = React.useState('');
|
|
35
17
|
const [idx, setIdx] = React.useState(0);
|
|
36
18
|
const listId = React.useId();
|
|
@@ -94,7 +76,8 @@ export function CommandPalette({
|
|
|
94
76
|
}, [open, idx, listId]);
|
|
95
77
|
if (!open) return null;
|
|
96
78
|
return /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
97
|
-
className:
|
|
79
|
+
className: `ef-cmdk__overlay${className ? ' ' + className : ''}`,
|
|
80
|
+
style: style,
|
|
98
81
|
onMouseDown: e => {
|
|
99
82
|
if (e.target === e.currentTarget && onClose) onClose();
|
|
100
83
|
}
|
package/overlay/ContextMenu.js
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { injectEfCss } from "../forms/Button.js";
|
|
5
4
|
import { Portal } from "./Portal.js";
|
|
6
5
|
import { Icon } from "../icons/Icon.js";
|
|
7
|
-
const CSS = `
|
|
8
|
-
.ef-ctx__panel{position:fixed;min-width:190px;background:var(--surface-card);border:1px solid var(--border-strong);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:4px;z-index:var(--z-dropdown);animation:ef-ctx-in var(--dur-fast) var(--ease-out)}
|
|
9
|
-
@keyframes ef-ctx-in{from{opacity:0;transform:scale(.98)}}
|
|
10
|
-
.ef-ctx__item{display:flex;align-items:center;gap:9px;width:100%;height:32px;padding:0 10px;border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;text-align:left;font-family:var(--font-sans);font-size:var(--text-sm);color:var(--text-primary);transition:background var(--dur-fast) var(--ease-out)}
|
|
11
|
-
.ef-ctx__item:hover:not(:disabled){background:var(--surface-sunken)}
|
|
12
|
-
.ef-ctx__item:disabled{opacity:.4;cursor:not-allowed}
|
|
13
|
-
.ef-ctx__item--danger{color:var(--danger-600)}
|
|
14
|
-
.ef-ctx__item__icon{color:var(--text-muted);display:inline-flex}
|
|
15
|
-
.ef-ctx__item--danger .ef-ctx__item__icon{color:var(--danger-600)}
|
|
16
|
-
.ef-ctx__sep{height:1px;background:var(--border-default);margin:4px 6px}
|
|
17
|
-
.ef-ctx__kbd{margin-left:auto;font-family:var(--font-mono);font-size:11px;color:var(--text-muted)}
|
|
18
|
-
`;
|
|
19
6
|
export function ContextMenu({
|
|
20
7
|
items,
|
|
21
8
|
onSelect,
|
|
@@ -24,7 +11,6 @@ export function ContextMenu({
|
|
|
24
11
|
className,
|
|
25
12
|
...rest
|
|
26
13
|
}) {
|
|
27
|
-
injectEfCss('ef-css-ctx', CSS);
|
|
28
14
|
const [pos, setPos] = React.useState(null);
|
|
29
15
|
const panelRef = React.useRef(null);
|
|
30
16
|
const focusItem = which => {
|
package/overlay/Drawer.js
CHANGED
|
@@ -2,21 +2,7 @@
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { IconButton } from "../forms/IconButton.js";
|
|
5
|
-
import {
|
|
6
|
-
const CSS = `
|
|
7
|
-
.ef-drawer__overlay{position:fixed;inset:0;background:var(--overlay-scrim);z-index:var(--z-overlay);animation:ef-fade-in var(--dur-med) var(--ease-out)}
|
|
8
|
-
@keyframes ef-fade-in{from{opacity:0}}
|
|
9
|
-
.ef-drawer{position:fixed;top:0;bottom:0;background:var(--surface-card);z-index:var(--z-modal);display:flex;flex-direction:column;box-shadow:var(--shadow-pop)}
|
|
10
|
-
.ef-drawer:focus{outline:none}
|
|
11
|
-
.ef-drawer--right{right:0;border-left:1px solid var(--border-default);animation:ef-drawer-r var(--dur-slow) var(--ease-out)}
|
|
12
|
-
.ef-drawer--left{left:0;border-right:1px solid var(--border-default);animation:ef-drawer-l var(--dur-slow) var(--ease-out)}
|
|
13
|
-
@keyframes ef-drawer-r{from{transform:translateX(24px);opacity:0}}
|
|
14
|
-
@keyframes ef-drawer-l{from{transform:translateX(-24px);opacity:0}}
|
|
15
|
-
.ef-drawer__head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border-default)}
|
|
16
|
-
.ef-drawer__title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:var(--weight-bold);letter-spacing:var(--tracking-tight);flex:1}
|
|
17
|
-
.ef-drawer__body{flex:1;overflow-y:auto;padding:20px}
|
|
18
|
-
.ef-drawer__foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--border-default);background:var(--surface-subtle)}
|
|
19
|
-
`;
|
|
5
|
+
import { mergeRefs } from "../forms/Button.js";
|
|
20
6
|
const FOCUSABLE = 'button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])';
|
|
21
7
|
export const Drawer = /*#__PURE__*/React.forwardRef(function Drawer({
|
|
22
8
|
open,
|
|
@@ -26,9 +12,10 @@ export const Drawer = /*#__PURE__*/React.forwardRef(function Drawer({
|
|
|
26
12
|
width = 400,
|
|
27
13
|
side = 'right',
|
|
28
14
|
children,
|
|
15
|
+
style,
|
|
16
|
+
className,
|
|
29
17
|
...rest
|
|
30
18
|
}, ref) {
|
|
31
|
-
injectEfCss('ef-css-drawer', CSS);
|
|
32
19
|
const panelRef = React.useRef(null);
|
|
33
20
|
const prevFocus = React.useRef(null);
|
|
34
21
|
const titleId = React.useId();
|
|
@@ -73,14 +60,15 @@ export const Drawer = /*#__PURE__*/React.forwardRef(function Drawer({
|
|
|
73
60
|
className: "ef-drawer__overlay",
|
|
74
61
|
onMouseDown: onClose
|
|
75
62
|
}), /*#__PURE__*/React.createElement("div", _extends({}, rest, {
|
|
76
|
-
className: `ef-drawer ef-drawer--${side}`,
|
|
63
|
+
className: `ef-drawer ef-drawer--${side}${className ? ' ' + className : ''}`,
|
|
77
64
|
role: "dialog",
|
|
78
65
|
"aria-modal": "true",
|
|
79
66
|
ref: mergeRefs(ref, panelRef),
|
|
80
67
|
tabIndex: -1,
|
|
81
68
|
"aria-labelledby": title ? titleId : undefined,
|
|
82
69
|
style: {
|
|
83
|
-
width
|
|
70
|
+
width,
|
|
71
|
+
...style
|
|
84
72
|
}
|
|
85
73
|
}), /*#__PURE__*/React.createElement("div", {
|
|
86
74
|
className: "ef-drawer__head"
|
package/overlay/HoverCard.js
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { injectEfCss } from "../forms/Button.js";
|
|
5
4
|
import { Portal, useAnchoredStyle } from "./Portal.js";
|
|
6
|
-
const CSS = `
|
|
7
|
-
.ef-hovercard{position:relative;display:inline-flex}
|
|
8
|
-
.ef-hovercard__trigger{display:inline-flex;border-radius:var(--radius-sm)}
|
|
9
|
-
.ef-hovercard__trigger:focus-visible{outline:none;box-shadow:var(--focus-ring)}
|
|
10
|
-
.ef-hovercard__panel{position:absolute;left:0;background:var(--surface-card);border:1px solid var(--border-strong);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:14px;z-index:var(--z-popover);animation:ef-hovercard-in var(--dur-med) var(--ease-out)}
|
|
11
|
-
.ef-hovercard__panel--bottom{top:calc(100% + 8px)}
|
|
12
|
-
.ef-hovercard__panel--top{bottom:calc(100% + 8px)}
|
|
13
|
-
@keyframes ef-hovercard-in{from{opacity:0;transform:translateY(2px)}}
|
|
14
|
-
`;
|
|
15
5
|
export function HoverCard({
|
|
16
6
|
trigger,
|
|
17
7
|
side = 'bottom',
|
|
@@ -23,7 +13,6 @@ export function HoverCard({
|
|
|
23
13
|
className,
|
|
24
14
|
...rest
|
|
25
15
|
}) {
|
|
26
|
-
injectEfCss('ef-css-hovercard', CSS);
|
|
27
16
|
const [open, setOpen] = React.useState(false);
|
|
28
17
|
const t = React.useRef(null);
|
|
29
18
|
const ref = React.useRef(null);
|
package/overlay/Menu.js
CHANGED
|
@@ -2,24 +2,8 @@
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Icon } from "../icons/Icon.js";
|
|
5
|
-
import {
|
|
5
|
+
import { mergeRefs } from "../forms/Button.js";
|
|
6
6
|
import { Portal, useAnchoredStyle } from "./Portal.js";
|
|
7
|
-
const CSS = `
|
|
8
|
-
.ef-menu{position:relative;display:inline-flex}
|
|
9
|
-
.ef-menu__panel{position:absolute;top:calc(100% + 6px);min-width:190px;background:var(--surface-card);border:1px solid var(--border-strong);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:4px;z-index:var(--z-dropdown);animation:ef-menu-in var(--dur-fast) var(--ease-out)}
|
|
10
|
-
.ef-menu__panel--left{left:0}
|
|
11
|
-
.ef-menu__panel--right{right:0}
|
|
12
|
-
@keyframes ef-menu-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
|
|
13
|
-
.ef-menu__item{display:flex;align-items:center;gap:9px;width:100%;height:32px;padding:0 10px;border:none;border-radius:var(--radius-sm);background:none;cursor:pointer;text-align:left;font-family:var(--font-sans);font-size:var(--text-sm);color:var(--text-primary);transition:background var(--dur-fast) var(--ease-out)}
|
|
14
|
-
.ef-menu__item:hover:not(:disabled){background:var(--surface-sunken)}
|
|
15
|
-
.ef-menu__item:focus-visible{outline:none;box-shadow:var(--focus-ring)}
|
|
16
|
-
.ef-menu__item:disabled{opacity:.4;cursor:not-allowed}
|
|
17
|
-
.ef-menu__item--danger{color:var(--danger-600)}
|
|
18
|
-
.ef-menu__item__icon{color:var(--text-muted);display:inline-flex}
|
|
19
|
-
.ef-menu__item--danger .ef-menu__item__icon{color:var(--danger-600)}
|
|
20
|
-
.ef-menu__sep{height:1px;background:var(--border-default);margin:4px 6px}
|
|
21
|
-
.ef-menu__kbd{margin-left:auto;font-family:var(--font-mono);font-size:11px;color:var(--text-muted)}
|
|
22
|
-
`;
|
|
23
7
|
export const Menu = /*#__PURE__*/React.forwardRef(function Menu({
|
|
24
8
|
trigger,
|
|
25
9
|
items,
|
|
@@ -29,7 +13,6 @@ export const Menu = /*#__PURE__*/React.forwardRef(function Menu({
|
|
|
29
13
|
className,
|
|
30
14
|
...rest
|
|
31
15
|
}, fRef) {
|
|
32
|
-
injectEfCss('ef-css-menu', CSS);
|
|
33
16
|
const [open, setOpen] = React.useState(false);
|
|
34
17
|
const ref = React.useRef(null);
|
|
35
18
|
const panelRef = React.useRef(null);
|
package/overlay/Popover.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { mergeRefs } from "../forms/Button.js";
|
|
5
5
|
import { Portal, useAnchoredStyle } from "./Portal.js";
|
|
6
|
-
const CSS = `
|
|
7
|
-
.ef-popover{position:relative;display:inline-flex}
|
|
8
|
-
.ef-popover__panel{position:absolute;top:calc(100% + 8px);width:280px;background:var(--surface-card);border:1px solid var(--border-strong);border-radius:var(--radius-md);box-shadow:var(--shadow-md);padding:14px;z-index:var(--z-dropdown);animation:ef-pop-in var(--dur-fast) var(--ease-out)}
|
|
9
|
-
.ef-popover__panel--left{left:0}
|
|
10
|
-
.ef-popover__panel--right{right:0}
|
|
11
|
-
@keyframes ef-pop-in{from{opacity:0;transform:translateY(-3px)}}
|
|
12
|
-
`;
|
|
13
6
|
export const Popover = /*#__PURE__*/React.forwardRef(function Popover({
|
|
14
7
|
trigger,
|
|
15
8
|
children,
|
|
@@ -21,7 +14,6 @@ export const Popover = /*#__PURE__*/React.forwardRef(function Popover({
|
|
|
21
14
|
className,
|
|
22
15
|
...rest
|
|
23
16
|
}, fRef) {
|
|
24
|
-
injectEfCss('ef-css-popover', CSS);
|
|
25
17
|
const [inner, setInner] = React.useState(false);
|
|
26
18
|
const open = controlled != null ? controlled : inner;
|
|
27
19
|
const setOpen = v => {
|
package/overlay/Portal.js
CHANGED
|
@@ -3,11 +3,6 @@ import React from 'react';
|
|
|
3
3
|
// Bare imports are stripped by the bundle compiler, so this resolves to the
|
|
4
4
|
// window global there; in an ESM consumer it resolves normally. Both work.
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
|
-
import { injectEfCss } from "../forms/Button.js";
|
|
7
|
-
const CSS = `
|
|
8
|
-
.ef-portal{position:fixed;top:0;left:0;width:0;height:0}
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
6
|
/**
|
|
12
7
|
* Renders children into document.body (or `container`).
|
|
13
8
|
*
|
|
@@ -19,7 +14,6 @@ export function Portal({
|
|
|
19
14
|
children,
|
|
20
15
|
container
|
|
21
16
|
}) {
|
|
22
|
-
injectEfCss('ef-css-portal', CSS);
|
|
23
17
|
const hostRef = React.useRef(null);
|
|
24
18
|
if (hostRef.current === null && typeof document !== 'undefined') {
|
|
25
19
|
hostRef.current = document.createElement('div');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efolusi/meridian",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
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",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"default": "./index.js"
|
|
21
21
|
},
|
|
22
22
|
"./styles.css": "./styles.css",
|
|
23
|
+
"./components.css": "./components.css",
|
|
23
24
|
"./tokens/*": "./tokens/*",
|
|
24
25
|
"./package.json": "./package.json",
|
|
25
26
|
"./assets/*": "./assets/*",
|
package/styles.css
CHANGED
package/tokens/fonts.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@font-face{font-family:'Bricolage Grotesque';src:url('../assets/fonts/BricolageGrotesque-Variable.
|
|
2
|
-
@font-face{font-family:'Figtree';src:url('../assets/fonts/Figtree-Variable.
|
|
3
|
-
@font-face{font-family:'Figtree';src:url('../assets/fonts/Figtree-Italic-Variable.
|
|
4
|
-
@font-face{font-family:'JetBrains Mono';src:url('../assets/fonts/JetBrainsMono-Variable.
|
|
5
|
-
@font-face{font-family:'JetBrains Mono';src:url('../assets/fonts/JetBrainsMono-Italic-Variable.
|
|
1
|
+
@font-face{font-family:'Bricolage Grotesque';src:url('../assets/fonts/BricolageGrotesque-Variable.woff2') format('woff2-variations');font-weight:200 800;font-style:normal;font-display:swap}
|
|
2
|
+
@font-face{font-family:'Figtree';src:url('../assets/fonts/Figtree-Variable.woff2') format('woff2-variations');font-weight:300 900;font-style:normal;font-display:swap}
|
|
3
|
+
@font-face{font-family:'Figtree';src:url('../assets/fonts/Figtree-Italic-Variable.woff2') format('woff2-variations');font-weight:300 900;font-style:italic;font-display:swap}
|
|
4
|
+
@font-face{font-family:'JetBrains Mono';src:url('../assets/fonts/JetBrainsMono-Variable.woff2') format('woff2-variations');font-weight:100 800;font-style:normal;font-display:swap}
|
|
5
|
+
@font-face{font-family:'JetBrains Mono';src:url('../assets/fonts/JetBrainsMono-Italic-Variable.woff2') format('woff2-variations');font-weight:100 800;font-style:italic;font-display:swap}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|