@ctlyst.id/internal-ui 5.5.7 → 5.6.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/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +411 -349
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.mts
CHANGED
@@ -12,6 +12,7 @@ import { DatePickerProps } from 'react-datepicker';
|
|
12
12
|
import { IconType } from 'react-icons/lib';
|
13
13
|
import * as react_select from 'react-select';
|
14
14
|
import { GroupBase, Props as Props$1, DropdownIndicatorProps, ClearIndicatorProps, MultiValueProps, MultiValueRemoveProps, StylesConfig, Theme as Theme$1 } from 'react-select';
|
15
|
+
import { VirtualizerOptions as VirtualizerOptions$1 } from '@tanstack/react-virtual';
|
15
16
|
import { AsyncPaginateProps } from 'react-select-async-paginate';
|
16
17
|
import { AsyncCreatableProps } from 'react-select/async-creatable';
|
17
18
|
import { CreatableProps } from 'react-select/creatable';
|
@@ -578,11 +579,17 @@ interface RatingProps {
|
|
578
579
|
}
|
579
580
|
declare const Rating: ({ value }: RatingProps) => react_jsx_runtime.JSX.Element;
|
580
581
|
|
582
|
+
type SelectVirtualizedProps = {
|
583
|
+
virtualized?: boolean;
|
584
|
+
virtualizerProps?: VirtualizerOptions;
|
585
|
+
};
|
586
|
+
type VirtualizerOptions = Omit<VirtualizerOptions$1<any, any>, 'count' | 'getScrollElement'>;
|
587
|
+
|
581
588
|
type ExtendedSelectProps = {
|
582
589
|
isError?: boolean;
|
583
590
|
};
|
584
591
|
|
585
|
-
type SelectProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = Props$1<Option, IsMulti, Group> & ExtendedSelectProps;
|
592
|
+
type SelectProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = Props$1<Option, IsMulti, Group> & ExtendedSelectProps & SelectVirtualizedProps;
|
586
593
|
declare function DropdownIndicator<OptionType>(props: DropdownIndicatorProps<OptionType>): react_jsx_runtime.JSX.Element;
|
587
594
|
declare function ClearIndicator<OptionType, Group extends GroupBase<OptionType>, IsMulti extends boolean = false>(props: ClearIndicatorProps<OptionType, IsMulti, Group>): react_jsx_runtime.JSX.Element;
|
588
595
|
declare function MultiValue(props: MultiValueProps<any>): react_jsx_runtime.JSX.Element;
|
@@ -620,10 +627,10 @@ declare const CHECKBOX_STATE: {
|
|
620
627
|
readonly CHECKED: 2;
|
621
628
|
};
|
622
629
|
declare const getSelectAllCheckboxState: (totalSelected: number, totalOption: number) => 0 | 1 | 2;
|
623
|
-
interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<never>, IsMulti extends boolean = boolean> extends Props$1<T, IsMulti
|
630
|
+
interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<never>, IsMulti extends boolean = boolean> extends Props$1<T, IsMulti>, SelectVirtualizedProps {
|
624
631
|
isError?: boolean;
|
625
632
|
}
|
626
|
-
declare const SelectCheckbox: <
|
633
|
+
declare const SelectCheckbox: <Option, IsMulti extends boolean = boolean>(props: SelectWithCheckboxBaseProps<OptionGroup<Option>, IsMulti>) => react_jsx_runtime.JSX.Element;
|
627
634
|
|
628
635
|
declare function selectStyles<OptionType = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<OptionType> = GroupBase<OptionType>>(colorMode: ColorMode, _isError: boolean): StylesConfig<OptionType, IsMulti, Group> | undefined;
|
629
636
|
declare const themeSelect: (theme: Theme$1) => {
|
package/dist/index.d.ts
CHANGED
@@ -12,6 +12,7 @@ import { DatePickerProps } from 'react-datepicker';
|
|
12
12
|
import { IconType } from 'react-icons/lib';
|
13
13
|
import * as react_select from 'react-select';
|
14
14
|
import { GroupBase, Props as Props$1, DropdownIndicatorProps, ClearIndicatorProps, MultiValueProps, MultiValueRemoveProps, StylesConfig, Theme as Theme$1 } from 'react-select';
|
15
|
+
import { VirtualizerOptions as VirtualizerOptions$1 } from '@tanstack/react-virtual';
|
15
16
|
import { AsyncPaginateProps } from 'react-select-async-paginate';
|
16
17
|
import { AsyncCreatableProps } from 'react-select/async-creatable';
|
17
18
|
import { CreatableProps } from 'react-select/creatable';
|
@@ -578,11 +579,17 @@ interface RatingProps {
|
|
578
579
|
}
|
579
580
|
declare const Rating: ({ value }: RatingProps) => react_jsx_runtime.JSX.Element;
|
580
581
|
|
582
|
+
type SelectVirtualizedProps = {
|
583
|
+
virtualized?: boolean;
|
584
|
+
virtualizerProps?: VirtualizerOptions;
|
585
|
+
};
|
586
|
+
type VirtualizerOptions = Omit<VirtualizerOptions$1<any, any>, 'count' | 'getScrollElement'>;
|
587
|
+
|
581
588
|
type ExtendedSelectProps = {
|
582
589
|
isError?: boolean;
|
583
590
|
};
|
584
591
|
|
585
|
-
type SelectProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = Props$1<Option, IsMulti, Group> & ExtendedSelectProps;
|
592
|
+
type SelectProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = Props$1<Option, IsMulti, Group> & ExtendedSelectProps & SelectVirtualizedProps;
|
586
593
|
declare function DropdownIndicator<OptionType>(props: DropdownIndicatorProps<OptionType>): react_jsx_runtime.JSX.Element;
|
587
594
|
declare function ClearIndicator<OptionType, Group extends GroupBase<OptionType>, IsMulti extends boolean = false>(props: ClearIndicatorProps<OptionType, IsMulti, Group>): react_jsx_runtime.JSX.Element;
|
588
595
|
declare function MultiValue(props: MultiValueProps<any>): react_jsx_runtime.JSX.Element;
|
@@ -620,10 +627,10 @@ declare const CHECKBOX_STATE: {
|
|
620
627
|
readonly CHECKED: 2;
|
621
628
|
};
|
622
629
|
declare const getSelectAllCheckboxState: (totalSelected: number, totalOption: number) => 0 | 1 | 2;
|
623
|
-
interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<never>, IsMulti extends boolean = boolean> extends Props$1<T, IsMulti
|
630
|
+
interface SelectWithCheckboxBaseProps<T = OptionGroup<never> | OptionMultiGroup<never>, IsMulti extends boolean = boolean> extends Props$1<T, IsMulti>, SelectVirtualizedProps {
|
624
631
|
isError?: boolean;
|
625
632
|
}
|
626
|
-
declare const SelectCheckbox: <
|
633
|
+
declare const SelectCheckbox: <Option, IsMulti extends boolean = boolean>(props: SelectWithCheckboxBaseProps<OptionGroup<Option>, IsMulti>) => react_jsx_runtime.JSX.Element;
|
627
634
|
|
628
635
|
declare function selectStyles<OptionType = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<OptionType> = GroupBase<OptionType>>(colorMode: ColorMode, _isError: boolean): StylesConfig<OptionType, IsMulti, Group> | undefined;
|
629
636
|
declare const themeSelect: (theme: Theme$1) => {
|