@takecasper/acuity-design-system 1.6.0 → 1.6.2

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 CHANGED
@@ -1,7 +1,6 @@
1
1
  import { ClassProp } from 'class-variance-authority/types';
2
2
  import { JSX as JSX_2 } from 'react/jsx-runtime';
3
3
  import { default as React_2 } from 'react';
4
- import { ReactNode } from 'react';
5
4
  import { VariantProps } from 'class-variance-authority';
6
5
 
7
6
  export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose }: AlertProps) => JSX_2.Element;
@@ -43,6 +42,13 @@ declare interface CardProps {
43
42
  footerContent?: React.ReactNode;
44
43
  }
45
44
 
45
+ export declare const Checkbox: ({ id, label, name, checked, disabled, indeterminate, ...props }: CheckboxProps) => JSX_2.Element;
46
+
47
+ declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
48
+ label?: string;
49
+ indeterminate?: boolean;
50
+ }
51
+
46
52
  export declare const Heading: ({ size, className, text, descriptionTop, descriptionBottom, hasHorizontalRule, hasMarginBottom, headingTag, ...props }: HeadingProps) => JSX_2.Element;
47
53
 
48
54
  declare interface HeadingProps extends VariantProps<typeof headingVariants> {
@@ -57,10 +63,10 @@ declare interface HeadingProps extends VariantProps<typeof headingVariants> {
57
63
  }
58
64
 
59
65
  declare const headingVariants: (props?: ({
60
- size?: "small" | "medium" | "large" | "extra-large" | null | undefined;
66
+ size?: "large" | "small" | "medium" | "extra-large" | null | undefined;
61
67
  } & ClassProp) | undefined) => string;
62
68
 
63
- export declare const Icon: ({ size, name, hasIndicator, className, altText }: IconProps) => ReactNode;
69
+ export declare const Icon: ({ size, name, hasIndicator, className, altText }: IconProps) => JSX_2.Element;
64
70
 
65
71
  declare type IconNames = 'settings' | 'questionCircle' | 'notifications' | 'flag' | 'edit' | 'delete' | 'resourceCenter' | 'search' | 'error' | 'warning' | 'dropdown' | 'calendar' | 'bookmark' | 'infoCircle' | 'menu' | 'add' | 'exclude' | 'email' | 'close' | 'checkCircle' | 'linkNewTab';
66
72
 
@@ -69,19 +75,17 @@ declare type IconNamesWithIndicator = 'notifications' | 'resourceCenter' | 'book
69
75
  declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
70
76
  size: 'small' | 'medium';
71
77
  name: IconNames | IconNamesWithIndicator;
72
- hasIndicator: boolean;
73
- className: string;
74
- altText: string;
78
+ hasIndicator?: boolean;
79
+ className?: string;
80
+ altText?: string;
75
81
  }
76
82
 
77
- export declare const Radio: ({ label, name, id, disabled, handleChange, ...props }: RadioProps) => JSX_2.Element;
83
+ export declare const Radio: ({ label, name, id, disabled, ...props }: RadioProps) => JSX_2.Element;
78
84
 
79
85
  declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement> {
80
86
  label?: string;
81
87
  name: string;
82
88
  id: string;
83
- defaultChecked?: boolean;
84
- handleChange?: () => void;
85
89
  }
86
90
 
87
91
  export { }