arengibook 2.4.693 → 2.4.694

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36615,6 +36615,13 @@ var Dropdown = function Dropdown(props) {
36615
36615
  }, placeholder)));
36616
36616
  }
36617
36617
  } else {
36618
+ var optionAttrs = (option === null || option === void 0 ? void 0 : option.attrs) || {};
36619
+ var imgUrl = optionAttrs['data-linkimg'];
36620
+ var _style2 = _objectSpread2({
36621
+ display: 'flex',
36622
+ alignItems: 'center',
36623
+ gap: '0.5rem'
36624
+ }, valueStyle || {});
36618
36625
  var attrs = {
36619
36626
  className: valueClassname,
36620
36627
  style: _objectSpread2({
@@ -36622,10 +36629,17 @@ var Dropdown = function Dropdown(props) {
36622
36629
  fontSize: '14px'
36623
36630
  }, valueStyle)
36624
36631
  };
36625
- console.log(attrs);
36626
- console.log((option === null || option === void 0 ? void 0 : option[optionLabel]) || placeholder);
36627
- console.log(placeholder);
36628
- return /*#__PURE__*/React__default.createElement("span", {
36632
+ return imgUrl ? /*#__PURE__*/React__default.createElement("div", {
36633
+ style: _style2
36634
+ }, imgUrl && /*#__PURE__*/React__default.createElement("img", {
36635
+ src: imgUrl,
36636
+ alt: "",
36637
+ style: {
36638
+ width: '18px',
36639
+ height: '18px',
36640
+ objectFit: 'contain'
36641
+ }
36642
+ }), /*#__PURE__*/React__default.createElement("span", null, option === null || option === void 0 ? void 0 : option[optionLabel])) : /*#__PURE__*/React__default.createElement("span", {
36629
36643
  className: attrs.className,
36630
36644
  style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
36631
36645
  }, (option === null || option === void 0 ? void 0 : option[optionLabel]) || placeholder);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.693",
4
+ "version": "2.4.694",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {