diginet-core-ui 1.3.36 → 1.3.37
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/assets/images/menu/dhr/MHRM29N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -0
- package/components/alert/index.js +115 -103
- package/components/alert/notify.js +0 -2
- package/components/avatar/index.js +19 -19
- package/components/chip/index.js +13 -10
- package/components/form-control/attachment/index.js +21 -20
- package/components/form-control/dropdown/index.js +132 -78
- package/components/modal/header.js +63 -65
- package/components/modal/modal.js +84 -130
- package/components/popover/index.js +21 -21
- package/components/slider/slider-item.js +65 -25
- package/icons/basic.js +75 -408
- package/package.json +1 -1
- package/readme.md +14 -0
- package/styles/general.js +33 -5
- package/theme/settings.js +3 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -38,6 +38,20 @@ npm test
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Changelog
|
|
41
|
+
## 1.3.37
|
|
42
|
+
\[Added\]: Icon – EditNote, Payment
|
|
43
|
+
\[Added\]: MenuIcon - MHRM29N0002
|
|
44
|
+
\[Changed\]: Alert - Add white background behind opacity background color
|
|
45
|
+
\[Changed\]: Tech - Add storybook for Colors
|
|
46
|
+
\[Changed\]: Attachment - Add ref method openFileDialog
|
|
47
|
+
\[Changed\]: Modal - Change position of Modal from center to top; Add prop alignment
|
|
48
|
+
\[Changed\]: Icon - Remove duplicate icons
|
|
49
|
+
\[Changed\]: Icon – Pdf, Word, Sheet
|
|
50
|
+
\[Fixed\]: Slider - Fix bug not showing pdf file
|
|
51
|
+
\[Fixed\]: Chip - Fix bug show wrong startIcon
|
|
52
|
+
\[Fixed\]: ModalHeader - Fix css; Add prop showClose
|
|
53
|
+
\[Fixed\]: Dropdown - Change error logic; Remove pointerEvent, userSelect when disabled; Add ref method setValue; Fix css disabled; Add prop onClosed
|
|
54
|
+
|
|
41
55
|
## 1.3.36
|
|
42
56
|
\[Added\]: MenuIcon - W05F0013N0000, MHRP39N0017, MHRM09N0005, MHRM13N0001
|
|
43
57
|
\[Changed\]: Attachment - Add prop domain, isStripDomain
|
package/styles/general.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
1
2
|
import { css, jsx } from '@emotion/core';
|
|
2
3
|
import { color } from './colors';
|
|
3
4
|
import { parseToPixel } from './utils';
|
|
4
5
|
export const rootSpacing = 4;
|
|
5
|
-
export
|
|
6
|
+
export let rootZIndex = 1500;
|
|
6
7
|
/**
|
|
7
|
-
* get value
|
|
8
|
+
* get value spacing with rootZIndex
|
|
8
9
|
* @param number
|
|
9
10
|
* @return {number}
|
|
10
11
|
*/
|
|
@@ -23,6 +24,15 @@ export const zIndex = number => {
|
|
|
23
24
|
export const getSpacing = (vl = 1) => {
|
|
24
25
|
return Number(vl) * rootSpacing;
|
|
25
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* replace rootZIndex
|
|
29
|
+
* @param number
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
export const setZIndex = number => {
|
|
33
|
+
number = Number(number || 0);
|
|
34
|
+
if (!isNaN(number)) rootZIndex = number;
|
|
35
|
+
};
|
|
26
36
|
export const flexRow = css`
|
|
27
37
|
display: flex;
|
|
28
38
|
`;
|
|
@@ -81,9 +91,21 @@ export const borderRadius4px = css`
|
|
|
81
91
|
export const borderBox = css`
|
|
82
92
|
box-sizing: border-box;
|
|
83
93
|
`;
|
|
94
|
+
export const cursorDefault = css`
|
|
95
|
+
cursor: default;
|
|
96
|
+
`;
|
|
97
|
+
export const cursorInherit = css`
|
|
98
|
+
cursor: inherit;
|
|
99
|
+
`;
|
|
100
|
+
export const cursorNotAllowed = css`
|
|
101
|
+
cursor: not-allowed;
|
|
102
|
+
`;
|
|
84
103
|
export const cursorPointer = css`
|
|
85
104
|
cursor: pointer;
|
|
86
105
|
`;
|
|
106
|
+
export const overflowAuto = css`
|
|
107
|
+
overflow: auto;
|
|
108
|
+
`;
|
|
87
109
|
export const overflowHidden = css`
|
|
88
110
|
overflow: hidden;
|
|
89
111
|
`;
|
|
@@ -107,6 +129,9 @@ export const textCapitalize = css`
|
|
|
107
129
|
export const textUppercase = css`
|
|
108
130
|
text-transform: uppercase;
|
|
109
131
|
`;
|
|
132
|
+
export const textCenter = css`
|
|
133
|
+
text-align: center;
|
|
134
|
+
`;
|
|
110
135
|
export const outlineNone = css`
|
|
111
136
|
outline: none;
|
|
112
137
|
`;
|
|
@@ -119,12 +144,12 @@ export const pointerEventsNone = css`
|
|
|
119
144
|
export const borderNone = css`
|
|
120
145
|
border: none;
|
|
121
146
|
`;
|
|
147
|
+
export const boxShadowNone = css`
|
|
148
|
+
box-shadow: none;
|
|
149
|
+
`;
|
|
122
150
|
export const displayNone = css`
|
|
123
151
|
display: none;
|
|
124
152
|
`;
|
|
125
|
-
export const textCenter = css`
|
|
126
|
-
text-align: center;
|
|
127
|
-
`;
|
|
128
153
|
export const noMargin = css`
|
|
129
154
|
margin: 0 !important;
|
|
130
155
|
`;
|
|
@@ -134,6 +159,9 @@ export const noPadding = css`
|
|
|
134
159
|
export const noBorder = css`
|
|
135
160
|
border: none !important;
|
|
136
161
|
`;
|
|
162
|
+
export const noBoxShadow = css`
|
|
163
|
+
box-shadow: none !important;
|
|
164
|
+
`;
|
|
137
165
|
export const border = (withVl, colorVl) => css`
|
|
138
166
|
border: ${parseToPixel(withVl)} solid ${colorVl || color.dark};
|
|
139
167
|
`;
|
package/theme/settings.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as colors from '../styles/colors';
|
|
2
2
|
import { font } from '../styles/font';
|
|
3
3
|
import { color } from '../styles/colors';
|
|
4
|
-
import { getSpacing, zIndex } from '../styles/general';
|
|
4
|
+
import { getSpacing, zIndex, setZIndex } from '../styles/general';
|
|
5
5
|
const {
|
|
6
6
|
fontSize,
|
|
7
7
|
fontFamily,
|
|
@@ -66,7 +66,8 @@ const settings = {
|
|
|
66
66
|
between: (start, end) => getMedia(start, 'min', end)
|
|
67
67
|
},
|
|
68
68
|
spacing: vl => getSpacing(vl),
|
|
69
|
-
zIndex: vl => zIndex(vl)
|
|
69
|
+
zIndex: vl => zIndex(vl),
|
|
70
|
+
setZIndex: vl => setZIndex(vl)
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
const getMedia = (value, type, value2 = '') => {
|