kahuna-base-react-components 1.2.10 → 1.2.11

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/types.d.ts CHANGED
@@ -152,6 +152,7 @@ interface KDropdownProps {
152
152
  width?: number;
153
153
  height?: number;
154
154
  leftIcon?: string;
155
+ position?: string;
155
156
  rightIcon?: string;
156
157
  background?: string;
157
158
  activeBackground?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kahuna-base-react-components",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "Kahuna Base React Components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -27,6 +27,7 @@ export interface KDropdownProps {
27
27
  width?: number
28
28
  height?: number
29
29
  leftIcon?: string
30
+ position?: string
30
31
  rightIcon?: string
31
32
  background?: string
32
33
  activeBackground?: string
@@ -84,6 +85,7 @@ const KDropdown: React.FC<KDropdownProps> = (props) => {
84
85
  const boxShadow = props.shadowDisabled ? "" : "0 0 0 1px rgba(17, 17, 17, 0.04), 0 1px 1px 0 rgba(17, 17, 17, 0.04)"
85
86
  const menuBackground = props.menuBackground || "rgb(249, 249, 249)"
86
87
  const padding = props.padding || "8px"
88
+ const position = props.position || "absolute"
87
89
  const gap = props.gap || "4px"
88
90
  const hideIcon = props.hideChosenOptionIcon || false
89
91
  const isClearable = props.isClearable || false
@@ -222,7 +224,9 @@ const KDropdown: React.FC<KDropdownProps> = (props) => {
222
224
  boxShadow,
223
225
  padding,
224
226
  gap,
225
- border
227
+ border,
228
+ //@ts-ignore
229
+ position
226
230
  }}
227
231
  >
228
232
  {props.leftIcon && <img src={props.leftIcon} width={20} alt={"l-icon"} />}