@egovernments/digit-ui-components 0.0.1-beta.20 → 0.0.1-beta.22

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
@@ -58,6 +58,8 @@ yarn storybook
58
58
  # Changelog
59
59
 
60
60
  ```bash
61
+ 0.0.1-beta.22 From this version of ui-components the Toast component will have a new prop named type, replacing the seperate props for info,warning and error
62
+ 0.0.1-beta.21 Added categorySelectAllState in the nestedmultiselect variant of multiselectdropdown
61
63
  0.0.1-beta.20 updated multiselectdropdown categoryselectall functionality and added key navigation for dropdown options
62
64
  0.0.1-beta.19 making CheckBox more customizable and adding custom color for Button
63
65
  0.0.1-beta.18 updated dropdown option labels
@@ -79,6 +81,26 @@ yarn storybook
79
81
  0.0.1 base version
80
82
  ```
81
83
 
84
+ ## [0.0.1-beta.22] - 2024-05-20
85
+
86
+ ### Breaking Changes
87
+
88
+ - Toast Component: From this version of `ui-components`, the `Toast` component has a new prop named `type`, replacing the separate props for `info`, `warning`, and `error`.
89
+ - Old Usage:
90
+ ```jsx
91
+ <Toast info={true} label={"Info Toast"} />
92
+ <Toast warning="warning" label={"Warning Toast"}/>
93
+ <Toast error={true} label={"Error Toast"}/>
94
+ ```
95
+ - New Usage:
96
+ ```jsx
97
+ <Toast type="info" label={"Info Toast"} />
98
+ <Toast type="warning" label={"Warning Toast"} />
99
+ <Toast type="error" label={"Error Toast"} />
100
+ <Toast type="success" label={"Success Toast"} />
101
+ ```
102
+
103
+
82
104
  ## Published from DIGIT Core
83
105
 
84
106
  Digit Core Repo (https://github.com/egovernments/Core-Platform/tree/digit-ui-core)