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/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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.3.97",
3
+ "version": "1.3.98",
4
4
  "description": "The DigiNet core ui",
5
5
  "homepage": "https://diginet.com.vn",
6
6
  "main": "index.js",
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
@@ -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
  };