@zuzjs/ui 1.0.13 → 1.0.14

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.cts CHANGED
@@ -440,6 +440,7 @@ type ButtonProps = Props<`button`> & {
440
440
  state?: ButtonState;
441
441
  variant?: ValueOf<typeof Variant>;
442
442
  reset?: boolean;
443
+ kind?: `solid` | `subtle` | `surface` | `outline` | `ghost` | `plain`;
443
444
  };
444
445
  interface ButtonHandler extends HTMLButtonElement {
445
446
  reset: () => void;
@@ -895,7 +896,7 @@ declare const Sheet: react.ForwardRefExoticComponent<ZuzProps & {
895
896
  onHide?: () => void;
896
897
  } & react.RefAttributes<SheetHandler>>;
897
898
 
898
- type FormProps = BoxProps & {
899
+ type FormProps = Omit<BoxProps, `ref`> & {
899
900
  /** Name of form, will be appended to --form-{name} in className
900
901
  * whitespace will be replaced with dash (-)
901
902
  */
@@ -947,9 +948,15 @@ interface FormHandler {
947
948
  * @param props - Properties to configure form behavior, validation messages, submission handling, and visual feedback.
948
949
  * @param ref - Reference to the {@link FormHandler} interface, exposing methods to control loading and error states from the parent.
949
950
  */
950
- declare const Form: react.ForwardRefExoticComponent<Omit<FormProps, "ref"> & react.RefAttributes<FormHandler>>;
951
+ declare const Form: {
952
+ ({ ref, ...props }: FormProps & {
953
+ ref?: Ref<FormHandler>;
954
+ }): react_jsx_runtime.JSX.Element;
955
+ displayName: string;
956
+ };
951
957
 
952
958
  type GroupProps = BoxProps & {
959
+ when?: boolean;
953
960
  fxDelay?: number;
954
961
  fxStep?: number;
955
962
  classToIgnore?: string;
package/dist/index.d.ts CHANGED
@@ -440,6 +440,7 @@ type ButtonProps = Props<`button`> & {
440
440
  state?: ButtonState;
441
441
  variant?: ValueOf<typeof Variant>;
442
442
  reset?: boolean;
443
+ kind?: `solid` | `subtle` | `surface` | `outline` | `ghost` | `plain`;
443
444
  };
444
445
  interface ButtonHandler extends HTMLButtonElement {
445
446
  reset: () => void;
@@ -895,7 +896,7 @@ declare const Sheet: react.ForwardRefExoticComponent<ZuzProps & {
895
896
  onHide?: () => void;
896
897
  } & react.RefAttributes<SheetHandler>>;
897
898
 
898
- type FormProps = BoxProps & {
899
+ type FormProps = Omit<BoxProps, `ref`> & {
899
900
  /** Name of form, will be appended to --form-{name} in className
900
901
  * whitespace will be replaced with dash (-)
901
902
  */
@@ -947,9 +948,15 @@ interface FormHandler {
947
948
  * @param props - Properties to configure form behavior, validation messages, submission handling, and visual feedback.
948
949
  * @param ref - Reference to the {@link FormHandler} interface, exposing methods to control loading and error states from the parent.
949
950
  */
950
- declare const Form: react.ForwardRefExoticComponent<Omit<FormProps, "ref"> & react.RefAttributes<FormHandler>>;
951
+ declare const Form: {
952
+ ({ ref, ...props }: FormProps & {
953
+ ref?: Ref<FormHandler>;
954
+ }): react_jsx_runtime.JSX.Element;
955
+ displayName: string;
956
+ };
951
957
 
952
958
  type GroupProps = BoxProps & {
959
+ when?: boolean;
953
960
  fxDelay?: number;
954
961
  fxStep?: number;
955
962
  classToIgnore?: string;