@scbt-ecom/ui 0.20.0 → 0.21.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.
Files changed (70) hide show
  1. package/dist/{CustomLink-BZ2X3A56.js → CustomLink-BHI03NwX.js} +39 -39
  2. package/dist/CustomLink-BHI03NwX.js.map +1 -0
  3. package/dist/shared/ui/badge/Badge.d.ts +6 -0
  4. package/dist/shared/ui/badge/index.d.ts +1 -0
  5. package/dist/shared/ui/brandLogos/index.d.ts +1 -0
  6. package/dist/shared/ui/breadcrumbs/index.d.ts +1 -0
  7. package/dist/shared/ui/buttonIcon/index.d.ts +1 -0
  8. package/dist/shared/ui/{CustomLink.d.ts → customLink/CustomLink.d.ts} +1 -1
  9. package/dist/shared/ui/customLink/index.d.ts +1 -0
  10. package/dist/shared/ui/document/index.d.ts +1 -0
  11. package/dist/shared/ui/{FloatButton.d.ts → floatButton/FloatButton.d.ts} +1 -1
  12. package/dist/shared/ui/floatButton/index.d.ts +1 -0
  13. package/dist/shared/ui/formElements/controlled/index.d.ts +17 -0
  14. package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +28 -0
  15. package/dist/shared/ui/formElements/controlled/radio/index.d.ts +1 -0
  16. package/dist/shared/ui/formElements/radioControl/RadioControl.d.ts +3 -0
  17. package/dist/shared/ui/formElements/uncontrolled/index.d.ts +78 -0
  18. package/dist/shared/ui/formElements/uncontrolled/maskInput/MaskInput.d.ts +2 -3
  19. package/dist/shared/ui/formElements/uncontrolled/radio/RadioGroup.d.ts +51 -0
  20. package/dist/shared/ui/formElements/uncontrolled/radio/index.d.ts +2 -0
  21. package/dist/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +36 -0
  22. package/dist/shared/ui/formElements/uncontrolled/radio/ui/index.d.ts +1 -0
  23. package/dist/shared/ui/heading/index.d.ts +1 -0
  24. package/dist/shared/ui/hint/index.d.ts +1 -0
  25. package/dist/shared/ui/index.d.ts +25 -25
  26. package/dist/shared/ui/{KeyboardShortcuts.d.ts → keyboardShortcuts/KeyboardShortcuts.d.ts} +4 -4
  27. package/dist/shared/ui/keyboardShortcuts/index.d.ts +1 -0
  28. package/dist/shared/ui/ligal/index.d.ts +1 -0
  29. package/dist/shared/ui/{Loader.d.ts → loader/Loader.d.ts} +5 -5
  30. package/dist/shared/ui/loader/index.d.ts +1 -0
  31. package/dist/shared/ui/modal/Modal.d.ts +7 -4
  32. package/dist/shared/ui/modal/ui/ModalHeader.d.ts +6 -8
  33. package/dist/shared/ui/phoneView/index.d.ts +1 -0
  34. package/dist/shared/ui/{Popover.d.ts → popover/Popover.d.ts} +7 -7
  35. package/dist/shared/ui/popover/index.d.ts +1 -0
  36. package/dist/shared/ui/{ProgressBar.d.ts → progressBar/ProgressBar.d.ts} +7 -7
  37. package/dist/shared/ui/progressBar/index.d.ts +1 -0
  38. package/dist/shared/ui/responsiveContainer/index.d.ts +1 -0
  39. package/dist/shared/ui/section/index.d.ts +1 -0
  40. package/dist/shared/ui/skeleton/index.d.ts +1 -0
  41. package/dist/shared/ui/tabSwitcher/TabsSwitcher.d.ts +9 -0
  42. package/dist/shared/ui/tabSwitcher/index.d.ts +2 -0
  43. package/dist/shared/ui/tabSwitcher/model/types.d.ts +23 -0
  44. package/dist/shared/ui/tabSwitcher/ui/TabContent.d.ts +10 -0
  45. package/dist/ui.js +4932 -4798
  46. package/dist/ui.js.map +1 -1
  47. package/dist/useDevice-L83kSsN7.js.map +1 -1
  48. package/dist/widget.js +31 -31
  49. package/dist/widget.js.map +1 -1
  50. package/dist/widgets/authProvider/model/types.d.ts +5 -10
  51. package/dist/widgets/authProvider/ui/ui/AuthWrapper.d.ts +5 -4
  52. package/dist/widgets/authProvider/ui/ui/Links.d.ts +6 -5
  53. package/dist/widgets/stepper/Stepper.d.ts +2 -1
  54. package/package.json +1 -1
  55. package/dist/CustomLink-BZ2X3A56.js.map +0 -1
  56. package/dist/shared/hooks/useDevice/index.d.ts +0 -1
  57. package/dist/shared/ui/Badge.d.ts +0 -6
  58. package/dist/shared/ui/TabsSwitcher.d.ts +0 -35
  59. /package/dist/shared/hooks/{useDevice/useDevice.d.ts → useDevice.d.ts} +0 -0
  60. /package/dist/shared/ui/{brandLogos.d.ts → brandLogos/BrandLogos.d.ts} +0 -0
  61. /package/dist/shared/ui/{Breadcrumbs.d.ts → breadcrumbs/Breadcrumbs.d.ts} +0 -0
  62. /package/dist/shared/ui/{ButtonIcon.d.ts → buttonIcon/ButtonIcon.d.ts} +0 -0
  63. /package/dist/shared/ui/{Document.d.ts → document/Document.d.ts} +0 -0
  64. /package/dist/shared/ui/{Heading.d.ts → heading/Heading.d.ts} +0 -0
  65. /package/dist/shared/ui/{Hint.d.ts → hint/Hint.d.ts} +0 -0
  66. /package/dist/shared/ui/{Ligal.d.ts → ligal/Ligal.d.ts} +0 -0
  67. /package/dist/shared/ui/{PhoneView.d.ts → phoneView/PhoneView.d.ts} +0 -0
  68. /package/dist/shared/ui/{ResponsiveContainer.d.ts → responsiveContainer/ResponsiveContainer.d.ts} +0 -0
  69. /package/dist/shared/ui/{Section.d.ts → section/Section.d.ts} +0 -0
  70. /package/dist/shared/ui/{Skeleton.d.ts → skeleton/Skeleton.d.ts} +0 -0
@@ -0,0 +1,6 @@
1
+ import { HTMLAttributes, ReactElement } from 'react';
2
+ export interface IBadgeProps extends HTMLAttributes<HTMLSpanElement> {
3
+ children: ReactElement | string;
4
+ className?: string;
5
+ }
6
+ export declare const Badge: ({ children, className, ...props }: IBadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Badge';
@@ -0,0 +1 @@
1
+ export * from './BrandLogos';
@@ -0,0 +1 @@
1
+ export * from './Breadcrumbs';
@@ -0,0 +1 @@
1
+ export * from './ButtonIcon';
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { TAllowedIcons } from './icon';
3
+ import { TAllowedIcons } from '..';
4
4
  declare const customLinkConfig: (props?: ({
5
5
  intent?: "blue" | "white" | null | undefined;
6
6
  withUnderline?: boolean | null | undefined;
@@ -0,0 +1 @@
1
+ export * from './CustomLink';
@@ -0,0 +1 @@
1
+ export * from './Document';
@@ -1,4 +1,4 @@
1
- import { IButtonProps } from '.';
1
+ import { IButtonProps } from '..';
2
2
  type TFloatButtonClasses = {
3
3
  root?: string;
4
4
  button?: string;
@@ -0,0 +1 @@
1
+ export * from './FloatButton';
@@ -61,4 +61,21 @@ export declare const Controlled: {
61
61
  textHint?: string;
62
62
  }) => import("react/jsx-runtime").JSX.Element;
63
63
  SwitchControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ classes, className, control, name, rules, defaultValue, disabled, shouldUnregister, children, textHint, tooltip, popoverProps, ...props }: import('./switch/SwitchControl').SwitchControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
64
+ RadioGroupControl: <TFieldValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues>({ classes, className, control, name, rules, shouldUnregister, disabled, defaultValue, textHint, label, ...props }: import('react-hook-form').UseControllerProps<TFieldValues, import('react-hook-form').Path<TFieldValues>> & Omit<import('..').RadioGroupBaseProps, "classes"> & {
65
+ label: string;
66
+ control: import('react-hook-form').Control<TFieldValues>;
67
+ classes?: {
68
+ item?: string;
69
+ indicator?: string;
70
+ label?: string;
71
+ } & {
72
+ root?: string;
73
+ list?: string;
74
+ } & {
75
+ container?: string;
76
+ message?: string;
77
+ label?: string;
78
+ };
79
+ textHint?: string;
80
+ }) => import("react/jsx-runtime").JSX.Element;
64
81
  };
@@ -0,0 +1,28 @@
1
+ import { Control, FieldPath, FieldValues, UseControllerProps } from 'react-hook-form';
2
+ import { RadioGroupBaseProps } from '../../..';
3
+ type RadioControlClasses = RadioGroupBaseProps['classes'] & {
4
+ container?: string;
5
+ message?: string;
6
+ label?: string;
7
+ };
8
+ type RadioGroupControlProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = UseControllerProps<TFieldValues, TName> & Omit<RadioGroupBaseProps, 'classes'> & {
9
+ /**
10
+ * Отображаемый лейбл
11
+ */
12
+ label: string;
13
+ /**
14
+ * Контрол объект для управления полем
15
+ */
16
+ control: Control<TFieldValues>;
17
+ /**
18
+ * Дополнительные стили компонента
19
+ */
20
+ classes?: RadioControlClasses;
21
+ /**
22
+ * Дополнительный текст
23
+ */
24
+ textHint?: string;
25
+ };
26
+ declare const InnerComponent: <TFieldValues extends FieldValues = FieldValues>({ classes, className, control, name, rules, shouldUnregister, disabled, defaultValue, textHint, label, ...props }: RadioGroupControlProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const RadioGroupControl: typeof InnerComponent;
28
+ export {};
@@ -0,0 +1 @@
1
+ export { RadioGroupControl } from './RadioGroupControl';
@@ -28,5 +28,8 @@ export interface IRadioControlProps<T extends FieldValues> extends TRadioOptions
28
28
  classes?: TRadioClasses;
29
29
  disabled?: boolean;
30
30
  }
31
+ /**
32
+ * @deprecated For better performance use `Controlled.RadioGroupControl` instead.
33
+ */
31
34
  export declare const RadioControl: <T extends FieldValues>({ radioItemsGroup, control, groupName, helperText, disabled, classes, orientation, ...props }: IRadioControlProps<T>) => import("react/jsx-runtime").JSX.Element;
32
35
  export {};
@@ -0,0 +1,78 @@
1
+ export type { InputBaseProps } from './input';
2
+ export type { MaskInputProps } from './maskInput';
3
+ export type { SelectBaseProps, SelectItemOption } from './select';
4
+ export type { CheckboxBaseProps, CheckedState } from './checkbox';
5
+ export type { SwitchBaseProps } from './switch';
6
+ export type { RadioGroupBaseProps, RadioOption } from './radio';
7
+ export declare const Uncontrolled: {
8
+ InputBase: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "placeholder"> & {
9
+ classes?: {
10
+ container?: string;
11
+ input?: string;
12
+ label?: string;
13
+ };
14
+ label: string;
15
+ invalid?: boolean;
16
+ attachmentProps?: import('../../../types').DeepPartial<import('../ui').IFieldAttachmentProps>;
17
+ renderValues?: () => React.JSX.Element | null;
18
+ } & import('react').RefAttributes<HTMLInputElement>>;
19
+ MaskInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "placeholder"> & {
20
+ classes?: {
21
+ container?: string;
22
+ input?: string;
23
+ label?: string;
24
+ };
25
+ label: string;
26
+ invalid?: boolean;
27
+ attachmentProps?: import('../../../types').DeepPartial<import('../ui').IFieldAttachmentProps>;
28
+ renderValues?: () => React.JSX.Element | null;
29
+ } & {
30
+ mask: "datetime" | "email" | "numeric" | "currency" | "decimal" | "integer" | "percentage" | "url" | "ip" | "mac" | "ssn" | "brl-currency" | "cpf" | "cnpj" | (string & {}) | (string[] & {}) | null;
31
+ externalMaskDefinitions?: Record<string, import('./maskInput/MaskInput').Definition>;
32
+ } & import('react').RefAttributes<HTMLInputElement>>;
33
+ SelectBase: import('react').ForwardRefExoticComponent<Omit<import('react-select').Props<import('./select').SelectItemOption, boolean>, "options" | "defaultValue" | "placeholder" | "isSearchable"> & Pick<import('./input').InputBaseProps, "invalid" | "label" | "attachmentProps"> & {
34
+ isSearchable?: boolean;
35
+ returnValue?: (option: import('./select').SelectItemOption) => string;
36
+ displayValue?: (option: import('./select').SelectItemOption) => string;
37
+ classes?: {
38
+ container?: string;
39
+ control?: import('./select/ui').ControlClasses;
40
+ option?: import('./select/ui').SelectItemClasses;
41
+ list?: import('./select/ui').SelectListClasses;
42
+ };
43
+ options: import('./select').SelectItemOption[];
44
+ filterOptionDisabled?: boolean;
45
+ } & import('react').RefAttributes<import('node_modules/react-select/dist/declarations/src/Select').default<import('./select').SelectItemOption, boolean, import('react-select').GroupBase<import('./select').SelectItemOption>>>>;
46
+ CheckboxBase: import('react').ForwardRefExoticComponent<import('@radix-ui/react-checkbox').CheckboxProps & {
47
+ classes?: {
48
+ root?: string;
49
+ indicator?: string;
50
+ };
51
+ invalid?: boolean;
52
+ } & import('react').RefAttributes<HTMLButtonElement>>;
53
+ DayPickerBase: import('react').ForwardRefExoticComponent<Omit<import('./maskInput').MaskInputProps, "value" | "onChange" | "mask"> & {
54
+ defaultOpen?: boolean;
55
+ value?: string;
56
+ onChange?: (value: string) => void;
57
+ } & import('react').RefAttributes<HTMLInputElement>>;
58
+ SwitchBase: import('react').ForwardRefExoticComponent<import('@radix-ui/react-switch').SwitchProps & {
59
+ classes?: {
60
+ root?: string;
61
+ thumb?: string;
62
+ };
63
+ } & import('react').RefAttributes<HTMLButtonElement>>;
64
+ RadioGroupBase: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-radio-group').RadioGroupProps, "children"> & {
65
+ options: import('./radio').RadioOption[];
66
+ displayValue?: (option: import('./radio').RadioOption) => string;
67
+ returnValue?: (option: import('./radio').RadioOption) => string;
68
+ classes?: {
69
+ item?: string;
70
+ indicator?: string;
71
+ label?: string;
72
+ } & {
73
+ root?: string;
74
+ list?: string;
75
+ };
76
+ invalid?: boolean;
77
+ } & import('react').RefAttributes<HTMLDivElement>>;
78
+ };
@@ -1,4 +1,3 @@
1
- import { useInputMask } from 'use-mask-input';
2
1
  import { InputBaseProps } from '../input';
3
2
  type Validator = (char: string) => boolean;
4
3
  type Casing = 'upper' | 'lower' | 'title';
@@ -13,7 +12,7 @@ export type MaskInputProps = InputBaseProps & {
13
12
  /**
14
13
  * маска, по которой будет определяться валидация символов
15
14
  */
16
- mask: Parameters<typeof useInputMask>[0]['mask'];
15
+ mask: 'datetime' | 'email' | 'numeric' | 'currency' | 'decimal' | 'integer' | 'percentage' | 'url' | 'ip' | 'mac' | 'ssn' | 'brl-currency' | 'cpf' | 'cnpj' | (string & {}) | (string[] & {}) | null;
17
16
  /**
18
17
  * дополнительные валидаторы спец символов в маске
19
18
  */
@@ -40,7 +39,7 @@ export declare const MaskInput: import('react').ForwardRefExoticComponent<Omit<i
40
39
  /**
41
40
  * маска, по которой будет определяться валидация символов
42
41
  */
43
- mask: Parameters<typeof useInputMask>[0]["mask"];
42
+ mask: "datetime" | "email" | "numeric" | "currency" | "decimal" | "integer" | "percentage" | "url" | "ip" | "mac" | "ssn" | "brl-currency" | "cpf" | "cnpj" | (string & {}) | (string[] & {}) | null;
44
43
  /**
45
44
  * дополнительные валидаторы спец символов в маске
46
45
  */
@@ -0,0 +1,51 @@
1
+ import { RadioGroupProps as RadioGroupPrimitiveProps } from '@radix-ui/react-radio-group';
2
+ import { RadioItemProps, RadioOption } from './ui';
3
+ type RadioGroupClasses = RadioItemProps['classes'] & {
4
+ root?: string;
5
+ list?: string;
6
+ };
7
+ export type RadioGroupBaseProps = Omit<RadioGroupPrimitiveProps, 'children'> & {
8
+ /**
9
+ * Список отображаемых опций
10
+ */
11
+ options: RadioOption[];
12
+ /**
13
+ * Функция для управления отображаемым значением
14
+ */
15
+ displayValue?: (option: RadioOption) => string;
16
+ /**
17
+ * Функция для управления возвращаемым значением
18
+ */
19
+ returnValue?: (option: RadioOption) => string;
20
+ /**
21
+ * Дополнительные стили внутренних компонентов
22
+ */
23
+ classes?: RadioGroupClasses;
24
+ /**
25
+ * Свойство для отображения не валидного поля
26
+ */
27
+ invalid?: boolean;
28
+ };
29
+ export declare const RadioGroupBase: import('react').ForwardRefExoticComponent<Omit<RadioGroupPrimitiveProps, "children"> & {
30
+ /**
31
+ * Список отображаемых опций
32
+ */
33
+ options: RadioOption[];
34
+ /**
35
+ * Функция для управления отображаемым значением
36
+ */
37
+ displayValue?: (option: RadioOption) => string;
38
+ /**
39
+ * Функция для управления возвращаемым значением
40
+ */
41
+ returnValue?: (option: RadioOption) => string;
42
+ /**
43
+ * Дополнительные стили внутренних компонентов
44
+ */
45
+ classes?: RadioGroupClasses;
46
+ /**
47
+ * Свойство для отображения не валидного поля
48
+ */
49
+ invalid?: boolean;
50
+ } & import('react').RefAttributes<HTMLDivElement>>;
51
+ export {};
@@ -0,0 +1,2 @@
1
+ export { RadioGroupBase, type RadioGroupBaseProps } from './RadioGroup';
2
+ export type { RadioOption } from './ui';
@@ -0,0 +1,36 @@
1
+ import { RadioGroupItemProps } from '@radix-ui/react-radio-group';
2
+ export type RadioOption = {
3
+ id: number | string;
4
+ value: string;
5
+ label: string;
6
+ disabled?: boolean;
7
+ };
8
+ type RadioItemClasses = {
9
+ item?: string;
10
+ indicator?: string;
11
+ label?: string;
12
+ };
13
+ export type RadioItemProps = Omit<RadioGroupItemProps, 'value'> & {
14
+ /**
15
+ * Опция списка
16
+ */
17
+ item: RadioOption;
18
+ /**
19
+ * Функция для управления отображаемым значением
20
+ */
21
+ displayValue?: (option: RadioOption) => string;
22
+ /**
23
+ * Функция для управления возвращаемым значением
24
+ */
25
+ returnValue?: (option: RadioOption) => string;
26
+ /**
27
+ * Дополнительные стили внутренних компонентов
28
+ */
29
+ classes?: RadioItemClasses;
30
+ /**
31
+ * Свойство для отображения не валидного поля
32
+ */
33
+ invalid?: boolean;
34
+ };
35
+ export declare const RadioItem: import('react').MemoExoticComponent<({ item, disabled, displayValue, returnValue, classes, className, invalid, ...props }: RadioItemProps) => import("react/jsx-runtime").JSX.Element>;
36
+ export {};
@@ -0,0 +1 @@
1
+ export { RadioItem, type RadioOption, type RadioItemProps } from './RadioItem';
@@ -0,0 +1 @@
1
+ export * from './Heading';
@@ -0,0 +1 @@
1
+ export * from './Hint';
@@ -1,27 +1,27 @@
1
- export { Section, type ISectionProps } from './Section';
2
- export { ResponsiveContainer, type IResponsiveContainerProps } from './ResponsiveContainer';
3
- export { Button, type IButtonProps } from './button';
4
- export { ButtonIcon, type IButtonIconProps } from './ButtonIcon';
5
- export * from './PhoneView';
6
- export { Badge, type IBadgeProps } from './Badge';
7
- export { Loader, type ILoaderProps } from './Loader';
8
- export { Skeleton, type ISkeletonProps } from './Skeleton';
1
+ export * from './section';
2
+ export * from './responsiveContainer';
3
+ export * from './button';
4
+ export * from './buttonIcon';
5
+ export * from './phoneView';
6
+ export * from './badge';
7
+ export * from './loader';
8
+ export * from './skeleton';
9
+ export * from './floatButton';
10
+ export * from './ligal';
9
11
  export * from './calendar';
10
- export * from './FloatButton';
11
- export * from './Ligal';
12
- export { Accordion, type IAccordionProps } from './accordion';
13
- export { Hint, type IHintProps } from './Hint';
14
- export { Popover } from './Popover';
15
- export { ProgressBar, type IProgressBarProps } from './ProgressBar';
16
- export { TabsSwitcher, type ITabsSwitcherProps, type ITabRenderContent } from './TabsSwitcher';
17
- export { Modal } from './modal';
18
- export { type INotificationProps, Notification } from './notification';
19
- export { NotificationProvider, type INotificationProviderProps } from './providers';
20
- export { Heading, type IHeadingProps } from './Heading';
21
- export { Icon, type IconProps, type TAllowedIcons, type SpritesMap } from './icon';
22
- export { brandLogos, type TBrandLogoVariant } from './brandLogos';
23
- export { Breadcrumbs, type IBreadcrumbsProps } from './Breadcrumbs';
24
- export { CustomLink, type ICustomLinkProps } from './CustomLink';
25
- export { Document, type IDocumentProps } from './Document';
26
- export { type IKeyboardShortcutsProps, KeyboardShortcuts } from './KeyboardShortcuts';
12
+ export * from './accordion';
13
+ export * from './hint';
14
+ export * from './popover';
15
+ export * from './progressBar';
16
+ export * from './tabSwitcher';
17
+ export * from './modal';
18
+ export * from './notification';
19
+ export * from './providers';
20
+ export * from './heading';
21
+ export * from './icon';
22
+ export * from './brandLogos';
23
+ export * from './breadcrumbs';
24
+ export * from './customLink';
25
+ export * from './document';
26
+ export * from './keyboardShortcuts';
27
27
  export * from './formElements';
@@ -1,11 +1,11 @@
1
1
  type TKeyboardShortcutsClasses = {
2
- root: string;
3
- keys: string;
4
- key: string;
2
+ root?: string;
3
+ keys?: string;
4
+ key?: string;
5
5
  };
6
6
  export interface IKeyboardShortcutsProps {
7
7
  keyList: string[];
8
- classes?: Partial<TKeyboardShortcutsClasses>;
8
+ classes?: TKeyboardShortcutsClasses;
9
9
  }
10
10
  export declare const KeyboardShortcuts: ({ keyList, classes }: IKeyboardShortcutsProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -0,0 +1 @@
1
+ export * from './KeyboardShortcuts';
@@ -0,0 +1 @@
1
+ export * from './Ligal';
@@ -7,15 +7,15 @@ declare const loaderConfig: (props?: ({
7
7
  intent?: "primary" | "secondary" | null | undefined;
8
8
  size?: "sm" | "md" | "lg" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
- type ILoaderClasses = {
11
- wrapper: string;
12
- loader: string;
13
- text: string;
10
+ type TLoaderClasses = {
11
+ wrapper?: string;
12
+ loader?: string;
13
+ text?: string;
14
14
  };
15
15
  export interface ILoaderProps extends VariantProps<typeof loaderConfig>, VariantProps<typeof wrapperConfig>, Omit<HTMLAttributes<HTMLDivElement>, 'className'> {
16
16
  intent?: 'primary' | 'secondary' | null;
17
17
  text?: ReactElement | string;
18
- classes?: Partial<ILoaderClasses>;
18
+ classes?: TLoaderClasses;
19
19
  }
20
20
  export declare const Loader: ({ size, classes, intent, position, text, ...props }: ILoaderProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export {};
@@ -0,0 +1 @@
1
+ export * from './Loader';
@@ -1,16 +1,19 @@
1
- import { IModalHeaderProps, TModalHeaderClasses } from './ui/ModalHeader';
1
+ import { TModalHeaderClasses } from './ui/ModalHeader';
2
2
  import * as React from 'react';
3
- type IModalClasses = TModalHeaderClasses & {
3
+ type IModalClasses = {
4
4
  overlay: string;
5
5
  modal: string;
6
6
  content: string;
7
+ modalHeader?: TModalHeaderClasses;
7
8
  };
8
- export interface IModalProps extends IModalHeaderProps {
9
+ export interface IModalProps {
9
10
  children: React.ReactElement;
10
11
  isModalOpen: boolean;
11
- classes?: Partial<IModalClasses>;
12
+ classes?: IModalClasses;
12
13
  isPortal?: boolean;
13
14
  portalContainer?: HTMLElement;
15
+ title?: string | React.ReactElement;
16
+ closeModal: () => void;
14
17
  }
15
18
  export declare const Modal: ({ title, children, isModalOpen, isPortal, portalContainer, closeModal, classes }: IModalProps) => import("react/jsx-runtime").JSX.Element;
16
19
  export {};
@@ -1,12 +1,10 @@
1
- import * as React from 'react';
1
+ import { IModalProps } from '../Modal';
2
2
  export type TModalHeaderClasses = {
3
- header: string;
4
- title: string;
5
- icon: string;
3
+ header?: string;
4
+ title?: string;
5
+ icon?: string;
6
6
  };
7
- export interface IModalHeaderProps {
8
- title?: string | React.ReactElement;
9
- closeModal: () => void;
10
- classes?: Partial<TModalHeaderClasses>;
7
+ export interface IModalHeaderProps extends Pick<IModalProps, 'closeModal' | 'title'> {
8
+ classes?: TModalHeaderClasses;
11
9
  }
12
10
  export declare const ModalHeader: ({ title, closeModal, classes }: IModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './PhoneView';
@@ -2,12 +2,12 @@ import { ReactElement, ReactNode } from 'react';
2
2
  import { PopoverContentProps as TPopoverContentPropsBase } from '@radix-ui/react-popover';
3
3
  import * as PopoverPrimitive from '@radix-ui/react-popover';
4
4
  type TPopoverClasses = {
5
- root: string;
6
- content: string;
7
- trigger: string;
8
- arrowIcon: string;
9
- closeIcon: string;
10
- closeTrigger: string;
5
+ root?: string;
6
+ content?: string;
7
+ trigger?: string;
8
+ arrowIcon?: string;
9
+ closeIcon?: string;
10
+ closeTrigger?: string;
11
11
  };
12
12
  interface IPopoverContentProps extends TPopoverContentPropsBase {
13
13
  sideOffset?: number;
@@ -20,7 +20,7 @@ interface IPopoverContentProps extends TPopoverContentPropsBase {
20
20
  export interface IPopoverProps extends IPopoverContentProps {
21
21
  triggerElement: ReactElement;
22
22
  children: ReactNode;
23
- classes?: Partial<TPopoverClasses>;
23
+ classes?: TPopoverClasses;
24
24
  portalContainer?: PopoverPrimitive.PopoverPortalProps['container'];
25
25
  }
26
26
  export declare const Popover: ({ triggerElement, classes, sideOffset, alignOffset, align, side, defaultOpen, avoidCollisions, children, arrowPadding, portalContainer, ...contentProps }: IPopoverProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Popover';
@@ -1,18 +1,18 @@
1
1
  import * as React from 'react';
2
2
  type IProgressBarClasses = {
3
- wrapper: string;
4
- topContent: string;
5
- bottomContent: string;
6
- progressBar: string;
7
- progress: string;
8
- loader: string;
3
+ root?: string;
4
+ topContent?: string;
5
+ bottomContent?: string;
6
+ progressBar?: string;
7
+ progress?: string;
8
+ loader?: string;
9
9
  };
10
10
  export interface IProgressBarProps {
11
11
  topContent?: React.ReactElement;
12
12
  bottomContent?: React.ReactElement;
13
13
  progress: number;
14
14
  maxPercent?: number;
15
- classes?: Partial<IProgressBarClasses>;
15
+ classes?: IProgressBarClasses;
16
16
  }
17
17
  export declare const ProgressBar: ({ topContent, bottomContent, progress, maxPercent, classes }: IProgressBarProps) => import("react/jsx-runtime").JSX.Element;
18
18
  export {};
@@ -0,0 +1 @@
1
+ export * from './ProgressBar';
@@ -0,0 +1 @@
1
+ export * from './ResponsiveContainer';
@@ -0,0 +1 @@
1
+ export * from './Section';
@@ -0,0 +1 @@
1
+ export * from './Skeleton';
@@ -0,0 +1,9 @@
1
+ import { ITabRenderContent, TTabsClasses } from './model/types';
2
+ export interface ITabsSwitcherProps {
3
+ renderContent: ITabRenderContent;
4
+ value: string;
5
+ onChangeTab: (tab: string) => void;
6
+ defaultActiveTabId?: string;
7
+ classes?: TTabsClasses;
8
+ }
9
+ export declare const TabsSwitcher: ({ renderContent, defaultActiveTabId, value, onChangeTab, classes }: ITabsSwitcherProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './TabsSwitcher';
2
+ export type * from './model/types';
@@ -0,0 +1,23 @@
1
+ import { TTabContentClasses } from '../ui/TabContent';
2
+ export type TTabsClasses = {
3
+ root?: string;
4
+ list?: string;
5
+ trigger?: string;
6
+ tabContent?: TTabContentClasses;
7
+ };
8
+ export interface ITabContent {
9
+ id: string;
10
+ body: React.ReactElement | string;
11
+ accordion?: {
12
+ title: string | React.ReactElement;
13
+ };
14
+ }
15
+ interface ITabTrigger {
16
+ id: string;
17
+ label: string;
18
+ }
19
+ export interface ITabRenderContent {
20
+ triggers: ITabTrigger[];
21
+ contents: ITabContent[];
22
+ }
23
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ITabContent } from '../model/types';
2
+ export type TTabContentClasses = {
3
+ content?: string;
4
+ contentsWrapper?: string;
5
+ };
6
+ export interface ITabContentProps {
7
+ contents: ITabContent[];
8
+ classes?: TTabContentClasses;
9
+ }
10
+ export declare const TabContent: ({ classes, contents }: ITabContentProps) => import("react/jsx-runtime").JSX.Element;