glints-aries 4.0.181 → 4.0.182

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.
@@ -34,7 +34,7 @@ Interactive.decorators = [withAlertProvider];
34
34
  Interactive.parameters = {
35
35
  docs: {
36
36
  source: {
37
- code: "\n // Add \"AlertProvider\" in your root app \n import { AlertProvider } from 'glints-aries/lib/@next';\n\n // index.js\n ReactDOM.render(\n <AlertProvider>\n <App />\n </AlertProvider>,\n document.getElementById('root')\n );\n\n // Add \"AlertWithProvider\" component in the root so it's accessible from anywhere\n // app.js\n <>\n <AlertWithProvider />\n <Dashboard />\n </> \n\n // Call \"showAlert\" anywhere from your component\n <Button\n onClick={() =>\n showAlert({\n title: 'Title',\n content: 'Content',\n children: <a href=\"#\">Learn more</a>,\n })\n }\n >\n Show Alert\n </Button>\n "
37
+ code: "\n // Add \"AlertProvider\" in your root app \n import { AlertProvider } from 'glints-aries/lib/@next';\n\n // index.js\n ReactDOM.render(\n <AlertProvider>\n <App />\n </AlertProvider>,\n document.getElementById('root')\n );\n\n // Add \"AlertWithProvider\" component in the root so it's accessible from anywhere\n // app.js\n <>\n <AlertWithProvider />\n <Dashboard />\n </> \n\n // Call \"showAlert\" anywhere from your component\n import { useAlert } from 'glints-aries/lib/@next';\n\n const { showAlert } = useAlert();\n <Button\n onClick={() =>\n showAlert({\n title: 'Title',\n content: 'Content',\n children: <a href=\"#\">Learn more</a>,\n })\n }\n >\n Show Alert\n </Button>\n "
38
38
  },
39
39
  language: 'javascript',
40
40
  type: 'auto'
@@ -41,7 +41,7 @@ Interactive.decorators = [_Decorators.withAlertProvider];
41
41
  Interactive.parameters = {
42
42
  docs: {
43
43
  source: {
44
- code: "\n // Add \"AlertProvider\" in your root app \n import { AlertProvider } from 'glints-aries/lib/@next';\n\n // index.js\n ReactDOM.render(\n <AlertProvider>\n <App />\n </AlertProvider>,\n document.getElementById('root')\n );\n\n // Add \"AlertWithProvider\" component in the root so it's accessible from anywhere\n // app.js\n <>\n <AlertWithProvider />\n <Dashboard />\n </> \n\n // Call \"showAlert\" anywhere from your component\n <Button\n onClick={() =>\n showAlert({\n title: 'Title',\n content: 'Content',\n children: <a href=\"#\">Learn more</a>,\n })\n }\n >\n Show Alert\n </Button>\n "
44
+ code: "\n // Add \"AlertProvider\" in your root app \n import { AlertProvider } from 'glints-aries/lib/@next';\n\n // index.js\n ReactDOM.render(\n <AlertProvider>\n <App />\n </AlertProvider>,\n document.getElementById('root')\n );\n\n // Add \"AlertWithProvider\" component in the root so it's accessible from anywhere\n // app.js\n <>\n <AlertWithProvider />\n <Dashboard />\n </> \n\n // Call \"showAlert\" anywhere from your component\n import { useAlert } from 'glints-aries/lib/@next';\n\n const { showAlert } = useAlert();\n <Button\n onClick={() =>\n showAlert({\n title: 'Title',\n content: 'Content',\n children: <a href=\"#\">Learn more</a>,\n })\n }\n >\n Show Alert\n </Button>\n "
45
45
  },
46
46
  language: 'javascript',
47
47
  type: 'auto'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.181",
3
+ "version": "4.0.182",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",