@grandbazar/ui-baza 1.2.0 → 1.2.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 (2) hide show
  1. package/dist/index.d.ts +5 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -79,7 +79,7 @@ export declare namespace Breadcrumbs {
79
79
  * @param asChild - When true, merges props onto the child element instead of rendering a button
80
80
  * @param children - Content to display inside the button
81
81
  */
82
- export declare function Button({ children, className, color, size, mode, asChild, ...props }: TButtonProps): JSX.Element;
82
+ export declare function Button({ children, className, color, size, mode, asChild, ...props }: TButtonPropsWithAsChild): JSX.Element;
83
83
 
84
84
  export declare namespace Button {
85
85
  var Function: typeof ButtonFunction;
@@ -474,7 +474,7 @@ declare type TAsChildProps<TDefaultElementProps> = ({
474
474
  asChild?: false;
475
475
  } & TDefaultElementProps) | {
476
476
  asChild: true;
477
- children: default_2.ReactNode;
477
+ children: React.ReactNode;
478
478
  };
479
479
 
480
480
  declare type TBadgeProps = React.HTMLAttributes<HTMLDivElement> & {
@@ -519,7 +519,9 @@ declare type TButtonFunctionProps = TAsChildProps<React.ButtonHTMLAttributes<HTM
519
519
  disabled?: boolean;
520
520
  };
521
521
 
522
- export declare type TButtonProps = TAsChildProps<React.ButtonHTMLAttributes<HTMLButtonElement>> & TButtonCommonProps;
522
+ export declare type TButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & TButtonCommonProps;
523
+
524
+ declare type TButtonPropsWithAsChild = TAsChildProps<React.ButtonHTMLAttributes<HTMLButtonElement>> & TButtonCommonProps;
523
525
 
524
526
  export declare type TCalendarDay = {
525
527
  date: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grandbazar/ui-baza",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A lightweight and modular UI kit for building modern, accessible web interfaces. Designed for flexibility, scalability, and developer happiness.",
5
5
  "repository": {
6
6
  "type": "git",