@mateosuarezdev/react-ui 1.0.55 → 1.0.57

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
@@ -14,7 +14,7 @@ import { ComponentPropsWithoutRef } from 'react';
14
14
  import { CSSProperties } from 'react';
15
15
  import { default as default_2 } from 'react';
16
16
  import { DetailedHTMLProps } from 'react';
17
- import { EventEmitter as EventEmitter_2 } from '@mateosuarezdev/event-emitter';
17
+ import { EventEmitter } from '@mateosuarezdev/event-emitter';
18
18
  import { FieldErrors } from 'react-hook-form';
19
19
  import { FieldValues } from 'react-hook-form';
20
20
  import { ForwardRefExoticComponent } from 'react';
@@ -247,13 +247,7 @@ export declare const ElasticHeader: ({ scrollY, height, className, children, }:
247
247
  children?: React.ReactNode;
248
248
  }) => JSX.Element;
249
249
 
250
- export declare class EventEmitter {
251
- private listeners;
252
- emit<T>(eventName: string, data?: T): void;
253
- listen<T>(eventName: string, listener: Listener<T>): () => void;
254
- }
255
-
256
- export declare const eventEmitter: EventEmitter_2;
250
+ export declare const eventEmitter: EventEmitter;
257
251
 
258
252
  /**
259
253
  * Extracts only the dirty fields from form data
@@ -473,8 +467,6 @@ export declare const List: ({ lightSolid, className, children, ...others }: {
473
467
  others?: any;
474
468
  }) => JSX.Element;
475
469
 
476
- export declare type Listener<T> = (data: T) => void;
477
-
478
470
  export declare const ListItem: ({ onClick, lightSolid, className, children, }: {
479
471
  onClick?: MouseEventHandler<HTMLButtonElement>;
480
472
  lightSolid?: boolean;