@still-forest/canopy 0.14.0 → 0.15.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 +24 -0
- package/dist/index.js +7689 -7246
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,10 @@ export declare interface CheckboxProps {
|
|
|
57
57
|
onCheckedChange?: (checked: boolean) => void;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
declare interface ChildProps {
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
}
|
|
63
|
+
|
|
60
64
|
export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
|
|
61
65
|
|
|
62
66
|
export declare const Container: ({ children, className, ...props }: ContainerProps) => JSX.Element;
|
|
@@ -316,6 +320,13 @@ export declare interface SelectPickerProps {
|
|
|
316
320
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
317
321
|
}
|
|
318
322
|
|
|
323
|
+
export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;
|
|
324
|
+
|
|
325
|
+
declare interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
326
|
+
orientation?: "horizontal" | "vertical";
|
|
327
|
+
gap?: Gap;
|
|
328
|
+
}
|
|
329
|
+
|
|
319
330
|
declare type Size = (typeof SIZES)[number];
|
|
320
331
|
|
|
321
332
|
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
@@ -379,6 +390,19 @@ export declare type TextProps<E extends default_2.ElementType = "p"> = TextBaseP
|
|
|
379
390
|
|
|
380
391
|
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
381
392
|
|
|
393
|
+
export declare const Tooltip: TooltipComponent;
|
|
394
|
+
|
|
395
|
+
declare type TooltipComponent = React.FC<TooltipProps> & {
|
|
396
|
+
Trigger: React.FC<ChildProps>;
|
|
397
|
+
Content: React.FC<ChildProps>;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
declare interface TooltipProps {
|
|
401
|
+
children: React.ReactNode;
|
|
402
|
+
open?: boolean;
|
|
403
|
+
onOpenChange?: (open: boolean) => void;
|
|
404
|
+
}
|
|
405
|
+
|
|
382
406
|
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
383
407
|
|
|
384
408
|
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|