@stackone/malachite 0.35.2 → 0.37.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 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: () => void;
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>;
@@ -293,11 +354,14 @@ export declare const defaultTheme: MalachiteTheme;
293
354
 
294
355
  export declare const Divider: default_2.FC<DividerProps>;
295
356
 
357
+ export declare type DividerLineStyle = 'solid' | 'dashed';
358
+
296
359
  declare interface DividerProps {
297
360
  margin?: SpacingSize;
298
361
  padding?: PaddingSize;
299
362
  className?: string;
300
363
  variant?: DividerVariant;
364
+ lineStyle?: DividerLineStyle;
301
365
  grow?: boolean;
302
366
  }
303
367
 
@@ -417,6 +481,19 @@ declare interface FooterLinksProps {
417
481
  showDocsSupport?: boolean;
418
482
  }
419
483
 
484
+ export declare const FooterNav: default_2.FC<FooterNavProps>;
485
+
486
+ export declare interface FooterNavLink {
487
+ label: string;
488
+ href?: string;
489
+ onClick?: () => void;
490
+ }
491
+
492
+ export declare interface FooterNavProps {
493
+ links: FooterNavLink[];
494
+ className?: string;
495
+ }
496
+
420
497
  export declare const Form: default_2.FC<FormProps>;
421
498
 
422
499
  export declare const FormItem: default_2.FC<FormItemProps>;
@@ -585,6 +662,7 @@ export declare interface MalachiteTheme {
585
662
  border: string;
586
663
  shadow: string;
587
664
  dimmedBackground: string;
665
+ sunkenBackground: string;
588
666
  warmBackground: string;
589
667
  headerBackground: string;
590
668
  footerBackground: string;
@@ -954,6 +1032,19 @@ export declare interface ProgressProps {
954
1032
  style?: default_2.CSSProperties;
955
1033
  }
956
1034
 
1035
+ export declare const Radio: default_2.FC<RadioProps>;
1036
+
1037
+ export declare interface RadioProps {
1038
+ checked: boolean;
1039
+ onChange: (checked: boolean) => void;
1040
+ disabled?: boolean;
1041
+ size?: number;
1042
+ 'aria-label'?: string;
1043
+ 'aria-labelledby'?: string;
1044
+ className?: string;
1045
+ id?: string;
1046
+ }
1047
+
957
1048
  /**
958
1049
  * Reset theme to default values
959
1050
  */
@@ -968,6 +1059,7 @@ export declare interface SearchProps {
968
1059
  onChange: (value: string) => void;
969
1060
  placeholder?: string;
970
1061
  size?: SearchSize;
1062
+ variant?: SearchVariant;
971
1063
  disabled?: boolean;
972
1064
  autoFocus?: boolean;
973
1065
  className?: string;
@@ -976,6 +1068,8 @@ export declare interface SearchProps {
976
1068
 
977
1069
  export declare type SearchSize = 'small' | 'medium';
978
1070
 
1071
+ export declare type SearchVariant = 'default' | 'muted';
1072
+
979
1073
  declare interface SecondaryTextProps {
980
1074
  children: default_2.ReactNode;
981
1075
  fontWeight?: FontWeight;
@@ -1066,6 +1160,16 @@ declare interface SpinnerProps {
1066
1160
  style?: default_2.CSSProperties;
1067
1161
  }
1068
1162
 
1163
+ export declare const StatBadge: default_2.FC<StatBadgeProps>;
1164
+
1165
+ export declare interface StatBadgeProps {
1166
+ /** The numeric value shown in the pill. */
1167
+ count: number;
1168
+ /** Caption shown next to the pill. */
1169
+ label: string;
1170
+ className?: string;
1171
+ }
1172
+
1069
1173
  export declare const Statistic: default_2.FC<StatisticProps>;
1070
1174
 
1071
1175
  declare interface StatisticLabelProps {
@@ -1099,6 +1203,38 @@ declare interface StatisticValueProps {
1099
1203
 
1100
1204
  export declare type StatisticValueSize = 'small' | 'medium' | 'large';
1101
1205
 
1206
+ export declare const StatusBadge: default_2.FC<StatusBadgeProps>;
1207
+
1208
+ export declare interface StatusBadgeProps {
1209
+ type?: StatusBadgeType;
1210
+ size?: number;
1211
+ className?: string;
1212
+ 'aria-label'?: string;
1213
+ }
1214
+
1215
+ export declare type StatusBadgeType = 'success' | 'error' | 'warning' | 'info';
1216
+
1217
+ export declare const Stepper: default_2.FC<StepperProps>;
1218
+
1219
+ export declare interface StepperProps {
1220
+ /** Total number of steps. */
1221
+ steps: number;
1222
+ /** Active step index (0-based). */
1223
+ active: number;
1224
+ /** When provided, each step becomes a clickable control. */
1225
+ onChange?: (index: number) => void;
1226
+ className?: string;
1227
+ 'aria-label'?: string;
1228
+ }
1229
+
1230
+ export declare const Surface: default_2.FC<SurfaceProps>;
1231
+
1232
+ export declare interface SurfaceProps {
1233
+ children?: default_2.ReactNode;
1234
+ className?: string;
1235
+ style?: default_2.CSSProperties;
1236
+ }
1237
+
1102
1238
  export declare const Swatch: default_2.FC<SwatchProps>;
1103
1239
 
1104
1240
  export declare interface SwatchProps {
@@ -1371,4 +1507,27 @@ export declare const Typography: {
1371
1507
 
1372
1508
  export declare type WidthSize = 'large' | 'medium' | 'small' | 'xsmall';
1373
1509
 
1510
+ export declare const WizardLayout: default_2.FC<WizardLayoutProps>;
1511
+
1512
+ export declare interface WizardLayoutProps {
1513
+ /** Renders the outline back button in the top-left slot. */
1514
+ showBack?: boolean;
1515
+ onBack?: () => void;
1516
+ backDisabled?: boolean;
1517
+ /** Centered top-bar slot — typically a <Stepper />. */
1518
+ stepper?: default_2.ReactNode;
1519
+ /** Right top-bar slot — e.g. a theme toggle. */
1520
+ trailing?: default_2.ReactNode;
1521
+ /** Pinned to the bottom of the screen — typically a <FooterNav />. */
1522
+ footer?: default_2.ReactNode;
1523
+ /** Vertically centre the content (used for terminal/success screens). */
1524
+ center?: boolean;
1525
+ /** Max width of the centered content column. */
1526
+ contentWidth?: number;
1527
+ /** Minimum width of the whole layout, below which it scrolls horizontally. */
1528
+ minWidth?: number;
1529
+ children?: default_2.ReactNode;
1530
+ className?: string;
1531
+ }
1532
+
1374
1533
  export { }