@stackone/malachite 2.2.3 → 2.4.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 +3 -2
- package/dist/{CodeBlockHighlighter-CqiWgzsB.js → CodeBlockHighlighter-BMhfTnVI.js} +2 -2
- package/dist/{CodeBlockHighlighter-CqiWgzsB.js.map → CodeBlockHighlighter-BMhfTnVI.js.map} +1 -1
- package/dist/{index-DFSCup2y.js → index-xzf88_tq.js} +3711 -3492
- package/dist/index-xzf88_tq.js.map +1 -0
- package/dist/index.d.ts +40 -4
- package/dist/index.js +67 -66
- package/package.json +1 -1
- package/dist/index-DFSCup2y.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -926,6 +926,32 @@ declare interface IconProps {
|
|
|
926
926
|
*/
|
|
927
927
|
export declare function initializeTheme(): void;
|
|
928
928
|
|
|
929
|
+
/**
|
|
930
|
+
* A confirmation asked on the control that triggered it, rather than in a modal.
|
|
931
|
+
*
|
|
932
|
+
* With `anchorTo` the chip places and tracks itself. Without it the chip renders in flow, and
|
|
933
|
+
* must not sit in a container that clips its overflow — `Table`'s header cells among them.
|
|
934
|
+
*/
|
|
935
|
+
export declare const InlineConfirm: default_2.FC<InlineConfirmProps>;
|
|
936
|
+
|
|
937
|
+
export declare interface InlineConfirmProps {
|
|
938
|
+
/** Mounts the chip and moves focus into it. Nothing renders while false. */
|
|
939
|
+
open: boolean;
|
|
940
|
+
/** What is being confirmed, e.g. "Confirm Remove All". Becomes the chip's name. */
|
|
941
|
+
message: string;
|
|
942
|
+
/** Defaults to "Yes". */
|
|
943
|
+
confirmLabel?: string;
|
|
944
|
+
onConfirm: () => void;
|
|
945
|
+
/** Called on Escape, on a click outside, and when the anchor scrolls out of view. */
|
|
946
|
+
onDismiss: () => void;
|
|
947
|
+
/** The control being answered for. The chip pins to its left and follows it. */
|
|
948
|
+
anchorTo?: default_2.RefObject<HTMLElement | null>;
|
|
949
|
+
/** Replaces the leading spinner. `null` drops it. */
|
|
950
|
+
icon?: default_2.ReactNode;
|
|
951
|
+
className?: string;
|
|
952
|
+
style?: default_2.CSSProperties;
|
|
953
|
+
}
|
|
954
|
+
|
|
929
955
|
export declare const Input: default_2.FC<InputProps>;
|
|
930
956
|
|
|
931
957
|
declare interface InputProps {
|
|
@@ -1286,6 +1312,14 @@ export declare interface MalachiteTheme {
|
|
|
1286
1312
|
foreground: string;
|
|
1287
1313
|
mutedForeground: string;
|
|
1288
1314
|
divider: string;
|
|
1315
|
+
border: string;
|
|
1316
|
+
primaryBorder: string;
|
|
1317
|
+
shadow: string;
|
|
1318
|
+
};
|
|
1319
|
+
inlineConfirm: {
|
|
1320
|
+
background: string;
|
|
1321
|
+
foreground: string;
|
|
1322
|
+
divider: string;
|
|
1289
1323
|
shadow: string;
|
|
1290
1324
|
};
|
|
1291
1325
|
dropdown: {
|
|
@@ -1650,6 +1684,7 @@ export declare interface PartialMalachiteTheme {
|
|
|
1650
1684
|
selectableCard?: Partial<MalachiteTheme['colors']['selectableCard']>;
|
|
1651
1685
|
cardStrip?: Partial<MalachiteTheme['colors']['cardStrip']>;
|
|
1652
1686
|
selectionBar?: Partial<MalachiteTheme['colors']['selectionBar']>;
|
|
1687
|
+
inlineConfirm?: Partial<MalachiteTheme['colors']['inlineConfirm']>;
|
|
1653
1688
|
dropdown?: Partial<MalachiteTheme['colors']['dropdown']>;
|
|
1654
1689
|
tag?: {
|
|
1655
1690
|
[K in keyof MalachiteTheme['colors']['tag']]?: Partial<MalachiteTheme['colors']['tag'][K]>;
|
|
@@ -1874,6 +1909,8 @@ export declare interface SelectableCardProps {
|
|
|
1874
1909
|
title: string;
|
|
1875
1910
|
/** Leading glyph on the title line, e.g. a library/book icon. */
|
|
1876
1911
|
titleIcon?: default_2.ReactNode;
|
|
1912
|
+
/** Pins the card as the account default, marked beside the title. */
|
|
1913
|
+
isDefault?: boolean;
|
|
1877
1914
|
/** Palette only — gradient, borders, indicator and eyebrow; position is settled by the strip. */
|
|
1878
1915
|
variant?: SelectableCardVariant;
|
|
1879
1916
|
/** Small label above the title ("Profile", "Explore"). */
|
|
@@ -1928,19 +1965,18 @@ export declare const SelectionBar: default_2.FC<SelectionBarProps>;
|
|
|
1928
1965
|
export declare interface SelectionBarAction {
|
|
1929
1966
|
label: string;
|
|
1930
1967
|
onClick: () => void;
|
|
1931
|
-
/** 'primary' commits the pending change; '
|
|
1968
|
+
/** 'primary' commits the pending change; 'secondary' (the default) is a filled chip;
|
|
1969
|
+
* 'quiet' is unfilled and takes a wash on hover. */
|
|
1932
1970
|
emphasis?: SelectionBarEmphasis;
|
|
1933
1971
|
icon?: default_2.ReactNode;
|
|
1934
1972
|
iconPosition?: 'start' | 'end';
|
|
1935
1973
|
disabled?: boolean;
|
|
1936
|
-
/** Renders a
|
|
1974
|
+
/** Renders a separator glyph before this action. */
|
|
1937
1975
|
dividerBefore?: boolean;
|
|
1938
1976
|
}
|
|
1939
1977
|
|
|
1940
1978
|
/** A `value + label` pair, e.g. `{ value: 3, label: 'Added' }`. */
|
|
1941
1979
|
export declare interface SelectionBarCount {
|
|
1942
|
-
/** Not `ReactNode`: the live region reads this as text, so a node announces as
|
|
1943
|
-
* "[object Object]". */
|
|
1944
1980
|
value: string | number;
|
|
1945
1981
|
label: string;
|
|
1946
1982
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as t, d as o, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as S, l as m, m as T, n as u, o as g, p as h, q as C, r as F, s as B, D as y, t as w, u as x, v as A, F as
|
|
1
|
+
import { A as s, c as t, d as o, e as i, f as r, g as n, B as l, h as p, i as d, j as c, k as S, l as m, m as T, n as u, o as g, p as h, q as C, r as F, s as B, D as y, t as w, u as x, v as A, F as L, w as b, x as f, y as P, z as k, E as v, G as D, H as z, I, J as R, K as M, L as G, M as H, N, O as V, P as E, Q as J, R as K, S as j, T as q, U as O, 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 ta, a6 as oa, a7 as ia, a8 as ra, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as Sa, af as ma, ag as Ta, ah as ua, ai as ga, aj as ha, ak as Ca, al as Fa, am as Ba, an as ya, ao as wa, ap as xa, aq as Aa, ar as La, as as ba, at as fa, au as Pa, av as ka, aw as va, ax as Da, ay as za, az as Ia, aA as Ra, aB as Ma, aC as Ga, aD as Ha, aE as Na, aF as Va, aG as Ea, aH as Ja, aI as Ka, aJ as ja, aK as qa, aL as Oa } from "./index-xzf88_tq.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
t as ActionBar,
|
|
@@ -23,79 +23,80 @@ export {
|
|
|
23
23
|
w as Divider,
|
|
24
24
|
x as DividerVariant,
|
|
25
25
|
A as Dropdown,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
L as FieldBlock,
|
|
27
|
+
b as FieldGroup,
|
|
28
|
+
f as Flex,
|
|
29
|
+
P as FlexAlign,
|
|
30
30
|
k as FlexDirection,
|
|
31
31
|
v as FlexGapSize,
|
|
32
32
|
D as FlexJustify,
|
|
33
33
|
z as FooterLinks,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
I as FooterNav,
|
|
35
|
+
R as Form,
|
|
36
36
|
M as FormItem,
|
|
37
37
|
G as FormSectionHeading,
|
|
38
|
-
H as
|
|
39
|
-
N as
|
|
40
|
-
V as
|
|
41
|
-
E as
|
|
42
|
-
J as
|
|
43
|
-
K as
|
|
44
|
-
j as
|
|
45
|
-
q as
|
|
46
|
-
O as
|
|
47
|
-
W as
|
|
48
|
-
Q as
|
|
49
|
-
U as
|
|
50
|
-
X as
|
|
51
|
-
Y as
|
|
52
|
-
Z as
|
|
53
|
-
$ as
|
|
54
|
-
_ as
|
|
55
|
-
aa as
|
|
56
|
-
ea as
|
|
57
|
-
sa as
|
|
58
|
-
ta as
|
|
59
|
-
oa as
|
|
60
|
-
ia as
|
|
61
|
-
ra as
|
|
62
|
-
na as
|
|
63
|
-
la as
|
|
64
|
-
pa as
|
|
65
|
-
da as
|
|
66
|
-
ca as
|
|
67
|
-
Sa as
|
|
68
|
-
ma as
|
|
69
|
-
Ta as
|
|
70
|
-
ua as
|
|
71
|
-
ga as
|
|
72
|
-
ha as
|
|
73
|
-
Ca as
|
|
74
|
-
Fa as
|
|
75
|
-
Ba as
|
|
76
|
-
ya as
|
|
77
|
-
wa as
|
|
78
|
-
xa as
|
|
79
|
-
Aa as
|
|
38
|
+
H as InlineConfirm,
|
|
39
|
+
N as Input,
|
|
40
|
+
V as KeyValueList,
|
|
41
|
+
E as Link,
|
|
42
|
+
J as LoadingBar,
|
|
43
|
+
K as MalachiteContext,
|
|
44
|
+
j as MultiSelect,
|
|
45
|
+
q as NumberTag,
|
|
46
|
+
O as OverflowRow,
|
|
47
|
+
W as Padded,
|
|
48
|
+
Q as PaddingSize,
|
|
49
|
+
U as PageActions,
|
|
50
|
+
X as PageLayout,
|
|
51
|
+
Y as PillButton,
|
|
52
|
+
Z as PreviewTree,
|
|
53
|
+
$ as PreviewTreeRow,
|
|
54
|
+
_ as Progress,
|
|
55
|
+
aa as Radio,
|
|
56
|
+
ea as Search,
|
|
57
|
+
sa as SegmentedControl,
|
|
58
|
+
ta as SelectableCard,
|
|
59
|
+
oa as SelectionBar,
|
|
60
|
+
ia as SettingRow,
|
|
61
|
+
ra as ShadowEscape,
|
|
62
|
+
na as SidePanel,
|
|
63
|
+
la as SidePanelNavFooter,
|
|
64
|
+
pa as Skeleton,
|
|
65
|
+
da as Spacer,
|
|
66
|
+
ca as SpacingSize,
|
|
67
|
+
Sa as Spinner,
|
|
68
|
+
ma as SplitScreenLayout,
|
|
69
|
+
Ta as StatBadge,
|
|
70
|
+
ua as Statistic,
|
|
71
|
+
ga as StatusBadge,
|
|
72
|
+
ha as StepTabs,
|
|
73
|
+
Ca as Stepper,
|
|
74
|
+
Fa as Surface,
|
|
75
|
+
Ba as SurfaceRow,
|
|
76
|
+
ya as Swatch,
|
|
77
|
+
wa as Table,
|
|
78
|
+
xa as Tabs,
|
|
79
|
+
Aa as Tag,
|
|
80
|
+
La as TextArea,
|
|
80
81
|
ba as ThemeScope,
|
|
81
|
-
|
|
82
|
+
fa as Toggle,
|
|
82
83
|
Pa as Toolbar,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
ka as Tooltip,
|
|
85
|
+
va as TruncatedTooltip,
|
|
86
|
+
Da as Typography,
|
|
87
|
+
za as WizardLayout,
|
|
88
|
+
Ia as applyCustomTheme,
|
|
88
89
|
Ra as applyDarkTheme,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
Ma as applyLightTheme,
|
|
91
|
+
Ga as applyTheme,
|
|
92
|
+
Ha as applyThemeVars,
|
|
93
|
+
Na as buildActionBarMenuItems,
|
|
94
|
+
Va as darkTheme,
|
|
95
|
+
Ea as defaultTheme,
|
|
96
|
+
Ja as getCurrentTheme,
|
|
97
|
+
Ka as getCurrentThemeMode,
|
|
98
|
+
ja as initializeTheme,
|
|
99
|
+
qa as resetTheme,
|
|
100
|
+
Oa as toggleTheme
|
|
100
101
|
};
|
|
101
102
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED