1mpacto-react-ui 0.0.21 → 0.0.23

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.
@@ -1,4 +1,4 @@
1
1
  import { IFilterDate } from '../../interfaces/components/DatePicker';
2
2
 
3
- declare const FilterDate: ({ value, prevIcon, nextIcon, buttonReset, buttonSubmit, className, classNameButton, buttonClick, buttonList, typePicker, onChange, idPopover, id, floatingOptions, }: IFilterDate) => import("react/jsx-runtime").JSX.Element;
3
+ declare const FilterDate: ({ value, prevIcon, nextIcon, buttonReset, buttonSubmit, className, classNameButton, buttonClick, buttonList, typePicker, onChange, idPopover, id, floatingOptions, offsetPopover, }: IFilterDate) => import("react/jsx-runtime").JSX.Element;
4
4
  export default FilterDate;
@@ -0,0 +1,4 @@
1
+ import { INumberFormat } from '../../interfaces/components/NumberFormat';
2
+
3
+ declare const NumberFormat: ({ max, onChange, ...otherProps }: INumberFormat) => import("react/jsx-runtime").JSX.Element;
4
+ export default NumberFormat;
@@ -1,4 +1,4 @@
1
1
  import { ITabs } from '../../interfaces/components/Tabs';
2
2
 
3
- declare const Tabs: ({ id, value, keyTab, tabsList, className, onChange }: ITabs) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Tabs: ({ id, value, keyValueTab, tabsList, className, onChange }: ITabs) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Tabs;
@@ -33,9 +33,12 @@ import { default as ModalDialog } from './Modal/ModalDialog';
33
33
  import { components as SelectDropdownContainerComponents } from 'react-select';
34
34
  import { default as Timeline } from './Timeline/Timeline';
35
35
  import { default as FilterContainer } from './FilterContainer/FilterContainer';
36
+ import { default as NumberFormat } from './NumberFormat/NumberFormat';
37
+ import { PatternFormat } from 'react-number-format';
38
+ import { IInputReguler, IInputFloatingInner } from '../interfaces/components/Input';
36
39
 
37
40
  import * as utilTable from '@tanstack/react-table';
38
41
  import type * as SelectDropdownContainerType from 'react-select';
39
42
  import type * as FilterContainerType from '../interfaces/components/FilterContainer';
40
- export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, };
41
- export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, };
43
+ export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, };
44
+ export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, };
@@ -15,6 +15,7 @@ export interface IDatePicker extends ICalendarPrevNextIcon, ICalendarButtonConfi
15
15
  idPopover?: string;
16
16
  id?: string;
17
17
  floatingOptions?: UseFloatingOptions;
18
+ offsetPopover?: number;
18
19
  }
19
20
  export interface IDateRangePicker extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
20
21
  defaultValue?: IDateRange;
@@ -42,4 +43,5 @@ export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButtonConfi
42
43
  idPopover?: string;
43
44
  id?: string;
44
45
  floatingOptions?: UseFloatingOptions;
46
+ offsetPopover?: number;
45
47
  }
@@ -3,7 +3,7 @@ import { InputHTMLAttributes, ReactNode } from 'react';
3
3
  export interface IInputFloatingInner extends InputHTMLAttributes<HTMLInputElement> {
4
4
  classNameContainer?: string | undefined;
5
5
  id?: string | undefined;
6
- label: string;
6
+ label?: string;
7
7
  type?: string;
8
8
  endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
9
9
  isRequired?: boolean;
@@ -14,7 +14,7 @@ export interface IInputFloatingInner extends InputHTMLAttributes<HTMLInputElemen
14
14
  export interface IInputReguler extends InputHTMLAttributes<HTMLInputElement> {
15
15
  classNameContainer?: string | undefined;
16
16
  id?: string | undefined;
17
- label: string;
17
+ label?: string;
18
18
  type?: string;
19
19
  endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
20
20
  isRequired?: boolean;
@@ -0,0 +1,6 @@
1
+ import { NumericFormatProps } from 'react-number-format';
2
+
3
+ export interface INumberFormat extends NumericFormatProps {
4
+ max?: number | undefined;
5
+ [key: string]: unknown;
6
+ }
@@ -29,6 +29,7 @@ export interface ISelectDropdownContainer<T> extends Omit<SelectProps<T, boolean
29
29
  components?: SelectComponentsConfig<T, boolean, GroupBase<T>>;
30
30
  getOptionLabel?: (option: T) => ReactNode | Element | string;
31
31
  selectProps?: object;
32
+ offsetPopover?: number;
32
33
  }
33
34
  export interface IChildrenSelectDropdownContainer {
34
35
  selectValue: unknown;
@@ -5,9 +5,9 @@ export interface ITabsList {
5
5
  }
6
6
  export interface ITabs {
7
7
  id?: string;
8
- value: string | number;
9
- keyTab?: string;
8
+ value?: string | number;
10
9
  tabsList: ITabsList[];
10
+ keyValueTab?: string;
11
11
  className?: string | undefined;
12
12
  onChange?: (v: ITabsList) => void;
13
13
  }
@@ -1 +1 @@
1
- export declare function formatNumber(number: number, locale?: string, style?: 'currency' | 'decimal', currency?: string, minimumFractionDigits?: number): string;
1
+ export declare function formatNumber(number: number, style?: 'currency' | 'decimal', minimumFractionDigits?: number, locale?: string, currency?: string): string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.21",
4
+ "version": "0.0.23",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",