@stackone/malachite 2.96.0 → 2.97.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/COMPONENTS.md +1 -0
- package/dist/components/Timeline.js +103 -0
- package/dist/components/Timeline.js.map +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +354 -352
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
package/COMPONENTS.md
CHANGED
|
@@ -115,6 +115,7 @@ The catalog of components exported from `@stackone/malachite`. **Reach for one o
|
|
|
115
115
|
- **`LevelMeter`** — Rising bars, shortest first, that picture how much of a scale is on — an access level in a level menu or on a level chip. Each step is `on` (a solid accent-green bar), `partial` (a green outline over a faint tint, for a step only some of whose actions are on) or `off` (an empty grey outline); every step keeps 3:1 against the surface, and colours come from the theme. Styled inline so it still draws inside an `ActionMenu`, which portals outside the shadow root and its stylesheet. Beside text that already names the level it is decorative and hidden from assistive tech; give it a `label` only when it stands alone and it reads as an image of that name. As an `ActionMenu` item `icon` or a `Button` `icon`, leave `label` off: the icon joins the item name, and the text already says the level. _Key props:_ `steps` (`LevelMeterStep[]`: `on` | `partial` | `off`), `label`, `className`.
|
|
116
116
|
- **`TimeBarChart`** — Counts per time bucket as stacked bars on a UTC axis, the request-volume chart above a log list. Every bucket in `range` takes a slot whether or not it has data, so gaps read as gaps; a zone-less time string is read as UTC. Hover or arrow-key through buckets for a tooltip listing every series and the total; `highlightTime` shades the bucket holding a time from elsewhere on the page, such as the hovered log row. With `onRangeSelect`, dragging across bars reports the whole buckets covered, `end` exclusive so it goes straight back in as `range`, and whether the selection takes in the last bucket. `loading` dims bars already drawn rather than replacing them, and shows a spinner only when there is nothing to dim. Series colours follow the theme’s status tokens by `tone`, and failures always stack above successes whatever order `series` comes in, so position separates them where colour alone might not; a legend names them unless `legend={false}`. A visually hidden table carries the same numbers for screen readers. _Key props:_ `series` (`{ key, label, tone }[]`, stacked by tone with `error` on top; `TimeBarChartTone`: `success` | `error` | `neutral`), `buckets` (`{ start, values }[]`), `interval` (`{ unit, step }`; `TimeBarChartUnit`: `minute` | `hour` | `day` | `week` | `month`), `range` (`end` exclusive, as a selection reports it; at most 2,000 buckets, the newest kept), `TimeBarChartSize` (`small` | `medium` | `large`), `loading`, `error`, `errorTitle`, `errorSubTitle`, `valueLabel`, `legend`, `highlightTime`, `onRangeSelect`, `aria-label`, `aria-labelledby`, `className`, `style`.
|
|
117
117
|
- **`TimeBarChartSwatch`** — The mark a `TimeBarChart` draws a series in, by its `tone`, for naming the series somewhere other than the chart's legend, such as a count beside the chart standing in for it. It matches the legend and the tooltip, and the bars draw the same colour at 40%; it follows the theme with them. Decorative: the label beside it does the naming. _Key props:_ `tone` (`TimeBarChartTone`).
|
|
118
|
+
- **`Timeline`** — A vertical sequence of steps as an ordered list (`Timeline.Item`): a dot on a connecting line, a title, its timing at the right and a free-form body below, such as what happened to one API call. The dot is painted by `tone` from the theme’s text tokens (`neutral` is secondary text, the rest their status colours), or replaced by a decorative `marker` such as the caller’s logo. `stopped` puts an error badge (`stoppedLabel`, default "Stopped here") after the title of the step a flow ended on and paints its dot `error` unless a `tone` is set; the line ends at the last item. For steps a person works through (complete, open, locked) use `StepList`. _Key props:_ `aria-label`, `aria-labelledby`; on `Timeline.Item`: `title`, `time`, `tone` (`TimelineTone`: `neutral` | `info` | `success` | `warning` | `error`), `marker` (fills the 24px circle in place of the ringed dot), `stopped`, `stoppedLabel`.
|
|
118
119
|
- **`Table`** — Data table with columns, sizing, pagination and row selection. `column.align` places a column's header as well as its cells. What lands on the aligned edge is the last thing in the header row rather than the title: the sort caret on a sortable column, the info icon on one carrying `info` without a sorter. `headerVariant` picks the header layout, and only `inline` lines header and body up exactly, because both are cells of one `<table>`. `detached` builds them from flex rows, where a sortable header cell is 32px narrower than a non-sortable one — its padding sits on the inner button rather than on the flex item — so its header cells sit 15–17px off their column at any alignment; reach for `inline` where exact alignment matters. Sorting is internal, so the array passed as `data` is not the order rendered once a column is sorted: `onVisibleOrderChange` reports the rows in render order — the whole of `data`, compared by `rowKey` so an equal order never re-fires — for a consumer stepping a master-detail view the way the user sees it. On the detached header, `title`, `subtitle` and `extra` add a title row on the frame above the column headers, the row a `framed` `Card` draws, and it docks with them under `stickyHeaderTop` (with `showHeader={false}` nothing docks and it scrolls with the rows). The inline header has no frame, so it draws none of the three and warns in development. _Key props:_ `TableColumns` (incl. `align`), `TableSize`, `TableType`, `TableRowSelection`, `TablePaginationPosition` (`pagination.position`, in antd naming: a pager on each edge named, aligned as named, 16px from the rows; bottom right by default), `headerVariant`, `title`, `subtitle`, `extra`, `onVisibleOrderChange`, `scrollHeight` (a height, or `"fill"` for the room left in its scroller once the content above and below it fits, so the page itself never scrolls).
|
|
119
120
|
- **`Statistic`** — Displays a statistic value with a label; primary/secondary sizes. _Key props:_ `StatisticValueSize`.
|
|
120
121
|
- **`Avatar`** — Logo/initial avatar. Renders the image when available, otherwise a coloured tile with the first letter of `name`, or with `fallback="placeholder"` the generic "no logo available" tile. Encapsulates the fallback colour. _Key props:_ `src`, `name`, `size`, `shape="square" | "circle"`, `fallback="initial" | "placeholder"`.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { Tag as x } from "./Tag.js";
|
|
3
|
+
import c from "./Typography/Text.js";
|
|
4
|
+
const p = {
|
|
5
|
+
neutral: "var(--malachite-text-secondary, rgb(123, 123, 123))",
|
|
6
|
+
info: "var(--malachite-text-info, rgb(12, 88, 174))",
|
|
7
|
+
success: "var(--malachite-text-success, rgb(2, 122, 66))",
|
|
8
|
+
warning: "var(--malachite-text-warning, rgb(150, 88, 10))",
|
|
9
|
+
error: "var(--malachite-text-error, rgb(237, 53, 54))"
|
|
10
|
+
}, f = ({
|
|
11
|
+
title: t,
|
|
12
|
+
time: a,
|
|
13
|
+
tone: n,
|
|
14
|
+
marker: r,
|
|
15
|
+
stopped: i = !1,
|
|
16
|
+
stoppedLabel: s,
|
|
17
|
+
children: m,
|
|
18
|
+
className: d = ""
|
|
19
|
+
}) => {
|
|
20
|
+
const o = n ?? (i ? "error" : "neutral");
|
|
21
|
+
return /* @__PURE__ */ l(
|
|
22
|
+
"li",
|
|
23
|
+
{
|
|
24
|
+
className: `relative m-0 flex gap-[14px] pb-[40px] last:pb-0 [&:last-child>[data-timeline-line]]:hidden ${d}`,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ e(
|
|
27
|
+
"span",
|
|
28
|
+
{
|
|
29
|
+
"data-timeline-line": "",
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
className: "absolute start-[11px] top-[26px] bottom-[2px] w-[2px] bg-[var(--malachite-card-border,rgb(232,232,232))]"
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ e(
|
|
35
|
+
"span",
|
|
36
|
+
{
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
className: `flex h-[24px] w-[24px] flex-none items-center justify-center overflow-hidden rounded-full ${r ? "" : "border border-solid border-[var(--malachite-card-border,rgb(232,232,232))]"}`,
|
|
39
|
+
children: r || /* @__PURE__ */ e(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
"data-timeline-dot": o,
|
|
43
|
+
className: "h-[8px] w-[8px] rounded-full",
|
|
44
|
+
style: { backgroundColor: p[o] }
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-[8px] pt-[2px]", children: [
|
|
50
|
+
/* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-[12px]", children: [
|
|
51
|
+
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-wrap items-center gap-x-[8px] gap-y-[4px] [overflow-wrap:anywhere]", children: [
|
|
52
|
+
/* @__PURE__ */ e(c, { size: "small", fontWeight: "semi-bold", className: "min-w-0", children: t }),
|
|
53
|
+
i && /* @__PURE__ */ e("span", { className: "sr-only", children: ", " }),
|
|
54
|
+
i && /* @__PURE__ */ e(
|
|
55
|
+
x,
|
|
56
|
+
{
|
|
57
|
+
value: (s == null ? void 0 : s.trim()) || "Stopped here",
|
|
58
|
+
type: "error",
|
|
59
|
+
fontSize: "xsmall",
|
|
60
|
+
textTransform: "none",
|
|
61
|
+
paddingSize: "compact"
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
] }),
|
|
65
|
+
(a || a === 0) && /* @__PURE__ */ e("span", { className: "sr-only", children: ", " }),
|
|
66
|
+
(a || a === 0) && /* @__PURE__ */ e(
|
|
67
|
+
c,
|
|
68
|
+
{
|
|
69
|
+
size: "xsmall",
|
|
70
|
+
color: "secondary",
|
|
71
|
+
font: "mono",
|
|
72
|
+
wrap: !1,
|
|
73
|
+
className: "pt-[2px]",
|
|
74
|
+
children: a
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }),
|
|
78
|
+
m
|
|
79
|
+
] })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}, h = ({
|
|
84
|
+
children: t,
|
|
85
|
+
className: a = "",
|
|
86
|
+
"aria-label": n,
|
|
87
|
+
"aria-labelledby": r
|
|
88
|
+
}) => /* @__PURE__ */ e(
|
|
89
|
+
"ol",
|
|
90
|
+
{
|
|
91
|
+
role: "list",
|
|
92
|
+
"aria-label": n,
|
|
93
|
+
"aria-labelledby": r,
|
|
94
|
+
className: `m-0 list-none p-0 ${a}`,
|
|
95
|
+
children: t
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
h.Item = f;
|
|
99
|
+
export {
|
|
100
|
+
h as Timeline,
|
|
101
|
+
h as default
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=Timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.js","sources":["../../src/components/Timeline.tsx"],"sourcesContent":["import React from 'react';\nimport Tag from './Tag';\nimport Text from './Typography/Text';\n\nexport type TimelineTone = 'neutral' | 'info' | 'success' | 'warning' | 'error';\n\nexport interface TimelineProps {\n children: React.ReactNode;\n className?: string;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nexport interface TimelineItemProps {\n title: React.ReactNode;\n /** When the step happened, shown at the right of the title, e.g. `+6 ms`. */\n time?: React.ReactNode;\n /**\n * Paints the dot: `error` on a `stopped` step, else `neutral`, unless set. Colour alone, so the\n * title has to say what happened. Ignored when `marker` is set.\n */\n tone?: TimelineTone;\n /** Replaces the ringed dot with a 24px circle of its own, e.g. the caller's logo at size 24. Decorative: hidden from assistive tech. */\n marker?: React.ReactNode;\n /** Marks the step the flow ended on, with a badge after the title. */\n stopped?: boolean;\n /** The badge's text when `stopped`. Empty falls back to \"Stopped here\". */\n stoppedLabel?: string;\n /**\n * The step's detail, below the title: tags, copy, payloads. Each child is a row of its own, 8px\n * apart, and unstyled, so wrap copy in `Typography.Text`.\n */\n children?: React.ReactNode;\n className?: string;\n}\n\n// The light theme's values as fallbacks: the dot paints before the theme reaches `:host`.\nconst DOT_COLOR: Record<TimelineTone, string> = {\n neutral: 'var(--malachite-text-secondary, rgb(123, 123, 123))',\n info: 'var(--malachite-text-info, rgb(12, 88, 174))',\n success: 'var(--malachite-text-success, rgb(2, 122, 66))',\n warning: 'var(--malachite-text-warning, rgb(150, 88, 10))',\n error: 'var(--malachite-text-error, rgb(237, 53, 54))',\n};\n\nconst Item: React.FC<TimelineItemProps> = ({\n title,\n time,\n tone,\n marker,\n stopped = false,\n stoppedLabel,\n children,\n className = '',\n}) => {\n const dotTone = tone ?? (stopped ? 'error' : 'neutral');\n return (\n <li\n className={`relative m-0 flex gap-[14px] pb-[40px] last:pb-0 [&:last-child>[data-timeline-line]]:hidden ${className}`}\n >\n <span\n data-timeline-line=\"\"\n aria-hidden=\"true\"\n className=\"absolute start-[11px] top-[26px] bottom-[2px] w-[2px] bg-[var(--malachite-card-border,rgb(232,232,232))]\"\n />\n <span\n aria-hidden=\"true\"\n // The ring's border would cut into a marker, so a marker gets the full 24px circle instead.\n className={`flex h-[24px] w-[24px] flex-none items-center justify-center overflow-hidden rounded-full ${marker ? '' : 'border border-solid border-[var(--malachite-card-border,rgb(232,232,232))]'}`}\n >\n {marker || (\n <span\n data-timeline-dot={dotTone}\n className=\"h-[8px] w-[8px] rounded-full\"\n style={{ backgroundColor: DOT_COLOR[dotTone] }}\n />\n )}\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col gap-[8px] pt-[2px]\">\n <div className=\"flex items-start justify-between gap-[12px]\">\n <div className=\"flex min-w-0 flex-wrap items-center gap-x-[8px] gap-y-[4px] [overflow-wrap:anywhere]\">\n <Text size=\"small\" fontWeight=\"semi-bold\" className=\"min-w-0\">\n {title}\n </Text>\n {stopped && <span className=\"sr-only\">, </span>}\n {stopped && (\n <Tag\n value={stoppedLabel?.trim() || 'Stopped here'}\n type=\"error\"\n fontSize=\"xsmall\"\n textTransform=\"none\"\n paddingSize=\"compact\"\n />\n )}\n </div>\n {(time || time === 0) && <span className=\"sr-only\">, </span>}\n {(time || time === 0) && (\n <Text\n size=\"xsmall\"\n color=\"secondary\"\n font=\"mono\"\n wrap={false}\n className=\"pt-[2px]\"\n >\n {time}\n </Text>\n )}\n </div>\n {children}\n </div>\n </li>\n );\n};\n\n/** A vertical sequence of steps, each with a dot on a connecting line, a title, its timing and a body. */\nconst Timeline: React.FC<TimelineProps> & { Item: typeof Item } = ({\n children,\n className = '',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n}) => (\n <ol\n // list-style: none strips list semantics in WebKit, so VoiceOver would not announce the steps.\n role=\"list\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n className={`m-0 list-none p-0 ${className}`}\n >\n {children}\n </ol>\n);\n\nTimeline.Item = Item;\n\nexport default Timeline;\nexport { Timeline };\n"],"names":["DOT_COLOR","Item","title","time","tone","marker","stopped","stoppedLabel","children","className","dotTone","jsxs","jsx","Text","Tag","Timeline","ariaLabel","ariaLabelledBy"],"mappings":";;;AAqCA,MAAMA,IAA0C;AAAA,EAC5C,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX,GAEMC,IAAoC,CAAC;AAAA,EACvC,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAChB,MAAM;AACF,QAAMC,IAAUN,MAASE,IAAU,UAAU;AAC7C,SACI,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW,+FAA+FF,CAAS;AAAA,MAEnH,UAAA;AAAA,QAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,sBAAmB;AAAA,YACnB,eAAY;AAAA,YACZ,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEd,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,eAAY;AAAA,YAEZ,WAAW,6FAA6FP,IAAS,KAAK,4EAA4E;AAAA,YAEjM,UAAAA,KACG,gBAAAO;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,qBAAmBF;AAAA,gBACnB,WAAU;AAAA,gBACV,OAAO,EAAE,iBAAiBV,EAAUU,CAAO,EAAA;AAAA,cAAE;AAAA,YAAA;AAAA,UACjD;AAAA,QAAA;AAAA,QAGR,gBAAAC,EAAC,OAAA,EAAI,WAAU,mDACX,UAAA;AAAA,UAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,+CACX,UAAA;AAAA,YAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,wFACX,UAAA;AAAA,cAAA,gBAAAC,EAACC,KAAK,MAAK,SAAQ,YAAW,aAAY,WAAU,WAC/C,UAAAX,EAAA,CACL;AAAA,cACCI,KAAW,gBAAAM,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,MAAE;AAAA,cACvCN,KACG,gBAAAM;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACG,QAAOP,KAAA,gBAAAA,EAAc,WAAU;AAAA,kBAC/B,MAAK;AAAA,kBACL,UAAS;AAAA,kBACT,eAAc;AAAA,kBACd,aAAY;AAAA,gBAAA;AAAA,cAAA;AAAA,YAChB,GAER;AAAA,aACEJ,KAAQA,MAAS,wBAAO,QAAA,EAAK,WAAU,WAAU,UAAA,MAAE;AAAA,aACnDA,KAAQA,MAAS,MACf,gBAAAS;AAAA,cAACC;AAAA,cAAA;AAAA,gBACG,MAAK;AAAA,gBACL,OAAM;AAAA,gBACN,MAAK;AAAA,gBACL,MAAM;AAAA,gBACN,WAAU;AAAA,gBAET,UAAAV;AAAA,cAAA;AAAA,YAAA;AAAA,UACL,GAER;AAAA,UACCK;AAAA,QAAA,EAAA,CACL;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ,GAGMO,IAA4D,CAAC;AAAA,EAC/D,UAAAP;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,cAAcO;AAAA,EACd,mBAAmBC;AACvB,MACI,gBAAAL;AAAA,EAAC;AAAA,EAAA;AAAA,IAEG,MAAK;AAAA,IACL,cAAYI;AAAA,IACZ,mBAAiBC;AAAA,IACjB,WAAW,qBAAqBR,CAAS;AAAA,IAExC,UAAAD;AAAA,EAAA;AACL;AAGJO,EAAS,OAAOd;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3160,6 +3160,8 @@ declare type InputVariant = 'default' | 'ghost';
|
|
|
3160
3160
|
|
|
3161
3161
|
export declare const IntegrationsIcon: React.FC<IconProps_65>;
|
|
3162
3162
|
|
|
3163
|
+
declare const Item: default_2.FC<TimelineItemProps>;
|
|
3164
|
+
|
|
3163
3165
|
export declare const Keycap: default_2.FC<KeycapProps>;
|
|
3164
3166
|
|
|
3165
3167
|
export declare interface KeycapProps {
|
|
@@ -5935,6 +5937,43 @@ export declare type TimeBarChartUnit = 'minute' | 'hour' | 'day' | 'week' | 'mon
|
|
|
5935
5937
|
|
|
5936
5938
|
declare type TimeInput = string | number | Date;
|
|
5937
5939
|
|
|
5940
|
+
/** A vertical sequence of steps, each with a dot on a connecting line, a title, its timing and a body. */
|
|
5941
|
+
export declare const Timeline: default_2.FC<TimelineProps> & {
|
|
5942
|
+
Item: typeof Item;
|
|
5943
|
+
};
|
|
5944
|
+
|
|
5945
|
+
export declare interface TimelineItemProps {
|
|
5946
|
+
title: default_2.ReactNode;
|
|
5947
|
+
/** When the step happened, shown at the right of the title, e.g. `+6 ms`. */
|
|
5948
|
+
time?: default_2.ReactNode;
|
|
5949
|
+
/**
|
|
5950
|
+
* Paints the dot: `error` on a `stopped` step, else `neutral`, unless set. Colour alone, so the
|
|
5951
|
+
* title has to say what happened. Ignored when `marker` is set.
|
|
5952
|
+
*/
|
|
5953
|
+
tone?: TimelineTone;
|
|
5954
|
+
/** Replaces the ringed dot with a 24px circle of its own, e.g. the caller's logo at size 24. Decorative: hidden from assistive tech. */
|
|
5955
|
+
marker?: default_2.ReactNode;
|
|
5956
|
+
/** Marks the step the flow ended on, with a badge after the title. */
|
|
5957
|
+
stopped?: boolean;
|
|
5958
|
+
/** The badge's text when `stopped`. Empty falls back to "Stopped here". */
|
|
5959
|
+
stoppedLabel?: string;
|
|
5960
|
+
/**
|
|
5961
|
+
* The step's detail, below the title: tags, copy, payloads. Each child is a row of its own, 8px
|
|
5962
|
+
* apart, and unstyled, so wrap copy in `Typography.Text`.
|
|
5963
|
+
*/
|
|
5964
|
+
children?: default_2.ReactNode;
|
|
5965
|
+
className?: string;
|
|
5966
|
+
}
|
|
5967
|
+
|
|
5968
|
+
export declare interface TimelineProps {
|
|
5969
|
+
children: default_2.ReactNode;
|
|
5970
|
+
className?: string;
|
|
5971
|
+
'aria-label'?: string;
|
|
5972
|
+
'aria-labelledby'?: string;
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5975
|
+
export declare type TimelineTone = 'neutral' | 'info' | 'success' | 'warning' | 'error';
|
|
5976
|
+
|
|
5938
5977
|
export declare interface ToastApi {
|
|
5939
5978
|
show: (options: ToastOptions) => void;
|
|
5940
5979
|
}
|