@koslibs/components 1.17.0 → 1.18.0
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @koslibs/components
|
|
2
2
|
|
|
3
|
+
## 1.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#21](https://github.com/koslibs/components/pull/21) [`0c010e3`](https://github.com/koslibs/components/commit/0c010e36657f39517053465e5d4864936b11f164) Thanks [@holypower777](https://github.com/holypower777)! - Export `SelectSingleProps` and `SelectMultipleProps` from the package root and the `Select` entry point so consumers can type change handlers for either selection mode directly.
|
|
8
|
+
|
|
3
9
|
## 1.17.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Select } from './select.js';
|
|
2
|
-
export type { SelectProps, SelectOption, SelectChangeEvent, SelectChangePayload } from './types.js';
|
|
2
|
+
export type { SelectProps, SelectSingleProps, SelectMultipleProps, SelectOption, SelectChangeEvent, SelectChangePayload, } from './types.js';
|
|
@@ -141,5 +141,7 @@ type MultipleProps = {
|
|
|
141
141
|
*/
|
|
142
142
|
onChange?: (event: SelectChangeEvent, payload: SelectChangePayload<string[]>) => void;
|
|
143
143
|
};
|
|
144
|
-
export type
|
|
144
|
+
export type SelectSingleProps = CommonProps & SingleProps;
|
|
145
|
+
export type SelectMultipleProps = CommonProps & MultipleProps;
|
|
146
|
+
export type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
145
147
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { InputProps } from './components/Input/index.js';
|
|
|
7
7
|
export { Datepicker, DatepickerPanel } from './components/Datepicker/index.js';
|
|
8
8
|
export type { DatepickerProps, DatepickerPanelProps, DatepickerRange, DatepickerChangePayload, } from './components/Datepicker/index.js';
|
|
9
9
|
export { Select } from './components/Select/index.js';
|
|
10
|
-
export type { SelectProps, SelectOption, SelectChangeEvent, SelectChangePayload, } from './components/Select/index.js';
|
|
10
|
+
export type { SelectProps, SelectSingleProps, SelectMultipleProps, SelectOption, SelectChangeEvent, SelectChangePayload, } from './components/Select/index.js';
|
|
11
11
|
export { Textarea } from './components/Textarea/index.js';
|
|
12
12
|
export type { TextareaProps } from './components/Textarea/index.js';
|
|
13
13
|
export { Tab, Tabs } from './components/Tabs/index.js';
|