@commercetools-uikit/view-switcher 19.22.4 → 19.22.6
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/README.md
CHANGED
|
@@ -99,13 +99,13 @@ export { UncontrolledExample, ControlledExample };
|
|
|
99
99
|
|
|
100
100
|
## Properties
|
|
101
101
|
|
|
102
|
-
| Props | Type
|
|
103
|
-
| ----------------- |
|
|
104
|
-
| `isCondensed` | `boolean`
|
|
105
|
-
| `children` | `
|
|
106
|
-
| `onChange` | `Function`<br/>[See signature.](#signature-
|
|
107
|
-
| `defaultSelected` | `string`
|
|
108
|
-
| `selectedValue` | `string`
|
|
102
|
+
| Props | Type | Required | Default | Description |
|
|
103
|
+
| ----------------- | -------------------------------------------------------------------------------------------- | :------: | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
104
|
+
| `isCondensed` | `boolean` | | | Indicates that the view switcher can be reduced to save space. |
|
|
105
|
+
| `children` | `union`<br/>Possible values:<br/>`TViewSwitcherButtonElement , TViewSwitcherButtonElement[]` | ✅ | | Pass one or more `ViewSwitcher.Button` components. |
|
|
106
|
+
| `onChange` | `Function`<br/>[See signature.](#signature-onchange) | | | Will be triggered whenever a `ViewSwitcher.Button` is selected. Called with the ViewSwitcherButton value.
This function is only required when the component is controlled. |
|
|
107
|
+
| `defaultSelected` | `string` | | | Passing this prop makes the component an uncontrolled component.
Indicates the default selected button it is only used to as an initial state once, when the component mounts. |
|
|
108
|
+
| `selectedValue` | `string` | | | Passing this prop makes the component an controlled component.
Controlled components also require to pass a `onChange` callback function. |
|
|
109
109
|
|
|
110
110
|
## Signatures
|
|
111
111
|
|
|
@@ -123,7 +123,7 @@ ViewSwitcher$1.displayName = 'ViewSwitcher.Group';
|
|
|
123
123
|
var Group = ViewSwitcher$1;
|
|
124
124
|
|
|
125
125
|
// NOTE: This string will be replaced on build time with the package version.
|
|
126
|
-
var version = "19.22.
|
|
126
|
+
var version = "19.22.6";
|
|
127
127
|
|
|
128
128
|
const ViewSwitcher = {
|
|
129
129
|
Group,
|
|
@@ -104,7 +104,7 @@ ViewSwitcher$1.displayName = 'ViewSwitcher.Group';
|
|
|
104
104
|
var Group = ViewSwitcher$1;
|
|
105
105
|
|
|
106
106
|
// NOTE: This string will be replaced on build time with the package version.
|
|
107
|
-
var version = "19.22.
|
|
107
|
+
var version = "19.22.6";
|
|
108
108
|
|
|
109
109
|
const ViewSwitcher = {
|
|
110
110
|
Group,
|
|
@@ -112,7 +112,7 @@ ViewSwitcher$1.displayName = 'ViewSwitcher.Group';
|
|
|
112
112
|
var Group = ViewSwitcher$1;
|
|
113
113
|
|
|
114
114
|
// NOTE: This string will be replaced on build time with the package version.
|
|
115
|
-
var version = "19.22.
|
|
115
|
+
var version = "19.22.6";
|
|
116
116
|
|
|
117
117
|
const ViewSwitcher = {
|
|
118
118
|
Group,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/view-switcher",
|
|
3
3
|
"description": "ViewSwitchers allow users to toggle between two or more different views of the same, similar or related content items within the same space on screen.",
|
|
4
|
-
"version": "19.22.
|
|
4
|
+
"version": "19.22.6",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "19.22.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.22.
|
|
26
|
-
"@commercetools-uikit/utils": "19.22.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "19.22.6",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.22.6",
|
|
26
|
+
"@commercetools-uikit/utils": "19.22.6",
|
|
27
27
|
"@emotion/react": "^11.10.5",
|
|
28
28
|
"@emotion/styled": "^11.10.5",
|
|
29
29
|
"lodash": "4.17.21",
|