skillgrid 0.0.34 → 0.0.35
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.
- package/dist/components/SegmentedControl/SegmentedControl.type.d.ts +8 -4
- package/dist/components/SegmentedControl/index.d.ts +1 -1
- package/dist/components/Tabs/Tabs.type.d.ts +1 -1
- package/dist/index.cjs.js +9 -9
- package/dist/index.css +1 -1
- package/dist/index.es.js +929 -900
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
type Segment<T> = {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type Segment<T> = {
|
|
3
3
|
value: T;
|
|
4
4
|
label?: ReactNode;
|
|
5
|
+
containerProps?: ComponentPropsWithoutRef<'label'>;
|
|
5
6
|
};
|
|
6
|
-
export interface SegmentedControlProps<T> {
|
|
7
|
+
export interface SegmentedControlProps<T> extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'defaultValue' | 'onChange'> {
|
|
7
8
|
className?: string;
|
|
8
9
|
/**
|
|
9
10
|
* Размер компонента
|
|
@@ -25,6 +26,10 @@ export interface SegmentedControlProps<T> {
|
|
|
25
26
|
* Значение по умолчанию
|
|
26
27
|
*/
|
|
27
28
|
defaultValue?: T;
|
|
29
|
+
/**
|
|
30
|
+
* Доступно ли изменение состояния компонента
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
28
33
|
/** Режим отображения сегментов
|
|
29
34
|
* * icon - только иконка
|
|
30
35
|
* * text - текстовый лейбл
|
|
@@ -35,4 +40,3 @@ export interface SegmentedControlProps<T> {
|
|
|
35
40
|
*/
|
|
36
41
|
onChange?: (value: T) => void;
|
|
37
42
|
}
|
|
38
|
-
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SegmentedControl } from './SegmentedControl';
|
|
2
|
-
export type
|
|
2
|
+
export { type SegmentedControlProps, type Segment } from './SegmentedControl.type';
|