@it-holding-ui/atomic 1.1.0 → 1.3.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.
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  import { CurrencyIconProps } from './CurrencyIcon.types';
3
- export declare const CurrencyIcon: React.FC<CurrencyIconProps>;
2
+ export declare const CurrencyIcon: ({ currencyCode, ...props }: CurrencyIconProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { CustomCountryFlagProps } from './CustomCountryFlag.types';
3
2
  import './CustomCountryFlag.scss';
4
- export declare const CustomCountryFlag: React.FC<CustomCountryFlagProps>;
3
+ export declare const CustomCountryFlag: ({ code, className, ...props }: CustomCountryFlagProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { CustomIconProps } from './CustomIcon.types';
3
2
  import './CustomIcon.scss';
4
- export declare const CustomIcon: React.FC<CustomIconProps>;
3
+ export declare const CustomIcon: ({ icon, className }: CustomIconProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CustomItemProps } from './CustomItem.types';
3
+ import './CustomItem.scss';
4
+ export declare const CustomItem: React.ForwardRefExoticComponent<Pick<CustomItemProps, "disabled" | "download" | "href" | "label" | "placeholder" | "rel" | "shape" | "target" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "tabIndex" | "title" | "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" | "key" | "button" | "footer" | "header" | "mode" | "lines" | "icon" | keyof import("@ionic/react/dist/types/components/IonicReactProps").IonicReactProps | "fill" | "routerAnimation" | "counter" | "counterFormatter" | "detail" | "detailIcon" | "labelTextType" | "headerTextType" | "footerTextType" | "withArrowRight" | "withBorderBottom" | "routerLink" | "routerDirection" | "routerOptions"> & React.RefAttributes<HTMLIonItemElement>>;
@@ -0,0 +1,14 @@
1
+ import { ComponentProps } from 'react';
2
+ import { IonItem } from '@ionic/react';
3
+ import { TextType } from '~atomic/Text';
4
+ export declare type CustomItemProps = ComponentProps<typeof IonItem> & {
5
+ label?: React.ReactNode;
6
+ labelTextType?: TextType;
7
+ header?: string;
8
+ headerTextType?: TextType;
9
+ footer?: string;
10
+ footerTextType?: TextType;
11
+ icon?: JSX.Element | string;
12
+ withArrowRight?: boolean;
13
+ withBorderBottom?: boolean;
14
+ };
@@ -0,0 +1,2 @@
1
+ export { CustomItem } from './CustomItem';
2
+ export type { CustomItemProps } from './CustomItem.types';
@@ -0,0 +1,3 @@
1
+ import { CustomRadioItemProps } from './CustomRadioItem.types';
2
+ import './CustomRadioItem.scss';
3
+ export declare const CustomRadioItem: ({ label, labelTextType, header, headerTextType, footer, footerTextType, info, errorMessage, errorForce, radioSlot, lines, detail, detailIcon, shape, disabled, className, ...props }: CustomRadioItemProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { IonItem, IonRadio } from '@ionic/react';
3
+ import { TextType } from '~atomic/Text';
4
+ export declare type CustomRadioItemProps = React.ComponentProps<typeof IonRadio> & Pick<React.ComponentProps<typeof IonItem>, 'lines' | 'detail' | 'detailIcon' | 'shape'> & {
5
+ label?: string;
6
+ labelTextType?: TextType;
7
+ header?: string;
8
+ headerTextType?: TextType;
9
+ footer?: string;
10
+ footerTextType?: TextType;
11
+ info?: string;
12
+ radioSlot?: 'start' | 'end';
13
+ errorMessage?: string;
14
+ errorForce?: boolean;
15
+ };
@@ -0,0 +1 @@
1
+ export { CustomRadioItem } from './CustomRadioItem';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { CustomToggleProps } from './CustomToggle.types';
3
+ import './CustomToggle.scss';
4
+ export declare const CustomToggle: React.FC<CustomToggleProps>;
@@ -0,0 +1,7 @@
1
+ import { ComponentProps } from 'react';
2
+ import { IonToggle, ToggleChangeEventDetail } from '@ionic/react';
3
+ export declare type CustomToggleProps = Omit<ComponentProps<typeof IonToggle>, 'defaultValue' | 'onIonChange'> & {
4
+ onBlur?: () => void;
5
+ onFocus?: () => void;
6
+ onIonChange?: (event: CustomEvent<ToggleChangeEventDetail>) => void;
7
+ };
@@ -0,0 +1,2 @@
1
+ export { CustomToggle } from './CustomToggle';
2
+ export type { CustomToggleProps } from './CustomToggle.types';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { LabelProps } from './Label.types';
3
2
  import './Label.scss';
4
- export declare const Label: React.FC<LabelProps>;
3
+ export declare const Label: ({ isMinimized, color, isMobile, className, children }: LabelProps) => JSX.Element;
@@ -1,6 +1,8 @@
1
+ import React from 'react';
1
2
  export declare type LabelProps = {
2
3
  className?: string;
3
4
  isMinimized?: boolean;
4
5
  color?: 'default' | 'secondary' | 'error';
5
6
  isMobile?: boolean;
7
+ children?: React.ReactNode;
6
8
  };
@@ -1,5 +1,8 @@
1
1
  export { CustomCheckbox } from './CustomCheckbox';
2
2
  export { CustomIcon } from './CustomIcon';
3
3
  export { CustomInput } from './CustomInput';
4
+ export { CustomItem } from './CustomItem';
5
+ export { CustomRadioItem } from './CustomRadioItem';
6
+ export { CustomToggle } from './CustomToggle';
4
7
  export { Label } from './Label';
5
8
  export { Text, TextType } from './Text';