@stackone/malachite 0.35.2 → 0.36.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/dist/index.d.ts +116 -1
- package/dist/index.js +2231 -1838
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,18 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
8
8
|
import { ReactNode } from 'react';
|
|
9
9
|
import { UseFormReturn } from 'react-hook-form';
|
|
10
10
|
|
|
11
|
+
export declare const Accordion: default_2.FC<AccordionProps>;
|
|
12
|
+
|
|
13
|
+
export declare interface AccordionProps {
|
|
14
|
+
title: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: default_2.ReactNode;
|
|
17
|
+
trailing?: default_2.ReactNode;
|
|
18
|
+
defaultExpanded?: boolean;
|
|
19
|
+
isExpanded?: boolean;
|
|
20
|
+
onToggle?: (expanded: boolean) => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
11
23
|
/**
|
|
12
24
|
* ActionMenu is a kebab-style overflow action menu. The trigger renders a
|
|
13
25
|
* three-dot icon button; on click, a popover appears with the given items.
|
|
@@ -123,9 +135,13 @@ declare interface ButtonListProps {
|
|
|
123
135
|
buttons: Array<{
|
|
124
136
|
key: string;
|
|
125
137
|
children: ReactNode;
|
|
126
|
-
onClick:
|
|
138
|
+
onClick?: (event: default_2.MouseEvent) => void;
|
|
139
|
+
/** When set, the item renders as an anchor so it can be opened in a new tab. */
|
|
140
|
+
href?: string;
|
|
127
141
|
}>;
|
|
128
142
|
className?: string;
|
|
143
|
+
/** Renders shorter, denser rows. */
|
|
144
|
+
compact?: boolean;
|
|
129
145
|
}
|
|
130
146
|
|
|
131
147
|
declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -176,6 +192,21 @@ declare interface CardProps {
|
|
|
176
192
|
};
|
|
177
193
|
}
|
|
178
194
|
|
|
195
|
+
export declare const Checkbox: default_2.FC<CheckboxProps>;
|
|
196
|
+
|
|
197
|
+
export declare interface CheckboxProps {
|
|
198
|
+
checked: boolean;
|
|
199
|
+
/** Tri-state "partial" look — overrides the checked tick with a square. */
|
|
200
|
+
indeterminate?: boolean;
|
|
201
|
+
onChange: (checked: boolean) => void;
|
|
202
|
+
disabled?: boolean;
|
|
203
|
+
size?: number;
|
|
204
|
+
'aria-label'?: string;
|
|
205
|
+
'aria-labelledby'?: string;
|
|
206
|
+
className?: string;
|
|
207
|
+
id?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
179
210
|
export declare const CodeBlock: default_2.FC<CodeBlockProps>;
|
|
180
211
|
|
|
181
212
|
declare interface CodeBlockProps {
|
|
@@ -206,6 +237,33 @@ declare interface CodeTextProps {
|
|
|
206
237
|
style?: default_2.CSSProperties;
|
|
207
238
|
}
|
|
208
239
|
|
|
240
|
+
export declare const Confetti: default_2.FC<ConfettiProps>;
|
|
241
|
+
|
|
242
|
+
export declare interface ConfettiProps {
|
|
243
|
+
/** Number of confetti pieces. */
|
|
244
|
+
count?: number;
|
|
245
|
+
/** Colors cycled across the pieces. */
|
|
246
|
+
colors?: string[];
|
|
247
|
+
className?: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export declare interface ConnectionEndpoint {
|
|
251
|
+
/** Icon/glyph shown in the tile (coloured white when a `background` is set). */
|
|
252
|
+
icon: default_2.ReactNode;
|
|
253
|
+
/** Optional name — shown as a caption under the tiles and used as the tile's label. */
|
|
254
|
+
label?: string;
|
|
255
|
+
/** Tile background. When omitted, a neutral surface is used. */
|
|
256
|
+
background?: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export declare const ConnectionHeader: default_2.FC<ConnectionHeaderProps>;
|
|
260
|
+
|
|
261
|
+
export declare interface ConnectionHeaderProps {
|
|
262
|
+
from: ConnectionEndpoint;
|
|
263
|
+
to: ConnectionEndpoint;
|
|
264
|
+
className?: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
209
267
|
export declare const CustomIcons: {
|
|
210
268
|
AccountIcon: FC<IconProps>;
|
|
211
269
|
AccountsIcon: FC<IconProps>;
|
|
@@ -262,6 +320,7 @@ export declare const CustomIcons: {
|
|
|
262
320
|
NavbarCollapseIcon: FC<IconProps>;
|
|
263
321
|
NavbarExpandIcon: FC<IconProps>;
|
|
264
322
|
NotFoundIcon: FC<IconProps>;
|
|
323
|
+
OrganizationIcon: FC<IconProps>;
|
|
265
324
|
PlusIcon: FC<IconProps>;
|
|
266
325
|
PreviewIcon: FC<IconProps>;
|
|
267
326
|
ProgrammaticWebhookIcon: FC<IconProps>;
|
|
@@ -279,6 +338,8 @@ export declare const CustomIcons: {
|
|
|
279
338
|
SourceIcon: FC<IconProps>;
|
|
280
339
|
SyntheticWebhookIcon: FC<IconProps>;
|
|
281
340
|
TrashIcon: FC<IconProps>;
|
|
341
|
+
TriangleDownIcon: FC<IconProps>;
|
|
342
|
+
TriangleRightIcon: FC<IconProps>;
|
|
282
343
|
UploadIcon: FC<IconProps>;
|
|
283
344
|
WarningCircleFilled: FC<IconProps>;
|
|
284
345
|
WarningTriangleIcon: FC<IconProps>;
|
|
@@ -417,6 +478,19 @@ declare interface FooterLinksProps {
|
|
|
417
478
|
showDocsSupport?: boolean;
|
|
418
479
|
}
|
|
419
480
|
|
|
481
|
+
export declare const FooterNav: default_2.FC<FooterNavProps>;
|
|
482
|
+
|
|
483
|
+
export declare interface FooterNavLink {
|
|
484
|
+
label: string;
|
|
485
|
+
href?: string;
|
|
486
|
+
onClick?: () => void;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export declare interface FooterNavProps {
|
|
490
|
+
links: FooterNavLink[];
|
|
491
|
+
className?: string;
|
|
492
|
+
}
|
|
493
|
+
|
|
420
494
|
export declare const Form: default_2.FC<FormProps>;
|
|
421
495
|
|
|
422
496
|
export declare const FormItem: default_2.FC<FormItemProps>;
|
|
@@ -585,6 +659,7 @@ export declare interface MalachiteTheme {
|
|
|
585
659
|
border: string;
|
|
586
660
|
shadow: string;
|
|
587
661
|
dimmedBackground: string;
|
|
662
|
+
sunkenBackground: string;
|
|
588
663
|
warmBackground: string;
|
|
589
664
|
headerBackground: string;
|
|
590
665
|
footerBackground: string;
|
|
@@ -954,6 +1029,19 @@ export declare interface ProgressProps {
|
|
|
954
1029
|
style?: default_2.CSSProperties;
|
|
955
1030
|
}
|
|
956
1031
|
|
|
1032
|
+
export declare const Radio: default_2.FC<RadioProps>;
|
|
1033
|
+
|
|
1034
|
+
export declare interface RadioProps {
|
|
1035
|
+
checked: boolean;
|
|
1036
|
+
onChange: (checked: boolean) => void;
|
|
1037
|
+
disabled?: boolean;
|
|
1038
|
+
size?: number;
|
|
1039
|
+
'aria-label'?: string;
|
|
1040
|
+
'aria-labelledby'?: string;
|
|
1041
|
+
className?: string;
|
|
1042
|
+
id?: string;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
957
1045
|
/**
|
|
958
1046
|
* Reset theme to default values
|
|
959
1047
|
*/
|
|
@@ -968,6 +1056,7 @@ export declare interface SearchProps {
|
|
|
968
1056
|
onChange: (value: string) => void;
|
|
969
1057
|
placeholder?: string;
|
|
970
1058
|
size?: SearchSize;
|
|
1059
|
+
variant?: SearchVariant;
|
|
971
1060
|
disabled?: boolean;
|
|
972
1061
|
autoFocus?: boolean;
|
|
973
1062
|
className?: string;
|
|
@@ -976,6 +1065,8 @@ export declare interface SearchProps {
|
|
|
976
1065
|
|
|
977
1066
|
export declare type SearchSize = 'small' | 'medium';
|
|
978
1067
|
|
|
1068
|
+
export declare type SearchVariant = 'default' | 'muted';
|
|
1069
|
+
|
|
979
1070
|
declare interface SecondaryTextProps {
|
|
980
1071
|
children: default_2.ReactNode;
|
|
981
1072
|
fontWeight?: FontWeight;
|
|
@@ -1099,6 +1190,30 @@ declare interface StatisticValueProps {
|
|
|
1099
1190
|
|
|
1100
1191
|
export declare type StatisticValueSize = 'small' | 'medium' | 'large';
|
|
1101
1192
|
|
|
1193
|
+
export declare const StatusBadge: default_2.FC<StatusBadgeProps>;
|
|
1194
|
+
|
|
1195
|
+
export declare interface StatusBadgeProps {
|
|
1196
|
+
type?: StatusBadgeType;
|
|
1197
|
+
size?: number;
|
|
1198
|
+
className?: string;
|
|
1199
|
+
'aria-label'?: string;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
export declare type StatusBadgeType = 'success' | 'error' | 'warning' | 'info';
|
|
1203
|
+
|
|
1204
|
+
export declare const Stepper: default_2.FC<StepperProps>;
|
|
1205
|
+
|
|
1206
|
+
export declare interface StepperProps {
|
|
1207
|
+
/** Total number of steps. */
|
|
1208
|
+
steps: number;
|
|
1209
|
+
/** Active step index (0-based). */
|
|
1210
|
+
active: number;
|
|
1211
|
+
/** When provided, each step becomes a clickable control. */
|
|
1212
|
+
onChange?: (index: number) => void;
|
|
1213
|
+
className?: string;
|
|
1214
|
+
'aria-label'?: string;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1102
1217
|
export declare const Swatch: default_2.FC<SwatchProps>;
|
|
1103
1218
|
|
|
1104
1219
|
export declare interface SwatchProps {
|