@efolusi/meridian 1.6.0 → 1.8.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/ai/Conversation.js +2 -1
- package/ai/Player.js +18 -1
- package/ai/SelectionQuote.js +2 -1
- package/ai/Transcript.js +2 -1
- package/ai/UsageMeter.js +2 -2
- package/code/Console.js +4 -1
- package/code/Terminal.js +2 -0
- package/components.css +69 -2
- package/dates/Calendar.d.ts +18 -2
- package/dates/Calendar.js +44 -15
- package/dates/DateRangePicker.d.ts +21 -0
- package/dates/DateRangePicker.js +148 -0
- package/dates/TimePicker.d.ts +25 -0
- package/dates/TimePicker.js +205 -0
- package/display/AspectRatio.js +1 -1
- package/display/Avatar.js +12 -3
- package/display/Carousel.js +2 -1
- package/display/Tag.js +30 -7
- package/feedback/Progress.js +4 -1
- package/feedback/Tooltip.js +2 -1
- package/forms/Button.js +15 -0
- package/forms/FormField.d.ts +43 -0
- package/forms/FormField.js +92 -1
- package/forms/NumberInput.d.ts +39 -0
- package/forms/NumberInput.js +177 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/navigation/Menubar.js +4 -1
- package/navigation/Tabs.js +2 -2
- package/overlay/ContextMenu.js +2 -1
- package/overlay/HoverCard.js +11 -0
- package/overlay/Portal.js +3 -2
- package/package.json +3 -1
- package/tailwind.preset.cjs +125 -0
- package/tokens.json +622 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
'use client';
|
|
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
|
+
import React from 'react';
|
|
4
|
+
import { Icon } from "../icons/Icon.js";
|
|
5
|
+
import { useFieldProps } from "./FormField.js";
|
|
6
|
+
// How many decimal places a number carries, so a commit can round away float
|
|
7
|
+
// noise: 0.1 + 0.2 must land as 0.3, not 0.30000000000000004.
|
|
8
|
+
function decimalsOf(n) {
|
|
9
|
+
if (!Number.isFinite(n)) return 0;
|
|
10
|
+
const s = String(n);
|
|
11
|
+
const e = s.search(/e-/i);
|
|
12
|
+
const i = s.indexOf('.');
|
|
13
|
+
if (e !== -1) return (+s.slice(e + 2) || 0) + (i !== -1 ? e - i - 1 : 0);
|
|
14
|
+
return i === -1 ? 0 : s.length - i - 1;
|
|
15
|
+
}
|
|
16
|
+
const defaultParse = t => {
|
|
17
|
+
const n = Number(t.replace(/,/g, ''));
|
|
18
|
+
return Number.isFinite(n) ? n : null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A numeric field with stepper buttons — a text input with inputmode="decimal"
|
|
22
|
+
* rather than type=number, so typing stays free-form and the value only
|
|
23
|
+
* commits (parse → clamp → snap to step) on blur. Empty commits null.
|
|
24
|
+
* ArrowUp/Down step, Shift multiplies by 10, Home/End jump to finite rails.
|
|
25
|
+
*/
|
|
26
|
+
export function NumberInput({
|
|
27
|
+
label,
|
|
28
|
+
hint,
|
|
29
|
+
error,
|
|
30
|
+
invalid,
|
|
31
|
+
value,
|
|
32
|
+
defaultValue,
|
|
33
|
+
onChange,
|
|
34
|
+
min,
|
|
35
|
+
max,
|
|
36
|
+
step = 1,
|
|
37
|
+
size = 'md',
|
|
38
|
+
disabled,
|
|
39
|
+
placeholder,
|
|
40
|
+
format,
|
|
41
|
+
parse,
|
|
42
|
+
style,
|
|
43
|
+
className,
|
|
44
|
+
...rest
|
|
45
|
+
}) {
|
|
46
|
+
// Picks up id / aria wiring when nested in a FormField; standalone this is a no-op.
|
|
47
|
+
const field = useFieldProps({
|
|
48
|
+
invalid,
|
|
49
|
+
error,
|
|
50
|
+
id: rest.id,
|
|
51
|
+
'aria-describedby': rest['aria-describedby']
|
|
52
|
+
});
|
|
53
|
+
const uid = React.useId();
|
|
54
|
+
const inputId = field.id || (label ? uid + 'n' : undefined);
|
|
55
|
+
const bad = field.invalid;
|
|
56
|
+
const [inner, setInner] = React.useState(defaultValue !== undefined ? defaultValue : null);
|
|
57
|
+
const v = value !== undefined ? value : inner;
|
|
58
|
+
// The text being edited; null means "not editing, show the formatted value".
|
|
59
|
+
const [draft, setDraft] = React.useState(null);
|
|
60
|
+
const fmt = n => format ? format(n) : String(n);
|
|
61
|
+
const parseText = t => {
|
|
62
|
+
const s = t.trim();
|
|
63
|
+
if (s === '') return null;
|
|
64
|
+
const n = (parse || defaultParse)(s);
|
|
65
|
+
return n != null && Number.isFinite(n) ? n : undefined; // undefined = unparseable
|
|
66
|
+
};
|
|
67
|
+
const normalize = n => {
|
|
68
|
+
let x = n;
|
|
69
|
+
if (step > 0) {
|
|
70
|
+
const base = Number.isFinite(min) ? min : 0;
|
|
71
|
+
const d = Math.max(decimalsOf(step), decimalsOf(base));
|
|
72
|
+
x = base + Math.round((x - base) / step) * step;
|
|
73
|
+
x = Number(x.toFixed(Math.min(d, 20)));
|
|
74
|
+
}
|
|
75
|
+
if (Number.isFinite(min) && x < min) x = min;
|
|
76
|
+
if (Number.isFinite(max) && x > max) x = max;
|
|
77
|
+
return x;
|
|
78
|
+
};
|
|
79
|
+
const emit = (next, e) => {
|
|
80
|
+
if (value === undefined) setInner(next);
|
|
81
|
+
if (onChange && !Object.is(next, v)) onChange(next, e);
|
|
82
|
+
};
|
|
83
|
+
const commit = e => {
|
|
84
|
+
if (draft == null) return;
|
|
85
|
+
const n = parseText(draft);
|
|
86
|
+
setDraft(null);
|
|
87
|
+
if (n === undefined) return; // unparseable: revert to the last committed value
|
|
88
|
+
emit(n === null ? null : normalize(n), e);
|
|
89
|
+
};
|
|
90
|
+
const stepBy = (dir, mult, e) => {
|
|
91
|
+
const parsed = draft != null ? parseText(draft) : v;
|
|
92
|
+
const cur = parsed === undefined ? v : parsed;
|
|
93
|
+
let next;
|
|
94
|
+
if (cur == null) next = Number.isFinite(min) ? min : Number.isFinite(max) && dir < 0 ? max : 0;else next = cur + dir * step * mult;
|
|
95
|
+
setDraft(null);
|
|
96
|
+
emit(normalize(next), e);
|
|
97
|
+
};
|
|
98
|
+
const keys = e => {
|
|
99
|
+
if (disabled) return;
|
|
100
|
+
if (e.key === 'ArrowUp') {
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
stepBy(1, e.shiftKey ? 10 : 1, e);
|
|
103
|
+
} else if (e.key === 'ArrowDown') {
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
stepBy(-1, e.shiftKey ? 10 : 1, e);
|
|
106
|
+
} else if (e.key === 'Home' && Number.isFinite(min)) {
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
setDraft(null);
|
|
109
|
+
emit(normalize(min), e);
|
|
110
|
+
} else if (e.key === 'End' && Number.isFinite(max)) {
|
|
111
|
+
e.preventDefault();
|
|
112
|
+
setDraft(null);
|
|
113
|
+
emit(normalize(max), e);
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
const shown = draft != null ? draft : v == null ? '' : fmt(v);
|
|
117
|
+
const upStuck = disabled || v != null && Number.isFinite(max) && v >= max;
|
|
118
|
+
const downStuck = disabled || v != null && Number.isFinite(min) && v <= min;
|
|
119
|
+
const control = /*#__PURE__*/React.createElement("span", {
|
|
120
|
+
className: `ef-number ef-number--${size}${bad ? ' ef-number--invalid' : ''}${disabled ? ' ef-number--disabled' : ''}`
|
|
121
|
+
}, /*#__PURE__*/React.createElement("input", _extends({}, rest, field.controlProps, {
|
|
122
|
+
id: inputId,
|
|
123
|
+
className: "ef-number__el",
|
|
124
|
+
type: "text",
|
|
125
|
+
inputMode: "decimal",
|
|
126
|
+
autoComplete: "off",
|
|
127
|
+
placeholder: placeholder,
|
|
128
|
+
disabled: disabled,
|
|
129
|
+
value: shown,
|
|
130
|
+
"aria-invalid": bad || undefined,
|
|
131
|
+
onChange: e => setDraft(e.target.value),
|
|
132
|
+
onKeyDown: keys,
|
|
133
|
+
onBlur: commit
|
|
134
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
135
|
+
className: "ef-number__steps"
|
|
136
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
137
|
+
type: "button",
|
|
138
|
+
className: "ef-number__step",
|
|
139
|
+
"aria-label": "Increase",
|
|
140
|
+
tabIndex: -1,
|
|
141
|
+
disabled: upStuck,
|
|
142
|
+
onMouseDown: e => e.preventDefault(),
|
|
143
|
+
onClick: e => stepBy(1, 1, e)
|
|
144
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
145
|
+
name: "chevron-up",
|
|
146
|
+
size: size === 'lg' ? 14 : 12
|
|
147
|
+
})), /*#__PURE__*/React.createElement("button", {
|
|
148
|
+
type: "button",
|
|
149
|
+
className: "ef-number__step",
|
|
150
|
+
"aria-label": "Decrease",
|
|
151
|
+
tabIndex: -1,
|
|
152
|
+
disabled: downStuck,
|
|
153
|
+
onMouseDown: e => e.preventDefault(),
|
|
154
|
+
onClick: e => stepBy(-1, 1, e)
|
|
155
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
156
|
+
name: "chevron-down",
|
|
157
|
+
size: size === 'lg' ? 14 : 12
|
|
158
|
+
}))));
|
|
159
|
+
if (!label && !hint && !error) return /*#__PURE__*/React.cloneElement(control, {
|
|
160
|
+
style,
|
|
161
|
+
className: control.props.className + (className ? ' ' + className : '')
|
|
162
|
+
});
|
|
163
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
164
|
+
className: `ef-field${className ? ' ' + className : ''}`,
|
|
165
|
+
style: style
|
|
166
|
+
}, label ? /*#__PURE__*/React.createElement("label", {
|
|
167
|
+
htmlFor: inputId,
|
|
168
|
+
className: "ef-field__label"
|
|
169
|
+
}, label) : null, control, error ? /*#__PURE__*/React.createElement("span", {
|
|
170
|
+
className: "ef-field__error"
|
|
171
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
172
|
+
name: "circle-alert",
|
|
173
|
+
size: 12
|
|
174
|
+
}), error) : hint ? /*#__PURE__*/React.createElement("span", {
|
|
175
|
+
className: "ef-field__hint"
|
|
176
|
+
}, hint) : null);
|
|
177
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export * from './data/StatusDot.js';
|
|
|
41
41
|
export * from './data/Table.js';
|
|
42
42
|
export * from './dates/Calendar.js';
|
|
43
43
|
export * from './dates/DatePicker.js';
|
|
44
|
+
export * from './dates/DateRangePicker.js';
|
|
45
|
+
export * from './dates/TimePicker.js';
|
|
44
46
|
export * from './display/Accordion.js';
|
|
45
47
|
export * from './display/AspectRatio.js';
|
|
46
48
|
export * from './display/Avatar.js';
|
|
@@ -81,6 +83,7 @@ export * from './forms/IconButton.js';
|
|
|
81
83
|
export * from './forms/Input.js';
|
|
82
84
|
export * from './forms/InputGroup.js';
|
|
83
85
|
export * from './forms/Label.js';
|
|
86
|
+
export * from './forms/NumberInput.js';
|
|
84
87
|
export * from './forms/Radio.js';
|
|
85
88
|
export * from './forms/Select.js';
|
|
86
89
|
export * from './forms/Slider.js';
|
package/index.js
CHANGED
|
@@ -41,6 +41,8 @@ export { StatusDot } from './data/StatusDot.js';
|
|
|
41
41
|
export { Table } from './data/Table.js';
|
|
42
42
|
export { Calendar } from './dates/Calendar.js';
|
|
43
43
|
export { DatePicker } from './dates/DatePicker.js';
|
|
44
|
+
export { DateRangePicker } from './dates/DateRangePicker.js';
|
|
45
|
+
export { TimePicker } from './dates/TimePicker.js';
|
|
44
46
|
export { Accordion } from './display/Accordion.js';
|
|
45
47
|
export { AspectRatio } from './display/AspectRatio.js';
|
|
46
48
|
export { Avatar, AvatarGroup } from './display/Avatar.js';
|
|
@@ -81,6 +83,7 @@ export { IconButton } from './forms/IconButton.js';
|
|
|
81
83
|
export { Input } from './forms/Input.js';
|
|
82
84
|
export { InputGroup } from './forms/InputGroup.js';
|
|
83
85
|
export { Label } from './forms/Label.js';
|
|
86
|
+
export { NumberInput } from './forms/NumberInput.js';
|
|
84
87
|
export { Radio } from './forms/Radio.js';
|
|
85
88
|
export { Select } from './forms/Select.js';
|
|
86
89
|
export { Slider } from './forms/Slider.js';
|
package/navigation/Menubar.js
CHANGED
|
@@ -17,7 +17,10 @@ export function Menubar({
|
|
|
17
17
|
if (ref.current && !ref.current.contains(e.target)) setOpen(null);
|
|
18
18
|
};
|
|
19
19
|
const key = e => {
|
|
20
|
-
if (e.key
|
|
20
|
+
if (e.key !== 'Escape') return;
|
|
21
|
+
const btns = ref.current ? ref.current.querySelectorAll('.ef-menubar__btn') : [];
|
|
22
|
+
if (btns[open]) btns[open].focus();
|
|
23
|
+
setOpen(null);
|
|
21
24
|
};
|
|
22
25
|
document.addEventListener('mousedown', away);
|
|
23
26
|
document.addEventListener('keydown', key);
|
package/navigation/Tabs.js
CHANGED
|
@@ -2,7 +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 { mergeRefs } from "../forms/Button.js";
|
|
5
|
+
import { mergeRefs, useIsoLayoutEffect } from "../forms/Button.js";
|
|
6
6
|
export const Tabs = /*#__PURE__*/React.forwardRef(function Tabs({
|
|
7
7
|
items,
|
|
8
8
|
value,
|
|
@@ -16,7 +16,7 @@ export const Tabs = /*#__PURE__*/React.forwardRef(function Tabs({
|
|
|
16
16
|
left: 0,
|
|
17
17
|
width: 0
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
useIsoLayoutEffect(() => {
|
|
20
20
|
const el = ref.current && ref.current.querySelector('[data-active="true"]');
|
|
21
21
|
if (el) setInk({
|
|
22
22
|
left: el.offsetLeft,
|
package/overlay/ContextMenu.js
CHANGED
|
@@ -1,6 +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 { useIsoLayoutEffect } from "../forms/Button.js";
|
|
4
5
|
import { Portal } from "./Portal.js";
|
|
5
6
|
import { Icon } from "../icons/Icon.js";
|
|
6
7
|
export function ContextMenu({
|
|
@@ -23,7 +24,7 @@ export function ContextMenu({
|
|
|
23
24
|
};
|
|
24
25
|
// A fixed panel still escapes overflow, but nothing kept it inside the viewport:
|
|
25
26
|
// right-clicking near the bottom or right edge pushed items off-screen.
|
|
26
|
-
|
|
27
|
+
useIsoLayoutEffect(() => {
|
|
27
28
|
const panel = panelRef.current;
|
|
28
29
|
if (!pos || !panel) return;
|
|
29
30
|
const r = panel.getBoundingClientRect();
|
package/overlay/HoverCard.js
CHANGED
|
@@ -34,6 +34,17 @@ export function HoverCard({
|
|
|
34
34
|
t.current = setTimeout(() => setOpen(false), closeDelay);
|
|
35
35
|
};
|
|
36
36
|
React.useEffect(() => () => clearTimeout(t.current), []);
|
|
37
|
+
React.useEffect(() => {
|
|
38
|
+
if (!open) return;
|
|
39
|
+
const key = e => {
|
|
40
|
+
if (e.key === 'Escape') {
|
|
41
|
+
clearTimeout(t.current);
|
|
42
|
+
setOpen(false);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
document.addEventListener('keydown', key);
|
|
46
|
+
return () => document.removeEventListener('keydown', key);
|
|
47
|
+
}, [open]);
|
|
37
48
|
return /*#__PURE__*/React.createElement("span", _extends({}, rest, {
|
|
38
49
|
ref: ref,
|
|
39
50
|
className: `ef-hovercard${className ? ' ' + className : ''}`,
|
package/overlay/Portal.js
CHANGED
|
@@ -3,6 +3,7 @@ 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 { useIsoLayoutEffect } from "../forms/Button.js";
|
|
6
7
|
/**
|
|
7
8
|
* Renders children into document.body (or `container`).
|
|
8
9
|
*
|
|
@@ -23,7 +24,7 @@ export function Portal({
|
|
|
23
24
|
// and this layout effect attaches it before paint. Gating the render on a
|
|
24
25
|
// "mounted" state instead would leave the panel absent when the parent measures
|
|
25
26
|
// it for placement, which puts every anchored overlay at the viewport origin.
|
|
26
|
-
|
|
27
|
+
useIsoLayoutEffect(() => {
|
|
27
28
|
const host = hostRef.current;
|
|
28
29
|
if (!host) return;
|
|
29
30
|
const parent = container || document.body;
|
|
@@ -63,7 +64,7 @@ export function useAnchoredStyle(anchorRef, panelRef, {
|
|
|
63
64
|
},
|
|
64
65
|
side: placement
|
|
65
66
|
});
|
|
66
|
-
|
|
67
|
+
useIsoLayoutEffect(() => {
|
|
67
68
|
if (!open) {
|
|
68
69
|
setState(s => s.style.visibility === 'hidden' ? s : {
|
|
69
70
|
...s,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efolusi/meridian",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.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",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"./components.css": "./components.css",
|
|
24
24
|
"./tokens/*": "./tokens/*",
|
|
25
25
|
"./package.json": "./package.json",
|
|
26
|
+
"./tokens.json": "./tokens.json",
|
|
27
|
+
"./tailwind.preset.cjs": "./tailwind.preset.cjs",
|
|
26
28
|
"./assets/*": "./assets/*",
|
|
27
29
|
"./*.js": {
|
|
28
30
|
"types": "./*.d.ts",
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
// Meridian Tailwind preset — maps Meridian's CSS custom properties to
|
|
2
|
+
// Tailwind utilities. Load tokens (styles.css) alongside this preset.
|
|
3
|
+
// tailwind.config.js: module.exports = { presets: [require('./tailwind.preset.js')] }
|
|
4
|
+
module.exports = { theme: { extend: {
|
|
5
|
+
"colors": {
|
|
6
|
+
"sand-25": "var(--sand-25)",
|
|
7
|
+
"sand-50": "var(--sand-50)",
|
|
8
|
+
"sand-100": "var(--sand-100)",
|
|
9
|
+
"sand-200": "var(--sand-200)",
|
|
10
|
+
"sand-300": "var(--sand-300)",
|
|
11
|
+
"sand-400": "var(--sand-400)",
|
|
12
|
+
"sand-500": "var(--sand-500)",
|
|
13
|
+
"sand-600": "var(--sand-600)",
|
|
14
|
+
"sand-700": "var(--sand-700)",
|
|
15
|
+
"sand-800": "var(--sand-800)",
|
|
16
|
+
"sand-900": "var(--sand-900)",
|
|
17
|
+
"sand-950": "var(--sand-950)",
|
|
18
|
+
"brand-50": "var(--brand-50)",
|
|
19
|
+
"brand-100": "var(--brand-100)",
|
|
20
|
+
"brand-200": "var(--brand-200)",
|
|
21
|
+
"brand-300": "var(--brand-300)",
|
|
22
|
+
"brand-400": "var(--brand-400)",
|
|
23
|
+
"brand-500": "var(--brand-500)",
|
|
24
|
+
"brand-600": "var(--brand-600)",
|
|
25
|
+
"brand-700": "var(--brand-700)",
|
|
26
|
+
"brand-800": "var(--brand-800)",
|
|
27
|
+
"brand-900": "var(--brand-900)",
|
|
28
|
+
"brand-950": "var(--brand-950)",
|
|
29
|
+
"cocoa-950": "var(--cocoa-950)",
|
|
30
|
+
"cocoa-900": "var(--cocoa-900)",
|
|
31
|
+
"cocoa-700": "var(--cocoa-700)",
|
|
32
|
+
"caramel-500": "var(--caramel-500)",
|
|
33
|
+
"peach-200": "var(--peach-200)",
|
|
34
|
+
"cream-50": "var(--cream-50)",
|
|
35
|
+
"success-600": "var(--success-600)",
|
|
36
|
+
"success-100": "var(--success-100)",
|
|
37
|
+
"success-300": "var(--success-300)",
|
|
38
|
+
"warning-600": "var(--warning-600)",
|
|
39
|
+
"warning-100": "var(--warning-100)",
|
|
40
|
+
"warning-300": "var(--warning-300)",
|
|
41
|
+
"danger-600": "var(--danger-600)",
|
|
42
|
+
"danger-700": "var(--danger-700)",
|
|
43
|
+
"danger-100": "var(--danger-100)",
|
|
44
|
+
"danger-300": "var(--danger-300)",
|
|
45
|
+
"surface-page": "var(--surface-page)",
|
|
46
|
+
"surface-card": "var(--surface-card)",
|
|
47
|
+
"surface-sunken": "var(--surface-sunken)",
|
|
48
|
+
"surface-subtle": "var(--surface-subtle)",
|
|
49
|
+
"surface-inverse": "var(--surface-inverse)",
|
|
50
|
+
"surface-brand": "var(--surface-brand)",
|
|
51
|
+
"surface-code": "var(--surface-code)",
|
|
52
|
+
"text-code": "var(--text-code)",
|
|
53
|
+
"border-code": "var(--border-code)",
|
|
54
|
+
"overlay-scrim": "var(--overlay-scrim)",
|
|
55
|
+
"text-on-brand-muted": "var(--text-on-brand-muted)",
|
|
56
|
+
"text-primary": "var(--text-primary)",
|
|
57
|
+
"text-secondary": "var(--text-secondary)",
|
|
58
|
+
"text-muted": "var(--text-muted)",
|
|
59
|
+
"text-inverse": "var(--text-inverse)",
|
|
60
|
+
"text-link": "var(--text-link)",
|
|
61
|
+
"border-default": "var(--border-default)",
|
|
62
|
+
"border-strong": "var(--border-strong)",
|
|
63
|
+
"border-inverse": "var(--border-inverse)",
|
|
64
|
+
"accent": "var(--accent)",
|
|
65
|
+
"accent-hover": "var(--accent-hover)",
|
|
66
|
+
"accent-active": "var(--accent-active)",
|
|
67
|
+
"accent-subtle": "var(--accent-subtle)",
|
|
68
|
+
"accent-subtle-border": "var(--accent-subtle-border)",
|
|
69
|
+
"accent-contrast": "var(--accent-contrast)",
|
|
70
|
+
"danger-contrast": "var(--danger-contrast)",
|
|
71
|
+
"text-2xs": "var(--text-2xs)",
|
|
72
|
+
"text-xs": "var(--text-xs)",
|
|
73
|
+
"text-sm": "var(--text-sm)",
|
|
74
|
+
"text-md": "var(--text-md)",
|
|
75
|
+
"text-lg": "var(--text-lg)",
|
|
76
|
+
"text-xl": "var(--text-xl)",
|
|
77
|
+
"text-2xl": "var(--text-2xl)",
|
|
78
|
+
"text-3xl": "var(--text-3xl)",
|
|
79
|
+
"text-4xl": "var(--text-4xl)",
|
|
80
|
+
"text-5xl": "var(--text-5xl)",
|
|
81
|
+
"text-6xl": "var(--text-6xl)",
|
|
82
|
+
"text-7xl": "var(--text-7xl)"
|
|
83
|
+
},
|
|
84
|
+
"spacing": {
|
|
85
|
+
"0": "var(--space-0)",
|
|
86
|
+
"1": "var(--space-1)",
|
|
87
|
+
"2": "var(--space-2)",
|
|
88
|
+
"3": "var(--space-3)",
|
|
89
|
+
"4": "var(--space-4)",
|
|
90
|
+
"5": "var(--space-5)",
|
|
91
|
+
"6": "var(--space-6)",
|
|
92
|
+
"8": "var(--space-8)",
|
|
93
|
+
"10": "var(--space-10)",
|
|
94
|
+
"12": "var(--space-12)",
|
|
95
|
+
"16": "var(--space-16)",
|
|
96
|
+
"20": "var(--space-20)",
|
|
97
|
+
"24": "var(--space-24)",
|
|
98
|
+
"32": "var(--space-32)"
|
|
99
|
+
},
|
|
100
|
+
"borderRadius": {
|
|
101
|
+
"sm": "var(--radius-sm)",
|
|
102
|
+
"md": "var(--radius-md)",
|
|
103
|
+
"lg": "var(--radius-lg)",
|
|
104
|
+
"xl": "var(--radius-xl)",
|
|
105
|
+
"full": "var(--radius-full)"
|
|
106
|
+
},
|
|
107
|
+
"boxShadow": {
|
|
108
|
+
"xs": "var(--shadow-xs)",
|
|
109
|
+
"sm": "var(--shadow-sm)",
|
|
110
|
+
"md": "var(--shadow-md)",
|
|
111
|
+
"lg": "var(--shadow-lg)",
|
|
112
|
+
"xl": "var(--shadow-xl)",
|
|
113
|
+
"pop": "var(--shadow-pop)"
|
|
114
|
+
},
|
|
115
|
+
"fontSize": {},
|
|
116
|
+
"zIndex": {
|
|
117
|
+
"dropdown": "var(--z-dropdown)",
|
|
118
|
+
"sticky": "var(--z-sticky)",
|
|
119
|
+
"overlay": "var(--z-overlay)",
|
|
120
|
+
"modal": "var(--z-modal)",
|
|
121
|
+
"popover": "var(--z-popover)",
|
|
122
|
+
"toast": "var(--z-toast)",
|
|
123
|
+
"tooltip": "var(--z-tooltip)"
|
|
124
|
+
}
|
|
125
|
+
} } };
|