@aveonline/ui-react 1.19.5 → 2.0.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/README.md +83 -126
- package/dist/hooks/useTokens.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +45 -43
- package/dist/reset.css +273 -273
- package/dist/tailwind.config.js +242 -242
- package/dist/tailwind.css +1 -1
- package/dist/tokens.css +160 -160
- package/dist/{components → ui}/atoms/Avatar/Avatar.d.ts +1 -2
- package/dist/{components → ui}/atoms/Badge/Badge.d.ts +1 -2
- package/dist/{components → ui}/atoms/Badge/IBadge.d.ts +2 -6
- package/dist/ui/atoms/Button/Button.d.ts +7 -0
- package/dist/ui/atoms/Checkbox/Checkbox.d.ts +7 -0
- package/dist/{components → ui}/atoms/Icon/Svg.d.ts +1 -1
- package/dist/{components → ui}/atoms/Logo/ILogo.d.ts +1 -1
- package/dist/{components → ui}/atoms/Logo/Logo.d.ts +1 -1
- package/dist/ui/atoms/Radio/Radio.d.ts +7 -0
- package/dist/ui/atoms/Radio/index.d.ts +2 -0
- package/dist/{components → ui}/atoms/Spinner/Spinner.d.ts +0 -1
- package/dist/{components → ui}/atoms/Switch/Switch.d.ts +0 -1
- package/dist/{components → ui}/atoms/Tooltip/Tooltip.d.ts +1 -2
- package/dist/{components → ui}/atoms/Tracker/Tracker.d.ts +0 -1
- package/dist/{components → ui}/atoms/Typography/Heading/Heading.d.ts +0 -1
- package/dist/{components → ui}/atoms/Typography/Link/ILink.d.ts +5 -1
- package/dist/{components → ui}/atoms/Typography/Link/Link.d.ts +1 -2
- package/dist/{components → ui}/atoms/Typography/Text/Text.d.ts +1 -2
- package/dist/ui/atoms/Typography/Text/TextRef.d.ts +4 -0
- package/dist/{components → ui}/index.d.ts +11 -10
- package/dist/ui/molecules/Cards/CardHistory/CardHistory.d.ts +4 -0
- package/dist/ui/molecules/Cards/CardHistory/ICardHistory.d.ts +22 -0
- package/dist/{components/molecules/Card/Select/Select.d.ts → ui/molecules/Cards/CardSelect/CardSelect.d.ts} +1 -2
- package/dist/ui/molecules/Cards/CardSelect/index.d.ts +2 -0
- package/dist/{components/molecules/Card/Simple → ui/molecules/Cards/CardSimple}/ICardSimple.d.ts +1 -1
- package/dist/ui/molecules/Cards/CardSimple/index.d.ts +2 -0
- package/dist/{components → ui}/molecules/DateInputPicker/Atoms/PluginEspecialDates.d.ts +1 -1
- package/dist/{components → ui}/molecules/DateInputPicker/Datelocate.d.ts +1 -1
- package/dist/{components → ui}/molecules/DateInputPicker/IDateInputPicker.d.ts +2 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/IDropdownFilterMultiple.d.ts +1 -1
- package/dist/ui/molecules/Dropdowns/DropdownSearchMultiple/DropdownSearchMultiple.d.ts +3 -0
- package/dist/{components/molecules/Filter/FilterSearchMultiple/IFilterSearchMultiple.d.ts → ui/molecules/Dropdowns/DropdownSearchMultiple/IDropdownSearchMultiple.d.ts} +1 -1
- package/dist/ui/molecules/Dropdowns/DropdownSearchMultiple/index.d.ts +2 -0
- package/dist/{components/molecules/Dropdown/Dropdown.d.ts → ui/molecules/Dropdowns/DropdownSummary/DropdownSummary.d.ts} +3 -5
- package/dist/{components/molecules/Dropdown/IDropdown.d.ts → ui/molecules/Dropdowns/DropdownSummary/IDropdownSummary.d.ts} +2 -2
- package/dist/ui/molecules/Dropdowns/DropdownSummary/index.d.ts +2 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/IDropdownUser.d.ts +1 -1
- package/dist/{components → ui}/molecules/Field/Field.d.ts +2 -2
- package/dist/{components → ui}/molecules/InlineError/InlineError.d.ts +0 -1
- package/dist/ui/molecules/Selectable/select.d.ts +28 -0
- package/dist/{components → ui}/molecules/Summary/Summary.d.ts +2 -2
- package/dist/{components → ui}/molecules/Tab/Tab.d.ts +0 -1
- package/dist/{components → ui}/molecules/Table/ITable.d.ts +13 -8
- package/dist/{components → ui}/molecules/Table/Table.d.ts +1 -1
- package/dist/ui/molecules/Table/atoms/IPagination.d.ts +16 -0
- package/dist/ui/molecules/Table/atoms/Pagination.d.ts +5 -0
- package/dist/ui-react.mjs +20729 -21396
- package/dist/ui-react.umd.js +121 -108
- package/dist/vite-env.d.ts +2 -2
- package/package.json +154 -111
- package/dist/components/atoms/Button/Button.d.ts +0 -8
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +0 -8
- package/dist/components/atoms/RadioButton/RadioButton.d.ts +0 -8
- package/dist/components/atoms/RadioButton/index.d.ts +0 -2
- package/dist/components/atoms/Typography/Text/TextRef.d.ts +0 -4
- package/dist/components/molecules/Card/Select/index.d.ts +0 -2
- package/dist/components/molecules/Card/Simple/index.d.ts +0 -2
- package/dist/components/molecules/CardHistory/CardHistory.d.ts +0 -4
- package/dist/components/molecules/CardHistory/ICardHistory.d.ts +0 -20
- package/dist/components/molecules/Dropdown/index.d.ts +0 -2
- package/dist/components/molecules/Filter/FilterSearchMultiple/FilterSearchMultiple.d.ts +0 -3
- package/dist/components/molecules/Filter/FilterSearchMultiple/index.d.ts +0 -2
- package/dist/components/molecules/Table/atoms/IPagination.d.ts +0 -12
- package/dist/components/molecules/Table/atoms/Pagination.d.ts +0 -4
- package/dist/{components → ui}/atoms/Avatar/IAvatar.d.ts +0 -0
- package/dist/{components → ui}/atoms/Avatar/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Badge/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Button/IButton.d.ts +0 -0
- package/dist/{components → ui}/atoms/Button/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Button/useCSS.d.ts +0 -0
- package/dist/{components → ui}/atoms/Checkbox/ICheckbox.d.ts +0 -0
- package/dist/{components → ui}/atoms/Checkbox/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Icon/IIcon.d.ts +0 -0
- package/dist/{components → ui}/atoms/Icon/Icon.d.ts +0 -0
- package/dist/{components → ui}/atoms/Icon/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Logo/index.d.ts +0 -0
- package/dist/{components/atoms/RadioButton/IRadioButton.d.ts → ui/atoms/Radio/IRadio.d.ts} +0 -0
- package/dist/{components → ui}/atoms/Spinner/ISpinner.d.ts +0 -0
- package/dist/{components → ui}/atoms/Spinner/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Switch/ISwitch.d.ts +0 -0
- package/dist/{components → ui}/atoms/Switch/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Tooltip/ITooltip.d.ts +0 -0
- package/dist/{components → ui}/atoms/Tooltip/TooltipAnchor.d.ts +0 -0
- package/dist/{components → ui}/atoms/Tooltip/TooltipFloat.d.ts +0 -0
- package/dist/{components → ui}/atoms/Tooltip/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Tracker/ITracker.d.ts +0 -0
- package/dist/{components → ui}/atoms/Tracker/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Heading/IHeading.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Heading/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Heading/useCSS.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Link/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Text/IText.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Text/index.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Text/useCSS.d.ts +0 -0
- package/dist/{components → ui}/atoms/Typography/Text/useText.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Cards}/CardHistory/index.d.ts +0 -0
- package/dist/{components/molecules/Card/Select/ISelect.d.ts → ui/molecules/Cards/CardSelect/ICardSelect.d.ts} +0 -0
- package/dist/{components/molecules/Card/Simple/Simple.d.ts → ui/molecules/Cards/CardSimple/CardSimple.d.ts} +0 -0
- package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomButton.d.ts +0 -0
- package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomInput.d.ts +0 -0
- package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomRangeInput.d.ts +0 -0
- package/dist/{components → ui}/molecules/DateInputPicker/DateInputPicker.d.ts +0 -0
- package/dist/{components → ui}/molecules/DateInputPicker/index.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/DropdownButton.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/IDropdownButton.d.ts +4 -4
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/index.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/useCss.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/DropdownFilterMultiple.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/index.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/DropdownUser.d.ts +0 -0
- package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/index.d.ts +0 -0
- package/dist/{components → ui}/molecules/EmptyState/BoxSvg.d.ts +0 -0
- package/dist/{components → ui}/molecules/EmptyState/EmptyState.d.ts +0 -0
- package/dist/{components → ui}/molecules/EmptyState/IEmptyState.d.ts +0 -0
- package/dist/{components → ui}/molecules/EmptyState/PadlockSvg.d.ts +0 -0
- package/dist/{components → ui}/molecules/EmptyState/index.d.ts +0 -0
- package/dist/{components → ui}/molecules/Field/Container.d.ts +0 -0
- package/dist/{components → ui}/molecules/Field/Footer.d.ts +0 -0
- package/dist/{components → ui}/molecules/Field/IField.d.ts +0 -0
- package/dist/{components → ui}/molecules/Field/IFieldCustom.d.ts +22 -22
- /package/dist/{components → ui}/molecules/Field/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Field/useField.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Flag/Flag.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Flag/IFlag.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Flag/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Header/Header.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Header/IHeader.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Header/NavigationMovil.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Header/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Indicator/Graphic/Graphic.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Indicator/Graphic/IGraphic.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Indicator/Graphic/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/InlineError/IInlineError.d.ts +0 -0
- /package/dist/{components → ui}/molecules/InlineError/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Modal/IModal.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Modal/Modal.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Modal/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/AsyncCreatableSelect.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/IAsyncCreatableSelect.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/AsyncSelect.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/Select/ISelect.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/Select/Select.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/Select/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectButton/ISelectButton.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectButton/Option.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectButton/SelectButton.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectButton/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectCountry/Option.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectCountry/Prefix.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectCountry/SelectCountry.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectCountry/SingleValue.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/SelectCountry/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/ClearIndicator.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/Container.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/Control.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/DropdownIndicator.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/Option.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/Placeholder.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/SingleValue.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/atoms/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/hooks/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Selectable/hooks/useCSS.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Summary/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Tab/ITab.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Tab/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/TabNav/ITabNav.d.ts +0 -0
- /package/dist/{components → ui}/molecules/TabNav/TabNav.d.ts +0 -0
- /package/dist/{components → ui}/molecules/TabNav/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Table/atoms/CheckBoxTable.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Table/atoms/ISortTable.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Table/atoms/InputSearch.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Table/atoms/SortTable.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Table/atoms/index.d.ts +0 -0
- /package/dist/{components → ui}/molecules/Table/index.d.ts +0 -0
- /package/dist/{components → ui}/organisms/Navigation/INavigation.d.ts +0 -0
- /package/dist/{components → ui}/organisms/Navigation/Navigation.d.ts +0 -0
- /package/dist/{components → ui}/organisms/Navigation/index.d.ts +0 -0
- /package/dist/{components → ui}/templates/Main/Main.d.ts +0 -0
- /package/dist/{components → ui}/templates/Main/index.d.ts +0 -0
- /package/dist/{components → ui}/templates/SecondMain/SecondMain.d.ts +0 -0
- /package/dist/{components → ui}/templates/SecondMain/index.d.ts +0 -0
- /package/dist/{components → ui}/templates/Shipment/Shipment.d.ts +0 -0
- /package/dist/{components → ui}/templates/Shipment/index.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ISwitch } from './ISwitch';
|
|
3
3
|
/**
|
|
4
|
-
* Atom: Switch
|
|
5
4
|
* Switches toggle the state of a single item on or off.
|
|
6
5
|
*/
|
|
7
6
|
declare function Switch({ onChange, isSelected, isDisabled, name, hasFrozenState, ...props }: ISwitch): JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ITooltipProps } from './ITooltip';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* Tooltips are floating labels that briefly explain the function of a user interface element. They can be triggered when merchants hover.
|
|
4
|
+
* Floating labels that briefly explain the function of a user interface element. They can be triggered when merchants hover.
|
|
6
5
|
*/
|
|
7
6
|
declare function Tooltip({ placement, title, description, initialOpen, fullWidthContainer, classNameContainer, children }: ITooltipProps): JSX.Element;
|
|
8
7
|
export default Tooltip;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IPropsTracker } from './ITracker';
|
|
3
3
|
/**
|
|
4
|
-
* Atom: Tracker
|
|
5
4
|
* Use in processes that have more than one step, so the user can know exactly how much is left.
|
|
6
5
|
*/
|
|
7
6
|
declare function Tracker({ track, isDisabled, isSelected, title, ...rest }: IPropsTracker): JSX.Element;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface ILink {
|
|
3
3
|
/**
|
|
4
|
-
* Kind availables
|
|
4
|
+
* Kind availables (deprecated - use variant)
|
|
5
5
|
*/
|
|
6
6
|
kind?: 'default' | 'monochrome' | 'underline';
|
|
7
7
|
/**
|
|
8
8
|
* Tag html availables
|
|
9
9
|
*/
|
|
10
10
|
as?: Extract<keyof JSX.IntrinsicElements, 'span' | 'a'>;
|
|
11
|
+
/**
|
|
12
|
+
* Variants availables
|
|
13
|
+
*/
|
|
14
|
+
variant?: 'default' | 'monochrome' | 'underline';
|
|
11
15
|
onClick?: () => void;
|
|
12
16
|
}
|
|
13
17
|
export type { ILink };
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
import { IChildren, IClassName } from '../../../../types';
|
|
3
3
|
import { ILink } from './ILink';
|
|
4
4
|
/**
|
|
5
|
-
* Atom: Link
|
|
6
5
|
* Links take users to another place, and usually appear within or directly following a sentence.
|
|
7
6
|
*/
|
|
8
|
-
declare function Link({ kind, className, children, as: ElementText, onClick }: ILink & IChildren & IClassName): JSX.Element;
|
|
7
|
+
declare function Link({ kind, variant, className, children, as: ElementText, onClick }: ILink & IChildren & IClassName): JSX.Element;
|
|
9
8
|
export default Link;
|
|
@@ -7,7 +7,7 @@ export * from './atoms/Badge';
|
|
|
7
7
|
export * from './atoms/Switch';
|
|
8
8
|
export * from './atoms/Icon';
|
|
9
9
|
export * from './atoms/Tooltip';
|
|
10
|
-
export * from './atoms/
|
|
10
|
+
export * from './atoms/Radio';
|
|
11
11
|
export * from './atoms/Tracker';
|
|
12
12
|
export * from './atoms/Logo';
|
|
13
13
|
export * from './atoms/Checkbox';
|
|
@@ -20,7 +20,6 @@ export * from './molecules/Selectable/AsyncCreatableSelect';
|
|
|
20
20
|
export * from './molecules/Tab';
|
|
21
21
|
export * from './molecules/InlineError';
|
|
22
22
|
export * from './molecules/Modal';
|
|
23
|
-
export * from './molecules/Dropdown';
|
|
24
23
|
export * from './molecules/EmptyState';
|
|
25
24
|
export * from './molecules/TabNav';
|
|
26
25
|
export * from './molecules/Header';
|
|
@@ -28,16 +27,18 @@ export * from './molecules/Indicator/Graphic';
|
|
|
28
27
|
export * from './molecules/Summary';
|
|
29
28
|
export * from './molecules/Field';
|
|
30
29
|
export * from './molecules/Flag';
|
|
31
|
-
export * from './molecules/
|
|
32
|
-
export * from './molecules/
|
|
30
|
+
export * from './molecules/DateInputPicker';
|
|
31
|
+
export * from './molecules/Dropdowns/DropdownSummary';
|
|
32
|
+
export * from './molecules/Dropdowns/DropdownUser';
|
|
33
|
+
export * from './molecules/Dropdowns/DropdownFilterMultiple';
|
|
34
|
+
export * from './molecules/Dropdowns/DropdownButton';
|
|
35
|
+
export * from './molecules/Dropdowns/DropdownSearchMultiple';
|
|
33
36
|
export * from './molecules/Table';
|
|
34
37
|
export * from './molecules/Table/atoms/CheckBoxTable';
|
|
35
|
-
export * from './molecules/
|
|
36
|
-
export * from './molecules/
|
|
37
|
-
export * from './molecules/
|
|
38
|
-
export * from './molecules/
|
|
39
|
-
export * from './molecules/CardHistory';
|
|
40
|
-
export * from './molecules/Filter/FilterSearchMultiple';
|
|
38
|
+
export * from './molecules/Cards/CardSelect';
|
|
39
|
+
export * from './molecules/Cards/CardSimple';
|
|
40
|
+
export * from './molecules/Cards/CardHistory';
|
|
41
|
+
export * from './molecules/Dropdowns/DropdownSearchMultiple';
|
|
41
42
|
export * from './organisms/Navigation';
|
|
42
43
|
export * from './templates/Main';
|
|
43
44
|
export * from './templates/Shipment';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IChildren } from '../../../../types';
|
|
3
|
+
import { IBadge } from '../../..';
|
|
4
|
+
interface IDropdownCardHistory extends IChildren {
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
title?: JSX.Element | string;
|
|
7
|
+
description?: JSX.Element | string;
|
|
8
|
+
}
|
|
9
|
+
interface ICardHistory extends IChildren {
|
|
10
|
+
description?: JSX.Element | string;
|
|
11
|
+
date?: JSX.Element | string;
|
|
12
|
+
hour?: JSX.Element | string;
|
|
13
|
+
badge?: Omit<IBadge, 'children'> & {
|
|
14
|
+
title?: string | JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
size?: 'sm' | 'md';
|
|
17
|
+
state?: 'active' | 'default';
|
|
18
|
+
variant?: 'default' | 'critical';
|
|
19
|
+
dropdown?: IDropdownCardHistory;
|
|
20
|
+
dimension?: 'sm' | 'md' | 'lg' | 'xl';
|
|
21
|
+
}
|
|
22
|
+
export type { ICardHistory, IDropdownCardHistory };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IPropsCardSelect } from './
|
|
2
|
+
import { IPropsCardSelect } from './ICardSelect';
|
|
3
3
|
/**
|
|
4
|
-
* Molecule: CardSelect
|
|
5
4
|
* Use radio cards in items where users must make a single selection, and need of a visual element or more than one text to be explained.
|
|
6
5
|
*/
|
|
7
6
|
declare function CardSelect({ items, checkedItem, onChange }: IPropsCardSelect): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IPluginEspecialDates } from '../IDateInputPicker';
|
|
3
|
-
declare function MyPlugin({ functionCumpustonPlugin, initialValue }: IPluginEspecialDates): JSX.Element;
|
|
3
|
+
declare function MyPlugin({ functionCumpustonPlugin, initialValue, isMobile }: IPluginEspecialDates): JSX.Element;
|
|
4
4
|
export default MyPlugin;
|
|
@@ -37,6 +37,8 @@ interface ICustomRangeInput {
|
|
|
37
37
|
interface IPluginEspecialDates {
|
|
38
38
|
functionCumpustonPlugin: (value: string | null, setValuesInput: Array<string> | Array<DateObject> | null) => void;
|
|
39
39
|
initialValue: string | null;
|
|
40
|
+
position?: string;
|
|
41
|
+
isMobile?: boolean;
|
|
40
42
|
}
|
|
41
43
|
interface IItemSpecialDates {
|
|
42
44
|
name: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IPropsDropdown } from './
|
|
3
|
-
import { IClassName } from '../../../types';
|
|
2
|
+
import { IPropsDropdown } from './IDropdownSummary';
|
|
4
3
|
/**
|
|
5
|
-
* Molecule: Dropdown
|
|
6
4
|
* Page actions let merchants take key actions at the bottom of specific pages in the interface. This is important because sometimes the primary call to action is hard to access when merchants are at the bottom of a page, that’s why this component is fixed.
|
|
7
5
|
*/
|
|
8
|
-
declare function
|
|
9
|
-
export default
|
|
6
|
+
declare function DropdownSummary({ title, subtitle, defaultOpen, isDisabled, content, className, children }: IPropsDropdown): JSX.Element;
|
|
7
|
+
export default DropdownSummary;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IChildren } from '
|
|
2
|
+
import { IChildren, IClassName } from '../../../../types';
|
|
3
3
|
declare type IElement = string | JSX.Element;
|
|
4
4
|
declare type IContent = {
|
|
5
5
|
label: IElement;
|
|
6
6
|
value: IElement;
|
|
7
7
|
};
|
|
8
|
-
interface IPropsDropdown extends IChildren {
|
|
8
|
+
interface IPropsDropdown extends IChildren, IClassName {
|
|
9
9
|
title?: IElement;
|
|
10
10
|
subtitle?: IElement[];
|
|
11
11
|
content?: IContent[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import type { IField } from './IField';
|
|
3
3
|
/**
|
|
4
4
|
* Molecule: Field
|
|
5
5
|
* A text field is an input field that merchants can type into. It has a range of options and supports several text formats including numbers. The compound fields apply to all the types of field (text, number, password).
|
|
6
6
|
*/
|
|
7
|
-
declare const Field:
|
|
7
|
+
declare const Field: import("react").ForwardRefExoticComponent<IField & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
8
|
export default Field;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { IInlineError } from './IInlineError';
|
|
3
3
|
/**
|
|
4
|
-
* Atom: InlineError
|
|
5
4
|
* Inline errors are brief, in-context messages that tell merchants something went wrong with a single or group of inputs in a form. Use inline errors to help merchants understand why a form input may not be valid and how to fix it.
|
|
6
5
|
*/
|
|
7
6
|
declare function InlineError({ children, size, icon, colorIcon, className, ...props }: IInlineError): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import { GroupBase } from 'react-select'
|
|
3
|
+
import { IOptionSelectButton, ITooltipSelect } from '../..'
|
|
4
|
+
|
|
5
|
+
declare module 'react-select/dist/declarations/src/Select' {
|
|
6
|
+
export interface Props<
|
|
7
|
+
Option,
|
|
8
|
+
IsMulti extends boolean,
|
|
9
|
+
Group extends GroupBase<Option>
|
|
10
|
+
> {
|
|
11
|
+
/**
|
|
12
|
+
* Our prop for control icon tooltip inside component atom Control
|
|
13
|
+
*/
|
|
14
|
+
iconTooltip?: ITooltipSelect
|
|
15
|
+
/**
|
|
16
|
+
* Our prop for control click first element - SelectButton
|
|
17
|
+
*/
|
|
18
|
+
addButton?: ((value: IOptionSelectButton) => void) | undefined
|
|
19
|
+
/**
|
|
20
|
+
* Our prop for verify inside atom SingleValue show ui
|
|
21
|
+
*/
|
|
22
|
+
hasLabelPlaceholder?: boolean
|
|
23
|
+
/**
|
|
24
|
+
* Our prop for verify dropdown indicator - default true
|
|
25
|
+
*/
|
|
26
|
+
isActiveDropdownIndicator?: boolean
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -3,14 +3,14 @@ import { ITemplate } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Molecule: Summary
|
|
5
5
|
*/
|
|
6
|
-
declare function Summary({ children, title, className, classNameTitle,
|
|
6
|
+
declare function Summary({ children, title, className, classNameTitle, ...rest }: ITemplate & {
|
|
7
7
|
title?: string;
|
|
8
8
|
classNameTitle?: string;
|
|
9
9
|
}): JSX.Element;
|
|
10
10
|
declare namespace Summary {
|
|
11
11
|
var Container: ({ children, className, ...rest }: ITemplate) => JSX.Element;
|
|
12
12
|
var Header: ({ children, className, ...rest }: ITemplate) => JSX.Element;
|
|
13
|
-
var Footer: ({
|
|
13
|
+
var Footer: ({ className, total, renderImg, isDisabled, ...rest }: ITemplate & {
|
|
14
14
|
total?: string | undefined;
|
|
15
15
|
isDisabled?: boolean | undefined;
|
|
16
16
|
renderImg?: JSX.Element | undefined;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
-
import { IOptionDropdownButton } from '../DropdownButton/IDropdownButton';
|
|
3
|
+
import { IOptionDropdownButton } from '../Dropdowns/DropdownButton/IDropdownButton';
|
|
4
4
|
import type { ISortItem, IPagination, ISortTable } from './atoms';
|
|
5
|
+
declare type IEmptyState = {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
img: 'box' | 'padlock';
|
|
9
|
+
children: JSX.Element;
|
|
10
|
+
};
|
|
5
11
|
interface IPropsTable<T> {
|
|
6
12
|
defaultData: Array<T>;
|
|
7
13
|
columns: Array<ColumnDef<any, any>>;
|
|
@@ -22,12 +28,11 @@ interface IPropsTable<T> {
|
|
|
22
28
|
classNameContainerTable?: string;
|
|
23
29
|
classNameContainer?: string;
|
|
24
30
|
emptyDataTable?: IEmptyState;
|
|
25
|
-
valueRow?: (value:
|
|
31
|
+
valueRow?: (value: object) => void;
|
|
32
|
+
totalRows?: {
|
|
33
|
+
id: string;
|
|
34
|
+
text: string;
|
|
35
|
+
}[];
|
|
36
|
+
isLoading?: boolean;
|
|
26
37
|
}
|
|
27
|
-
declare type IEmptyState = {
|
|
28
|
-
title: string;
|
|
29
|
-
description: string;
|
|
30
|
-
img: 'box' | 'padlock';
|
|
31
|
-
children: JSX.Element;
|
|
32
|
-
};
|
|
33
38
|
export type { IPropsTable, ColumnDef, ISortItem, IPagination, ISortTable, IEmptyState };
|
|
@@ -6,5 +6,5 @@ import { IPropsTable } from './ITable';
|
|
|
6
6
|
* part of data set, a data table lets merchants view details from the entire set. This helps merchants compare and
|
|
7
7
|
* analyze the data.
|
|
8
8
|
*/
|
|
9
|
-
declare function Table<T>({ searchFilter, defaultData, columns, placeholder, hasPagination, paginationOptionList, sortTable, sortItem, rowItemSelected, optionDropdown, stateEmpty, titleSortTable, classNameContainer, classNameContainerTable, classNameTable, emptyDataTable, valueRow }: IPropsTable<T>): JSX.Element;
|
|
9
|
+
declare function Table<T>({ searchFilter, defaultData, columns, placeholder, hasPagination, paginationOptionList, sortTable, sortItem, rowItemSelected, optionDropdown, stateEmpty, titleSortTable, classNameContainer, classNameContainerTable, classNameTable, emptyDataTable, valueRow, totalRows, isLoading }: IPropsTable<T>): JSX.Element;
|
|
10
10
|
export default Table;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RowData, Table } from '@tanstack/react-table';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
interface IPagination<T extends RowData> {
|
|
4
|
+
pageIndex: number;
|
|
5
|
+
getPageCount: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
setPageSize: (value: number) => void;
|
|
8
|
+
getCanPreviousPage: boolean;
|
|
9
|
+
getCanNextPage: boolean;
|
|
10
|
+
paginationOptionList?: Array<number>;
|
|
11
|
+
table: Table<T>;
|
|
12
|
+
actualPage: number;
|
|
13
|
+
setActualPage: Dispatch<SetStateAction<number>>;
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type { IPagination };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RowData } from '@tanstack/react-table';
|
|
3
|
+
import type { IPagination } from './IPagination';
|
|
4
|
+
declare function Pagination<T extends RowData>({ pageIndex, getPageCount, pageSize, setPageSize, getCanPreviousPage, getCanNextPage, paginationOptionList, table, actualPage, setActualPage, isMobile }: IPagination<T>): JSX.Element;
|
|
5
|
+
export default Pagination;
|