diditui 0.0.8 → 0.0.10

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/diditui.d.ts CHANGED
@@ -16,15 +16,20 @@ declare type AsProp<C extends default_2.ElementType> = {
16
16
  as?: C;
17
17
  };
18
18
 
19
- export declare function Button({ size, variant, icon, isLoading, disabled, className, children, ...props }: ButtonProps): JSX_2.Element;
19
+ export declare function Button({ size, variant, icon, isLoading, animate, disabled, className, children, ...props }: ButtonProps): JSX_2.Element;
20
20
 
21
- declare type ButtonProps = ComponentProps<'button'> & {
22
- variant?: 'default' | 'primary' | 'soft' | 'white';
23
- size?: 'md' | 'lg';
21
+ declare type ButtonProps = ComponentProps<'button'> & VariantProps<typeof buttonStyles> & {
24
22
  icon?: IconType;
25
- isLoading?: boolean;
26
23
  };
27
24
 
25
+ declare const buttonStyles: (props?: ({
26
+ variant?: "default" | "primary" | "soft" | "white" | null | undefined;
27
+ size?: "md" | "lg" | null | undefined;
28
+ disabled?: boolean | null | undefined;
29
+ isLoading?: boolean | null | undefined;
30
+ animate?: boolean | null | undefined;
31
+ } & ClassProp) | undefined) => string;
32
+
28
33
  export declare function Card({ className, padding, shadow, children, ...props }: CardProps): JSX_2.Element;
29
34
 
30
35
  declare type CardProps = ComponentProps<'div'> & VariantProps<typeof cardStyles>;
@@ -168,18 +173,15 @@ export declare type UseMediaQueryOptions = {
168
173
  initializeWithValue?: boolean;
169
174
  };
170
175
 
171
- export declare function UserCard({ name, label, avatar, size, className, ...props }: UserCardProps): JSX_2.Element;
176
+ export declare function UserCard({ name, label, avatar, radius, className, ...props }: UserCardProps): JSX_2.Element;
172
177
 
173
- declare type UserCardProps = ComponentProps<'div'> & VariantProps<typeof userCardStyles> & {
178
+ declare type UserCardProps = ComponentProps<'div'> & {
174
179
  name: string;
175
180
  label?: string;
176
181
  avatar?: string;
182
+ radius?: 'full' | 'md' | 'sm' | 'none';
177
183
  };
178
184
 
179
- declare const userCardStyles: (props?: ({
180
- size?: "xs" | "sm" | "md" | "lg" | null | undefined;
181
- } & ClassProp) | undefined) => string;
182
-
183
185
  export declare function useSmMediaQuery(options?: UseMediaQueryOptions): boolean;
184
186
 
185
187
  export declare function useXlMediaQuery(options?: UseMediaQueryOptions): boolean;