@scbt-ecom/ui 0.65.0 → 0.67.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/hooks.js +40 -44
- package/dist/hooks.js.map +1 -1
- package/dist/{index-BC0CWE5w.js → index-CVI7dOhZ.js} +11412 -10821
- package/dist/index-CVI7dOhZ.js.map +1 -0
- package/dist/index-cm9kMt4X.js +435 -0
- package/dist/index-cm9kMt4X.js.map +1 -0
- package/dist/shared/types/dicriminatedUnion.d.ts +7 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/keysOf.d.ts +5 -0
- package/dist/shared/ui/button/model/helpers.d.ts +1 -1
- package/dist/shared/ui/carousel/CarouselBase.d.ts +29 -0
- package/dist/shared/ui/carousel/CarouselNative.d.ts +6 -0
- package/dist/shared/ui/carousel/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/helpers.d.ts +9 -0
- package/dist/shared/ui/carousel/model/hooks/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/hooks/useArrowNavigation.d.ts +12 -0
- package/dist/shared/ui/carousel/model/hooks/useCarousel.d.ts +12 -0
- package/dist/shared/ui/carousel/model/hooks/useDotsNavigation.d.ts +15 -0
- package/dist/shared/ui/carousel/model/index.d.ts +3 -0
- package/dist/shared/ui/carousel/model/types.d.ts +27 -0
- package/dist/shared/ui/carousel/ui/ArrowNavigationButton.d.ts +13 -0
- package/dist/shared/ui/carousel/ui/CarouselContent.d.ts +16 -0
- package/dist/shared/ui/carousel/ui/CarouselSlide.d.ts +10 -0
- package/dist/shared/ui/carousel/ui/ContainerWithNavigation.d.ts +16 -0
- package/dist/shared/ui/carousel/ui/DotsNavigations.d.ts +13 -0
- package/dist/shared/ui/carousel/ui/index.d.ts +5 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideFullScreen.d.ts +19 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideOnlyImage.d.ts +11 -0
- package/dist/shared/ui/carousel/ui/slideVariants/SlideProductCard.d.ts +20 -0
- package/dist/shared/ui/carousel/ui/slideVariants/index.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupCardControl.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupTabControl.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/radio/index.d.ts +2 -0
- package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/index.d.ts +7 -6
- package/dist/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +12 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/AdditionalContent.d.ts +12 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +3 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.d.ts +4 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemTab.d.ts +4 -0
- package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +3 -1
- package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +1 -1
- package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
- package/dist/shared/ui/heading/Heading.d.ts +1 -1
- package/dist/shared/ui/hint/Hint.d.ts +1 -0
- package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/shared/ui/popover/Popover.d.ts +2 -1
- package/dist/shared/validation/base/base.validators.d.ts +2 -0
- package/dist/shared/validation/base/boolean.validators.d.ts +13 -0
- package/dist/shared/validation/base/number.validators.d.ts +1 -0
- package/dist/shared/validation/base/select.validators.d.ts +1 -0
- package/dist/shared/validation/base/string.validators.d.ts +1 -0
- package/dist/shared/validation/index.d.ts +1 -0
- package/dist/sprites/general.svg +1 -1
- package/dist/ui.js +2574 -1038
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-B-41PFpS.js +1211 -0
- package/dist/useDebounce-B-41PFpS.js.map +1 -0
- package/dist/useFieldsProgress-BQ99Vijl.js +26 -0
- package/dist/useFieldsProgress-BQ99Vijl.js.map +1 -0
- package/dist/validation.js +1 -1
- package/dist/widget.js +1126 -954
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/Calculator.d.ts +7 -0
- package/dist/widgets/calculator/CalculatorRoot.d.ts +8 -0
- package/dist/widgets/calculator/index.d.ts +2 -0
- package/dist/widgets/calculator/model/helpers.d.ts +4 -0
- package/dist/widgets/calculator/model/index.d.ts +3 -0
- package/dist/widgets/calculator/model/types.d.ts +9 -0
- package/dist/widgets/calculator/model/utils.d.ts +11 -0
- package/dist/widgets/calculator/ui/CalculatorTabs.d.ts +12 -0
- package/dist/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +4 -0
- package/dist/widgets/calculator/ui/calculatorInfo/index.d.ts +2 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/AssistHint.d.ts +7 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +7 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +5 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +8 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoHead.d.ts +5 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +15 -0
- package/dist/widgets/calculator/ui/calculatorInfo/ui/index.d.ts +6 -0
- package/dist/widgets/calculator/ui/index.d.ts +3 -0
- package/dist/widgets/calculator/ui/rootCalculator/RootCalculator.d.ts +14 -0
- package/dist/widgets/calculator/ui/rootCalculator/index.d.ts +1 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/CalculatorModal.d.ts +8 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/CheckboxGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/RadioGroup.d.ts +11 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/SlidersGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/SwitchGroup.d.ts +9 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/index.d.ts +5 -0
- package/dist/widgets/dynamicForm/DynamicForm.d.ts +2 -1
- package/dist/widgets/dynamicForm/model/getDynamicSchema.d.ts +0 -10
- package/dist/widgets/dynamicForm/model/index.d.ts +0 -1
- package/dist/widgets/fieldMapper/index.d.ts +1 -1
- package/dist/widgets/fieldMapper/model/types.d.ts +6 -0
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/model/helpers.d.ts +2 -2
- package/dist/widgets/model/index.d.ts +1 -0
- package/dist/widgets/model/utils.d.ts +10 -0
- package/package.json +6 -2
- package/dist/index-BC0CWE5w.js.map +0 -1
- package/dist/index-BKXpPQ1s.js +0 -426
- package/dist/index-BKXpPQ1s.js.map +0 -1
- package/dist/useDebounce-i1sdXecI.js +0 -1196
- package/dist/useDebounce-i1sdXecI.js.map +0 -1
- package/dist/useFieldsProgress-C3nmU8Vi.js +0 -21
- package/dist/useFieldsProgress-C3nmU8Vi.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { EmblaOptionsType } from 'embla-carousel';
|
|
3
|
+
import { AutoplayOptionsType } from 'embla-carousel-autoplay';
|
|
4
|
+
import { DotsOptions, NavArrowOptions } from './model';
|
|
5
|
+
import { ArrowNavigationButtonClasses, CarouselContentClasses } from './ui';
|
|
6
|
+
import { ContainerWithNavigationClasses } from './ui/ContainerWithNavigation';
|
|
7
|
+
type CarouselClasses = {
|
|
8
|
+
root?: string;
|
|
9
|
+
header?: string;
|
|
10
|
+
heading?: string;
|
|
11
|
+
arrowsNavWrapper?: string;
|
|
12
|
+
arrowLeftClasses?: ArrowNavigationButtonClasses;
|
|
13
|
+
arrowRightClasses?: ArrowNavigationButtonClasses;
|
|
14
|
+
containerWithNavClasses?: ContainerWithNavigationClasses;
|
|
15
|
+
carouselContentClasses?: CarouselContentClasses;
|
|
16
|
+
};
|
|
17
|
+
export interface CarouselBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
heading?: string;
|
|
20
|
+
carouselOptions?: EmblaOptionsType;
|
|
21
|
+
dotsOptions?: DotsOptions;
|
|
22
|
+
navArrowOptions?: NavArrowOptions;
|
|
23
|
+
autoPlayOptions?: AutoplayOptionsType;
|
|
24
|
+
setVisibleIndex: (index: number) => void;
|
|
25
|
+
visibleIndex: number;
|
|
26
|
+
classes?: CarouselClasses;
|
|
27
|
+
}
|
|
28
|
+
export declare const CarouselBase: ({ dotsOptions, navArrowOptions, carouselOptions, heading, autoPlayOptions, setVisibleIndex, visibleIndex, children, classes, ...props }: CarouselBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CarouselNativeProps<Element> extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
items: Element[];
|
|
3
|
+
renderComponent: (elementProps: Element) => React.JSX.Element;
|
|
4
|
+
columnGap?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const CarouselNative: <Element>({ className, items, renderComponent, columnGap, ...props }: CarouselNativeProps<Element>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EmblaOptionsType } from 'embla-carousel';
|
|
2
|
+
import { AutoplayOptionsType } from 'embla-carousel-autoplay';
|
|
3
|
+
import { CarouselSlideVariant, DotsOptions, NavArrowOptions } from './types';
|
|
4
|
+
import { DiscriminatedUnion } from '../../../types';
|
|
5
|
+
export declare const defaultCarouselOptions: EmblaOptionsType;
|
|
6
|
+
export declare const defaultDotsOptions: DotsOptions;
|
|
7
|
+
export declare const defaultNavArrowOptions: NavArrowOptions;
|
|
8
|
+
export declare const defaultAutoPlayOptions: AutoplayOptionsType;
|
|
9
|
+
export declare const renderSlideVariant: (props: DiscriminatedUnion<"variant", CarouselSlideVariant>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EmblaCarouselType } from 'embla-carousel';
|
|
2
|
+
import { NavigationMode } from '../types';
|
|
3
|
+
type UseArrowNavigationProps = {
|
|
4
|
+
emblaApi: EmblaCarouselType | undefined;
|
|
5
|
+
navigationHandler?: (emblaApi: EmblaCarouselType) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useArrowNavigation: ({ emblaApi, navigationHandler }: UseArrowNavigationProps) => {
|
|
8
|
+
prevBtnDisabled: boolean;
|
|
9
|
+
nextBtnDisabled: boolean;
|
|
10
|
+
onClickNavigationButton: (mode: NavigationMode) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EmblaCarouselType, EmblaOptionsType } from 'embla-carousel';
|
|
2
|
+
import { AutoplayOptionsType } from 'embla-carousel-autoplay';
|
|
3
|
+
type UseCarouselProps = {
|
|
4
|
+
carouselOptions: EmblaOptionsType;
|
|
5
|
+
autoPlayOptions?: AutoplayOptionsType;
|
|
6
|
+
};
|
|
7
|
+
export declare const useCarousel: ({ carouselOptions, autoPlayOptions }: UseCarouselProps) => {
|
|
8
|
+
emblaRef: import('embla-carousel-react').EmblaViewportRefType;
|
|
9
|
+
emblaApi: EmblaCarouselType | undefined;
|
|
10
|
+
navigationHandler: (emblaApi: EmblaCarouselType) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EmblaCarouselType } from 'embla-carousel';
|
|
2
|
+
type UseDotsNavigationProps = {
|
|
3
|
+
emblaApi: EmblaCarouselType | undefined;
|
|
4
|
+
navigationHandler: (emblaApi: EmblaCarouselType) => void;
|
|
5
|
+
setVisibleIndex: (index: number) => void;
|
|
6
|
+
};
|
|
7
|
+
export type UseDotsNavigationReturn = {
|
|
8
|
+
scrollSnaps: number[];
|
|
9
|
+
onClickDot: (index: number) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const useDotsNavigation: ({ emblaApi, navigationHandler, setVisibleIndex }: UseDotsNavigationProps) => {
|
|
12
|
+
scrollSnaps: number[];
|
|
13
|
+
onClickDot: (index: number) => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CarouselSlideProps, SlideFullScreenProps, SlideOnlyImageProps, SlideProductCardProps } from '../ui';
|
|
2
|
+
export type DotsOptions = {
|
|
3
|
+
position?: 'bot-left' | 'center' | 'bot-right';
|
|
4
|
+
deskVisible?: boolean;
|
|
5
|
+
mobVisible?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type NavArrowOptions = {
|
|
8
|
+
position?: 'center' | 'top-right';
|
|
9
|
+
deskVisible?: boolean;
|
|
10
|
+
mobVisible?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type NavigationMode = 'next' | 'prev';
|
|
13
|
+
export type ImageProps = {
|
|
14
|
+
src: string;
|
|
15
|
+
alt: string;
|
|
16
|
+
};
|
|
17
|
+
interface SlideFullScreen extends SlideFullScreenProps, CarouselSlideProps {
|
|
18
|
+
variant: 'fullScreen';
|
|
19
|
+
}
|
|
20
|
+
interface SlideOnlyImage extends SlideOnlyImageProps, CarouselSlideProps {
|
|
21
|
+
variant: 'onlyImage';
|
|
22
|
+
}
|
|
23
|
+
interface SlideProductCard extends SlideProductCardProps, CarouselSlideProps {
|
|
24
|
+
variant: 'productCard';
|
|
25
|
+
}
|
|
26
|
+
export type CarouselSlideVariant = SlideFullScreen | SlideOnlyImage | SlideProductCard;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { NavigationMode } from '../model';
|
|
3
|
+
export type ArrowNavigationButtonClasses = {
|
|
4
|
+
button?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
};
|
|
7
|
+
interface ArrowNavigationButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'onClick'> {
|
|
8
|
+
mode: NavigationMode;
|
|
9
|
+
onClick: (mode: NavigationMode) => void;
|
|
10
|
+
classes?: ArrowNavigationButtonClasses;
|
|
11
|
+
}
|
|
12
|
+
export declare const ArrowNavigationButton: ({ mode, onClick, children, classes, ...props }: ArrowNavigationButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DotsOptions, UseDotsNavigationReturn } from '../model';
|
|
3
|
+
import { DotsNavigationsClasses } from './DotsNavigations';
|
|
4
|
+
export type CarouselContentClasses = {
|
|
5
|
+
dotsClasses?: DotsNavigationsClasses;
|
|
6
|
+
slidesOverlay?: string;
|
|
7
|
+
slidesWrapper?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface CarouselContentProps {
|
|
10
|
+
classes?: CarouselContentClasses;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
dotsProps: UseDotsNavigationReturn;
|
|
13
|
+
dotsOptions: DotsOptions;
|
|
14
|
+
visibleIndex: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const CarouselContent: import('react').ForwardRefExoticComponent<CarouselContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CarouselSlideVariant } from '../model';
|
|
2
|
+
import { DiscriminatedUnion } from '../../../types';
|
|
3
|
+
export type CarouselSlideClasses = {
|
|
4
|
+
root?: string;
|
|
5
|
+
slide?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CarouselSlideProps = {
|
|
8
|
+
classes?: CarouselSlideClasses;
|
|
9
|
+
};
|
|
10
|
+
export declare const CarouselSlide: ({ classes, ...props }: DiscriminatedUnion<"variant", CarouselSlideVariant>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { NavigationMode } from '../model';
|
|
3
|
+
import { ArrowNavigationButtonClasses } from './ArrowNavigationButton';
|
|
4
|
+
export type ContainerWithNavigationClasses = {
|
|
5
|
+
wrapper?: string;
|
|
6
|
+
arrowLeftClasses?: ArrowNavigationButtonClasses;
|
|
7
|
+
arrowRightClasses?: ArrowNavigationButtonClasses;
|
|
8
|
+
};
|
|
9
|
+
export interface ContainerWithNavigationProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
prevBtnDisabled: boolean;
|
|
12
|
+
nextBtnDisabled: boolean;
|
|
13
|
+
onClickNavigationButton: (mode: NavigationMode) => void;
|
|
14
|
+
classes?: ContainerWithNavigationClasses;
|
|
15
|
+
}
|
|
16
|
+
export declare const ContainerWithNavigation: ({ children, prevBtnDisabled, nextBtnDisabled, onClickNavigationButton, classes }: ContainerWithNavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DotsOptions } from '../model';
|
|
2
|
+
export type DotsNavigationsClasses = {
|
|
3
|
+
dotsWrapper?: string;
|
|
4
|
+
dot?: string;
|
|
5
|
+
};
|
|
6
|
+
interface DotsNavigationsProps extends Pick<DotsOptions, 'position'> {
|
|
7
|
+
scrollSnaps: number[];
|
|
8
|
+
onClickDot: (index: number) => void;
|
|
9
|
+
visibleIndex: number;
|
|
10
|
+
classes?: DotsNavigationsClasses;
|
|
11
|
+
}
|
|
12
|
+
export declare const DotsNavigations: ({ scrollSnaps, visibleIndex, onClickDot, position, classes, ...props }: DotsNavigationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ImageProps } from '../../model';
|
|
2
|
+
type SlideFullScreenClasses = {
|
|
3
|
+
root?: string;
|
|
4
|
+
wrapper?: string;
|
|
5
|
+
numeric?: string;
|
|
6
|
+
textWrapper?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
};
|
|
11
|
+
export interface SlideFullScreenProps {
|
|
12
|
+
slideIndex: number;
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
imgProps?: ImageProps;
|
|
16
|
+
slideClasses?: SlideFullScreenClasses;
|
|
17
|
+
}
|
|
18
|
+
export declare const SlideFullScreen: ({ slideIndex, title, imgProps, description, slideClasses }: SlideFullScreenProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageProps } from '../../model';
|
|
2
|
+
type SlideOnlyImageClasses = {
|
|
3
|
+
root?: string;
|
|
4
|
+
image?: string;
|
|
5
|
+
};
|
|
6
|
+
export interface SlideOnlyImageProps {
|
|
7
|
+
imgProps?: ImageProps;
|
|
8
|
+
slideClasses?: SlideOnlyImageClasses;
|
|
9
|
+
}
|
|
10
|
+
export declare const SlideOnlyImage: ({ imgProps, slideClasses }: SlideOnlyImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../button';
|
|
2
|
+
import { ImageProps } from '../../model';
|
|
3
|
+
type SlideProductCardClasses = {
|
|
4
|
+
root?: string;
|
|
5
|
+
wrapper?: string;
|
|
6
|
+
textWrapper?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
button?: string;
|
|
11
|
+
};
|
|
12
|
+
export interface SlideProductCardProps {
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
imgProps?: ImageProps;
|
|
16
|
+
buttonProps?: ButtonProps;
|
|
17
|
+
slideClasses?: SlideProductCardClasses;
|
|
18
|
+
}
|
|
19
|
+
export declare const SlideProductCard: ({ title, imgProps, description, buttonProps, slideClasses }: SlideProductCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -20,6 +20,8 @@ export declare const Controlled: {
|
|
|
20
20
|
SelectControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, classes, name, rules, shouldUnregister, disabled, defaultValue, returnValue, options, helperText, ...props }: import('./select').SelectControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
SwitchControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ classes, className, control, name, rules, defaultValue, disabled, shouldUnregister, children, helperText, tooltip, popoverProps, ...props }: import('./switch').SwitchControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
RadioGroupControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ classes, className, control, name, rules, shouldUnregister, disabled, defaultValue, helperText, label, ...props }: import('./radio').RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
RadioGroupTabControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ options, ...props }: import('./radio').RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
RadioGroupCardControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ options, ...props }: import('./radio').RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
23
25
|
AutocompleteControl: <TFieldValues extends import('react-hook-form').FieldValues, T>({ control, name, defaultValue, disabled, helperText, rules, shouldUnregister, classes, immediate, ...props }: import('./autocomplete').AutocompleteControlProps<TFieldValues, T>) => import("react/jsx-runtime").JSX.Element;
|
|
24
26
|
DadataFio: <TFieldValues extends import('react-hook-form').FieldValues>({ formatter, dadataBaseUrl, ...props }: import('./dadata').DadataFioProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
25
27
|
DadataAddress: <TFieldValues extends import('react-hook-form').FieldValues>({ formatter, dadataBaseUrl, ...props }: import('./dadata').DadataAddressProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { RadioGroupControlProps } from './RadioGroupControl';
|
|
3
|
+
export declare const RadioGroupCardControl: <TFieldValues extends FieldValues = FieldValues>({ options, ...props }: RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ type RadioControlClasses = RadioGroupBaseProps['classes'] & {
|
|
|
5
5
|
message?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
};
|
|
8
|
-
export type RadioGroupControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<RadioGroupBaseProps, 'classes'> & {
|
|
8
|
+
export type RadioGroupControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<RadioGroupBaseProps, 'classes' | 'name'> & {
|
|
9
9
|
/**
|
|
10
10
|
* Отображаемый лейбл
|
|
11
11
|
*/
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { RadioGroupControlProps } from '../../..';
|
|
3
|
+
export declare const RadioGroupTabControl: <TFieldValues extends FieldValues = FieldValues>({ options, ...props }: RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,7 +32,7 @@ export type DayPickerProps = Omit<MaskInputProps, 'value' | 'onChange' | 'mask'
|
|
|
32
32
|
*/
|
|
33
33
|
externalHandlers?: ExternalHandlers;
|
|
34
34
|
};
|
|
35
|
-
export declare const DayPickerBase: import('react').ForwardRefExoticComponent<Omit<MaskInputProps, "
|
|
35
|
+
export declare const DayPickerBase: import('react').ForwardRefExoticComponent<Omit<MaskInputProps, "value" | "onChange" | "classes" | "mask"> & {
|
|
36
36
|
/**
|
|
37
37
|
* Указывает, открыт ли календарь по умолчанию
|
|
38
38
|
*/
|
|
@@ -10,7 +10,7 @@ export type { TextareaBaseProps } from './textarea';
|
|
|
10
10
|
export { isSingleOption } from './select';
|
|
11
11
|
export type { InputOtpBaseProps } from './inputOtp';
|
|
12
12
|
export declare const Uncontrolled: {
|
|
13
|
-
InputBase: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "
|
|
13
|
+
InputBase: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "placeholder" | "size"> & {
|
|
14
14
|
classes?: import('./input/Input').InputBaseClasses;
|
|
15
15
|
label: string;
|
|
16
16
|
invalid?: boolean;
|
|
@@ -27,7 +27,7 @@ export declare const Uncontrolled: {
|
|
|
27
27
|
AutocompleteBase: <TData>(props: import('./autocomplete').AutocompleteBaseProps<TData> & {
|
|
28
28
|
ref: React.Ref<HTMLInputElement>;
|
|
29
29
|
}) => React.JSX.Element;
|
|
30
|
-
MaskInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "
|
|
30
|
+
MaskInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "placeholder" | "size"> & {
|
|
31
31
|
classes?: import('./input/Input').InputBaseClasses;
|
|
32
32
|
label: string;
|
|
33
33
|
invalid?: boolean;
|
|
@@ -43,7 +43,7 @@ export declare const Uncontrolled: {
|
|
|
43
43
|
mask: "datetime" | "email" | "numeric" | "currency" | "decimal" | "integer" | "percentage" | "url" | "ip" | "mac" | "ssn" | "brl-currency" | "cpf" | "cnpj" | (string & {}) | (string[] & {}) | null;
|
|
44
44
|
externalMaskDefinitions?: Record<string, import('./maskInput/MaskInput').Definition>;
|
|
45
45
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
46
|
-
SelectBase: import('react').ForwardRefExoticComponent<Omit<import('@headlessui/react').ComboboxProps<import('./select').SelectItemOption, boolean, "li">, "
|
|
46
|
+
SelectBase: import('react').ForwardRefExoticComponent<Omit<import('@headlessui/react').ComboboxProps<import('./select').SelectItemOption, boolean, "li">, "multiple" | "onChange" | "className" | "by" | "virtual"> & {
|
|
47
47
|
label: string;
|
|
48
48
|
isMulti?: boolean | undefined;
|
|
49
49
|
invalid?: boolean;
|
|
@@ -71,7 +71,7 @@ export declare const Uncontrolled: {
|
|
|
71
71
|
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
72
72
|
};
|
|
73
73
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
DayPickerBase: import('react').ForwardRefExoticComponent<Omit<import('./maskInput').MaskInputProps, "
|
|
74
|
+
DayPickerBase: import('react').ForwardRefExoticComponent<Omit<import('./maskInput').MaskInputProps, "value" | "onChange" | "classes" | "mask"> & {
|
|
75
75
|
defaultOpen?: boolean;
|
|
76
76
|
value?: string;
|
|
77
77
|
onChange?: (value: string) => void;
|
|
@@ -103,7 +103,7 @@ export declare const Uncontrolled: {
|
|
|
103
103
|
classes?: {
|
|
104
104
|
root?: string;
|
|
105
105
|
list?: string;
|
|
106
|
-
radioItem?: import('./radio
|
|
106
|
+
radioItem?: import('./radio').RadioItemClasses;
|
|
107
107
|
};
|
|
108
108
|
invalid?: boolean;
|
|
109
109
|
externalHandlers?: {
|
|
@@ -112,8 +112,9 @@ export declare const Uncontrolled: {
|
|
|
112
112
|
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
113
113
|
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
114
114
|
};
|
|
115
|
+
renderComponent?: (props: import('./radio').RadioGroupBaseProps) => React.JSX.Element;
|
|
115
116
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
116
|
-
TextareaBase: import('react').ForwardRefExoticComponent<Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
117
|
+
TextareaBase: import('react').ForwardRefExoticComponent<Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "className"> & {
|
|
117
118
|
classes?: {
|
|
118
119
|
container?: string;
|
|
119
120
|
textarea?: string;
|
|
@@ -39,7 +39,7 @@ export type InputBaseProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, '
|
|
|
39
39
|
*/
|
|
40
40
|
externalHandlers?: ExternalHandlers;
|
|
41
41
|
};
|
|
42
|
-
export declare const InputBase: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "
|
|
42
|
+
export declare const InputBase: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "placeholder" | "size"> & {
|
|
43
43
|
/**
|
|
44
44
|
* Дополнительные стили внутренних компонентов
|
|
45
45
|
*/
|
|
@@ -25,7 +25,7 @@ export type MaskInputProps = InputBaseProps & {
|
|
|
25
25
|
* @typeParam `A` позволяет вводить любые буквы русского и английского алфавита (regexp: `/[A-Za-zА-Яа-я]/g`)
|
|
26
26
|
* @typeParam `C` позволяет вводить любые буквы, которые определены для использования в гос номерах автомобилей (regexp: `/([АВЕКМНОРСТУХавекмнорстух])/`)
|
|
27
27
|
*/
|
|
28
|
-
export declare const MaskInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "
|
|
28
|
+
export declare const MaskInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "placeholder" | "size"> & {
|
|
29
29
|
classes?: import('../input/Input').InputBaseClasses;
|
|
30
30
|
label: string;
|
|
31
31
|
invalid?: boolean;
|
|
@@ -12,6 +12,10 @@ type ExternalHandlers = {
|
|
|
12
12
|
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
13
13
|
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
14
14
|
};
|
|
15
|
+
export type RenderComponentProps = {
|
|
16
|
+
item: RadioOption;
|
|
17
|
+
classes?: RadioItemClasses;
|
|
18
|
+
} & Pick<RadioGroupBaseProps, 'displayValue' | 'returnValue' | 'invalid' | 'disabled'>;
|
|
15
19
|
export type RadioGroupBaseProps = Omit<RadioGroupPrimitiveProps, 'children'> & {
|
|
16
20
|
/**
|
|
17
21
|
* Список отображаемых опций
|
|
@@ -37,6 +41,10 @@ export type RadioGroupBaseProps = Omit<RadioGroupPrimitiveProps, 'children'> & {
|
|
|
37
41
|
* Дополнительные хендлеры
|
|
38
42
|
*/
|
|
39
43
|
externalHandlers?: ExternalHandlers;
|
|
44
|
+
/**
|
|
45
|
+
* Отрисовка компонента из вне
|
|
46
|
+
*/
|
|
47
|
+
renderComponent?: (props: RadioGroupBaseProps) => React.JSX.Element;
|
|
40
48
|
};
|
|
41
49
|
export declare const RadioGroupBase: import('react').ForwardRefExoticComponent<Omit<RadioGroupPrimitiveProps, "children"> & {
|
|
42
50
|
/**
|
|
@@ -63,5 +71,9 @@ export declare const RadioGroupBase: import('react').ForwardRefExoticComponent<O
|
|
|
63
71
|
* Дополнительные хендлеры
|
|
64
72
|
*/
|
|
65
73
|
externalHandlers?: ExternalHandlers;
|
|
74
|
+
/**
|
|
75
|
+
* Отрисовка компонента из вне
|
|
76
|
+
*/
|
|
77
|
+
renderComponent?: (props: RadioGroupBaseProps) => React.JSX.Element;
|
|
66
78
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
67
79
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { RadioGroupBase, type RadioGroupBaseProps } from './RadioGroup';
|
|
2
|
-
export
|
|
2
|
+
export * from './ui';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type AdditionalContentClasses = {
|
|
2
|
+
wrapper?: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
};
|
|
6
|
+
export interface AdditionalContentProps {
|
|
7
|
+
text?: string;
|
|
8
|
+
value?: number | string;
|
|
9
|
+
classes?: AdditionalContentClasses;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const AdditionalContent: ({ value, text, disabled, classes }: AdditionalContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { RadioGroupItemProps } from '@radix-ui/react-radio-group';
|
|
2
|
+
import { AdditionalContentClasses, AdditionalContentProps } from './AdditionalContent';
|
|
2
3
|
export type RadioOption = {
|
|
3
4
|
id: number | string;
|
|
4
5
|
value: string;
|
|
5
6
|
label: string;
|
|
6
7
|
disabled?: boolean;
|
|
8
|
+
additionalContent?: AdditionalContentProps;
|
|
7
9
|
};
|
|
8
10
|
export type RadioItemClasses = {
|
|
9
11
|
root?: string;
|
|
10
12
|
item?: string;
|
|
11
13
|
indicator?: string;
|
|
12
14
|
label?: string;
|
|
15
|
+
additionalContent?: AdditionalContentClasses;
|
|
13
16
|
};
|
|
14
17
|
export type RadioItemProps = Omit<RadioGroupItemProps, 'value'> & {
|
|
15
18
|
/**
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RenderComponentProps } from '../RadioGroup';
|
|
2
|
+
export interface RadioItemCardProps extends RenderComponentProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const RadioItemCard: ({ classes, returnValue, displayValue, item, disabled: disableGroup, invalid, ...props }: RadioItemCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RenderComponentProps } from '../RadioGroup';
|
|
2
|
+
export interface RadioItemTabProps extends RenderComponentProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const RadioItemTab: ({ classes, returnValue, displayValue, item, disabled: disableGroup, invalid, ...props }: RadioItemTabProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -81,7 +81,7 @@ export type SelectBaseProps<Multi extends boolean> = Omit<ComboboxProps<SelectIt
|
|
|
81
81
|
*/
|
|
82
82
|
reset?: string;
|
|
83
83
|
};
|
|
84
|
-
export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<ComboboxProps<SelectItemOption, boolean, "li">, "
|
|
84
|
+
export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<ComboboxProps<SelectItemOption, boolean, "li">, "multiple" | "onChange" | "className" | "by" | "virtual"> & {
|
|
85
85
|
/**
|
|
86
86
|
* Отображаемый лейбл
|
|
87
87
|
*/
|
|
@@ -15,7 +15,7 @@ export type SelectItemProps = Omit<ComboboxOptionProps, 'className' | 'value'> &
|
|
|
15
15
|
displayValue?: (option: SelectItemOption) => string;
|
|
16
16
|
motionProps?: React.ComponentPropsWithoutRef<typeof motion.li>;
|
|
17
17
|
};
|
|
18
|
-
export declare const SelectItem: React.ForwardRefExoticComponent<Omit<ComboboxOptionProps, "
|
|
18
|
+
export declare const SelectItem: React.ForwardRefExoticComponent<Omit<ComboboxOptionProps, "value" | "className"> & {
|
|
19
19
|
option: SelectItemOption;
|
|
20
20
|
isMulti?: boolean;
|
|
21
21
|
classes?: SelectItemClasses;
|
|
@@ -34,7 +34,7 @@ export type TextareaBaseProps = Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
34
34
|
*/
|
|
35
35
|
externalHandlers?: ExternalHandlers;
|
|
36
36
|
};
|
|
37
|
-
export declare const TextareaBase: import('react').ForwardRefExoticComponent<Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
37
|
+
export declare const TextareaBase: import('react').ForwardRefExoticComponent<Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "className"> & {
|
|
38
38
|
/**
|
|
39
39
|
* Дополнительные стили внутренних компонентов
|
|
40
40
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const headingConfig: (props?: ({
|
|
4
|
-
as?: "
|
|
4
|
+
as?: "h2" | "h3" | "h1" | "h4" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface HeadingProps extends VariantProps<typeof headingConfig> {
|
|
7
7
|
children: ReactNode;
|
|
@@ -4,7 +4,7 @@ export interface SpritesMap {
|
|
|
4
4
|
communication: 'phone';
|
|
5
5
|
editor: 'bold' | 'heading' | 'italic' | 'link' | 'list' | 'palette' | 'redo' | 'removeFormatting' | 'space' | 'strikethrough' | 'typography' | 'underline' | 'undo';
|
|
6
6
|
files: 'border' | 'borderError' | 'documentFilled' | 'documentOutline' | 'upload';
|
|
7
|
-
general: 'calendar' | 'check' | 'close' | 'edit' | 'hiddenEye' | 'menu' | 'plus' | 'reorder' | 'showEye';
|
|
7
|
+
general: 'calendar' | 'check' | 'close' | 'edit' | 'hiddenEye' | 'menu' | 'plus' | 'reorder' | 'shield' | 'showEye';
|
|
8
8
|
info: 'helpCircle' | 'warningCircle';
|
|
9
9
|
logos: 'beeline' | 'megafon' | 'mts';
|
|
10
10
|
social: 'classmates' | 'telegram' | 'vk';
|
|
@@ -16,6 +16,7 @@ interface PopoverContentProps extends PopoverContentPropsBase {
|
|
|
16
16
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
17
17
|
defaultOpen?: boolean;
|
|
18
18
|
avoidCollisions?: boolean;
|
|
19
|
+
withCloseBtn?: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface PopoverProps extends PopoverContentProps {
|
|
21
22
|
triggerElement: ReactElement;
|
|
@@ -23,5 +24,5 @@ export interface PopoverProps extends PopoverContentProps {
|
|
|
23
24
|
classes?: PopoverClasses;
|
|
24
25
|
portalContainer?: PopoverPrimitive.PopoverPortalProps['container'];
|
|
25
26
|
}
|
|
26
|
-
export declare const Popover: ({ triggerElement, classes, sideOffset, alignOffset, align, side, defaultOpen, avoidCollisions, children, arrowPadding, portalContainer, ...contentProps }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const Popover: ({ triggerElement, classes, sideOffset, alignOffset, align, side, defaultOpen, avoidCollisions, children, arrowPadding, portalContainer, withCloseBtn, ...contentProps }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getBooleanSchema } from './boolean.validators';
|
|
1
2
|
import { getDateSchema } from './date.validators';
|
|
2
3
|
import { getEmailSchema } from './email.validators';
|
|
3
4
|
import { getNumberSchema } from './number.validators';
|
|
@@ -15,4 +16,5 @@ export declare const baseValidationSchemas: {
|
|
|
15
16
|
getDateSchema: typeof getDateSchema;
|
|
16
17
|
getUnionSchema: typeof getUnionSchema;
|
|
17
18
|
getUrlSchema: typeof getUrlSchema;
|
|
19
|
+
getBooleanSchema: typeof getBooleanSchema;
|
|
18
20
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
export type BooleanValidationOptions<Required extends boolean> = {
|
|
3
|
+
defaultValue?: boolean;
|
|
4
|
+
required?: Required;
|
|
5
|
+
message?: Partial<Record<keyof Omit<BooleanValidationOptions<Required>, 'message'>, string>>;
|
|
6
|
+
};
|
|
7
|
+
declare const getBooleanRequired: (props?: Omit<BooleanValidationOptions<true>, "required">) => z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
type BooleanRequiredSchema = ReturnType<typeof getBooleanRequired>;
|
|
9
|
+
declare const getBooleanOptional: (props?: Omit<BooleanValidationOptions<false>, "required">) => z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
10
|
+
type BooleanOptionalSchema = ReturnType<typeof getBooleanOptional>;
|
|
11
|
+
export declare function getBooleanSchema(props?: BooleanValidationOptions<true>): BooleanRequiredSchema;
|
|
12
|
+
export declare function getBooleanSchema(props?: BooleanValidationOptions<false>): BooleanOptionalSchema;
|
|
13
|
+
export {};
|
|
@@ -14,6 +14,7 @@ export type NumberValidationOptions<Required extends boolean> = {
|
|
|
14
14
|
* указывает что поле обязательное
|
|
15
15
|
* @default true
|
|
16
16
|
*/
|
|
17
|
+
defaultValue?: number;
|
|
17
18
|
required?: Required;
|
|
18
19
|
message?: Partial<Record<keyof Omit<NumberValidationOptions<Required>, 'message'>, string>>;
|
|
19
20
|
};
|