1mpacto-react-ui 0.0.24 → 0.0.26
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/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +42 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +8936 -7324
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Calendar/CalendarYear.d.ts +3 -0
- package/dist/src/components/DatePicker/FilterDate.d.ts +1 -1
- package/dist/src/interfaces/components/DatePicker/index.d.ts +4 -3
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +1 -1
- package/dist/src/interfaces/components/Table/index.d.ts +10 -0
- package/dist/src/utils/common.d.ts +15 -1
- package/package.json +2 -1
@@ -1,4 +1,7 @@
|
|
1
1
|
import { ICalendarYear } from '../../interfaces/components/Calendar';
|
2
2
|
|
3
|
+
export declare const ChevronDownIcon: ({ className }: {
|
4
|
+
className?: string;
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
3
6
|
declare const CalendarYear: ({ title, state, setUpYear, setType, }: ICalendarYear) => import("react/jsx-runtime").JSX.Element;
|
4
7
|
export default CalendarYear;
|
@@ -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, offsetPopover, zIndexPopper, }: 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, zIndexPopper, defaultValueLabel, }: IFilterDate) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default FilterDate;
|
@@ -16,7 +16,7 @@ export interface IDatePicker extends ICalendarPrevNextIcon, ICalendarButtonConfi
|
|
16
16
|
id?: string;
|
17
17
|
floatingOptions?: UseFloatingOptions;
|
18
18
|
offsetPopover?: OffsetOptions;
|
19
|
-
zIndexPopper?: number;
|
19
|
+
zIndexPopper?: number | undefined | string;
|
20
20
|
}
|
21
21
|
export interface IDateRangePicker extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
|
22
22
|
defaultValue?: IDateRange;
|
@@ -36,8 +36,9 @@ export interface IButtonList {
|
|
36
36
|
export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButtonConfirm {
|
37
37
|
className?: string | undefined;
|
38
38
|
classNameButton?: string | undefined;
|
39
|
-
buttonClick?: ReactNode | ReactNode[] | ((v: IDateRange | undefined) => ReactNode) | ((v: IDateRange | undefined) => ReactNode[]);
|
39
|
+
buttonClick?: ReactNode | ReactNode[] | ((v: IDateRange | undefined, label: IButtonList | undefined) => ReactNode) | ((v: IDateRange | undefined, label: IButtonList | undefined) => ReactNode[]);
|
40
40
|
value?: IDateRange | undefined;
|
41
|
+
defaultValueLabel?: TKeyButtonListType;
|
41
42
|
buttonList?: IButtonList[];
|
42
43
|
typePicker?: 'RANGE' | 'SINGLE';
|
43
44
|
onChange?: (v?: IDateRange) => void;
|
@@ -45,5 +46,5 @@ export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButtonConfi
|
|
45
46
|
id?: string;
|
46
47
|
floatingOptions?: UseFloatingOptions;
|
47
48
|
offsetPopover?: OffsetOptions;
|
48
|
-
zIndexPopper?: number;
|
49
|
+
zIndexPopper?: number | undefined | string;
|
49
50
|
}
|
@@ -18,7 +18,7 @@ export interface ISelectDropdownContainer<T> extends Omit<SelectProps<T, boolean
|
|
18
18
|
autoCloseOutside?: boolean;
|
19
19
|
styleInnerPopper?: React.CSSProperties;
|
20
20
|
onMenuClose?: () => void;
|
21
|
-
zIndexPopper?: number;
|
21
|
+
zIndexPopper?: number | undefined | string;
|
22
22
|
id?: string;
|
23
23
|
idPopover?: string;
|
24
24
|
useAutoPlacement?: boolean;
|
@@ -74,4 +74,14 @@ export interface ITableConfig {
|
|
74
74
|
utility: {
|
75
75
|
'table-scroll-top': string;
|
76
76
|
};
|
77
|
+
sortingIcon: {
|
78
|
+
'payhere-reguler': {
|
79
|
+
asc: Element | ReactNode | ReactNode[];
|
80
|
+
desc: Element | ReactNode | ReactNode[];
|
81
|
+
};
|
82
|
+
'laba-reguler': {
|
83
|
+
asc: Element | ReactNode | ReactNode[];
|
84
|
+
desc: Element | ReactNode | ReactNode[];
|
85
|
+
};
|
86
|
+
};
|
77
87
|
}
|
@@ -1 +1,15 @@
|
|
1
|
-
|
1
|
+
import { TDateType } from '../interfaces/components/Calendar';
|
2
|
+
|
3
|
+
export declare function formatNumber(number: number, style?: 'currency' | 'decimal', options?: {
|
4
|
+
minimumFractionDigits: number;
|
5
|
+
locale: string;
|
6
|
+
currency: string;
|
7
|
+
withSpace: boolean;
|
8
|
+
}): string;
|
9
|
+
export declare const formatDate: (date: TDateType, format?: string, defaultValue?: string) => string;
|
10
|
+
export declare const formatDateRange: (startDate: TDateType, endDate: TDateType, format?: string, separator?: string, defaultValue?: string) => string;
|
11
|
+
export declare const groupByKey: <T>(value: T[], key: keyof T) => Record<string, T[]>;
|
12
|
+
export declare const transformDataHistory: <T extends {
|
13
|
+
date: string | Date;
|
14
|
+
}>(value: T[], key: string, format?: string) => Record<string, T[]>;
|
15
|
+
export declare const parseDecimal: (value: number | string, decimals?: number) => number;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "1mpacto-react-ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.26",
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
7
7
|
"dev": "vite",
|
@@ -72,6 +72,7 @@
|
|
72
72
|
"@internationalized/date": "^3.5.4",
|
73
73
|
"@tanstack/react-table": "^8.19.2",
|
74
74
|
"chart.js": "^4.4.3",
|
75
|
+
"date-fns": "^3.6.0",
|
75
76
|
"react-aria": "^3.33.1",
|
76
77
|
"react-chartjs-2": "^5.2.0",
|
77
78
|
"react-number-format": "^5.4.0",
|