1mpacto-react-ui 0.0.100 → 0.0.101
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 +65 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6433 -6041
- package/dist/index.mjs.map +1 -1
- package/dist/src/components/ButtonPopover/ButtonPopover.d.ts +5 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/src/components/index.d.ts +5 -2
- package/dist/src/interfaces/components/ButtonPopover/index.d.ts +23 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +3 -1
- package/dist/src/interfaces/components/Table/index.d.ts +1 -0
- package/dist/src/interfaces/components/Tabs/index.d.ts +1 -0
- package/dist/src/interfaces/components/Tooltip/index.d.ts +20 -0
- package/package.json +1 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
import { IButtonPopover, IRefButtonPopover } from '../../interfaces/components/ButtonPopover';
|
3
|
+
|
4
|
+
declare const ButtonPopover: React.ForwardRefExoticComponent<IButtonPopover & React.RefAttributes<IRefButtonPopover>>;
|
5
|
+
export default ButtonPopover;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { ITooltip } from '../../interfaces/components/Tooltip';
|
2
|
+
|
3
|
+
declare const Tooltip: ({ id, children, text, zIndexPopover, onShow, onClose, placement, backgroundColor, popoverProps, arrowProps, className, isHover, delay, }: ITooltip) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export default Tooltip;
|
@@ -61,9 +61,12 @@ import { default as TextareaFloatingInner } from './Textarea/TextareaFloatingInn
|
|
61
61
|
import { default as Step } from './Step/Step';
|
62
62
|
import { IDataStepList } from '../interfaces/components/Step/index';
|
63
63
|
import { default as LineChart } from './Chart/LineChart';
|
64
|
+
import { default as Tooltip } from './Tooltip/Tooltip';
|
65
|
+
import { default as ButtonPopover } from './ButtonPopover/ButtonPopover';
|
66
|
+
import { IRefButtonPopover } from '../interfaces/components/ButtonPopover/index';
|
64
67
|
|
65
68
|
import * as utilTable from '@tanstack/react-table';
|
66
69
|
import type * as SelectDropdownContainerType from 'react-select';
|
67
70
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
68
|
-
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, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, };
|
69
|
-
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, };
|
71
|
+
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, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, };
|
72
|
+
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, };
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { OffsetOptions, UseFloatingOptions } from '@floating-ui/react';
|
2
|
+
import { IPopover } from '../Popover';
|
3
|
+
import { IButton } from '../Button';
|
4
|
+
|
5
|
+
export interface IButtonPopover extends IButton {
|
6
|
+
text?: string;
|
7
|
+
startIconShow?: React.ReactNode | React.ReactNode[];
|
8
|
+
endIconShow?: React.ReactNode | React.ReactNode[];
|
9
|
+
idPopover?: string;
|
10
|
+
classNameButton?: string;
|
11
|
+
zIndexPopover?: number;
|
12
|
+
offset?: OffsetOptions;
|
13
|
+
popoverProps?: Omit<IPopover, 'children'>;
|
14
|
+
placement?: UseFloatingOptions['placement'];
|
15
|
+
onClose?: () => void;
|
16
|
+
}
|
17
|
+
export interface IRefButtonPopover {
|
18
|
+
show: boolean;
|
19
|
+
setShow: (e: boolean) => void;
|
20
|
+
handlerShow: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
21
|
+
handlerClose: () => void;
|
22
|
+
}
|
23
|
+
export type TGetIconButtonPopover = (isShow: boolean, iconShow?: React.ReactNode | React.ReactNode[], iconClose?: IButton['startIcon'] | IButton['endIcon']) => IButton['startIcon'] | IButton['endIcon'];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { FlipOptions, AutoPlacementOptions, UseFloatingOptions, OffsetOptions } from '@floating-ui/react';
|
2
|
+
import { FlipOptions, AutoPlacementOptions, UseFloatingOptions, OffsetOptions, FloatingArrowProps } from '@floating-ui/react';
|
3
3
|
|
4
4
|
export interface IPopover extends React.HTMLAttributes<HTMLDivElement> {
|
5
5
|
children: ReactNode | ReactNode[];
|
@@ -14,6 +14,8 @@ export interface IPopover extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
14
|
width?: number | string;
|
15
15
|
styleInnerPopover?: React.CSSProperties;
|
16
16
|
floatingOptions?: UseFloatingOptions;
|
17
|
+
withArrow?: boolean;
|
18
|
+
propsArrow?: Partial<FloatingArrowProps>;
|
17
19
|
onClose?: () => void;
|
18
20
|
}
|
19
21
|
export interface IRefPopover {
|
@@ -71,6 +71,7 @@ export interface IVirtualizationHead extends React.HTMLAttributes<HTMLTableSecti
|
|
71
71
|
export interface IVirtualizationTable extends React.HTMLAttributes<HTMLTableElement> {
|
72
72
|
context?: {
|
73
73
|
classNameTable?: string;
|
74
|
+
width: string | number;
|
74
75
|
[key: string]: unknown;
|
75
76
|
};
|
76
77
|
[key: string]: unknown;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { IPopover } from '1mpacto-react-ui';
|
2
|
+
import { FloatingArrowProps, UseFloatingOptions } from '@floating-ui/react';
|
3
|
+
import { default as React } from 'react';
|
4
|
+
import { IColor } from '../../../config/tailwind/colors';
|
5
|
+
|
6
|
+
export interface ITooltip {
|
7
|
+
id?: string;
|
8
|
+
children: string | React.ReactNode | React.ReactNode[];
|
9
|
+
text: string;
|
10
|
+
onClose?: () => void;
|
11
|
+
onShow?: () => void;
|
12
|
+
delay?: number;
|
13
|
+
zIndexPopover?: number;
|
14
|
+
popoverProps?: Omit<IPopover, 'children'>;
|
15
|
+
arrowProps?: Partial<FloatingArrowProps>;
|
16
|
+
placement?: UseFloatingOptions['placement'];
|
17
|
+
className?: string;
|
18
|
+
backgroundColor?: keyof IColor;
|
19
|
+
isHover?: boolean;
|
20
|
+
}
|
package/package.json
CHANGED