@itcase/ui 1.9.41 → 1.9.42
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_Ctz9kEoE.js → Avatar_cjs_B_hjRkuy.js} +2 -2
- package/dist/{Avatar_es_2Na9ZgVL.js → Avatar_es_BgYYfuzU.js} +2 -2
- package/dist/{Button_cjs_Ivarkwy6.js → Button_cjs_BSfL-20W.js} +9 -4
- package/dist/{Button_es_ul2sDicM.js → Button_es_C2vKuxE7.js} +9 -4
- package/dist/{ChipsGroup_cjs_CIIf1Cyn.js → ChipsGroup_cjs_DVfNiTvV.js} +1 -1
- package/dist/{ChipsGroup_es_wecRqt6G.js → ChipsGroup_es_BvKmBPXK.js} +1 -1
- package/dist/{DatePicker_cjs_BzAzvsdV.js → DatePicker_cjs_avA-OHmZ.js} +3 -3
- package/dist/{DatePicker_es_CCZmi-lN.js → DatePicker_es_D7k0K2pL.js} +3 -3
- package/dist/{DropdownItem_cjs_nZbgMgqg.js → DropdownItem_cjs_pJblsTmA.js} +1 -1
- package/dist/{DropdownItem_es__mygSEH6.js → DropdownItem_es_QniQAKA2.js} +1 -1
- package/dist/{Icon_cjs_D20B2YBo.js → Icon_cjs_CuqEv1jm.js} +1 -1
- package/dist/{Icon_es_DNVHNKFK.js → Icon_es_DoAtUvPe.js} +1 -1
- package/dist/{Image_cjs_JfkEyfgx.js → Image_cjs_BxZFowhi.js} +6 -2
- package/dist/{Image_es_DbD3JzLa.js → Image_es_Bx7l_UwQ.js} +6 -2
- package/dist/{Label_cjs_DlbcXQX4.js → Label_cjs_DsuCRIyo.js} +24 -24
- package/dist/{Label_es_CbXFs_ts.js → Label_es_BHlo5f-u.js} +24 -24
- package/dist/{Link_cjs_DXBqPjwm.js → Link_cjs_Dn7UhCYe.js} +2 -2
- package/dist/{Link_es_BwLH5S8y.js → Link_es_DPZHTF38.js} +2 -2
- package/dist/{SelectContainer_cjs_Bd9llsQa.js → SelectContainer_cjs_DshFNYWN.js} +1 -1
- package/dist/{SelectContainer_es_Bqek7tN5.js → SelectContainer_es_Cr3Zset9.js} +1 -1
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +4 -4
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +4 -3
- package/dist/cjs/components/Cell.js +3 -3
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +4 -3
- package/dist/cjs/components/DatePeriod.js +8 -7
- package/dist/cjs/components/DatePicker.js +6 -5
- package/dist/cjs/components/Drawer.js +2 -2
- package/dist/cjs/components/Dropdown.js +3 -3
- package/dist/cjs/components/HeroTitle.js +2 -2
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/Image.js +1 -1
- package/dist/cjs/components/InputNumber.js +4 -3
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +3 -3
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal.js +2 -2
- package/dist/cjs/components/ModalSheetBottom.js +2 -2
- package/dist/cjs/components/Notification.js +4 -3
- package/dist/cjs/components/Pagination.js +48 -11
- package/dist/cjs/components/Response.js +6 -5
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select.js +3 -3
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Tab.js +2 -2
- package/dist/cjs/components/Tile.js +5 -5
- package/dist/cjs/components/Title.js +2 -2
- package/dist/cjs/components/Tooltip.js +2 -2
- package/dist/cjs/components/Warning.js +2 -2
- package/dist/cjs/hooks/useHoldProgress.js +61 -0
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +4 -4
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +4 -3
- package/dist/components/Cell.js +3 -3
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +2 -2
- package/dist/components/CookiesWarning.js +4 -3
- package/dist/components/DatePeriod.js +8 -7
- package/dist/components/DatePicker.js +6 -5
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/HeroTitle.js +2 -2
- package/dist/components/Icon.js +2 -2
- package/dist/components/Image.js +1 -1
- package/dist/components/InputNumber.js +4 -3
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal.js +2 -2
- package/dist/components/ModalSheetBottom.js +2 -2
- package/dist/components/Notification.js +4 -3
- package/dist/components/Pagination.js +49 -12
- package/dist/components/Response.js +6 -5
- package/dist/components/Search.js +2 -2
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +3 -3
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Tab.js +2 -2
- package/dist/components/Tile.js +5 -5
- package/dist/components/Title.js +2 -2
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/Warning.js +2 -2
- package/dist/css/mixins/mixin_typography.css +1 -1
- package/dist/css/styles/bundles.css +29 -2
- package/dist/hooks/useHoldProgress.js +59 -0
- package/dist/types/components/Button/Button.d.ts +2 -1
- package/dist/types/components/Button/Button.interface.d.ts +3 -1
- package/dist/types/components/Button/stories/ButtonDefault.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonDemo.stories.d.ts +9 -1
- package/dist/types/components/Button/stories/ButtonIcon.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonLabel.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonLoading.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonMuted.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonMutedIcon.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonShape.stories.d.ts +2 -1
- package/dist/types/components/Button/stories/ButtonSize.stories.d.ts +2 -1
- package/dist/types/components/Image/Image.d.ts +2 -3
- package/dist/types/components/Image/Image.interface.d.ts +3 -3
- package/dist/types/components/Image/stories/Image.stories.d.ts +5 -4
- package/dist/types/components/Label/Label.interface.d.ts +2 -2
- package/dist/types/components/Link/Link.interface.d.ts +8 -0
- package/dist/types/components/Pagination/Pagination.interface.d.ts +9 -3
- package/dist/types/components/Select/Select.interface.d.ts +2 -6
- package/dist/types/components/Select/SelectMultiValue.d.ts +1 -1
- package/dist/types/components/Tile/Tile.interface.d.ts +1 -0
- package/dist/types/hooks/useHoldProgress.d.ts +16 -0
- package/package.json +8 -10
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -98,3 +99,10 @@ export declare const Skeleton: {
|
|
|
98
99
|
};
|
|
99
100
|
render: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
100
101
|
};
|
|
102
|
+
export declare const Hold: {
|
|
103
|
+
args: {
|
|
104
|
+
isHolding: boolean;
|
|
105
|
+
onHoldComplete: () => void;
|
|
106
|
+
};
|
|
107
|
+
render: (args: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
};
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -54,7 +54,7 @@ declare const meta: {
|
|
|
54
54
|
wrap?: import("@itcase/types").WrapProps;
|
|
55
55
|
zeroGap?: boolean;
|
|
56
56
|
zeroPadding?: boolean;
|
|
57
|
-
} & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
57
|
+
} & Pick<import("../../../hooks/useHoldProgress").UseHoldProgressOptions, "onHoldComplete"> & import("../../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
58
58
|
after?: string;
|
|
59
59
|
appearance?: import("@itcase/types").CompositeAppearanceKey;
|
|
60
60
|
Badge?: import("react").ReactNode;
|
|
@@ -67,6 +67,7 @@ declare const meta: {
|
|
|
67
67
|
href?: import("../../Link/Link.interface").LinkWrapperProps["href"];
|
|
68
68
|
htmlType?: import("../../Link/Link.interface").LinkWrapperProps["type"];
|
|
69
69
|
isDisabled?: import("../../Link/Link.interface").LinkWrapperProps["disabled"];
|
|
70
|
+
isHolding?: boolean;
|
|
70
71
|
isLoading?: boolean;
|
|
71
72
|
isSkeleton?: boolean;
|
|
72
73
|
label?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
1
|
declare const Image: import("react").ForwardRefExoticComponent<Omit<{
|
|
3
2
|
borderColor?: import("@itcase/types").BorderColorProps;
|
|
4
3
|
borderColorImage?: string;
|
|
@@ -29,10 +28,10 @@ declare const Image: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
29
28
|
isSkeleton?: boolean;
|
|
30
29
|
mode?: string;
|
|
31
30
|
onClick?: () => void;
|
|
32
|
-
onError?: (event:
|
|
31
|
+
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
33
32
|
overlay?: import("react").ReactNode;
|
|
34
33
|
placeholderUrl?: string;
|
|
35
|
-
src: string;
|
|
34
|
+
src: string | undefined | null;
|
|
36
35
|
style?: import("react").CSSProperties;
|
|
37
36
|
title?: string;
|
|
38
37
|
type?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties,
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { AlignProps, BorderColorProps, BorderTypeProps, BorderWidthProps, FillHoverProps, FillProps, ShapeProps, WidthProps } from '@itcase/types';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
type ImageAppearanceProps = {
|
|
@@ -32,10 +32,10 @@ type ImageProps = ImageAppearanceProps & StyleAttributes & {
|
|
|
32
32
|
isSkeleton?: boolean;
|
|
33
33
|
mode?: string;
|
|
34
34
|
onClick?: () => void;
|
|
35
|
-
onError?: (event:
|
|
35
|
+
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
36
36
|
overlay?: ReactNode;
|
|
37
37
|
placeholderUrl?: string;
|
|
38
|
-
src: string;
|
|
38
|
+
src: string | undefined | null;
|
|
39
39
|
style?: CSSProperties;
|
|
40
40
|
title?: string;
|
|
41
41
|
type?: string;
|
|
@@ -31,10 +31,10 @@ declare const meta: {
|
|
|
31
31
|
isSkeleton?: boolean;
|
|
32
32
|
mode?: string;
|
|
33
33
|
onClick?: () => void;
|
|
34
|
-
onError?: (event:
|
|
34
|
+
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
35
35
|
overlay?: import("react").ReactNode;
|
|
36
36
|
placeholderUrl?: string;
|
|
37
|
-
src: string;
|
|
37
|
+
src: string | undefined | null;
|
|
38
38
|
style?: import("react").CSSProperties;
|
|
39
39
|
title?: string;
|
|
40
40
|
type?: string;
|
|
@@ -42,10 +42,11 @@ declare const meta: {
|
|
|
42
42
|
args: {
|
|
43
43
|
width: number;
|
|
44
44
|
height: number;
|
|
45
|
-
fill:
|
|
45
|
+
fill: "surfaceTertiary";
|
|
46
46
|
src: string;
|
|
47
|
-
resizeMode:
|
|
47
|
+
resizeMode: "contain";
|
|
48
48
|
alt: string;
|
|
49
|
+
placeholderUrl: string;
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
export default meta;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, CompositeAppearanceKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types';
|
|
2
|
+
import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, BorderTypeProps, CompositeAppearanceKey, FillGradientProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types';
|
|
3
3
|
import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
import { IconProps } from '../Icon/Icon.interface';
|
|
5
5
|
import { TextProps } from '../Text/Text.interface';
|
|
@@ -8,7 +8,7 @@ type LabelAppearanceProps = {
|
|
|
8
8
|
align?: AlignProps;
|
|
9
9
|
borderColor?: BorderColorProps;
|
|
10
10
|
borderType?: BorderTypeProps;
|
|
11
|
-
fill?: FillProps;
|
|
11
|
+
fill?: FillProps | FillGradientProps;
|
|
12
12
|
fillHover?: FillHoverProps;
|
|
13
13
|
iconAfter?: IconProps['SvgImage'];
|
|
14
14
|
iconAfterFill?: IconProps['fill'];
|
|
@@ -55,6 +55,10 @@ type LinkProps = LinkAppearanceProps & StyleAttributes & {
|
|
|
55
55
|
LinkComponent?: ElementType;
|
|
56
56
|
onClick?: () => void;
|
|
57
57
|
onMouseDown?: () => void;
|
|
58
|
+
onPointerCancel?: (event: React.PointerEvent) => void;
|
|
59
|
+
onPointerDown?: (event: React.PointerEvent) => void;
|
|
60
|
+
onPointerLeave?: (event: React.PointerEvent) => void;
|
|
61
|
+
onPointerUp?: (event: React.PointerEvent) => void;
|
|
58
62
|
rel?: string;
|
|
59
63
|
style?: CSSProperties;
|
|
60
64
|
target?: string;
|
|
@@ -74,6 +78,10 @@ type LinkWrapperProps = LinkAppearanceProps & StyleAttributes & {
|
|
|
74
78
|
target?: string;
|
|
75
79
|
title?: string;
|
|
76
80
|
type?: ElementType;
|
|
81
|
+
onPointerCancel?: (event: React.PointerEvent) => void;
|
|
82
|
+
onPointerDown?: (event: React.PointerEvent) => void;
|
|
83
|
+
onPointerLeave?: (event: React.PointerEvent) => void;
|
|
84
|
+
onPointerUp?: (event: React.PointerEvent) => void;
|
|
77
85
|
};
|
|
78
86
|
type AppearanceKeys = AppearanceSizeKey | AppearanceStyleKey | (AppearanceKeysDefault | AppearanceStateKeysDefault);
|
|
79
87
|
type LinkAppearance = {
|
|
@@ -87,9 +87,15 @@ type PaginationProps = PaginationAppearanceProps & StyleAttributes & {
|
|
|
87
87
|
isPageCountDropdownReversed?: boolean;
|
|
88
88
|
isPageLabelBuilder?: (page: number) => ReactNode;
|
|
89
89
|
isSkeleton?: boolean;
|
|
90
|
-
onChangePage
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
onChangePage: (arg: {
|
|
91
|
+
selected: number;
|
|
92
|
+
}) => void;
|
|
93
|
+
onChangePerPageCount: (perPageCount: number) => void;
|
|
94
|
+
/** @deprecated Use `onChangePage` instead */
|
|
95
|
+
onPageChange?: (arg: {
|
|
96
|
+
selected: number;
|
|
97
|
+
}) => void;
|
|
98
|
+
/** @deprecated Use `onChangePerPageCount` instead */
|
|
93
99
|
onPerPageCountChange?: (perPageCount: number) => void;
|
|
94
100
|
pageCountDesc?: string;
|
|
95
101
|
pageCountDropdownItemDividerDirection?: DirectionProps;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { GroupBase, PropsValue } from 'react-select';
|
|
3
3
|
import { Props } from 'react-select/base';
|
|
4
|
-
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, CompositeAppearanceKey, DirectionProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types';
|
|
4
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, CompositeAppearanceKey, DirectionProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps, Option as SelectOption } from '@itcase/types';
|
|
5
5
|
import { BadgeProps } from '../Badge/Badge.interface';
|
|
6
6
|
import { DividerProps } from '../Divider/Divider.interface';
|
|
7
7
|
import { DropdownProps } from '../Dropdown/Dropdown.interface';
|
|
8
8
|
import { IconProps } from '../Icon/Icon.interface';
|
|
9
9
|
import { LoaderProps } from '../Loader/Loader.interface';
|
|
10
10
|
import { TextProps } from '../Text/Text.interface';
|
|
11
|
-
type SelectOption = {
|
|
12
|
-
label: string;
|
|
13
|
-
value: string;
|
|
14
|
-
};
|
|
15
11
|
type SelectAppearanceProps<Option = SelectOption> = {
|
|
16
12
|
after?: React.ReactNode;
|
|
17
13
|
appearance?: CompositeAppearanceKey;
|
|
@@ -138,4 +134,4 @@ type SelectConfig = {
|
|
|
138
134
|
};
|
|
139
135
|
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' | 'onChange' | 'onInputChange' | 'openMenuOnClick' | 'options' | 'value'>> & SelectAppearanceProps<Option> & SelectPropsCustom<Option> & {};
|
|
140
136
|
type SelectPropsCustom<Option> = SelectAppearanceProps<Option> & {};
|
|
141
|
-
export type { SelectAppearance, SelectAppearanceProps, SelectConfig,
|
|
137
|
+
export type { SelectAppearance, SelectAppearanceProps, SelectConfig, SelectProps, SelectPropsCustom, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GroupBase, MultiValueProps } from 'react-select';
|
|
2
|
-
import { SelectOption } from '
|
|
2
|
+
import { Option as SelectOption } from '@itcase/types';
|
|
3
3
|
declare const SelectMultiValue: <Option extends SelectOption, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueProps<Option, IsMulti, Group>) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
export { SelectMultiValue };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
declare const HOLD_STATE: {
|
|
3
|
+
readonly HOLDING: "holding";
|
|
4
|
+
readonly IDLE: "idle";
|
|
5
|
+
};
|
|
6
|
+
type HoldStates = (typeof HOLD_STATE)[keyof typeof HOLD_STATE];
|
|
7
|
+
type UseHoldProgressOptions = {
|
|
8
|
+
holdDurationMs?: number;
|
|
9
|
+
onHoldComplete?: () => void;
|
|
10
|
+
};
|
|
11
|
+
declare function useHoldProgress(options: UseHoldProgressOptions): {
|
|
12
|
+
holdState: HoldStates;
|
|
13
|
+
onHoldEnd: (_event?: React.PointerEvent) => void;
|
|
14
|
+
onHoldStart: (event: React.PointerEvent) => void;
|
|
15
|
+
};
|
|
16
|
+
export { useHoldProgress, type UseHoldProgressOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.42",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"private": false,
|
|
13
|
+
"type": "module",
|
|
13
14
|
"types": "dist/types/types/index.d.ts",
|
|
14
15
|
"typesVersions": {
|
|
15
16
|
"*": {
|
|
@@ -105,17 +106,17 @@
|
|
|
105
106
|
"@emotion/is-prop-valid": "^1.4.0",
|
|
106
107
|
"@itcase/common": "^1.2.36",
|
|
107
108
|
"@itcase/icons": "^1.2.28",
|
|
108
|
-
"@itcase/storybook-config": "^1.2.
|
|
109
|
+
"@itcase/storybook-config": "^1.2.35",
|
|
109
110
|
"@itcase/tokens-am": "^1.1.45",
|
|
110
111
|
"@itcase/tokens-baikal": "^1.1.41",
|
|
111
112
|
"@itcase/tokens-palette": "^1.1.41",
|
|
112
113
|
"clsx": "^2.1.1",
|
|
113
114
|
"date-fns": "^4.1.0",
|
|
114
|
-
"framer-motion": "^12.
|
|
115
|
+
"framer-motion": "^12.27.5",
|
|
115
116
|
"js-cookie": "^3.0.5",
|
|
116
117
|
"lodash": "^4.17.21",
|
|
117
118
|
"luxon": "^3.7.2",
|
|
118
|
-
"motion": "^12.
|
|
119
|
+
"motion": "^12.27.5",
|
|
119
120
|
"rc-slider": "^11.1.9",
|
|
120
121
|
"react": "^18.3.1",
|
|
121
122
|
"react-dadata": "^2.27.4",
|
|
@@ -140,8 +141,8 @@
|
|
|
140
141
|
"@babel/preset-react": "^7.28.5",
|
|
141
142
|
"@commitlint/cli": "^20.3.1",
|
|
142
143
|
"@commitlint/config-conventional": "^20.3.1",
|
|
143
|
-
"@itcase/config": "^1.6.
|
|
144
|
-
"@itcase/lint": "^1.1.
|
|
144
|
+
"@itcase/config": "^1.6.42",
|
|
145
|
+
"@itcase/lint": "^1.1.92",
|
|
145
146
|
"@itcase/types": "^1.1.19",
|
|
146
147
|
"@rollup/plugin-alias": "^6.0.0",
|
|
147
148
|
"@rollup/plugin-babel": "^6.1.0",
|
|
@@ -151,9 +152,6 @@
|
|
|
151
152
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
152
153
|
"@rollup/plugin-terser": "^0.4.4",
|
|
153
154
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
154
|
-
"@semantic-release/changelog": "^6.0.3",
|
|
155
|
-
"@semantic-release/git": "^10.0.1",
|
|
156
|
-
"@semantic-release/release-notes-generator": "14.1.0",
|
|
157
155
|
"@types/js-cookie": "^3.0.6",
|
|
158
156
|
"@types/lodash": "^4.17.23",
|
|
159
157
|
"@types/luxon": "^3.7.1",
|
|
@@ -169,7 +167,7 @@
|
|
|
169
167
|
"husky": "^9.1.7",
|
|
170
168
|
"lint-staged": "^16.2.7",
|
|
171
169
|
"prettier": "^3.8.0",
|
|
172
|
-
"rollup": "4.55.
|
|
170
|
+
"rollup": "4.55.2",
|
|
173
171
|
"rollup-plugin-copy": "^3.5.0",
|
|
174
172
|
"rollup-plugin-dts": "^6.3.0",
|
|
175
173
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|