@stackone/malachite 2.16.1 → 2.18.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 +4 -4
- package/dist/{CodeBlockHighlighter-CvA6nVfU.js → CodeBlockHighlighter-D5tk721L.js} +2 -2
- package/dist/{CodeBlockHighlighter-CvA6nVfU.js.map → CodeBlockHighlighter-D5tk721L.js.map} +1 -1
- package/dist/{index-YNe-JV3F.js → index-DAhukADg.js} +2696 -2645
- package/dist/index-DAhukADg.js.map +1 -0
- package/dist/index.d.ts +31 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/index-YNe-JV3F.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,14 @@ export declare interface ActionMenuProps {
|
|
|
113
113
|
triggerIcon?: default_2.ReactNode;
|
|
114
114
|
minWidth?: number;
|
|
115
115
|
size?: 'small' | 'xsmall';
|
|
116
|
+
/**
|
|
117
|
+
* Shows `label` beside the icon instead of leaving it to the accessible name. For a menu
|
|
118
|
+
* that is the point of its corner rather than an overflow for a row that already reads —
|
|
119
|
+
* a kebab nobody can name is only safe when the row it belongs to says what it acts on.
|
|
120
|
+
*/
|
|
121
|
+
showLabel?: boolean;
|
|
122
|
+
/** Trigger's Button variant. Defaults to `outline`, the overflow-kebab look. */
|
|
123
|
+
variant?: ButtonVariant;
|
|
116
124
|
}
|
|
117
125
|
|
|
118
126
|
export declare const Alert: default_2.FC<AlertProps>;
|
|
@@ -127,7 +135,7 @@ declare interface AlertProps {
|
|
|
127
135
|
onToggle?: (expanded: boolean) => void;
|
|
128
136
|
}
|
|
129
137
|
|
|
130
|
-
export declare type AlertType = 'info' | 'success' | 'error' | 'warning';
|
|
138
|
+
export declare type AlertType = 'info' | 'success' | 'error' | 'warning' | 'assistant';
|
|
131
139
|
|
|
132
140
|
export declare const AppLogo: default_2.FC<AppLogoProps>;
|
|
133
141
|
|
|
@@ -311,7 +319,13 @@ export declare type ButtonVariant = 'filled' | 'outline'
|
|
|
311
319
|
* patterned surface, where `outline`'s transparent background lets that surface through
|
|
312
320
|
* and the control stops reading as a button.
|
|
313
321
|
*/
|
|
314
|
-
| 'surface'
|
|
322
|
+
| 'surface'
|
|
323
|
+
/**
|
|
324
|
+
* The violet the assistant is named in elsewhere — for a control that hands work to it, or
|
|
325
|
+
* acts on what it produced. Provenance, not a severity: it says who is being asked, not
|
|
326
|
+
* that anything is wrong.
|
|
327
|
+
*/
|
|
328
|
+
| 'assistant' | 'destructive' | 'success' | 'warning' | 'error' | 'ghost' | 'no-style';
|
|
315
329
|
|
|
316
330
|
export declare const Card: default_2.FC<CardProps>;
|
|
317
331
|
|
|
@@ -1647,6 +1661,12 @@ export declare interface MalachiteTheme {
|
|
|
1647
1661
|
background: string;
|
|
1648
1662
|
foreground: string;
|
|
1649
1663
|
};
|
|
1664
|
+
/** Says a machine wrote this, not that anything is wrong — the violet the
|
|
1665
|
+
* assistant is named in elsewhere, not a fifth severity. */
|
|
1666
|
+
assistant: {
|
|
1667
|
+
background: string;
|
|
1668
|
+
foreground: string;
|
|
1669
|
+
};
|
|
1650
1670
|
};
|
|
1651
1671
|
tooltip: {
|
|
1652
1672
|
background: string;
|
|
@@ -1793,6 +1813,9 @@ export declare interface MalachiteTheme {
|
|
|
1793
1813
|
border: string;
|
|
1794
1814
|
primaryBorder: string;
|
|
1795
1815
|
shadow: string;
|
|
1816
|
+
noticeBackground: string;
|
|
1817
|
+
noticeForeground: string;
|
|
1818
|
+
noticeShadow: string;
|
|
1796
1819
|
};
|
|
1797
1820
|
inlineConfirm: {
|
|
1798
1821
|
background: string;
|
|
@@ -2626,6 +2649,12 @@ export declare interface SelectionBarProps {
|
|
|
2626
2649
|
/** 'sticky' keeps the bar in view while its container scrolls; render it as the last child
|
|
2627
2650
|
* of that content, with no `overflow: hidden` on any ancestor. */
|
|
2628
2651
|
placement?: 'sticky' | 'inline';
|
|
2652
|
+
/**
|
|
2653
|
+
* Wraps the bar in a warning sleeve carrying this message, for state the bar is
|
|
2654
|
+
* reporting rather than an action it offers — e.g. that the selection is unsaved.
|
|
2655
|
+
* It leads the announcement. An empty string renders no sleeve.
|
|
2656
|
+
*/
|
|
2657
|
+
notice?: string;
|
|
2629
2658
|
'aria-label'?: string;
|
|
2630
2659
|
'aria-labelledby'?: string;
|
|
2631
2660
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as T, n as g, o as u, p as h, q as C, r as F, s as B, t as w, u as y, v as f, D as x, w as A, x as L, y as P, F as b, z as v, E as k, G as D, H as M, I as R, J as z, K as I, L as N, M as G, N as H, O as V, P as E, Q as J, R as K, S as O, T as j, U as q, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as Ta, ah as ga, ai as ua, aj as ha, ak as Ca, al as Fa, am as Ba, an as wa, ao as ya, ap as fa, aq as xa, ar as Aa, as as La, at as Pa, au as ba, av as va, aw as ka, ax as Da, ay as Ma, az as Ra, aA as za, aB as Ia, aC as Na, aD as Ga, aE as Ha, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as Oa, aK as ja, aL as qa, aM as Wa, aN as Qa, aO as Ua, aP as Xa } from "./index-
|
|
1
|
+
import { A as s, c as o, d as t, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as m, l as S, m as T, n as g, o as u, p as h, q as C, r as F, s as B, t as w, u as y, v as f, D as x, w as A, x as L, y as P, F as b, z as v, E as k, G as D, H as M, I as R, J as z, K as I, L as N, M as G, N as H, O as V, P as E, Q as J, R as K, S as O, T as j, U as q, V as W, W as Q, X as U, Y as X, Z as Y, $ as Z, a0 as $, a1 as _, a2 as aa, a3 as ea, a4 as sa, a5 as oa, a6 as ta, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Sa, ag as Ta, ah as ga, ai as ua, aj as ha, ak as Ca, al as Fa, am as Ba, an as wa, ao as ya, ap as fa, aq as xa, ar as Aa, as as La, at as Pa, au as ba, av as va, aw as ka, ax as Da, ay as Ma, az as Ra, aA as za, aB as Ia, aC as Na, aD as Ga, aE as Ha, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as Oa, aK as ja, aL as qa, aM as Wa, aN as Qa, aO as Ua, aP as Xa } from "./index-DAhukADg.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
o as ActionBar,
|
package/package.json
CHANGED