profinansy-ui-lib 4.1.18 → 4.1.20

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IRatingStars } from './RatingStars.typed';
3
+ declare const RatingStars: React.ForwardRefExoticComponent<IRatingStars & React.RefAttributes<HTMLDivElement>>;
4
+ export { RatingStars };
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $backgroundColor?: string;
4
+ $gap: number | string;
5
+ $padding: string;
6
+ $mobilePadding: string;
7
+ $mobileBreakpoint: number;
8
+ }>> & string;
9
+ export declare const StarButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ export interface IRatingStars extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** Текущее значение рейтинга. 0 означает, что оценка не выбрана */
4
+ rating?: number;
5
+ /** Событие выбора оценки */
6
+ onRatingChange?: (value: number) => void;
7
+ /** Максимальное количество звезд */
8
+ maxRating?: number;
9
+ /** Отключает интерактивность */
10
+ disabled?: boolean;
11
+ /** Позволяет сбросить рейтинг повторным кликом по выбранной звезде */
12
+ allowReset?: boolean;
13
+ /** Цвет подложки блока со звездами */
14
+ backgroundColor?: string;
15
+ /** Цвет активной звезды */
16
+ activeColor?: string;
17
+ /** Цвет неактивной звезды */
18
+ inactiveColor?: string;
19
+ /** Размер звезды на десктопе */
20
+ starSize?: number;
21
+ /** Размер звезды на мобильной версии */
22
+ mobileStarSize?: number;
23
+ /** Отступ между звездами */
24
+ gap?: number | string;
25
+ /** Внутренние отступы блока со звездами */
26
+ padding?: string;
27
+ /** Внутренние отступы блока со звездами на мобильной версии */
28
+ mobilePadding?: string;
29
+ /** Ширина экрана, ниже которой используется мобильный размер */
30
+ mobileBreakpoint?: number;
31
+ /** ARIA label для группы звезд */
32
+ ariaLabel?: string;
33
+ }
@@ -0,0 +1,2 @@
1
+ export { RatingStars } from './RatingStars';
2
+ export type { IRatingStars } from './RatingStars.typed';
package/dist/index.d.ts CHANGED
@@ -34,6 +34,8 @@ export { SwiperButton } from './components/uikit/SwiperButton';
34
34
  export { Counter } from './components/uikit/Counter';
35
35
  export { SegmentControl } from './components/uikit/SegmentControl';
36
36
  export { Checkbox } from './components/uikit/Checkbox';
37
+ export { RatingStars } from './components/uikit/RatingStars';
38
+ export type { IRatingStars } from './components/uikit/RatingStars';
37
39
  export { FilterButton } from './components/uikit/FilterButton';
38
40
  export { ControlButton } from './components/uikit/ControlButton';
39
41
  export { SortingButton } from './components/uikit/SortingButton';