@still-forest/canopy 0.44.0 → 0.45.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +27 -6
  2. package/dist/index.js +6046 -5955
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -189,14 +189,16 @@ declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div"
189
189
 
190
190
  declare type CardTitleProps = React.ComponentProps<typeof CardTitle>;
191
191
 
192
- export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error }: CheckboxProps) => JSX.Element;
192
+ export declare const Checkbox: ({ label, name, value, checked, onCheckedChange, note, error, labelClassName, hint, }: CheckboxProps) => JSX.Element;
193
193
 
194
194
  export declare interface CheckboxProps {
195
195
  label: string;
196
+ labelClassName?: string;
196
197
  name: string;
197
198
  value?: string;
198
199
  checked: boolean;
199
200
  onCheckedChange?: (checked: boolean) => void;
201
+ hint?: string;
200
202
  note?: string;
201
203
  error?: string;
202
204
  }
@@ -440,6 +442,13 @@ declare type Height = (typeof HEIGHTS)[number];
440
442
 
441
443
  declare const HEIGHTS: readonly [...string[], "auto", "full", "min", "max", "fit", "px", "screen"];
442
444
 
445
+ export declare const Hint: ({ content, className }: HintProps) => JSX.Element;
446
+
447
+ export declare interface HintProps {
448
+ content: string;
449
+ className?: string;
450
+ }
451
+
443
452
  export declare const Input: ({ type, step, ...props }: InputProps) => JSX.Element;
444
453
 
445
454
  export declare const InputError: ({ id, message }: InputErrorProps) => JSX.Element;
@@ -623,6 +632,7 @@ export declare interface NumberInputProps extends Omit<TextInputProps, "type"> {
623
632
  declare interface Option_2 {
624
633
  value: string;
625
634
  label: string;
635
+ hint?: string;
626
636
  }
627
637
 
628
638
  declare type Overflow = (typeof OVERFLOWS)[number];
@@ -705,11 +715,12 @@ declare interface Props_5 extends SidebarProps {
705
715
  children?: React.ReactNode;
706
716
  }
707
717
 
708
- export declare const RadioSelect: ({ label, name, options, value, onChange, error }: RadioSelectProps) => JSX.Element;
718
+ export declare const RadioSelect: ({ label, name, options, value, onChange, error, labelClassName }: RadioSelectProps) => JSX.Element;
709
719
 
710
720
  declare interface RadioSelectProps {
711
721
  name: string;
712
722
  label?: string;
723
+ labelClassName?: string;
713
724
  value?: string;
714
725
  options: Option_2[];
715
726
  onChange?: (value: string) => void;
@@ -720,7 +731,7 @@ declare const ROUNDED_SIZES: readonly ["none", "xs", "sm", "md", "lg", "xl", "2x
720
731
 
721
732
  declare type RoundedSize = (typeof ROUNDED_SIZES)[number];
722
733
 
723
- export declare const SelectInput: ({ name, defaultValue, options, label, placeholder, note, className, value, onChange, error, size, id: idProp, ...props }: SelectInputProps) => JSX.Element;
734
+ export declare const SelectInput: ({ name, defaultValue, options, label, labelClassName, placeholder, hint, note, className, value, onChange, error, size, id: idProp, ...props }: SelectInputProps) => JSX.Element;
724
735
 
725
736
  export declare interface SelectInputOption {
726
737
  value: string;
@@ -738,14 +749,16 @@ export declare interface SelectInputProps extends Omit<ComponentProps<"select">,
738
749
  onChange: (value: string) => void;
739
750
  options: SelectInputOption[] | SelectInputOptionGroup[];
740
751
  label?: string;
752
+ labelClassName?: string;
741
753
  placeholder?: string;
754
+ hint?: string;
742
755
  note?: string;
743
756
  className?: string;
744
757
  error?: string;
745
758
  size?: "xs" | "sm" | "md" | "lg" | "xl";
746
759
  }
747
760
 
748
- export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
761
+ export declare const SelectPicker: ({ options, value, placeholder, onChange, label, name, labelClassName, triggerClassName, hint, note, error, renderSelected, }: SelectPickerProps) => JSX.Element;
749
762
 
750
763
  export declare interface SelectPickerOption {
751
764
  icon?: string;
@@ -767,10 +780,14 @@ export declare interface SelectPickerProps {
767
780
  onChange: (value: string) => void;
768
781
  options: SelectPickerOption[] | SelectPickerOptionGroup[];
769
782
  label?: string;
783
+ labelClassName?: string;
784
+ triggerClassName?: string;
770
785
  placeholder?: string;
786
+ hint?: string;
771
787
  note?: string;
772
788
  error?: string;
773
789
  renderSelected?: (selected: SelectPickerOption) => React.ReactNode;
790
+ className?: string;
774
791
  }
775
792
 
776
793
  export declare const Separator: ({ className, orientation, gap, ...props }: SeparatorProps) => JSX.Element;
@@ -916,12 +933,14 @@ declare const TEXT_TRACKINGS: readonly ["tighter", "tight", "normal", "wide", "w
916
933
 
917
934
  declare type TextAlign = (typeof TEXT_ALIGNS)[number];
918
935
 
919
- export declare function Textarea({ label, name, note, placeholder, className, error, ...props }: TextareaProps): JSX.Element;
936
+ export declare function Textarea({ label, name, note, placeholder, className, error, labelClassName, hint, ...props }: TextareaProps): JSX.Element;
920
937
 
921
938
  export declare interface TextareaProps extends React.ComponentProps<"textarea"> {
922
939
  name: string;
923
940
  label?: string;
941
+ labelClassName?: string;
924
942
  placeholder?: string;
943
+ hint?: string;
925
944
  note?: string;
926
945
  className?: string;
927
946
  error?: string;
@@ -947,14 +966,16 @@ declare interface TextBaseProps {
947
966
  as?: TypographyElement;
948
967
  }
949
968
 
950
- export declare const TextInput: ({ name, type, placeholder, label, labelOrientation, note, size, className, error, ...props }: TextInputProps) => JSX.Element;
969
+ export declare const TextInput: ({ name, type, placeholder, label, labelClassName, labelOrientation, hint, note, size, className, error, ...props }: TextInputProps) => JSX.Element;
951
970
 
952
971
  export declare interface TextInputProps extends Omit<React.ComponentProps<"input">, "size"> {
953
972
  name: string;
954
973
  type?: string;
955
974
  placeholder?: string;
956
975
  label?: string;
976
+ labelClassName?: string;
957
977
  labelOrientation?: "top" | "left";
978
+ hint?: string;
958
979
  note?: string;
959
980
  size?: "xs" | "sm" | "md" | "lg" | "xl";
960
981
  className?: string;