@stackone/malachite 2.80.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/COMPONENTS.md +2 -1
- package/dist/components/Surface.js +90 -86
- package/dist/components/Surface.js.map +1 -1
- package/dist/components/ZoomableImage.js +67 -0
- package/dist/components/ZoomableImage.js.map +1 -0
- package/dist/index.d.ts +35 -1
- package/dist/index.js +393 -391
- package/dist/index.js.map +1 -1
- package/dist/tailwind.css.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5139,8 +5139,17 @@ export declare interface SurfaceProps {
|
|
|
5139
5139
|
* which traps it). `visible` disables clipping entirely.
|
|
5140
5140
|
*/
|
|
5141
5141
|
overflow?: 'hidden' | 'visible' | 'clip';
|
|
5142
|
-
/**
|
|
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
|
+
*/
|
|
5143
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;
|
|
5144
5153
|
role?: default_2.AriaRole;
|
|
5145
5154
|
'aria-label'?: string;
|
|
5146
5155
|
'aria-labelledby'?: string;
|
|
@@ -5222,6 +5231,8 @@ export declare interface SurfaceRowProps extends SurfaceRowChromeProps {
|
|
|
5222
5231
|
tabIndex?: number;
|
|
5223
5232
|
}
|
|
5224
5233
|
|
|
5234
|
+
export declare type SurfaceTone = 'default' | 'highlight';
|
|
5235
|
+
|
|
5225
5236
|
export declare const Swatch: default_2.FC<SwatchProps>;
|
|
5226
5237
|
|
|
5227
5238
|
export declare interface SwatchProps {
|
|
@@ -5829,4 +5840,27 @@ export declare interface WizardLayoutProps {
|
|
|
5829
5840
|
className?: string;
|
|
5830
5841
|
}
|
|
5831
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
|
+
|
|
5832
5866
|
export { }
|