@devbonnysid/ui-kit-default 1.0.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.
- package/dist/components/Button/Button.d.ts +26 -0
- package/dist/components/Button/ButtonAddition.d.ts +7 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Caption/Caption.d.ts +6 -0
- package/dist/components/Caption/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +28 -0
- package/dist/components/Checkbox/FormCheckbox.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Description/Description.d.ts +8 -0
- package/dist/components/Description/index.d.ts +1 -0
- package/dist/components/Form/Form.d.ts +8 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +12 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/types.d.ts +904 -0
- package/dist/components/Input/FormInput.d.ts +11 -0
- package/dist/components/Input/Input.d.ts +29 -0
- package/dist/components/Input/components/HiddenControl/HiddenControl.d.ts +10 -0
- package/dist/components/Input/components/HiddenControl/index.d.ts +1 -0
- package/dist/components/Input/components/InputIcon/InputIcon.d.ts +10 -0
- package/dist/components/Input/components/InputIcon/index.d.ts +1 -0
- package/dist/components/Input/components/NumberControls/NumberControls.d.ts +7 -0
- package/dist/components/Input/components/NumberControls/index.d.ts +1 -0
- package/dist/components/Input/components/index.d.ts +3 -0
- package/dist/components/Input/hooks/index.d.ts +3 -0
- package/dist/components/Input/hooks/useCurrentType.d.ts +6 -0
- package/dist/components/Input/hooks/useIncrement.d.ts +12 -0
- package/dist/components/Input/hooks/useValueFormatter.d.ts +21 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/types.d.ts +3 -0
- package/dist/components/Loader/Loader.d.ts +9 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +10 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +21 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Portal/Portal.d.ts +7 -0
- package/dist/components/Portal/index.d.ts +1 -0
- package/dist/components/Select/FormSelect.d.ts +8 -0
- package/dist/components/Select/Select.d.ts +29 -0
- package/dist/components/Select/components/SelectList/SelectList.d.ts +17 -0
- package/dist/components/Select/components/SelectList/index.d.ts +1 -0
- package/dist/components/Select/components/SelectOptionItem/SelectOptionItem.d.ts +16 -0
- package/dist/components/Select/components/SelectOptionItem/index.d.ts +1 -0
- package/dist/components/Select/components/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts +4 -0
- package/dist/components/Select/types.d.ts +10 -0
- package/dist/components/TextShorter/TextShorter.d.ts +7 -0
- package/dist/components/TextShorter/index.d.ts +1 -0
- package/dist/components/Textarea/FormTextarea.d.ts +11 -0
- package/dist/components/Textarea/Textarea.d.ts +14 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useFloating.d.ts +17 -0
- package/dist/hooks/useHidden.d.ts +5 -0
- package/dist/hooks/useMask.d.ts +13 -0
- package/dist/hooks/useOpenState.d.ts +7 -0
- package/dist/hooks/useUIKitTranslation.d.ts +1 -0
- package/dist/i18n/index.d.ts +21 -0
- package/dist/index.cjs.js +42 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +2500 -0
- package/dist/locales/en/ui-kit.json.d.ts +9 -0
- package/dist/locales/ru/ui-kit.json.d.ts +9 -0
- package/dist/ui-kit-default.css +1 -0
- package/dist/utils/bindStyles.d.ts +1 -0
- package/dist/utils/clamp.d.ts +1 -0
- package/dist/utils/computeCoordsFromPlacement.d.ts +26 -0
- package/dist/utils/convertScientificNumberToString.d.ts +1 -0
- package/dist/utils/convertThousands.d.ts +2 -0
- package/dist/utils/downloadBlob.d.ts +1 -0
- package/dist/utils/formatNumber.d.ts +1 -0
- package/dist/utils/getPageItems.d.ts +6 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/utils/insertIf.d.ts +1 -0
- package/dist/utils/isExternalLink.d.ts +2 -0
- package/dist/utils/isUndefinedOrNull.d.ts +1 -0
- package/dist/utils/isUrl.d.ts +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { RegisterOptions } from 'react-hook-form/dist/types/validator';
|
|
3
|
+
import { InputProps } from './Input';
|
|
4
|
+
type Props = Omit<InputProps, 'value'> & {
|
|
5
|
+
name: string;
|
|
6
|
+
rules?: RegisterOptions;
|
|
7
|
+
clearErrorOnDisable?: boolean;
|
|
8
|
+
onChangeValue?: (value: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FormInput: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, FC, ReactNode } from 'react';
|
|
2
|
+
import { CaptionProps, DescriptionProps } from '..';
|
|
3
|
+
import { FormatterOptions, UseValueFormatterProps } from './hooks';
|
|
4
|
+
import { InputType } from './types';
|
|
5
|
+
type HTMLInputProps = ComponentPropsWithRef<'input'>;
|
|
6
|
+
export declare enum InputSizes {
|
|
7
|
+
LARGE = "large",
|
|
8
|
+
MEDIUM = "medium"
|
|
9
|
+
}
|
|
10
|
+
type OwnProps = UseValueFormatterProps & Partial<CaptionProps> & FormatterOptions & Partial<DescriptionProps> & {
|
|
11
|
+
value?: string;
|
|
12
|
+
onChangeValue: (value: string) => void;
|
|
13
|
+
type?: InputType;
|
|
14
|
+
size?: InputSizes;
|
|
15
|
+
isWithNumberControls?: boolean;
|
|
16
|
+
isCanBeHidden?: boolean;
|
|
17
|
+
isClearable?: boolean;
|
|
18
|
+
isTrimOnBlur?: boolean;
|
|
19
|
+
isLoading?: boolean;
|
|
20
|
+
isAllowSpaces?: boolean;
|
|
21
|
+
prefix?: ReactNode;
|
|
22
|
+
suffix?: ReactNode;
|
|
23
|
+
controllerClassname?: string;
|
|
24
|
+
max?: number;
|
|
25
|
+
min?: number;
|
|
26
|
+
};
|
|
27
|
+
export type InputProps = Omit<HTMLInputProps, keyof OwnProps> & OwnProps;
|
|
28
|
+
export declare const Input: FC<InputProps>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HiddenControl';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import { IconTypes } from '../../../Icon';
|
|
3
|
+
type Props = {
|
|
4
|
+
type: IconTypes;
|
|
5
|
+
onClick?: (e: MouseEvent<SVGSVGElement>) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isPlaceholder?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const InputIcon: FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NumberControls';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type UseIncrementProps = {
|
|
2
|
+
value?: string;
|
|
3
|
+
onChangeValue: (value: string) => void;
|
|
4
|
+
isAllowNegative?: boolean;
|
|
5
|
+
decimals?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
min?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const useIncrement: ({ onChangeValue, value, isAllowNegative, decimals, min, max, }: UseIncrementProps) => {
|
|
10
|
+
increment: () => void;
|
|
11
|
+
decrement: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseMaskOptions } from '../../../hooks';
|
|
2
|
+
import { InputType } from '../types';
|
|
3
|
+
export type UseValueFormatterProps = UseMaskOptions & {
|
|
4
|
+
type?: InputType;
|
|
5
|
+
};
|
|
6
|
+
export type FormatterOptions = {
|
|
7
|
+
isAllowNegative?: boolean;
|
|
8
|
+
decimals?: number;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
isWithThousandSeparator?: boolean;
|
|
11
|
+
decimalSeparator?: string;
|
|
12
|
+
};
|
|
13
|
+
export type FormatterFunctionProps = FormatterOptions & {
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
export type FormatterFunction = (props: FormatterFunctionProps) => string;
|
|
17
|
+
export type CleanerFunction = (value: string) => string;
|
|
18
|
+
export declare const useValueFormatter: ({ type, replacementPlaceholder, replacement, mask, }: UseValueFormatterProps) => {
|
|
19
|
+
format: FormatterFunction;
|
|
20
|
+
clean: CleanerFunction;
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IconSize, IconTypes } from '..';
|
|
3
|
+
type Props = {
|
|
4
|
+
size?: IconSize | number;
|
|
5
|
+
type?: Extract<IconTypes, 'spinner' | 'spinner-progress' | 'spinner-filled'>;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const Loader: FC<Props>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Loader } from './Loader';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export type ModalSharedProps = {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
};
|
|
5
|
+
export type ModalProps = ModalSharedProps & {
|
|
6
|
+
header?: ReactNode;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const Modal: FC<ModalProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Modal';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentProps, CSSProperties, FC, PropsWithChildren } from 'react';
|
|
2
|
+
import { UseFloatingProps } from '../../hooks';
|
|
3
|
+
export type PopoverSharedProps = Omit<UseFloatingProps, 'popoverRef' | 'computeOnResize' | 'computeOnScroll'> & {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
};
|
|
6
|
+
export type PopoverProps = ComponentProps<'div'> & PopoverSharedProps & PropsWithChildren<{
|
|
7
|
+
activeIndex?: number;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
className?: string;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
maxMenuHeight?: CSSProperties['maxHeight'];
|
|
12
|
+
portalId?: string;
|
|
13
|
+
mouseLeaveDelay?: number;
|
|
14
|
+
scrollGraceDelay?: number;
|
|
15
|
+
closeOnScroll?: boolean;
|
|
16
|
+
closeOnMouseLeave?: boolean;
|
|
17
|
+
closeOnResize?: boolean;
|
|
18
|
+
closeOnBlur?: boolean;
|
|
19
|
+
closeOnClickOutside?: boolean;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const Popover: FC<PopoverProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Popover';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Portal';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RegisterOptions } from 'react-hook-form/dist/types/validator';
|
|
2
|
+
import { SelectProps } from './Select';
|
|
3
|
+
export type FormSelectProps<T> = SelectProps<T> & {
|
|
4
|
+
name: string;
|
|
5
|
+
clearErrorOnDisable?: boolean;
|
|
6
|
+
rules?: RegisterOptions;
|
|
7
|
+
};
|
|
8
|
+
export declare const FormSelect: <T>({ name, rules, isError, errorText, value, clearErrorOnDisable, onChange, disabled, ...rest }: FormSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CaptionProps, DescriptionProps, IconTypes } from '..';
|
|
2
|
+
import { SelectListSharedProps } from './components';
|
|
3
|
+
import { SelectOption } from './types';
|
|
4
|
+
export declare enum SelectSizes {
|
|
5
|
+
LARGE = "large",
|
|
6
|
+
MEDIUM = "medium"
|
|
7
|
+
}
|
|
8
|
+
export type SingleSelectProps<T> = {
|
|
9
|
+
isMulti?: false;
|
|
10
|
+
value?: SelectOption<T>;
|
|
11
|
+
onChange?: (value?: SelectOption<T>) => void;
|
|
12
|
+
};
|
|
13
|
+
export type MultiSelectProps<T> = {
|
|
14
|
+
isMulti: true;
|
|
15
|
+
value?: SelectOption<T>[];
|
|
16
|
+
onChange?: (value?: SelectOption<T>[]) => void;
|
|
17
|
+
};
|
|
18
|
+
export type SelectProps<T = string> = Partial<CaptionProps> & Partial<DescriptionProps> & SelectListSharedProps<T> & (SingleSelectProps<T> | MultiSelectProps<T>) & {
|
|
19
|
+
size?: SelectSizes;
|
|
20
|
+
options?: SelectOption<T>[];
|
|
21
|
+
icon?: IconTypes;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
isLoading?: boolean;
|
|
26
|
+
isCloseOnSelect?: boolean;
|
|
27
|
+
isClearable?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare const Select: <T>({ size, caption, hint, icon, isError, errorText, value, description, className, placeholder, isLoading, onChange, searchPlaceholder, options, isWithSelectAll, isWithSearch, isCloseOnSelect, isClearable, isMulti, disabled, }: SelectProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PopoverSharedProps } from '../../..';
|
|
2
|
+
import { SelectOption } from '../../types';
|
|
3
|
+
export type SelectListSharedProps<T> = {
|
|
4
|
+
searchPlaceholder?: string;
|
|
5
|
+
isWithSelectAll?: boolean;
|
|
6
|
+
isWithSearch?: boolean;
|
|
7
|
+
options?: SelectOption<T>[];
|
|
8
|
+
};
|
|
9
|
+
export type SelectListProps<T> = SelectListSharedProps<T> & PopoverSharedProps & {
|
|
10
|
+
onClickOption: (option: SelectOption<T>) => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onSelectAll?: (value?: SelectOption<T>[]) => void;
|
|
13
|
+
isMulti?: boolean;
|
|
14
|
+
value?: SelectOption<T> | SelectOption<T>[];
|
|
15
|
+
onChange?: (value?: SelectOption<T> | SelectOption<T>[]) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare const SelectList: <T>({ value, options, disabled, searchPlaceholder, isMulti, onClickOption, isWithSelectAll, isWithSearch, onSelectAll, onClose, gap, placementSide, placementAlignment, referenceRef, }: SelectListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectList';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SelectOption } from '../../types';
|
|
2
|
+
export declare enum SelectOptionVariant {
|
|
3
|
+
VALUE = "value",
|
|
4
|
+
MULTI = "multi",
|
|
5
|
+
SINGLE = "single"
|
|
6
|
+
}
|
|
7
|
+
export type SelectOptionItemProps<T> = {
|
|
8
|
+
className?: string;
|
|
9
|
+
labelClassName?: string;
|
|
10
|
+
option: SelectOption<T>;
|
|
11
|
+
variant?: SelectOptionVariant;
|
|
12
|
+
isSelected?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const SelectOptionItem: import('react').MemoExoticComponent<(<T>({ className, labelClassName, option, variant, disabled, isSelected, onClick, }: SelectOptionItemProps<T>) => import("react/jsx-runtime").JSX.Element)>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectOptionItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextShorter } from './TextShorter';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { RegisterOptions } from 'react-hook-form/dist/types/validator';
|
|
3
|
+
import { TextareaProps } from './Textarea';
|
|
4
|
+
type Props = Omit<TextareaProps, 'value'> & {
|
|
5
|
+
name: string;
|
|
6
|
+
rules?: RegisterOptions;
|
|
7
|
+
clearErrorOnDisable?: boolean;
|
|
8
|
+
onChangeValue?: (value: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const FormTextarea: FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, FC } from 'react';
|
|
2
|
+
import { CaptionProps, DescriptionProps } from '..';
|
|
3
|
+
import { UseMaskOptions } from '../../hooks';
|
|
4
|
+
type TextareaAdditionalProps = Partial<CaptionProps> & UseMaskOptions & Partial<DescriptionProps> & {
|
|
5
|
+
value?: string;
|
|
6
|
+
isAllowSpaces?: boolean;
|
|
7
|
+
isTrimOnBlur?: boolean;
|
|
8
|
+
isResizeableVertical?: boolean;
|
|
9
|
+
isResizeableHorizontal?: boolean;
|
|
10
|
+
onChangeValue?: (value: string) => void;
|
|
11
|
+
};
|
|
12
|
+
export type TextareaProps = Omit<ComponentPropsWithoutRef<'textarea'>, keyof TextareaAdditionalProps> & TextareaAdditionalProps;
|
|
13
|
+
export declare const Textarea: FC<TextareaProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { PopoverProps } from '..';
|
|
3
|
+
export type TooltipProps = Pick<PopoverProps, 'gap' | 'placementAlignment' | 'placementSide'> & {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: ReactNode;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Tooltip: FC<TooltipProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './Button';
|
|
2
|
+
export * from './Caption';
|
|
3
|
+
export * from './Checkbox';
|
|
4
|
+
export * from './Description';
|
|
5
|
+
export * from './Form';
|
|
6
|
+
export * from './Icon';
|
|
7
|
+
export * from './Input';
|
|
8
|
+
export * from './Loader';
|
|
9
|
+
export * from './Popover';
|
|
10
|
+
export * from './Portal';
|
|
11
|
+
export * from './Select';
|
|
12
|
+
export * from './Textarea';
|
|
13
|
+
export * from './TextShorter';
|
|
14
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { ComputeCoordsFromPlacementProps } from '../utils';
|
|
3
|
+
export type UseFloatingProps = Omit<ComputeCoordsFromPlacementProps, 'popover' | 'reference'> & {
|
|
4
|
+
computeOnResize?: boolean;
|
|
5
|
+
computeOnScroll?: boolean;
|
|
6
|
+
popoverRef: RefObject<HTMLElement | null>;
|
|
7
|
+
referenceRef: RefObject<HTMLElement | null>;
|
|
8
|
+
};
|
|
9
|
+
export declare const useFloating: ({ computeOnScroll, computeOnResize, gap, placementAlignment, placementSide, popoverRef, referenceRef, isPortal, }: UseFloatingProps) => {
|
|
10
|
+
computed: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
side: import('../utils').PlacementSide;
|
|
14
|
+
align: import('../utils').PlacementAlignment;
|
|
15
|
+
} | undefined;
|
|
16
|
+
recalc: () => void;
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type ReplacementMap = Record<string, RegExp>;
|
|
2
|
+
type ReplacementArray = RegExp[];
|
|
3
|
+
export type UseMaskOptions = {
|
|
4
|
+
mask?: string;
|
|
5
|
+
replacement?: string | ReplacementMap | ReplacementArray;
|
|
6
|
+
replacementPlaceholder?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DEFAULT_MASK_PLACEHOLDER = "_";
|
|
9
|
+
export declare const useMask: ({ mask, replacement, replacementPlaceholder, }: UseMaskOptions) => {
|
|
10
|
+
apply: (value: string) => string;
|
|
11
|
+
clean: (value: string) => string;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUIKitTranslation: () => import('react-i18next').UseTranslationResponse<"ui-kit", undefined>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { i18n as I18nInstance } from 'i18next';
|
|
2
|
+
export declare const UI_KIT_NS = "ui-kit";
|
|
3
|
+
export declare const uiKitResources: {
|
|
4
|
+
readonly en: {
|
|
5
|
+
readonly "ui-kit": {
|
|
6
|
+
noOptions: string;
|
|
7
|
+
resetAll: string;
|
|
8
|
+
search: string;
|
|
9
|
+
selectAll: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly ru: {
|
|
13
|
+
readonly "ui-kit": {
|
|
14
|
+
noOptions: string;
|
|
15
|
+
resetAll: string;
|
|
16
|
+
search: string;
|
|
17
|
+
selectAll: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const initUiKitI18n: (i18n: I18nInstance) => void;
|