From a3510a1b8a972f71c2783bcb6a9e5716cf93be14 Mon Sep 17 00:00:00 2001 From: Swathi-eGov <137176788+Swathi-eGov@users.noreply.github.com> Date: Thu, 12 Dec 2024 10:35:11 +0530 Subject: [PATCH] FEATURE/HCMPRE-1447 added icons for microplan and updated versions (#2015) --- .../packages/modules/core/package.json | 2 +- .../packages/react-components/package.json | 4 +- .../packages/svg-components/package.json | 2 +- .../packages/svg-components/src/index.js | 10 +++++ .../svg-components/src/svg/AddCircle.js | 37 +++++++++++++++ .../src/svg/AddCircle.stories.js | 29 ++++++++++++ .../svg-components/src/svg/MyMicroplanSvg.js | 37 +++++++++++++++ .../src/svg/MyMicroplanSvg.stories.js | 29 ++++++++++++ .../src/svg/OpenMicroplanSvg.js | 45 +++++++++++++++++++ .../src/svg/OpenMicroplanSvg.stories.js | 29 ++++++++++++ .../src/svg/SetUpMicroplanSvg.js | 45 +++++++++++++++++++ .../src/svg/SetUpMicroplanSvg.stories.js | 29 ++++++++++++ .../src/svg/UserManagementSvg.js | 45 +++++++++++++++++++ .../src/svg/UserManagementSvg.stories.js | 29 ++++++++++++ 14 files changed, 368 insertions(+), 4 deletions(-) create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.stories.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.stories.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.stories.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.stories.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.js create mode 100644 micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.stories.js diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/package.json b/micro-ui/web/micro-ui-internals/packages/modules/core/package.json index a30324730aa..8892fc348cf 100644 --- a/micro-ui/web/micro-ui-internals/packages/modules/core/package.json +++ b/micro-ui/web/micro-ui-internals/packages/modules/core/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@egovernments/digit-ui-components":"0.0.2-beta.56", - "@egovernments/digit-ui-react-components": "1.8.10", + "@egovernments/digit-ui-react-components": "1.8.11", "react": "17.0.2", "react-dom": "17.0.2", "react-i18next": "11.16.2", diff --git a/micro-ui/web/micro-ui-internals/packages/react-components/package.json b/micro-ui/web/micro-ui-internals/packages/react-components/package.json index ed696a0eb68..6f884334c07 100644 --- a/micro-ui/web/micro-ui-internals/packages/react-components/package.json +++ b/micro-ui/web/micro-ui-internals/packages/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@egovernments/digit-ui-react-components", - "version": "1.8.10", + "version": "1.8.11", "license": "MIT", "main": "dist/index.js", "module": "dist/index.modern.js", @@ -46,7 +46,7 @@ "dist" ], "dependencies": { - "@egovernments/digit-ui-svg-components":"1.0.13", + "@egovernments/digit-ui-svg-components":"1.0.14", "@egovernments/digit-ui-components":"0.0.2-beta.56", "@googlemaps/js-api-loader": "1.13.10", "@hookform/resolvers": "1.3.7", diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/package.json b/micro-ui/web/micro-ui-internals/packages/svg-components/package.json index 00279a8a82c..1e34367951c 100644 --- a/micro-ui/web/micro-ui-internals/packages/svg-components/package.json +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/package.json @@ -1,6 +1,6 @@ { "name": "@egovernments/digit-ui-svg-components", - "version": "1.0.13", + "version": "1.0.14", "main": "dist/index.js", "module": "dist/index.modern.js", "source": "src/index.js", diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/index.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/index.js index b70dd3deffa..2fe3321d283 100644 --- a/micro-ui/web/micro-ui-internals/packages/svg-components/src/index.js +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/index.js @@ -808,8 +808,18 @@ import { ContractIcon } from "./svg/ContractIcon"; import { MeasurementMuktaIcon } from "./svg/MeasurementMuktaIcon"; import { HRIcon } from "./svg/HRIcon"; import { ShpIcon } from "./svg/ShpIcon"; +import { MyMicroplanSvg } from "./svg/MyMicroplanSvg"; +import { UserManagementSvg } from "./svg/UserManagementSvg"; +import { OpenMicroplanSvg } from "./svg/OpenMicroplanSvg"; +import { SetUpMicroplanSvg } from "./svg/SetUpMicroplanSvg"; +import { AddCircle } from "./svg/AddCircle"; export { + AddCircle, + SetUpMicroplanSvg, + MyMicroplanSvg, + OpenMicroplanSvg, + UserManagementSvg, Add, Profile, PdfIcon, diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.js new file mode 100644 index 00000000000..6fe83cc9ea8 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.js @@ -0,0 +1,37 @@ +import React from "react"; +import PropTypes from "prop-types"; + +export const AddCircle = ({ className = "", width = "24", height = "24", style = {}, fill = "#e8eaed", onClick = null, ...props }) => { + return ( + + + + ); +}; + +AddCircle.propTypes = { + /** Custom width of the SVG icon */ + width: PropTypes.string, + /** Custom height of the SVG icon */ + height: PropTypes.string, + /** Custom color of the SVG icon */ + fill: PropTypes.string, + /** Custom class of the SVG icon */ + className: PropTypes.string, + /** Custom style of the SVG icon */ + style: PropTypes.object, + /** Click event handler when icon is clicked */ + onClick: PropTypes.func, +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.stories.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.stories.js new file mode 100644 index 00000000000..3ed80b2c27a --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/AddCircle.stories.js @@ -0,0 +1,29 @@ +import React from "react"; +import { AddCircle } from "./AddCircle"; + +export default { + tags: ['autodocs'], + argTypes: { + className: { + options: ['custom-class'], + control: { type: 'check' }, + } + }, + title: "AddCircle", + component: AddCircle, +}; + +export const Default = () => ; +export const Fill = () => ; +export const Size = () => ; +export const CustomStyle = () => ; +export const CustomClassName = () => ; +export const Clickable = () => console.log("clicked")} />; + +const Template = (args) => ; + +export const Playground = Template.bind({}); +Playground.args = { + className: 'custom-class', + style: { border: "3px solid green" } +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.js new file mode 100644 index 00000000000..d7a0474cf47 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.js @@ -0,0 +1,37 @@ +import React from "react"; +import PropTypes from "prop-types"; + +export const MyMicroplanSvg = ({ className = "", width = "24", height = "24", style = {}, fill = "#e8eaed", onClick = null, ...props }) => { + return ( + + + + ); +}; + +MyMicroplanSvg.propTypes = { + /** Custom width of the SVG icon */ + width: PropTypes.string, + /** Custom height of the SVG icon */ + height: PropTypes.string, + /** Custom color of the SVG icon */ + fill: PropTypes.string, + /** Custom class of the SVG icon */ + className: PropTypes.string, + /** Custom style of the SVG icon */ + style: PropTypes.object, + /** Click event handler when icon is clicked */ + onClick: PropTypes.func, +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.stories.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.stories.js new file mode 100644 index 00000000000..ac63781745c --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/MyMicroplanSvg.stories.js @@ -0,0 +1,29 @@ +import React from "react"; +import { MyMicroplanSvg } from "./MyMicroplanSvg"; + +export default { + tags: ['autodocs'], + argTypes: { + className: { + options: ['custom-class'], + control: { type: 'check' }, + } + }, + title: "MyMicroplanSvg", + component: MyMicroplanSvg, +}; + +export const Default = () => ; +export const Fill = () => ; +export const Size = () => ; +export const CustomStyle = () => ; +export const CustomClassName = () => ; +export const Clickable = () => console.log("clicked")} />; + +const Template = (args) => ; + +export const Playground = Template.bind({}); +Playground.args = { + className: 'custom-class', + style: { border: "3px solid green" } +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.js new file mode 100644 index 00000000000..046a1d4b4b0 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.js @@ -0,0 +1,45 @@ +import React from "react"; +import PropTypes from "prop-types"; + +export const OpenMicroplanSvg = ({ + className = "", + width = "24", + height = "24", + style = {}, + fill = "#e8eaed", + onClick = null, + ...props +}) => { + return ( + + + + ); +}; + +OpenMicroplanSvg.propTypes = { + /** Custom width of the SVG icon */ + width: PropTypes.string, + /** Custom height of the SVG icon */ + height: PropTypes.string, + /** Custom color of the SVG icon */ + fill: PropTypes.string, + /** Custom class of the SVG icon */ + className: PropTypes.string, + /** Custom style of the SVG icon */ + style: PropTypes.object, + /** Click event handler when icon is clicked */ + onClick: PropTypes.func, +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.stories.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.stories.js new file mode 100644 index 00000000000..8df1fa7c626 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/OpenMicroplanSvg.stories.js @@ -0,0 +1,29 @@ +import React from "react"; +import { OpenMicroplanSvg } from "./OpenMicroplanSvg"; + +export default { + tags: ['autodocs'], + argTypes: { + className: { + options: ['custom-class'], + control: { type: 'check' }, + } + }, + title: "OpenMicroplanSvg", + component: OpenMicroplanSvg, +}; + +export const Default = () => ; +export const Fill = () => ; +export const Size = () => ; +export const CustomStyle = () => ; +export const CustomClassName = () => ; +export const Clickable = () => console.log("clicked")} />; + +const Template = (args) => ; + +export const Playground = Template.bind({}); +Playground.args = { + className: 'custom-class', + style: { border: "3px solid green" } +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.js new file mode 100644 index 00000000000..3ef36225467 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.js @@ -0,0 +1,45 @@ +import React from "react"; +import PropTypes from "prop-types"; + +export const SetUpMicroplanSvg = ({ + className = "", + width = "24", + height = "24", + style = {}, + fill = "#e8eaed", + onClick = null, + ...props +}) => { + return ( + + + + ); +}; + +SetUpMicroplanSvg.propTypes = { + /** Custom width of the SVG icon */ + width: PropTypes.string, + /** Custom height of the SVG icon */ + height: PropTypes.string, + /** Custom color of the SVG icon */ + fill: PropTypes.string, + /** Custom class of the SVG icon */ + className: PropTypes.string, + /** Custom style of the SVG icon */ + style: PropTypes.object, + /** Click event handler when icon is clicked */ + onClick: PropTypes.func, +}; \ No newline at end of file diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.stories.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.stories.js new file mode 100644 index 00000000000..30762fad4e1 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/SetUpMicroplanSvg.stories.js @@ -0,0 +1,29 @@ +import React from "react"; +import { SetUpMicroplanSvg } from "./SetUpMicroplanSvg"; + +export default { + tags: ['autodocs'], + argTypes: { + className: { + options: ['custom-class'], + control: { type: 'check' }, + } + }, + title: "SetUpMicroplanSvg", + component: SetUpMicroplanSvg, +}; + +export const Default = () => ; +export const Fill = () => ; +export const Size = () => ; +export const CustomStyle = () => ; +export const CustomClassName = () => ; +export const Clickable = () => console.log("clicked")} />; + +const Template = (args) => ; + +export const Playground = Template.bind({}); +Playground.args = { + className: 'custom-class', + style: { border: "3px solid green" } +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.js new file mode 100644 index 00000000000..9a401bbeae5 --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.js @@ -0,0 +1,45 @@ +import React from "react"; +import PropTypes from "prop-types"; + +export const UserManagementSvg = ({ + className = "", + width = "24", + height = "24", + style = {}, + fill = "#e8eaed", + onClick = null, + ...props +}) => { + return ( + + + + ); +}; + +UserManagementSvg.propTypes = { + /** Custom width of the SVG icon */ + width: PropTypes.string, + /** Custom height of the SVG icon */ + height: PropTypes.string, + /** Custom color of the SVG icon */ + fill: PropTypes.string, + /** Custom class of the SVG icon */ + className: PropTypes.string, + /** Custom style of the SVG icon */ + style: PropTypes.object, + /** Click event handler when icon is clicked */ + onClick: PropTypes.func, +}; diff --git a/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.stories.js b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.stories.js new file mode 100644 index 00000000000..def8a7f9c7b --- /dev/null +++ b/micro-ui/web/micro-ui-internals/packages/svg-components/src/svg/UserManagementSvg.stories.js @@ -0,0 +1,29 @@ +import React from "react"; +import { UserManagementSvg } from "./UserManagementSvg"; + +export default { + tags: ['autodocs'], + argTypes: { + className: { + options: ['custom-class'], + control: { type: 'check' }, + } + }, + title: "UserManagementSvg", + component: UserManagementSvg, +}; + +export const Default = () => ; +export const Fill = () => ; +export const Size = () => ; +export const CustomStyle = () => ; +export const CustomClassName = () => ; +export const Clickable = () => console.log("clicked")} />; + +const Template = (args) => ; + +export const Playground = Template.bind({}); +Playground.args = { + className: 'custom-class', + style: { border: "3px solid green" } +};