@stackone/malachite 2.3.0 → 2.5.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-CHMkQf2N.js → CodeBlockHighlighter-hFoBT9ME.js} +2 -2
- package/dist/{CodeBlockHighlighter-CHMkQf2N.js.map → CodeBlockHighlighter-hFoBT9ME.js.map} +1 -1
- package/dist/{index-DFug9M0s.js → index-Bj2PWHUO.js} +3735 -3516
- package/dist/index-Bj2PWHUO.js.map +1 -0
- package/dist/index.d.ts +39 -5
- package/dist/index.js +67 -66
- package/package.json +1 -1
- package/dist/index-DFug9M0s.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]>;
|
|
@@ -1930,19 +1965,18 @@ export declare const SelectionBar: default_2.FC<SelectionBarProps>;
|
|
|
1930
1965
|
export declare interface SelectionBarAction {
|
|
1931
1966
|
label: string;
|
|
1932
1967
|
onClick: () => void;
|
|
1933
|
-
/** '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. */
|
|
1934
1970
|
emphasis?: SelectionBarEmphasis;
|
|
1935
1971
|
icon?: default_2.ReactNode;
|
|
1936
1972
|
iconPosition?: 'start' | 'end';
|
|
1937
1973
|
disabled?: boolean;
|
|
1938
|
-
/** Renders a
|
|
1974
|
+
/** Renders a separator glyph before this action. */
|
|
1939
1975
|
dividerBefore?: boolean;
|
|
1940
1976
|
}
|
|
1941
1977
|
|
|
1942
1978
|
/** A `value + label` pair, e.g. `{ value: 3, label: 'Added' }`. */
|
|
1943
1979
|
export declare interface SelectionBarCount {
|
|
1944
|
-
/** Not `ReactNode`: the live region reads this as text, so a node announces as
|
|
1945
|
-
* "[object Object]". */
|
|
1946
1980
|
value: string | number;
|
|
1947
1981
|
label: string;
|
|
1948
1982
|
}
|
|
@@ -2547,7 +2581,7 @@ export declare interface ThemeScopeProps {
|
|
|
2547
2581
|
children?: default_2.ReactNode;
|
|
2548
2582
|
}
|
|
2549
2583
|
|
|
2550
|
-
export declare const Toggle: default_2.
|
|
2584
|
+
export declare const Toggle: default_2.ForwardRefExoticComponent<ToggleProps & default_2.RefAttributes<HTMLElement>>;
|
|
2551
2585
|
|
|
2552
2586
|
declare interface ToggleProps {
|
|
2553
2587
|
checked: boolean;
|
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-Bj2PWHUO.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