@commercetools-uikit/toggle-input 19.9.0 → 19.11.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.
|
@@ -139,7 +139,7 @@ ToggleInput.defaultProps = defaultProps;
|
|
|
139
139
|
var ToggleInput$1 = ToggleInput;
|
|
140
140
|
|
|
141
141
|
// NOTE: This string will be replaced on build time with the package version.
|
|
142
|
-
var version = "19.
|
|
142
|
+
var version = "19.11.0";
|
|
143
143
|
|
|
144
144
|
exports["default"] = ToggleInput$1;
|
|
145
145
|
exports.version = version;
|
|
@@ -124,7 +124,7 @@ ToggleInput.defaultProps = defaultProps;
|
|
|
124
124
|
var ToggleInput$1 = ToggleInput;
|
|
125
125
|
|
|
126
126
|
// NOTE: This string will be replaced on build time with the package version.
|
|
127
|
-
var version = "19.
|
|
127
|
+
var version = "19.11.0";
|
|
128
128
|
|
|
129
129
|
exports["default"] = ToggleInput$1;
|
|
130
130
|
exports.version = version;
|
|
@@ -121,6 +121,6 @@ ToggleInput.defaultProps = defaultProps;
|
|
|
121
121
|
var ToggleInput$1 = ToggleInput;
|
|
122
122
|
|
|
123
123
|
// NOTE: This string will be replaced on build time with the package version.
|
|
124
|
-
var version = "19.
|
|
124
|
+
var version = "19.11.0";
|
|
125
125
|
|
|
126
126
|
export { ToggleInput$1 as default, version };
|
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
import type { ChangeEventHandler } from 'react';
|
|
2
2
|
export type TToggleInputProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Used as the HTML `id` property
|
|
5
|
+
*/
|
|
3
6
|
id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Used as the HTML `name` property
|
|
9
|
+
*/
|
|
4
10
|
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The size of the ToggleInput component.
|
|
13
|
+
*/
|
|
5
14
|
size: 'small' | 'big';
|
|
15
|
+
/**
|
|
16
|
+
* Disables the ToggleInput
|
|
17
|
+
*/
|
|
6
18
|
isDisabled: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Checks the ToggleInput
|
|
21
|
+
*/
|
|
7
22
|
isChecked: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Determines the toggle state.
|
|
25
|
+
*/
|
|
8
26
|
value?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Handler when toggle state changes. <br/>
|
|
29
|
+
* **Note**: that key value of the `target` is `checked`.
|
|
30
|
+
*/
|
|
9
31
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
10
32
|
};
|
|
11
33
|
export declare const defaultProps: Pick<TToggleInputProps, 'isDisabled' | 'isChecked' | 'size'>;
|
|
12
34
|
declare const ToggleInput: {
|
|
13
35
|
(props: TToggleInputProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
36
|
displayName: string;
|
|
15
|
-
defaultProps: Pick<TToggleInputProps, "
|
|
37
|
+
defaultProps: Pick<TToggleInputProps, "isDisabled" | "size" | "isChecked">;
|
|
16
38
|
};
|
|
17
39
|
export default ToggleInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/toggle-input",
|
|
3
3
|
"description": "The `ToggleInput` component allows a single settings option to be turned on or off.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.11.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/input-utils": "19.
|
|
27
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/constraints": "19.11.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.11.0",
|
|
26
|
+
"@commercetools-uikit/input-utils": "19.11.0",
|
|
27
|
+
"@commercetools-uikit/utils": "19.11.0",
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
29
29
|
"@emotion/styled": "^11.10.5",
|
|
30
30
|
"prop-types": "15.8.1"
|