@producteca/producteca-ui-kit 1.20.0 → 1.21.1-beta.0
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/alert/alert.js +37 -0
- package/dist/components/breadcrumb/breadcrumb.js +33 -0
- package/dist/components/breadcrumb/index.js +2 -0
- package/dist/components/button/button.js +34 -0
- package/dist/components/chip/chip.js +27 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/icons/customIcon/customIcon.js +41 -0
- package/dist/components/icons/fileIcon/fileIcon.js +14 -0
- package/dist/components/icons/{index.d.ts → index.js} +1 -1
- package/dist/components/icons/mailIcon/mailIcon.js +14 -0
- package/dist/components/icons/parameters.js +26 -0
- package/dist/components/icons/priceCloseIcon/priceCloseIcon.js +14 -0
- package/dist/components/icons/priceDownIcon/priceDownIcon.js +14 -0
- package/dist/components/icons/searchPublication/searchPublication.js +14 -0
- package/dist/components/image/image.js +26 -0
- package/dist/components/image/index.js +1 -0
- package/dist/components/{index.d.ts → index.js} +1 -0
- package/dist/components/inputs/checkboxInput/checkboxInput.js +35 -0
- package/dist/components/inputs/checkboxInput/checkboxInputGroup.js +58 -0
- package/dist/components/inputs/checkboxInput/{index.d.ts → index.js} +1 -2
- package/dist/components/inputs/datePicker/datePicker.js +143 -0
- package/dist/components/inputs/datePicker/datePickerCustomStyles.js +145 -0
- package/dist/components/inputs/datePicker/datePickerTypes.js +1 -0
- package/dist/components/inputs/datePicker/datePickerUtils.js +109 -0
- package/dist/components/inputs/datePicker/index.js +2 -0
- package/dist/components/inputs/dateRangePicker/dateFormater.js +28 -0
- package/dist/components/inputs/dateRangePicker/dateRangePicker.js +118 -0
- package/dist/components/inputs/dateRangePicker/dateRangePickerTypes.js +1 -0
- package/dist/components/inputs/dateRangePicker/dateRangePickerUtils.js +67 -0
- package/dist/components/inputs/dateRangePicker/index.js +2 -0
- package/dist/components/inputs/formField/formField.js +35 -0
- package/dist/components/inputs/formField/passwordInput.js +22 -0
- package/dist/components/inputs/formField/textInput.js +79 -0
- package/dist/components/inputs/{index.d.ts → index.js} +1 -1
- package/dist/components/inputs/searcher/searcher.js +112 -0
- package/dist/components/inputs/selectField/selectField.js +183 -0
- package/dist/components/inputs/switchInput/index.js +2 -0
- package/dist/components/inputs/switchInput/switchInput.js +77 -0
- package/dist/components/loaders/index.js +2 -0
- package/dist/components/loaders/progressbar/progressbar.js +37 -0
- package/dist/components/loaders/spinner/spinner.js +15 -0
- package/dist/components/menuAction/index.js +1 -0
- package/dist/components/menuAction/menuAction.js +67 -0
- package/dist/components/menuAction/menuActionCustomStyles.js +13 -0
- package/dist/components/modals/index.js +1 -0
- package/dist/components/modals/warningModal/index.js +1 -0
- package/dist/components/modals/warningModal/warningModal.js +41 -0
- package/dist/components/patterns/actionBar/actionBar.js +38 -0
- package/dist/components/patterns/copyButton/copyButton.js +69 -0
- package/dist/components/patterns/copyButton/index.js +1 -0
- package/dist/components/patterns/emptyState/emptyState.js +17 -0
- package/dist/components/patterns/headerSection/headerSection.js +17 -0
- package/dist/components/patterns/headerSection/index.js +1 -0
- package/dist/components/patterns/iconWithIdentifier/iconWithIdentifier.js +12 -0
- package/dist/components/patterns/iconWithIdentifier/index.js +1 -0
- package/dist/components/patterns/{index.d.ts → index.js} +1 -1
- package/dist/components/patterns/linkWithIcon/index.js +1 -0
- package/dist/components/patterns/linkWithIcon/linkWithIcon.js +26 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tabs.js +70 -0
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/overflowChecker.js +27 -0
- package/dist/components/tooltip/tooltip.js +97 -0
- package/dist/hooks/useReduxFormField.js +34 -0
- package/dist/{index.d.ts → index.js} +1 -1
- package/dist/locales/description.js +15 -0
- package/dist/locales/es.js +227 -0
- package/dist/locales/index.js +2 -0
- package/dist/locales/translator.js +20 -0
- package/dist/producteca-ui-kit.cjs.js +3 -0
- package/dist/producteca-ui-kit.es.js +3 -53447
- package/dist/producteca-ui-kit.umd.js +9 -604
- package/dist/styles/colors.js +67 -0
- package/dist/styles/styles/colors.tsx +88 -0
- package/dist/styles/styles/global.module.scss +85 -0
- package/dist/styles/styles/theme.tsx +24 -0
- package/dist/styles/styles/variables.module.scss +74 -0
- package/dist/styles/theme.js +22 -0
- package/dist/validators/errorMessage.js +15 -0
- package/dist/validators/index.js +2 -0
- package/dist/validators/validation.js +25 -0
- package/package.json +42 -4
- package/dist/components/alert/alert.d.ts +0 -17
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -15
- package/dist/components/breadcrumb/index.d.ts +0 -2
- package/dist/components/button/button.d.ts +0 -17
- package/dist/components/chip/chip.d.ts +0 -13
- package/dist/components/chip/index.d.ts +0 -2
- package/dist/components/icons/customIcon/customIcon.d.ts +0 -16
- package/dist/components/icons/fileIcon/fileIcon.d.ts +0 -5
- package/dist/components/icons/mailIcon/mailIcon.d.ts +0 -5
- package/dist/components/icons/parameters.d.ts +0 -51
- package/dist/components/icons/priceCloseIcon/priceCloseIcon.d.ts +0 -5
- package/dist/components/icons/priceDownIcon/priceDownIcon.d.ts +0 -5
- package/dist/components/icons/searchPublication/searchPublication.d.ts +0 -5
- package/dist/components/image/image.d.ts +0 -11
- package/dist/components/image/index.d.ts +0 -1
- package/dist/components/inputs/checkboxInput/checkboxInput.d.ts +0 -9
- package/dist/components/inputs/checkboxInput/checkboxInputGroup.d.ts +0 -22
- package/dist/components/inputs/datePicker/datePicker.d.ts +0 -5
- package/dist/components/inputs/datePicker/datePickerCustomStyles.d.ts +0 -8
- package/dist/components/inputs/datePicker/datePickerTypes.d.ts +0 -14
- package/dist/components/inputs/datePicker/datePickerUtils.d.ts +0 -68
- package/dist/components/inputs/datePicker/index.d.ts +0 -3
- package/dist/components/inputs/dateRangePicker/dateFormater.d.ts +0 -7
- package/dist/components/inputs/dateRangePicker/dateRangePicker.d.ts +0 -5
- package/dist/components/inputs/dateRangePicker/dateRangePickerTypes.d.ts +0 -14
- package/dist/components/inputs/dateRangePicker/dateRangePickerUtils.d.ts +0 -9
- package/dist/components/inputs/dateRangePicker/index.d.ts +0 -4
- package/dist/components/inputs/formField/formField.d.ts +0 -10
- package/dist/components/inputs/formField/passwordInput.d.ts +0 -4
- package/dist/components/inputs/formField/textInput.d.ts +0 -25
- package/dist/components/inputs/searcher/searcher.d.ts +0 -28
- package/dist/components/inputs/selectField/selectField.d.ts +0 -42
- package/dist/components/inputs/switchInput/index.d.ts +0 -4
- package/dist/components/inputs/switchInput/switchInput.d.ts +0 -31
- package/dist/components/loaders/index.d.ts +0 -2
- package/dist/components/loaders/progressbar/progressbar.d.ts +0 -8
- package/dist/components/loaders/spinner/spinner.d.ts +0 -6
- package/dist/components/menuAction/index.d.ts +0 -1
- package/dist/components/menuAction/menuAction.d.ts +0 -18
- package/dist/components/menuAction/menuActionCustomStyles.d.ts +0 -4
- package/dist/components/modals/index.d.ts +0 -1
- package/dist/components/modals/warningModal/index.d.ts +0 -1
- package/dist/components/modals/warningModal/warningModal.d.ts +0 -17
- package/dist/components/patterns/actionBar/actionBar.d.ts +0 -26
- package/dist/components/patterns/copyButton/copyButton.d.ts +0 -11
- package/dist/components/patterns/copyButton/index.d.ts +0 -1
- package/dist/components/patterns/emptyState/emptyState.d.ts +0 -11
- package/dist/components/patterns/headerSection/headerSection.d.ts +0 -14
- package/dist/components/patterns/headerSection/index.d.ts +0 -1
- package/dist/components/patterns/iconWithIdentifier/iconWithIdentifier.d.ts +0 -11
- package/dist/components/patterns/iconWithIdentifier/index.d.ts +0 -1
- package/dist/components/patterns/linkWithIcon/index.d.ts +0 -1
- package/dist/components/patterns/linkWithIcon/linkWithIcon.d.ts +0 -14
- package/dist/components/tooltip/index.d.ts +0 -3
- package/dist/components/tooltip/overflowChecker.d.ts +0 -5
- package/dist/components/tooltip/tooltip.d.ts +0 -20
- package/dist/favicon.svg +0 -43
- package/dist/hooks/useReduxFormField.d.ts +0 -26
- package/dist/locales/description.d.ts +0 -15
- package/dist/locales/es.d.ts +0 -222
- package/dist/locales/index.d.ts +0 -2
- package/dist/locales/translator.d.ts +0 -3
- package/dist/style.css +0 -1
- package/dist/styles/colors.d.ts +0 -25
- package/dist/styles/theme.d.ts +0 -2
- package/dist/validators/errorMessage.d.ts +0 -5
- package/dist/validators/index.d.ts +0 -2
- package/dist/validators/validation.d.ts +0 -21
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface ImageProps {
|
|
4
|
-
src: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
sx?: React.CSSProperties;
|
|
7
|
-
alt?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const Image: React.FC<ImageProps>;
|
|
10
|
-
export type { ImageProps };
|
|
11
|
-
export default Image;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Image, type ImageProps } from './image';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CheckboxInputProps } from './checkboxInputGroup';
|
|
3
|
-
|
|
4
|
-
export declare const CheckboxInput: React.FC<Omit<CheckboxInputProps, 'items'> & {
|
|
5
|
-
checked?: boolean;
|
|
6
|
-
label: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}>;
|
|
9
|
-
export default CheckboxInput;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ReduxFormInput } from '../../../hooks/useReduxFormField';
|
|
3
|
-
|
|
4
|
-
export interface CheckboxItem {
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
label: string;
|
|
8
|
-
value?: any;
|
|
9
|
-
checked?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface CheckboxInputProps {
|
|
13
|
-
name: string;
|
|
14
|
-
items: CheckboxItem[];
|
|
15
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
title?: string;
|
|
17
|
-
type?: 'checkbox' | 'radio';
|
|
18
|
-
size?: 'sm' | 'md' | 'lg';
|
|
19
|
-
input?: ReduxFormInput;
|
|
20
|
-
}
|
|
21
|
-
export declare const CheckboxInputGroup: React.FC<CheckboxInputProps>;
|
|
22
|
-
export default CheckboxInputGroup;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DatePickerProps } from './datePickerTypes';
|
|
3
|
-
|
|
4
|
-
export declare const DatePickerInput: React.FC<DatePickerProps>;
|
|
5
|
-
export declare const DatePicker: ({ label, rightAdornment, ...props }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
-
|
|
3
|
-
export declare const datePickerLayoutStyles: SxProps<Theme>;
|
|
4
|
-
export declare const datePickerInputStyles: SxProps<Theme>;
|
|
5
|
-
export declare const datePickerDayStyles: SxProps<Theme>;
|
|
6
|
-
export declare const datePickerDigitalClockStyles: SxProps<Theme>;
|
|
7
|
-
export declare const datePickerYearStyles: SxProps<Theme>;
|
|
8
|
-
export declare const datePickerPopperStyles: SxProps<Theme>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FormFieldProps } from '../formField/formField';
|
|
2
|
-
import { InputValue } from '../../../validators';
|
|
3
|
-
|
|
4
|
-
export interface DatePickerSpecificProps {
|
|
5
|
-
value?: InputValue;
|
|
6
|
-
minDate?: InputValue;
|
|
7
|
-
maxDate?: InputValue;
|
|
8
|
-
format?: string;
|
|
9
|
-
}
|
|
10
|
-
type UnusedFormFieldProps = 'max' | 'min' | 'isClearable' | 'leftIcon' | 'rightIcon' | 'type' | 'inputRef' | 'children';
|
|
11
|
-
type OverriddenFormFieldProps = 'value';
|
|
12
|
-
export interface DatePickerProps extends Omit<FormFieldProps, UnusedFormFieldProps | OverriddenFormFieldProps>, DatePickerSpecificProps {
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { TextField } from '@mui/material';
|
|
2
|
-
import { default as dayjs, Dayjs } from 'dayjs';
|
|
3
|
-
import { InputValue } from '../../../validators';
|
|
4
|
-
import { default as React } from 'react';
|
|
5
|
-
|
|
6
|
-
export declare const ActionComponent: React.FC<{
|
|
7
|
-
showClearIcon: boolean;
|
|
8
|
-
onClear?: () => void;
|
|
9
|
-
onOpen?: () => void;
|
|
10
|
-
}>;
|
|
11
|
-
export type PickerType = 'date' | 'dateTime' | 'time' | 'year';
|
|
12
|
-
export declare const getPickerTypeFromFormat: (format?: string) => PickerType;
|
|
13
|
-
export declare const getFinalFormat: (format?: string) => string;
|
|
14
|
-
export declare const getPlaceholderByFormat: (format?: string, customPlaceholder?: string) => string;
|
|
15
|
-
export declare const convertToDate: (val: InputValue, format: string) => Dayjs | null;
|
|
16
|
-
export declare const getPickerProps: ({ currentValue, finalFormat, onChange, disabled, minDate, maxDate, placeholder, name, otherProps, onClear, onOpen, onClose, open, }: {
|
|
17
|
-
currentValue: InputValue;
|
|
18
|
-
finalFormat: string;
|
|
19
|
-
onChange: (date: Dayjs | null) => void;
|
|
20
|
-
open: boolean;
|
|
21
|
-
disabled: boolean;
|
|
22
|
-
minDate?: InputValue;
|
|
23
|
-
maxDate?: InputValue;
|
|
24
|
-
placeholder?: string;
|
|
25
|
-
name?: string;
|
|
26
|
-
onClear?: () => void;
|
|
27
|
-
onOpen?: () => void;
|
|
28
|
-
onClose?: () => void;
|
|
29
|
-
otherProps: any;
|
|
30
|
-
}) => {
|
|
31
|
-
open: boolean;
|
|
32
|
-
value: dayjs.Dayjs | null;
|
|
33
|
-
onAccept: (date: Dayjs | null) => void;
|
|
34
|
-
onClose: (() => void) | undefined;
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
minDate: dayjs.Dayjs | undefined;
|
|
37
|
-
maxDate: dayjs.Dayjs | undefined;
|
|
38
|
-
format: string;
|
|
39
|
-
slots: {
|
|
40
|
-
textField: typeof TextField;
|
|
41
|
-
};
|
|
42
|
-
slotProps: {
|
|
43
|
-
textField: {
|
|
44
|
-
placeholder: string;
|
|
45
|
-
name: string | undefined;
|
|
46
|
-
onClick: (() => void) | undefined;
|
|
47
|
-
variant: "outlined";
|
|
48
|
-
fullWidth: boolean;
|
|
49
|
-
className: string;
|
|
50
|
-
sx: import('@mui/material').SxProps<import('@mui/material').Theme>;
|
|
51
|
-
InputProps: {
|
|
52
|
-
style: {
|
|
53
|
-
cursor: string;
|
|
54
|
-
};
|
|
55
|
-
endAdornment: import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
layout: {
|
|
59
|
-
sx: {};
|
|
60
|
-
};
|
|
61
|
-
day: {
|
|
62
|
-
sx: import('@mui/material').SxProps<import('@mui/material').Theme>;
|
|
63
|
-
};
|
|
64
|
-
popper: {
|
|
65
|
-
sx: import('@mui/material').SxProps<import('@mui/material').Theme>;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { DateRangePickerProps } from './dateRangePickerTypes';
|
|
3
|
-
|
|
4
|
-
export declare const DateRangePickerInput: React.FC<DateRangePickerProps>;
|
|
5
|
-
export declare const DateRangePicker: ({ label, rightAdornment, value, ...props }: DateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputValue } from '../../../validators';
|
|
2
|
-
import { DatePickerProps } from '../datePicker';
|
|
3
|
-
|
|
4
|
-
export interface DateRangeValue {
|
|
5
|
-
from: InputValue;
|
|
6
|
-
to: InputValue;
|
|
7
|
-
}
|
|
8
|
-
export interface DateRangePickerSpecificProps {
|
|
9
|
-
value?: DateRangeValue;
|
|
10
|
-
}
|
|
11
|
-
type OverriddenDatePickerProps = 'value';
|
|
12
|
-
export interface DateRangePickerProps extends Omit<DatePickerProps, OverriddenDatePickerProps>, DateRangePickerSpecificProps {
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DateRange, Matcher } from 'react-day-picker';
|
|
2
|
-
import { InputValue } from '../../../validators';
|
|
3
|
-
|
|
4
|
-
export type DisabledDays = Matcher | Matcher[] | undefined;
|
|
5
|
-
export declare const fromInputValue: (inputValue: InputValue) => DateRange | undefined;
|
|
6
|
-
export declare const getDisplayRange: (range: DateRange | undefined, format?: string) => string;
|
|
7
|
-
export declare const convertToDate: (val: InputValue | undefined) => Date | undefined;
|
|
8
|
-
export declare const CustomWeekday: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const getDisabledDays: (disabled: boolean, minDate?: InputValue, maxDate?: InputValue) => DisabledDays;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TextInputProps } from './textInput';
|
|
3
|
-
|
|
4
|
-
export interface FormFieldProps extends TextInputProps {
|
|
5
|
-
label?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
rightAdornment?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const FormField: React.FC<FormFieldProps>;
|
|
10
|
-
export default FormField;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React, ChangeEvent } from 'react';
|
|
2
|
-
import { Meta, InputValue } from '../../../validators';
|
|
3
|
-
import { ReduxFormInput } from '../../../hooks/useReduxFormField';
|
|
4
|
-
|
|
5
|
-
export interface TextInputProps {
|
|
6
|
-
meta?: Meta;
|
|
7
|
-
max?: number;
|
|
8
|
-
min?: number;
|
|
9
|
-
name: string;
|
|
10
|
-
noErrors?: boolean;
|
|
11
|
-
value?: InputValue;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
isClearable?: boolean;
|
|
16
|
-
size?: 'sm' | 'md' | 'lg';
|
|
17
|
-
leftIcon?: React.ReactNode;
|
|
18
|
-
rightIcon?: React.ReactNode;
|
|
19
|
-
isValid?: (value: InputValue) => boolean;
|
|
20
|
-
type?: 'text' | 'number' | 'password' | 'date' | 'dateRange' | undefined;
|
|
21
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
-
input?: ReduxFormInput;
|
|
23
|
-
inputRef?: React.RefObject<HTMLInputElement>;
|
|
24
|
-
}
|
|
25
|
-
export declare const TextInput: React.FC<TextInputProps>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { SelectOption } from '../selectField/selectField';
|
|
3
|
-
|
|
4
|
-
export interface SearcherProps {
|
|
5
|
-
name: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
size?: 'md' | 'lg';
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
isClearable?: boolean;
|
|
12
|
-
isSearchable?: boolean;
|
|
13
|
-
clearOnSelect?: boolean;
|
|
14
|
-
options: SelectOption[];
|
|
15
|
-
noOptionsMessage?: string | React.ReactNode;
|
|
16
|
-
rightModifier?: React.ReactNode;
|
|
17
|
-
isOptionDisabled?: (option: SelectOption) => boolean;
|
|
18
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
19
|
-
onInputChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
-
isLoading?: boolean;
|
|
21
|
-
input?: {
|
|
22
|
-
value: any;
|
|
23
|
-
onChange: (value: any) => void;
|
|
24
|
-
onBlur: () => void;
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export declare const Searcher: React.FC<SearcherProps>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { OptionProps, SingleValueProps } from 'react-select';
|
|
3
|
-
import { ReduxFormInput } from '../../../hooks/useReduxFormField';
|
|
4
|
-
|
|
5
|
-
export interface SelectOption {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string | number;
|
|
8
|
-
tooltipMessage?: string;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
export type SelectOptionType = SelectOption[] | SelectOption | null;
|
|
12
|
-
export interface SelectFieldProps {
|
|
13
|
-
name: string;
|
|
14
|
-
label?: string;
|
|
15
|
-
size?: 'md' | 'lg';
|
|
16
|
-
onBlur?: () => void;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
isMultiple?: boolean;
|
|
20
|
-
required?: boolean;
|
|
21
|
-
isClearable?: boolean;
|
|
22
|
-
isSearchable?: boolean;
|
|
23
|
-
options: SelectOption[];
|
|
24
|
-
noOptionsMessage?: string;
|
|
25
|
-
hideSelectedOptions?: boolean;
|
|
26
|
-
rightModifier?: React.ReactNode;
|
|
27
|
-
isOptionDisabled?: (option: SelectOption) => boolean;
|
|
28
|
-
value?: (string | number)[] | null | undefined;
|
|
29
|
-
defaultValue?: (string | number) | (string | number)[] | null | undefined;
|
|
30
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
31
|
-
input?: ReduxFormInput;
|
|
32
|
-
}
|
|
33
|
-
export declare const Option: (props: OptionProps<SelectOption>) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export declare const SingleValue: (props: SingleValueProps<SelectOption>) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export declare const SearchComponent: () => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export declare const ClearComponent: ({ optionSelected, isClearable, handleChange, }: {
|
|
37
|
-
optionSelected?: SelectOptionType | undefined;
|
|
38
|
-
isClearable: boolean;
|
|
39
|
-
handleChange: (selected: SelectOptionType) => void;
|
|
40
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
41
|
-
export declare const SelectField: React.FC<SelectFieldProps>;
|
|
42
|
-
export default SelectField;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ReduxFormInput } from '../../../hooks/useReduxFormField';
|
|
3
|
-
|
|
4
|
-
export interface SwitchItem {
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
label: string;
|
|
8
|
-
value?: any;
|
|
9
|
-
checked?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface SwitchInputProps {
|
|
13
|
-
name: string;
|
|
14
|
-
items: SwitchItem[];
|
|
15
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
-
title?: string;
|
|
17
|
-
size?: 'sm' | 'md' | 'lg';
|
|
18
|
-
input?: ReduxFormInput;
|
|
19
|
-
}
|
|
20
|
-
export declare const SwitchInputGroup: React.FC<SwitchInputProps>;
|
|
21
|
-
export declare const SwitchInput: React.FC<{
|
|
22
|
-
name: string;
|
|
23
|
-
checked?: boolean;
|
|
24
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
25
|
-
label: string;
|
|
26
|
-
title?: string;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
size?: 'sm' | 'md' | 'lg';
|
|
29
|
-
input?: ReduxFormInput;
|
|
30
|
-
}>;
|
|
31
|
-
export default SwitchInput;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface ProgressbarProps {
|
|
2
|
-
size?: 'sm' | 'lg';
|
|
3
|
-
progress?: number;
|
|
4
|
-
variant?: 'determinate' | 'indeterminate' | 'buffer' | 'query';
|
|
5
|
-
}
|
|
6
|
-
export declare const Progressbar: ({ size, progress: initialProgress, variant, }: ProgressbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export type { ProgressbarProps };
|
|
8
|
-
export default Progressbar;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MenuAction, type MenuActionProps, type MenuActionItem } from './menuAction';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface MenuActionItem {
|
|
4
|
-
label: React.ReactNode;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface MenuActionProps {
|
|
10
|
-
items: MenuActionItem[];
|
|
11
|
-
id?: string;
|
|
12
|
-
maxItemsVisible?: number;
|
|
13
|
-
icon?: React.ReactNode;
|
|
14
|
-
otherProps?: React.HTMLAttributes<HTMLButtonElement>;
|
|
15
|
-
}
|
|
16
|
-
export declare const MenuAction: React.FC<MenuActionProps>;
|
|
17
|
-
export type { MenuActionProps, MenuActionItem };
|
|
18
|
-
export default MenuAction;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './warningModal/warningModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { WarningModal, type WarningModalProps } from './warningModal';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { default as React, ChangeEvent } from 'react';
|
|
2
|
-
|
|
3
|
-
interface WarningModalProps {
|
|
4
|
-
icon?: React.ReactNode;
|
|
5
|
-
title?: string;
|
|
6
|
-
description: React.ReactNode;
|
|
7
|
-
confirmLabel?: string;
|
|
8
|
-
cancelLabel?: string;
|
|
9
|
-
onSave?: () => void;
|
|
10
|
-
onCancel?: () => void;
|
|
11
|
-
dontShowAgainLabel?: string;
|
|
12
|
-
onChangeDontShowAgain?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
-
onClickGuide?: (e: React.MouseEvent<SVGSVGElement>) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const WarningModal: React.FC<WarningModalProps>;
|
|
16
|
-
export type { WarningModalProps };
|
|
17
|
-
export default WarningModal;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface SaveButtonProps {
|
|
4
|
-
onSave: () => void;
|
|
5
|
-
label?: string;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
interface CancelButtonProps {
|
|
9
|
-
onCancel: () => void;
|
|
10
|
-
label?: string;
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}
|
|
13
|
-
interface PreviousButtonProps {
|
|
14
|
-
onPrevious: () => void;
|
|
15
|
-
label?: string;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
interface SaveBarProps {
|
|
19
|
-
saveProps: SaveButtonProps;
|
|
20
|
-
cancelProps: CancelButtonProps;
|
|
21
|
-
previousProps?: PreviousButtonProps;
|
|
22
|
-
variant?: "page" | "modal" | "fullPage";
|
|
23
|
-
}
|
|
24
|
-
export declare const ActionBar: React.FC<SaveBarProps>;
|
|
25
|
-
export type { SaveBarProps, SaveButtonProps, CancelButtonProps, PreviousButtonProps };
|
|
26
|
-
export default ActionBar;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
interface CopyButtonProps {
|
|
3
|
-
onClick?: () => void;
|
|
4
|
-
copyText?: string;
|
|
5
|
-
copiedText?: string;
|
|
6
|
-
textToCopy?: string;
|
|
7
|
-
resetTime?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const CopyButton: ({ onClick, copyText, copiedText, textToCopy, resetTime, ...props }: CopyButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export type { CopyButtonProps };
|
|
11
|
-
export default CopyButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { CopyButton, type CopyButtonProps } from './copyButton';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface EmptyStateProps {
|
|
4
|
-
onActionClick?: () => void;
|
|
5
|
-
actionText?: string;
|
|
6
|
-
text?: string;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const EmptyState: ({ onActionClick, icon, actionText, text, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export type { EmptyStateProps };
|
|
11
|
-
export default EmptyState;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface HeaderSectionProps {
|
|
4
|
-
breadcrumb?: React.ReactNode;
|
|
5
|
-
image?: React.ReactNode;
|
|
6
|
-
dense?: boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
subtitle?: React.ReactNode;
|
|
9
|
-
link?: React.ReactNode;
|
|
10
|
-
menuAction?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const HeaderSection: React.FC<HeaderSectionProps>;
|
|
13
|
-
export type { HeaderSectionProps };
|
|
14
|
-
export default HeaderSection;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HeaderSection, type HeaderSectionProps } from './headerSection';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface IconWithIdentifierProps {
|
|
4
|
-
text: string;
|
|
5
|
-
showDivider?: boolean;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
color?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const IconWithIdentifier: React.FC<IconWithIdentifierProps>;
|
|
10
|
-
export type { IconWithIdentifierProps };
|
|
11
|
-
export default IconWithIdentifier;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IconWithIdentifier, type IconWithIdentifierProps } from './iconWithIdentifier';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { LinkWithIcon, type LinkComponentProps } from './linkWithIcon';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonProps } from '../../button/button';
|
|
3
|
-
|
|
4
|
-
interface LinkWithIconProps {
|
|
5
|
-
text: string;
|
|
6
|
-
icon?: React.ReactElement;
|
|
7
|
-
onClick: () => void;
|
|
8
|
-
className?: string;
|
|
9
|
-
size?: ButtonProps['size'];
|
|
10
|
-
otherProps?: Record<string, any>;
|
|
11
|
-
}
|
|
12
|
-
export declare const LinkWithIcon: React.FC<LinkWithIconProps>;
|
|
13
|
-
export type { LinkWithIconProps as LinkComponentProps };
|
|
14
|
-
export default LinkWithIcon;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const OverflowChecker: ({ children, }: {
|
|
4
|
-
children: (ref: React.RefObject<HTMLElement | HTMLDivElement | HTMLSpanElement | HTMLLabelElement>, showTooltip: boolean) => React.ReactNode;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
|
|
4
|
-
export type TooltipTrigger = 'hover' | 'click';
|
|
5
|
-
export interface BaseTooltipProps {
|
|
6
|
-
content?: string | React.ReactNode;
|
|
7
|
-
placement?: TooltipPlacement;
|
|
8
|
-
arrow?: boolean;
|
|
9
|
-
maxWidth?: number | string;
|
|
10
|
-
trigger?: TooltipTrigger;
|
|
11
|
-
shouldShowTooltip?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface WithTooltipProps extends BaseTooltipProps {
|
|
14
|
-
children: React.ReactElement;
|
|
15
|
-
}
|
|
16
|
-
export declare const WithTooltip: ({ children, content, placement, arrow, maxWidth, trigger, shouldShowTooltip, ...otherProps }: WithTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export interface CombinedTooltipProps extends BaseTooltipProps {
|
|
18
|
-
children: React.ReactElement;
|
|
19
|
-
}
|
|
20
|
-
export declare const WithOverflowTooltip: ({ content, children, ...tooltipProps }: CombinedTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/favicon.svg
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<!-- Fondo circular azul -->
|
|
4
|
-
<circle cx="16" cy="16" r="16" fill="#0045AD"/>
|
|
5
|
-
|
|
6
|
-
<!-- Patrón de puntos sutiles en el fondo -->
|
|
7
|
-
<circle cx="6" cy="6" r="0.8" fill="white" opacity="0.25"/>
|
|
8
|
-
<circle cx="26" cy="6" r="0.8" fill="white" opacity="0.25"/>
|
|
9
|
-
<circle cx="6" cy="26" r="0.8" fill="white" opacity="0.25"/>
|
|
10
|
-
<circle cx="26" cy="26" r="0.8" fill="white" opacity="0.25"/>
|
|
11
|
-
<circle cx="16" cy="4" r="0.5" fill="white" opacity="0.2"/>
|
|
12
|
-
<circle cx="16" cy="28" r="0.5" fill="white" opacity="0.2"/>
|
|
13
|
-
<circle cx="4" cy="16" r="0.5" fill="white" opacity="0.2"/>
|
|
14
|
-
<circle cx="28" cy="16" r="0.5" fill="white" opacity="0.2"/>
|
|
15
|
-
|
|
16
|
-
<!-- Líneas sutiles conectoras -->
|
|
17
|
-
<line x1="16" y1="4" x2="16" y2="7" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
18
|
-
<line x1="16" y1="25" x2="16" y2="28" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
19
|
-
<line x1="4" y1="16" x2="7" y2="16" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
20
|
-
<line x1="25" y1="16" x2="28" y2="16" stroke="white" stroke-width="0.3" opacity="0.2"/>
|
|
21
|
-
|
|
22
|
-
<!-- Letra U redondeada y minimalista -->
|
|
23
|
-
<path
|
|
24
|
-
d="M9.5 11 v6.5
|
|
25
|
-
a4.5 4.5 0 0 0 9 0 v-6.5"
|
|
26
|
-
stroke="white"
|
|
27
|
-
stroke-width="3.2"
|
|
28
|
-
stroke-linecap="round"
|
|
29
|
-
stroke-linejoin="round"
|
|
30
|
-
fill="none"
|
|
31
|
-
/>
|
|
32
|
-
|
|
33
|
-
<!-- Letra I redondeada y minimalista -->
|
|
34
|
-
<line
|
|
35
|
-
x1="22.5"
|
|
36
|
-
y1="11"
|
|
37
|
-
x2="22.5"
|
|
38
|
-
y2="21"
|
|
39
|
-
stroke="white"
|
|
40
|
-
stroke-width="3.2"
|
|
41
|
-
stroke-linecap="round"
|
|
42
|
-
/>
|
|
43
|
-
</svg>
|