@inceptionbg/iui 1.0.9 → 1.0.10

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
@@ -3,7 +3,6 @@ export { default as clsx } from 'clsx';
3
3
  export { default as moment } from 'moment';
4
4
  export { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
5
5
  export { v4 as uuidv4 } from 'uuid';
6
- import { AxiosInstance } from 'axios';
7
6
  export { AxiosInstance } from 'axios';
8
7
  import * as react from 'react';
9
8
  import { ReactNode, FunctionComponent, RefObject, MouseEventHandler, ReactElement, Dispatch, SetStateAction, FormEvent, FC, ButtonHTMLAttributes, InputHTMLAttributes } from 'react';
@@ -354,39 +353,39 @@ declare const deleteEmptyPropsIncludingArray: (obj: IAnyObject) => any;
354
353
  declare const getActiveFilterNumber: (obj: any) => number;
355
354
  declare const getVisibleColumnsIds: (tableCols: ITableColumn[], isPrint?: boolean) => string[];
356
355
 
357
- interface Props$s {
356
+ interface Props$q {
358
357
  tabs: ITab[];
359
358
  initialValue?: string;
360
359
  compact?: boolean;
361
360
  className?: string;
362
361
  }
363
- declare const Accordions: FC<Props$s>;
362
+ declare const Accordions: FC<Props$q>;
364
363
 
365
- interface Props$r {
364
+ interface Props$p {
366
365
  text?: string;
367
366
  severity: "success" | "info" | "warning" | "error";
368
367
  fitContent?: boolean;
369
368
  className?: string;
370
369
  children?: ReactNode;
371
370
  }
372
- declare const Alert: FC<Props$r>;
371
+ declare const Alert: FC<Props$p>;
373
372
 
374
- interface Props$q {
373
+ interface Props$o {
375
374
  number?: number;
376
375
  className?: string;
377
376
  small?: boolean;
378
377
  children?: ReactNode;
379
378
  }
380
- declare const NotificationBadge: FC<Props$q>;
379
+ declare const NotificationBadge: FC<Props$o>;
381
380
 
382
- interface Props$p {
381
+ interface Props$n {
383
382
  label: string;
384
383
  color: "success" | "info" | "warning" | "error" | "gray";
385
384
  className?: string;
386
385
  }
387
- declare const PillBadge: react.ForwardRefExoticComponent<Props$p & react.RefAttributes<HTMLDivElement>>;
386
+ declare const PillBadge: react.ForwardRefExoticComponent<Props$n & react.RefAttributes<HTMLDivElement>>;
388
387
 
389
- interface Props$o {
388
+ interface Props$m {
390
389
  label: string;
391
390
  icon?: IconDefinition;
392
391
  iconEnd?: IconDefinition;
@@ -399,9 +398,9 @@ interface Props$o {
399
398
  size?: "xs" | "s" | "m" | "l";
400
399
  buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
401
400
  }
402
- declare const Button: react.ForwardRefExoticComponent<Props$o & react.RefAttributes<HTMLButtonElement>>;
401
+ declare const Button: react.ForwardRefExoticComponent<Props$m & react.RefAttributes<HTMLButtonElement>>;
403
402
 
404
- interface Props$n {
403
+ interface Props$l {
405
404
  icon: IconDefinition;
406
405
  onClick?: MouseEventHandler<HTMLButtonElement>;
407
406
  disabled?: boolean;
@@ -409,9 +408,9 @@ interface Props$n {
409
408
  active?: boolean;
410
409
  buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
411
410
  }
412
- declare const IconButton: react.ForwardRefExoticComponent<Props$n & react.RefAttributes<HTMLButtonElement>>;
411
+ declare const IconButton: react.ForwardRefExoticComponent<Props$l & react.RefAttributes<HTMLButtonElement>>;
413
412
 
414
- interface Props$m {
413
+ interface Props$k {
415
414
  title?: string;
416
415
  titleEl?: ReactNode;
417
416
  desc?: string;
@@ -445,22 +444,22 @@ interface Props$m {
445
444
  className?: string;
446
445
  children?: ReactNode;
447
446
  }
448
- declare const Dialog: FC<Props$m>;
447
+ declare const Dialog: FC<Props$k>;
449
448
 
450
- interface Props$l {
449
+ interface Props$j {
451
450
  isOpen: boolean;
452
451
  className?: string;
453
452
  children?: ReactNode;
454
453
  }
455
- declare const Collapse: FC<Props$l>;
454
+ declare const Collapse: FC<Props$j>;
456
455
 
457
- interface Props$k {
456
+ interface Props$i {
458
457
  title?: string;
459
458
  buttonLabel?: string;
460
459
  }
461
- declare const NoAccessInfo: FC<Props$k>;
460
+ declare const NoAccessInfo: FC<Props$i>;
462
461
 
463
- interface Props$j {
462
+ interface Props$h {
464
463
  label?: string;
465
464
  value: boolean;
466
465
  setValue: (checked: boolean) => void;
@@ -469,9 +468,9 @@ interface Props$j {
469
468
  className?: string;
470
469
  children?: ReactNode;
471
470
  }
472
- declare const Checkbox: react.ForwardRefExoticComponent<Props$j & react.RefAttributes<HTMLLabelElement>>;
471
+ declare const Checkbox: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLLabelElement>>;
473
472
 
474
- interface Props$i {
473
+ interface Props$g {
475
474
  label?: string;
476
475
  date?: string;
477
476
  setDate: (date: string) => void;
@@ -483,9 +482,9 @@ interface Props$i {
483
482
  className?: string;
484
483
  calendarPlacementX?: "left" | "right";
485
484
  }
486
- declare const DateInput: react.ForwardRefExoticComponent<Props$i & react.RefAttributes<HTMLInputElement>>;
485
+ declare const DateInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLInputElement>>;
487
486
 
488
- interface Props$h {
487
+ interface Props$f {
489
488
  label: string;
490
489
  value?: string;
491
490
  setValue: (value: string) => void;
@@ -499,9 +498,9 @@ interface Props$h {
499
498
  inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
500
499
  error?: boolean;
501
500
  }
502
- declare const LargeTextInput: react.ForwardRefExoticComponent<Props$h & react.RefAttributes<HTMLTextAreaElement>>;
501
+ declare const LargeTextInput: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLTextAreaElement>>;
503
502
 
504
- interface Props$g {
503
+ interface Props$e {
505
504
  label?: string;
506
505
  value?: string | number;
507
506
  setValue: (value: string) => void;
@@ -517,7 +516,7 @@ interface Props$g {
517
516
  alignLeft?: boolean;
518
517
  inputProps?: InputHTMLAttributes<HTMLInputElement>;
519
518
  }
520
- declare const NumberInput: react.ForwardRefExoticComponent<Props$g & react.RefAttributes<HTMLInputElement>>;
519
+ declare const NumberInput: react.ForwardRefExoticComponent<Props$e & react.RefAttributes<HTMLInputElement>>;
521
520
 
522
521
  interface ITextInput {
523
522
  label?: string;
@@ -544,7 +543,7 @@ interface IProps$1 extends ITextInput {
544
543
  }
545
544
  declare const PasswordInput: FC<IProps$1>;
546
545
 
547
- interface Props$f {
546
+ interface Props$d {
548
547
  label?: string;
549
548
  value: string | number | boolean;
550
549
  selected: string | number | boolean;
@@ -553,9 +552,15 @@ interface Props$f {
553
552
  className?: string;
554
553
  children?: ReactNode;
555
554
  }
556
- declare const Radio: react.ForwardRefExoticComponent<Props$f & react.RefAttributes<HTMLDivElement>>;
555
+ declare const Radio: react.ForwardRefExoticComponent<Props$d & react.RefAttributes<HTMLDivElement>>;
557
556
 
558
- interface Props$e {
557
+ interface IProps {
558
+ onSearch: (searchText: string) => void;
559
+ className?: string;
560
+ }
561
+ declare const SearchInput: FC<IProps>;
562
+
563
+ interface Props$c {
559
564
  label?: string;
560
565
  options: ISelectData[];
561
566
  value?: ISelectData | null;
@@ -575,9 +580,9 @@ interface Props$e {
575
580
  noOptionsMessage?: string;
576
581
  error?: boolean;
577
582
  }
578
- declare const Select: FC<Props$e>;
583
+ declare const Select: FC<Props$c>;
579
584
 
580
- interface Props$d {
585
+ interface Props$b {
581
586
  label?: string;
582
587
  value?: ISelectData | null;
583
588
  valuesMulti?: ISelectData[];
@@ -599,15 +604,15 @@ interface Props$d {
599
604
  noOptionsMessage?: string;
600
605
  error?: boolean;
601
606
  }
602
- declare const SelectAsyncPaginate: FC<Props$d>;
607
+ declare const SelectAsyncPaginate: FC<Props$b>;
603
608
 
604
- interface Props$c {
609
+ interface Props$a {
605
610
  isLoading: boolean;
606
611
  logo?: string;
607
612
  fullWidth?: boolean;
608
613
  children: ReactNode;
609
614
  }
610
- declare const Loader: FC<Props$c>;
615
+ declare const Loader: FC<Props$a>;
611
616
  declare const FullScreenLoader: FC<{
612
617
  isLoading: boolean;
613
618
  logo?: string;
@@ -616,7 +621,7 @@ declare const LazyLoader: FC<{
616
621
  logo?: string;
617
622
  }>;
618
623
 
619
- interface Props$b {
624
+ interface Props$9 {
620
625
  isOpen: boolean;
621
626
  onClose: () => void;
622
627
  renderButton: (ref: RefObject<any>) => ReactNode;
@@ -626,9 +631,9 @@ interface Props$b {
626
631
  className?: string;
627
632
  children?: ReactNode;
628
633
  }
629
- declare const Menu: FC<Props$b>;
634
+ declare const Menu: FC<Props$9>;
630
635
 
631
- interface Props$a {
636
+ interface Props$8 {
632
637
  label?: string;
633
638
  icon?: IconDefinition;
634
639
  iconRotation?: RotateProp;
@@ -639,22 +644,7 @@ interface Props$a {
639
644
  className?: string;
640
645
  children?: ReactNode;
641
646
  }
642
- declare const MenuItem: FC<Props$a>;
643
-
644
- interface Props$9 {
645
- moduleName?: string;
646
- children?: ReactNode;
647
- }
648
- declare const Header: FC<Props$9>;
649
-
650
- interface Props$8 {
651
- items: ISidebarItem[][];
652
- UserBox?: ReactElement;
653
- logo?: string;
654
- collapsed?: boolean;
655
- setCollapsed?: (collapsed: boolean) => void;
656
- }
657
- declare const Sidebar: FC<Props$8>;
647
+ declare const MenuItem: FC<Props$8>;
658
648
 
659
649
  interface Props$7 extends ITableFilterData {
660
650
  isOpen: boolean;
@@ -759,22 +749,6 @@ declare const parseUrlSearch: (search: string) => {
759
749
  [k: string]: string;
760
750
  };
761
751
 
762
- declare const axiosInstance: AxiosInstance;
763
- interface IProps {
764
- API_URL: string;
765
- CERTIFICATE_URL: string;
766
- children: ReactNode;
767
- }
768
- declare global {
769
- var axiosInstance: AxiosInstance;
770
- }
771
- declare const AxiosTokenHandler: FC<IProps>;
772
-
773
- declare const login: (data: FormData) => Promise<void>;
774
- declare const logOut: (nextUrl?: boolean, clearData?: boolean) => void;
775
- declare const loginWithCertificate: () => Promise<void>;
776
- declare const getNewTokens: (refreshToken: string) => Promise<void>;
777
-
778
752
  type LocalStorageItem = "activeUser" | "token" | "refreshToken" | "logInWay" | "codeVerifier" | "activeOrg";
779
753
  declare const lsGet: (key: LocalStorageItem) => string | null;
780
754
  declare const lsSet: (key: LocalStorageItem, value: string) => void;
@@ -784,4 +758,4 @@ declare const setDefaultOrgUuid: (organizationUuid: string) => void;
784
758
  declare const getActiveOrgUuid: () => string;
785
759
  declare const setActiveOrgUuid: (organizationUuid: string) => void;
786
760
 
787
- export { Accordions, Alert, AxiosTokenHandler, Button, Checkbox, Collapse, ConditionalWrapper, DateInput, Dialog, FormWrapper, FullPageWrapper, FullScreenLoader, Header, IAnyObject, IBooleanObject, IError, IFormWrapper, IPageWrapper, IPagination, ISelectData, IServerSidePagination, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, ISimpleObjectWithCodeNew, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, IToken, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NoAccessInfo, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, Select, SelectAsyncPaginate, SetTableFilter, Sidebar, Table, TableEditRow, TableFooter, Tabs, TextInput, Tooltip, axiosInstance, checkIfExpired, dateAddDays, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getNewTokens, getVisibleColumnsIds, logOut, login, loginWithCertificate, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, setActiveOrgUuid, setDefaultOrgUuid };
761
+ export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, DateInput, Dialog, FormWrapper, FullPageWrapper, FullScreenLoader, IAnyObject, IBooleanObject, IError, IFormWrapper, IPageWrapper, IPagination, ISelectData, IServerSidePagination, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, ISimpleObjectWithCodeNew, IStringObject, ITab, ITable, ITableColumn, ITableDataItem, ITableEditRow, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, IToken, IValueLabel, IconButton, ItemActionsMenu, ItemEditOptionsButtons, LargeTextInput, LazyLoader, Loader, Menu, MenuItem, NoAccessInfo, NotificationBadge, NumberInput, PageWrapper, PasswordInput, PillBadge, Radio, SearchInput, Select, SelectAsyncPaginate, SetTableFilter, Table, TableEditRow, TableFooter, Tabs, TextInput, Tooltip, checkIfExpired, dateAddDays, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getVisibleColumnsIds, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, setActiveOrgUuid, setDefaultOrgUuid };