@still-forest/canopy 0.19.3 → 0.19.4
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 +9 -1
- package/dist/index.js +14 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,8 @@ export declare interface ContainerProps extends BoxProps {
|
|
|
131
131
|
className?: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
export declare type CursorType = "arrow" | "pointer" | "text" | "not-allowed";
|
|
135
|
+
|
|
134
136
|
export declare const DateInput: ({ name, label, placeholder, note, className, ...props }: DateInputProps) => JSX.Element;
|
|
135
137
|
|
|
136
138
|
declare interface DateInputProps extends Omit<TextInputProps, "type"> {
|
|
@@ -574,7 +576,7 @@ export declare type Theme = "light" | "dark" | "system";
|
|
|
574
576
|
export declare const Tooltip: TooltipComponent;
|
|
575
577
|
|
|
576
578
|
declare type TooltipComponent = React.FC<TooltipProps> & {
|
|
577
|
-
Trigger: React.FC<
|
|
579
|
+
Trigger: React.FC<TriggerProps>;
|
|
578
580
|
Content: React.FC<ChildProps>;
|
|
579
581
|
};
|
|
580
582
|
|
|
@@ -584,6 +586,12 @@ declare interface TooltipProps {
|
|
|
584
586
|
onOpenChange?: (open: boolean) => void;
|
|
585
587
|
}
|
|
586
588
|
|
|
589
|
+
declare interface TriggerProps {
|
|
590
|
+
children: React.ReactNode;
|
|
591
|
+
cursor?: CursorType;
|
|
592
|
+
className?: string;
|
|
593
|
+
}
|
|
594
|
+
|
|
587
595
|
declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
588
596
|
|
|
589
597
|
declare const TYPOGRAPHY_VARIANTS: readonly ["default", "inherit", "primary", "secondary", "muted", "accent", "info", "success", "warning", "destructive"];
|
package/dist/index.js
CHANGED
|
@@ -8012,7 +8012,20 @@ function vc({
|
|
|
8012
8012
|
}
|
|
8013
8013
|
) });
|
|
8014
8014
|
}
|
|
8015
|
-
const xc = ({ children: e, open: t, onOpenChange: n }) => /* @__PURE__ */ c.jsx(ea, { children: /* @__PURE__ */ c.jsx(pc, { open: t, onOpenChange: n, children: e }) }), Wg = ({ children: e
|
|
8015
|
+
const xc = ({ children: e, open: t, onOpenChange: n }) => /* @__PURE__ */ c.jsx(ea, { children: /* @__PURE__ */ c.jsx(pc, { open: t, onOpenChange: n, children: e }) }), Wg = ({ children: e, cursor: t = "pointer", className: n }) => /* @__PURE__ */ c.jsx(
|
|
8016
|
+
gc,
|
|
8017
|
+
{
|
|
8018
|
+
asChild: !0,
|
|
8019
|
+
className: R(
|
|
8020
|
+
t === "arrow" && "cursor-default",
|
|
8021
|
+
t === "pointer" && "cursor-pointer",
|
|
8022
|
+
t === "text" && "cursor-text",
|
|
8023
|
+
t === "not-allowed" && "cursor-not-allowed",
|
|
8024
|
+
n
|
|
8025
|
+
),
|
|
8026
|
+
children: e
|
|
8027
|
+
}
|
|
8028
|
+
), Fg = ({ children: e }) => /* @__PURE__ */ c.jsx(vc, { children: e });
|
|
8016
8029
|
xc.Trigger = Wg;
|
|
8017
8030
|
xc.Content = Fg;
|
|
8018
8031
|
const ta = _.forwardRef(
|