@egovernments/digit-ui-components 0.0.1-webpack.11 → 0.0.1-webpack.112
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 +1 -136
- package/dist/main.js +1 -0
- package/package.json +6 -19
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -86
package/README.md
CHANGED
|
@@ -1,139 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
# digit-ui-components
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
```bash
|
|
7
|
-
npm install --save @egovernments/digit-ui-components
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Limitation
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
This Package is more specific to DIGIT-UI's can be used across mission's
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
After adding the dependency make sure you have this dependency in
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
frontend/micro-ui/web/package.json
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
"@egovernments/digit-ui-components":"0.0.1",
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
then navigate to App.js
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
frontend/micro-ui/web/src/App.js
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
# Syntax for importing any components
|
|
35
|
-
|
|
36
|
-
```jsx
|
|
37
|
-
import { SVG } from "@egovernments/digit-ui-components";
|
|
38
|
-
|
|
39
|
-
<SVG.Accessibility />;
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
# Local Development
|
|
43
|
-
Use Node 14 version
|
|
44
|
-
|
|
45
|
-
Step 1
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
yarn install
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Step 2
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
yarn storybook
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## [0.0.1-beta.28] - 2024-05-24
|
|
59
|
-
|
|
60
|
-
### New Changes
|
|
61
|
-
|
|
62
|
-
- Added restrictSelection prop in Multiselectdropdown. If this is sent as true, it restricts any option to get selected.
|
|
63
|
-
|
|
64
|
-
- Usage:
|
|
65
|
-
```jsx
|
|
66
|
-
<MultiSelectDropdown
|
|
67
|
-
restrictSelection={true}
|
|
68
|
-
/>
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
## [0.0.1-beta.22] - 2024-05-20
|
|
75
|
-
|
|
76
|
-
### Breaking Changes
|
|
77
|
-
|
|
78
|
-
- 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`.
|
|
79
|
-
- Old Usage:
|
|
80
|
-
```jsx
|
|
81
|
-
<Toast info={true} label={"Info Toast"} />
|
|
82
|
-
<Toast warning="warning" label={"Warning Toast"}/>
|
|
83
|
-
<Toast error={true} label={"Error Toast"}/>
|
|
84
|
-
```
|
|
85
|
-
- New Usage:
|
|
86
|
-
```jsx
|
|
87
|
-
<Toast type="info" label={"Info Toast"} />
|
|
88
|
-
<Toast type="warning" label={"Warning Toast"} />
|
|
89
|
-
<Toast type="error" label={"Error Toast"} />
|
|
90
|
-
<Toast type="success" label={"Success Toast"} />
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## Changelog
|
|
94
|
-
|
|
95
|
-
### Summary for Version [0.0.2] - 2024-06-03
|
|
96
|
-
|
|
97
|
-
#### New Changes
|
|
98
|
-
|
|
99
|
-
- Added Error Message Component.
|
|
100
|
-
- Added Info Button Component.
|
|
101
|
-
- Added Panels Component.
|
|
102
|
-
- Added Popup Component with two variants: `default` and `alert`.
|
|
103
|
-
- Added RemoveableTag Component.
|
|
104
|
-
- Added Stepper Component.
|
|
105
|
-
- Added TextBlock Component.
|
|
106
|
-
- Added Timeline Component.
|
|
107
|
-
- Added Uploader Component with three variants: `UploadFile`, `UploadPopup`, and `UploadImage`.
|
|
108
|
-
- Added PanelCard Molecule.
|
|
109
|
-
|
|
110
|
-
#### Enhancements
|
|
111
|
-
|
|
112
|
-
- Updated Button Component Styles.
|
|
113
|
-
- Updated Dropdown Component Styles and added SelectAll Option.
|
|
114
|
-
- Updated InfoCard Component Styles.
|
|
115
|
-
- Added Animation for Toast.
|
|
116
|
-
- Added new prop `type` for Toast, replacing the separate props for `info`, `warning`, and `error`.
|
|
117
|
-
- Updated Typography with lineHeight.
|
|
118
|
-
- Updated Color Typography.
|
|
119
|
-
|
|
120
|
-
For a detailed changelog, see the [CHANGELOG.md](./CHANGELOG.md) file.
|
|
121
|
-
|
|
122
|
-
## Published from DIGIT-UI-LIBRARIES
|
|
123
|
-
|
|
124
|
-
DIGIT-UI-LIBRARIES Repo (https://github.com/egovernments/DIGIT-UI-LIBRARIES/tree/master)
|
|
125
|
-
|
|
126
|
-
# Contributors
|
|
127
|
-
|
|
128
|
-
[nabeelmd-egov] [anilsingha-eGov] [nipunarora-eGov] [swathi-egov] [jagankumar-egov]
|
|
129
|
-
|
|
130
|
-
# Reference
|
|
131
|
-
|
|
132
|
-
Home Page (https://unified-dev.digit.org/storybook/)
|
|
133
|
-
|
|
134
|
-
## License
|
|
135
|
-
|
|
136
|
-
MIT © [jagankumar-egov](https://github.com/jagankumar-egov)
|
|
137
|
-
|
|
138
|
-

|
|
139
|
-
|
|
4
|
+
#test
|
package/dist/main.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["@egovernments/digit-ui-components"]=t(require("react")):e["@egovernments/digit-ui-components"]=t(e.React)}(this,(e=>(()=>{"use strict";var t={12:t=>{t.exports=e}},o={};function r(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{TestComponent:()=>u});var i=r(12),p=r.n(i);const u=(e,t)=>p().createElement("div",null,"Test Component");return n})()));
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egovernments/digit-ui-components",
|
|
3
|
-
"version": "0.0.1-webpack.
|
|
3
|
+
"version": "0.0.1-webpack.112",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"main": "dist/
|
|
5
|
+
"main": "dist/main.js",
|
|
6
|
+
"module": "dist/main.js",
|
|
6
7
|
"source": "src/index.js",
|
|
7
8
|
"engines": {
|
|
8
9
|
"node": ">=18"
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
"author": "Jagankumar <jagan.kumar@egov.org.in>",
|
|
12
13
|
"scripts": {
|
|
13
14
|
"example": "cd example && npm run start",
|
|
14
|
-
"build": "webpack --config webpack.config.js",
|
|
15
|
+
"build": "webpack --mode=production --node-env=production --config webpack.config.js",
|
|
15
16
|
"prepare": "yarn build",
|
|
16
17
|
"publish:components": "npm publish --tag core-webpack-v0.1",
|
|
17
18
|
"predeploy": "cd example && yarn install && yarn run build",
|
|
@@ -23,8 +24,6 @@
|
|
|
23
24
|
"@babel/preset-react": "^7.23.3",
|
|
24
25
|
"babel-loader": "^8.0.0",
|
|
25
26
|
"cross-env": "7.0.3",
|
|
26
|
-
"gh-pages": "2.2.0",
|
|
27
|
-
"husky": "7.0.4",
|
|
28
27
|
"lint-staged": "12.3.7",
|
|
29
28
|
"webpack": "^5.89.0",
|
|
30
29
|
"webpack-cli": "^4.10.0"
|
|
@@ -32,21 +31,9 @@
|
|
|
32
31
|
"files": [
|
|
33
32
|
"dist"
|
|
34
33
|
],
|
|
35
|
-
"
|
|
36
|
-
"@babel/plugin-transform-react-jsx": "7.16.0",
|
|
37
|
-
"@egovernments/digit-ui-svg-components": "1.0.0-webpack.1",
|
|
38
|
-
"@googlemaps/js-api-loader": "1.13.10",
|
|
39
|
-
"autoprefixer": "^10.4.15",
|
|
40
|
-
"date-fns": "3.6.0",
|
|
41
|
-
"postcss-flexbugs-fixes": "^5.0.2",
|
|
34
|
+
"peerDependencies": {
|
|
42
35
|
"react": "18.3.1",
|
|
43
|
-
"react-dom": "18.3.1"
|
|
44
|
-
"react-date-range": "2.0.1",
|
|
45
|
-
"react-hook-form": "7.52.1",
|
|
46
|
-
"react-i18next": "15.0.0",
|
|
47
|
-
"react-lottie": "1.2.4",
|
|
48
|
-
"react-responsive": "10.0.0",
|
|
49
|
-
"react-router-dom": "6.25.1"
|
|
36
|
+
"react-dom": "18.3.1"
|
|
50
37
|
},
|
|
51
38
|
"browserslist": {
|
|
52
39
|
"production": [
|