@cagatayfdn/flora-components 0.0.8 → 0.0.11

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
@@ -4,6 +4,7 @@ import { AxiosError } from 'axios';
4
4
  import { CustomLocale } from 'flatpickr/dist/types/locale';
5
5
  import { Dispatch as Dispatch_2 } from 'react';
6
6
  import { FC } from 'react';
7
+ import { FieldError } from 'react-hook-form';
7
8
  import i18n from 'i18next';
8
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
9
10
  import { LinkProps } from 'react-router-dom';
@@ -131,6 +132,16 @@ declare type ButtonProps = {
131
132
 
132
133
  export declare const changeLanguage: (user: any, t: TFunction) => void;
133
134
 
135
+ export declare const Checkbox: React_2.ForwardRefExoticComponent<{
136
+ id?: string | undefined;
137
+ label?: string | undefined;
138
+ labelAppearance?: FormFieldAppearance | undefined;
139
+ className?: string | undefined;
140
+ wrapperClassName?: string | undefined;
141
+ checked?: boolean | undefined;
142
+ isInline?: boolean | undefined;
143
+ } & FormElementProps & Pick<EventProps<HTMLInputElement>, "onClick" | "onChange" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
144
+
134
145
  export declare const Column: ({ children, auto, size, sm, md, lg, xl, className, }: ColumnProps) => JSX.Element;
135
146
 
136
147
  declare type ColumnProps = {
@@ -186,6 +197,18 @@ declare interface EventProps<T = HTMLElement> {
186
197
  onInvalid?: (e: React.FormEvent<T>) => void;
187
198
  }
188
199
 
200
+ declare interface FormElementProps {
201
+ name: string;
202
+ placeholder?: string;
203
+ label?: ReactNode;
204
+ error?: FieldError;
205
+ readOnly?: boolean;
206
+ isDisabled?: boolean;
207
+ maxLength?: number;
208
+ autoFocus?: boolean;
209
+ value?: string | number;
210
+ }
211
+
189
212
  export declare enum FormFieldAppearance {
190
213
  LIGHT = "light",
191
214
  DARK = "dark",
@@ -278,6 +301,15 @@ export declare enum isActiveColor {
278
301
  active = "#3f4b5c"
279
302
  }
280
303
 
304
+ export declare const Label: (props: LabelProps) => JSX.Element;
305
+
306
+ declare type LabelProps = {
307
+ children: ReactNode;
308
+ name?: string;
309
+ className?: string;
310
+ appearance?: FormFieldAppearance;
311
+ };
312
+
281
313
  export declare const Loading: ({ className, appearance, layer, wrapperClass, }: LoadingProps) => JSX.Element;
282
314
 
283
315
  declare type LoadingProps = {
@@ -314,6 +346,8 @@ declare type ModalProps = {
314
346
 
315
347
  export { NiceModal }
316
348
 
349
+ export declare function NoResult(): JSX_2.Element;
350
+
317
351
  export declare enum NotificationAppearanceType {
318
352
  INFO = "info",
319
353
  SUCCESS = "success",