UNPKG

krypton-ui

Version:

<h1 align="center"> <p align="center"><a href="https://krypton-ui.com"><img src="https://user-images.githubusercontent.com/7073241/224507377-395bffc0-9ff7-4d74-865b-f734394a7e7e.png" alt="Krypton" width="200"></a></p> </h1>

37 lines (36 loc) 1.05 kB
import React, { ComponentPropsWithoutRef } from "react"; import { Color } from "../../types"; type ItemType = { label: string; value: boolean; }; type TransferListType = { children: React.ReactNode[]; leftItems: ItemType[]; rightItems: ItemType[]; setLeftItems: (value: ItemType[]) => void; setRightItems: (value: ItemType[]) => void; color?: Color; allChoices?: boolean; leftChoicesLabel?: string; rightChoicesLabel?: string; }; type TransferListCommonType = { label: string; onChange: (value: ItemType[]) => void; }; export type CheckboxStyledProps = { checked: boolean; }; export type TransferListProps = ComponentPropsWithoutRef<"div"> & TransferListType; export type TransferListItemProps = TransferListCommonType & { value: any; items?: ItemType[]; }; export type TransferListHeaderProps = TransferListCommonType & { children: React.ReactNode; checkedItemsLength: number; items: ItemType[]; }; export type ItemProps = ComponentPropsWithoutRef<"div"> & ItemType; export {};