Skip to content

Commit

Permalink
added shpicon in customsvgs (#136)
Browse files Browse the repository at this point in the history
* added shpicon in customsvgs

* removed shpicon
  • Loading branch information
Swathi-eGov authored Oct 14, 2024
1 parent aa08933 commit 90b0f96
Show file tree
Hide file tree
Showing 11 changed files with 161 additions and 12 deletions.
2 changes: 1 addition & 1 deletion react/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-components-css",
"version": "0.0.2-beta.37",
"version": "0.0.2-beta.38",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <jagan.kumar@egovernments.org>",
Expand Down
2 changes: 1 addition & 1 deletion react/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "webpack --mode production"
},
"dependencies": {
"@egovernments/digit-ui-components": "0.0.2-beta.46",
"@egovernments/digit-ui-components": "0.0.2-beta.47",
"@egovernments/digit-ui-libraries": "1.8.2-beta.1",
"@egovernments/digit-ui-module-common": "1.7.10",
"@egovernments/digit-ui-module-core": "1.8.1-beta.6",
Expand Down
2 changes: 1 addition & 1 deletion react/example/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
rel='stylesheet' type='text/css'>
<link
rel="stylesheet"
href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.37/dist/index.css"
href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.38/dist/index.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#00bcd1" />
Expand Down
2 changes: 1 addition & 1 deletion react/modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@egovernments/digit-ui-components": "0.0.2-beta.46",
"@egovernments/digit-ui-components": "0.0.2-beta.47",
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion react/modules/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@egovernments/digit-ui-react-components": "1.8.1-beta.4",
"@egovernments/digit-ui-components": "0.0.2-beta.46",
"@egovernments/digit-ui-components": "0.0.2-beta.47",
"react": "17.0.2",
"react-date-range": "^1.4.0",
"react-dom": "17.0.2",
Expand Down
4 changes: 2 additions & 2 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
"@babel/plugin-syntax-jsx": "^7.24.1",
"@babel/preset-react": "^7.24.1",
"@egovernments/digit-ui-libraries": "1.8.2-beta.1",
"@egovernments/digit-ui-components-css":"0.0.2-beta.37",
"@egovernments/digit-ui-components-css":"0.0.2-beta.38",
"@egovernments/digit-ui-module-core": "1.8.1-beta.6",
"@egovernments/digit-ui-module-project": "0.3.4",
"@egovernments/digit-ui-module-sample": "0.0.1",
"@egovernments/digit-ui-react-components": "1.7.10",
"@egovernments/digit-ui-svg-components": "1.0.12",
"@egovernments/digit-ui-components": "0.0.2-beta.46",
"@egovernments/digit-ui-components": "0.0.2-beta.47",
"babel-loader": "8.1.0",
"clean-webpack-plugin": "4.0.0",
"css-loader": "5.2.6",
Expand Down
2 changes: 1 addition & 1 deletion react/ui-components/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<head>
<!-- .storybook/preview-head.html -->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.37/dist/index.css"/>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.38/dist/index.css"/>
<!-- Pull in static files served from your Static directory or the internet -->
<!-- Example: `main.js|ts` is configured with staticDirs: ['../public'] and your font is located in the `fonts` directory inside your `public` directory -->
<link rel="preload" href="/fonts/my-font.woff2" />
Expand Down
4 changes: 2 additions & 2 deletions react/ui-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-components",
"version": "0.0.2-beta.46",
"version": "0.0.2-beta.47",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.modern.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"dist"
],
"dependencies": {
"@egovernments/digit-ui-components-css": "0.0.2-beta.37",
"@egovernments/digit-ui-components-css": "0.0.2-beta.38",
"@egovernments/digit-ui-libraries": "1.8.1-beta.1",
"@egovernments/digit-ui-svg-components": "1.0.12",
"@googlemaps/js-api-loader": "1.13.10",
Expand Down
2 changes: 1 addition & 1 deletion react/ui-components/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.37/dist/index.css"/>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-components-css@0.0.2-beta.38/dist/index.css"/>
<link rel="icon" href="https://egov-dev-assets.s3.ap-south-1.amazonaws.com/browser-icon.png" />
<style>
.custom-class path {
Expand Down
2 changes: 1 addition & 1 deletion react/ui-components/src/atoms/CustomSVG.js
Original file line number Diff line number Diff line change
Expand Up @@ -3548,5 +3548,5 @@ export const CustomSVG = {
DocXlsxUpload,
DocPdfUpload,
DocdocUpload,
AddIconNew
AddIconNew,
};
149 changes: 149 additions & 0 deletions react/ui-components/src/molecules/stories/BottomSheet.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
import React from "react";
import BottomSheet from "../BottomSheet";
import {Button} from "../../atoms";
import { IMAGES } from "../../constants/images/images";

export default {
title: "Molecules/BottomSheet",
component: BottomSheet,
argTypes: {
initialState: {
control: "select",
options: ["closed", "fixed", "quarter", "intermediate", "full"],
},
enableActions: {
control: "boolean",
},
equalWidthButtons: {
control: "boolean",
},
className: {
control: "text",
},
style: {
control: { type: "object" },
},
},
};

const Template = (args) => <BottomSheet {...args}>{args.children}</BottomSheet>;

const commonArgs = {
initialState: "closed",
enableActions: false,
className: "",
style: {},
equalWidthButtons: false,
};

const getImageUrl = (imageKey) => {
return IMAGES[imageKey];
};

const digitImg = getImageUrl("DIGIT_LIGHT");

const additionalElements = [
<div key="1" className="typography heading-l" style={{color:"#363636"}}>BottomSheet</div>,
<div key="1" className="typography body-xs" style={{color:"#363636"}}>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</div>,
<img key="2" alt="Powered by DIGIT" src={digitImg} />,
];

const actions = [
<Button
key="2"
label={"Action 1"}
size="large"
variation={"primary"}
isDisabled={false}
/>,
];

export const Closed = Template.bind({});
Closed.args = {
...commonArgs,
initialState: "closed",
children: additionalElements,
};

export const Fixed = Template.bind({});
Fixed.args = {
...commonArgs,
initialState: "fixed",
children: additionalElements,
};

export const Quarter = Template.bind({});
Quarter.args = {
...commonArgs,
initialState: "quarter",
children: additionalElements,
};

export const Intermediate = Template.bind({});
Intermediate.args = {
...commonArgs,
initialState: "intermediate",
children: additionalElements,
};

export const Full = Template.bind({});
Full.args = {
...commonArgs,
initialState: "full",
children: additionalElements,
};

export const ClosedWithActions = Template.bind({});
ClosedWithActions.args = {
...commonArgs,
initialState: "closed",
enableActions: true,
children: additionalElements,
actions: actions,
};

export const FixedWithActions = Template.bind({});
FixedWithActions.args = {
...commonArgs,
initialState: "fixed",
enableActions: true,
children: additionalElements,
actions: actions,
};

export const QuarterWithActions = Template.bind({});
QuarterWithActions.args = {
...commonArgs,
initialState: "quarter",
enableActions: true,
children: additionalElements,
actions: actions,
};

export const IntermediateWithActions = Template.bind({});
IntermediateWithActions.args = {
...commonArgs,
initialState: "intermediate",
enableActions: true,
children: additionalElements,
actions: actions,
};

export const FullWithActions = Template.bind({});
FullWithActions.args = {
...commonArgs,
initialState: "full",
enableActions: true,
children: additionalElements,
actions: actions,
};

export const ClosedWithActionsEqualWidthButtons = Template.bind({});
ClosedWithActionsEqualWidthButtons.args = {
...commonArgs,
initialState: "closed",
enableActions: true,
children: additionalElements,
actions: actions,
equalWidthButtons: true,
};

0 comments on commit 90b0f96

Please sign in to comment.