diditui 0.0.3 → 0.0.5

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
@@ -1,4 +1,5 @@
1
1
  import { ClassProp } from 'class-variance-authority/types';
2
+ import { ClassValue } from 'clsx';
2
3
  import { ComponentProps } from 'react';
3
4
  import { Config } from 'tailwindcss';
4
5
  import { default as default_2 } from 'react';
@@ -18,7 +19,7 @@ declare type AsProp<C extends default_2.ElementType> = {
18
19
  export declare function Button({ size, variant, icon, isLoading, disabled, className, children, ...props }: ButtonProps): JSX_2.Element;
19
20
 
20
21
  declare type ButtonProps = ComponentProps<'button'> & {
21
- variant?: 'default' | 'primary' | 'soft';
22
+ variant?: 'default' | 'primary' | 'soft' | 'white';
22
23
  size?: 'md' | 'lg';
23
24
  icon?: IconType;
24
25
  isLoading?: boolean;
@@ -33,6 +34,8 @@ declare const cardStyles: (props?: ({
33
34
  shadow?: boolean | null | undefined;
34
35
  } & ClassProp) | undefined) => string;
35
36
 
37
+ export declare function cn(...classes: ClassValue[]): string;
38
+
36
39
  export declare const didituiConfig: Config;
37
40
 
38
41
  /**
@@ -72,6 +75,14 @@ export declare type IconType = 'settings' | 'info' | 'arrowRight' | 'scan' | 'wa
72
75
  */
73
76
  declare type InheritableElementProps<C extends default_2.ElementType, Props = {}> = ExtendableProps<PropsOf<C>, Props>;
74
77
 
78
+ export declare const MediaQuery: {
79
+ SM: number;
80
+ MD: number;
81
+ LG: number;
82
+ XL: number;
83
+ XXL: number;
84
+ };
85
+
75
86
  export declare function Modal({ children, contentLabel, overlayClassName, className, onRequestClose, ...props }: Props): JSX_2.Element;
76
87
 
77
88
  /**
@@ -92,7 +103,7 @@ export declare function QrCode({ uri, size, color, iconName, className, ...props
92
103
 
93
104
  declare type QrCodeProps = ComponentProps<'div'> & {
94
105
  uri: string;
95
- size?: 'sm' | 'md' | 'lg' | number;
106
+ size?: 'sm' | 'md' | 'lg' | 'xl' | number;
96
107
  color?: string;
97
108
  iconName?: IconType;
98
109
  };