@it-holding-ui/atomic 1.12.0 → 1.13.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.
@@ -0,0 +1,3 @@
1
+ import { Chip, CustomChipProps } from './CustomChip.types';
2
+ import './CustomChip.scss';
3
+ export declare const CustomChip: <T extends Chip>({ chip, withoutIcon, withCloseButton, isActive, onClick, onCloseButtonClick, ...props }: CustomChipProps<T>) => JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ComponentProps } from 'react';
2
+ import { IonChip } from '@ionic/react';
3
+ export declare type Chip = {
4
+ name: string;
5
+ icon?: string | JSX.Element;
6
+ };
7
+ export declare type CustomChipProps<T extends Chip> = Omit<ComponentProps<typeof IonChip>, 'onClick'> & {
8
+ chip: T;
9
+ withoutIcon?: boolean;
10
+ withCloseButton?: boolean;
11
+ isActive?: boolean;
12
+ onCloseButtonClick?: (chip: T) => void;
13
+ onClick?: (chip: T) => void;
14
+ };
@@ -0,0 +1,2 @@
1
+ export { CustomChip } from './CustomChip';
2
+ export type { Chip, CustomChipProps } from './CustomChip.types';
@@ -2,6 +2,8 @@ export { ActionFab } from './ActionFab';
2
2
  export { CodeInput } from './CodeInput';
3
3
  export { CustomCheckbox } from './CustomCheckbox';
4
4
  export { CustomCheckboxItem } from './CustomCheckboxItem';
5
+ export type { Chip } from './CustomChip';
6
+ export { CustomChip } from './CustomChip';
5
7
  export { CustomIcon } from './CustomIcon';
6
8
  export { CustomInput } from './CustomInput';
7
9
  export { CustomItem } from './CustomItem';