@egovernments/digit-ui-components 0.0.1-beta.21 → 0.0.1-beta.23

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