1mpacto-react-ui 0.0.76 → 0.0.78
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 +81 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +19721 -11752
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/Calendar/CalendarMonth.d.ts +1 -1
- package/dist/src/components/Calendar/CalendarYear.d.ts +1 -1
- package/dist/src/components/Chart/DoughnutChart.d.ts +4 -0
- package/dist/src/components/Collapse/Collapse.d.ts +1 -1
- package/dist/src/components/DatePicker/MonthYearPicker.d.ts +4 -0
- package/dist/src/components/index.d.ts +3 -1
- package/dist/src/interfaces/components/Badges/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +1 -1
- package/dist/src/interfaces/components/Calendar/index.d.ts +11 -3
- package/dist/src/interfaces/components/Chart/index.d.ts +35 -0
- package/dist/src/interfaces/components/Chips/index.d.ts +1 -1
- package/dist/src/interfaces/components/Collapse/index.d.ts +3 -1
- package/dist/src/interfaces/components/DatePicker/index.d.ts +28 -1
- package/dist/src/utils/cookies.d.ts +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ICalendarMonth } from '../../interfaces/components/Calendar';
|
2
2
|
|
3
|
-
declare const CalendarMonth: ({ prevIcon, nextIcon, state,
|
3
|
+
declare const CalendarMonth: ({ prevIcon, nextIcon, state, setActiveTypeCalendar, onChangeMonth, type }: ICalendarMonth) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default CalendarMonth;
|
@@ -3,5 +3,5 @@ import { ICalendarYear } from '../../interfaces/components/Calendar';
|
|
3
3
|
export declare const ChevronDownIcon: ({ className }: {
|
4
4
|
className?: string;
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
6
|
-
declare const CalendarYear: ({ title, state, setUpYear,
|
6
|
+
declare const CalendarYear: ({ title, state, type, setUpYear, setActiveTypeCalendar, onChangeYear, }: ICalendarYear) => import("react/jsx-runtime").JSX.Element;
|
7
7
|
export default CalendarYear;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IDoughnutChart } from '../../interfaces/components/Chart';
|
2
|
+
|
3
|
+
declare const DoughnutChart: ({ labels, data, backgroundColor, options, redraw, widthInnerDoughnut, innerLabels, open, keyRemoveDataOpen, keyLabel, keyValue, keyBackground, className, }: IDoughnutChart) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export default DoughnutChart;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { ICollapse } from '../../interfaces/components/Collapse';
|
2
2
|
|
3
|
-
declare const Collapse: ({ children, open, className }: ICollapse) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
declare const Collapse: ({ children, id, open, className, maxCollapsedHeight, }: ICollapse) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default Collapse;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IMonthYearPicker } from '../../interfaces/components/DatePicker';
|
2
|
+
|
3
|
+
declare const MonthYearPicker: ({ month, year, type, activeType, minDate, maxDate, className, classNameButton, onChange, buttonClick, id, idPopover, floatingOptions, offsetPopover, zIndexPopper, }: IMonthYearPicker) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export default MonthYearPicker;
|
@@ -47,9 +47,11 @@ import { default as Textarea } from './Textarea/Textarea';
|
|
47
47
|
import { ITextarea } from '../interfaces/components/Textarea';
|
48
48
|
import { IListVirtualization } from '../interfaces/components/Virtualization/ListVirtualization';
|
49
49
|
import { ITableVirtualization } from '../interfaces/components/Virtualization/TableVirtualization';
|
50
|
+
import { default as DoughnutChart } from './Chart/DoughnutChart';
|
51
|
+
import { default as MonthYearPicker } from './DatePicker/MonthYearPicker';
|
50
52
|
|
51
53
|
import * as utilTable from '@tanstack/react-table';
|
52
54
|
import type * as SelectDropdownContainerType from 'react-select';
|
53
55
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
54
|
-
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, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, };
|
56
|
+
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, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, };
|
55
57
|
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, };
|
@@ -5,6 +5,6 @@ export interface IBadges extends React.HTMLAttributes<HTMLSpanElement> {
|
|
5
5
|
children: ReactNode | ReactNode[];
|
6
6
|
className?: string | undefined;
|
7
7
|
rounded?: IBorderRadius;
|
8
|
-
variants?: 'filled-gray-600' | 'filled-green-600' | 'filled-red-500' | 'filled-blue-600' | 'filled-amber-800' | 'filled-pink-600' | 'filled-lime-700' | 'filled-red-900' | 'ghost-gray-200' | 'ghost-green-100' | 'ghost-red-100' | 'ghost-blue-100' | 'ghost-amber-100' | 'outline-gray-600' | 'outline-green-600' | 'outline-red-500' | 'outline-blue-600' | 'outline-amber-800';
|
8
|
+
variants?: 'filled-gray-600' | 'filled-green-600' | 'filled-red-500' | 'filled-blue-600' | 'filled-amber-800' | 'filled-pink-600' | 'filled-lime-700' | 'filled-red-900' | 'ghost-gray-200' | 'ghost-green-100' | 'ghost-red-100' | 'ghost-blue-100' | 'ghost-amber-100' | 'ghost-laba-orange-01' | 'ghost-laba-green-01' | 'ghost-laba-blue-01' | 'outline-gray-600' | 'outline-green-600' | 'outline-red-500' | 'outline-blue-600' | 'outline-amber-800' | 'outline-laba-blue-01';
|
9
9
|
fonts?: 'lato' | 'inter';
|
10
10
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
|
3
|
-
export type TButtonIcomVariants = 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'ghost-blue-gray-100-bg_white' | 'nude-laba-blue-10' | 'nude-gray-500' | 'nude-laba-red-10' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500';
|
3
|
+
export type TButtonIcomVariants = 'filled-laba-blue-10' | 'filled-laba-white_laba-blue-10' | 'ghost-laba-blue-10' | 'ghost-blue-gray-100-bg_white' | 'nude-laba-blue-10' | 'nude-gray-500' | 'nude-laba-red-10' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500';
|
4
4
|
export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
|
5
5
|
export interface IButtonIcon extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
6
6
|
size?: TButtonIconSize;
|
@@ -25,13 +25,16 @@ export interface ICalendar extends CalendarStateOptions<DateValue>, ICalendarPre
|
|
25
25
|
minDate?: TDateType;
|
26
26
|
maxDate?: TDateType;
|
27
27
|
time?: ITimeCalendar;
|
28
|
+
activeType?: TCalendarType;
|
29
|
+
withDateSelect?: boolean;
|
30
|
+
type: TCalendarType[];
|
28
31
|
handlerChangeTime?: (v: ITimeCalendar) => void;
|
29
32
|
handlerReset: (v: CalendarState) => void;
|
30
33
|
handlerSubmit: () => void;
|
31
34
|
}
|
32
35
|
export interface ICalendarDateSelect extends CalendarStateOptions<DateValue>, ICalendarPrevNextIcon {
|
33
36
|
state: CalendarState;
|
34
|
-
|
37
|
+
setActiveTypeCalendar: (v: TCalendarType) => void;
|
35
38
|
}
|
36
39
|
export interface ICustomTimeCalendar {
|
37
40
|
time?: ITimeCalendar;
|
@@ -49,7 +52,10 @@ export interface ICalendarCell {
|
|
49
52
|
}
|
50
53
|
export interface ICalendarMonth extends ICalendarPrevNextIcon {
|
51
54
|
state: CalendarState | RangeCalendarState;
|
52
|
-
|
55
|
+
type: TCalendarType[];
|
56
|
+
setActiveTypeCalendar: (v: TCalendarType) => void;
|
57
|
+
withDateSelect?: boolean;
|
58
|
+
onChangeMonth?: (v: CalendarDate) => void;
|
53
59
|
}
|
54
60
|
export interface ISetUpYear {
|
55
61
|
startYear: number;
|
@@ -59,7 +65,9 @@ export interface ICalendarYear {
|
|
59
65
|
title: string;
|
60
66
|
state: CalendarState | RangeCalendarState;
|
61
67
|
setUpYear?: ISetUpYear;
|
62
|
-
|
68
|
+
type: TCalendarType[];
|
69
|
+
setActiveTypeCalendar: (v: TCalendarType) => void;
|
70
|
+
onChangeYear?: (v: CalendarDate) => void;
|
63
71
|
}
|
64
72
|
export interface IDateRange {
|
65
73
|
startDate: TDateType;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { ChartOptions } from 'chart.js';
|
2
|
+
|
3
|
+
export type TOptionsDoughnutChart = ChartOptions<'doughnut'>;
|
4
|
+
export interface IDataDoughnutChart {
|
5
|
+
[key: string]: unknown;
|
6
|
+
value: string | number;
|
7
|
+
originalValue?: string | number;
|
8
|
+
backgroundColor?: string;
|
9
|
+
}
|
10
|
+
export interface IDataInnerLabelDoughnutChart {
|
11
|
+
id: string;
|
12
|
+
text: string;
|
13
|
+
font?: {
|
14
|
+
size: number;
|
15
|
+
lineHeight: number;
|
16
|
+
};
|
17
|
+
percentage?: string;
|
18
|
+
color?: string;
|
19
|
+
urlIconDesc?: string;
|
20
|
+
}
|
21
|
+
export interface IDoughnutChart {
|
22
|
+
data: IDataDoughnutChart[];
|
23
|
+
widthInnerDoughnut: number;
|
24
|
+
innerLabels: IDataInnerLabelDoughnutChart[];
|
25
|
+
open?: boolean;
|
26
|
+
labels?: string[];
|
27
|
+
backgroundColor?: string[];
|
28
|
+
options?: TOptionsDoughnutChart;
|
29
|
+
redraw?: boolean;
|
30
|
+
keyLabel?: string;
|
31
|
+
keyValue?: string;
|
32
|
+
keyRemoveDataOpen?: string;
|
33
|
+
keyBackground?: string;
|
34
|
+
className?: string;
|
35
|
+
}
|
@@ -5,7 +5,7 @@ export interface IChips extends React.HTMLAttributes<HTMLSpanElement> {
|
|
5
5
|
className?: string | undefined;
|
6
6
|
fonts?: 'lato' | 'inter';
|
7
7
|
size?: 'reguler' | 'small' | 'l' | 's';
|
8
|
-
variants?: 'filled-laba-blue-10' | 'ghost-laba-grey-02' | 'nude-laba-grey-10' | 'filled-blue-gray-100';
|
8
|
+
variants?: 'filled-laba-blue-10' | 'ghost-laba-grey-02' | 'nude-laba-grey-10' | 'filled-blue-gray-100' | 'filled-gray-300';
|
9
9
|
icon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
10
10
|
removeIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
11
11
|
}
|
@@ -42,7 +42,34 @@ export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButtonConfi
|
|
42
42
|
defaultValueLabel?: TKeyButtonListType | IDateRange;
|
43
43
|
buttonList?: IButtonList[];
|
44
44
|
typePicker?: 'RANGE' | 'SINGLE';
|
45
|
-
onChange?: (v?: IDateRange) => void;
|
45
|
+
onChange?: (v?: IDateRange, label?: string) => void;
|
46
|
+
idPopover?: string;
|
47
|
+
id?: string;
|
48
|
+
floatingOptions?: UseFloatingOptions;
|
49
|
+
offsetPopover?: OffsetOptions;
|
50
|
+
zIndexPopper?: number | undefined | string;
|
51
|
+
}
|
52
|
+
export type TTypeMonthYearPicker = 'month' | 'year';
|
53
|
+
export interface IMonthYearPicker {
|
54
|
+
month: number;
|
55
|
+
year: number;
|
56
|
+
minDate?: TDateType;
|
57
|
+
maxDate?: TDateType;
|
58
|
+
type?: TTypeMonthYearPicker[];
|
59
|
+
activeType?: TTypeMonthYearPicker;
|
60
|
+
className?: string | undefined;
|
61
|
+
classNameButton?: string | undefined;
|
62
|
+
buttonClick?: ((v: {
|
63
|
+
month: number;
|
64
|
+
year: number;
|
65
|
+
}) => ReactNode) | ((v: {
|
66
|
+
month: number;
|
67
|
+
year: number;
|
68
|
+
}) => ReactNode[]);
|
69
|
+
onChange?: (v: {
|
70
|
+
month: number;
|
71
|
+
year: number;
|
72
|
+
}) => void;
|
46
73
|
idPopover?: string;
|
47
74
|
id?: string;
|
48
75
|
floatingOptions?: UseFloatingOptions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
type StrictCookieOptions = Pick<Cookies.CookieAttributes, 'expires' | 'path' | 'domain' | 'secure' | 'sameSite'>;
|
2
2
|
declare const cookieStorage: {
|
3
|
-
setItem(key: string, value: string,
|
3
|
+
setItem(key: string, value: string, options?: Partial<StrictCookieOptions>, chunkSize?: number): void;
|
4
4
|
getItem(key: string): string | null;
|
5
5
|
removeItem(key: string, options?: Partial<StrictCookieOptions>): void;
|
6
6
|
clear(options?: Partial<StrictCookieOptions>): void;
|
package/package.json
CHANGED