arengibook 2.4.570 → 2.4.572

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