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.
@@ -91,7 +91,8 @@ SelectV2Test.args = {
91
91
  disabled: false,
92
92
  label: "select de prueba",
93
93
  size: 12,
94
- borderType: "oval"
94
+ borderType: "oval",
95
+ iconPosition: "left"
95
96
  },
96
97
  defaultItem: {
97
98
  label: "Ningun filtro",
@@ -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: "end",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.3.7",
3
+ "version": "21.3.8",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -87,6 +87,7 @@ SelectV2Test.args = {
87
87
  label: "select de prueba",
88
88
  size: 12,
89
89
  borderType: "oval",
90
+ iconPosition: "left",
90
91
  },
91
92
  defaultItem: {
92
93
  label: "Ningun filtro",
@@ -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="end"
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
  }}