@still-forest/canopy 0.29.0 → 0.30.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/forms.js CHANGED
@@ -1,19 +1,20 @@
1
- import { B as e, a as s, C as u, b as o, c as r, D as n, I as p, d as c, L as I, N as b, R as l, e as B, f as S, S as i, g as x, T as D } from "./chunks/TextInput-NfG9yrGJ.js";
1
+ import { B as e, a as s } from "./chunks/calendar-D21xByT8.js";
2
+ import { C as o, a as r, b as n, D as p, I as c, c as I, L as b, N as l, R as x, d as B, e as S, S as i, f as m, T as D } from "./chunks/Textarea-Doc1h--A.js";
2
3
  export {
3
4
  e as Button,
4
5
  s as ButtonGroup,
5
- u as Checkbox,
6
- o as DateInput,
7
- r as DatePicker,
8
- n as DeleteButton,
9
- p as InputError,
10
- c as InputGroup,
11
- I as Label,
12
- b as NumberInput,
13
- l as RadioSelect,
6
+ o as Checkbox,
7
+ r as DateInput,
8
+ n as DatePicker,
9
+ p as DeleteButton,
10
+ c as InputError,
11
+ I as InputGroup,
12
+ b as Label,
13
+ l as NumberInput,
14
+ x as RadioSelect,
14
15
  B as SelectInput,
15
16
  S as SelectPicker,
16
17
  i as SubmitButton,
17
- x as TextInput,
18
+ m as TextInput,
18
19
  D as Textarea
19
20
  };
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { Popover as Popover_3 } from 'radix-ui';
9
9
  import * as React_2 from 'react';
10
10
  import { ReactNode } from 'react';
11
11
  import { Tabs as Tabs_2 } from 'radix-ui';
12
+ import { Tooltip as Tooltip_3 } from 'radix-ui';
12
13
  import { VariantProps } from 'class-variance-authority';
13
14
 
14
15
  export declare const Accordion: AccordionComponent;
@@ -153,10 +154,6 @@ export declare interface CheckboxProps {
153
154
  onCheckedChange?: (checked: boolean) => void;
154
155
  }
155
156
 
156
- declare interface ChildProps {
157
- children: React.ReactNode;
158
- }
159
-
160
157
  export declare function cn(...inputs: ClassValue[]): string;
161
158
 
162
159
  export declare const Code: ({ children, ...props }: TextProps) => JSX.Element;
@@ -592,6 +589,13 @@ declare interface SideLinkSet {
592
589
  links: SideLink[];
593
590
  }
594
591
 
592
+ export declare const SimpleTooltip: ({ children, content }: SimpleTooltipProps) => JSX.Element;
593
+
594
+ declare interface SimpleTooltipProps {
595
+ children: string | React.ReactNode;
596
+ content: string | React.ReactNode;
597
+ }
598
+
595
599
  declare type Size = (typeof SIZES)[number];
596
600
 
597
601
  declare const SIZES: readonly [...string[], "auto", "full", "min", "max", "fit", "px"];
@@ -718,22 +722,24 @@ export declare interface ThemeSelectorProps {
718
722
 
719
723
  export declare const Tooltip: TooltipComponent;
720
724
 
725
+ declare function Tooltip_2({ ...props }: React_2.ComponentProps<typeof Tooltip_3.Root>): JSX.Element;
726
+
721
727
  declare type TooltipComponent = React.FC<TooltipProps> & {
722
- Trigger: React.FC<TriggerProps>;
723
- Content: React.FC<ChildProps>;
728
+ Trigger: React.FC<TooltipTriggerProps>;
729
+ Content: React.FC<TooltipContentProps>;
724
730
  };
725
731
 
726
- declare interface TooltipProps {
727
- children: React.ReactNode;
728
- open?: boolean;
729
- onOpenChange?: (open: boolean) => void;
730
- }
732
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React_2.ComponentProps<typeof Tooltip_3.Content>): JSX.Element;
731
733
 
732
- declare interface TriggerProps {
733
- children: React.ReactNode;
734
+ declare type TooltipContentProps = React.ComponentProps<typeof TooltipContent>;
735
+
736
+ declare type TooltipProps = React.ComponentProps<typeof Tooltip_2>;
737
+
738
+ declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof Tooltip_3.Trigger>): JSX.Element;
739
+
740
+ declare type TooltipTriggerProps = React.ComponentProps<typeof TooltipTrigger> & {
734
741
  cursor?: CursorType;
735
- className?: string;
736
- }
742
+ };
737
743
 
738
744
  declare const TYPOGRAPHY_ELEMENTS: readonly ["p", "span", "label", "div", "h1", "h2", "h3", "h4", "h5", "h6"];
739
745