abrplus-ui-kit 0.2.9
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.
- package/README.md +159 -0
- package/dist/antOverrides.cjs.js +127 -0
- package/dist/antOverrides.es.js +127 -0
- package/dist/atoms.cjs.js +391 -0
- package/dist/atoms.es.js +392 -0
- package/dist/colors-CztsZ6e_.js +2213 -0
- package/dist/colors-TPZkyKI4.cjs +2212 -0
- package/dist/deepMerge-CG1he8ZD.js +20 -0
- package/dist/deepMerge-Cn27K7-s.cjs +19 -0
- package/dist/index-2Q5IExhU.cjs +89 -0
- package/dist/index-BOfdgXvN.cjs +265 -0
- package/dist/index-BnnlMHRY.cjs +27 -0
- package/dist/index-BzahloOb.js +28 -0
- package/dist/index-C24zbKLS.js +350 -0
- package/dist/index-CCvWoynu.cjs +12 -0
- package/dist/index-CQKRmQkW.js +543 -0
- package/dist/index-CW9vyiq6.cjs +349 -0
- package/dist/index-D8BknfUe.js +266 -0
- package/dist/index-DCP3xelB.cjs +1629 -0
- package/dist/index-DCojd1ld.js +90 -0
- package/dist/index-DLUd_0LP.js +13 -0
- package/dist/index-WgcaHHjH.js +1630 -0
- package/dist/index-keKfh9ZW.cjs +542 -0
- package/dist/index.cjs.js +109 -0
- package/dist/index.css +1519 -0
- package/dist/index.es.js +109 -0
- package/dist/index2.css +3 -0
- package/dist/molecules.cjs.js +7823 -0
- package/dist/molecules.es.js +7825 -0
- package/dist/organisms.cjs.js +940 -0
- package/dist/organisms.es.js +940 -0
- package/dist/provider.cjs.js +48 -0
- package/dist/provider.es.js +48 -0
- package/dist/sortable.esm-CwrpjqII.cjs +3872 -0
- package/dist/sortable.esm-DfJu5xWT.js +3873 -0
- package/dist/theme.css +102 -0
- package/dist/types/antOverrides.d.ts +2 -0
- package/dist/types/assets/fonts/icomoon/selection.json.d.ts +3 -0
- package/dist/types/atoms.d.ts +2 -0
- package/dist/types/components/antOverrides/alert/index.d.ts +2 -0
- package/dist/types/components/antOverrides/avatar/index.d.ts +15 -0
- package/dist/types/components/antOverrides/breadcrumb/index.d.ts +4 -0
- package/dist/types/components/antOverrides/dropdown/index.d.ts +4 -0
- package/dist/types/components/antOverrides/flex/index.d.ts +4 -0
- package/dist/types/components/antOverrides/image/index.d.ts +7 -0
- package/dist/types/components/antOverrides/index.d.ts +18 -0
- package/dist/types/components/antOverrides/infiniteLoader/index.d.ts +12 -0
- package/dist/types/components/antOverrides/loading/index.d.ts +14 -0
- package/dist/types/components/antOverrides/menu/index.d.ts +8 -0
- package/dist/types/components/antOverrides/pagination/index.d.ts +3 -0
- package/dist/types/components/antOverrides/progress/index.d.ts +3 -0
- package/dist/types/components/antOverrides/segmented/index.d.ts +4 -0
- package/dist/types/components/antOverrides/skeleton/index.d.ts +10 -0
- package/dist/types/components/antOverrides/slider/index.d.ts +5 -0
- package/dist/types/components/antOverrides/steps/index.d.ts +11 -0
- package/dist/types/components/antOverrides/switch/index.d.ts +3 -0
- package/dist/types/components/antOverrides/text/index.d.ts +31 -0
- package/dist/types/components/antOverrides/timeline/index.d.ts +4 -0
- package/dist/types/components/antOverrides/tooltip/index.d.ts +8 -0
- package/dist/types/components/antOverrides/upload/index.d.ts +7 -0
- package/dist/types/components/atoms/badge/index.d.ts +3 -0
- package/dist/types/components/atoms/behavioralAtoms/index.d.ts +2 -0
- package/dist/types/components/atoms/behavioralAtoms/portalContainer/index.d.ts +7 -0
- package/dist/types/components/atoms/behavioralAtoms/render/index.d.ts +14 -0
- package/dist/types/components/atoms/borderedTitle/index.d.ts +9 -0
- package/dist/types/components/atoms/box/index.d.ts +7 -0
- package/dist/types/components/atoms/breadcrumbs/index.d.ts +5 -0
- package/dist/types/components/atoms/card/index.d.ts +5 -0
- package/dist/types/components/atoms/checkbox/index.d.ts +7 -0
- package/dist/types/components/atoms/clickAwayListener/index.d.ts +11 -0
- package/dist/types/components/atoms/collapse/index.d.ts +6 -0
- package/dist/types/components/atoms/datePicker/index.d.ts +16 -0
- package/dist/types/components/atoms/empty/index.d.ts +5 -0
- package/dist/types/components/atoms/fallback/index.d.ts +4 -0
- package/dist/types/components/atoms/horizontalLine/index.d.ts +9 -0
- package/dist/types/components/atoms/icon/constants/iconNames.d.ts +1 -0
- package/dist/types/components/atoms/icon/constants/iconsContent.d.ts +808 -0
- package/dist/types/components/atoms/icon/iconPack/index.d.ts +2 -0
- package/dist/types/components/atoms/icon/index.d.ts +26 -0
- package/dist/types/components/atoms/index.d.ts +24 -0
- package/dist/types/components/atoms/navigationTabs/index.d.ts +35 -0
- package/dist/types/components/atoms/popover/index.d.ts +14 -0
- package/dist/types/components/atoms/popover/link.d.ts +6 -0
- package/dist/types/components/atoms/radio/index.d.ts +7 -0
- package/dist/types/components/atoms/rangePicker/index.d.ts +14 -0
- package/dist/types/components/atoms/separator/index.d.ts +5 -0
- package/dist/types/components/atoms/tab/index.d.ts +9 -0
- package/dist/types/components/atoms/tooltip/index.d.ts +7 -0
- package/dist/types/components/atoms/tooltip/titleTooltip.d.ts +5 -0
- package/dist/types/components/atoms/upload/index.d.ts +11 -0
- package/dist/types/components/atoms/verticalLine/index.d.ts +7 -0
- package/dist/types/components/atoms/view/helper.d.ts +20 -0
- package/dist/types/components/atoms/view/index.d.ts +26 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/molecules/accordion/index.d.ts +20 -0
- package/dist/types/components/molecules/actionHeader/index.d.ts +11 -0
- package/dist/types/components/molecules/audioVisualizer/index.d.ts +15 -0
- package/dist/types/components/molecules/avatarUpload/index.d.ts +15 -0
- package/dist/types/components/molecules/button/action/index.d.ts +5 -0
- package/dist/types/components/molecules/button/icon/index.d.ts +11 -0
- package/dist/types/components/molecules/button/index.d.ts +18 -0
- package/dist/types/components/molecules/button/negative/index.d.ts +5 -0
- package/dist/types/components/molecules/button/primary/index.d.ts +3 -0
- package/dist/types/components/molecules/button/secondary/index.d.ts +3 -0
- package/dist/types/components/molecules/button/secondaryQuiet/index.d.ts +3 -0
- package/dist/types/components/molecules/button/shared.d.ts +23 -0
- package/dist/types/components/molecules/button/tertiary/index.d.ts +3 -0
- package/dist/types/components/molecules/button/text/index.d.ts +10 -0
- package/dist/types/components/molecules/catch/index.d.ts +9 -0
- package/dist/types/components/molecules/chevronIcon/index.d.ts +6 -0
- package/dist/types/components/molecules/copyButton/index.d.ts +8 -0
- package/dist/types/components/molecules/index.d.ts +24 -0
- package/dist/types/components/molecules/input/TextArea/index.d.ts +25 -0
- package/dist/types/components/molecules/input/default/index.d.ts +23 -0
- package/dist/types/components/molecules/input/emojiPicker/index.d.ts +21 -0
- package/dist/types/components/molecules/input/ghost/index.d.ts +25 -0
- package/dist/types/components/molecules/input/index.d.ts +19 -0
- package/dist/types/components/molecules/input/number/index.d.ts +28 -0
- package/dist/types/components/molecules/input/search/index.d.ts +7 -0
- package/dist/types/components/molecules/input/tag/index.d.ts +13 -0
- package/dist/types/components/molecules/inputDatePicker/index.d.ts +17 -0
- package/dist/types/components/molecules/inputErrorMessage/index.d.ts +9 -0
- package/dist/types/components/molecules/inputRangePicker/index.d.ts +16 -0
- package/dist/types/components/molecules/logo/index.d.ts +25 -0
- package/dist/types/components/molecules/noResult/index.d.ts +8 -0
- package/dist/types/components/molecules/notification/index.d.ts +13 -0
- package/dist/types/components/molecules/select/components/clearIcon.d.ts +2 -0
- package/dist/types/components/molecules/select/components/index.d.ts +5 -0
- package/dist/types/components/molecules/select/components/label.d.ts +6 -0
- package/dist/types/components/molecules/select/components/notFound.d.ts +5 -0
- package/dist/types/components/molecules/select/components/placeholder.d.ts +7 -0
- package/dist/types/components/molecules/select/components/suffix.d.ts +10 -0
- package/dist/types/components/molecules/select/index.d.ts +13 -0
- package/dist/types/components/molecules/select/multiple/index.d.ts +5 -0
- package/dist/types/components/molecules/select/single/index.d.ts +5 -0
- package/dist/types/components/molecules/select/style.d.ts +8 -0
- package/dist/types/components/molecules/select/treeSelect/index.d.ts +2 -0
- package/dist/types/components/molecules/select/types.d.ts +108 -0
- package/dist/types/components/molecules/sortableList/index.d.ts +19 -0
- package/dist/types/components/molecules/spliter/index.d.ts +8 -0
- package/dist/types/components/molecules/tag/index.d.ts +17 -0
- package/dist/types/components/molecules/tagCollectionView/index.d.ts +14 -0
- package/dist/types/components/molecules/tagInput/components/notFoundAddItem.d.ts +4 -0
- package/dist/types/components/molecules/tagInput/index.d.ts +6 -0
- package/dist/types/components/molecules/tagInput/style.d.ts +9 -0
- package/dist/types/components/molecules/tagInput/types.d.ts +66 -0
- package/dist/types/components/molecules/timePicker/index.d.ts +6 -0
- package/dist/types/components/molecules/titleBox/index.d.ts +8 -0
- package/dist/types/components/molecules/titleBox/status.d.ts +5 -0
- package/dist/types/components/molecules/titleBox/title.d.ts +7 -0
- package/dist/types/components/molecules/tree/index.d.ts +29 -0
- package/dist/types/components/molecules/tree/searchBar/index.d.ts +7 -0
- package/dist/types/components/molecules/verticalTabs/index.d.ts +19 -0
- package/dist/types/components/organisms/avatarGroup/index.d.ts +25 -0
- package/dist/types/components/organisms/drawer/components/footer.d.ts +3 -0
- package/dist/types/components/organisms/drawer/components/headerTitle.d.ts +8 -0
- package/dist/types/components/organisms/drawer/index.d.ts +24 -0
- package/dist/types/components/organisms/index.d.ts +4 -0
- package/dist/types/components/organisms/modal/base.d.ts +6 -0
- package/dist/types/components/organisms/modal/confirm.d.ts +6 -0
- package/dist/types/components/organisms/modal/delete.d.ts +4 -0
- package/dist/types/components/organisms/modal/error.d.ts +4 -0
- package/dist/types/components/organisms/modal/index.d.ts +14 -0
- package/dist/types/components/organisms/modal/info.d.ts +4 -0
- package/dist/types/components/organisms/modal/type.d.ts +11 -0
- package/dist/types/components/organisms/table/column.d.ts +20 -0
- package/dist/types/components/organisms/table/components/cell/currencyCell.d.ts +7 -0
- package/dist/types/components/organisms/table/components/cell/dateCell.d.ts +6 -0
- package/dist/types/components/organisms/table/components/cell/index.d.ts +10 -0
- package/dist/types/components/organisms/table/components/cell/status.d.ts +8 -0
- package/dist/types/components/organisms/table/components/expandIcon.d.ts +7 -0
- package/dist/types/components/organisms/table/components/headerTitle.d.ts +10 -0
- package/dist/types/components/organisms/table/config.d.ts +8 -0
- package/dist/types/components/organisms/table/dndSort/context.d.ts +6 -0
- package/dist/types/components/organisms/table/dndSort/dragHandle.d.ts +1 -0
- package/dist/types/components/organisms/table/dndSort/index.d.ts +3 -0
- package/dist/types/components/organisms/table/dndSort/provider.d.ts +10 -0
- package/dist/types/components/organisms/table/dndSort/row.d.ts +6 -0
- package/dist/types/components/organisms/table/index.d.ts +30 -0
- package/dist/types/components/organisms/table/pagination/components.d.ts +18 -0
- package/dist/types/components/organisms/table/pagination/usePagination.d.ts +22 -0
- package/dist/types/configs/constructors/AbrplusUIKit.d.ts +17 -0
- package/dist/types/configs/constructors/index.d.ts +1 -0
- package/dist/types/configs/index.d.ts +6 -0
- package/dist/types/configs/locales/en.d.ts +1030 -0
- package/dist/types/configs/locales/fa.d.ts +1031 -0
- package/dist/types/configs/locales/i18nextTFunction.d.ts +5 -0
- package/dist/types/configs/locales/index.d.ts +10 -0
- package/dist/types/configs/providers/AbrplusUIKitProvider.d.ts +11 -0
- package/dist/types/configs/providers/index.d.ts +1 -0
- package/dist/types/configs/tailwindcss/index.d.ts +103 -0
- package/dist/types/configs/theme/colors.d.ts +114 -0
- package/dist/types/configs/theme/index.d.ts +1 -0
- package/dist/types/configs/types/index.d.ts +98 -0
- package/dist/types/constants/chartColors.d.ts +1 -0
- package/dist/types/constants/datepickerColors.d.ts +2 -0
- package/dist/types/constants/dimantions.d.ts +12 -0
- package/dist/types/constants/enum.d.ts +5 -0
- package/dist/types/constants/index.d.ts +3 -0
- package/dist/types/constants/variables.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +6 -0
- package/dist/types/hooks/useAntConfig.d.ts +24 -0
- package/dist/types/hooks/useDebounce.d.ts +1 -0
- package/dist/types/hooks/useInteractions.d.ts +15 -0
- package/dist/types/hooks/useLocalStorageState.d.ts +3 -0
- package/dist/types/hooks/useObserveWindow.d.ts +9 -0
- package/dist/types/hooks/useWindowDimensions.d.ts +16 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/main.d.ts +3 -0
- package/dist/types/molecules.d.ts +2 -0
- package/dist/types/organisms.d.ts +2 -0
- package/dist/types/provider.d.ts +2 -0
- package/dist/types/theme.d.ts +1 -0
- package/dist/types/utilities/batch.d.ts +9 -0
- package/dist/types/utilities/createIcomoonIconSet.d.ts +9 -0
- package/dist/types/utilities/deepMerge.d.ts +1 -0
- package/dist/types/utilities/getErrorMessage.d.ts +1 -0
- package/dist/types/utilities/index.d.ts +7 -0
- package/dist/types/utilities/isPersian.d.ts +1 -0
- package/dist/types/utilities/mmss.d.ts +1 -0
- package/dist/types/utilities/testUtils/index.d.ts +3 -0
- package/dist/types/utilities/testUtils/withReactQuery.d.ts +2 -0
- package/dist/types/utilities/testUtils/withReactRouter.d.ts +2 -0
- package/package.json +195 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CSSProperties, ImgHTMLAttributes } from 'react';
|
|
2
|
+
import { IconsNames } from './constants/iconNames';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
disable?: boolean;
|
|
7
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
8
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large' | number;
|
|
9
|
+
};
|
|
10
|
+
export type ImageIconProps = BaseProps & {
|
|
11
|
+
hasSrc: true;
|
|
12
|
+
src: NonNullable<ImgHTMLAttributes<HTMLImageElement>['src']>;
|
|
13
|
+
imgProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
14
|
+
};
|
|
15
|
+
export type IconMoonsProps = BaseProps & {
|
|
16
|
+
hasSrc?: false;
|
|
17
|
+
name?: IconsNames;
|
|
18
|
+
color?: string | string[];
|
|
19
|
+
};
|
|
20
|
+
type IconProps = ImageIconProps | IconMoonsProps;
|
|
21
|
+
/**
|
|
22
|
+
* Icon component
|
|
23
|
+
*/
|
|
24
|
+
declare const Icon: ({ size, onClick, style, className, disable, ...rest }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { Icon };
|
|
26
|
+
export type { IconProps, IconsNames };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './badge';
|
|
2
|
+
export * from './behavioralAtoms';
|
|
3
|
+
export * from './borderedTitle';
|
|
4
|
+
export * from './box';
|
|
5
|
+
export * from './breadcrumbs';
|
|
6
|
+
export * from './card';
|
|
7
|
+
export * from './checkbox';
|
|
8
|
+
export * from './clickAwayListener';
|
|
9
|
+
export * from './collapse';
|
|
10
|
+
export * from './datePicker';
|
|
11
|
+
export * from './empty';
|
|
12
|
+
export * from './fallback';
|
|
13
|
+
export * from './horizontalLine';
|
|
14
|
+
export * from './icon';
|
|
15
|
+
export * from './navigationTabs';
|
|
16
|
+
export * from './popover';
|
|
17
|
+
export * from './radio';
|
|
18
|
+
export * from './rangePicker';
|
|
19
|
+
export * from './separator';
|
|
20
|
+
export * from './tab';
|
|
21
|
+
export * from './tooltip';
|
|
22
|
+
export * from './upload';
|
|
23
|
+
export * from './verticalLine';
|
|
24
|
+
export * from './view';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement, ReactNode } from 'react';
|
|
2
|
+
type TabProps<T extends string> = {
|
|
3
|
+
tabKey: T;
|
|
4
|
+
title?: string | ((color: string) => ReactNode);
|
|
5
|
+
children: ReactElement | ReactNode;
|
|
6
|
+
style?: CSSProperties | ((activeTabKey: T) => CSSProperties);
|
|
7
|
+
className?: string | ((activeTabKey: T) => string);
|
|
8
|
+
isVisible?: boolean;
|
|
9
|
+
testID?: string;
|
|
10
|
+
};
|
|
11
|
+
interface NavigationTabsProps<T extends string> {
|
|
12
|
+
children: ReactElement<TabProps<T>>[];
|
|
13
|
+
onChange?: (activeTabKey: T) => void;
|
|
14
|
+
wrapperStyle?: CSSProperties;
|
|
15
|
+
wrapperClassName?: string;
|
|
16
|
+
spaceBetweenTabs?: number;
|
|
17
|
+
activeStyleMode?: 'underlined' | 'background' | 'textGlow';
|
|
18
|
+
defaultTabKey?: T;
|
|
19
|
+
extraAfterItem?: ReactNode | ((activeTabKey?: T) => ReactNode);
|
|
20
|
+
extraBeforeItem?: ReactNode | ((activeTabKey?: T) => ReactNode);
|
|
21
|
+
extraAfterChildren?: ReactNode | ((activeTabKey?: T) => ReactNode);
|
|
22
|
+
extraBeforeChildren?: ReactNode | ((activeTabKey?: T) => ReactNode);
|
|
23
|
+
tabFontSize?: number;
|
|
24
|
+
tabsClassName?: string;
|
|
25
|
+
tabClassName?: string;
|
|
26
|
+
innerContentClassName?: string;
|
|
27
|
+
tabsWrapperStyle?: CSSProperties;
|
|
28
|
+
extraChildrenInheritBorder?: boolean;
|
|
29
|
+
hasBorder?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const NavigationTabs: {
|
|
32
|
+
<T extends string>({ children, onChange, wrapperStyle, wrapperClassName, spaceBetweenTabs, activeStyleMode, defaultTabKey, extraAfterItem, extraBeforeItem, extraBeforeChildren, extraAfterChildren, tabFontSize, tabsClassName, tabClassName, tabsWrapperStyle, innerContentClassName, extraChildrenInheritBorder, hasBorder, }: NavigationTabsProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
Tab<T extends string>(_props: TabProps<T>): null;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PopoverProps as AntPopoverProps } from 'antd';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface PopoverProps extends AntPopoverProps {
|
|
4
|
+
headerTitle?: ReactNode;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
closeable?: boolean;
|
|
7
|
+
footer?: ReactNode;
|
|
8
|
+
overlayInnerClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Popover: {
|
|
11
|
+
({ overlayInnerStyle, overlayClassName, overlayInnerClassName, headerTitle, content, closeable, onClose, footer, ...rest }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Link: ({ children, size, color, weight, className, ...rest }: import('./link').PopoverLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export { Popover };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FlexProps } from 'antd';
|
|
2
|
+
import { TextProps } from '../../antOverrides/text';
|
|
3
|
+
export interface PopoverLinkProps extends FlexProps, Pick<TextProps, 'size' | 'color' | 'weight'> {
|
|
4
|
+
}
|
|
5
|
+
declare const PopoverLink: ({ children, size, color, weight, className, ...rest }: PopoverLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { PopoverLink };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RadioChangeEvent, RadioProps } from 'antd';
|
|
2
|
+
declare const Radio: {
|
|
3
|
+
(props: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
Group: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<import('antd').RadioGroupProps & import('react').RefAttributes<HTMLDivElement>>>;
|
|
5
|
+
};
|
|
6
|
+
export { Radio };
|
|
7
|
+
export type { RadioChangeEvent };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputFieldError } from '../../../configs';
|
|
2
|
+
import { RangePickerProps as Props } from 'jalaali-react-date-picker';
|
|
3
|
+
export interface RangePickerProps extends Omit<Props, 'wrapperClassName' | 'error'> {
|
|
4
|
+
wrapperClassName?: string;
|
|
5
|
+
/**
|
|
6
|
+
* if `error` property provided, regardless of its value, the error gap is applied to component.
|
|
7
|
+
*/
|
|
8
|
+
error?: InputFieldError;
|
|
9
|
+
label?: string | React.ReactNode;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
hideErrorMessage?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const RangePicker: ({ helperText, required, label, error, wrapperClassName, value, hideErrorMessage, ...props }: RangePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TabsProps } from 'antd';
|
|
2
|
+
interface TabProps extends TabsProps {
|
|
3
|
+
}
|
|
4
|
+
declare const Tab: {
|
|
5
|
+
(props: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
TabPane: import('react').FC<import('antd').TabPaneProps>;
|
|
7
|
+
};
|
|
8
|
+
export { Tab };
|
|
9
|
+
export type { TabProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TooltipProps as AntTooltipProps } from '../../antOverrides/tooltip';
|
|
2
|
+
import { IconsNames } from '../icon';
|
|
3
|
+
export interface TooltipProps extends AntTooltipProps {
|
|
4
|
+
iconName?: IconsNames;
|
|
5
|
+
}
|
|
6
|
+
declare const Tooltip: ({ children, title, iconName, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UploadProps as AntUploadProps } from 'antd';
|
|
2
|
+
import { RcFile, UploadChangeParam, UploadFile } from 'antd/lib/upload/interface';
|
|
3
|
+
interface UploadProps<T = any> extends AntUploadProps<T> {
|
|
4
|
+
}
|
|
5
|
+
export declare const Upload: {
|
|
6
|
+
<T>({ children, itemRender, ...props }: UploadProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Dragger: import('react').ForwardRefExoticComponent<AntUploadProps<any> & {
|
|
8
|
+
height?: number;
|
|
9
|
+
} & import('react').RefAttributes<import('antd/es/upload/Upload').UploadRef<any>>>;
|
|
10
|
+
};
|
|
11
|
+
export type { RcFile, UploadChangeParam, UploadFile, UploadProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface VerticalLine extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
color?: string;
|
|
5
|
+
spacing?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const VerticalLine: ({ style, color, spacing, ...rest }: VerticalLine) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** Merge refs into one ref function to support ref passing. */
|
|
3
|
+
export declare function composeRef<T>(...refs: (React.Ref<T> | undefined)[]): React.Ref<T>;
|
|
4
|
+
type LayoutValue = {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
left: number;
|
|
8
|
+
top: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
export type LayoutEvent = {
|
|
13
|
+
nativeEvent: {
|
|
14
|
+
layout: LayoutValue;
|
|
15
|
+
target: any;
|
|
16
|
+
};
|
|
17
|
+
timeStamp: number;
|
|
18
|
+
};
|
|
19
|
+
declare function useElementLayout(ref: RefObject<any>, onLayout?: (e: LayoutEvent) => void): void;
|
|
20
|
+
export { useElementLayout };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FlexProps } from 'antd';
|
|
2
|
+
type LayoutValue = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
export type LayoutEvent = {
|
|
11
|
+
nativeEvent: {
|
|
12
|
+
layout: LayoutValue;
|
|
13
|
+
target: any;
|
|
14
|
+
};
|
|
15
|
+
timeStamp: number;
|
|
16
|
+
};
|
|
17
|
+
export interface ViewProps extends FlexProps {
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
onRetry?: () => void;
|
|
21
|
+
loadingMinHeight?: number;
|
|
22
|
+
loadingSize?: number;
|
|
23
|
+
onLayout?: (e: LayoutEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const View: import('react').ForwardRefExoticComponent<ViewProps & import('react').RefAttributes<HTMLElement>>;
|
|
26
|
+
export { View };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
|
2
|
+
interface AccordionItem {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
label: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface AccordionProps {
|
|
7
|
+
currentIndex?: number;
|
|
8
|
+
accordionRef?: RefObject<HTMLDivElement>;
|
|
9
|
+
children: ReactElement<AccordionItem>[];
|
|
10
|
+
indexedStyle?: boolean;
|
|
11
|
+
transparent?: boolean;
|
|
12
|
+
noPaddingItem?: boolean;
|
|
13
|
+
noGapBetweenItems?: boolean;
|
|
14
|
+
onChangeIndex?(key: number): void;
|
|
15
|
+
}
|
|
16
|
+
declare const Accordion: {
|
|
17
|
+
({ children, accordionRef, onChangeIndex, currentIndex, indexedStyle, noPaddingItem, noGapBetweenItems, transparent, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
Item: (_props: AccordionItem) => null;
|
|
19
|
+
};
|
|
20
|
+
export { Accordion };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ActionHeaderProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
title?: string | React.ReactNode;
|
|
5
|
+
route?: any;
|
|
6
|
+
gap?: number;
|
|
7
|
+
hasBorder?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ActionHeader: React.ForwardRefExoticComponent<ActionHeaderProps & React.RefAttributes<HTMLElement>>;
|
|
11
|
+
export { ActionHeader };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface AudioVisualizerProps {
|
|
3
|
+
deviceId?: string;
|
|
4
|
+
speakerId?: string;
|
|
5
|
+
monitor?: 'on' | 'off';
|
|
6
|
+
containerStyle?: HTMLAttributes<HTMLDivElement>['style'];
|
|
7
|
+
containerClassName?: HTMLAttributes<HTMLDivElement>['className'];
|
|
8
|
+
barContainerStyle?: HTMLAttributes<HTMLDivElement>['style'];
|
|
9
|
+
barContainerClassName?: HTMLAttributes<HTMLDivElement>['className'];
|
|
10
|
+
barStyle?: HTMLAttributes<HTMLDivElement>['style'];
|
|
11
|
+
barClassName?: HTMLAttributes<HTMLDivElement>['className'];
|
|
12
|
+
barsNumber?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const AudioVisualizer: ({ deviceId, speakerId, monitor, containerStyle, containerClassName, barContainerStyle, barContainerClassName, barStyle, barClassName, barsNumber, }: AudioVisualizerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RcFile } from 'antd/lib/upload';
|
|
2
|
+
import { IconsNames } from '../../atoms';
|
|
3
|
+
interface AvatarUploadProps {
|
|
4
|
+
customRequest: ((options: {
|
|
5
|
+
file: string | Blob | RcFile;
|
|
6
|
+
}) => Promise<void>) | undefined;
|
|
7
|
+
src: string;
|
|
8
|
+
shape: 'circle' | 'square';
|
|
9
|
+
size: number;
|
|
10
|
+
iconName?: IconsNames;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
targetId?: string | number;
|
|
13
|
+
}
|
|
14
|
+
export declare const AvatarUpload: ({ customRequest, src, shape, size, isLoading }: AvatarUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from '../shared';
|
|
2
|
+
export interface ActionButtonProps extends ButtonProps {
|
|
3
|
+
}
|
|
4
|
+
declare const ActionButton: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, ...rest }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { ActionButton };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IconMoonsProps } from '../../../atoms/icon';
|
|
3
|
+
import { ButtonProps } from '../shared';
|
|
4
|
+
export interface IconButtonProps extends Omit<ButtonProps, 'children' | 'iconName' | 'mode'> {
|
|
5
|
+
iconProps?: Omit<IconMoonsProps, 'name' | 'color'> & {
|
|
6
|
+
renderIcon?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
iconName: Required<ButtonProps['iconName']>;
|
|
9
|
+
}
|
|
10
|
+
declare const IconButton: ({ style, height, iconName, disabled, className, iconPosition, iconProps, color, ...rest }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { IconButton };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ActionButtonProps } from './action';
|
|
2
|
+
import { IconButtonProps } from './icon';
|
|
3
|
+
import { ButtonMode, ButtonProps, buttonDefaultClasses, fontSizePicker, paddingPicker } from './shared';
|
|
4
|
+
import { TextButtonProps } from './text';
|
|
5
|
+
declare const Button: {
|
|
6
|
+
readonly Text: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, underline, textProps, startIconSize, endIconSize, ...rest }: TextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
readonly Primary: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, textSize, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
readonly Secondary: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
readonly Tertiary: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
readonly SecondaryQuiet: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
readonly Icon: ({ style, height, iconName, disabled, className, iconPosition, iconProps, color, ...rest }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
readonly Negative: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, variant, ...rest }: ButtonProps & {
|
|
13
|
+
variant?: "contain" | "outline";
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
readonly Action: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, ...rest }: ActionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
};
|
|
17
|
+
export { Button, buttonDefaultClasses, fontSizePicker, paddingPicker };
|
|
18
|
+
export type { ActionButtonProps, ButtonMode, ButtonProps, IconButtonProps, TextButtonProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ButtonProps } from '../shared';
|
|
2
|
+
declare const NegativeButton: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, variant, ...rest }: ButtonProps & {
|
|
3
|
+
variant?: "contain" | "outline";
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { NegativeButton };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ButtonProps } from '../shared';
|
|
2
|
+
declare const SecondaryQuietButton: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { SecondaryQuietButton };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconsNames } from '../../atoms/icon';
|
|
2
|
+
export type ButtonMode = 'small' | 'medium' | 'block';
|
|
3
|
+
type PaddingButton = (hasIcon: boolean) => {
|
|
4
|
+
[K in 'start' | 'end']: {
|
|
5
|
+
[Key in ButtonMode]: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export interface ButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'children' | 'lang'> {
|
|
9
|
+
height?: number | string;
|
|
10
|
+
mode?: ButtonMode;
|
|
11
|
+
iconName?: IconsNames;
|
|
12
|
+
iconPosition?: 'start' | 'end';
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
children?: string;
|
|
15
|
+
lang?: 'fa' | 'en';
|
|
16
|
+
textSize?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare const fontSizePicker: {
|
|
19
|
+
[key in ButtonMode]: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const paddingPicker: PaddingButton;
|
|
22
|
+
export declare const buttonDefaultClasses = "flex relative select-none w-fit appearance-none flex-row items-center justify-center gap-2 whitespace-nowrap rounded text-center outline-none";
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TextProps } from '../../..';
|
|
2
|
+
import { ButtonProps } from '../shared';
|
|
3
|
+
export interface TextButtonProps extends ButtonProps {
|
|
4
|
+
underline?: boolean;
|
|
5
|
+
textProps?: TextProps;
|
|
6
|
+
startIconSize?: number;
|
|
7
|
+
endIconSize?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const TextButton: ({ style, height, mode, children, iconName, disabled, className, iconPosition, isLoading, lang, underline, textProps, startIconSize, endIconSize, ...rest }: TextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { TextButton };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ClientError } from '../../../configs';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export interface CatchProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
error: ClientError;
|
|
6
|
+
retry?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const Catch: ({ children, error, retry }: CatchProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Catch };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IconMoonsProps } from '../../atoms';
|
|
2
|
+
export interface ChevronIconProps extends Omit<IconMoonsProps, 'name'> {
|
|
3
|
+
direction?: 'forward' | 'backward';
|
|
4
|
+
}
|
|
5
|
+
declare const ChevronIcon: ({ direction, ...rest }: ChevronIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { ChevronIcon };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CopyButtonProps {
|
|
3
|
+
textToCopy: string;
|
|
4
|
+
renderButton?: React.ReactNode;
|
|
5
|
+
variant?: 'informative' | 'success' | 'error' | 'default';
|
|
6
|
+
}
|
|
7
|
+
declare const CopyButton: ({ textToCopy, variant, renderButton }: CopyButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { CopyButton };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './actionHeader';
|
|
3
|
+
export * from './audioVisualizer';
|
|
4
|
+
export * from './avatarUpload';
|
|
5
|
+
export * from './button';
|
|
6
|
+
export * from './catch';
|
|
7
|
+
export * from './chevronIcon';
|
|
8
|
+
export * from './copyButton';
|
|
9
|
+
export * from './input';
|
|
10
|
+
export * from './inputDatePicker';
|
|
11
|
+
export * from './inputErrorMessage';
|
|
12
|
+
export * from './inputRangePicker';
|
|
13
|
+
export * from './logo';
|
|
14
|
+
export * from './noResult';
|
|
15
|
+
export * from './notification';
|
|
16
|
+
export * from './select';
|
|
17
|
+
export * from './sortableList';
|
|
18
|
+
export * from './spliter';
|
|
19
|
+
export * from './tag';
|
|
20
|
+
export * from './tagInput';
|
|
21
|
+
export * from './timePicker';
|
|
22
|
+
export * from './titleBox';
|
|
23
|
+
export * from './tree';
|
|
24
|
+
export * from './verticalTabs';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { InputRef } from 'antd';
|
|
2
|
+
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { TextAreaProps } from 'antd/es/input';
|
|
4
|
+
import { InputFieldError } from '../../../../configs';
|
|
5
|
+
export interface InputTextAreaProps extends TextAreaProps {
|
|
6
|
+
helperText?: string;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
background?: string;
|
|
9
|
+
lang?: 'fa' | 'en';
|
|
10
|
+
onlyNumber?: boolean;
|
|
11
|
+
isCurrency?: boolean;
|
|
12
|
+
onChangeText?: (event: string) => void;
|
|
13
|
+
inputSize?: SizeType;
|
|
14
|
+
placeholder?: string | undefined;
|
|
15
|
+
wrapperClassName?: string;
|
|
16
|
+
rows?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
/**
|
|
19
|
+
* if `error` property provided, regardless of its value, the error gap is applied to component.
|
|
20
|
+
*/
|
|
21
|
+
error?: InputFieldError;
|
|
22
|
+
hideErrorMessage?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const InputTextArea: import('react').ForwardRefExoticComponent<InputTextAreaProps & import('react').RefAttributes<InputRef>>;
|
|
25
|
+
export { InputTextArea };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InputFieldError } from '../../../../configs';
|
|
2
|
+
import { InputProps, InputRef } from 'antd';
|
|
3
|
+
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
4
|
+
export interface InputDefaultProps extends Omit<InputProps, 'dir'> {
|
|
5
|
+
helperText?: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
background?: string;
|
|
8
|
+
lang?: 'fa' | 'en';
|
|
9
|
+
direction?: 'ltr' | 'rtl';
|
|
10
|
+
onlyNumber?: boolean;
|
|
11
|
+
isCurrency?: boolean;
|
|
12
|
+
onChangeText?: (event: string) => void;
|
|
13
|
+
inputSize?: SizeType;
|
|
14
|
+
placeholder?: string | undefined;
|
|
15
|
+
wrapperClassName?: string;
|
|
16
|
+
hideErrorMessage?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* if `error` property provided, regardless of its value, the error gap is applied to component.
|
|
19
|
+
*/
|
|
20
|
+
error?: InputFieldError;
|
|
21
|
+
}
|
|
22
|
+
declare const InputDefault: import('react').ForwardRefExoticComponent<InputDefaultProps & import('react').RefAttributes<InputRef>>;
|
|
23
|
+
export { InputDefault };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props for the EmojiPickerInput component
|
|
3
|
+
*/
|
|
4
|
+
export interface EmojiPickerInputProps {
|
|
5
|
+
/** Current value of the input */
|
|
6
|
+
value: string;
|
|
7
|
+
/** Callback fired when input value changes */
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
/** Optional label for the input field */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Optional list of emojis to show in the picker */
|
|
12
|
+
emojis?: string[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* EmojiPickerInput Component
|
|
16
|
+
*
|
|
17
|
+
* A text input component with an integrated emoji picker.
|
|
18
|
+
* Users can click the emoji icon to select emojis, which
|
|
19
|
+
* are inserted at the current cursor position.
|
|
20
|
+
*/
|
|
21
|
+
export declare const EmojiPicker: ({ value, onChange, label, emojis, }: EmojiPickerInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeEvent, DetailedHTMLProps, ForwardedRef, InputHTMLAttributes, LegacyRef, ReactNode } from 'react';
|
|
2
|
+
export interface InputGhostProps extends Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'prefix' | 'onChange'> {
|
|
3
|
+
label?: string | ReactNode;
|
|
4
|
+
wrapperClassName?: string;
|
|
5
|
+
inputSize?: 'medium' | 'small';
|
|
6
|
+
error?: {
|
|
7
|
+
message?: string;
|
|
8
|
+
};
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
forwardRef?: LegacyRef<HTMLInputElement> | undefined;
|
|
11
|
+
suffix?: ReactNode;
|
|
12
|
+
lang?: 'fa' | 'en';
|
|
13
|
+
prefix?: ReactNode;
|
|
14
|
+
isCurrency?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
onChangeText?: (event: string) => void;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
onlyNumber?: boolean;
|
|
20
|
+
value?: string;
|
|
21
|
+
placeHolder?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const InputGhost$: (props: InputGhostProps, ref: ForwardedRef<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare const InputGhost: typeof InputGhost$;
|
|
25
|
+
export { InputGhost };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { InputRef } from 'antd';
|
|
2
|
+
import { InputTextAreaProps } from './TextArea';
|
|
3
|
+
import { InputDefaultProps } from './default';
|
|
4
|
+
import { EmojiPickerInputProps } from './emojiPicker';
|
|
5
|
+
import { InputGhostProps } from './ghost';
|
|
6
|
+
import { InputNumberProps } from './number';
|
|
7
|
+
import { InputSearchProps } from './search';
|
|
8
|
+
import { InputTagProps } from './tag';
|
|
9
|
+
declare const Input: {
|
|
10
|
+
readonly Search: import('react').ForwardRefExoticComponent<InputSearchProps & import('react').RefAttributes<InputRef>>;
|
|
11
|
+
readonly Number: import('react').ForwardRefExoticComponent<InputNumberProps & import('react').RefAttributes<InputRef>>;
|
|
12
|
+
readonly Default: import('react').ForwardRefExoticComponent<InputDefaultProps & import('react').RefAttributes<InputRef>>;
|
|
13
|
+
readonly Tag: import('react').MemoExoticComponent<({ value, onChange, placeholder, disabled, label, required, hideErrorMessage, error, wrapperClassName, }: InputTagProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
readonly TextArea: import('react').ForwardRefExoticComponent<InputTextAreaProps & import('react').RefAttributes<InputRef>>;
|
|
15
|
+
readonly Ghost: (props: InputGhostProps, ref: import('react').ForwardedRef<HTMLInputElement>) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
readonly EmojiPicker: ({ value, onChange, label, emojis, }: EmojiPickerInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
export { Input };
|
|
19
|
+
export type { EmojiPickerInputProps, InputDefaultProps, InputGhostProps, InputNumberProps, InputRef, InputSearchProps, InputTagProps, InputTextAreaProps, };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InputProps, InputRef } from 'antd';
|
|
2
|
+
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
|
+
import { InputFieldError } from '../../../../configs';
|
|
4
|
+
export interface InputNumberProps extends Omit<InputProps, 'onChange' | 'value' | 'height'> {
|
|
5
|
+
helperText?: string;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
background?: string;
|
|
8
|
+
lang?: 'fa' | 'en';
|
|
9
|
+
onlyNumber?: boolean;
|
|
10
|
+
isCurrency?: boolean;
|
|
11
|
+
inputSize?: SizeType;
|
|
12
|
+
placeHolder?: string | undefined;
|
|
13
|
+
wrapperClassName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* if `error` property provided, regardless of its value, the error gap is applied to component.
|
|
16
|
+
*/
|
|
17
|
+
error?: InputFieldError;
|
|
18
|
+
step?: number | undefined;
|
|
19
|
+
value?: number | undefined;
|
|
20
|
+
height?: number;
|
|
21
|
+
disableNegative?: boolean;
|
|
22
|
+
min?: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
onChange?: (value: number) => void;
|
|
25
|
+
hideErrorMessage?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const InputNumber: import('react').ForwardRefExoticComponent<InputNumberProps & import('react').RefAttributes<InputRef>>;
|
|
28
|
+
export { InputNumber };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputRef } from 'antd';
|
|
2
|
+
import { MouseEvent } from 'react';
|
|
3
|
+
import { InputDefaultProps } from '../default';
|
|
4
|
+
export interface InputSearchProps extends InputDefaultProps {
|
|
5
|
+
onIconClick?: (event: MouseEvent<HTMLDivElement, globalThis.MouseEvent>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const InputSearch: import('react').ForwardRefExoticComponent<InputSearchProps & import('react').RefAttributes<InputRef>>;
|