skillgrid 0.0.35 → 0.0.36

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.
@@ -83,6 +83,11 @@ export interface CheckboxProps {
83
83
  * Если не передан, используется внутреннее состояние
84
84
  */
85
85
  onChange?: (checked: boolean, e?: ChangeEvent<HTMLInputElement>) => void;
86
+ /**
87
+ * Обработчик клика по чекбоксу
88
+ * @param e - MouseEvent<HTMLSpanElement>, ивент клика
89
+ */
90
+ onClick?: (e: React.MouseEvent<HTMLSpanElement>) => void;
86
91
  /**
87
92
  * Идентификатор для тестирования
88
93
  */
@@ -1,6 +1,7 @@
1
+ import { HTMLAttributes, ImgHTMLAttributes } from 'react';
1
2
  export type ImageStatus = 'loading' | 'loaded' | 'error';
2
3
  export type ImageRenderMap = Record<'loader' | 'error' | 'image', React.ReactElement>;
3
- export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'loading' | 'alt' | 'onLoad' | 'onError' | 'width' | 'height'> {
4
+ export interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'loading' | 'alt' | 'onLoad' | 'onError' | 'width' | 'height' | 'style'> {
4
5
  /**
5
6
  * Тип подгрузки картинки
6
7
  * @default 'lazy'
@@ -20,6 +21,14 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElemen
20
21
  * Дополнительный CSS класс
21
22
  */
22
23
  className?: string;
24
+ /**
25
+ * Пропсы для контейнера
26
+ */
27
+ containerProps?: HTMLAttributes<HTMLDivElement>;
28
+ /**
29
+ * Инлайн‑стили, применяемые к контейнеру изображения
30
+ */
31
+ style?: ImgHTMLAttributes<HTMLImageElement>['style'];
23
32
  /**
24
33
  * Test ID для тестирования
25
34
  * @default 'image'
@@ -9,7 +9,7 @@ export interface BaseLoaderProps {
9
9
  * Вариант цвета лоадера
10
10
  * @default 'accent'
11
11
  */
12
- variant?: 'accent' | 'neutral' | 'positive' | 'negative' | 'contrast' | 'gray' | 'special';
12
+ variant?: 'accent' | 'neutral' | 'positive' | 'negative' | 'contrast' | 'gray' | 'special' | 'custom';
13
13
  /**
14
14
  * Дополнительный CSS класс
15
15
  */