@itcase/ui 1.9.51 → 1.9.53
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/{Avatar_cjs_CZ0XJ6d2.js → Avatar_cjs_BIHJrAbQ.js} +2 -2
- package/dist/{Avatar_es_B2gMldVe.js → Avatar_es_CtP68jPM.js} +2 -2
- package/dist/{Button_cjs_BSfL-20W.js → Button_cjs_B8cIJYbm.js} +6 -6
- package/dist/{Button_es_Dk6_9N-r.js → Button_es_DQGp8Ipn.js} +6 -6
- package/dist/{ChipsGroup_cjs_D0xy5I4S.js → ChipsGroup_cjs_C27x9x9O.js} +3 -5
- package/dist/{ChipsGroup_es_C_dgXLfC.js → ChipsGroup_es_BTe1MYhV.js} +3 -5
- package/dist/{DatePicker_cjs_avA-OHmZ.js → DatePicker_cjs_CY5UAP1l.js} +5 -5
- package/dist/{DatePicker_es_ungoFvip.js → DatePicker_es_Cze2Bv6w.js} +5 -5
- package/dist/{DropdownItem_cjs_pJblsTmA.js → DropdownItem_cjs_k28TIoDU.js} +1 -1
- package/dist/{DropdownItem_es_Xq7G5-UI.js → DropdownItem_es_DjPgbwtU.js} +1 -1
- package/dist/{Icon_cjs_CuqEv1jm.js → Icon_cjs_DTvdhr8B.js} +33 -4
- package/dist/{Icon_es_BYViOa6l.js → Icon_es_kewxGRUB.js} +33 -4
- package/dist/{Image_cjs_C_FMjUjx.js → Image_cjs_Hvjp2QDB.js} +2 -2
- package/dist/{Image_es_Ca7UQOkj.js → Image_es_DpOCNWpn.js} +2 -2
- package/dist/{Label_cjs_DsuCRIyo.js → Label_cjs_RI5tFcPt.js} +1 -1
- package/dist/{Label_es_BPQhW13g.js → Label_es_CNRTIAWo.js} +1 -1
- package/dist/{Loader_cjs_DMIUN6_q.js → Loader_cjs_CJpdLndn.js} +19 -4
- package/dist/{Loader_es_DLb2P-Sk.js → Loader_es_CqlLujBJ.js} +19 -4
- package/dist/{SelectContainer_cjs_DshFNYWN.js → SelectContainer_cjs_DXYUcpco.js} +7 -7
- package/dist/{SelectContainer_es_BQ3-SqL2.js → SelectContainer_es_De_XL0im.js} +7 -7
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +7 -6
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +6 -5
- package/dist/cjs/components/Breadcrumbs.js +2 -1
- package/dist/cjs/components/Button.js +8 -8
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Checkbox.js +47 -50
- package/dist/cjs/components/Checkmark.js +32 -6
- package/dist/cjs/components/Chips.js +5 -4
- package/dist/cjs/components/Choice.js +4 -3
- package/dist/cjs/components/CookiesWarning.js +7 -7
- package/dist/cjs/components/DatePeriod.js +12 -12
- package/dist/cjs/components/DatePicker.js +10 -10
- package/dist/cjs/components/Drawer.js +26 -26
- package/dist/cjs/components/Dropdown.js +5 -4
- package/dist/cjs/components/Dropzone.js +1751 -0
- package/dist/cjs/components/HeroTitle.js +4 -3
- package/dist/cjs/components/Icon.js +6 -5
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/InputNumber.js +8 -8
- package/dist/cjs/components/InputPassword.js +6 -5
- package/dist/cjs/components/Label.js +5 -4
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/MenuItem.js +2 -1
- package/dist/cjs/components/Modal.js +4 -4
- package/dist/cjs/components/ModalSheetBottom.js +4 -3
- package/dist/cjs/components/Notification.js +12 -12
- package/dist/cjs/components/Pagination.js +4 -3
- package/dist/cjs/components/Response.js +5 -5
- package/dist/cjs/components/Search.js +3 -2
- package/dist/cjs/components/Segmented.js +5 -4
- package/dist/cjs/components/Select/stories/__mock__.js +4 -4
- package/dist/cjs/components/Select.js +5 -5
- package/dist/cjs/components/Swiper.js +3 -2
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +4 -3
- package/dist/cjs/components/Title.js +6 -5
- package/dist/cjs/components/Tooltip.js +6 -5
- package/dist/cjs/components/Warning.js +3 -2
- package/dist/cjs/context/Notifications.js +1 -1
- package/dist/cjs/context/UIContext.js +7 -1
- package/dist/cjs/hooks/useActiveClasses/useActiveClasses.helpers.js +9 -9
- package/dist/cjs/hooks/useActiveClasses/useActiveClasses.js +3 -3
- package/dist/cjs/hooks/useDropzoneFieldFiles.js +20769 -0
- package/dist/cjs/hooks/useStyles/styleAttributes.js +166 -43
- package/dist/cjs/hooks/useStyles/useStyles.js +169 -155
- package/dist/cjs/utils/mergeAppearanceKeys.js +14 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +7 -6
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +6 -5
- package/dist/components/Breadcrumbs.js +2 -1
- package/dist/components/Button.js +8 -8
- package/dist/components/Cell.js +3 -3
- package/dist/components/Checkbox.js +47 -50
- package/dist/components/Checkmark.js +32 -6
- package/dist/components/Chips.js +5 -4
- package/dist/components/Choice.js +4 -3
- package/dist/components/CookiesWarning.js +7 -7
- package/dist/components/DatePeriod.js +12 -12
- package/dist/components/DatePicker.js +10 -10
- package/dist/components/Drawer.js +26 -26
- package/dist/components/Dropdown.js +5 -4
- package/dist/components/Dropzone.js +1749 -0
- package/dist/components/HeroTitle.js +4 -3
- package/dist/components/Icon.js +6 -5
- package/dist/components/Image.js +1 -1
- package/dist/components/InputNumber.js +8 -8
- package/dist/components/InputPassword.js +6 -5
- package/dist/components/Label.js +5 -4
- package/dist/components/Loader.js +2 -2
- package/dist/components/MenuItem.js +2 -1
- package/dist/components/Modal.js +4 -4
- package/dist/components/ModalSheetBottom.js +4 -3
- package/dist/components/Notification.js +12 -12
- package/dist/components/Pagination.js +4 -3
- package/dist/components/Response.js +5 -5
- package/dist/components/Search.js +3 -2
- package/dist/components/Segmented.js +5 -4
- package/dist/components/Select/stories/__mock__.js +4 -4
- package/dist/components/Select.js +5 -5
- package/dist/components/Swiper.js +3 -2
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +4 -3
- package/dist/components/Title.js +6 -5
- package/dist/components/Tooltip.js +6 -5
- package/dist/components/Warning.js +3 -2
- package/dist/context/Notifications.js +1 -1
- package/dist/context/UIContext.js +7 -1
- package/dist/css/styles/bundles.css +440 -207
- package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +9 -9
- package/dist/hooks/useActiveClasses/useActiveClasses.js +3 -3
- package/dist/hooks/useDropzoneFieldFiles.js +20767 -0
- package/dist/hooks/useStyles/styleAttributes.js +166 -43
- package/dist/hooks/useStyles/useStyles.js +169 -155
- package/dist/stories/DropzoneOverview.mdx +11 -0
- package/dist/stories/DropzonePlayground.mdx +10 -0
- package/dist/types/components/Avatar/Avatar.interface.d.ts +2 -2
- package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +9 -15
- package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +9 -8
- package/dist/types/components/Button/Button.d.ts +3 -2
- package/dist/types/components/Button/Button.interface.d.ts +4 -4
- package/dist/types/components/Button/stories/ButtonDefault.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonDemo.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonIcon.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonLabel.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonLoading.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonMuted.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonMutedIcon.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonShape.stories.d.ts +3 -2
- package/dist/types/components/Button/stories/ButtonSize.stories.d.ts +3 -2
- package/dist/types/components/Checkbox/Checkbox.interface.d.ts +3 -3
- package/dist/types/components/Checkbox/appearance/checkboxShape.d.ts +3 -0
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +8 -2
- package/dist/types/components/Checkmark/appearance/checkmarkError.d.ts +3 -0
- package/dist/types/components/Checkmark/stories/CheckmarkError.stories.d.ts +23 -0
- package/dist/types/components/Chips/Chips.interface.d.ts +2 -2
- package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +20 -19
- package/dist/types/components/DatePeriod/stories/DatePeriodSize.stories.d.ts +3 -0
- package/dist/types/components/DatePicker/DatePicker.interface.d.ts +4 -3
- package/dist/types/components/Dropzone/Dropzone.appearance.d.ts +3 -0
- package/dist/types/components/Dropzone/Dropzone.d.ts +4 -0
- package/dist/types/components/Dropzone/Dropzone.interface.d.ts +82 -0
- package/dist/types/components/Dropzone/appearance/dropzoneDefault.d.ts +3 -0
- package/dist/types/components/Dropzone/appearance/dropzoneDisabled.d.ts +3 -0
- package/dist/types/components/Dropzone/appearance/dropzoneError.d.ts +3 -0
- package/dist/types/components/Dropzone/appearance/dropzoneRequire.d.ts +3 -0
- package/dist/types/components/Dropzone/appearance/dropzoneShape.d.ts +3 -0
- package/dist/types/components/Dropzone/appearance/dropzoneSuccess.d.ts +3 -0
- package/dist/types/components/Dropzone/index.d.ts +1 -0
- package/dist/types/components/Dropzone/stories/DropzoneDefault.stories.d.ts +42 -0
- package/dist/types/components/Dropzone/stories/DropzoneDemo.stories.d.ts +19 -0
- package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -1
- package/dist/types/components/Icon/Icon.interface.d.ts +3 -2
- package/dist/types/components/Link/Link.interface.d.ts +1 -1
- package/dist/types/components/List/List.interface.d.ts +1 -1
- package/dist/types/components/Loader/Loader.interface.d.ts +5 -4
- package/dist/types/components/Loader/stories/LoaderAppearance.stories.d.ts +3 -0
- package/dist/types/components/Loader/stories/LoaderText.stories.d.ts +25 -0
- package/dist/types/components/Loader/stories/LoaderType.stories.d.ts +25 -0
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -1
- package/dist/types/components/Notification/Notification.interface.d.ts +2 -2
- package/dist/types/components/Search/Search.interface.d.ts +10 -9
- package/dist/types/components/Search/SearchInput.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputDefault.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputDemo.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputDisabled.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputError.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputRequire.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputShape.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputSize.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputStyle.stories.d.ts +7 -7
- package/dist/types/components/Search/stories/SearchInputSuccess.stories.d.ts +7 -7
- package/dist/types/components/Select/Select.interface.d.ts +9 -7
- package/dist/types/components/Select/SelectContainer.d.ts +4 -1
- package/dist/types/components/Select/SelectMultiValue.d.ts +2 -2
- package/dist/types/components/Select/stories/Select.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectDefault.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectDisabled.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectError.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectRequire.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectShape.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectSize.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectStyle.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/SelectSuccess.stories.d.ts +5 -3
- package/dist/types/components/Select/stories/__mock__/index.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -11
- package/dist/types/components/Text/Text.interface.d.ts +2 -2
- package/dist/types/context/Notifications.d.ts +1 -1
- package/dist/types/context/Notifications.interface.d.ts +2 -1
- package/dist/types/context/UIContext.d.ts +10 -4
- package/dist/types/hooks/useActiveClasses/useActiveClasses.interface.d.ts +1 -2
- package/dist/types/hooks/useDropzoneFieldFiles.d.ts +14 -0
- package/dist/types/hooks/useStyles/styleAttributes.d.ts +2 -3
- package/dist/types/hooks/useStyles/styleAttributes.interface.d.ts +9 -3
- package/dist/types/hooks/useStyles/useStyles.d.ts +4 -1
- package/dist/types/utils/mergeAppearanceKeys.d.ts +6 -1
- package/dist/utils/mergeAppearanceKeys.js +14 -1
- package/package.json +16 -15
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DropzoneProps } from '../Dropzone.interface';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").NamedExoticComponent<DropzoneProps>;
|
|
5
|
+
args: {
|
|
6
|
+
appearance: string;
|
|
7
|
+
inputName: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Default: {
|
|
12
|
+
render: (args: DropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
};
|
|
14
|
+
export declare const Skeleton: {
|
|
15
|
+
args: {
|
|
16
|
+
isSkeleton: boolean;
|
|
17
|
+
};
|
|
18
|
+
render: (args: DropzoneProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
@@ -41,7 +41,7 @@ type HeroTitleAppearanceProps = {
|
|
|
41
41
|
textColorHover?: TextProps['textColorHover'];
|
|
42
42
|
textFont?: TextProps['font'];
|
|
43
43
|
textGradient?: string;
|
|
44
|
-
textStyle?: '
|
|
44
|
+
textStyle?: TextProps['textStyle'];
|
|
45
45
|
textTruncate?: boolean;
|
|
46
46
|
textWeight?: TextProps['textWeight'];
|
|
47
47
|
textWrap?: TextProps['textWrap'];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { AlignmentProps, AlignProps, AppearanceIconSizeKey, AppearanceKeysDefault, AppearanceShapeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CenteringProps, CompositeAppearanceDefaultStyleShapeKey, CompositeAppearanceIconKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillDisabledProps, FillHoverProps, FillProps, FillSizeProps, IconFillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizePXProps, TextColorProps, TextSizeProps } from '@itcase/types-ui';
|
|
3
|
-
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
2
|
+
import { AlignmentProps, AlignProps, AppearanceIconSizeKey, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CenteringProps, CompositeAppearanceDefaultStyleShapeKey, CompositeAppearanceIconKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillDisabledProps, FillHoverProps, FillProps, FillSizeProps, IconFillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizePXProps, TextColorProps, TextSizeProps } from '@itcase/types-ui';
|
|
4
3
|
import { BadgeProps } from 'src/components/Badge/Badge.interface';
|
|
5
4
|
import { LinkWrapperProps } from 'src/components/Link/Link.interface';
|
|
6
5
|
import { TitleProps } from 'src/components/Title/Title.interface';
|
|
7
6
|
import { TooltipProps } from 'src/components/Tooltip/Tooltip.interface';
|
|
7
|
+
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
8
8
|
type IconAppearanceProps = {
|
|
9
9
|
alignment?: AlignmentProps;
|
|
10
10
|
badgeAppearance?: BadgeProps['appearance'];
|
|
11
|
+
badgeAppearanceSize?: AppearanceSizeKey;
|
|
11
12
|
badgeShape?: BadgeProps['shape'];
|
|
12
13
|
badgeSize?: BadgeProps['size'];
|
|
13
14
|
badgeTextColor?: BadgeProps['textColor'];
|
|
@@ -34,7 +34,7 @@ type LinkAppearanceProps = {
|
|
|
34
34
|
textColorMobile?: TextProps['textColor'];
|
|
35
35
|
textColorTablet?: TextProps['textColor'];
|
|
36
36
|
textGradient?: string;
|
|
37
|
-
textStyle?: '
|
|
37
|
+
textStyle?: TextProps['textStyle'];
|
|
38
38
|
textWeight?: TextWeightProps;
|
|
39
39
|
textWeightDesktop?: TextWeightProps;
|
|
40
40
|
textWeightMobile?: TextWeightProps;
|
|
@@ -29,7 +29,7 @@ type ListItemAppearanceProps = {
|
|
|
29
29
|
fill?: FillProps;
|
|
30
30
|
size?: SizeProps;
|
|
31
31
|
textColor?: TextProps['textColor'];
|
|
32
|
-
textStyle?: '
|
|
32
|
+
textStyle?: TextProps['textStyle'];
|
|
33
33
|
textWeight?: TextProps['textWeight'];
|
|
34
34
|
};
|
|
35
35
|
type ListItemProps = ListItemAppearanceProps & StyleAttributes & {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, FillProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps
|
|
2
|
+
import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, FillProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps } from '@itcase/types-ui';
|
|
3
3
|
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
4
|
+
import { TextProps } from '../Text/Text.interface';
|
|
4
5
|
type LoaderAppearanceProps = {
|
|
5
6
|
borderColor?: BorderColorProps;
|
|
6
7
|
fill?: FillProps;
|
|
7
8
|
itemFill?: ItemFillProps;
|
|
8
9
|
size?: SizeProps;
|
|
9
|
-
textColor?:
|
|
10
|
-
textSize?:
|
|
10
|
+
textColor?: TextProps['textColor'];
|
|
11
|
+
textSize?: TextProps['size'];
|
|
11
12
|
};
|
|
12
13
|
type LoaderProps = LoaderAppearanceProps & StyleAttributes & {
|
|
13
14
|
appearance?: CompositeAppearanceKey;
|
|
@@ -21,7 +22,7 @@ type LoaderProps = LoaderAppearanceProps & StyleAttributes & {
|
|
|
21
22
|
shapeStrength?: ShapeStrengthProps;
|
|
22
23
|
style?: CSSProperties;
|
|
23
24
|
text?: string;
|
|
24
|
-
type?: 'circular' | 'dot'
|
|
25
|
+
type?: 'circular' | 'dot';
|
|
25
26
|
};
|
|
26
27
|
type LoaderAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
27
28
|
type LoaderAppearance = {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Loader } from '../Loader';
|
|
2
|
+
import { LoaderProps } from '../Loader.interface';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Loader;
|
|
6
|
+
args: {
|
|
7
|
+
appearance: string;
|
|
8
|
+
};
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const Text: {
|
|
15
|
+
args: {
|
|
16
|
+
text: string;
|
|
17
|
+
};
|
|
18
|
+
render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const NoText: {
|
|
21
|
+
args: {
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
24
|
+
render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Loader } from '../Loader';
|
|
2
|
+
import { LoaderProps } from '../Loader.interface';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Loader;
|
|
6
|
+
args: {
|
|
7
|
+
appearance: string;
|
|
8
|
+
};
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export declare const Dot: {
|
|
15
|
+
args: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
};
|
|
20
|
+
export declare const Circular: {
|
|
21
|
+
args: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
render: (args: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
};
|
|
@@ -37,7 +37,7 @@ type MenuItemAppearanceProps = {
|
|
|
37
37
|
iconBeforeSrc?: IconProps['imageSrc'];
|
|
38
38
|
isSkeleton?: boolean;
|
|
39
39
|
justifyContent?: JustifyContentProps;
|
|
40
|
-
labelStyle?: '
|
|
40
|
+
labelStyle?: TextProps['textStyle'];
|
|
41
41
|
labelTextActiveColor?: TextProps['textColorActive'];
|
|
42
42
|
labelTextActiveColorHover?: TextProps['textColorActiveHover'];
|
|
43
43
|
labelTextColor?: TextProps['textColor'];
|
|
@@ -47,8 +47,8 @@ type NotificationProps = NotificationAppearanceProps & StyleAttributes & {
|
|
|
47
47
|
dataTour?: string;
|
|
48
48
|
isLoading?: boolean;
|
|
49
49
|
isSkeleton?: boolean;
|
|
50
|
-
onClickButton
|
|
51
|
-
onClickClose?: (
|
|
50
|
+
onClickButton: ButtonProps['onClick'];
|
|
51
|
+
onClickClose?: (targetId?: GeneratedId) => void;
|
|
52
52
|
style?: CSSProperties;
|
|
53
53
|
title?: string;
|
|
54
54
|
type?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, FillProps, ShapeProps, ShapeStrengthProps, SizeProps,
|
|
3
|
-
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
2
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextWeightProps, WidthProps } from '@itcase/types-ui';
|
|
4
3
|
import { IconProps } from 'src/components/Icon/Icon.interface';
|
|
4
|
+
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
5
|
+
import { TextProps } from '../Text/Text.interface';
|
|
5
6
|
type SearchAppearanceProps = {
|
|
6
7
|
borderColor?: BorderColorProps;
|
|
7
8
|
borderColorHover?: BorderColorHoverProps;
|
|
@@ -22,14 +23,14 @@ type SearchAppearanceProps = {
|
|
|
22
23
|
iconClearSize?: IconProps['size'];
|
|
23
24
|
iconClearSrc?: IconProps['imageSrc'];
|
|
24
25
|
inputFill?: FillProps;
|
|
25
|
-
inputTextColor?:
|
|
26
|
-
inputTextSize?:
|
|
27
|
-
inputTextStyle?: '
|
|
26
|
+
inputTextColor?: TextProps['textColor'];
|
|
27
|
+
inputTextSize?: TextProps['size'];
|
|
28
|
+
inputTextStyle?: TextProps['textStyle'];
|
|
28
29
|
inputTextWeight?: TextWeightProps;
|
|
29
|
-
placeholderTextColor?:
|
|
30
|
-
placeholderTextSize?:
|
|
31
|
-
placeholderTextStyle?: '
|
|
32
|
-
placeholderTextWeight?:
|
|
30
|
+
placeholderTextColor?: TextProps['textColor'];
|
|
31
|
+
placeholderTextSize?: TextProps['size'];
|
|
32
|
+
placeholderTextStyle?: TextProps['textStyle'];
|
|
33
|
+
placeholderTextWeight?: TextProps['textWeight'];
|
|
33
34
|
shape?: ShapeProps;
|
|
34
35
|
shapeStrength?: ShapeStrengthProps;
|
|
35
36
|
size?: SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const SearchInput: React.ForwardRefExoticComponent<{
|
|
|
21
21
|
iconClearSize?: import("../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -21,14 +21,14 @@ declare const meta: {
|
|
|
21
21
|
iconClearSize?: import("../../Icon/Icon.interface").IconProps["size"];
|
|
22
22
|
iconClearSrc?: import("../../Icon/Icon.interface").IconProps["imageSrc"];
|
|
23
23
|
inputFill?: import("@itcase/types-ui").FillProps;
|
|
24
|
-
inputTextColor?: import("
|
|
25
|
-
inputTextSize?: import("
|
|
26
|
-
inputTextStyle?: "
|
|
24
|
+
inputTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
25
|
+
inputTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
26
|
+
inputTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
27
27
|
inputTextWeight?: import("@itcase/types-ui").TextWeightProps;
|
|
28
|
-
placeholderTextColor?: import("
|
|
29
|
-
placeholderTextSize?: import("
|
|
30
|
-
placeholderTextStyle?: "
|
|
31
|
-
placeholderTextWeight?: import("
|
|
28
|
+
placeholderTextColor?: import("../../Text/Text.interface").TextProps["textColor"];
|
|
29
|
+
placeholderTextSize?: import("../../Text/Text.interface").TextProps["size"];
|
|
30
|
+
placeholderTextStyle?: import("../../Text/Text.interface").TextProps["textStyle"];
|
|
31
|
+
placeholderTextWeight?: import("../../Text/Text.interface").TextProps["textWeight"];
|
|
32
32
|
shape?: import("@itcase/types-ui").ShapeProps;
|
|
33
33
|
shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
|
|
34
34
|
size?: import("@itcase/types-ui").SizeProps;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import { GroupBase, PropsValue } from 'react-select';
|
|
2
|
+
import { ActionMeta, GroupBase, OnChangeValue, PropsValue, SingleValue } from 'react-select';
|
|
3
3
|
import { Props } from 'react-select/base';
|
|
4
4
|
import { Option as SelectOption } from '@itcase/types-core';
|
|
5
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps,
|
|
5
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, CompositeAppearanceStateKeys, DirectionProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
|
|
6
6
|
import { BadgeProps } from 'src/components/Badge/Badge.interface';
|
|
7
7
|
import { DividerProps } from 'src/components/Divider/Divider.interface';
|
|
8
8
|
import { DropdownProps } from 'src/components/Dropdown/Dropdown.interface';
|
|
9
9
|
import { IconProps } from 'src/components/Icon/Icon.interface';
|
|
10
10
|
import { LoaderProps } from 'src/components/Loader/Loader.interface';
|
|
11
11
|
import { TextProps } from 'src/components/Text/Text.interface';
|
|
12
|
-
type SelectAppearanceProps<Option
|
|
12
|
+
type SelectAppearanceProps<Option> = {
|
|
13
13
|
after?: React.ReactNode;
|
|
14
|
-
appearance?:
|
|
14
|
+
appearance?: CompositeAppearanceStateKeys;
|
|
15
15
|
badgeAppearance?: BadgeProps['appearance'];
|
|
16
16
|
badgeAppearanceSize?: AppearanceSizeKey;
|
|
17
17
|
badgeSize?: BadgeProps['size'];
|
|
@@ -127,12 +127,14 @@ type SelectAppearanceProps<Option = SelectOption> = {
|
|
|
127
127
|
};
|
|
128
128
|
type AppearanceKeys = AppearanceShapeKey | AppearanceSizeKey | AppearanceStateKeysDefault | AppearanceStyleKey;
|
|
129
129
|
type SelectAppearance = {
|
|
130
|
-
[key in AppearanceKeys]?: SelectAppearanceProps
|
|
130
|
+
[key in AppearanceKeys]?: SelectAppearanceProps<SelectOption>;
|
|
131
131
|
};
|
|
132
132
|
type SelectConfig = {
|
|
133
133
|
appearance: SelectAppearance;
|
|
134
134
|
setAppearance: (appearanceConfig: SelectAppearance) => void;
|
|
135
135
|
};
|
|
136
|
-
type SelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = Partial<Pick<Props<Option, IsMulti, Group>, 'className' | 'closeMenuOnSelect' | 'filterOption' | 'hideSelectedOptions' | 'hideValueContainer' | 'instanceId' | 'isClearable' | 'isDisabled' | 'isLoading' | 'isMulti' | 'isSearchable' | 'loadingMessage' | '
|
|
137
|
-
type SelectPropsCustom<Option> = SelectAppearanceProps<Option> & {
|
|
136
|
+
type SelectProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Partial<Pick<Props<Option, IsMulti, Group>, 'className' | 'closeMenuOnSelect' | 'filterOption' | 'hideSelectedOptions' | 'hideValueContainer' | 'instanceId' | 'isClearable' | 'isDisabled' | 'isLoading' | 'isMulti' | 'isSearchable' | 'loadingMessage' | 'onInputChange' | 'openMenuOnClick' | 'options' | 'value'>> & SelectAppearanceProps<Option> & SelectPropsCustom<Option>;
|
|
137
|
+
type SelectPropsCustom<Option> = SelectAppearanceProps<Option> & {
|
|
138
|
+
onChange?: (newValue: OnChangeValue<Option, boolean> | SingleValue<Option>, actionMeta?: ActionMeta<Option>) => void;
|
|
139
|
+
};
|
|
138
140
|
export type { SelectAppearance, SelectAppearanceProps, SelectConfig, SelectProps, SelectPropsCustom, };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GroupBase, SelectInstance } from 'react-select';
|
|
3
|
+
import { Option as SelectOptionType } from '@itcase/types-core';
|
|
3
4
|
import { SelectConfig } from './Select.interface';
|
|
4
5
|
declare const selectConfig: SelectConfig;
|
|
5
|
-
declare const SelectContainer: React.ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<
|
|
6
|
+
declare const SelectContainer: React.ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<SelectOptionType, boolean, GroupBase<SelectOptionType>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("./Select.interface").SelectAppearanceProps<SelectOptionType> & {
|
|
7
|
+
onChange?: (newValue: import("react-select").OnChangeValue<SelectOptionType, boolean>, actionMeta?: import("react-select").ActionMeta<SelectOptionType>) => void;
|
|
8
|
+
} & React.RefAttributes<SelectInstance<SelectOptionType, boolean, GroupBase<SelectOptionType>>>>;
|
|
6
9
|
export { selectConfig, SelectContainer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GroupBase, MultiValueProps } from 'react-select';
|
|
2
|
-
import { Option } from '@itcase/types-core';
|
|
3
|
-
declare const SelectMultiValue: <
|
|
2
|
+
import { Option as SelectOption } from '@itcase/types-core';
|
|
3
|
+
declare const SelectMultiValue: <Option extends SelectOption, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: MultiValueProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { SelectMultiValue };
|
|
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
|
|
|
2
2
|
import { SelectPropsCustom } from '../Select.interface';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
|
|
6
|
+
onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
|
|
7
|
+
} & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
|
|
6
8
|
args: {
|
|
7
9
|
appearance: string;
|
|
8
10
|
elevation: number;
|
|
@@ -16,14 +18,14 @@ declare const meta: {
|
|
|
16
18
|
label: string;
|
|
17
19
|
value: string;
|
|
18
20
|
}[];
|
|
19
|
-
isDisabled?: undefined;
|
|
20
21
|
value?: undefined;
|
|
22
|
+
isDisabled?: undefined;
|
|
21
23
|
isFixed?: undefined;
|
|
22
24
|
isSelected?: undefined;
|
|
23
25
|
} | {
|
|
24
26
|
label: string;
|
|
25
|
-
isDisabled: boolean;
|
|
26
27
|
value: string;
|
|
28
|
+
isDisabled: boolean;
|
|
27
29
|
options?: undefined;
|
|
28
30
|
isFixed?: undefined;
|
|
29
31
|
isSelected?: undefined;
|
|
@@ -2,7 +2,9 @@ import { Option } from '@itcase/types-core';
|
|
|
2
2
|
import { SelectPropsCustom } from '../Select.interface';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Partial<Pick<import("react-select/base").Props<Option, boolean, import("react-select").GroupBase<Option>>, "value" | "isLoading" | "className" | "isDisabled" | "options" | "isClearable" | "closeMenuOnSelect" | "filterOption" | "hideSelectedOptions" | "hideValueContainer" | "instanceId" | "isMulti" | "isSearchable" | "loadingMessage" | "onInputChange" | "openMenuOnClick">> & import("../Select.interface").SelectAppearanceProps<Option> & {
|
|
6
|
+
onChange?: (newValue: import("react-select").OnChangeValue<Option, boolean>, actionMeta?: import("react-select").ActionMeta<Option>) => void;
|
|
7
|
+
} & import("react").RefAttributes<import("react-select").SelectInstance<Option, boolean, import("react-select").GroupBase<Option>>>>;
|
|
6
8
|
args: {
|
|
7
9
|
appearance: string;
|
|
8
10
|
elevation: number;
|
|
@@ -16,14 +18,14 @@ declare const meta: {
|
|
|
16
18
|
label: string;
|
|
17
19
|
value: string;
|
|
18
20
|
}[];
|
|
19
|
-
isDisabled?: undefined;
|
|
20
21
|
value?: undefined;
|
|
22
|
+
isDisabled?: undefined;
|
|
21
23
|
isFixed?: undefined;
|
|
22
24
|
isSelected?: undefined;
|
|
23
25
|
} | {
|
|
24
26
|
label: string;
|
|
25
|
-
isDisabled: boolean;
|
|
26
27
|
value: string;
|
|
28
|
+
isDisabled: boolean;
|
|
27
29
|
options?: undefined;
|
|
28
30
|
isFixed?: undefined;
|
|
29
31
|
isSelected?: undefined;
|