arengibook 2.4.579 → 2.4.581

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 +10 -30
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35802,7 +35802,7 @@ var Dropdown = function Dropdown(_ref) {
35802
35802
  var _ref$options = _ref.options,
35803
35803
  options = _ref$options === void 0 ? [] : _ref$options,
35804
35804
  _ref$isGroupedOption = _ref.isGroupedOption,
35805
- isGroupedOption = _ref$isGroupedOption === void 0 ? true : _ref$isGroupedOption,
35805
+ isGroupedOption = _ref$isGroupedOption === void 0 ? false : _ref$isGroupedOption,
35806
35806
  value = _ref.value,
35807
35807
  _ref$placeholder = _ref.placeholder,
35808
35808
  placeholder = _ref$placeholder === void 0 ? 'Sélectionnez une option' : _ref$placeholder,
@@ -35876,36 +35876,16 @@ var Dropdown = function Dropdown(_ref) {
35876
35876
  }, valueStyle)
35877
35877
  }, (option === null || option === void 0 ? void 0 : option.label) || placeholder);
35878
35878
  };
35879
- var formatGroupedOptions = function formatGroupedOptions(options) {
35880
- return Object.entries(options).map(function (_ref2) {
35881
- var _ref3 = _slicedToArray$8(_ref2, 2),
35882
- groupLabel = _ref3[0],
35883
- groupItems = _ref3[1];
35884
- return {
35885
- label: groupLabel,
35886
- items: Object.entries(groupItems).map(function (_ref4) {
35887
- var _ref5 = _slicedToArray$8(_ref4, 2),
35888
- label = _ref5[0],
35889
- value = _ref5[1];
35890
- return {
35891
- label: label,
35892
- value: value
35893
- };
35894
- })
35895
- };
35896
- });
35897
- };
35898
- isGroupedOption ? formatGroupedOptions(options) : options;
35899
35879
  var groupedItemTemplate = function groupedItemTemplate(option) {
35900
- var _ref6 = groupedItemTemplateConfig || {},
35901
- showImage = _ref6.showImage,
35902
- imageKey = _ref6.imageKey,
35903
- imageStyle = _ref6.imageStyle,
35904
- showIcon = _ref6.showIcon,
35905
- iconKey = _ref6.iconKey,
35906
- labelStyle = _ref6.labelStyle,
35907
- generalIcon = _ref6.generalIcon,
35908
- generalImage = _ref6.generalImage;
35880
+ var _ref2 = groupedItemTemplateConfig || {},
35881
+ showImage = _ref2.showImage,
35882
+ imageKey = _ref2.imageKey,
35883
+ imageStyle = _ref2.imageStyle,
35884
+ showIcon = _ref2.showIcon,
35885
+ iconKey = _ref2.iconKey,
35886
+ labelStyle = _ref2.labelStyle,
35887
+ generalIcon = _ref2.generalIcon,
35888
+ generalImage = _ref2.generalImage;
35909
35889
  var icon = option.value && option.value[iconKey];
35910
35890
  if (generalIcon || generalIcon || showImage && option[imageKey] || showIcon && icon) {
35911
35891
  var styleLabel = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.579",
4
+ "version": "2.4.581",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {