contentoh-components-library 21.3.7 → 21.3.8
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.
|
@@ -290,7 +290,7 @@ var SelectV2 = function SelectV2(props) {
|
|
|
290
290
|
label: labelSelect,
|
|
291
291
|
size: selectButton === null || selectButton === void 0 ? void 0 : selectButton.size,
|
|
292
292
|
icon: _freeSolidSvgIcons.faCaretDown,
|
|
293
|
-
iconPosition: "
|
|
293
|
+
iconPosition: ["left", "right", "top", "bottom"].includes(selectButton === null || selectButton === void 0 ? void 0 : selectButton.iconPosition) ? selectButton.iconPosition : "right",
|
|
294
294
|
onClick: function onClick(event) {
|
|
295
295
|
if (triggerType !== "hover") setShowDropdown(function (prev) {
|
|
296
296
|
return !prev;
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export const SelectV2 = (props) => {
|
|
|
40
40
|
disabled: boolean,
|
|
41
41
|
label: string ,
|
|
42
42
|
size: number ,
|
|
43
|
+
iconPosition: string (por default "right")
|
|
43
44
|
} */,
|
|
44
45
|
defaultItem /* {
|
|
45
46
|
label: string,
|
|
@@ -337,7 +338,13 @@ export const SelectV2 = (props) => {
|
|
|
337
338
|
label={labelSelect}
|
|
338
339
|
size={selectButton?.size}
|
|
339
340
|
icon={IconDownArrow}
|
|
340
|
-
iconPosition=
|
|
341
|
+
iconPosition={
|
|
342
|
+
["left", "right", "top", "bottom"].includes(
|
|
343
|
+
selectButton?.iconPosition
|
|
344
|
+
)
|
|
345
|
+
? selectButton.iconPosition
|
|
346
|
+
: "right"
|
|
347
|
+
}
|
|
341
348
|
onClick={(event) => {
|
|
342
349
|
if (triggerType !== "hover") setShowDropdown((prev) => !prev);
|
|
343
350
|
}}
|