@aveonline/ui-react 1.0.4 → 1.1.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 (77) hide show
  1. package/README.md +1 -1
  2. package/dist/components/atoms/Avatar/index.d.ts +1 -0
  3. package/dist/components/atoms/Badge/index.d.ts +1 -0
  4. package/dist/components/atoms/Button/Button.d.ts +3 -3
  5. package/dist/components/atoms/Button/IButton.d.ts +4 -0
  6. package/dist/components/atoms/Logo/ILogo.d.ts +10 -0
  7. package/dist/components/atoms/Logo/Logo.d.ts +7 -0
  8. package/dist/components/atoms/Logo/index.d.ts +2 -0
  9. package/dist/components/atoms/Logo/logos/Brand.d.ts +2 -0
  10. package/dist/components/atoms/Logo/logos/BrandSm.d.ts +2 -0
  11. package/dist/components/atoms/Logo/logos/BrandWhite.d.ts +2 -0
  12. package/dist/components/atoms/Logo/logos/BrandWhiteSm.d.ts +2 -0
  13. package/dist/components/atoms/Logo/logos/BrandWhiteXs.d.ts +2 -0
  14. package/dist/components/atoms/Logo/logos/BrandXs.d.ts +2 -0
  15. package/dist/components/atoms/Logo/logos/Coordinadora.d.ts +2 -0
  16. package/dist/components/atoms/Logo/logos/Deprisa.d.ts +2 -0
  17. package/dist/components/atoms/Logo/logos/Dhl.d.ts +2 -0
  18. package/dist/components/atoms/Logo/logos/Domina.d.ts +2 -0
  19. package/dist/components/atoms/Logo/logos/Envia.d.ts +2 -0
  20. package/dist/components/atoms/Logo/logos/Fedex.d.ts +2 -0
  21. package/dist/components/atoms/Logo/logos/Interrapidisimo.d.ts +2 -0
  22. package/dist/components/atoms/Logo/logos/Maps.d.ts +2 -0
  23. package/dist/components/atoms/Logo/logos/Moova.d.ts +2 -0
  24. package/dist/components/atoms/Logo/logos/Mu.d.ts +2 -0
  25. package/dist/components/atoms/Logo/logos/Saferbo.d.ts +2 -0
  26. package/dist/components/atoms/Logo/logos/Servientrega.d.ts +2 -0
  27. package/dist/components/atoms/Logo/logos/Tcc.d.ts +2 -0
  28. package/dist/components/atoms/Logo/logos/TurboBoy.d.ts +2 -0
  29. package/dist/components/atoms/Logo/logos/index.d.ts +20 -0
  30. package/dist/components/atoms/Logo/useLogo.d.ts +3 -0
  31. package/dist/components/atoms/RadioButton/index.d.ts +1 -0
  32. package/dist/components/atoms/Switch/index.d.ts +1 -0
  33. package/dist/components/atoms/Tooltip/TooltipAnchor.d.ts +1 -1
  34. package/dist/components/atoms/Tooltip/TooltipFloat.d.ts +1 -1
  35. package/dist/components/atoms/Tracker/index.d.ts +1 -0
  36. package/dist/components/index.d.ts +1 -0
  37. package/dist/components/molecules/Card/Select/index.d.ts +1 -0
  38. package/dist/components/molecules/Dropdown/index.d.ts +1 -0
  39. package/dist/components/molecules/EmptyState/index.d.ts +1 -0
  40. package/dist/components/molecules/Field/Container.d.ts +6 -7
  41. package/dist/components/molecules/Field/Field.d.ts +1 -1
  42. package/dist/components/molecules/Field/Footer.d.ts +1 -1
  43. package/dist/components/molecules/Field/IField.d.ts +8 -0
  44. package/dist/components/molecules/Field/index.d.ts +1 -0
  45. package/dist/components/molecules/Field/useField.d.ts +1 -2
  46. package/dist/components/molecules/Header/index.d.ts +1 -0
  47. package/dist/components/molecules/InlineError/index.d.ts +1 -0
  48. package/dist/components/molecules/Modal/IModal.d.ts +2 -2
  49. package/dist/components/molecules/Modal/Modal.d.ts +1 -1
  50. package/dist/components/molecules/Modal/index.d.ts +1 -0
  51. package/dist/components/molecules/Selectable/AsyncSelect/AsyncSelect.d.ts +1 -1
  52. package/dist/components/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +6 -1
  53. package/dist/components/molecules/Selectable/AsyncSelect/index.d.ts +1 -0
  54. package/dist/components/molecules/Selectable/SelectButton/ISelectButton.d.ts +6 -7
  55. package/dist/components/molecules/Selectable/SelectButton/index.d.ts +1 -0
  56. package/dist/components/molecules/Tab/ITab.d.ts +1 -1
  57. package/dist/components/molecules/Tab/index.d.ts +1 -1
  58. package/dist/components/molecules/TabNav/index.d.ts +1 -0
  59. package/dist/components/organisms/Navigation/index.d.ts +1 -0
  60. package/dist/img/brand-logo-basic-lg.svg +43 -0
  61. package/dist/img/brand-logo-basic-sm.svg +31 -0
  62. package/dist/img/brand-logo-basic-white-lg.svg +29 -0
  63. package/dist/img/brand-logo-basic-white-sm.svg +17 -0
  64. package/dist/img/brand-logo-basic-white-xs.svg +14 -0
  65. package/dist/img/brand-logo-basic-xs.svg +10 -0
  66. package/dist/index.d.ts +28 -2
  67. package/dist/tailwind.css +1 -1
  68. package/dist/ui-react.mjs +8331 -7386
  69. package/dist/ui-react.umd.js +24 -24
  70. package/package.json +1 -1
  71. package/dist/img/brand-logo-basic.svg +0 -23
  72. package/dist/img/brand-logo-five.svg +0 -54
  73. package/dist/img/brand-logo-four.svg +0 -17
  74. package/dist/img/brand-logo-one.svg +0 -25
  75. package/dist/img/brand-logo-three.svg +0 -25
  76. package/dist/img/brand-logo-two.svg +0 -15
  77. package/dist/img/brand-logo-white.svg +0 -12
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  <img height="100" src="https://user-images.githubusercontent.com/38017835/197309416-fd4390a0-cfb6-41f3-ac26-10d067d92a25.png">
3
3
  <h1 align="center">ui ecosystem react</h1>
4
4
  <p>The home base for Aveonline design system, ui-react provides essential design resources for our developers to use in the Aveonline-branded interfaces that they create.</p>
5
- <a href="https://ui-aveonline.vercel.app/">Go Storybook</a>
5
+ <a href="https://ui-aveonline.netlify.app/">Go Storybook</a>
6
6
  </div>
7
7
 
8
8
  ## Before started
@@ -1 +1,2 @@
1
1
  export { default as Avatar } from './Avatar';
2
+ export * from './IAvatar';
@@ -1 +1,2 @@
1
1
  export { default as Badge } from './Badge';
2
+ export * from './IBadge';
@@ -1,7 +1,7 @@
1
1
  import type { IButton } from './IButton';
2
2
  /**
3
- * Atoms: Button
4
- * Buttons are used primarily for actions, such as 'Add', 'Close', 'Cancel', or 'Save'. Plain buttons, which look similar to links, are used for less important or less commonly used actions, such as 'view shipping settings'.
3
+ * Atom: Button
4
+ * Are used primarily for actions, such as 'Add', 'Close', 'Cancel', or 'Save'. Plain buttons, which look similar to links, are used for less important or less commonly used actions, such as 'view shipping settings'.
5
5
  */
6
- declare function Button({ variant, size, fullWidth, isLoading, isDisabled, align, onlyOneIcon, children, ...allProps }: IButton): JSX.Element;
6
+ declare function Button({ variant, size, fullWidth, isLoading, isDisabled, align, onlyOneIcon, type, children, ...allProps }: IButton): JSX.Element;
7
7
  export default Button;
@@ -3,6 +3,10 @@ export declare type Variant = 'primary' | 'basic' | 'destructive' | 'plain' | 'p
3
3
  declare type Size = 'md' | 'sm';
4
4
  export declare type Align = 'start' | 'center' | 'end';
5
5
  interface IButton {
6
+ /**
7
+ * Button type - default button
8
+ */
9
+ type?: 'button' | 'submit' | 'reset';
6
10
  /**
7
11
  * Is this the principal call to action on the page?
8
12
  */
@@ -0,0 +1,10 @@
1
+ declare type IKindLogo = 'brand-lg' | 'brand-sm' | 'brand-xs' | 'brand-white-lg' | 'brand-white-sm' | 'brand-white-xs' | 'coordinadora' | 'deprisa' | 'dhl' | 'domina' | 'envia' | 'fedex' | 'interrapidisimo' | 'mu' | 'moova' | 'saferbo' | 'servientrega' | 'tcc' | 'turboboy' | 'maps';
2
+ interface ILogo {
3
+ /**
4
+ * Types logos
5
+ */
6
+ kind: IKindLogo;
7
+ }
8
+ declare const KIND_LOGO: Record<IKindLogo, IKindLogo>;
9
+ export type { IKindLogo, ILogo };
10
+ export { KIND_LOGO };
@@ -0,0 +1,7 @@
1
+ import { IClassName } from '@/types';
2
+ import { ILogo } from './ILogo';
3
+ /**
4
+ * Atom: Logo
5
+ */
6
+ declare function Logo({ kind, className }: ILogo & IClassName): JSX.Element;
7
+ export default Logo;
@@ -0,0 +1,2 @@
1
+ export { default as Logo } from './Logo';
2
+ export * from './ILogo';
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Brand({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function BrandSm({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function BrandWhite({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function BrandWhiteSm({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function BrandWhiteXs({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function BrandXs({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Coordinadora({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Deprisa({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Dhl({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Domina({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Envia({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Fedex({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Interrapidisimo({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Maps({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Moova({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Mu({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Saferbo({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Servientrega({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function Tcc({ className }: IClassName): JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { IClassName } from '@/types';
2
+ export default function TurboBoy({ className }: IClassName): JSX.Element;
@@ -0,0 +1,20 @@
1
+ export { default as Brand } from './Brand';
2
+ export { default as BrandSm } from './BrandSm';
3
+ export { default as BrandXs } from './BrandXs';
4
+ export { default as BrandWhite } from './BrandWhite';
5
+ export { default as BrandWhiteSm } from './BrandWhiteSm';
6
+ export { default as BrandWhiteXs } from './BrandWhiteXs';
7
+ export { default as Coordinadora } from './Coordinadora';
8
+ export { default as Deprisa } from './Deprisa';
9
+ export { default as Dhl } from './Dhl';
10
+ export { default as Domina } from './Domina';
11
+ export { default as Envia } from './Envia';
12
+ export { default as Fedex } from './Fedex';
13
+ export { default as Interrapidisimo } from './Interrapidisimo';
14
+ export { default as Mu } from './Mu';
15
+ export { default as Moova } from './Moova';
16
+ export { default as Saferbo } from './Saferbo';
17
+ export { default as Servientrega } from './Servientrega';
18
+ export { default as Tcc } from './Tcc';
19
+ export { default as TurboBoy } from './TurboBoy';
20
+ export { default as Maps } from './Maps';
@@ -0,0 +1,3 @@
1
+ import { IClassName } from '@/types';
2
+ import type { IKindLogo } from './ILogo';
3
+ export declare function useLogo({ className }: IClassName): Map<IKindLogo, JSX.Element>;
@@ -1 +1,2 @@
1
1
  export { default as RadioButton } from './RadioButton';
2
+ export * from './IRadioButton';
@@ -1 +1,2 @@
1
1
  export { default as Switch } from './Switch';
2
+ export * from './ISwitch';
@@ -4,5 +4,5 @@ declare type PropsType = React.HTMLProps<HTMLElement> & {
4
4
  state: TooltipState;
5
5
  asChild?: boolean;
6
6
  };
7
- export declare const TooltipAnchor: React.ForwardRefExoticComponent<Pick<PropsType, "size" | "className" | "color" | "disabled" | "default" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "onClick" | "type" | "as" | "kind" | "download" | "id" | "name" | "value" | "defaultChecked" | "onChange" | "target" | "checked" | "hidden" | "htmlFor" | "role" | "tabIndex" | "aria-checked" | "aria-labelledby" | "aria-describedby" | "onKeyUp" | "onKeyPress" | "key" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "open" | "state" | "asChild" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLElement>>;
7
+ export declare const TooltipAnchor: React.ForwardRefExoticComponent<Pick<PropsType, "size" | "className" | "color" | "disabled" | "default" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "type" | "onClick" | "as" | "kind" | "download" | "id" | "name" | "value" | "defaultChecked" | "onChange" | "target" | "checked" | "hidden" | "htmlFor" | "role" | "tabIndex" | "aria-checked" | "aria-labelledby" | "aria-describedby" | "onKeyUp" | "onKeyPress" | "key" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "open" | "state" | "asChild" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLElement>>;
8
8
  export {};
@@ -4,5 +4,5 @@ import { TooltipState } from './ITooltip';
4
4
  declare type PropsType = React.HTMLProps<HTMLDivElement> & {
5
5
  state: TooltipState;
6
6
  } & IChildren;
7
- export declare const TooltipFloat: React.ForwardRefExoticComponent<Pick<PropsType, "size" | "className" | "color" | "disabled" | "default" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "onClick" | "type" | "as" | "kind" | "download" | "id" | "name" | "value" | "defaultChecked" | "onChange" | "target" | "checked" | "hidden" | "htmlFor" | "role" | "tabIndex" | "aria-checked" | "aria-labelledby" | "aria-describedby" | "onKeyUp" | "onKeyPress" | "key" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "open" | "state" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const TooltipFloat: React.ForwardRefExoticComponent<Pick<PropsType, "size" | "className" | "color" | "disabled" | "default" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "start" | "type" | "onClick" | "as" | "kind" | "download" | "id" | "name" | "value" | "defaultChecked" | "onChange" | "target" | "checked" | "hidden" | "htmlFor" | "role" | "tabIndex" | "aria-checked" | "aria-labelledby" | "aria-describedby" | "onKeyUp" | "onKeyPress" | "key" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "open" | "state" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "width" | "wmode" | "wrap"> & React.RefAttributes<HTMLDivElement>>;
8
8
  export {};
@@ -1 +1,2 @@
1
1
  export { default as Tracker } from './Tracker';
2
+ export * from './ITracker';
@@ -8,6 +8,7 @@ export * from './atoms/Icon';
8
8
  export * from './atoms/Tooltip';
9
9
  export * from './atoms/RadioButton';
10
10
  export * from './atoms/Tracker';
11
+ export * from './atoms/Logo';
11
12
  export * from './molecules/Selectable/Select';
12
13
  export * from './molecules/Selectable/AsyncSelect';
13
14
  export * from './molecules/Selectable/SelectButton';
@@ -1 +1,2 @@
1
1
  export { default as CardSelect } from './Select';
2
+ export * from './ISelect';
@@ -1 +1,2 @@
1
1
  export { default as Dropdown } from './Dropdown';
2
+ export * from './IDropdown';
@@ -1 +1,2 @@
1
1
  export { default as EmptyState } from './EmptyState';
2
+ export * from './IEmptyState';
@@ -1,15 +1,14 @@
1
1
  import { IChildren } from '../../../types';
2
- export declare function Container({ children }: IChildren): JSX.Element;
2
+ export declare function Container({ children, renderIconLeft, renderInput }: IChildren & {
3
+ renderInput?: JSX.Element;
4
+ renderIconLeft?: JSX.Element;
5
+ }): JSX.Element;
3
6
  export declare namespace Container {
4
- var Icon: ({ children, position }: IChildren & {
5
- position: "right" | "left";
6
- }) => JSX.Element;
7
- var Special: ({ children, isNumber, isPassword }: IChildren & {
7
+ var Special: (props: IChildren & {
8
8
  isNumber?: boolean | undefined;
9
9
  isPassword?: boolean | undefined;
10
10
  }) => JSX.Element;
11
- var Delete: ({ children, inputValue, hasIconRight }: IChildren & {
11
+ var Delete: (props: IChildren & {
12
12
  inputValue: string | number | undefined;
13
- hasIconRight: boolean;
14
13
  }) => JSX.Element;
15
14
  }
@@ -3,5 +3,5 @@ import type { IField } from './IField';
3
3
  * Molecule: Field
4
4
  * 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).
5
5
  */
6
- declare function Field({ id, name, isDisabled, isReadOnly, placeholder, autoComplete, type, iconLeft, iconRight, helpText, logo, error, onChange, value, tooltip }: IField): JSX.Element;
6
+ declare function Field({ id, name, isDisabled, isReadOnly, placeholder, autoComplete, type, iconLeft, iconRight, helpText, logo, error, onChange, value, tooltip, showErrorText, isError }: IField): JSX.Element;
7
7
  export default Field;
@@ -1,2 +1,2 @@
1
1
  import { IField } from './IField';
2
- export declare function Footer({ logo, helpText, error }: IField): JSX.Element;
2
+ export declare function Footer({ logo, helpText, error, showErrorText }: IField): JSX.Element;
@@ -33,6 +33,14 @@ export interface IField {
33
33
  * Message error
34
34
  */
35
35
  error?: string;
36
+ /**
37
+ * Active and desactive description error
38
+ */
39
+ showErrorText?: boolean;
40
+ /**
41
+ * Validation boolean for error
42
+ */
43
+ isError?: boolean;
36
44
  /**
37
45
  * Name icon for position left
38
46
  */
@@ -1 +1,2 @@
1
1
  export { default as Field } from './Field';
2
+ export * from './IField';
@@ -1,6 +1,6 @@
1
1
  import type { ChangeEvent } from 'react';
2
2
  import { IField } from './IField';
3
- export declare function useField({ isDisabled, type, iconRight, error, iconLeft, onChange, value }: IField): {
3
+ export declare function useField({ isDisabled, type, iconRight, error, iconLeft, onChange, value, isError }: IField): {
4
4
  inputValue: string | number;
5
5
  inputRef: import("react").RefObject<HTMLInputElement>;
6
6
  handleChange: ({ target: { value } }: ChangeEvent<HTMLInputElement>) => void;
@@ -11,6 +11,5 @@ export declare function useField({ isDisabled, type, iconRight, error, iconLeft,
11
11
  showPassword: boolean;
12
12
  setShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
13
13
  clearInput: () => void;
14
- hasIconRight: boolean;
15
14
  getClassInput: string;
16
15
  };
@@ -1 +1,2 @@
1
1
  export { default as Header } from './Header';
2
+ export * from './IHeader';
@@ -1 +1,2 @@
1
1
  export { default as InlineError } from './InlineError';
2
+ export * from './IInlineError';
@@ -1,5 +1,5 @@
1
- import { IChildren } from '../../../types';
2
- interface IPropsModal extends IChildren {
1
+ import { IChildren, IClassName } from '../../../types';
2
+ interface IPropsModal extends IChildren, IClassName {
3
3
  /**
4
4
  * Crontol open and close modal
5
5
  */
@@ -3,5 +3,5 @@ import type { IPropsModal } from './IModal';
3
3
  * Molecule: Modal
4
4
  * Modals are overlays that require merchants to take an action before they can continue interacting with the rest of Shopify. They can be disruptive and should be used thoughtfully and sparingly.
5
5
  */
6
- declare function Modal({ title, iconTitle, subtitle, footer, isOpen, hasBorder, showClose, onClose, children }: IPropsModal): JSX.Element;
6
+ declare function Modal({ title, iconTitle, subtitle, footer, isOpen, hasBorder, showClose, onClose, className, children }: IPropsModal): JSX.Element;
7
7
  export default Modal;
@@ -1 +1,2 @@
1
1
  export { default as Modal } from './Modal';
2
+ export * from './IModal';
@@ -3,5 +3,5 @@ import type { IAsyncSelect } from './IAsyncSelect';
3
3
  * Molecule: AsyncSelect
4
4
  * Async select lets merchants choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface. Data from network
5
5
  */
6
- declare function AsyncSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, loadOptions, ...props }: IAsyncSelect): JSX.Element;
6
+ declare function AsyncSelect({ placeholder, id, name, error, helpText, hasLabelPlaceholder, isDisabled, isClearable, defaultValue, onChange, isLoading, loadOptions, ...props }: IAsyncSelect): JSX.Element;
7
7
  export default AsyncSelect;
@@ -3,5 +3,10 @@ export interface IAsyncSelect extends Omit<ISelect, 'options'> {
3
3
  /**
4
4
  * Handle change search async
5
5
  */
6
- loadOptions?: (inputValue: string) => Promise<IOption[]> | undefined;
6
+ loadOptions?: (inputValue: string) => Promise<IOption[]> | undefined | void;
7
+ /**
8
+ * Will cause the select to be displayed in the loading state, even if the
9
+ * Async select is not currently waiting for loadOptions to resolve
10
+ */
11
+ isLoading?: boolean;
7
12
  }
@@ -1 +1,2 @@
1
1
  export { default as AsyncSelect } from './AsyncSelect';
2
+ export * from './IAsyncSelect';
@@ -1,19 +1,18 @@
1
1
  import type { ISelect, IOption } from '../Select';
2
2
  import type { IKind } from '../../../atoms/Icon';
3
3
  import type { Align } from '../../../atoms/Button';
4
- export interface IOptionSelectButton extends IOption {
4
+ export interface IOptionSelectButton {
5
5
  notSelect?: boolean;
6
6
  icon?: IKind;
7
- }
8
- export interface IOptionSelectButtonGroup {
9
- label: string;
10
- options: IOption[];
7
+ label?: string | number;
8
+ value?: string | number;
9
+ options?: IOption[];
11
10
  }
12
11
  export interface ISelectButton extends Omit<ISelect, 'options'> {
13
12
  /**
14
- * Array of options that populate the select menu - two structures optionals
13
+ * Array of options that populate the select menu
15
14
  */
16
- options: IOptionSelectButton[] | IOptionSelectButtonGroup[];
15
+ options: IOptionSelectButton[];
17
16
  /**
18
17
  * Handle click for first element, options no selectable, only emit click
19
18
  */
@@ -1 +1,2 @@
1
1
  export { default as SelectButton } from './SelectButton';
2
+ export * from './ISelectButton';
@@ -3,7 +3,7 @@ export interface ITab {
3
3
  isDisabled?: boolean;
4
4
  total?: number;
5
5
  }
6
- export declare type IState = {
6
+ export declare type IStateTab = {
7
7
  selected: boolean;
8
8
  isDisabled: boolean | undefined;
9
9
  };
@@ -1,2 +1,2 @@
1
1
  export { default as Tab } from './Tab';
2
- export * from './Tab';
2
+ export * from './ITab';
@@ -1 +1,2 @@
1
1
  export { default as TabNav } from './TabNav';
2
+ export * from './ITabNav';
@@ -1 +1,2 @@
1
1
  export { default as Navigation } from './Navigation';
2
+ export * from './INavigation';