@scbt-ecom/ui 0.66.0 → 0.67.1

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.
Files changed (87) hide show
  1. package/dist/hooks.js +40 -44
  2. package/dist/hooks.js.map +1 -1
  3. package/dist/{index-CywQGF6V.js → index-Cw6f0svP.js} +11483 -10916
  4. package/dist/index-Cw6f0svP.js.map +1 -0
  5. package/dist/index-cm9kMt4X.js +435 -0
  6. package/dist/index-cm9kMt4X.js.map +1 -0
  7. package/dist/shared/ui/button/model/helpers.d.ts +1 -1
  8. package/dist/shared/ui/carousel/CarouselNative.d.ts +6 -0
  9. package/dist/shared/ui/formElements/controlled/index.d.ts +2 -0
  10. package/dist/shared/ui/formElements/controlled/radio/RadioGroupCardControl.d.ts +3 -0
  11. package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
  12. package/dist/shared/ui/formElements/controlled/radio/RadioGroupTabControl.d.ts +3 -0
  13. package/dist/shared/ui/formElements/controlled/radio/index.d.ts +2 -0
  14. package/dist/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +1 -1
  15. package/dist/shared/ui/formElements/uncontrolled/index.d.ts +7 -6
  16. package/dist/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -1
  17. package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +1 -1
  18. package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +12 -0
  19. package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +1 -1
  20. package/dist/shared/ui/formElements/uncontrolled/radio/ui/AdditionalContent.d.ts +12 -0
  21. package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +3 -0
  22. package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.d.ts +4 -0
  23. package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItemTab.d.ts +4 -0
  24. package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +3 -1
  25. package/dist/shared/ui/formElements/uncontrolled/select/Select.d.ts +1 -1
  26. package/dist/shared/ui/formElements/uncontrolled/select/ui/SelectItem.d.ts +1 -1
  27. package/dist/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
  28. package/dist/shared/ui/heading/Heading.d.ts +1 -1
  29. package/dist/shared/ui/hint/Hint.d.ts +1 -0
  30. package/dist/shared/ui/icon/sprite.gen.d.ts +1 -1
  31. package/dist/shared/ui/popover/Popover.d.ts +2 -1
  32. package/dist/shared/validation/base/base.validators.d.ts +2 -0
  33. package/dist/shared/validation/base/boolean.validators.d.ts +13 -0
  34. package/dist/shared/validation/base/number.validators.d.ts +1 -0
  35. package/dist/shared/validation/base/select.validators.d.ts +1 -0
  36. package/dist/shared/validation/base/string.validators.d.ts +1 -0
  37. package/dist/shared/validation/index.d.ts +1 -0
  38. package/dist/sprites/general.svg +1 -1
  39. package/dist/ui.js +1364 -1435
  40. package/dist/ui.js.map +1 -1
  41. package/dist/useDebounce-BZSs8EPD.js +1211 -0
  42. package/dist/useDebounce-BZSs8EPD.js.map +1 -0
  43. package/dist/useFieldsProgress-B_tgt_Hg.js +26 -0
  44. package/dist/useFieldsProgress-B_tgt_Hg.js.map +1 -0
  45. package/dist/validation.js +1 -1
  46. package/dist/widget.js +1264 -1098
  47. package/dist/widget.js.map +1 -1
  48. package/dist/widgets/calculator/Calculator.d.ts +7 -0
  49. package/dist/widgets/calculator/CalculatorRoot.d.ts +8 -0
  50. package/dist/widgets/calculator/index.d.ts +2 -0
  51. package/dist/widgets/calculator/model/helpers.d.ts +4 -0
  52. package/dist/widgets/calculator/model/index.d.ts +3 -0
  53. package/dist/widgets/calculator/model/types.d.ts +9 -0
  54. package/dist/widgets/calculator/model/utils.d.ts +11 -0
  55. package/dist/widgets/calculator/ui/CalculatorTabs.d.ts +12 -0
  56. package/dist/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +4 -0
  57. package/dist/widgets/calculator/ui/calculatorInfo/index.d.ts +2 -0
  58. package/dist/widgets/calculator/ui/calculatorInfo/ui/AssistHint.d.ts +7 -0
  59. package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +7 -0
  60. package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +5 -0
  61. package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +8 -0
  62. package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoHead.d.ts +5 -0
  63. package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +15 -0
  64. package/dist/widgets/calculator/ui/calculatorInfo/ui/index.d.ts +6 -0
  65. package/dist/widgets/calculator/ui/index.d.ts +3 -0
  66. package/dist/widgets/calculator/ui/rootCalculator/RootCalculator.d.ts +15 -0
  67. package/dist/widgets/calculator/ui/rootCalculator/index.d.ts +1 -0
  68. package/dist/widgets/calculator/ui/rootCalculator/ui/CalculatorModal.d.ts +8 -0
  69. package/dist/widgets/calculator/ui/rootCalculator/ui/FieldsGroup.d.ts +25 -0
  70. package/dist/widgets/calculator/ui/rootCalculator/ui/index.d.ts +2 -0
  71. package/dist/widgets/dynamicForm/DynamicForm.d.ts +2 -1
  72. package/dist/widgets/dynamicForm/model/getDynamicSchema.d.ts +0 -10
  73. package/dist/widgets/dynamicForm/model/index.d.ts +0 -1
  74. package/dist/widgets/fieldMapper/index.d.ts +1 -1
  75. package/dist/widgets/fieldMapper/model/types.d.ts +6 -0
  76. package/dist/widgets/index.d.ts +1 -0
  77. package/dist/widgets/model/helpers.d.ts +2 -2
  78. package/dist/widgets/model/index.d.ts +1 -0
  79. package/dist/widgets/model/utils.d.ts +10 -0
  80. package/package.json +3 -2
  81. package/dist/index-BKXpPQ1s.js +0 -426
  82. package/dist/index-BKXpPQ1s.js.map +0 -1
  83. package/dist/index-CywQGF6V.js.map +0 -1
  84. package/dist/useDebounce-i1sdXecI.js +0 -1196
  85. package/dist/useDebounce-i1sdXecI.js.map +0 -1
  86. package/dist/useFieldsProgress-C3nmU8Vi.js +0 -21
  87. package/dist/useFieldsProgress-C3nmU8Vi.js.map +0 -1
@@ -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;
@@ -1 +1,3 @@
1
1
  export { RadioGroupControl, type RadioGroupControlProps } from './RadioGroupControl';
2
+ export { RadioGroupTabControl } from './RadioGroupTabControl';
3
+ export { RadioGroupCardControl } from './RadioGroupCardControl';
@@ -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, "mask" | "value" | "onChange" | "classes"> & {
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>, "size" | "placeholder"> & {
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>, "size" | "placeholder"> & {
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">, "className" | "onChange" | "by" | "multiple" | "virtual"> & {
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, "mask" | "value" | "onChange" | "classes"> & {
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/ui/RadioItem').RadioItemClasses;
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>, "className" | "size"> & {
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>, "size" | "placeholder"> & {
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>, "size" | "placeholder"> & {
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 type { RadioOption } from './ui';
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;
@@ -1 +1,3 @@
1
- export { RadioItem, type RadioOption, type RadioItemProps } from './RadioItem';
1
+ export * from './RadioItem';
2
+ export * from './RadioItemCard';
3
+ export * from './RadioItemTab';
@@ -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">, "className" | "onChange" | "by" | "multiple" | "virtual"> & {
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, "className" | "value"> & {
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>, "className" | "size"> & {
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?: "h1" | "h2" | "h3" | "h4" | null | undefined;
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;
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
3
  type HintClasses = {
4
+ wrapper?: string;
4
5
  content?: string;
5
6
  arrow?: string;
6
7
  trigger?: string;
@@ -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
  };
@@ -10,6 +10,7 @@ export type SelectSingleValidationOptions<Required extends boolean, Multi extend
10
10
  * @default true
11
11
  */
12
12
  required?: Required;
13
+ defaultValue?: string;
13
14
  message?: {
14
15
  single?: string;
15
16
  multiple?: string;
@@ -19,6 +19,7 @@ export type StringValidationOptions<Required extends boolean> = {
19
19
  * @default true
20
20
  */
21
21
  required?: Required;
22
+ defaultValue?: string;
22
23
  message?: Partial<Record<keyof Omit<StringValidationOptions<Required>, 'message'> | 'root', string>>;
23
24
  };
24
25
  /**
@@ -14,6 +14,7 @@ export declare const zodValidators: {
14
14
  getDateSchema: typeof import('./base/date.validators').getDateSchema;
15
15
  getUnionSchema: typeof import('./base/union.validators').getUnionSchema;
16
16
  getUrlSchema: typeof import('./base/url.validators').getUrlSchema;
17
+ getBooleanSchema: typeof import('./base/boolean.validators').getBooleanSchema;
17
18
  };
18
19
  dadata: {
19
20
  getFioSchema: typeof import('./dadata').getFioSchema;
@@ -1 +1 @@
1
- <svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="calendar" fill="none" viewBox="0 0 19 20"><path fill="currentColor" fill-rule="evenodd" d="M4.56 0a1 1 0 0 1 1 1v.543h8.19V1a1 1 0 1 1 2 0v.604c1.714.317 3 1.834 3 3.639V16.3c0 2.032-1.63 3.7-3.667 3.7H4.417C2.38 20 .75 18.332.75 16.3V5.243a3.696 3.696 0 0 1 2.81-3.599V1a1 1 0 0 1 1-1Zm-.02 3.543h-.123c-.91 0-1.667.75-1.667 1.7v.671h14v-.671c0-.95-.758-1.7-1.667-1.7H4.58a1.066 1.066 0 0 1-.04 0Zm12.21 4.371h-14V16.3c0 .95.758 1.7 1.667 1.7h10.666c.91 0 1.667-.75 1.667-1.7V7.914Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="check" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="m4.892 13.269 4.274 4.274L18.709 8"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="close" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="edit" fill="none" viewBox="0 0 19 19"><path fill="currentColor" d="M13.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-13 13A1 1 0 0 1 5 19H1a1 1 0 0 1-1-1v-4a1 1 0 0 1 .293-.707l13-13ZM14 2.414l-12 12V17h2.586l12-12L14 2.414Z"/><path fill="currentColor" fill-rule="evenodd" d="M9 18a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="hiddenEye" fill="none" viewBox="0 0 20 18"><path fill="currentColor" d="M2.707.293a1 1 0 0 0-1.414 1.414l2.424 2.424C2.287 5.207 1.04 6.685.106 8.553a1 1 0 0 0 0 .894C2.264 13.764 6.096 16 10 16c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16Zm10.307 13.135c-.98.383-2 .572-3.014.572-2.969 0-6.002-1.62-7.87-5 .817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72Zm3.538-2.532c.483-.556.926-1.187 1.318-1.896-1.868-3.38-4.9-5-7.87-5-.112 0-.224.002-.336.007L7.879 2.223A10.215 10.215 0 0 1 10 2c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894 13.107 13.107 0 0 1-1.925 2.865l-1.417-1.416Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="menu" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M2 5.75c0-.69.56-1.25 1.25-1.25h17.5a1.25 1.25 0 1 1 0 2.5H3.25C2.56 7 2 6.44 2 5.75ZM2 12c0-.69.56-1.25 1.25-1.25h17.5a1.25 1.25 0 1 1 0 2.5H3.25C2.56 13.25 2 12.69 2 12Zm0 6.25c0-.69.56-1.25 1.25-1.25h17.5a1.25 1.25 0 1 1 0 2.5H3.25c-.69 0-1.25-.56-1.25-1.25Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="plus" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 1 1 0-2h6V1a1 1 0 0 1 1-1Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="reorder" fill="none" viewBox="0 0 12 18"><path fill="currentColor" d="M2.5 4a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm5-12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-2 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="showEye" fill="none" viewBox="0 0 20 14"><path fill="currentColor" d="M13 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/><path fill="currentColor" d="M19.894 6.553C17.736 2.236 13.904 0 10 0 6.097 0 2.264 2.236.106 6.553a1 1 0 0 0 0 .894C2.264 11.764 6.096 14 10 14c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894ZM10 12c-2.969 0-6.002-1.62-7.87-5C3.998 3.62 7.03 2 10 2c2.969 0 6.002 1.62 7.87 5-1.868 3.38-4.901 5-7.87 5Z"/></symbol></svg>
1
+ <svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="calendar" fill="none" viewBox="0 0 19 20"><path fill="currentColor" fill-rule="evenodd" d="M4.56 0a1 1 0 0 1 1 1v.543h8.19V1a1 1 0 1 1 2 0v.604c1.714.317 3 1.834 3 3.639V16.3c0 2.032-1.63 3.7-3.667 3.7H4.417C2.38 20 .75 18.332.75 16.3V5.243a3.696 3.696 0 0 1 2.81-3.599V1a1 1 0 0 1 1-1Zm-.02 3.543h-.123c-.91 0-1.667.75-1.667 1.7v.671h14v-.671c0-.95-.758-1.7-1.667-1.7H4.58a1.066 1.066 0 0 1-.04 0Zm12.21 4.371h-14V16.3c0 .95.758 1.7 1.667 1.7h10.666c.91 0 1.667-.75 1.667-1.7V7.914Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="check" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="m4.892 13.269 4.274 4.274L18.709 8"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="close" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="edit" fill="none" viewBox="0 0 19 19"><path fill="currentColor" d="M13.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-13 13A1 1 0 0 1 5 19H1a1 1 0 0 1-1-1v-4a1 1 0 0 1 .293-.707l13-13ZM14 2.414l-12 12V17h2.586l12-12L14 2.414Z"/><path fill="currentColor" fill-rule="evenodd" d="M9 18a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="hiddenEye" fill="none" viewBox="0 0 20 18"><path fill="currentColor" d="M2.707.293a1 1 0 0 0-1.414 1.414l2.424 2.424C2.287 5.207 1.04 6.685.106 8.553a1 1 0 0 0 0 .894C2.264 13.764 6.096 16 10 16c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16Zm10.307 13.135c-.98.383-2 .572-3.014.572-2.969 0-6.002-1.62-7.87-5 .817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72Zm3.538-2.532c.483-.556.926-1.187 1.318-1.896-1.868-3.38-4.9-5-7.87-5-.112 0-.224.002-.336.007L7.879 2.223A10.215 10.215 0 0 1 10 2c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894 13.107 13.107 0 0 1-1.925 2.865l-1.417-1.416Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="menu" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M2 5.75c0-.69.56-1.25 1.25-1.25h17.5a1.25 1.25 0 1 1 0 2.5H3.25C2.56 7 2 6.44 2 5.75ZM2 12c0-.69.56-1.25 1.25-1.25h17.5a1.25 1.25 0 1 1 0 2.5H3.25C2.56 13.25 2 12.69 2 12Zm0 6.25c0-.69.56-1.25 1.25-1.25h17.5a1.25 1.25 0 1 1 0 2.5H3.25c-.69 0-1.25-.56-1.25-1.25Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="plus" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 1 1 0-2h6V1a1 1 0 0 1 1-1Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="reorder" fill="none" viewBox="0 0 12 18"><path fill="currentColor" d="M2.5 4a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm5-12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm2 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-2 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="shield" fill="none" viewBox="0 0 25 24"><path fill="currentColor" d="M12.123 2.034 5.092 5.035a.967.967 0 0 0-.594.906c0 4.38.175 6.34.969 8.597 1.039 2.955 3.079 5.31 6.53 7.283.308.176.694.176 1 0 3.484-1.99 5.533-4.338 6.563-7.283.784-2.24.938-4.105.938-8.597a.973.973 0 0 0-.594-.906l-6.969-3a1.06 1.06 0 0 0-.812 0Zm.375 1.97 5.996 2.602c.087 7.175-1.32 10.32-5.987 13.181-4.79-2.979-6.061-6.158-6.012-13.173 1.363-.582 4.85-2.119 6.003-2.61Z"/><path fill="currentColor" d="M6.495 6.614c-.05 7.015 1.223 10.194 6.012 13.173l-.01-15.784c-1.152.492-4.64 2.03-6.002 2.611Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="showEye" fill="none" viewBox="0 0 20 14"><path fill="currentColor" d="M13 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/><path fill="currentColor" d="M19.894 6.553C17.736 2.236 13.904 0 10 0 6.097 0 2.264 2.236.106 6.553a1 1 0 0 0 0 .894C2.264 11.764 6.096 14 10 14c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894ZM10 12c-2.969 0-6.002-1.62-7.87-5C3.998 3.62 7.03 2 10 2c2.969 0 6.002 1.62 7.87 5-1.868 3.38-4.901 5-7.87 5Z"/></symbol></svg>