arengibook 2.4.565 → 2.4.566
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.
- package/dist/index.js +12 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35824,7 +35824,18 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35824
35824
|
optionStyle = _ref$optionStyle === void 0 ? {} : _ref$optionStyle,
|
|
35825
35825
|
name = _ref.name,
|
|
35826
35826
|
_ref$showClear = _ref.showClear,
|
|
35827
|
-
showClear = _ref$showClear === void 0 ? false : _ref$showClear
|
|
35827
|
+
showClear = _ref$showClear === void 0 ? false : _ref$showClear,
|
|
35828
|
+
_ref$groupedItemTempl = _ref.groupedItemTemplateConfig,
|
|
35829
|
+
groupedItemTemplateConfig = _ref$groupedItemTempl === void 0 ? {
|
|
35830
|
+
showIcon: true,
|
|
35831
|
+
iconKey: 'icon',
|
|
35832
|
+
showImage: true,
|
|
35833
|
+
imageKey: 'image',
|
|
35834
|
+
imageStyle: {
|
|
35835
|
+
width: '18px',
|
|
35836
|
+
marginRight: '0.5rem'
|
|
35837
|
+
}
|
|
35838
|
+
} : _ref$groupedItemTempl;
|
|
35828
35839
|
var _useState = useState(value !== null && value !== void 0 ? value : null),
|
|
35829
35840
|
_useState2 = _slicedToArray$8(_useState, 2),
|
|
35830
35841
|
optionSelected = _useState2[0],
|
|
@@ -35885,16 +35896,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35885
35896
|
});
|
|
35886
35897
|
};
|
|
35887
35898
|
var finalOptions = isGroupedOption ? formatGroupedOptions(options) : options;
|
|
35888
|
-
var groupedItemTemplateConfig = {
|
|
35889
|
-
showIcon: true,
|
|
35890
|
-
iconKey: 'icon',
|
|
35891
|
-
showImage: true,
|
|
35892
|
-
imageKey: 'image',
|
|
35893
|
-
imageStyle: {
|
|
35894
|
-
width: '18px',
|
|
35895
|
-
marginRight: '0.5rem'
|
|
35896
|
-
}
|
|
35897
|
-
};
|
|
35898
35899
|
var groupedItemTemplate = function groupedItemTemplate(option) {
|
|
35899
35900
|
var _ref6 = groupedItemTemplateConfig !== null && groupedItemTemplateConfig !== void 0 ? groupedItemTemplateConfig : {},
|
|
35900
35901
|
showImage = _ref6.showImage,
|
|
@@ -35916,16 +35917,6 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35916
35917
|
className: "mr-2 ".concat(option[iconKey])
|
|
35917
35918
|
}), /*#__PURE__*/React__default.createElement("div", null, option.label));
|
|
35918
35919
|
};
|
|
35919
|
-
|
|
35920
|
-
// const groupedItemTemplate = (option) => {
|
|
35921
|
-
// return (
|
|
35922
|
-
// <div className="flex align-items-center">
|
|
35923
|
-
// <img alt={option.label} src="https://primefaces.org/cdn/primereact/images/flag/flag_placeholder.png" className={`mr-2 flag flag-${option.code.toLowerCase()}`} style={{ width: '18px' }} />
|
|
35924
|
-
// <div>{option.label}</div>
|
|
35925
|
-
// </div>
|
|
35926
|
-
// );
|
|
35927
|
-
// };
|
|
35928
|
-
|
|
35929
35920
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
35930
35921
|
className: "flex flex-col gap-1"
|
|
35931
35922
|
}, /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$A({
|