arengibook 2.4.569 → 2.4.571

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 +3 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35912,13 +35912,6 @@ var Dropdown = function Dropdown(_ref) {
35912
35912
  labelStyle = _ref6.labelStyle,
35913
35913
  generalIcon = _ref6.generalIcon,
35914
35914
  generalImage = _ref6.generalImage;
35915
- console.log(option);
35916
- console.log(groupedItemTemplateConfig);
35917
- console.log(showIcon);
35918
- console.log(option[imageKey]);
35919
- console.log(option.value[iconKey]);
35920
-
35921
- // Vérifiez si l'option est un groupe
35922
35915
  if (option.group) {
35923
35916
  return /*#__PURE__*/React__default.createElement("div", {
35924
35917
  className: "flex align-items-center"
@@ -35929,9 +35922,7 @@ var Dropdown = function Dropdown(_ref) {
35929
35922
  }, labelStyle)
35930
35923
  }, option.label));
35931
35924
  }
35932
-
35933
- // Accédez à l'icône via l'objet value de chaque item
35934
- var icon = option.value[iconKey];
35925
+ var icon = option.value && option.value[iconKey];
35935
35926
  return /*#__PURE__*/React__default.createElement("div", {
35936
35927
  className: "flex align-items-center"
35937
35928
  }, generalImage && /*#__PURE__*/React__default.createElement("img", {
@@ -35944,9 +35935,9 @@ var Dropdown = function Dropdown(_ref) {
35944
35935
  className: "mr-2"
35945
35936
  }), generalIcon && /*#__PURE__*/React__default.createElement("i", {
35946
35937
  className: "mr-2 ".concat(generalIcon)
35947
- }), showImage && option.value[imageKey] && /*#__PURE__*/React__default.createElement("img", {
35938
+ }), showImage && option[imageKey] && /*#__PURE__*/React__default.createElement("img", {
35948
35939
  alt: option.label,
35949
- src: option.value[imageKey],
35940
+ src: option[imageKey],
35950
35941
  style: imageStyle || {
35951
35942
  width: '18px',
35952
35943
  marginRight: '0.5rem'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.569",
4
+ "version": "2.4.571",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {