@clasing/ui 0.1.23 → 0.1.24

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
@@ -53,6 +53,15 @@ declare const cardStyles: (props?: ({
53
53
  shadow?: "none" | "sm" | "xs" | "md" | "lg" | "xl" | "2xl" | null | undefined;
54
54
  } & ClassProp) | undefined) => string;
55
55
 
56
+ export declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
57
+
58
+ declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
59
+ label?: string;
60
+ helperText?: string;
61
+ error?: string;
62
+ touched?: boolean;
63
+ }
64
+
56
65
  declare type DropdownOption<T> = {
57
66
  label: string;
58
67
  value: T;
@@ -162,6 +171,10 @@ declare interface ITextProps extends React.HTMLAttributes<HTMLSpanElement>, Vari
162
171
  className?: string;
163
172
  }
164
173
 
174
+ declare interface ITooltipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof tooltipStyles> {
175
+ content: string;
176
+ }
177
+
165
178
  export declare const Modal: ({ className, children, isOpen, setIsOpen, }: ModalProps) => JSX_2.Element;
166
179
 
167
180
  declare interface ModalProps {
@@ -200,6 +213,16 @@ declare const textStyles: (props?: ({
200
213
  weight?: "bold" | "light" | "regular" | "semibold" | null | undefined;
201
214
  } & ClassProp) | undefined) => string;
202
215
 
216
+ export declare const Tooltip: ForwardRefExoticComponent<ITooltipProps & RefAttributes<HTMLSpanElement>>;
217
+
218
+ declare const tooltipStyles: (props?: ({
219
+ shadow?: "none" | "sm" | "xs" | "md" | "lg" | "xl" | "2xl" | null | undefined;
220
+ placement?: "top" | "bottom" | "left" | "right" | null | undefined;
221
+ delay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
222
+ closeDelay?: 0 | 200 | 75 | 100 | 150 | 300 | 500 | null | undefined;
223
+ rounded?: "full" | "sm" | null | undefined;
224
+ } & ClassProp) | undefined) => string;
225
+
203
226
  export declare const useOutsideClick: ({ ref, handler }: OutsideClickHandlerProps) => void;
204
227
 
205
228
  export { }