kahuna-base-react-components 0.2.10 → 0.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.
@@ -11,8 +11,9 @@ export interface KSelectOption {
11
11
  }
12
12
  export interface KDropdownProps {
13
13
  defaultValue?: KSelectOption | MultiValue<KSelectOption>;
14
+ defaultValuePrimitive?: string | number;
14
15
  selected?: KSelectOption | MultiValue<KSelectOption>;
15
- onSelect: (selected: KSelectOption | MultiValue<KSelectOption>) => void;
16
+ onSelect: (selected: KSelectOption | MultiValue<KSelectOption> | undefined) => void;
16
17
  options: KSelectOption[];
17
18
  width?: number;
18
19
  height?: number;
@@ -30,6 +31,8 @@ export interface KDropdownProps {
30
31
  padding?: string;
31
32
  gap?: string;
32
33
  hideChosenOptionIcon?: boolean;
34
+ isClearable?: boolean;
35
+ isEllipsis?: boolean;
33
36
  }
34
37
  declare const KDropdown: React.FC<KDropdownProps>;
35
38
  export default KDropdown;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import "./CalendarCustom.css";
3
+ import "../../main.css";
4
+ export interface KSelectDateProps {
5
+ value: Date | undefined;
6
+ onChange: (date: Date | undefined) => void;
7
+ }
8
+ declare const KSelectDate: React.FC<KSelectDateProps>;
9
+ export default KSelectDate;
@@ -0,0 +1 @@
1
+ export { default } from './KSelectDate';
@@ -12,6 +12,7 @@ export interface KSpanProps {
12
12
  hoverTextColor?: string;
13
13
  hoverStyle?: CSSProperties;
14
14
  textDecoration?: string;
15
+ ellipsis?: boolean;
15
16
  }
16
17
  declare const KSpan: React.FC<KSpanProps>;
17
18
  export default KSpan;
package/dist/index.d.ts CHANGED
@@ -5,5 +5,5 @@ import KLogo from "./components/KLogo";
5
5
  import KInput from "./components/KInput";
6
6
  import KDropdown from "./components/KDropdown";
7
7
  import KSlider from "./components/KSlider";
8
- import KDropdownToggle from "./components/KDropdownToggle";
9
- export { KButton, KSpan, KLogo, KTitleSpan, KInput, KDropdown, KSlider, KDropdownToggle };
8
+ import KSelectDate from "./components/KSelectDate";
9
+ export { KButton, KSpan, KLogo, KTitleSpan, KInput, KDropdown, KSlider, KSelectDate };