@scbt-ecom/ui 0.95.4 → 0.96.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 (72) hide show
  1. package/dist/lib/shared/style.css +1 -1
  2. package/dist/lib/shared/ui/formElements/controlled/index.js +1 -1
  3. package/dist/lib/shared/ui/formElements/controlled/index.js.map +1 -1
  4. package/dist/lib/shared/ui/formElements/uncontrolled/select/Select.js +1 -1
  5. package/dist/lib/shared/ui/formElements/uncontrolled/select/Select.js.map +1 -1
  6. package/dist/lib/widgets/calculator/ui/calculatorFields/ui/FieldsGroup.js +1 -1
  7. package/dist/lib/widgets/calculator/ui/calculatorFields/ui/FieldsGroup.js.map +1 -1
  8. package/dist/lib/widgets/model/helpers.js +2 -2
  9. package/dist/lib/widgets/model/helpers.js.map +1 -1
  10. package/dist/stats.html +1 -1
  11. package/dist/types/lib/shared/hooks/useObserverWidgets.d.ts +1 -1
  12. package/dist/types/lib/shared/ui/button/model/helpers.d.ts +1 -1
  13. package/dist/types/lib/shared/ui/carousel/model/helpers.d.ts +1 -1
  14. package/dist/types/lib/shared/ui/carousel/ui/CarouselSlide.d.ts +1 -1
  15. package/dist/types/lib/shared/ui/formElements/controlled/autocomplete/Autocomplete.d.ts +1 -1
  16. package/dist/types/lib/shared/ui/formElements/controlled/dadata/address/DadataAddress.d.ts +1 -1
  17. package/dist/types/lib/shared/ui/formElements/controlled/dadata/auto/DadataAuto.d.ts +1 -1
  18. package/dist/types/lib/shared/ui/formElements/controlled/dadata/country/DadataCountry.d.ts +1 -1
  19. package/dist/types/lib/shared/ui/formElements/controlled/dadata/fio/DadataFio.d.ts +1 -1
  20. package/dist/types/lib/shared/ui/formElements/controlled/dadata/party/DadataOrganization.d.ts +1 -1
  21. package/dist/types/lib/shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +1 -1
  22. package/dist/types/lib/shared/ui/formElements/controlled/dayPickerControl/range.d.ts +1 -1
  23. package/dist/types/lib/shared/ui/formElements/controlled/dayPickerControl/single.d.ts +1 -1
  24. package/dist/types/lib/shared/ui/formElements/controlled/index.d.ts +0 -1
  25. package/dist/types/lib/shared/ui/formElements/controlled/inputCurrency/InputCurrencyControl.d.ts +1 -1
  26. package/dist/types/lib/shared/ui/formElements/controlled/inputOtp/InputOtpControl.d.ts +1 -1
  27. package/dist/types/lib/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
  28. package/dist/types/lib/shared/ui/formElements/controlled/radio/RadioGroupTabControl.d.ts +1 -1
  29. package/dist/types/lib/shared/ui/formElements/controlled/select/SelectControl.d.ts +1 -1
  30. package/dist/types/lib/shared/ui/formElements/controlled/switch/SwitchControl.d.ts +1 -1
  31. package/dist/types/lib/shared/ui/formElements/controlled/textarea/TextareaControl.d.ts +1 -1
  32. package/dist/types/lib/shared/ui/formElements/uncontrolled/autocomplete/Autocomplete.d.ts +1 -1
  33. package/dist/types/lib/shared/ui/formElements/uncontrolled/combobox/combobox.d.ts +4 -4
  34. package/dist/types/lib/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.d.ts +2 -2
  35. package/dist/types/lib/shared/ui/formElements/uncontrolled/index.d.ts +2 -2
  36. package/dist/types/lib/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -1
  37. package/dist/types/lib/shared/ui/formElements/uncontrolled/select/Select.d.ts +3 -3
  38. package/dist/types/lib/shared/ui/formElements/uncontrolled/select/hooks/useSelectController.d.ts +1 -1
  39. package/dist/types/lib/shared/ui/formElements/uncontrolled/select/model/typeGuards.d.ts +1 -1
  40. package/dist/types/lib/shared/ui/formElements/uncontrolled/textarea/Textarea.d.ts +1 -1
  41. package/dist/types/lib/shared/ui/formElements/uncontrolled/uploader/ui/UploaderFiles.d.ts +1 -1
  42. package/dist/types/lib/shared/utils/scrollToElement.d.ts +1 -1
  43. package/dist/types/lib/widgets/authProvider/model/types.d.ts +1 -1
  44. package/dist/types/lib/widgets/authProvider/ui/ui/AuthWrapper.d.ts +1 -1
  45. package/dist/types/lib/widgets/banner/Banner.d.ts +1 -1
  46. package/dist/types/lib/widgets/banner/ui/banners/BannerImageFull.d.ts +1 -1
  47. package/dist/types/lib/widgets/banner/ui/banners/BannerWithSeparateImg.d.ts +1 -1
  48. package/dist/types/lib/widgets/benefit/model/types.d.ts +2 -2
  49. package/dist/types/lib/widgets/benefit/ui/BenefitItem.d.ts +2 -2
  50. package/dist/types/lib/widgets/buttonWithHandlers/ButtonWithHandlers.d.ts +1 -1
  51. package/dist/types/lib/widgets/calculator/ui/calculatorFields/ui/CalculatorModal.d.ts +1 -1
  52. package/dist/types/lib/widgets/calculator/ui/calculatorFields/ui/FieldsGroup.d.ts +2 -2
  53. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/ui/AssistHint.d.ts +1 -1
  54. package/dist/types/lib/widgets/dynamicForm/DynamicForm.d.ts +3 -3
  55. package/dist/types/lib/widgets/dynamicForm/model/getFieldsProgress.d.ts +2 -2
  56. package/dist/types/lib/widgets/dynamicForm/model/types.d.ts +1 -1
  57. package/dist/types/lib/widgets/dynamicFormDialog/DynamicFormDialog.d.ts +3 -3
  58. package/dist/types/lib/widgets/fieldMapper/model/types.d.ts +1 -1
  59. package/dist/types/lib/widgets/footer/model/types.d.ts +1 -1
  60. package/dist/types/lib/widgets/header/model/types.d.ts +1 -1
  61. package/dist/types/lib/widgets/infoBlock/InfoBlock.d.ts +1 -1
  62. package/dist/types/lib/widgets/infoBlock/ui/LinksList.d.ts +1 -1
  63. package/dist/types/lib/widgets/interLinking/InterLinking.d.ts +1 -1
  64. package/dist/types/lib/widgets/interLinking/ui/Column.d.ts +1 -1
  65. package/dist/types/lib/widgets/interLinking/ui/ColumnGroup.d.ts +1 -1
  66. package/dist/types/lib/widgets/seoHeader/model/types.d.ts +1 -1
  67. package/dist/types/lib/widgets/stepper/ui/StepperCarousel.d.ts +1 -1
  68. package/dist/types/lib/widgets/usefulInfo/model/types.d.ts +1 -1
  69. package/dist/types/lib/widgets/usefulInfo/ui/subEntities/documents/ui/document/model/utils.d.ts +1 -1
  70. package/dist/types/lib/widgets/userFeedback/UserFeedback.d.ts +1 -1
  71. package/dist/types/lib/widgets/userFeedback/ui/UserReview.d.ts +1 -1
  72. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { AllowedWidgets } from '../../../widgets';
1
+ import { AllowedWidgets } from '../../widgets';
2
2
  export type UseObserverWidgets = {
3
3
  ids: AllowedWidgets[];
4
4
  options?: IntersectionObserverInit;
@@ -24,7 +24,7 @@ export declare const buttonPrimitiveIntent: {
24
24
  export declare const buttonConfig: (props?: ({
25
25
  intent?: "primary" | "secondary" | "ghost" | "negative" | null | undefined;
26
26
  size?: "md" | "sm" | "lg" | null | undefined;
27
- textFormat?: "initial" | "capitalize" | "uppercase" | "lowercase" | null | undefined;
27
+ textFormat?: "capitalize" | "uppercase" | "lowercase" | "initial" | null | undefined;
28
28
  isFull?: boolean | null | undefined;
29
29
  isLoading?: boolean | null | undefined;
30
30
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,7 +1,7 @@
1
1
  import { EmblaOptionsType } from 'embla-carousel';
2
2
  import { AutoplayOptionsType } from 'embla-carousel-autoplay';
3
3
  import { CarouselSlideVariant, DotsOptions, NavArrowOptions } from './types';
4
- import { DiscriminatedUnion } from '../../../../../shared/types';
4
+ import { DiscriminatedUnion } from '../../../types';
5
5
  export declare const defaultCarouselOptions: EmblaOptionsType;
6
6
  export declare const defaultDotsOptions: DotsOptions;
7
7
  export declare const defaultNavArrowOptions: NavArrowOptions;
@@ -1,5 +1,5 @@
1
1
  import { CarouselSlideVariant } from '../model';
2
- import { DiscriminatedUnion } from '../../../../../shared/types';
2
+ import { DiscriminatedUnion } from '../../../types';
3
3
  export type CarouselSlideClasses = {
4
4
  root?: string;
5
5
  slide?: string;
@@ -1,5 +1,5 @@
1
1
  import { Control, FieldValues, Path, UseControllerProps } from 'react-hook-form';
2
- import { AutocompleteBaseProps } from '../../../../../../shared/ui';
2
+ import { AutocompleteBaseProps } from '../../..';
3
3
  export type AutocompleteControlProps<TFieldValues extends FieldValues, T, TName extends Path<TFieldValues> = Path<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<AutocompleteBaseProps<T>, 'classes'> & {
4
4
  control: Control<TFieldValues>;
5
5
  helperText?: string;
@@ -2,7 +2,7 @@ import { FieldValues } from 'react-hook-form';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { AutocompleteControlProps } from '../../autocomplete';
4
4
  import { IDadataCacheOption } from '../types';
5
- import { AutocompleteItemOption } from '../../../../../../../shared/ui';
5
+ import { AutocompleteItemOption } from '../../../..';
6
6
  export type DadataAddressProps<TFieldValues extends FieldValues> = Omit<AutocompleteControlProps<TFieldValues, IDadataCacheOption<unknown>>, 'query' | 'formatter'> & {
7
7
  dadataBaseUrl: string;
8
8
  formatter?: (item: IDadataCacheOption<unknown>) => AutocompleteItemOption<typeof item>;
@@ -2,7 +2,7 @@ import { FieldValues } from 'react-hook-form';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { AutocompleteControlProps } from '../../autocomplete';
4
4
  import { IDadataAutoOption } from '../types';
5
- import { AutocompleteItemOption } from '../../../../../../../shared/ui';
5
+ import { AutocompleteItemOption } from '../../../..';
6
6
  export type DadataAutoProps<TFieldValues extends FieldValues> = Omit<AutocompleteControlProps<TFieldValues, IDadataAutoOption>, 'query' | 'formatter'> & {
7
7
  dadataBaseUrl: string;
8
8
  formatter?: (item: IDadataAutoOption) => AutocompleteItemOption<typeof item>;
@@ -2,7 +2,7 @@ import { FieldValues } from 'react-hook-form';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { AutocompleteControlProps } from '../../autocomplete';
4
4
  import { IDadataCountryOption } from '../types';
5
- import { AutocompleteItemOption } from '../../../../../../../shared/ui';
5
+ import { AutocompleteItemOption } from '../../../..';
6
6
  export type DadataCountryProps<TFieldValues extends FieldValues> = Omit<AutocompleteControlProps<TFieldValues, IDadataCountryOption>, 'query' | 'formatter'> & {
7
7
  dadataBaseUrl: string;
8
8
  formatter?: (item: IDadataCountryOption) => AutocompleteItemOption<typeof item>;
@@ -2,7 +2,7 @@ import { FieldValues } from 'react-hook-form';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { AutocompleteControlProps } from '../../autocomplete';
4
4
  import { IDadataCacheOption } from '../types';
5
- import { AutocompleteItemOption } from '../../../../../../../shared/ui';
5
+ import { AutocompleteItemOption } from '../../../..';
6
6
  export type DadataFioProps<TFieldValues extends FieldValues> = Omit<AutocompleteControlProps<TFieldValues, IDadataCacheOption<unknown>>, 'query' | 'formatter'> & {
7
7
  dadataBaseUrl: string;
8
8
  formatter?: (item: IDadataCacheOption<unknown>) => AutocompleteItemOption<typeof item>;
@@ -2,7 +2,7 @@ import { FieldValues } from 'react-hook-form';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { AutocompleteControlProps } from '../../autocomplete';
4
4
  import { IDadataOrganizationOption } from '../types';
5
- import { AutocompleteItemOption } from '../../../../../../../shared/ui';
5
+ import { AutocompleteItemOption } from '../../../..';
6
6
  export type DadataOrganizationProps<TFieldValues extends FieldValues> = Omit<AutocompleteControlProps<TFieldValues, IDadataOrganizationOption>, 'query' | 'formatter'> & {
7
7
  dadataBaseUrl: string;
8
8
  formatter?: (item: IDadataOrganizationOption) => AutocompleteItemOption<typeof item>;
@@ -1,5 +1,5 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { Calendar, MaskInputProps } from '../../../../../../shared/ui';
2
+ import { Calendar, MaskInputProps } from '../../..';
3
3
  type CalendarProps = React.ComponentPropsWithoutRef<typeof Calendar>;
4
4
  type DayPickerControlClasses = MaskInputProps['classes'] & {
5
5
  message?: string;
@@ -1,4 +1,4 @@
1
- import { Calendar, MaskInputProps } from '../../../../../../shared/ui';
1
+ import { Calendar, MaskInputProps } from '../../..';
2
2
  type CalendarProps = React.ComponentPropsWithoutRef<typeof Calendar>;
3
3
  type RangeDayPickerClasses = MaskInputProps['classes'] & {
4
4
  calendar?: string;
@@ -1,5 +1,5 @@
1
1
  import { ExternalHandlers } from './dayPickerControl';
2
- import { Calendar, MaskInputProps } from '../../../../../../shared/ui';
2
+ import { Calendar, MaskInputProps } from '../../..';
3
3
  type CalendarProps = React.ComponentPropsWithoutRef<typeof Calendar>;
4
4
  type SingleDayPickerClasses = MaskInputProps['classes'] & {
5
5
  calendar?: string;
@@ -44,7 +44,6 @@ export declare const Controlled: {
44
44
  TextareaControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ classes, control, name, rules, disabled, defaultValue, shouldUnregister, helperText, ...props }: import('./textarea').TextareaControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
45
45
  UploaderControl: <TFieldValues extends import('react-hook-form').FieldValues>({ control, name, defaultValue, rules, shouldUnregister, classes, helperText, disabled, ...props }: import('./uploader').UploaderControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
46
46
  InputOtpControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ control, name, defaultValue, disabled, rules, shouldUnregister, classes, helperText, ...props }: import('./inputOtp').InputOtpControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
47
- EditorControl: <T extends import('react-hook-form').FieldValues>({ control, label, helperText, editable, classes, defaultValue, disabled, rules, shouldUnregister, name, ...props }: import('./editor').EditorControlProps<T>) => import("react/jsx-runtime").JSX.Element;
48
47
  InputCurrencyControl: <T extends import('react-hook-form').FieldValues>({ defaultCurrency, label, helperText, control, classes, disabled, name, defaultValue, rules, attachmentProps, shouldUnregister, externalHandlers, ...props }: import('./inputCurrency').InputCurrencyControlProps<T>) => import("react/jsx-runtime").JSX.Element;
49
48
  ComboboxControl: <TFieldValues extends import('react-hook-form').FieldValues>({ control, className, name, rules, shouldUnregister, disabled, defaultValue, options, helperText, returnValue, classes, ...props }: import('./combobox').ComboboxControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
50
49
  };
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { FieldValues, Path, UseControllerProps } from 'react-hook-form';
3
- import { InputBaseProps } from '../../../../../../shared/ui';
3
+ import { InputBaseProps } from '../../..';
4
4
  import * as React from 'react';
5
5
  export type TCurrencyVariant = 'euro' | 'dollars' | 'rubles' | 'yuan' | 'dirhams';
6
6
  export interface ICurrencyOption {
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Path, UseControllerProps } from 'react-hook-form';
2
- import { InputOtpBaseProps } from '../../../../../../shared/ui';
2
+ import { InputOtpBaseProps } from '../../..';
3
3
  type InputOtpControlClasses = InputOtpBaseProps['classes'] & {
4
4
  message?: string;
5
5
  container?: string;
@@ -1,5 +1,5 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { RadioGroupBaseProps } from '../../../../../../shared/ui';
2
+ import { RadioGroupBaseProps } from '../../..';
3
3
  type RadioControlClasses = RadioGroupBaseProps['classes'] & {
4
4
  container?: string;
5
5
  message?: string;
@@ -1,3 +1,3 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
- import { RadioGroupControlProps } from '../../../../../../shared/ui';
2
+ import { RadioGroupControlProps } from '../../..';
3
3
  export declare const RadioGroupTabControl: <TFieldValues extends FieldValues = FieldValues>({ options, ...props }: RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { SelectBaseProps, SelectItemOption } from '../../../../../../shared/ui';
2
+ import { SelectBaseProps, SelectItemOption } from '../../..';
3
3
  type SelectControlClasses = SelectBaseProps<boolean>['classes'] & {
4
4
  container?: string;
5
5
  message?: string;
@@ -1,5 +1,5 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { Popover, SwitchBaseProps } from '../../../../../../shared/ui';
2
+ import { Popover, SwitchBaseProps } from '../../..';
3
3
  type SwitchControlClasses = SwitchBaseProps['classes'] & {
4
4
  container?: string;
5
5
  message?: string;
@@ -1,5 +1,5 @@
1
1
  import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
- import { TextareaBaseProps } from '../../../../../../shared/ui';
2
+ import { TextareaBaseProps } from '../../..';
3
3
  type TextareaControlClasses = TextareaBaseProps['classes'] & {
4
4
  root?: string;
5
5
  message?: string;
@@ -1,6 +1,6 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { AutocompleteItemOption } from './types';
3
- import { SelectBaseProps } from '../../../../../../shared/ui';
3
+ import { SelectBaseProps } from '../../..';
4
4
  export interface AutocompleteBaseProps<TData> extends Omit<SelectBaseProps<boolean>, 'options' | 'inputValue' | 'onInputChange' | 'isSearchable' | 'isMulti' | 'value' | 'onChange'> {
5
5
  /**
6
6
  * Функция для запроса основанная на [@tanstack/query](https://tanstack.com/query/latest/docs/framework/react/overview)
@@ -1,9 +1,9 @@
1
1
  import { ChangeHandler, ComboboxValue } from './model';
2
2
  import { ComboboxItemOption } from './ui';
3
- import { DeepPartial } from '../../../../../../shared/types';
4
- import { DropdownListClasses, DropdownListProps } from '../../../../../../shared/ui/dropdownList';
5
- import { IFieldAttachmentProps } from '../../../../../../shared/ui/formElements/ui';
6
- import { InputBaseProps } from '../../../../../../shared/ui/formElements/uncontrolled/input';
3
+ import { DeepPartial } from '../../../../types';
4
+ import { DropdownListClasses, DropdownListProps } from '../../../dropdownList';
5
+ import { IFieldAttachmentProps } from '../../ui';
6
+ import { InputBaseProps } from '../input';
7
7
  export type ComboboxClasses = {
8
8
  root?: string;
9
9
  list?: {
@@ -1,5 +1,5 @@
1
1
  import { InputBaseClasses } from '../input/Input';
2
- import { MaskInputProps } from '../../../../../../shared/ui';
2
+ import { MaskInputProps } from '../../..';
3
3
  type ExternalHandlers = {
4
4
  onChange?: (value: string) => void;
5
5
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
@@ -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, "onChange" | "classes" | "mask" | "value"> & {
35
+ export declare const DayPickerBase: import('react').ForwardRefExoticComponent<Omit<MaskInputProps, "classes" | "onChange" | "mask" | "value"> & {
36
36
  /**
37
37
  * Указывает, открыт ли календарь по умолчанию
38
38
  */
@@ -55,7 +55,7 @@ export declare const Uncontrolled: {
55
55
  mask: "datetime" | "email" | "numeric" | "currency" | "decimal" | "integer" | "percentage" | "url" | "ip" | "mac" | "ssn" | "brl-currency" | "cpf" | "cnpj" | (string & {}) | (string[] & {}) | null;
56
56
  externalMaskDefinitions?: Record<string, import('./maskInput/MaskInput').Definition>;
57
57
  } & import('react').RefAttributes<HTMLInputElement>>;
58
- SelectBase: import('react').ForwardRefExoticComponent<Omit<import('@headlessui/react').ComboboxProps<import('./select').SelectItemOption, boolean, "li">, "onChange" | "className" | "by" | "multiple" | "virtual"> & {
58
+ SelectBase: import('react').ForwardRefExoticComponent<Omit<import('@headlessui/react').ComboboxProps<import('./select').SelectItemOption, boolean, "li">, "className" | "onChange" | "by" | "multiple" | "virtual"> & {
59
59
  label: string;
60
60
  isMulti?: boolean | undefined;
61
61
  invalid?: boolean;
@@ -83,7 +83,7 @@ export declare const Uncontrolled: {
83
83
  onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
84
84
  };
85
85
  } & import('react').RefAttributes<HTMLButtonElement>>;
86
- DayPickerBase: import('react').ForwardRefExoticComponent<Omit<import('./maskInput').MaskInputProps, "onChange" | "classes" | "mask" | "value"> & {
86
+ DayPickerBase: import('react').ForwardRefExoticComponent<Omit<import('./maskInput').MaskInputProps, "classes" | "onChange" | "mask" | "value"> & {
87
87
  defaultOpen?: boolean;
88
88
  value?: string;
89
89
  onChange?: (value: string) => void;
@@ -1,5 +1,5 @@
1
1
  import { FieldAttachment } from '../../ui';
2
- import { DeepPartial } from '../../../../../../shared/types';
2
+ import { DeepPartial } from '../../../../types';
3
3
  export type InputBaseClasses = {
4
4
  container?: string;
5
5
  input?: string;
@@ -1,8 +1,8 @@
1
1
  import { ComboboxProps } from '@headlessui/react';
2
2
  import { SelectItemOption } from './model';
3
3
  import { SelectItemProps } from './ui';
4
- import { DeepPartial } from '../../../../../../shared/types';
5
- import { FieldAttachment } from '../../../../../../shared/ui/formElements/ui';
4
+ import { DeepPartial } from '../../../../types';
5
+ import { FieldAttachment } from '../../ui';
6
6
  type FieldAttachmentProps = React.ComponentPropsWithoutRef<typeof FieldAttachment>;
7
7
  export type SelectClasses = SelectItemProps['classes'] & {
8
8
  root?: string;
@@ -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">, "onChange" | "className" | "by" | "multiple" | "virtual"> & {
84
+ export declare const SelectBase: import('react').ForwardRefExoticComponent<Omit<ComboboxProps<SelectItemOption, boolean, "li">, "className" | "onChange" | "by" | "multiple" | "virtual"> & {
85
85
  /**
86
86
  * Отображаемый лейбл
87
87
  */
@@ -1,5 +1,5 @@
1
1
  import { SelectItemOption } from '../model';
2
- import { ExternalHandlers } from '../../../../../../../shared/ui/formElements/uncontrolled/select/Select';
2
+ import { ExternalHandlers } from '../Select';
3
3
  type UseSelectControllerProps = {
4
4
  options: SelectItemOption[];
5
5
  isMulti?: boolean;
@@ -1,2 +1,2 @@
1
- import { SelectItemOption } from '../../../../../../../shared/ui';
1
+ import { SelectItemOption } from '../../../..';
2
2
  export declare const isSingleOption: (value?: SelectItemOption | SelectItemOption[]) => value is SelectItemOption | undefined;
@@ -1,5 +1,5 @@
1
1
  import { FieldAttachment } from '../../ui';
2
- import { DeepPartial } from '../../../../../../shared/types';
2
+ import { DeepPartial } from '../../../../types';
3
3
  type TextareaBaseClasses = {
4
4
  container?: string;
5
5
  textarea?: string;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { UploaderFileClasses } from '../../../../../../../shared/ui/formElements/uncontrolled/uploader/ui/UploaderFile';
2
+ import { UploaderFileClasses } from './UploaderFile';
3
3
  export type UploaderFilesClasses = {
4
4
  root?: string;
5
5
  file?: UploaderFileClasses;
@@ -1,4 +1,4 @@
1
- import { AllowedWidgets } from '../../../widgets';
1
+ import { AllowedWidgets } from '../../widgets';
2
2
  type ScrollConfig = {
3
3
  behavior?: ScrollBehavior;
4
4
  block?: ScrollLogicalPosition;
@@ -1,6 +1,6 @@
1
1
  import { AuthWrapperClasses, TLinksClasses } from '../ui/ui';
2
2
  import { AUTH_PROVIDER_MODE } from './helpers';
3
- import { LoaderProps } from '../../../../shared/ui';
3
+ import { LoaderProps } from '../../../shared/ui';
4
4
  export type CombineClasses = {
5
5
  root?: string;
6
6
  topContent?: string;
@@ -1,4 +1,4 @@
1
- import { LoaderProps } from '../../../../../shared/ui';
1
+ import { LoaderProps } from '../../../../shared/ui';
2
2
  export type AuthWrapperClasses = {
3
3
  root?: string;
4
4
  wrapper?: string;
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { BannerClasses, ButtonsConfig } from './model';
3
3
  import { Images } from './model/types';
4
4
  import { AdvantageClasses, AdvantagesProps } from './ui/banners/ui';
5
- import { BackgroundBannerColors } from '../../../shared/constants';
5
+ import { BackgroundBannerColors } from '../../shared/constants';
6
6
  export interface BannerProps {
7
7
  headTitle: string | ReactElement;
8
8
  subtitle: string | ReactElement;
@@ -1,2 +1,2 @@
1
- import { BannerProps } from '../../../../../widgets';
1
+ import { BannerProps } from '../../..';
2
2
  export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, images, backgroundColor }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { BannerProps } from '../../../../../widgets';
1
+ import { BannerProps } from '../../..';
2
2
  export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, images, backgroundColor }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { ButtonWithHandlersProps } from '../../buttonWithHandlers';
3
- import { allowedBannersBackgroundColors } from '../../../../shared/constants';
4
- import { backgroundBenefitColors, BackgroundBenefitColorsValues } from '../../../../widgets/benefit/model/constants';
3
+ import { allowedBannersBackgroundColors } from '../../../shared/constants';
4
+ import { backgroundBenefitColors, BackgroundBenefitColorsValues } from './constants';
5
5
  export type Colors = keyof typeof allowedBannersBackgroundColors;
6
6
  export type AllowedBannerBackgroundColor = `bg-banner-${Colors}`;
7
7
  export type Img = {
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { BackgroundBenefitColorsValues } from '../model/constants';
3
- import { Img } from '../../../../widgets/benefit/model/types';
4
- import { ButtonWithHandlersProps } from '../../../../widgets/buttonWithHandlers';
3
+ import { Img } from '../model/types';
4
+ import { ButtonWithHandlersProps } from '../../buttonWithHandlers';
5
5
  export type BenefitItemClasses = {
6
6
  root?: string;
7
7
  button?: string;
@@ -1,5 +1,5 @@
1
1
  import { ButtonHandlerOptions } from './model';
2
- import { ButtonProps } from '../../../shared/ui';
2
+ import { ButtonProps } from '../../shared/ui';
3
3
  export interface ButtonWithHandlersProps extends ButtonProps {
4
4
  handlerOptions: ButtonHandlerOptions;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { ModalContentVariant } from '../../../model';
2
- import { ModalProps } from '../../../../../../shared/ui';
2
+ import { ModalProps } from '../../../../../shared/ui';
3
3
  export type CalculatorModalClasses = {
4
4
  wrapper?: string;
5
5
  description?: string;
@@ -1,7 +1,7 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { FieldElementWithoutControl } from '../../../../fieldMapper';
3
- import { FieldValidation } from '../../../../../../../src/shared/utils';
4
- import { SliderAdditionalProps } from '../../../../../../shared/ui/formElements/uncontrolled/slider';
3
+ import { FieldValidation } from '../../../../../../src/shared/utils';
4
+ import { SliderAdditionalProps } from '../../../../../shared/ui/formElements/uncontrolled/slider';
5
5
  export type ValidationField = {
6
6
  validation: FieldValidation;
7
7
  };
@@ -1,4 +1,4 @@
1
- import { AllowedIcons, PopoverProps } from '../../../../../../shared/ui';
1
+ import { AllowedIcons, PopoverProps } from '../../../../../shared/ui';
2
2
  export type AssistHintClasses = {
3
3
  wrapper?: string;
4
4
  block?: string;
@@ -1,8 +1,8 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { Approvement, ApprovementType, Chips, ChipsType, Progress, ProgressField, ProgressType } from './model';
3
- import { FieldValidation } from '../../../../src/shared/utils';
4
- import { ButtonProps, CheckboxBase, ProgressBar } from '../../../shared/ui';
5
- import { FieldElement } from '../../../widgets/fieldMapper';
3
+ import { FieldValidation } from '../../../src/shared/utils';
4
+ import { ButtonProps, CheckboxBase, ProgressBar } from '../../shared/ui';
5
+ import { FieldElement } from '../fieldMapper';
6
6
  type SubmitProps = {
7
7
  submitCallback: <T extends FieldValues>(values: T) => void;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { Progress, ProgressField, ProgressType } from './types';
3
- import { ISubscribedField } from '../../../../shared/hooks';
4
- import { FieldElement } from '../../../../widgets/fieldMapper';
3
+ import { ISubscribedField } from '../../../shared/hooks';
4
+ import { FieldElement } from '../../fieldMapper';
5
5
  export declare const getFieldsProgress: <TFieldValues extends FieldValues, Type extends ProgressType>(progress: Progress<Type>, fields: FieldElement<any, any, {
6
6
  progress: ProgressField;
7
7
  }>[]) => ISubscribedField<TFieldValues>[] | null;
@@ -1,4 +1,4 @@
1
- import { AllowedIcons } from '../../../../shared/ui';
1
+ import { AllowedIcons } from '../../../shared/ui';
2
2
  type ApprovementDisabled = {
3
3
  type: 'off';
4
4
  };
@@ -1,8 +1,8 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { Approvement, ApprovementType } from './model';
3
- import { FieldValidation } from '../../../../src/shared/utils';
4
- import { ButtonProps, CheckboxBase } from '../../../shared/ui';
5
- import { FieldElement } from '../../../widgets/fieldMapper';
3
+ import { FieldValidation } from '../../../src/shared/utils';
4
+ import { ButtonProps, CheckboxBase } from '../../shared/ui';
5
+ import { FieldElement } from '../fieldMapper';
6
6
  type SubmitProps = {
7
7
  submitCallback: <T extends FieldValues>(values: T) => void;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import { FieldPath, FieldValues } from 'react-hook-form';
2
- import { Controlled } from '../../../../shared/ui';
2
+ import { Controlled } from '../../../shared/ui';
3
3
  export type ElementType = keyof typeof Controlled;
4
4
  export type FieldElement<TFieldValues extends FieldValues = FieldValues, Type extends ElementType = ElementType, ExternalProps = {}> = {
5
5
  type: Type;
@@ -1,5 +1,5 @@
1
1
  import { CopyrightClasses, FooterLogoClasses, NavigationLinksClasses, PhoneBlockClasses, SiteMapClasses, SocialLinksClasses } from '../ui';
2
- import { SpritesMap } from '../../../../shared/ui';
2
+ import { SpritesMap } from '../../../shared/ui';
3
3
  export interface FooterSocialLinks {
4
4
  iconName: `social/${SpritesMap['social']}`;
5
5
  href: string;
@@ -1,5 +1,5 @@
1
1
  import { ButtonWithHandlersProps } from '../../buttonWithHandlers';
2
- import { BrandLogoVariant, PhoneViewProps } from '../../../../shared/ui';
2
+ import { BrandLogoVariant, PhoneViewProps } from '../../../shared/ui';
3
3
  type HeaderClasses = {
4
4
  root?: string;
5
5
  container?: string;
@@ -1,5 +1,5 @@
1
1
  import { RootContentClasses, RootContentProps } from './ui';
2
- import { BackgroundBannerColors } from '../../../shared/constants';
2
+ import { BackgroundBannerColors } from '../../shared/constants';
3
3
  type InfoBlockClasses = {
4
4
  root?: string;
5
5
  container?: string;
@@ -1,4 +1,4 @@
1
- import { CustomLinkProps } from '../../../../shared/ui';
1
+ import { CustomLinkProps } from '../../../shared/ui';
2
2
  export type LinksListClasses = {
3
3
  list?: string;
4
4
  customLink?: CustomLinkProps['classes'];
@@ -1,6 +1,6 @@
1
1
  import { InterLinkingRoot } from './model/types';
2
2
  import { ColumnClasses } from './ui';
3
- import { AccordionProps } from '../../../shared/ui';
3
+ import { AccordionProps } from '../../shared/ui';
4
4
  export type InterLinkingClasses = {
5
5
  root?: string;
6
6
  headline?: string;
@@ -1,6 +1,6 @@
1
1
  import { Group } from '../model/types';
2
2
  import { ColumnGroupClasses } from './ColumnGroup';
3
- import { AccordionProps } from '../../../../shared/ui';
3
+ import { AccordionProps } from '../../../shared/ui';
4
4
  export type ColumnClasses = {
5
5
  column?: string;
6
6
  columnGroup?: ColumnGroupClasses;
@@ -1,6 +1,6 @@
1
1
  import { Group } from '../model/types';
2
2
  import { LinksListClasses } from './LinksList';
3
- import { AccordionProps } from '../../../../shared/ui';
3
+ import { AccordionProps } from '../../../shared/ui';
4
4
  export type ColumnGroupClasses = {
5
5
  columnGroup?: string;
6
6
  columnGroupHeading?: string;
@@ -1,4 +1,4 @@
1
- import { AllowedIcons } from '../../../../shared/ui';
1
+ import { AllowedIcons } from '../../../shared/ui';
2
2
  export type Link<Icon = boolean> = {
3
3
  href: string;
4
4
  icon?: Icon;
@@ -1,5 +1,5 @@
1
1
  import { SingleStepper } from '../model/types';
2
- import { CarouselClasses, CarouselSlideClasses } from '../../../../shared/ui';
2
+ import { CarouselClasses, CarouselSlideClasses } from '../../../shared/ui';
3
3
  export type StepperCarouselClasses = {
4
4
  carouselClasses?: CarouselClasses;
5
5
  carouselSlideClasses?: CarouselSlideClasses;
@@ -1,5 +1,5 @@
1
1
  import { EntityDocumentsProps, EntityHtmlProps, EntityTableProps } from '../ui/subEntities';
2
- import { AccordionProps } from '../../../../shared/ui';
2
+ import { AccordionProps } from '../../../shared/ui';
3
3
  export type SubEntityDetailsConfig = {
4
4
  isAccordion: boolean;
5
5
  accordionTitle: string;
@@ -1,4 +1,4 @@
1
- import { SpritesMap } from '../../../../../../../../../shared/ui';
1
+ import { SpritesMap } from '../../../../../../../../shared/ui';
2
2
  export type IconNames = Extract<SpritesMap['files'], 'documentFilled' | 'documentOutline'>;
3
3
  export declare const iconsMap: Record<IconNames, `files/${IconNames}`>;
4
4
  export declare const iconConfig: (props?: ({
@@ -1,6 +1,6 @@
1
1
  import { FormStep, FormStepSetter, SubmitCallback, UseRatingReturn } from './model';
2
2
  import { FinallyClasses, FinallyProps, SelectRatingClasses, SelectRatingProps, UserReviewClasses, UserReviewProps } from './ui';
3
- import { PopoverProps } from '../../../shared/ui';
3
+ import { PopoverProps } from '../../shared/ui';
4
4
  export type RenderFormStep = UserFeedbackProps & {
5
5
  formStep: FormStep;
6
6
  setFormStep: FormStepSetter;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { FormStepSetter, SubmitCallback } from '../model';
3
- import { TextareaControlProps } from '../../../../shared/ui';
3
+ import { TextareaControlProps } from '../../../shared/ui';
4
4
  export type UserReviewClasses = {
5
5
  form?: string;
6
6
  textBlock?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.95.4",
3
+ "version": "0.96.1",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {