@inntechcorp/it-design 2.0.126 → 2.0.128
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/calendar/index.d.ts +3 -4
- package/dist/index.cjs.js +69 -71
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +30 -32
- package/dist/{output-DCvuWNga.css → output-DjWTgiS1.css} +26 -26
- package/dist/select/menu/Menu.d.ts +3 -3
- package/dist/select/option/Option.d.ts +5 -5
- package/dist/stories/Select.stories.d.ts +1 -0
- package/dist/types/SelectProps.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import react__default, { MutableRefObject, RefObject, Context, ReactNode, Forwar
|
|
|
4
4
|
import { ChildrenProps as ChildrenProps$1 } from 'types/ChildrenProps';
|
|
5
5
|
import { IStyledComponent } from 'styled-components';
|
|
6
6
|
import { Cancel, AxiosProgressEvent } from 'axios';
|
|
7
|
+
import { SelectValue as SelectValue$1 } from 'types/SelectProps';
|
|
7
8
|
import { ModalState as ModalState$1, FormValidationTypes } from 'enums/enum';
|
|
8
9
|
import moment$1 from 'moment';
|
|
9
10
|
import { ModalProps as ModalProps$1 } from 'types/ModalProps';
|
|
@@ -345,16 +346,15 @@ type IconProps = {
|
|
|
345
346
|
declare const NoData: ({ className, height, width }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
346
347
|
|
|
347
348
|
type OptionsRefProps = {
|
|
348
|
-
getValue: () =>
|
|
349
|
+
getValue: () => SelectValue$1;
|
|
349
350
|
};
|
|
350
351
|
type OptionsProps = {
|
|
351
352
|
icon?: string;
|
|
352
353
|
image?: string;
|
|
353
|
-
value?:
|
|
354
|
-
|
|
354
|
+
value?: SelectValue$1;
|
|
355
|
+
multi?: boolean;
|
|
355
356
|
checked?: false;
|
|
356
|
-
|
|
357
|
-
onChange?: (value: string, checked: boolean, children: ChildrenProps$1) => null;
|
|
357
|
+
onChange?: (value: SelectValue$1, checked: boolean, children: ChildrenProps$1) => null;
|
|
358
358
|
children?: ChildrenProps$1;
|
|
359
359
|
};
|
|
360
360
|
declare const _default$3: react.MemoExoticComponent<react.ForwardRefExoticComponent<OptionsProps & react.RefAttributes<OptionsRefProps>>>;
|
|
@@ -471,10 +471,10 @@ type AccordionMenuProps = AccordionProps & {
|
|
|
471
471
|
declare const Accordion: FunctionComponent<AccordionMenuProps> & AccordionMenuSubComponents;
|
|
472
472
|
|
|
473
473
|
declare const Calendar: react.ForwardRefExoticComponent<{
|
|
474
|
-
value
|
|
475
|
-
defaultValue
|
|
474
|
+
value?: string | undefined;
|
|
475
|
+
defaultValue?: string | undefined;
|
|
476
476
|
className?: string | undefined;
|
|
477
|
-
onChange
|
|
477
|
+
onChange?: ((value: CalendarValueProps) => void) | null | undefined;
|
|
478
478
|
disabledDate?: ((date: moment$1.Moment) => boolean) | undefined;
|
|
479
479
|
} & react.RefAttributes<unknown>>;
|
|
480
480
|
|
|
@@ -820,7 +820,7 @@ type SelectProps = {
|
|
|
820
820
|
label?: string;
|
|
821
821
|
position?: SelectPosition;
|
|
822
822
|
direction?: SelectDirection;
|
|
823
|
-
|
|
823
|
+
multi?: boolean;
|
|
824
824
|
size?: ITDSize;
|
|
825
825
|
variant?: SelectVariant;
|
|
826
826
|
className?: string;
|
|
@@ -839,7 +839,7 @@ type SelectProps = {
|
|
|
839
839
|
type SelectToggleProps = {
|
|
840
840
|
id?: string;
|
|
841
841
|
label: string;
|
|
842
|
-
value
|
|
842
|
+
value?: SelectValue;
|
|
843
843
|
errorMessage: string;
|
|
844
844
|
isOpen: boolean;
|
|
845
845
|
showSearch: boolean;
|