master-components-react-ts 2.7.2 → 2.7.5
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/components/DatePicker/DatePicker.types.d.ts +2 -2
- package/dist/components/FormInput/FormInput.d.ts +1 -1
- package/dist/components/FormInput/FormInput.types.d.ts +1 -2
- package/dist/components/MainButton/MainButton.d.ts +1 -1
- package/dist/components/MainButton/MainButton.types.d.ts +1 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.types.d.ts +2 -0
- package/dist/hooks/useUniqueClass.d.ts +1 -0
- package/dist/index.js +3397 -2825
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ export type RangeValue = {
|
|
|
9
9
|
};
|
|
10
10
|
export type PickerValue = SingleValue | RangeValue | DateOrString[];
|
|
11
11
|
/**DatePicker Component Props */
|
|
12
|
-
export interface DatePickerProps extends FormInputProps {
|
|
13
|
-
defaultValue?: PickerValue |
|
|
12
|
+
export interface DatePickerProps extends Omit<FormInputProps, 'defaultValue'> {
|
|
13
|
+
defaultValue?: PickerValue | null;
|
|
14
14
|
valueFormat?: string;
|
|
15
15
|
onlyIcon?: boolean;
|
|
16
16
|
iconSize?: 'lg' | 'md' | 'sm';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormInputProps } from './FormInput.types';
|
|
2
2
|
declare const FormInput: {
|
|
3
|
-
({ label, placeholder, helperText, required, disabled, readOnly, withFocus, withActive, searchComponent, size, toggleFocus, rightSlot, leftSlot, helperSlot, type, value, maxLength, forDropdown, customFocus, inputState, inputSlot, onChange, onFocus, onBlur, onEnter, onFocusChange, formInputWrapperStyle, inputWrapperStyle, formInputStyle, helperTextStyle, labelStyle, inputSlotStyle, }: FormInputProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ label, placeholder, helperText, required, disabled, readOnly, withFocus, withActive, searchComponent, size, toggleFocus, rightSlot, leftSlot, helperSlot, type, value, maxLength, forDropdown, customFocus, inputState, inputSlot, onChange, onFocus, onBlur, onEnter, onFocusChange, formInputWrapperStyle, inputWrapperStyle, formInputStyle, helperTextStyle, labelStyle, inputSlotStyle, ...rest }: FormInputProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
propKeys: readonly ["label", "placeholder", "helperText", "required", "disabled", "readOnly", "withFocus", "withActive", "searchComponent", "size", "toggleFocus", "rightSlot", "leftSlot", "helperSlot", "type", "value", "maxLength", "forDropdown", "customFocus", "focus", "inputState", "inputSlot", "onChange", "onFocus", "onBlur", "onEnter", "onFocusChange", "formInputWrapperStyle", "inputWrapperStyle", "formInputStyle", "helperTextStyle", "labelStyle", "inputSlotStyle"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
/**FormInput Component Props */
|
|
3
|
-
export interface FormInputProps {
|
|
3
|
+
export interface FormInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'> {
|
|
4
4
|
label?: string | React.ReactNode;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
helperText?: string | React.ReactNode;
|
|
@@ -21,7 +21,6 @@ export interface FormInputProps {
|
|
|
21
21
|
rightSlot?: React.ReactNode;
|
|
22
22
|
leftSlot?: React.ReactNode;
|
|
23
23
|
helperSlot?: React.ReactNode;
|
|
24
|
-
type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'time' | 'datetime-local' | 'month' | 'week';
|
|
25
24
|
maxLength?: number;
|
|
26
25
|
customFocus?: boolean | null;
|
|
27
26
|
forDropdown?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MainButtonProps } from './MainButton.types';
|
|
2
2
|
declare const MainButton: {
|
|
3
|
-
({ label, size, leftSlot, rightSlot, buttonSlot, type, colorType, buttonType, withFocus, onlyIcon, customFocus, disabled, loading, spaceBetween, customLoader, buttonStyle, mainButtonContentStyle, mainButtonLabelStyle, leftSlotStyle, rightSlotStyle, onClick, }: MainButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ label, size, leftSlot, rightSlot, buttonSlot, type, colorType, buttonType, withFocus, onlyIcon, customFocus, disabled, loading, spaceBetween, customLoader, buttonStyle, mainButtonContentStyle, mainButtonLabelStyle, leftSlotStyle, rightSlotStyle, onClick, ...rest }: MainButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
propKeys: readonly ["label", "size", "leftSlot", "rightSlot", "buttonSlot", "type", "colorType", "buttonType", "withFocus", "onlyIcon", "customFocus", "disabled", "loading", "spaceBetween", "customLoader", "buttonStyle", "mainButtonContentStyle", "mainButtonLabelStyle", "leftSlotStyle", "rightSlotStyle", "onClick"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
/**Button Component Props */
|
|
3
|
-
export interface MainButtonProps {
|
|
3
|
+
export interface MainButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'onClick'> {
|
|
4
4
|
label?: string;
|
|
5
5
|
size?: 'md' | 'sm' | 'lg';
|
|
6
6
|
leftSlot?: React.ReactNode;
|
|
7
7
|
rightSlot?: React.ReactNode;
|
|
8
8
|
buttonSlot?: React.ReactNode;
|
|
9
|
-
type?: 'button' | 'reset' | 'submit';
|
|
10
9
|
colorType?: 'neutral' | 'positive' | 'negative';
|
|
11
10
|
buttonType?: 'primary' | 'secondary' | 'tertiary' | 'tertiaryV2' | 'tertiaryV3';
|
|
12
11
|
withFocus?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableProps } from './Table.types';
|
|
2
2
|
declare const Table: {
|
|
3
|
-
({ uniqueKey, columns, data, onRowClick, onHeaderClick, withSortIcons, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, paginationType, maxVisiblePages, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ uniqueKey, columns, data, onRowClick, onHeaderClick, withSortIcons, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, paginationType, maxVisiblePages, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, paginationFooterStyle, }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
propKeys: readonly ["uniqueKey", "columns", "data", "onRowClick", "onHeaderClick", "sort", "selectedRows", "onSelectionChange", "withSelectAll", "actionButtonText", "actionButtonIcon", "onActionButtonClick", "actionButtons", "withColumnConfiguration", "headerSlot", "onColumnOrderChange", "onColumnVisibilityChange", "currentPage", "totalPages", "onPageChange", "showPagination", "rowsPerPage", "rowsPerPageOptions", "onRowsPerPageChange", "totalItems", "startItem", "endItem", "onRowEdit", "onRowDelete", "rowActions"];
|
|
5
5
|
displayName: string;
|
|
6
6
|
description: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from '../Tooltip/Tooltip.types';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
export type TooltipConfig = Omit<TooltipProps, 'children'>;
|
|
3
4
|
export type ColumnType = {
|
|
4
5
|
key?: string;
|
|
@@ -60,4 +61,5 @@ export interface TableProps {
|
|
|
60
61
|
onRowEdit?: (row: any, rowIndex: number) => void;
|
|
61
62
|
onRowDelete?: (row: any, rowIndex: number) => void;
|
|
62
63
|
rowActions?: RowActionType[];
|
|
64
|
+
paginationFooterStyle?: CSSProperties;
|
|
63
65
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUniqueClass: (prefix?: string) => string;
|