arengibook 2.4.691 → 2.4.692

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 +39 -44
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -36615,51 +36615,46 @@ var Dropdown = function Dropdown(props) {
36615
36615
  }, placeholder)));
36616
36616
  }
36617
36617
  } else {
36618
- if (!option) {
36619
- return /*#__PURE__*/React__default.createElement("span", null);
36620
- }
36621
- var optionAttrs = (option === null || option === void 0 ? void 0 : option.attrs) || {};
36622
- console.log('optionAttrs');
36623
- console.log(optionAttrs);
36624
- console.log(option);
36625
- var imgUrl = optionAttrs['data-linkimg'];
36626
- console.log("imgUrl");
36627
- console.log(imgUrl);
36628
- console.log('option?.[optionLabel] || placeholder');
36629
- console.log((option === null || option === void 0 ? void 0 : option[optionLabel]) || placeholder);
36630
- console.log('option?.[optionLabel]');
36631
- console.log(option === null || option === void 0 ? void 0 : option[optionLabel]);
36632
- console.log('placeholder');
36633
- console.log(placeholder);
36634
- var _style2 = _objectSpread2({
36635
- display: 'flex',
36636
- alignItems: 'center',
36637
- gap: '0.5rem'
36638
- }, valueStyle || {});
36639
- var attrs = {
36640
- className: valueClassname,
36641
- style: _objectSpread2({
36642
- fontFamily: 'Arial',
36643
- fontSize: '14px'
36644
- }, valueStyle)
36645
- };
36646
- console.log('attrs');
36647
- console.log(attrs);
36648
- console.log(attrs.className);
36649
- return imgUrl ? /*#__PURE__*/React__default.createElement("div", {
36650
- style: _style2
36651
- }, imgUrl && /*#__PURE__*/React__default.createElement("img", {
36652
- src: imgUrl,
36653
- alt: "",
36654
- style: {
36655
- width: '18px',
36656
- height: '18px',
36657
- objectFit: 'contain'
36618
+ if (isSelectMeta) {
36619
+ if (!isEditing) {
36620
+ var _iconColor = option !== null && option !== void 0 && option.color ? inverseColor(option === null || option === void 0 ? void 0 : option.color) : '#000000';
36621
+ return /*#__PURE__*/React__default.createElement("span", {
36622
+ ref: dropdownRef
36623
+ }, /*#__PURE__*/React__default.createElement("div", {
36624
+ className: 'badge select-badge',
36625
+ style: _objectSpread2({
36626
+ backgroundColor: option !== null && option !== void 0 && option.color ? option === null || option === void 0 ? void 0 : option.color : '#FFFFFF',
36627
+ color: _iconColor,
36628
+ padding: '6px 12px',
36629
+ fontSize: '14px',
36630
+ borderRadius: '8px',
36631
+ boxShadow: '2px 2px 4px rgba(0, 0, 0, 0.15)',
36632
+ display: 'inline-block',
36633
+ fontFamily: 'Arial'
36634
+ }, valueStyle)
36635
+ }, option !== null && option !== void 0 && option[optionLabel] ? /*#__PURE__*/React__default.createElement("span", {
36636
+ style: {
36637
+ color: _iconColor
36638
+ }
36639
+ }, option === null || option === void 0 ? void 0 : option[optionLabel]) : /*#__PURE__*/React__default.createElement("span", {
36640
+ style: {
36641
+ color: '#000000'
36642
+ }
36643
+ }, placeholder)));
36658
36644
  }
36659
- }), /*#__PURE__*/React__default.createElement("span", null, option === null || option === void 0 ? void 0 : option[optionLabel])) : /*#__PURE__*/React__default.createElement("span", {
36660
- className: attrs.className,
36661
- style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
36662
- }, (option === null || option === void 0 ? void 0 : option[optionLabel]) || placeholder, " ici ");
36645
+ } else {
36646
+ var attrs = {
36647
+ className: valueClassname,
36648
+ style: _objectSpread2({
36649
+ fontFamily: 'Arial',
36650
+ fontSize: '14px'
36651
+ }, valueStyle)
36652
+ };
36653
+ return /*#__PURE__*/React__default.createElement("span", {
36654
+ className: attrs.className,
36655
+ style: _objectSpread2(_objectSpread2({}, attrs.style), optionStyle)
36656
+ }, (option === null || option === void 0 ? void 0 : option[optionLabel]) || placeholder);
36657
+ }
36663
36658
  }
36664
36659
  };
36665
36660
  var handleFilter = function handleFilter(event) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.691",
4
+ "version": "2.4.692",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {