kahuna-base-react-components 1.2.10 → 1.2.12
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
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ export interface KDropdownProps {
|
|
|
27
27
|
width?: number
|
|
28
28
|
height?: number
|
|
29
29
|
leftIcon?: string
|
|
30
|
+
menuPosition?: 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 menuPosition = props.menuPosition || "absolute"
|
|
87
89
|
const gap = props.gap || "4px"
|
|
88
90
|
const hideIcon = props.hideChosenOptionIcon || false
|
|
89
91
|
const isClearable = props.isClearable || false
|
|
@@ -257,6 +259,7 @@ const KDropdown: React.FC<KDropdownProps> = (props) => {
|
|
|
257
259
|
minHeight: "21px",
|
|
258
260
|
border: "none"
|
|
259
261
|
}),
|
|
262
|
+
//@ts-ignore
|
|
260
263
|
menu: (base) => ({
|
|
261
264
|
...base,
|
|
262
265
|
borderRadius: 10,
|
|
@@ -267,7 +270,8 @@ const KDropdown: React.FC<KDropdownProps> = (props) => {
|
|
|
267
270
|
paddingRight: 3,
|
|
268
271
|
paddingLeft: 3,
|
|
269
272
|
width: menuWidth,
|
|
270
|
-
left: menuLeftMargin
|
|
273
|
+
left: menuLeftMargin,
|
|
274
|
+
position: menuPosition
|
|
271
275
|
}),
|
|
272
276
|
menuList: (base) => ({
|
|
273
277
|
...base,
|