@mateosuarezdev/react-ui 1.0.56 → 1.0.58

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';
@@ -219,6 +219,10 @@ export declare const DateTimePicker: () => JSX.Element;
219
219
  */
220
220
  export declare function debounce<T extends (...args: any[]) => any>(func: T, delay?: number): (...args: Parameters<T>) => void;
221
221
 
222
+ export declare const Divider: ({ className }: {
223
+ className?: string;
224
+ }) => JSX.Element;
225
+
222
226
  /**
223
227
  * ElasticHeader - Creates a pull-to-zoom effect on scroll
224
228
  *
@@ -247,13 +251,7 @@ export declare const ElasticHeader: ({ scrollY, height, className, children, }:
247
251
  children?: React.ReactNode;
248
252
  }) => JSX.Element;
249
253
 
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;
254
+ export declare const eventEmitter: EventEmitter;
257
255
 
258
256
  /**
259
257
  * Extracts only the dirty fields from form data
@@ -473,8 +471,6 @@ export declare const List: ({ lightSolid, className, children, ...others }: {
473
471
  others?: any;
474
472
  }) => JSX.Element;
475
473
 
476
- export declare type Listener<T> = (data: T) => void;
477
-
478
474
  export declare const ListItem: ({ onClick, lightSolid, className, children, }: {
479
475
  onClick?: MouseEventHandler<HTMLButtonElement>;
480
476
  lightSolid?: boolean;
@@ -739,10 +735,6 @@ declare interface SelectProps<T> {
739
735
  className?: string;
740
736
  }
741
737
 
742
- export declare const Separator: ({ className }: {
743
- className?: string;
744
- }) => JSX.Element;
745
-
746
738
  export declare function setFocusEnd(element: HTMLInputElement): void;
747
739
 
748
740
  export declare const ShowMoreText: ({ text, length, size, className, buttonClassName, }: {