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/components/KButton/KButton.stories.d.ts +10 -0
- package/dist/components/KCodeInput/KCodeInput.stories.d.ts +7 -0
- package/dist/components/KDropdown/KDropdown.d.ts +1 -0
- package/dist/components/KDropdown/KDropdown.stories.d.ts +9 -0
- package/dist/components/KInput/KInput.stories.d.ts +10 -0
- package/dist/components/KLogo/KLogo.stories.d.ts +6 -0
- package/dist/components/KSelectDate/KSelectDate.stories.d.ts +6 -0
- package/dist/components/KSelectRange/KSelectRange.stories.d.ts +7 -0
- package/dist/components/KSlider/KSlider.stories.d.ts +5 -0
- package/dist/components/KSliderLabel/KSliderLabel.stories.d.ts +6 -0
- package/dist/components/KSpan/KSpan.stories.d.ts +5 -0
- package/dist/components/KTextArea/KTextArea.stories.d.ts +8 -0
- package/dist/components/KTitleSpan/KTitleSpan.stories.d.ts +6 -0
- package/dist/components/KTooltip/KTooltip.stories.d.ts +6 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/KDropdown/KDropdown.tsx +5 -1
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
|
+
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"} />}
|