@stackone/malachite 2.55.1 → 2.57.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.
Files changed (31) hide show
  1. package/COMPONENTS.md +5 -4
  2. package/dist/components/Alert.js +77 -59
  3. package/dist/components/Alert.js.map +1 -1
  4. package/dist/components/Breadcrumbs.js.map +1 -1
  5. package/dist/components/CalloutStrip.js +7 -0
  6. package/dist/components/CalloutStrip.js.map +1 -0
  7. package/dist/components/ConfirmationDialog.js +100 -108
  8. package/dist/components/ConfirmationDialog.js.map +1 -1
  9. package/dist/components/IconBadge.js +16 -0
  10. package/dist/components/IconBadge.js.map +1 -0
  11. package/dist/components/PageLayout/index.js.map +1 -1
  12. package/dist/components/PageLayout/regularLayout.js.map +1 -1
  13. package/dist/components/SidePanel.js +99 -82
  14. package/dist/components/SidePanel.js.map +1 -1
  15. package/dist/components/Skeleton.js +45 -42
  16. package/dist/components/Skeleton.js.map +1 -1
  17. package/dist/components/Typography/MarkdownBlock.js +89 -87
  18. package/dist/components/Typography/MarkdownBlock.js.map +1 -1
  19. package/dist/components/Typography/Text.js +14 -13
  20. package/dist/components/Typography/Text.js.map +1 -1
  21. package/dist/components/Typography/index.js.map +1 -1
  22. package/dist/components/Typography/textStyles.js.map +1 -1
  23. package/dist/components/confirmationDialogVariants.js +2 -6
  24. package/dist/components/confirmationDialogVariants.js.map +1 -1
  25. package/dist/components/iconBadgeVariants.js +11 -0
  26. package/dist/components/iconBadgeVariants.js.map +1 -0
  27. package/dist/index.d.ts +39 -5
  28. package/dist/index.js +447 -445
  29. package/dist/index.js.map +1 -1
  30. package/dist/tailwind.css.js +1 -1
  31. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -170,6 +170,12 @@ declare interface AlertProps {
170
170
  /** Replaces the type's status icon: an svg painting with `currentColor`, such as a CustomIcon,
171
171
  * is drawn in the type's colour at the same size. */
172
172
  icon?: default_2.ReactNode;
173
+ /** Makes its message a live region: `role="alert"` for error and warning, `status` otherwise.
174
+ * Screen readers reliably announce an `alert` as it mounts; a `status` is read when its
175
+ * `message` changes, so keep a live info or success alert mounted. Off by default. */
176
+ live?: boolean;
177
+ /** Routes root-relative links in `message` through the app's router; see `MarkdownBlock`. */
178
+ renderLink?: RenderLink;
173
179
  }
174
180
 
175
181
  export declare type AlertType = 'info' | 'success' | 'error' | 'warning' | 'assistant';
@@ -313,7 +319,7 @@ export declare const Breadcrumbs: default_2.FC<BreadcrumbsProps>;
313
319
  export declare interface BreadcrumbsProps {
314
320
  links: BreadcrumbLink[];
315
321
  actions?: PageAction[];
316
- renderLink?: RenderBreadcrumbLink;
322
+ renderLink?: RenderLink;
317
323
  className?: string;
318
324
  style?: default_2.CSSProperties;
319
325
  }
@@ -1799,6 +1805,18 @@ export declare function getCurrentThemeMode(): 'light' | 'dark';
1799
1805
 
1800
1806
  export declare const GlobeIcon: React.FC<IconProps_56>;
1801
1807
 
1808
+ export declare const IconBadge: default_2.FC<IconBadgeProps>;
1809
+
1810
+ export declare interface IconBadgeProps {
1811
+ /** Drawn at 12px in the card background colour; an svg painting with `currentColor`. */
1812
+ icon: default_2.ReactNode;
1813
+ /** `accent` is the brand's interaction colour, so a rebrand repaints it. */
1814
+ variant?: IconBadgeVariant;
1815
+ className?: string;
1816
+ }
1817
+
1818
+ export declare type IconBadgeVariant = 'default' | 'accent' | 'warning' | 'destructive' | 'success';
1819
+
1802
1820
  /** A non-interactive icon carrying a meaning, for where an icon button would offer nothing to do. */
1803
1821
  export declare const IconIndicator: default_2.FC<IconIndicatorProps>;
1804
1822
 
@@ -3289,6 +3307,9 @@ export declare interface MarkdownProps {
3289
3307
  variant?: MarkdownVariant;
3290
3308
  normalizeSource?: boolean;
3291
3309
  links?: MarkdownLinks;
3310
+ /** Renders root-relative links (`/path`) through the app's router, in the same tab. Other
3311
+ * links still open in a new tab. Pass a stable function: a new one re-parses the markdown. */
3312
+ renderLink?: RenderLink;
3292
3313
  }
3293
3314
 
3294
3315
  /** `inline`: one line of inline syntax, with no autolinked emails or URLs. */
@@ -3904,7 +3925,7 @@ export declare const RefreshIcon: React.FC<IconProps_86>;
3904
3925
  export declare interface RegularLayoutProps {
3905
3926
  breadcrumbLinks?: BreadcrumbLink[];
3906
3927
  breadcrumbActions?: PageAction[];
3907
- renderLink?: RenderBreadcrumbLink;
3928
+ renderLink?: RenderLink;
3908
3929
  title?: default_2.ReactNode;
3909
3930
  titleSuffix?: default_2.ReactNode;
3910
3931
  subtitle?: string;
@@ -3936,10 +3957,11 @@ export declare const RejectIcon: React.FC<IconProps_87>;
3936
3957
  export declare const ReloadIcon: React.FC<IconProps_88>;
3937
3958
 
3938
3959
  /**
3939
- * Renders a crumb or the back button through the app's own link component, spreading every
3940
- * field onto it. A client-side-routed consumer MUST pass this, or navigation breaks.
3960
+ * Renders an in-app link through the app's own link component, spreading every field onto it:
3961
+ * breadcrumbs, the back button, and root-relative markdown links. A client-side-routed consumer
3962
+ * MUST pass this, or navigation breaks.
3941
3963
  */
3942
- declare type RenderBreadcrumbLink = (props: {
3964
+ export declare type RenderLink = (props: {
3943
3965
  href: string;
3944
3966
  children: default_2.ReactNode;
3945
3967
  className?: string;
@@ -4350,6 +4372,14 @@ export declare interface SidePanelProps {
4350
4372
  bodyPadding?: boolean;
4351
4373
  /** `above-app-overlays` lifts the overlay stack clear of chrome pinned near max-int. */
4352
4374
  stacking?: 'default' | 'above-app-overlays';
4375
+ /** Full-width Alert bands at the top of the body, above `children`, in order. Unaffected by
4376
+ * `bodyPadding`. The message is markdown. */
4377
+ callouts?: {
4378
+ type?: AlertType;
4379
+ message: string;
4380
+ }[];
4381
+ /** Routes root-relative links in `callouts` through the app's router; see `MarkdownBlock`. */
4382
+ renderLink?: RenderLink;
4353
4383
  children: default_2.ReactNode;
4354
4384
  }
4355
4385
 
@@ -4954,6 +4984,8 @@ export declare type TextColor = 'primary' | 'secondary' | 'dimmed' | 'placeholde
4954
4984
  /** Machine-authored text — what an assistant wrote, or what it is proposing. */
4955
4985
  | 'assistant' | 'inherit';
4956
4986
 
4987
+ export declare type TextElement = 'span' | 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4988
+
4957
4989
  export declare interface TextProps {
4958
4990
  color?: TextColor;
4959
4991
  size?: FontSize;
@@ -4967,6 +4999,8 @@ export declare interface TextProps {
4967
4999
  children: default_2.ReactNode;
4968
5000
  tooltip?: string;
4969
5001
  textAlign?: 'left' | 'center' | 'right' | 'justify';
5002
+ /** The element it renders, for a heading or paragraph that keeps Text's look. */
5003
+ as?: TextElement;
4970
5004
  className?: string;
4971
5005
  style?: default_2.CSSProperties;
4972
5006
  }