1mpacto-react-ui 0.0.5 → 0.0.7
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 -0
- package/dist/assets/fonts/Inter-Regular.ttf +0 -0
- package/dist/assets/fonts/Lato-Regular.ttf +0 -0
- package/dist/assets/icons/arrow-narrow-down.svg +3 -0
- package/dist/assets/style.css +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +20503 -384
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +76 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Badges/Badges.d.ts +4 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +5 -0
- package/dist/src/components/Button/Button.d.ts +4 -0
- package/dist/src/components/ButtonIcon/ButtonIcon.d.ts +4 -0
- package/dist/src/components/Calendar/Calendar.d.ts +42 -0
- package/dist/src/components/Calendar/CalendarButton.d.ts +8 -0
- package/dist/src/components/Calendar/CalendarCell.d.ts +9 -0
- package/dist/src/components/Calendar/CalendarMonth.d.ts +9 -0
- package/dist/src/components/Calendar/CalendarRange.d.ts +16 -0
- package/dist/src/components/Calendar/CalendarYear.d.ts +15 -0
- package/dist/src/components/Chips/Chips.d.ts +4 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +16 -0
- package/dist/src/components/DatePicker/DateRangePicker.d.ts +17 -0
- package/dist/src/components/DatePicker/FilterDate.d.ts +19 -0
- package/dist/src/components/Input/InputFloatingInner.d.ts +4 -0
- package/dist/src/components/Input/InputReguler.d.ts +4 -0
- package/dist/src/components/Pagination/Pagination.d.ts +19 -0
- package/dist/src/components/Popover/Popover.d.ts +5 -0
- package/dist/src/components/RadioCheckbox/RadioCheckbox.d.ts +4 -0
- package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.d.ts +4 -0
- package/dist/src/components/SelectDropdownContainer/SelectDropdownContainer.d.ts +4 -0
- package/dist/src/components/SelectDropdownContainer/styleConfig.d.ts +4 -0
- package/dist/src/components/Switch/Switch.d.ts +12 -0
- package/dist/src/components/Table/Table.d.ts +6 -0
- package/dist/src/components/Tabs/TabPanel.d.ts +12 -0
- package/dist/src/components/Tabs/Tabs.d.ts +14 -0
- package/dist/src/components/Virtualization/ListVirtualization.d.ts +5 -0
- package/dist/src/components/Virtualization/TableVirtualization.d.ts +5 -0
- package/dist/src/components/index.d.ts +32 -0
- package/dist/src/config/components/borderRadius.d.ts +12 -0
- package/dist/src/config/components/gap.d.ts +51 -0
- package/dist/src/config/components/typography.d.ts +37 -0
- package/dist/src/config/tailwind/index.d.ts +4 -0
- package/dist/src/config/tailwind/typography.d.ts +7 -0
- package/dist/src/interfaces/components/Badges/index.d.ts +10 -0
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +19 -0
- package/dist/src/interfaces/components/Button/index.d.ts +10 -0
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +8 -0
- package/dist/src/interfaces/components/Chips/index.d.ts +11 -0
- package/dist/src/interfaces/components/Input/index.d.ts +25 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +22 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckbox.d.ts +17 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +16 -0
- package/dist/src/interfaces/components/SelectDropdownContainer/index.d.ts +44 -0
- package/dist/src/interfaces/components/Table/index.d.ts +64 -0
- package/dist/src/interfaces/components/Virtualization/ListVirtualization.d.ts +36 -0
- package/dist/src/interfaces/components/Virtualization/TableVirtualization.d.ts +36 -0
- package/package.json +85 -85
- package/dist/style.css +0 -1
@@ -0,0 +1,5 @@
|
|
1
|
+
import { ElementType } from 'react';
|
2
|
+
import { IBreadcrumbs } from '../../interfaces/components/Breadcrumbs';
|
3
|
+
|
4
|
+
declare const Breadcrumbs: <T extends ElementType = "div">({ as, variants, fonts, urls, textBreadcrumbs, onClickBreadcrumbs, gapAction, gapUrls, className, textAction, iconAction, onClickAction, onClickUrls, separator, propsLink, ...props }: IBreadcrumbs<T>) => JSX.Element;
|
5
|
+
export default Breadcrumbs;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { DateValue } from 'react-aria';
|
3
|
+
import { CalendarState, CalendarStateOptions } from 'react-stately';
|
4
|
+
|
5
|
+
export type TCalendarType = 'date' | 'month' | 'year';
|
6
|
+
export type TDateType = Date | string | null | undefined;
|
7
|
+
export interface ICalendarPrevNextIcon {
|
8
|
+
prevIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
9
|
+
nextIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
10
|
+
}
|
11
|
+
export interface ICalendarButton {
|
12
|
+
buttonReset?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
13
|
+
buttonSubmit?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
14
|
+
}
|
15
|
+
export interface ITimeCalendar {
|
16
|
+
hour?: number;
|
17
|
+
minut?: number;
|
18
|
+
second?: number;
|
19
|
+
}
|
20
|
+
export interface ICalendar extends CalendarStateOptions<DateValue>, ICalendarPrevNextIcon, ICalendarButton {
|
21
|
+
withConfirm?: boolean;
|
22
|
+
isCustomTime?: boolean;
|
23
|
+
minDate?: TDateType;
|
24
|
+
maxDate?: TDateType;
|
25
|
+
time?: ITimeCalendar;
|
26
|
+
handlerChangeTime: (v: ITimeCalendar) => void;
|
27
|
+
handlerReset: (v: CalendarState) => void;
|
28
|
+
handlerSubmit: () => void;
|
29
|
+
}
|
30
|
+
export interface ICalendarDateSelect extends CalendarStateOptions<DateValue>, ICalendarPrevNextIcon {
|
31
|
+
state: CalendarState;
|
32
|
+
setType: (v: TCalendarType) => void;
|
33
|
+
}
|
34
|
+
export interface ICustomTimeCalendar {
|
35
|
+
time?: ITimeCalendar;
|
36
|
+
value?: DateValue | null | undefined;
|
37
|
+
minDate?: TDateType;
|
38
|
+
maxDate?: TDateType;
|
39
|
+
handlerChangeTime: (v: ITimeCalendar) => void;
|
40
|
+
}
|
41
|
+
declare const Calendar: (props: ICalendar) => JSX.Element;
|
42
|
+
export default Calendar;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { AriaButtonOptions } from 'react-aria';
|
3
|
+
|
4
|
+
export interface ICalendarButton extends AriaButtonOptions<'button'> {
|
5
|
+
children: ReactNode | ReactNode[];
|
6
|
+
}
|
7
|
+
declare const CalendarButton: (props: ICalendarButton) => JSX.Element;
|
8
|
+
export default CalendarButton;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { CalendarDate } from '@internationalized/date';
|
2
|
+
import { CalendarState, RangeCalendarState } from 'react-stately';
|
3
|
+
|
4
|
+
export interface ICalendarCell {
|
5
|
+
state: RangeCalendarState | CalendarState;
|
6
|
+
date: CalendarDate;
|
7
|
+
}
|
8
|
+
declare const CalendarCell: (props: ICalendarCell) => JSX.Element;
|
9
|
+
export default CalendarCell;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { CalendarState, RangeCalendarState } from 'react-stately';
|
2
|
+
import { ICalendarPrevNextIcon, TCalendarType } from './Calendar';
|
3
|
+
|
4
|
+
export interface ICalendarMonth extends ICalendarPrevNextIcon {
|
5
|
+
state: CalendarState | RangeCalendarState;
|
6
|
+
setType: (v: TCalendarType) => void;
|
7
|
+
}
|
8
|
+
declare const CalendarMonth: ({ prevIcon, nextIcon, state, setType }: ICalendarMonth) => JSX.Element;
|
9
|
+
export default CalendarMonth;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { DateValue, RangeCalendarProps } from 'react-aria';
|
2
|
+
import { DateRangePickerStateOptions, RangeCalendarState } from 'react-stately';
|
3
|
+
import { ICalendarButton, ICalendarPrevNextIcon } from './Calendar';
|
4
|
+
|
5
|
+
export interface ICalendarDateRange extends RangeCalendarProps<DateValue>, ICalendarPrevNextIcon, ICalendarButton {
|
6
|
+
withConfirm?: boolean;
|
7
|
+
handlerSubmit: () => void;
|
8
|
+
handlerReset: (v: RangeCalendarState) => void;
|
9
|
+
}
|
10
|
+
export interface ICalendarRange extends DateRangePickerStateOptions, ICalendarPrevNextIcon, ICalendarButton {
|
11
|
+
withConfirm?: boolean;
|
12
|
+
handlerSubmit: () => void;
|
13
|
+
handlerReset: (v: RangeCalendarState) => void;
|
14
|
+
}
|
15
|
+
declare const CalendarRange: (props: ICalendarRange) => JSX.Element;
|
16
|
+
export default CalendarRange;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CalendarState, RangeCalendarState } from 'react-stately';
|
2
|
+
import { TCalendarType } from './Calendar';
|
3
|
+
|
4
|
+
export interface ISetUpYear {
|
5
|
+
startYear: number;
|
6
|
+
endAfterThisYear: number;
|
7
|
+
}
|
8
|
+
export interface ICalendarYear {
|
9
|
+
title: string;
|
10
|
+
state: CalendarState | RangeCalendarState;
|
11
|
+
setUpYear?: ISetUpYear;
|
12
|
+
setType: (v: TCalendarType) => void;
|
13
|
+
}
|
14
|
+
declare const CalendarYear: ({ title, state, setUpYear, setType, }: ICalendarYear) => JSX.Element;
|
15
|
+
export default CalendarYear;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { ICalendarButton, ICalendarPrevNextIcon, TDateType } from '../Calendar/Calendar';
|
3
|
+
|
4
|
+
export interface IDatePicker extends ICalendarPrevNextIcon, ICalendarButton {
|
5
|
+
value?: TDateType;
|
6
|
+
minDate?: TDateType;
|
7
|
+
maxDate?: TDateType;
|
8
|
+
withConfirm?: boolean;
|
9
|
+
isCustomTime?: boolean;
|
10
|
+
className?: string | undefined;
|
11
|
+
classNameButton?: string | undefined;
|
12
|
+
buttonClick?: ReactNode | ReactNode[] | ((v: TDateType) => ReactNode) | ((v: TDateType) => ReactNode[]);
|
13
|
+
onChange?: (v: TDateType | undefined) => void;
|
14
|
+
}
|
15
|
+
declare const DatePicker: (props: IDatePicker) => JSX.Element;
|
16
|
+
export default DatePicker;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ICalendarButton, ICalendarPrevNextIcon, TDateType } from '../Calendar/Calendar';
|
2
|
+
|
3
|
+
export interface IDateRange {
|
4
|
+
startDate: TDateType;
|
5
|
+
endDate: TDateType;
|
6
|
+
}
|
7
|
+
export interface IDateRangePicker extends ICalendarPrevNextIcon, ICalendarButton {
|
8
|
+
defaultValue?: IDateRange;
|
9
|
+
value?: TDateType;
|
10
|
+
minDate?: Date | string;
|
11
|
+
maxDate?: Date | string;
|
12
|
+
withConfirm?: boolean;
|
13
|
+
onChange?: (v: IDateRange) => void;
|
14
|
+
onReset?: () => void;
|
15
|
+
}
|
16
|
+
declare const DateRangePicker: (props: IDateRangePicker) => JSX.Element;
|
17
|
+
export default DateRangePicker;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { IDateRange } from './DateRangePicker';
|
3
|
+
import { ICalendarButton, ICalendarPrevNextIcon } from '../Calendar/Calendar';
|
4
|
+
|
5
|
+
export type TKeyButtonListType = 'thisDay' | 'thisWeek' | 'thisMonth' | 'thisYear' | 'yesterday' | 'lastWeek' | 'lastMonth' | 'lastYear' | 'custom';
|
6
|
+
export interface IButtonList {
|
7
|
+
key: TKeyButtonListType;
|
8
|
+
value: string;
|
9
|
+
}
|
10
|
+
export interface IFilterDate extends ICalendarPrevNextIcon, ICalendarButton {
|
11
|
+
className?: string | undefined;
|
12
|
+
classNameButton?: string | undefined;
|
13
|
+
buttonClick?: ReactNode | ReactNode[] | ((v: IDateRange | undefined) => ReactNode) | ((v: IDateRange | undefined) => ReactNode[]);
|
14
|
+
value?: IDateRange | undefined;
|
15
|
+
buttonList?: IButtonList[];
|
16
|
+
onChange?: (v?: IDateRange) => void;
|
17
|
+
}
|
18
|
+
declare const FilterDate: ({ value, prevIcon, nextIcon, buttonReset, buttonSubmit, className, classNameButton, buttonClick, buttonList, onChange, }: IFilterDate) => JSX.Element;
|
19
|
+
export default FilterDate;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
|
3
|
+
type TKindPaginationType = 'box' | 'nude';
|
4
|
+
export interface IPagination {
|
5
|
+
pageNumber: number;
|
6
|
+
pageSize: number;
|
7
|
+
totalData: number;
|
8
|
+
totalPage: number;
|
9
|
+
}
|
10
|
+
interface IPaginationProps extends IPagination {
|
11
|
+
onChange?: (v: IPagination) => void;
|
12
|
+
kind?: TKindPaginationType;
|
13
|
+
className?: string | undefined;
|
14
|
+
id?: string | undefined;
|
15
|
+
prevIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
16
|
+
nextIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
17
|
+
}
|
18
|
+
declare const Pagination: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, }: IPaginationProps) => JSX.Element;
|
19
|
+
export default Pagination;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IRadioCheckboxLabel } from '../../interfaces/components/RadioCheckbox/RadioCheckboxLabel';
|
2
|
+
|
3
|
+
declare const RadioCheckboxLabel: ({ radioCheckboxProps, name, id, type, typographyLabel, typographyDesc, fonts, borderRadius, className, disabled, variants, label, desc, ...props }: IRadioCheckboxLabel) => JSX.Element;
|
4
|
+
export default RadioCheckboxLabel;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IRefSelectDropdownContainer, ISelectDropdownContainer } from '../../interfaces/components/SelectDropdownContainer';
|
2
|
+
|
3
|
+
declare const SelectDropdownContainer: import('react').ForwardRefExoticComponent<ISelectDropdownContainer & import('react').RefAttributes<IRefSelectDropdownContainer>>;
|
4
|
+
export default SelectDropdownContainer;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
interface ISwitch {
|
2
|
+
value: boolean;
|
3
|
+
disabled?: boolean;
|
4
|
+
size?: 'large' | 'regular' | 'small';
|
5
|
+
title?: string;
|
6
|
+
description?: string;
|
7
|
+
id?: string | undefined;
|
8
|
+
className?: string | undefined;
|
9
|
+
onChange: (v: boolean) => void;
|
10
|
+
}
|
11
|
+
declare const Switch: ({ value, disabled, title, description, size, id, className, onChange, }: ISwitch) => JSX.Element;
|
12
|
+
export default Switch;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { ITable, IVirtualizationHead, IVirtualizationTable } from '../../interfaces/components/Table';
|
2
|
+
|
3
|
+
export declare const VirtualizationHead: import('react').ForwardRefExoticComponent<Pick<IVirtualizationHead, keyof IVirtualizationHead> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
4
|
+
export declare const VirtualizationTable: ({ style, context, ...props }: IVirtualizationTable) => JSX.Element;
|
5
|
+
declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, }: ITable<T>) => JSX.Element;
|
6
|
+
export default Table;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
|
3
|
+
interface ITabPanel {
|
4
|
+
children: ReactNode | ReactNode[];
|
5
|
+
id?: string;
|
6
|
+
value: string | number;
|
7
|
+
selected: string | number;
|
8
|
+
className?: string | undefined;
|
9
|
+
isHide?: boolean;
|
10
|
+
}
|
11
|
+
declare const TabPanel: ({ children, id, value, selected, className, isHide }: ITabPanel) => JSX.Element;
|
12
|
+
export default TabPanel;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export interface ITabsList {
|
2
|
+
id: string | number;
|
3
|
+
label: string | number;
|
4
|
+
isHide?: boolean;
|
5
|
+
}
|
6
|
+
interface ITabs {
|
7
|
+
id?: string;
|
8
|
+
value: string | number;
|
9
|
+
tabsList: ITabsList[];
|
10
|
+
className?: string | undefined;
|
11
|
+
onChange?: (v: ITabsList) => void;
|
12
|
+
}
|
13
|
+
declare const Tabs: ({ id, value, tabsList, className, onChange }: ITabs) => JSX.Element;
|
14
|
+
export default Tabs;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { VirtuosoHandle } from 'react-virtuoso';
|
2
|
+
import { IListVirtualization } from '../../interfaces/components/Virtualization/ListVirtualization';
|
3
|
+
|
4
|
+
declare const ListVirtualization: import('react').ForwardRefExoticComponent<IListVirtualization & import('react').RefAttributes<VirtuosoHandle>>;
|
5
|
+
export default ListVirtualization;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { TableVirtuosoHandle } from 'react-virtuoso';
|
2
|
+
import { ITableVirtualization } from '../../interfaces/components/Virtualization/TableVirtualization';
|
3
|
+
|
4
|
+
declare const TableVirtualization: import('react').ForwardRefExoticComponent<ITableVirtualization & import('react').RefAttributes<TableVirtuosoHandle>>;
|
5
|
+
export default TableVirtualization;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { default as TPublish } from './TPublish/TPublish';
|
2
|
+
import { default as Button } from './Button/Button';
|
3
|
+
import { default as Popover } from './Popover/Popover';
|
4
|
+
import { IRefPopover } from '../interfaces/components/Popover';
|
5
|
+
import { default as InputFloatingInner } from './Input/InputFloatingInner';
|
6
|
+
import { default as InputReguler } from './Input/InputReguler';
|
7
|
+
import { default as Table } from './Table/Table';
|
8
|
+
import { ITableColumnDef } from '../interfaces/components/Table';
|
9
|
+
import { default as TableVirtualization } from './Virtualization/TableVirtualization';
|
10
|
+
import { TableVirtuosoHandle as IRefTableVirtualization, VirtuosoHandle as IRefListVirtualization } from 'react-virtuoso';
|
11
|
+
import { default as ListVirtualization } from './Virtualization/ListVirtualization';
|
12
|
+
import { default as Tabs } from './Tabs/Tabs';
|
13
|
+
import { default as TabPanel } from './Tabs/TabPanel';
|
14
|
+
import { default as Pagination } from './Pagination/Pagination';
|
15
|
+
import { default as SelectDropdownContainer } from './SelectDropdownContainer/SelectDropdownContainer';
|
16
|
+
import { IRefSelectDropdownContainer, IChildrenSelectDropdownContainer } from '../interfaces/components/SelectDropdownContainer';
|
17
|
+
import { default as Calendar } from './Calendar/Calendar';
|
18
|
+
import { default as CalendarRange } from './Calendar/CalendarRange';
|
19
|
+
import { default as DatePicker } from './DatePicker/DatePicker';
|
20
|
+
import { default as DateRangePicker } from './DatePicker/DateRangePicker';
|
21
|
+
import { default as FilterDate } from './DatePicker/FilterDate';
|
22
|
+
import { default as Switch } from './Switch/Switch';
|
23
|
+
import { default as ButtonIcon } from './ButtonIcon/ButtonIcon';
|
24
|
+
import { default as Badges } from './Badges/Badges';
|
25
|
+
import { default as Chips } from './Chips/Chips';
|
26
|
+
import { default as RadioCheckbox } from './RadioCheckbox/RadioCheckbox';
|
27
|
+
import { default as RadioCheckboxLabel } from './RadioCheckbox/RadioCheckboxLabel';
|
28
|
+
import { default as Breadcrumbs } from './Breadcrumbs/Breadcrumbs';
|
29
|
+
|
30
|
+
import * as utilTable from '@tanstack/react-table';
|
31
|
+
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, };
|
32
|
+
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, };
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export type IBorderRadius = '0px' | '2px' | '4px' | '6px' | '8px' | '12px' | '16px' | '24px' | 'full';
|
2
|
+
export declare const configBorderRadius: {
|
3
|
+
'0px': string;
|
4
|
+
'2px': string;
|
5
|
+
'4px': string;
|
6
|
+
'6px': string;
|
7
|
+
'8px': string;
|
8
|
+
'12px': string;
|
9
|
+
'16px': string;
|
10
|
+
'24px': string;
|
11
|
+
full: string;
|
12
|
+
};
|
@@ -0,0 +1,51 @@
|
|
1
|
+
export type IGap = 'gap-0' | 'gap-x-0' | 'gap-y-0' | 'gap-px' | 'gap-x-px' | 'gap-y-px' | 'gap-0.5' | 'gap-x-0.5' | 'gap-y-0.5' | 'gap-1' | 'gap-x-1' | 'gap-y-1' | 'gap-1.5' | 'gap-x-1.5' | 'gap-y-1.5' | 'gap-2' | 'gap-x-2' | 'gap-y-2' | 'gap-2.5' | 'gap-x-2.5' | 'gap-y-2.5' | 'gap-3' | 'gap-x-3' | 'gap-y-3' | 'gap-3.5' | 'gap-x-3.5' | 'gap-y-3.5' | 'gap-4' | 'gap-x-4' | 'gap-y-4' | 'gap-5' | 'gap-x-5' | 'gap-y-5' | 'gap-6' | 'gap-x-6' | 'gap-y-6' | 'gap-7' | 'gap-x-7' | 'gap-y-7' | 'gap-8' | 'gap-x-8' | 'gap-y-8' | 'gap-9' | 'gap-x-9' | 'gap-y-9' | 'gap-10' | 'gap-x-10' | 'gap-y-10';
|
2
|
+
export declare const configGap: {
|
3
|
+
'gap-0': string;
|
4
|
+
'gap-x-0': string;
|
5
|
+
'gap-y-0': string;
|
6
|
+
'gap-px': string;
|
7
|
+
'gap-x-px': string;
|
8
|
+
'gap-y-px': string;
|
9
|
+
'gap-0.5': string;
|
10
|
+
'gap-x-0.5': string;
|
11
|
+
'gap-y-0.5': string;
|
12
|
+
'gap-1': string;
|
13
|
+
'gap-x-1': string;
|
14
|
+
'gap-y-1': string;
|
15
|
+
'gap-1.5': string;
|
16
|
+
'gap-x-1.5': string;
|
17
|
+
'gap-y-1.5': string;
|
18
|
+
'gap-2': string;
|
19
|
+
'gap-x-2': string;
|
20
|
+
'gap-y-2': string;
|
21
|
+
'gap-2.5': string;
|
22
|
+
'gap-x-2.5': string;
|
23
|
+
'gap-y-2.5': string;
|
24
|
+
'gap-3': string;
|
25
|
+
'gap-x-3': string;
|
26
|
+
'gap-y-3': string;
|
27
|
+
'gap-3.5': string;
|
28
|
+
'gap-x-3.5': string;
|
29
|
+
'gap-y-3.5': string;
|
30
|
+
'gap-4': string;
|
31
|
+
'gap-x-4': string;
|
32
|
+
'gap-y-4': string;
|
33
|
+
'gap-5': string;
|
34
|
+
'gap-x-5': string;
|
35
|
+
'gap-y-5': string;
|
36
|
+
'gap-6': string;
|
37
|
+
'gap-x-6': string;
|
38
|
+
'gap-y-6': string;
|
39
|
+
'gap-7': string;
|
40
|
+
'gap-x-7': string;
|
41
|
+
'gap-y-7': string;
|
42
|
+
'gap-8': string;
|
43
|
+
'gap-x-8': string;
|
44
|
+
'gap-y-8': string;
|
45
|
+
'gap-9': string;
|
46
|
+
'gap-x-9': string;
|
47
|
+
'gap-y-9': string;
|
48
|
+
'gap-10': string;
|
49
|
+
'gap-x-10': string;
|
50
|
+
'gap-y-10': string;
|
51
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export type Itypography = 'payhere-h1' | 'payhere-h2' | 'payhere-h3' | 'payhere-h4' | 'payhere-h5' | 'payhere-h6' | 'payhere-body-lr' | 'payhere-body-lm' | 'payhere-body-ls' | 'payhere-body-lb' | 'payhere-body-mr' | 'payhere-body-mm' | 'payhere-body-ms' | 'payhere-body-mb' | 'payhere-label-r' | 'payhere-label-m' | 'payhere-body-sr' | 'payhere-body-sm' | 'payhere-body-esr' | 'payhere-body-esm' | 'laba-h1' | 'laba-h2' | 'laba-base-rb' | 'laba-base-rs' | 'laba-base-rr' | 'laba-base-sb' | 'laba-base-ss' | 'laba-base-sr' | 'laba-subtitle-rb' | 'laba-subtitle-rs' | 'laba-subtitle-rr' | 'laba-subtitle-sb' | 'laba-subtitle-ss' | 'laba-subtitle-sr';
|
2
|
+
export declare const configtypography: {
|
3
|
+
'payhere-h1': string;
|
4
|
+
'payhere-h2': string;
|
5
|
+
'payhere-h3': string;
|
6
|
+
'payhere-h4': string;
|
7
|
+
'payhere-h5': string;
|
8
|
+
'payhere-h6': string;
|
9
|
+
'payhere-body-lr': string;
|
10
|
+
'payhere-body-lm': string;
|
11
|
+
'payhere-body-ls': string;
|
12
|
+
'payhere-body-lb': string;
|
13
|
+
'payhere-body-mr': string;
|
14
|
+
'payhere-body-mm': string;
|
15
|
+
'payhere-body-ms': string;
|
16
|
+
'payhere-body-mb': string;
|
17
|
+
'payhere-label-r': string;
|
18
|
+
'payhere-label-m': string;
|
19
|
+
'payhere-body-sr': string;
|
20
|
+
'payhere-body-sm': string;
|
21
|
+
'payhere-body-esr': string;
|
22
|
+
'payhere-body-esm': string;
|
23
|
+
'laba-h1': string;
|
24
|
+
'laba-h2': string;
|
25
|
+
'laba-base-rb': string;
|
26
|
+
'laba-base-rs': string;
|
27
|
+
'laba-base-rr': string;
|
28
|
+
'laba-base-sb': string;
|
29
|
+
'laba-base-ss': string;
|
30
|
+
'laba-base-sr': string;
|
31
|
+
'laba-subtitle-rb': string;
|
32
|
+
'laba-subtitle-rs': string;
|
33
|
+
'laba-subtitle-rr': string;
|
34
|
+
'laba-subtitle-sb': string;
|
35
|
+
'laba-subtitle-ss': string;
|
36
|
+
'laba-subtitle-sr': string;
|
37
|
+
};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export type ITypography = Record<string, [string, Record<string, string | number>]>;
|
2
|
+
export declare const configTypographyPayhere: ITypography;
|
3
|
+
export declare const configTypographyLabaBisnis: ITypography;
|
4
|
+
declare const _default: {
|
5
|
+
[x: string]: [string, Record<string, string | number>];
|
6
|
+
};
|
7
|
+
export default _default;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { IBorderRadius } from '../../../config/components/borderRadius';
|
3
|
+
|
4
|
+
export interface IBadges extends React.HTMLAttributes<HTMLSpanElement> {
|
5
|
+
children: ReactNode | ReactNode[];
|
6
|
+
className?: string | undefined;
|
7
|
+
rounded?: IBorderRadius;
|
8
|
+
variants?: 'filled-gray-600' | 'filled-green-600' | 'filled-red-500' | 'filled-blue-600' | 'filled-amber-800' | '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';
|
9
|
+
fonts?: 'lato' | 'inter';
|
10
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ReactNode, ElementType, HTMLAttributes } from 'react';
|
2
|
+
import { IGap } from '../../../config/components/gap';
|
3
|
+
|
4
|
+
export interface IBreadcrumbs<T extends ElementType> extends HTMLAttributes<HTMLDivElement> {
|
5
|
+
as?: T;
|
6
|
+
fonts?: 'lato' | 'inter';
|
7
|
+
variants?: 'laba-blue-10' | 'blue-700';
|
8
|
+
urls: string[];
|
9
|
+
textBreadcrumbs: string[];
|
10
|
+
onClickBreadcrumbs?: (() => void | undefined)[];
|
11
|
+
onClickAction?: () => void;
|
12
|
+
onClickUrls?: (url: string) => void;
|
13
|
+
gapAction?: IGap;
|
14
|
+
gapUrls?: IGap;
|
15
|
+
textAction?: string;
|
16
|
+
iconAction?: ReactNode | ReactNode[];
|
17
|
+
separator?: ReactNode | ReactNode[] | string;
|
18
|
+
propsLink?: (value: string, index: number, urls: string[]) => object;
|
19
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
|
3
|
+
export interface IButton extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
4
|
+
size?: 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
|
5
|
+
kind?: 'filled' | 'ghost' | 'nude' | 'primary' | 'secondary' | 'tertiary';
|
6
|
+
startIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
7
|
+
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
8
|
+
children: ReactNode | ReactNode[];
|
9
|
+
className?: string | undefined;
|
10
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
|
3
|
+
export interface IButtonIcon extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
4
|
+
size?: 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
|
5
|
+
kind?: 'filled' | 'ghost' | 'nude' | 'primary' | 'secondary' | 'tertiary';
|
6
|
+
children: ReactNode | ReactNode[];
|
7
|
+
className?: string | undefined;
|
8
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
|
3
|
+
export interface IChips extends React.HTMLAttributes<HTMLSpanElement> {
|
4
|
+
children: ReactNode | ReactNode[];
|
5
|
+
className?: string | undefined;
|
6
|
+
fonts?: 'lato' | 'inter';
|
7
|
+
size?: 'reguler' | 'small' | 'l' | 's';
|
8
|
+
variants?: 'filled-laba-blue-10' | 'ghost-laba-grey-02' | 'nude-laba-grey-10' | 'filled-blue-gray-100';
|
9
|
+
icon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
10
|
+
removeIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
11
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
2
|
+
|
3
|
+
export interface IInputFloatingInner extends InputHTMLAttributes<HTMLInputElement> {
|
4
|
+
classNameContainer?: string | undefined;
|
5
|
+
id?: string | undefined;
|
6
|
+
label: string;
|
7
|
+
type?: string;
|
8
|
+
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
9
|
+
isRequired?: boolean;
|
10
|
+
error?: string | undefined;
|
11
|
+
sizeInput?: 'reguler';
|
12
|
+
classNameLabelError?: string | undefined;
|
13
|
+
}
|
14
|
+
export interface IInputReguler extends InputHTMLAttributes<HTMLInputElement> {
|
15
|
+
classNameContainer?: string | undefined;
|
16
|
+
id?: string | undefined;
|
17
|
+
label: string;
|
18
|
+
type?: string;
|
19
|
+
endIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
|
20
|
+
isRequired?: boolean;
|
21
|
+
error?: string | undefined;
|
22
|
+
sizeInput?: 'reguler';
|
23
|
+
classNameLabel?: string | undefined;
|
24
|
+
classNameLabelError?: string | undefined;
|
25
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { FlipOptions, AutoPlacementOptions } from '@floating-ui/react';
|
3
|
+
|
4
|
+
export interface IPopover extends React.HTMLAttributes<HTMLDivElement> {
|
5
|
+
children: ReactNode | ReactNode[];
|
6
|
+
className?: string | undefined;
|
7
|
+
offset?: number;
|
8
|
+
anchorEl?: ReactNode;
|
9
|
+
isShow?: boolean;
|
10
|
+
useAutoPlacement?: boolean;
|
11
|
+
flipOptions?: FlipOptions;
|
12
|
+
autoPlacementOptions?: AutoPlacementOptions;
|
13
|
+
zIndex?: number | undefined | string;
|
14
|
+
width?: number | string;
|
15
|
+
styleInnerPopover?: React.CSSProperties;
|
16
|
+
}
|
17
|
+
export interface IRefPopover {
|
18
|
+
show: boolean;
|
19
|
+
setShow: React.Dispatch<React.SetStateAction<boolean>>;
|
20
|
+
handlerShow: (event: React.MouseEvent<HTMLButtonElement | HTMLDivElement>) => void;
|
21
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element> | undefined) => Record<string, unknown>;
|
22
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
2
|
+
import { IBorderRadius } from '../../../config/components/borderRadius';
|
3
|
+
import { Itypography } from '../../../config/components/typography';
|
4
|
+
|
5
|
+
export interface IRadioCheckbox extends InputHTMLAttributes<HTMLInputElement> {
|
6
|
+
classNameContainer?: string | undefined;
|
7
|
+
classNameLabel?: string | undefined;
|
8
|
+
sizeInput?: 'reguler' | 's';
|
9
|
+
variants?: 'laba-blue-10' | 'blue-700' | 'blue-700-hv_bg_transparent' | 'laba-blue-10-hv_bg_transparent';
|
10
|
+
variantDisableds?: 'default-disabled-checkbox' | 'default-disabled-radio';
|
11
|
+
borderRadius?: IBorderRadius;
|
12
|
+
checkedIcon?: ReactNode | ReactNode[];
|
13
|
+
type?: 'checkbox' | 'radio';
|
14
|
+
fonts?: 'lato' | 'inter';
|
15
|
+
label?: string;
|
16
|
+
typography?: Itypography;
|
17
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
2
|
+
import { Itypography } from '../../../config/components/typography';
|
3
|
+
import { IRadioCheckbox } from './RadioCheckbox';
|
4
|
+
import { IBorderRadius } from '../../../config/components/borderRadius';
|
5
|
+
|
6
|
+
export interface IRadioCheckboxLabel extends InputHTMLAttributes<HTMLInputElement> {
|
7
|
+
typographyLabel?: Itypography;
|
8
|
+
typographyDesc?: Itypography;
|
9
|
+
borderRadius?: IBorderRadius;
|
10
|
+
type?: 'checkbox' | 'radio';
|
11
|
+
fonts?: 'lato' | 'inter';
|
12
|
+
radioCheckboxProps?: IRadioCheckbox;
|
13
|
+
variants?: 'blue-50' | 'laba-blue-01';
|
14
|
+
label: string | ReactNode | ReactNode[];
|
15
|
+
desc?: string | ReactNode | ReactNode[];
|
16
|
+
}
|