@still-forest/canopy 0.19.0 → 0.19.1
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 +37 -0
- package/dist/index.js +2961 -2859
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -151,6 +151,20 @@ declare type Display = (typeof DISPLAYS)[number];
|
|
|
151
151
|
|
|
152
152
|
declare const DISPLAYS: readonly ["block", "flex", "grid", "inline", "inline-block", "inline-flex", "inline-grid", "inline-table", "list-item", "flow-root", "contents", "table", "table-header-group", "table-footer-group", "table-column-group", "table-column", "table-row-group", "table-row", "table-cell", "table-caption", "hidden", "sr-only", "not-sr-only"];
|
|
153
153
|
|
|
154
|
+
export declare const ErrorFallback: ({ error, onRetry }: ErrorFallbackProps) => JSX.Element;
|
|
155
|
+
|
|
156
|
+
declare interface ErrorFallbackProps {
|
|
157
|
+
error: Error;
|
|
158
|
+
onRetry?: () => void;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export declare const ErrorOverlay: ({ message, children }: ErrorOverlayProps) => JSX.Element;
|
|
162
|
+
|
|
163
|
+
declare interface ErrorOverlayProps {
|
|
164
|
+
message?: string;
|
|
165
|
+
children?: React.ReactNode;
|
|
166
|
+
}
|
|
167
|
+
|
|
154
168
|
export declare const Flex: typeof FlexComponent & {
|
|
155
169
|
Item: typeof FlexItem;
|
|
156
170
|
};
|
|
@@ -282,6 +296,15 @@ declare interface InputGroupProps {
|
|
|
282
296
|
children: React.ReactNode;
|
|
283
297
|
}
|
|
284
298
|
|
|
299
|
+
export declare const Interstitial: ({ variant, iconComponent, message, children }: InterstitialProps) => JSX.Element;
|
|
300
|
+
|
|
301
|
+
export declare interface InterstitialProps {
|
|
302
|
+
variant?: "error" | "info" | "success" | "warning";
|
|
303
|
+
iconComponent?: default_2.ElementType;
|
|
304
|
+
message?: string;
|
|
305
|
+
children?: default_2.ReactNode;
|
|
306
|
+
}
|
|
307
|
+
|
|
285
308
|
export declare const Label: ({ htmlFor, value, children, className, ...props }: LabelProps) => JSX.Element;
|
|
286
309
|
|
|
287
310
|
export declare interface LabelProps extends ComponentProps<"label"> {
|
|
@@ -326,6 +349,20 @@ declare type Overflow = (typeof OVERFLOWS)[number];
|
|
|
326
349
|
|
|
327
350
|
declare const OVERFLOWS: readonly ["auto", "scroll", "hidden", "clip", "visible"];
|
|
328
351
|
|
|
352
|
+
export declare const PageLoader: ({ iconComponent, message }: PageLoaderProps) => JSX.Element;
|
|
353
|
+
|
|
354
|
+
declare interface PageLoaderProps {
|
|
355
|
+
iconComponent?: React.ElementType;
|
|
356
|
+
message?: string;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export declare const PageNotFound: ({ goHome, message }: PageNotFoundProps) => JSX.Element;
|
|
360
|
+
|
|
361
|
+
declare interface PageNotFoundProps {
|
|
362
|
+
message?: string;
|
|
363
|
+
goHome?: () => void;
|
|
364
|
+
}
|
|
365
|
+
|
|
329
366
|
export declare const Pagination: ({ pageCount, currentPage, onChange }: Props_3) => JSX.Element;
|
|
330
367
|
|
|
331
368
|
declare type Position = (typeof POSITIONS)[number];
|