@still-forest/canopy 0.13.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 +33 -0
- package/dist/index.js +9517 -6105
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
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;
|
|
@@ -71,6 +75,15 @@ export declare const DateInput: ({ name, label, placeholder, note, className, ..
|
|
|
71
75
|
declare interface DateInputProps extends Omit<TextInputProps, "type"> {
|
|
72
76
|
}
|
|
73
77
|
|
|
78
|
+
export declare const DatePicker: ({ onDateSelection, initialValue, className, size }: DatePickerProps) => JSX.Element;
|
|
79
|
+
|
|
80
|
+
declare interface DatePickerProps {
|
|
81
|
+
onDateSelection: (date: Date) => void;
|
|
82
|
+
initialValue?: Date;
|
|
83
|
+
className?: string;
|
|
84
|
+
size?: "default" | "xs" | "sm" | "lg";
|
|
85
|
+
}
|
|
86
|
+
|
|
74
87
|
export declare const DeleteButton: ({ disabled, handleDelete, ...rest }: Props) => JSX.Element;
|
|
75
88
|
|
|
76
89
|
declare type Display = (typeof DISPLAYS)[number];
|
|
@@ -307,6 +320,13 @@ export declare interface SelectPickerProps {
|
|
|
307
320
|
renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
|
|
308
321
|
}
|
|
309
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
|
+
|
|
310
330
|
declare type Size = (typeof SIZES)[number];
|
|
311
331
|
|
|
312
332
|
declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
|
|
@@ -370,6 +390,19 @@ export declare type TextProps<E extends default_2.ElementType = "p"> = TextBaseP
|
|
|
370
390
|
|
|
371
391
|
declare type TextTracking = (typeof TEXT_TRACKINGS)[number];
|
|
372
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
|
+
|
|
373
406
|
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
374
407
|
|
|
375
408
|
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|