@stackone/malachite 2.79.0 → 2.81.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
@@ -57,6 +57,8 @@ declare interface AccordionBaseProps {
57
57
  arrowPosition?: 'start' | 'end' | 'gutter';
58
58
  /** `false` keeps an open row on the card ground. */
59
59
  highlightExpanded?: boolean;
60
+ /** `title` starts the body under the title, 16px short of it for a compact `Surface.Row`. */
61
+ bodyIndent?: 'none' | 'title';
60
62
  defaultExpanded?: boolean;
61
63
  isExpanded?: boolean;
62
64
  onToggle?: (expanded: boolean) => void;
@@ -5137,8 +5139,17 @@ export declare interface SurfaceProps {
5137
5139
  * which traps it). `visible` disables clipping entirely.
5138
5140
  */
5139
5141
  overflow?: 'hidden' | 'visible' | 'clip';
5140
- /** `false` drops the elevation shadow, for a card that sits flat on its ground. */
5142
+ /**
5143
+ * `false` drops the elevation shadow, for a card that sits flat on its ground.
5144
+ * Default: `true`, or `false` with `tone="highlight"`.
5145
+ */
5141
5146
  shadow?: boolean;
5147
+ /**
5148
+ * `highlight` paints the warm ground with no border and no shadow, for a static block that
5149
+ * stands out from the page, such as a hero or a guide's section header. Its ground is too
5150
+ * close to `Surface.Row`'s hover for clickable rows inside it.
5151
+ */
5152
+ tone?: SurfaceTone;
5142
5153
  role?: default_2.AriaRole;
5143
5154
  'aria-label'?: string;
5144
5155
  'aria-labelledby'?: string;
@@ -5220,6 +5231,8 @@ export declare interface SurfaceRowProps extends SurfaceRowChromeProps {
5220
5231
  tabIndex?: number;
5221
5232
  }
5222
5233
 
5234
+ export declare type SurfaceTone = 'default' | 'highlight';
5235
+
5223
5236
  export declare const Swatch: default_2.FC<SwatchProps>;
5224
5237
 
5225
5238
  export declare interface SwatchProps {
@@ -5827,4 +5840,27 @@ export declare interface WizardLayoutProps {
5827
5840
  className?: string;
5828
5841
  }
5829
5842
 
5843
+ /**
5844
+ * An image that enlarges on click, for a screenshot too detailed to read inline. The enlarged
5845
+ * image is as large as the window allows at its own aspect ratio, up to its natural size, and a
5846
+ * click anywhere closes it.
5847
+ */
5848
+ export declare const ZoomableImage: default_2.FC<ZoomableImageProps>;
5849
+
5850
+ export declare interface ZoomableImageProps {
5851
+ src: string;
5852
+ /**
5853
+ * Describes the image. Required and non-empty: it names the thumbnail's button and the
5854
+ * enlarged view, so an empty `alt` leaves both unnamed.
5855
+ */
5856
+ alt: string;
5857
+ /** Names the enlarged view for assistive tech. Default: `alt`, also when `title` is empty. */
5858
+ title?: string;
5859
+ /**
5860
+ * The thumbnail failed to load, so the caller can leave the image out. A thumbnail loads
5861
+ * lazily, so for one below the fold this fires once it nears the viewport, not on render.
5862
+ */
5863
+ onError?: () => void;
5864
+ }
5865
+
5830
5866
  export { }