@os1-platform/console-ui-react 0.1.11 → 0.1.13
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/commonjs/components/modal/interface.js.map +1 -1
- package/dist/commonjs/components/toast/interface.js.map +1 -1
- package/dist/commonjs/types/components/modal/interface.d.ts +0 -1
- package/dist/commonjs/types/components/toast/interface.d.ts +0 -1
- package/package.json +1 -1
- package/readme.md +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../src/components/modal/interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ModalConfig {\n bgColor: string,\n title: string,\n message: string,\n icon: string,\n buttons: Button[]\n id?: string,\n}\n\nexport interface Button {\n id: string,\n backgroundColor: string,\n text: string,\n event: string,\n}\n\nexport interface ModalProps {\n
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../src/components/modal/interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ModalConfig {\n bgColor: string,\n title: string,\n message: string,\n icon: string,\n buttons: Button[]\n id?: string,\n}\n\nexport interface Button {\n id: string,\n backgroundColor: string,\n text: string,\n event: string,\n}\n\nexport interface ModalProps {\n elementId: string,\n modalConfig: ModalConfig;\n}\n\nexport interface RouterProps {\n component: string,\n path: string,\n exact: boolean,\n props?: {} | undefined\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../src/components/toast/interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ToastConfig {\n bgColor: string,\n message: string,\n timeout?: number,\n icon: string,\n closeButton: boolean,\n id?: string,\n}\n\nexport interface ToastProps {\n
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../src/components/toast/interface.ts"],"names":[],"mappings":"","sourcesContent":["export interface ToastConfig {\n bgColor: string,\n message: string,\n timeout?: number,\n icon: string,\n closeButton: boolean,\n id?: string,\n}\n\nexport interface ToastProps {\n elementId: string,\n toastConfig: ToastConfig;\n}"]}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
<OS1Toast elementId={"toastElement"} toastConfig={toastConfig} />
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
NOTE: Each toast element that is to be rendered on the page should be given a unique elementId.
|
|
79
|
+
NOTE: Each toast element that is to be rendered on the page should be given a unique elementId.
|
|
80
80
|
|
|
81
81
|
6. Use the Modal function to render a modal component in your webpage.
|
|
82
82
|
For example:
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
/>;
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
Note:- Listen to event when button is clicked, `event.details` will contain the modal element Id.
|
|
105
|
+
Note:- Listen to event when button is clicked, `event.details` will contain the modal element Id.
|
|
106
106
|
|
|
107
107
|
7. Use state variable of `ConsoleUIContext` context to listen to events emitted by injectable controls. This instance is usually passed as a prop to apps.
|
|
108
108
|
For example:
|