@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.
Files changed (194) hide show
  1. package/README.md +83 -126
  2. package/dist/hooks/useTokens.d.ts +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.d.ts +45 -43
  5. package/dist/reset.css +273 -273
  6. package/dist/tailwind.config.js +242 -242
  7. package/dist/tailwind.css +1 -1
  8. package/dist/tokens.css +160 -160
  9. package/dist/{components → ui}/atoms/Avatar/Avatar.d.ts +1 -2
  10. package/dist/{components → ui}/atoms/Badge/Badge.d.ts +1 -2
  11. package/dist/{components → ui}/atoms/Badge/IBadge.d.ts +2 -6
  12. package/dist/ui/atoms/Button/Button.d.ts +7 -0
  13. package/dist/ui/atoms/Checkbox/Checkbox.d.ts +7 -0
  14. package/dist/{components → ui}/atoms/Icon/Svg.d.ts +1 -1
  15. package/dist/{components → ui}/atoms/Logo/ILogo.d.ts +1 -1
  16. package/dist/{components → ui}/atoms/Logo/Logo.d.ts +1 -1
  17. package/dist/ui/atoms/Radio/Radio.d.ts +7 -0
  18. package/dist/ui/atoms/Radio/index.d.ts +2 -0
  19. package/dist/{components → ui}/atoms/Spinner/Spinner.d.ts +0 -1
  20. package/dist/{components → ui}/atoms/Switch/Switch.d.ts +0 -1
  21. package/dist/{components → ui}/atoms/Tooltip/Tooltip.d.ts +1 -2
  22. package/dist/{components → ui}/atoms/Tracker/Tracker.d.ts +0 -1
  23. package/dist/{components → ui}/atoms/Typography/Heading/Heading.d.ts +0 -1
  24. package/dist/{components → ui}/atoms/Typography/Link/ILink.d.ts +5 -1
  25. package/dist/{components → ui}/atoms/Typography/Link/Link.d.ts +1 -2
  26. package/dist/{components → ui}/atoms/Typography/Text/Text.d.ts +1 -2
  27. package/dist/ui/atoms/Typography/Text/TextRef.d.ts +4 -0
  28. package/dist/{components → ui}/index.d.ts +11 -10
  29. package/dist/ui/molecules/Cards/CardHistory/CardHistory.d.ts +4 -0
  30. package/dist/ui/molecules/Cards/CardHistory/ICardHistory.d.ts +22 -0
  31. package/dist/{components/molecules/Card/Select/Select.d.ts → ui/molecules/Cards/CardSelect/CardSelect.d.ts} +1 -2
  32. package/dist/ui/molecules/Cards/CardSelect/index.d.ts +2 -0
  33. package/dist/{components/molecules/Card/Simple → ui/molecules/Cards/CardSimple}/ICardSimple.d.ts +1 -1
  34. package/dist/ui/molecules/Cards/CardSimple/index.d.ts +2 -0
  35. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/PluginEspecialDates.d.ts +1 -1
  36. package/dist/{components → ui}/molecules/DateInputPicker/Datelocate.d.ts +1 -1
  37. package/dist/{components → ui}/molecules/DateInputPicker/IDateInputPicker.d.ts +2 -0
  38. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/IDropdownFilterMultiple.d.ts +1 -1
  39. package/dist/ui/molecules/Dropdowns/DropdownSearchMultiple/DropdownSearchMultiple.d.ts +3 -0
  40. package/dist/{components/molecules/Filter/FilterSearchMultiple/IFilterSearchMultiple.d.ts → ui/molecules/Dropdowns/DropdownSearchMultiple/IDropdownSearchMultiple.d.ts} +1 -1
  41. package/dist/ui/molecules/Dropdowns/DropdownSearchMultiple/index.d.ts +2 -0
  42. package/dist/{components/molecules/Dropdown/Dropdown.d.ts → ui/molecules/Dropdowns/DropdownSummary/DropdownSummary.d.ts} +3 -5
  43. package/dist/{components/molecules/Dropdown/IDropdown.d.ts → ui/molecules/Dropdowns/DropdownSummary/IDropdownSummary.d.ts} +2 -2
  44. package/dist/ui/molecules/Dropdowns/DropdownSummary/index.d.ts +2 -0
  45. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/IDropdownUser.d.ts +1 -1
  46. package/dist/{components → ui}/molecules/Field/Field.d.ts +2 -2
  47. package/dist/{components → ui}/molecules/InlineError/InlineError.d.ts +0 -1
  48. package/dist/ui/molecules/Selectable/select.d.ts +28 -0
  49. package/dist/{components → ui}/molecules/Summary/Summary.d.ts +2 -2
  50. package/dist/{components → ui}/molecules/Tab/Tab.d.ts +0 -1
  51. package/dist/{components → ui}/molecules/Table/ITable.d.ts +13 -8
  52. package/dist/{components → ui}/molecules/Table/Table.d.ts +1 -1
  53. package/dist/ui/molecules/Table/atoms/IPagination.d.ts +16 -0
  54. package/dist/ui/molecules/Table/atoms/Pagination.d.ts +5 -0
  55. package/dist/ui-react.mjs +20729 -21396
  56. package/dist/ui-react.umd.js +121 -108
  57. package/dist/vite-env.d.ts +2 -2
  58. package/package.json +154 -111
  59. package/dist/components/atoms/Button/Button.d.ts +0 -8
  60. package/dist/components/atoms/Checkbox/Checkbox.d.ts +0 -8
  61. package/dist/components/atoms/RadioButton/RadioButton.d.ts +0 -8
  62. package/dist/components/atoms/RadioButton/index.d.ts +0 -2
  63. package/dist/components/atoms/Typography/Text/TextRef.d.ts +0 -4
  64. package/dist/components/molecules/Card/Select/index.d.ts +0 -2
  65. package/dist/components/molecules/Card/Simple/index.d.ts +0 -2
  66. package/dist/components/molecules/CardHistory/CardHistory.d.ts +0 -4
  67. package/dist/components/molecules/CardHistory/ICardHistory.d.ts +0 -20
  68. package/dist/components/molecules/Dropdown/index.d.ts +0 -2
  69. package/dist/components/molecules/Filter/FilterSearchMultiple/FilterSearchMultiple.d.ts +0 -3
  70. package/dist/components/molecules/Filter/FilterSearchMultiple/index.d.ts +0 -2
  71. package/dist/components/molecules/Table/atoms/IPagination.d.ts +0 -12
  72. package/dist/components/molecules/Table/atoms/Pagination.d.ts +0 -4
  73. package/dist/{components → ui}/atoms/Avatar/IAvatar.d.ts +0 -0
  74. package/dist/{components → ui}/atoms/Avatar/index.d.ts +0 -0
  75. package/dist/{components → ui}/atoms/Badge/index.d.ts +0 -0
  76. package/dist/{components → ui}/atoms/Button/IButton.d.ts +0 -0
  77. package/dist/{components → ui}/atoms/Button/index.d.ts +0 -0
  78. package/dist/{components → ui}/atoms/Button/useCSS.d.ts +0 -0
  79. package/dist/{components → ui}/atoms/Checkbox/ICheckbox.d.ts +0 -0
  80. package/dist/{components → ui}/atoms/Checkbox/index.d.ts +0 -0
  81. package/dist/{components → ui}/atoms/Icon/IIcon.d.ts +0 -0
  82. package/dist/{components → ui}/atoms/Icon/Icon.d.ts +0 -0
  83. package/dist/{components → ui}/atoms/Icon/index.d.ts +0 -0
  84. package/dist/{components → ui}/atoms/Logo/index.d.ts +0 -0
  85. package/dist/{components/atoms/RadioButton/IRadioButton.d.ts → ui/atoms/Radio/IRadio.d.ts} +0 -0
  86. package/dist/{components → ui}/atoms/Spinner/ISpinner.d.ts +0 -0
  87. package/dist/{components → ui}/atoms/Spinner/index.d.ts +0 -0
  88. package/dist/{components → ui}/atoms/Switch/ISwitch.d.ts +0 -0
  89. package/dist/{components → ui}/atoms/Switch/index.d.ts +0 -0
  90. package/dist/{components → ui}/atoms/Tooltip/ITooltip.d.ts +0 -0
  91. package/dist/{components → ui}/atoms/Tooltip/TooltipAnchor.d.ts +0 -0
  92. package/dist/{components → ui}/atoms/Tooltip/TooltipFloat.d.ts +0 -0
  93. package/dist/{components → ui}/atoms/Tooltip/index.d.ts +0 -0
  94. package/dist/{components → ui}/atoms/Tracker/ITracker.d.ts +0 -0
  95. package/dist/{components → ui}/atoms/Tracker/index.d.ts +0 -0
  96. package/dist/{components → ui}/atoms/Typography/Heading/IHeading.d.ts +0 -0
  97. package/dist/{components → ui}/atoms/Typography/Heading/index.d.ts +0 -0
  98. package/dist/{components → ui}/atoms/Typography/Heading/useCSS.d.ts +0 -0
  99. package/dist/{components → ui}/atoms/Typography/Link/index.d.ts +0 -0
  100. package/dist/{components → ui}/atoms/Typography/Text/IText.d.ts +0 -0
  101. package/dist/{components → ui}/atoms/Typography/Text/index.d.ts +0 -0
  102. package/dist/{components → ui}/atoms/Typography/Text/useCSS.d.ts +0 -0
  103. package/dist/{components → ui}/atoms/Typography/Text/useText.d.ts +0 -0
  104. package/dist/{components/molecules → ui/molecules/Cards}/CardHistory/index.d.ts +0 -0
  105. package/dist/{components/molecules/Card/Select/ISelect.d.ts → ui/molecules/Cards/CardSelect/ICardSelect.d.ts} +0 -0
  106. package/dist/{components/molecules/Card/Simple/Simple.d.ts → ui/molecules/Cards/CardSimple/CardSimple.d.ts} +0 -0
  107. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomButton.d.ts +0 -0
  108. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomInput.d.ts +0 -0
  109. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomRangeInput.d.ts +0 -0
  110. package/dist/{components → ui}/molecules/DateInputPicker/DateInputPicker.d.ts +0 -0
  111. package/dist/{components → ui}/molecules/DateInputPicker/index.d.ts +0 -0
  112. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/DropdownButton.d.ts +0 -0
  113. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/IDropdownButton.d.ts +4 -4
  114. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/index.d.ts +0 -0
  115. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/useCss.d.ts +0 -0
  116. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/DropdownFilterMultiple.d.ts +0 -0
  117. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/index.d.ts +0 -0
  118. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/DropdownUser.d.ts +0 -0
  119. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/index.d.ts +0 -0
  120. package/dist/{components → ui}/molecules/EmptyState/BoxSvg.d.ts +0 -0
  121. package/dist/{components → ui}/molecules/EmptyState/EmptyState.d.ts +0 -0
  122. package/dist/{components → ui}/molecules/EmptyState/IEmptyState.d.ts +0 -0
  123. package/dist/{components → ui}/molecules/EmptyState/PadlockSvg.d.ts +0 -0
  124. package/dist/{components → ui}/molecules/EmptyState/index.d.ts +0 -0
  125. package/dist/{components → ui}/molecules/Field/Container.d.ts +0 -0
  126. package/dist/{components → ui}/molecules/Field/Footer.d.ts +0 -0
  127. package/dist/{components → ui}/molecules/Field/IField.d.ts +0 -0
  128. package/dist/{components → ui}/molecules/Field/IFieldCustom.d.ts +22 -22
  129. /package/dist/{components → ui}/molecules/Field/index.d.ts +0 -0
  130. /package/dist/{components → ui}/molecules/Field/useField.d.ts +0 -0
  131. /package/dist/{components → ui}/molecules/Flag/Flag.d.ts +0 -0
  132. /package/dist/{components → ui}/molecules/Flag/IFlag.d.ts +0 -0
  133. /package/dist/{components → ui}/molecules/Flag/index.d.ts +0 -0
  134. /package/dist/{components → ui}/molecules/Header/Header.d.ts +0 -0
  135. /package/dist/{components → ui}/molecules/Header/IHeader.d.ts +0 -0
  136. /package/dist/{components → ui}/molecules/Header/NavigationMovil.d.ts +0 -0
  137. /package/dist/{components → ui}/molecules/Header/index.d.ts +0 -0
  138. /package/dist/{components → ui}/molecules/Indicator/Graphic/Graphic.d.ts +0 -0
  139. /package/dist/{components → ui}/molecules/Indicator/Graphic/IGraphic.d.ts +0 -0
  140. /package/dist/{components → ui}/molecules/Indicator/Graphic/index.d.ts +0 -0
  141. /package/dist/{components → ui}/molecules/InlineError/IInlineError.d.ts +0 -0
  142. /package/dist/{components → ui}/molecules/InlineError/index.d.ts +0 -0
  143. /package/dist/{components → ui}/molecules/Modal/IModal.d.ts +0 -0
  144. /package/dist/{components → ui}/molecules/Modal/Modal.d.ts +0 -0
  145. /package/dist/{components → ui}/molecules/Modal/index.d.ts +0 -0
  146. /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/AsyncCreatableSelect.d.ts +0 -0
  147. /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/IAsyncCreatableSelect.d.ts +0 -0
  148. /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/index.d.ts +0 -0
  149. /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/AsyncSelect.d.ts +0 -0
  150. /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +0 -0
  151. /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/index.d.ts +0 -0
  152. /package/dist/{components → ui}/molecules/Selectable/Select/ISelect.d.ts +0 -0
  153. /package/dist/{components → ui}/molecules/Selectable/Select/Select.d.ts +0 -0
  154. /package/dist/{components → ui}/molecules/Selectable/Select/index.d.ts +0 -0
  155. /package/dist/{components → ui}/molecules/Selectable/SelectButton/ISelectButton.d.ts +0 -0
  156. /package/dist/{components → ui}/molecules/Selectable/SelectButton/Option.d.ts +0 -0
  157. /package/dist/{components → ui}/molecules/Selectable/SelectButton/SelectButton.d.ts +0 -0
  158. /package/dist/{components → ui}/molecules/Selectable/SelectButton/index.d.ts +0 -0
  159. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/Option.d.ts +0 -0
  160. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/Prefix.d.ts +0 -0
  161. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/SelectCountry.d.ts +0 -0
  162. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/SingleValue.d.ts +0 -0
  163. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/index.d.ts +0 -0
  164. /package/dist/{components → ui}/molecules/Selectable/atoms/ClearIndicator.d.ts +0 -0
  165. /package/dist/{components → ui}/molecules/Selectable/atoms/Container.d.ts +0 -0
  166. /package/dist/{components → ui}/molecules/Selectable/atoms/Control.d.ts +0 -0
  167. /package/dist/{components → ui}/molecules/Selectable/atoms/DropdownIndicator.d.ts +0 -0
  168. /package/dist/{components → ui}/molecules/Selectable/atoms/Option.d.ts +0 -0
  169. /package/dist/{components → ui}/molecules/Selectable/atoms/Placeholder.d.ts +0 -0
  170. /package/dist/{components → ui}/molecules/Selectable/atoms/SingleValue.d.ts +0 -0
  171. /package/dist/{components → ui}/molecules/Selectable/atoms/index.d.ts +0 -0
  172. /package/dist/{components → ui}/molecules/Selectable/hooks/index.d.ts +0 -0
  173. /package/dist/{components → ui}/molecules/Selectable/hooks/useCSS.d.ts +0 -0
  174. /package/dist/{components → ui}/molecules/Summary/index.d.ts +0 -0
  175. /package/dist/{components → ui}/molecules/Tab/ITab.d.ts +0 -0
  176. /package/dist/{components → ui}/molecules/Tab/index.d.ts +0 -0
  177. /package/dist/{components → ui}/molecules/TabNav/ITabNav.d.ts +0 -0
  178. /package/dist/{components → ui}/molecules/TabNav/TabNav.d.ts +0 -0
  179. /package/dist/{components → ui}/molecules/TabNav/index.d.ts +0 -0
  180. /package/dist/{components → ui}/molecules/Table/atoms/CheckBoxTable.d.ts +0 -0
  181. /package/dist/{components → ui}/molecules/Table/atoms/ISortTable.d.ts +0 -0
  182. /package/dist/{components → ui}/molecules/Table/atoms/InputSearch.d.ts +0 -0
  183. /package/dist/{components → ui}/molecules/Table/atoms/SortTable.d.ts +0 -0
  184. /package/dist/{components → ui}/molecules/Table/atoms/index.d.ts +0 -0
  185. /package/dist/{components → ui}/molecules/Table/index.d.ts +0 -0
  186. /package/dist/{components → ui}/organisms/Navigation/INavigation.d.ts +0 -0
  187. /package/dist/{components → ui}/organisms/Navigation/Navigation.d.ts +0 -0
  188. /package/dist/{components → ui}/organisms/Navigation/index.d.ts +0 -0
  189. /package/dist/{components → ui}/templates/Main/Main.d.ts +0 -0
  190. /package/dist/{components → ui}/templates/Main/index.d.ts +0 -0
  191. /package/dist/{components → ui}/templates/SecondMain/SecondMain.d.ts +0 -0
  192. /package/dist/{components → ui}/templates/SecondMain/index.d.ts +0 -0
  193. /package/dist/{components → ui}/templates/Shipment/Shipment.d.ts +0 -0
  194. /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
- * Atom: Tooltip
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,7 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { IHeading } from './IHeading';
3
3
  /**
4
- * Atoms: Heading
5
4
  * You can select the semantic html tag you need. h1, h2, h3, h4, h5, h6.
6
5
  * Default h2
7
6
  */
@@ -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;
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { IText } from './IText';
3
3
  /**
4
- * Atom: Text
5
- * Paragraphs. Tags availables p, span.
4
+ * Paragraphs. Tags availables p, span, label.
6
5
  * Default p
7
6
  */
8
7
  declare function Text(props: IText): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { IText } from './IText';
3
+ declare const Text: import("react").ForwardRefExoticComponent<Pick<IText, keyof IText> & import("react").RefAttributes<any>>;
4
+ export default Text;
@@ -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/RadioButton';
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/DropdownUser';
32
- export * from './molecules/DropdownFilterMultiple';
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/DropdownButton';
36
- export * from './molecules/DateInputPicker';
37
- export * from './molecules/Card/Select';
38
- export * from './molecules/Card/Simple';
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,4 @@
1
+ /// <reference types="react" />
2
+ import { ICardHistory } from './ICardHistory';
3
+ declare function CardHistory({ description, date, dimension, hour, badge, state, size, variant, dropdown, children }: ICardHistory): JSX.Element;
4
+ export default CardHistory;
@@ -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 './ISelect';
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;
@@ -0,0 +1,2 @@
1
+ export { default as CardSelect } from './CardSelect';
2
+ export * from './ICardSelect';
@@ -1,4 +1,4 @@
1
- import { IChildren } from '@/types';
1
+ import { IChildren } from '../../../../types';
2
2
  interface IButtonCardSimple {
3
3
  title?: string;
4
4
  action?: () => void;
@@ -0,0 +1,2 @@
1
+ export { default as CardSimple } from './CardSimple';
2
+ export * from './ICardSimple';
@@ -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;
@@ -1,4 +1,4 @@
1
- export declare const gregorian_es: {
1
+ export declare const gregorianEs: {
2
2
  name: string;
3
3
  months: string[][];
4
4
  weekDays: string[][];
@@ -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,4 +1,4 @@
1
- import { IKind, ISize } from '../..';
1
+ import { IKind, ISize } from '../../..';
2
2
  declare type IDropdownFilterMultipleOptionSelected = {
3
3
  label: string;
4
4
  id: number;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { IDropdownSearchMultiple } from './IDropdownSearchMultiple';
3
+ export default function DropdownSearchMultiple({ options, title, titleNotFound, onSelected, placement, placeholderSearch }: IDropdownSearchMultiple): JSX.Element;
@@ -2,7 +2,7 @@ export declare type IOptionSelect = {
2
2
  label: string;
3
3
  value: string | number;
4
4
  };
5
- export interface IFilterSearchMultiple {
5
+ export interface IDropdownSearchMultiple {
6
6
  title: string;
7
7
  titleNotFound?: string;
8
8
  options?: IOptionSelect[] | [];
@@ -0,0 +1,2 @@
1
+ export { default as DropdownSearchMultiple } from './DropdownSearchMultiple';
2
+ export * from './IDropdownSearchMultiple';
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IPropsDropdown } from './IDropdown';
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 Dropdown({ title, subtitle, defaultOpen, isDisabled, content, className, children }: IPropsDropdown & IClassName): JSX.Element;
9
- export default Dropdown;
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 '../../../types';
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[];
@@ -0,0 +1,2 @@
1
+ export { default as DropdownSummary } from './DropdownSummary';
2
+ export * from './IDropdownSummary';
@@ -1,4 +1,4 @@
1
- import { ISizeAvatar } from '../../atoms/Avatar';
1
+ import { ISizeAvatar } from '../../../atoms/Avatar';
2
2
  declare type ItemDropdownUser = {
3
3
  title: string;
4
4
  onClick: () => void;
@@ -1,8 +1,8 @@
1
- import React from 'react';
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: React.ForwardRefExoticComponent<IField & React.RefAttributes<HTMLInputElement>>;
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, footer, ...rest }: ITemplate & {
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: ({ children, className, total, renderImg, isDisabled, ...rest }: ITemplate & {
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,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ITabs } from './ITab';
3
3
  /**
4
- * Molecule: Tab
5
4
  * Use to alternate among related views within the same context.
6
5
  */
7
6
  declare function Tab({ tabs, variant }: ITabs): JSX.Element;
@@ -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: any) => void;
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;