indicator-ui 1.0.14 → 1.0.16
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/index.cjs +5 -5
- package/dist/index.js +1139 -1146
- package/dist/indicator-ui.css +1 -1
- package/dist/types/src/ui/Toggle/types/ToggleTypes.d.ts +2 -2
- package/dist/types/src/ui/ToggleBase/index.d.ts +0 -1
- package/dist/types/src/ui/ToggleBase/ui/ToggleBase.d.ts +15 -2
- package/package.json +1 -1
- package/dist/types/src/ui/ToggleBase/types/ToggleBaseTypes.d.ts +0 -17
- package/dist/types/src/ui/ToggleBase/types/index.d.ts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ToggleBase } from '../..';
|
|
3
3
|
type AdditionElementPropsType = {
|
|
4
4
|
isHover?: boolean;
|
|
5
5
|
active?: boolean;
|
|
@@ -35,6 +35,6 @@ export type TogglePropsType = {
|
|
|
35
35
|
* */
|
|
36
36
|
textAfterElement?: AdditionElementType;
|
|
37
37
|
theme?: "light" | "dark";
|
|
38
|
-
size?:
|
|
38
|
+
size?: React.ComponentProps<typeof ToggleBase>['size'];
|
|
39
39
|
};
|
|
40
40
|
export {};
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { AsProps } from '../../../types';
|
|
3
|
+
type PropsType<T extends React.ElementType> = AsProps<T, {
|
|
4
|
+
/**
|
|
5
|
+
* Активирована ли кнопка. (В дизайне pressed)
|
|
6
|
+
* */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
size?: 'medium' | 'large';
|
|
9
|
+
error?: boolean;
|
|
10
|
+
hover?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
theme?: "light" | "dark";
|
|
14
|
+
}>;
|
|
15
|
+
export declare function ToggleBase<T extends React.ElementType>(props: PropsType<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type ToggleBaseSizeType = 'medium' | 'large';
|
|
2
|
-
export type ToggleBasePropsType = {
|
|
3
|
-
/**
|
|
4
|
-
* Активирована ли кнопка. (В дизайне pressed)
|
|
5
|
-
* */
|
|
6
|
-
active?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
size?: ToggleBaseSizeType;
|
|
9
|
-
error?: boolean;
|
|
10
|
-
hover?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Включает обертку в ```<button>```, иначе обернет в ```<span>```.
|
|
14
|
-
* */
|
|
15
|
-
isButton?: boolean;
|
|
16
|
-
theme?: "light" | "dark";
|
|
17
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ToggleBaseTypes';
|