diginet-core-ui 1.3.97 → 1.3.98
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/image/default.png +0 -0
- package/components/breadcrumb/index.js +19 -21
- package/components/form-control/date-range-picker/index.js +15 -8
- package/components/form-control/dropdown/index.js +43 -43
- package/components/image/index.js +7 -4
- package/components/modal/modal.js +26 -22
- package/components/popover/index.js +21 -9
- package/components/typography/index.js +29 -41
- package/icons/basic.js +110 -546
- package/icons/effect.js +2 -1
- package/package.json +1 -1
- package/readme.md +10 -0
- package/utils/renderHTML.js +1 -1
package/icons/effect.js
CHANGED
|
@@ -8,6 +8,7 @@ import { border, borderDashed, boxBorder, displayFlex, flexRow, itemsCenter, jus
|
|
|
8
8
|
import { getColor } from "../styles/utils";
|
|
9
9
|
import { capitalize, classNames } from "../utils";
|
|
10
10
|
import * as Icons from "./basic";
|
|
11
|
+
const iconColorMap = new Map([['Image', 'dynamic/pumpkin'], ['Compressed', 'dynamic/violet'], ['Presentation', 'dynamic/pumpkin'], ['Sheet', 'semantic/success'], ['Word', 'semantic/info'], ['Pdf', 'semantic/danger']]);
|
|
11
12
|
const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
12
13
|
action = {},
|
|
13
14
|
className,
|
|
@@ -44,7 +45,7 @@ const Icon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
44
45
|
node = jsx(IconComp, {
|
|
45
46
|
width: width,
|
|
46
47
|
height: height,
|
|
47
|
-
color: getColor(color),
|
|
48
|
+
color: getColor(iconColorMap.get(capitalize(name)) || color),
|
|
48
49
|
viewBox: viewBox
|
|
49
50
|
});
|
|
50
51
|
} else {
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -38,6 +38,16 @@ npm test
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## Changelog
|
|
41
|
+
## 1.3.98
|
|
42
|
+
- \[Changed\]: Image – Change default image
|
|
43
|
+
- \[Changed\]: Icon – Update Image, Another, Compressed, Presentation, Sheet, Word, PDF
|
|
44
|
+
- \[Fixed\]: Breadcrumbs – Fix bug onClick not working
|
|
45
|
+
- \[Fixed\]: Typography – Fix empty children show null
|
|
46
|
+
- \[Fixed\]: Popover – Fix conflict overflow hidden on document body
|
|
47
|
+
- \[Fixed\]: Modal – Fix conflict overflow hidden on document body
|
|
48
|
+
- \[Fixed\]: DateRangePicker – Fix bug display value scroll when ellipsis
|
|
49
|
+
- \[Fixed\]: DateRangePicker – Fix UI width
|
|
50
|
+
|
|
41
51
|
## 1.3.97
|
|
42
52
|
- \[Added\]: Icon – Add Car
|
|
43
53
|
- \[Fixed\]: Attachment – Fix bug remove file
|
package/utils/renderHTML.js
CHANGED
|
@@ -11,7 +11,7 @@ const renderHTML = (text = null, TagName = 'div', options = {}) => {
|
|
|
11
11
|
return jsx(TagName, {
|
|
12
12
|
...options,
|
|
13
13
|
dangerouslySetInnerHTML: {
|
|
14
|
-
__html: parseTextToHTML(String(text))
|
|
14
|
+
__html: parseTextToHTML(String(text !== null && text !== void 0 ? text : ''))
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
};
|