@stackone/malachite 0.68.0 → 0.69.1
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 +2 -0
- package/dist/{CodeBlockHighlighter-BYwemPlk.js → CodeBlockHighlighter-DcVNQ5Ff.js} +2 -2
- package/dist/{CodeBlockHighlighter-BYwemPlk.js.map → CodeBlockHighlighter-DcVNQ5Ff.js.map} +1 -1
- package/dist/{index-BRH2BT_r.js → index-CWr5plZr.js} +2741 -2383
- package/dist/index-CWr5plZr.js.map +1 -0
- package/dist/index.d.ts +105 -6
- package/dist/index.js +76 -74
- package/package.json +1 -1
- package/dist/index-BRH2BT_r.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ declare interface AlertProps {
|
|
|
127
127
|
onToggle?: (expanded: boolean) => void;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
declare type AlertType = 'info' | 'success' | 'error' | 'warning';
|
|
130
|
+
export declare type AlertType = 'info' | 'success' | 'error' | 'warning';
|
|
131
131
|
|
|
132
132
|
export declare const AppLogo: default_2.FC<AppLogoProps>;
|
|
133
133
|
|
|
@@ -223,9 +223,25 @@ declare interface BaseSkeletonProps {
|
|
|
223
223
|
className?: string;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
export declare interface BreadcrumbLink {
|
|
227
|
+
name: default_2.ReactNode;
|
|
228
|
+
url?: string;
|
|
229
|
+
isRoot?: boolean;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export declare const Breadcrumbs: default_2.FC<BreadcrumbsProps>;
|
|
233
|
+
|
|
234
|
+
export declare interface BreadcrumbsProps {
|
|
235
|
+
links: BreadcrumbLink[];
|
|
236
|
+
actions?: PageAction[];
|
|
237
|
+
renderLink?: RenderBreadcrumbLink;
|
|
238
|
+
className?: string;
|
|
239
|
+
style?: default_2.CSSProperties;
|
|
240
|
+
}
|
|
241
|
+
|
|
226
242
|
export declare const buildActionBarMenuItems: (buttons: ActionBarItem[]) => ActionMenuItem[];
|
|
227
243
|
|
|
228
|
-
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
244
|
+
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
229
245
|
|
|
230
246
|
declare interface ButtonDefinition {
|
|
231
247
|
label: string;
|
|
@@ -276,14 +292,18 @@ declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonE
|
|
|
276
292
|
tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
277
293
|
iconOnly?: boolean;
|
|
278
294
|
children?: default_2.ReactNode;
|
|
279
|
-
onClick?: default_2.MouseEventHandler<HTMLButtonElement>;
|
|
295
|
+
onClick?: default_2.MouseEventHandler<HTMLButtonElement & HTMLAnchorElement>;
|
|
296
|
+
/** Renders the button as a real anchor, so a link action is never an <a> nested in a <button>. */
|
|
297
|
+
href?: string;
|
|
298
|
+
target?: default_2.HTMLAttributeAnchorTarget;
|
|
299
|
+
rel?: string;
|
|
280
300
|
}
|
|
281
301
|
|
|
282
|
-
declare type ButtonRadius = 'md' | 'lg' | 'xl';
|
|
302
|
+
export declare type ButtonRadius = 'md' | 'lg' | 'xl';
|
|
283
303
|
|
|
284
|
-
declare type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
304
|
+
export declare type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
285
305
|
|
|
286
|
-
declare type ButtonVariant = 'filled' | 'outline' | 'destructive' | 'success' | 'warning' | 'error' | 'ghost' | 'no-style';
|
|
306
|
+
export declare type ButtonVariant = 'filled' | 'outline' | 'destructive' | 'success' | 'warning' | 'error' | 'ghost' | 'no-style';
|
|
287
307
|
|
|
288
308
|
export declare const Card: default_2.FC<CardProps>;
|
|
289
309
|
|
|
@@ -660,6 +680,21 @@ declare interface EllipsisTextProps {
|
|
|
660
680
|
style?: default_2.CSSProperties;
|
|
661
681
|
}
|
|
662
682
|
|
|
683
|
+
export declare interface EmptyLayoutProps {
|
|
684
|
+
title?: string;
|
|
685
|
+
children: default_2.ReactNode;
|
|
686
|
+
centered?: boolean;
|
|
687
|
+
uniformPadding?: boolean;
|
|
688
|
+
headerActions?: default_2.ReactNode;
|
|
689
|
+
background?: default_2.ReactNode;
|
|
690
|
+
/** Demotes the default `main` landmark — pass e.g. `region` when the app owns its own. */
|
|
691
|
+
role?: default_2.AriaRole;
|
|
692
|
+
'aria-label'?: string;
|
|
693
|
+
'aria-labelledby'?: string;
|
|
694
|
+
className?: string;
|
|
695
|
+
style?: default_2.CSSProperties;
|
|
696
|
+
}
|
|
697
|
+
|
|
663
698
|
export declare const Flex: default_2.FC<FlexProps>;
|
|
664
699
|
|
|
665
700
|
export declare enum FlexAlign {
|
|
@@ -1357,6 +1392,28 @@ declare type PaddingSize_2 = 'xsmall' | 'small' | 'medium' | 'large' | 'none';
|
|
|
1357
1392
|
|
|
1358
1393
|
declare type PaddingSize_3 = 'default' | 'compact';
|
|
1359
1394
|
|
|
1395
|
+
export declare interface PageAction {
|
|
1396
|
+
label: string;
|
|
1397
|
+
/** Ignored when `href` is set. */
|
|
1398
|
+
onClick?: () => void;
|
|
1399
|
+
disabled?: boolean;
|
|
1400
|
+
variant?: ButtonVariant;
|
|
1401
|
+
icon?: default_2.ReactNode;
|
|
1402
|
+
href?: string;
|
|
1403
|
+
/** Defaults to `_blank`. */
|
|
1404
|
+
target?: '_self' | '_blank';
|
|
1405
|
+
tooltip?: string;
|
|
1406
|
+
tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
1407
|
+
dividerBefore?: boolean;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
declare type PageContentGap = 'small' | 'medium' | 'large' | 'xlarge';
|
|
1411
|
+
|
|
1412
|
+
export declare const PageLayout: {
|
|
1413
|
+
Regular: FC<RegularLayoutProps>;
|
|
1414
|
+
Empty: FC<EmptyLayoutProps>;
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1360
1417
|
declare interface PageTitleProps {
|
|
1361
1418
|
children: default_2.ReactNode;
|
|
1362
1419
|
margin?: string;
|
|
@@ -1479,6 +1536,48 @@ export declare interface RadioProps {
|
|
|
1479
1536
|
id?: string;
|
|
1480
1537
|
}
|
|
1481
1538
|
|
|
1539
|
+
export declare interface RegularLayoutProps {
|
|
1540
|
+
breadcrumbLinks?: BreadcrumbLink[];
|
|
1541
|
+
breadcrumbActions?: PageAction[];
|
|
1542
|
+
renderLink?: RenderBreadcrumbLink;
|
|
1543
|
+
title?: default_2.ReactNode;
|
|
1544
|
+
titleSuffix?: default_2.ReactNode;
|
|
1545
|
+
subtitle?: string;
|
|
1546
|
+
description?: default_2.ReactNode;
|
|
1547
|
+
buttons?: PageAction[];
|
|
1548
|
+
/**
|
|
1549
|
+
* Hides the buttons and skeletons the title. `subtitle` and `description` are only
|
|
1550
|
+
* skeletoned when those props are also passed.
|
|
1551
|
+
*/
|
|
1552
|
+
loading?: boolean;
|
|
1553
|
+
children: default_2.ReactNode;
|
|
1554
|
+
centered?: boolean;
|
|
1555
|
+
noPadding?: boolean;
|
|
1556
|
+
contentGap?: PageContentGap;
|
|
1557
|
+
alert?: {
|
|
1558
|
+
message: string;
|
|
1559
|
+
type?: AlertType;
|
|
1560
|
+
};
|
|
1561
|
+
/** Demotes the default `main` landmark — pass e.g. `region` when the app owns its own. */
|
|
1562
|
+
role?: default_2.AriaRole;
|
|
1563
|
+
'aria-label'?: string;
|
|
1564
|
+
'aria-labelledby'?: string;
|
|
1565
|
+
className?: string;
|
|
1566
|
+
style?: default_2.CSSProperties;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* Renders a crumb or the back button through the app's own link component, spreading every
|
|
1571
|
+
* field onto it. A client-side-routed consumer MUST pass this, or navigation breaks.
|
|
1572
|
+
*/
|
|
1573
|
+
declare type RenderBreadcrumbLink = (props: {
|
|
1574
|
+
href: string;
|
|
1575
|
+
children: default_2.ReactNode;
|
|
1576
|
+
className?: string;
|
|
1577
|
+
'aria-current'?: 'page';
|
|
1578
|
+
'aria-label'?: string;
|
|
1579
|
+
}) => default_2.ReactNode;
|
|
1580
|
+
|
|
1482
1581
|
/**
|
|
1483
1582
|
* Reset theme to default values
|
|
1484
1583
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, c as t, d as o, e as r, f as i, g as n, B as l, h as p, i as d, j as
|
|
1
|
+
import { A as s, c as t, d as o, e as r, f as i, g as n, B as l, h as p, i as d, j as c, k as m, l as T, m as S, n as u, o as g, p as h, q as C, r as y, s as B, D as w, t as x, u as F, v as A, F as L, w as b, x as f, y as v, z as P, E as k, G as D, H as z, I as M, J as R, K as I, L as N, M as V, N as j, O as q, P as E, Q as G, R as H, S as J, T as K, 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 ra, a8 as ia, a9 as na, aa as la, ab as pa, ac as da, ad as ca, ae as ma, af as Ta, ag as Sa, ah as ua, ai as ga, aj as ha, ak as Ca, al as ya, am as Ba, an as wa, ao as xa, ap as Fa, aq as Aa, ar as La, as as ba, at as fa, au as va, av as Pa, aw as ka, ax as Da, ay as za, az as Ma, aA as Ra, aB as Ia, aC as Na, aD as Va } from "./index-CWr5plZr.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Accordion,
|
|
4
4
|
t as ActionBar,
|
|
@@ -7,86 +7,88 @@ export {
|
|
|
7
7
|
i as AppLogo,
|
|
8
8
|
n as Avatar,
|
|
9
9
|
l as BaseFormComponent,
|
|
10
|
-
p as
|
|
11
|
-
d as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
S as
|
|
16
|
-
u as
|
|
10
|
+
p as Breadcrumbs,
|
|
11
|
+
d as Button,
|
|
12
|
+
c as ButtonList,
|
|
13
|
+
m as Card,
|
|
14
|
+
T as CardStrip,
|
|
15
|
+
S as Checkbox,
|
|
16
|
+
u as ClampText,
|
|
17
|
+
g as CodeBlock,
|
|
17
18
|
h as CollapsibleSection,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
C as Confetti,
|
|
20
|
+
y as ConnectionHeader,
|
|
21
|
+
B as CustomIcons,
|
|
21
22
|
w as DefinitionRow,
|
|
22
23
|
x as Divider,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
F as DividerVariant,
|
|
25
|
+
A as Dropdown,
|
|
26
|
+
L as Flex,
|
|
27
|
+
b as FlexAlign,
|
|
28
|
+
f as FlexDirection,
|
|
29
|
+
v as FlexGapSize,
|
|
30
|
+
P as FlexJustify,
|
|
30
31
|
k as FooterLinks,
|
|
31
|
-
|
|
32
|
+
D as FooterNav,
|
|
32
33
|
z as Form,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
34
|
+
M as FormItem,
|
|
35
|
+
R as Input,
|
|
36
|
+
I as KeyValueList,
|
|
37
|
+
N as Link,
|
|
38
|
+
V as LoadingBar,
|
|
39
|
+
j as MalachiteContext,
|
|
40
|
+
q as MultiSelect,
|
|
41
|
+
E as NumberTag,
|
|
42
|
+
G as OverflowRow,
|
|
43
|
+
H as Padded,
|
|
44
|
+
J as PaddingSize,
|
|
45
|
+
K as PageLayout,
|
|
46
|
+
O as PillButton,
|
|
47
|
+
W as PreviewTree,
|
|
48
|
+
Q as PreviewTreeRow,
|
|
49
|
+
U as Progress,
|
|
50
|
+
X as Radio,
|
|
51
|
+
Y as Search,
|
|
52
|
+
Z as SegmentedControl,
|
|
53
|
+
$ as SelectableCard,
|
|
54
|
+
_ as ShadowEscape,
|
|
55
|
+
aa as SidePanel,
|
|
56
|
+
ea as SidePanelNavFooter,
|
|
57
|
+
sa as Skeleton,
|
|
58
|
+
ta as Spacer,
|
|
59
|
+
oa as SpacingSize,
|
|
60
|
+
ra as Spinner,
|
|
61
|
+
ia as SplitScreenLayout,
|
|
62
|
+
na as StatBadge,
|
|
63
|
+
la as Statistic,
|
|
64
|
+
pa as StatusBadge,
|
|
65
|
+
da as Stepper,
|
|
66
|
+
ca as Surface,
|
|
67
|
+
ma as SurfaceRow,
|
|
66
68
|
Ta as Swatch,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
Sa as Table,
|
|
70
|
+
ua as Tabs,
|
|
71
|
+
ga as Tag,
|
|
72
|
+
ha as TextArea,
|
|
73
|
+
Ca as ThemeScope,
|
|
74
|
+
ya as Toggle,
|
|
75
|
+
Ba as Toolbar,
|
|
76
|
+
wa as Tooltip,
|
|
77
|
+
xa as TruncatedTooltip,
|
|
78
|
+
Fa as Typography,
|
|
79
|
+
Aa as WizardLayout,
|
|
80
|
+
La as applyCustomTheme,
|
|
81
|
+
ba as applyDarkTheme,
|
|
80
82
|
fa as applyLightTheme,
|
|
81
83
|
va as applyTheme,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
Pa as applyThemeVars,
|
|
85
|
+
ka as buildActionBarMenuItems,
|
|
86
|
+
Da as darkTheme,
|
|
87
|
+
za as defaultTheme,
|
|
88
|
+
Ma as getCurrentTheme,
|
|
89
|
+
Ra as getCurrentThemeMode,
|
|
90
|
+
Ia as initializeTheme,
|
|
91
|
+
Na as resetTheme,
|
|
92
|
+
Va as toggleTheme
|
|
91
93
|
};
|
|
92
94
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED