@mindly/ui-components 3.31.0 → 3.32.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 (30) hide show
  1. package/dist/cjs/index.js +6 -6
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/{lib → deprecated}/button/Button.d.ts +3 -0
  4. package/dist/cjs/types/index.d.ts +3 -1
  5. package/dist/cjs/types/lib/CustomButton/CustomButton.d.ts +9 -0
  6. package/dist/cjs/types/lib/CustomButton/CustomButton.styled.d.ts +9 -0
  7. package/dist/cjs/types/lib/CustomButton/index.d.ts +1 -0
  8. package/dist/cjs/types/lib/Inputs/CustomSelect/CustomSelect.d.ts +3 -4
  9. package/dist/cjs/types/lib/Inputs/CustomTextarea/CustomTextarea.d.ts +3 -4
  10. package/dist/cjs/types/lib/Inputs/ImageInput/ImageInput.d.ts +9 -10
  11. package/dist/cjs/types/lib/Inputs/PasswordInput/PasswordInput.d.ts +3 -1
  12. package/dist/cjs/types/lib/Inputs/TextInput/TextInput.d.ts +3 -4
  13. package/dist/cjs/types/lib/UpdatesCard/UpdatesCard.d.ts +1 -1
  14. package/dist/esm/index.js +6 -6
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/{lib → deprecated}/button/Button.d.ts +3 -0
  17. package/dist/esm/types/index.d.ts +3 -1
  18. package/dist/esm/types/lib/CustomButton/CustomButton.d.ts +9 -0
  19. package/dist/esm/types/lib/CustomButton/CustomButton.styled.d.ts +9 -0
  20. package/dist/esm/types/lib/CustomButton/index.d.ts +1 -0
  21. package/dist/esm/types/lib/Inputs/CustomSelect/CustomSelect.d.ts +3 -4
  22. package/dist/esm/types/lib/Inputs/CustomTextarea/CustomTextarea.d.ts +3 -4
  23. package/dist/esm/types/lib/Inputs/ImageInput/ImageInput.d.ts +9 -10
  24. package/dist/esm/types/lib/Inputs/PasswordInput/PasswordInput.d.ts +3 -1
  25. package/dist/esm/types/lib/Inputs/TextInput/TextInput.d.ts +3 -4
  26. package/dist/esm/types/lib/UpdatesCard/UpdatesCard.d.ts +1 -1
  27. package/dist/index.d.ts +41 -32
  28. package/package.json +1 -1
  29. /package/dist/cjs/types/{lib → deprecated}/button/Button.style.d.ts +0 -0
  30. /package/dist/esm/types/{lib → deprecated}/button/Button.style.d.ts +0 -0
@@ -6,4 +6,7 @@ export interface ButtonProps {
6
6
  onClick?: (props?: React.SyntheticEvent) => void;
7
7
  ['data-testid']?: string;
8
8
  }
9
+ /**
10
+ * @deprecated
11
+ */
9
12
  export declare const Button: React.FC<ButtonProps>;
@@ -1,4 +1,4 @@
1
- import { Button } from './lib/button/Button';
1
+ import { Button } from './deprecated/button/Button';
2
2
  import { FloatingButton } from './lib/floating-button/FloatingButton';
3
3
  import { ListButton } from './lib/list-button/ListButton';
4
4
  import { NavigationBar } from './lib/navigation-bar/NavigationBar';
@@ -143,3 +143,5 @@ export { default as CustomTextarea } from './lib/Inputs/CustomTextarea';
143
143
  export * from './lib/Inputs/CustomTextarea';
144
144
  export { default as CustomSelect } from './lib/Inputs/CustomSelect';
145
145
  export * from './lib/Inputs/CustomSelect';
146
+ export { default as CustomButton } from './lib/CustomButton';
147
+ export * from './lib/CustomButton';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare type PossibleButtonTypes = 'primary';
3
+ declare type ButtonProps = {
4
+ buttonType: PossibleButtonTypes;
5
+ borderRadius?: number;
6
+ loading?: boolean;
7
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>;
8
+ declare const CustomButton: React.FC<ButtonProps>;
9
+ export default CustomButton;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { PossibleButtonTypes } from './CustomButton';
3
+ declare type StyledButtonProps = {
4
+ buttonType?: PossibleButtonTypes;
5
+ borderRadius?: number;
6
+ };
7
+ export declare const StyledButton: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
8
+ export declare const StyledSpinner: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@ionic/core/dist/types/components").JSX.IonSpinner & Pick<import("react").HTMLAttributes<HTMLIonSpinnerElement>, "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-labelledby" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "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" | "onClick" | "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"> & import("@ionic/react/dist/types/components/react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLIonSpinnerElement>>, any, {}, never>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './CustomButton';
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- declare type CustomSelectProps = {
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
3
3
  options: {
4
4
  id: string | number;
5
5
  label: string | number;
6
6
  }[];
7
- isError?: boolean;
8
- } & React.SelectHTMLAttributes<HTMLSelectElement>;
9
- declare const _default: React.NamedExoticComponent<CustomSelectProps>;
7
+ isError?: boolean | undefined;
8
+ } & React.SelectHTMLAttributes<HTMLSelectElement> & React.RefAttributes<HTMLSelectElement>>>;
10
9
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- declare type CustomTextareaProps = {
3
- isError?: boolean;
4
- } & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
5
- declare const _default: React.NamedExoticComponent<CustomTextareaProps>;
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
3
+ isError?: boolean | undefined;
4
+ } & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>>;
6
5
  export default _default;
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
- declare type ImageInputProps = {
3
- dimension?: number;
4
- buttonLabel?: string;
5
- isRoundedImage?: boolean;
6
- isCloseButton?: boolean;
7
- onCloseClick?: () => void;
8
- isVideoContent?: boolean;
9
- isError?: boolean;
10
- } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>;
11
- declare const ImageInput: React.FC<ImageInputProps>;
2
+ declare const ImageInput: React.ForwardRefExoticComponent<{
3
+ dimension?: number | undefined;
4
+ buttonLabel?: string | undefined;
5
+ isRoundedImage?: boolean | undefined;
6
+ isCloseButton?: boolean | undefined;
7
+ onCloseClick?: (() => void) | undefined;
8
+ isVideoContent?: boolean | undefined;
9
+ isError?: boolean | undefined;
10
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>;
12
11
  export default ImageInput;
@@ -1,3 +1,5 @@
1
1
  import React from 'react';
2
- declare const PasswordInput: React.FC;
2
+ declare const PasswordInput: React.ForwardRefExoticComponent<{
3
+ error?: string | null | undefined;
4
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>;
3
5
  export default PasswordInput;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- declare type TextInputProps = {
3
- isError?: boolean;
4
- } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>;
5
- declare const _default: React.NamedExoticComponent<TextInputProps>;
2
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
3
+ isError?: boolean | undefined;
4
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>>;
6
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ButtonProps } from '../button/Button';
2
+ import { ButtonProps } from '../../deprecated/button/Button';
3
3
  export declare type UpdatesPopupPropsType = {
4
4
  text?: string;
5
5
  closeHandler?: () => void;