@itcase/ui 1.8.116 → 1.8.117
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_CQhA8iu9.js → Avatar_cjs_BqJtyGqb.js} +1 -1
- package/dist/{Avatar_es__NA_FQGM.js → Avatar_es_7WTlfUFM.js} +1 -1
- package/dist/{Button_cjs_B2eZhvoC.js → Button_cjs_oO7g75FT.js} +1 -1
- package/dist/{Button_es_C8qinRU4.js → Button_es_CymyESs0.js} +1 -1
- package/dist/{ChipsGroup_cjs_ChJ71i_A.js → ChipsGroup_cjs_C3KJn3MF.js} +1 -1
- package/dist/{ChipsGroup_es_Dj0Lu5zm.js → ChipsGroup_es_BdIFBKkG.js} +1 -1
- package/dist/{DatePicker_cjs_CpN9wFK4.js → DatePicker_cjs_DsFAHbZ4.js} +3 -3
- package/dist/{DatePicker_es_B6WjNDiN.js → DatePicker_es_CvtwPWL_.js} +3 -3
- package/dist/{DropdownItem_cjs_DUIefLij.js → DropdownItem_cjs_f1GO8Bg4.js} +1 -1
- package/dist/{DropdownItem_es_uFi08Joi.js → DropdownItem_es_Cc7Ebhgl.js} +1 -1
- package/dist/{Icon_cjs_D-UNVTqI.js → Icon_cjs_C9zGWlVp.js} +13 -13
- package/dist/{Icon_es_Cstv1LFr.js → Icon_es_DHLepoKo.js} +13 -13
- package/dist/{Label_cjs_BvS_ANE3.js → Label_cjs_O2PnxmeQ.js} +6 -6
- package/dist/{Label_es_C4Icioi8.js → Label_es_47i4dTW3.js} +6 -6
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePeriod.js +5 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +1 -1
- package/dist/cjs/components/Pagination.js +7 -5
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +5 -9
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +1 -1
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePeriod.js +5 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +1 -1
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +1 -1
- package/dist/components/Pagination.js +7 -5
- package/dist/components/Response.js +2 -2
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +5 -9
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/components/Tooltip/Tooltip.css +0 -8
- package/dist/types/components/Icon/Icon.appearance.d.ts +7 -7
- package/dist/types/components/Icon/Icon.interface.d.ts +8 -8
- package/dist/types/components/Input/Input.appearance.d.ts +163 -2
- package/dist/types/components/Label/Label.appearance.d.ts +2262 -259
- package/dist/types/components/Label/Label.interface.d.ts +54 -45
- package/dist/types/components/Label/appearance/labelAccent.d.ts +2 -20
- package/dist/types/components/Label/appearance/labelDanger.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelDisabled.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelError.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelGradient.d.ts +2 -9
- package/dist/types/components/Label/appearance/labelInfo.d.ts +2 -23
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelShape.d.ts +2 -24
- package/dist/types/components/Label/appearance/labelSize.d.ts +2 -58
- package/dist/types/components/Label/appearance/labelStyle.d.ts +2 -13
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +2 -16
- package/dist/types/components/Label/appearance/labelSurface.d.ts +2 -28
- package/dist/types/components/Label/appearance/labelWarning.d.ts +2 -16
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
- package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +914 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +43 -2
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +42 -32
- package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +2 -9
- package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +2 -8
- package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +2 -9
- package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +2 -9
- package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +2 -17
- package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +2 -13
- package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +2 -9
- package/package.json +4 -4
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TooltipConfig
|
|
2
|
+
import type { TooltipConfig } from './Tooltip.interface';
|
|
3
3
|
declare const tooltipConfig: TooltipConfig;
|
|
4
|
-
declare const Tooltip: React.ForwardRefExoticComponent<
|
|
4
|
+
declare const Tooltip: React.ForwardRefExoticComponent<import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
|
|
5
|
+
align?: null;
|
|
6
|
+
alignDirection?: null;
|
|
7
|
+
alignment?: null;
|
|
8
|
+
alignPosition?: null;
|
|
9
|
+
arrowPosition?: null;
|
|
10
|
+
borderColor?: import("@itcase/types").BorderColorProps;
|
|
11
|
+
borderType?: import("@itcase/types").BorderTypeProps;
|
|
12
|
+
borderWidth?: import("@itcase/types").BorderWidthProps;
|
|
13
|
+
centering?: null;
|
|
14
|
+
elevation?: import("@itcase/types").ElevationProps;
|
|
15
|
+
fill?: import("@itcase/types").FillProps;
|
|
16
|
+
fillHover?: import("@itcase/types").FillHoverProps;
|
|
17
|
+
shape?: import("@itcase/types").ShapeProps;
|
|
18
|
+
shapeStrength?: import("@itcase/types").ShapeStrengthProps;
|
|
19
|
+
size?: import("@itcase/types").SizeProps;
|
|
20
|
+
textColor?: import("../Text/Text.interface").TextProps["textColor"];
|
|
21
|
+
textSize?: import("../Text/Text.interface").TextProps["size"];
|
|
22
|
+
textWeight?: import("../Text/Text.interface").TextProps["textWeight"];
|
|
23
|
+
titleColor?: import("../Title/Title.interface").TitleProps["textColor"];
|
|
24
|
+
titleSize?: import("../Title/Title.interface").TitleProps["size"];
|
|
25
|
+
titleWeight?: import("../Title/Title.interface").TitleProps["textWeight"];
|
|
26
|
+
wrap?: import("@itcase/types").WrapProps;
|
|
27
|
+
} & {
|
|
28
|
+
after?: string;
|
|
29
|
+
appearance?: import("@itcase/types").CompositeAppearanceStateKeys;
|
|
30
|
+
before?: string;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
closeTimeoutDelay?: number;
|
|
34
|
+
dataTestId?: string;
|
|
35
|
+
dataTour?: string;
|
|
36
|
+
initialIsVisible?: boolean;
|
|
37
|
+
isDisabled?: boolean;
|
|
38
|
+
isSkeleton?: boolean;
|
|
39
|
+
onClick?: () => void;
|
|
40
|
+
openTimeoutDelay?: number;
|
|
41
|
+
style?: React.CSSProperties;
|
|
42
|
+
text?: string;
|
|
43
|
+
title?: string;
|
|
44
|
+
tooltipContent?: string;
|
|
45
|
+
} & React.RefAttributes<any>>;
|
|
5
46
|
export { Tooltip, tooltipConfig };
|
|
@@ -1,47 +1,57 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { AppearanceShapeKey, AppearanceSizeKey, AppearanceStateKeysDefault, AppearanceStyleKey, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateKeys, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WrapProps } from '@itcase/types';
|
|
3
3
|
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { TextProps } from '../Text/Text.interface';
|
|
5
|
+
import { TitleProps } from '../Title/Title.interface';
|
|
6
|
+
type TooltipAppearanceProps = {
|
|
7
|
+
align?: null;
|
|
8
|
+
alignDirection?: null;
|
|
9
|
+
alignment?: null;
|
|
10
|
+
alignPosition?: null;
|
|
11
|
+
arrowPosition?: null;
|
|
9
12
|
borderColor?: BorderColorProps;
|
|
10
13
|
borderType?: BorderTypeProps;
|
|
11
14
|
borderWidth?: BorderWidthProps;
|
|
15
|
+
centering?: null;
|
|
12
16
|
elevation?: ElevationProps;
|
|
13
17
|
fill?: FillProps;
|
|
18
|
+
fillHover?: FillHoverProps;
|
|
14
19
|
shape?: ShapeProps;
|
|
20
|
+
shapeStrength?: ShapeStrengthProps;
|
|
15
21
|
size?: SizeProps;
|
|
16
|
-
textColor?:
|
|
17
|
-
textSize?:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type TooltipAppearanceType = {
|
|
24
|
-
[key in AppearanceKeys]?: TooltipThemeColor;
|
|
22
|
+
textColor?: TextProps['textColor'];
|
|
23
|
+
textSize?: TextProps['size'];
|
|
24
|
+
textWeight?: TextProps['textWeight'];
|
|
25
|
+
titleColor?: TitleProps['textColor'];
|
|
26
|
+
titleSize?: TitleProps['size'];
|
|
27
|
+
titleWeight?: TitleProps['textWeight'];
|
|
28
|
+
wrap?: WrapProps;
|
|
25
29
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
appearance
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
export interface TooltipProps extends TooltipThemeColor, StyleAttributes {
|
|
32
|
-
[key: number | string | symbol]: any;
|
|
33
|
-
after?: ReactNode;
|
|
34
|
-
appearance?: AppearanceKeys;
|
|
35
|
-
arrowPosition?: string;
|
|
36
|
-
before?: ReactNode;
|
|
30
|
+
type TooltipProps = StyleAttributes & TooltipAppearanceProps & {
|
|
31
|
+
after?: string;
|
|
32
|
+
appearance?: CompositeAppearanceStateKeys;
|
|
33
|
+
before?: string;
|
|
37
34
|
children?: ReactNode;
|
|
38
35
|
className?: string;
|
|
39
|
-
|
|
36
|
+
closeTimeoutDelay?: number;
|
|
37
|
+
dataTestId?: string;
|
|
38
|
+
dataTour?: string;
|
|
39
|
+
initialIsVisible?: boolean;
|
|
40
|
+
isDisabled?: boolean;
|
|
41
|
+
isSkeleton?: boolean;
|
|
42
|
+
onClick?: () => void;
|
|
43
|
+
openTimeoutDelay?: number;
|
|
40
44
|
style?: CSSProperties;
|
|
41
45
|
text?: string;
|
|
42
46
|
title?: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
tooltipContent?: string;
|
|
48
|
+
};
|
|
49
|
+
type TooltipAppearanceKey = AppearanceStateKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
|
|
50
|
+
type TooltipAppearance = {
|
|
51
|
+
[key in TooltipAppearanceKey]?: TooltipAppearanceProps;
|
|
52
|
+
};
|
|
53
|
+
type TooltipConfig = {
|
|
54
|
+
appearance: TooltipAppearance;
|
|
55
|
+
setAppearance: (appearanceConfig: TooltipAppearance) => void;
|
|
56
|
+
};
|
|
57
|
+
export type { TooltipAppearance, TooltipConfig, TooltipProps };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
titleTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
textColor: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceDefault: TooltipAppearance;
|
|
10
3
|
export { tooltipAppearanceDefault };
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
titleTextColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceDisabled: TooltipAppearance;
|
|
9
3
|
export { tooltipAppearanceDisabled };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
titleTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
textColor: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceError: TooltipAppearance;
|
|
10
3
|
export { tooltipAppearanceError };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
titleTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
textColor: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceRequire: TooltipAppearance;
|
|
10
3
|
export { tooltipAppearanceRequire };
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
size: string;
|
|
4
|
-
titleSize: string;
|
|
5
|
-
textSize: string;
|
|
6
|
-
};
|
|
7
|
-
sizeM: {
|
|
8
|
-
size: string;
|
|
9
|
-
titleSize: string;
|
|
10
|
-
textSize: string;
|
|
11
|
-
};
|
|
12
|
-
sizeS: {
|
|
13
|
-
size: string;
|
|
14
|
-
titleSize: string;
|
|
15
|
-
textSize: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceSize: TooltipAppearance;
|
|
18
3
|
export { tooltipAppearanceSize };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
borderColor: string;
|
|
4
|
-
};
|
|
5
|
-
outlined: {
|
|
6
|
-
fill: string;
|
|
7
|
-
};
|
|
8
|
-
full: {};
|
|
9
|
-
ghost: {
|
|
10
|
-
fill: string;
|
|
11
|
-
borderColor: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceStyle: TooltipAppearance;
|
|
14
3
|
export { tooltipAppearanceStyle };
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
titleTextColor: string;
|
|
6
|
-
borderColor: string;
|
|
7
|
-
textColor: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
1
|
+
import { TooltipAppearance } from '../Tooltip.interface';
|
|
2
|
+
declare const tooltipAppearanceSuccess: TooltipAppearance;
|
|
10
3
|
export { tooltipAppearanceSuccess };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.117",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
104
104
|
"@itcase/common": "^1.2.29",
|
|
105
105
|
"@itcase/icons": "^1.2.19",
|
|
106
|
-
"@itcase/storybook-config": "^1.1
|
|
106
|
+
"@itcase/storybook-config": "^1.2.1",
|
|
107
107
|
"@itcase/tokens-am": "^1.1.19",
|
|
108
108
|
"@itcase/tokens-baikal": "^1.1.17",
|
|
109
109
|
"@itcase/tokens-palette": "^1.1.11",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"@commitlint/cli": "^19.8.1",
|
|
141
141
|
"@commitlint/config-conventional": "^19.8.1",
|
|
142
142
|
"@itcase/config": "^1.0.56",
|
|
143
|
-
"@itcase/lint": "^1.1.
|
|
144
|
-
"@itcase/types": "^1.0.
|
|
143
|
+
"@itcase/lint": "^1.1.47",
|
|
144
|
+
"@itcase/types": "^1.0.43",
|
|
145
145
|
"@rollup/plugin-alias": "^5.1.1",
|
|
146
146
|
"@rollup/plugin-babel": "^6.0.4",
|
|
147
147
|
"@rollup/plugin-commonjs": "^28.0.6",
|