@itcase/ui 1.2.21 → 1.2.23
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/{Button--5mnRJi2.js → Button-BLcVDStV.js} +1 -1
- package/dist/{Button-D1PnF1C-.js → Button-DawNa85U.js} +1 -1
- package/dist/{Icon-D-zjcPll.js → Icon-BeHO7N79.js} +5 -4
- package/dist/{Icon-DD_Vyrw0.js → Icon-DQWyj5EO.js} +6 -5
- package/dist/{Label-CpSzGRtr.js → Label-B0O9q0E4.js} +1 -1
- package/dist/{Label-BA_CnRBq.js → Label-D8DRdqad.js} +1 -1
- package/dist/{Tooltip-DJufHBiQ.js → Tooltip-aaDRYNWY.js} +21 -13
- package/dist/{Tooltip-DkTKx9n-.js → Tooltip-xGmgUzGr.js} +21 -13
- package/dist/cjs/components/Accordion.js +2 -2
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/Breadcrumbs.js +2 -2
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +13 -9
- package/dist/cjs/components/Choice.js +11 -3
- package/dist/cjs/components/ContextMenu.js +2 -2
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Grid.js +5 -1
- package/dist/cjs/components/Icon.js +2 -2
- package/dist/cjs/components/InputPassword.js +2 -2
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/LanguageSelector.js +2 -2
- package/dist/cjs/components/Pagination.js +2 -2
- package/dist/cjs/components/Response.js +3 -3
- package/dist/cjs/components/Search.js +2 -2
- package/dist/cjs/components/Select.js +2 -2
- package/dist/cjs/components/SiteMenu.js +2 -2
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +2 -2
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Breadcrumbs.js +2 -2
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +13 -9
- package/dist/components/Choice.js +11 -3
- package/dist/components/ContextMenu.js +2 -2
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Grid.js +5 -1
- package/dist/components/Icon.js +2 -2
- package/dist/components/InputPassword.js +2 -2
- package/dist/components/Label.js +2 -2
- package/dist/components/LanguageSelector.js +2 -2
- package/dist/components/Pagination.js +2 -2
- package/dist/components/Response.js +3 -3
- package/dist/components/Search.js +2 -2
- package/dist/components/Select.js +2 -2
- package/dist/components/SiteMenu.js +2 -2
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Accordion/Accordion.css +3 -0
- package/dist/css/components/Cell/Cell.css +23 -0
- package/dist/css/components/Drawer/Drawer.css +2 -2
- package/dist/css/components/Icon/Icon.css +4 -3
- package/dist/css/components/Tooltip/Tooltip.css +21 -0
- package/dist/types/components/Cell/Cell.interface.d.ts +8 -6
- package/dist/types/components/Icon/Icon.d.ts +3 -3
- package/dist/types/components/Icon/Icon.interface.d.ts +34 -32
- package/dist/types/components/Label/Label.interface.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/Tooltip/Tooltip.interface.d.ts +4 -3
- package/package.json +24 -24
|
@@ -105,6 +105,27 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
.tooltip {
|
|
109
|
+
&_align-position {
|
|
110
|
+
&_left {
|
|
111
|
+
border: solid 2px red;
|
|
112
|
+
position: absolute;
|
|
113
|
+
transform: translate(0, -50%);
|
|
114
|
+
}
|
|
115
|
+
&_center {
|
|
116
|
+
position: absolute;
|
|
117
|
+
left: 50%;
|
|
118
|
+
top: 100%;
|
|
119
|
+
transform: translate(-50%, 0%);
|
|
120
|
+
}
|
|
121
|
+
&_right {
|
|
122
|
+
border: solid 2px red;
|
|
123
|
+
position: absolute;
|
|
124
|
+
transform: translate(0, -50%);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
108
129
|
.tooltip {
|
|
109
130
|
&&_state_close {
|
|
110
131
|
visibility: hidden;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import { tDirectionProps, tFillProps,
|
|
3
|
+
import { iconFillSizePropsType, tDirectionProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTextWrapProps } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
-
type appearanceKeysType =
|
|
5
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
6
6
|
export interface ICellProps extends iStyleAttributes {
|
|
7
|
-
direction?: tDirectionProps;
|
|
8
7
|
after?: ReactNode;
|
|
9
8
|
before?: ReactNode;
|
|
10
9
|
className?: string;
|
|
11
|
-
|
|
12
|
-
isDisabled?: boolean;
|
|
10
|
+
direction?: tDirectionProps;
|
|
13
11
|
mode?: string;
|
|
14
12
|
reverse?: boolean;
|
|
15
|
-
set?: string;
|
|
16
13
|
showTitleLabel?: boolean;
|
|
17
14
|
showValueLabel?: boolean;
|
|
18
15
|
size?: tSizeProps;
|
|
@@ -52,11 +49,16 @@ export interface ICellProps extends iStyleAttributes {
|
|
|
52
49
|
valueTextAlign?: tTextAlignProps;
|
|
53
50
|
valueTextColor?: tTextColorProps;
|
|
54
51
|
valueTextSize?: tTextSizeProps;
|
|
52
|
+
valueTextTruncate?: boolean;
|
|
55
53
|
valueTextWeight?: tTextWeightProps;
|
|
56
54
|
valueTextWrap?: tTextWrapProps;
|
|
57
55
|
zeroGap?: boolean;
|
|
58
56
|
zeroPadding?: boolean;
|
|
57
|
+
isActive?: boolean;
|
|
58
|
+
isDisabled?: boolean;
|
|
59
|
+
isEqual?: boolean;
|
|
59
60
|
onClick?: () => void;
|
|
60
61
|
onMouseEnter?: () => void;
|
|
62
|
+
set?: string;
|
|
61
63
|
}
|
|
62
64
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
declare const iconConfig:
|
|
4
|
-
declare const Icon: React.ForwardRefExoticComponent<
|
|
2
|
+
import type { iIconConfig, iIconProps } from '../Icon/Icon.interface';
|
|
3
|
+
declare const iconConfig: iIconConfig;
|
|
4
|
+
declare const Icon: React.ForwardRefExoticComponent<iIconProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { Icon, iconConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import { alignmentPropsType, borderColorHoverPropsType,
|
|
4
|
-
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
-
|
|
1
|
+
import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
+
import type { alignmentPropsType, borderColorHoverPropsType, borderTypePropsType, iconFillSizePropsType, iconSizePropsType, tBorderColorProps, tBorderWidthProps, tFillHoverProps, tFillProps, tItemColorProps, titleSizePropsType, tShapeProps, tTextColorHoverProps, tTextColorProps, tTextSizeProps } from '../../types';
|
|
4
|
+
import type { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
interface iIconThemeColor {
|
|
6
6
|
alignment?: alignmentPropsType;
|
|
7
7
|
bgFill?: tFillProps;
|
|
8
8
|
borderColor?: tBorderColorProps;
|
|
@@ -35,59 +35,61 @@ export interface IIconThemeColor {
|
|
|
35
35
|
shape?: tShapeProps;
|
|
36
36
|
size?: iconSizePropsType;
|
|
37
37
|
}
|
|
38
|
-
type
|
|
39
|
-
|
|
40
|
-
[key in appearanceKeysType]?: IIconThemeColor;
|
|
38
|
+
type tIconAppearance = {
|
|
39
|
+
[key in tAppearanceKeysDefault]?: iIconThemeColor;
|
|
41
40
|
};
|
|
42
|
-
|
|
43
|
-
appearance:
|
|
44
|
-
setAppearance: (newComponent:
|
|
41
|
+
interface iIconConfig {
|
|
42
|
+
appearance: tIconAppearance | undefined;
|
|
43
|
+
setAppearance: (newComponent: tIconAppearance) => void;
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
SvgImage?: any;
|
|
45
|
+
interface iIconProps extends iIconThemeColor, iStyleAttributes {
|
|
46
|
+
id?: number | string;
|
|
49
47
|
after?: ReactNode;
|
|
48
|
+
Badge?: ReactNode;
|
|
50
49
|
before?: ReactNode;
|
|
51
50
|
className?: string;
|
|
52
51
|
dataTour?: string;
|
|
53
|
-
height?: string;
|
|
54
|
-
href?: string;
|
|
55
|
-
id?: number | string;
|
|
56
|
-
imageSrc?: string;
|
|
57
|
-
link?: string;
|
|
58
|
-
linkRel?: string;
|
|
59
|
-
linkTarget?: string;
|
|
60
|
-
showTooltip?: boolean;
|
|
61
|
-
style?: CSSProperties;
|
|
62
|
-
tooltipAppearance?: appearanceKeysType;
|
|
63
|
-
tooltipText?: string;
|
|
64
|
-
tooltipTextSize?: tTextSizeProps;
|
|
65
|
-
tooltipTitle?: string;
|
|
66
|
-
tooltipTitleSize?: titleSizePropsType;
|
|
67
|
-
width?: string;
|
|
68
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
69
|
-
LinkComponent?: ReactNode;
|
|
70
52
|
fillDesktop?: tFillProps;
|
|
71
53
|
fillMobile?: tFillProps;
|
|
72
54
|
fillSizeDesktop?: string;
|
|
73
55
|
fillSizeMobile?: string;
|
|
74
56
|
fillSizeTablet?: string;
|
|
75
57
|
fillTablet?: tFillProps;
|
|
58
|
+
height?: string;
|
|
59
|
+
href?: string;
|
|
76
60
|
htmlType?: string;
|
|
77
61
|
icon?: string;
|
|
78
62
|
iconAfterSrc?: string;
|
|
79
63
|
iconBeforeSrc?: string;
|
|
80
64
|
iconSrc?: string;
|
|
65
|
+
imageSrc?: string;
|
|
66
|
+
link?: string;
|
|
67
|
+
LinkComponent?: ReactNode;
|
|
68
|
+
linkRel?: string;
|
|
69
|
+
linkTarget?: string;
|
|
81
70
|
loading?: boolean;
|
|
82
71
|
rel?: string;
|
|
83
72
|
shapeDesktop?: tShapeProps;
|
|
84
73
|
shapeMobile?: tShapeProps;
|
|
85
74
|
shapeTablet?: tShapeProps;
|
|
75
|
+
showTooltip?: boolean;
|
|
86
76
|
sizeDesktop?: iconSizePropsType;
|
|
87
77
|
sizeMobile?: iconSizePropsType;
|
|
88
78
|
sizeTablet?: iconSizePropsType;
|
|
79
|
+
style?: CSSProperties;
|
|
80
|
+
SvgImage?: any;
|
|
89
81
|
target?: string;
|
|
82
|
+
tooltipAppearance?: tAppearanceKeysDefault;
|
|
83
|
+
tooltipContent?: ReactNode;
|
|
84
|
+
tooltipText?: string;
|
|
85
|
+
tooltipTextSize?: tTextSizeProps;
|
|
86
|
+
tooltipTitle?: string;
|
|
87
|
+
tooltipTitleSize?: titleSizePropsType;
|
|
90
88
|
type?: string;
|
|
89
|
+
width?: string;
|
|
91
90
|
isDisabled?: boolean;
|
|
91
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
92
|
+
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
93
|
+
onMouseLeave?: MouseEventHandler<HTMLDivElement>;
|
|
92
94
|
}
|
|
93
|
-
export {};
|
|
95
|
+
export type { iIconThemeColor, tIconAppearance, iIconConfig, iIconProps };
|
|
@@ -46,7 +46,7 @@ export interface ILabelProps extends ILabelThemeColor, iStyleAttributes {
|
|
|
46
46
|
tooltipAlignment?: alignmentPropsType;
|
|
47
47
|
tooltipAppearance?: appearanceKeysType;
|
|
48
48
|
tooltipArrowPosition?: string;
|
|
49
|
-
tooltipContent?:
|
|
49
|
+
tooltipContent?: ReactNode;
|
|
50
50
|
tooltipRef?: string;
|
|
51
51
|
tooltipText?: string;
|
|
52
52
|
tooltipTitle?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ITooltipConfig, ITooltipProps } from './Tooltip.interface';
|
|
3
3
|
declare const tooltipConfig: ITooltipConfig;
|
|
4
|
-
declare const Tooltip: React.ForwardRefExoticComponent<ITooltipProps & React.RefAttributes<
|
|
4
|
+
declare const Tooltip: React.ForwardRefExoticComponent<ITooltipProps & React.RefAttributes<any>>;
|
|
5
5
|
export { Tooltip, tooltipConfig };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import {
|
|
3
|
+
import { alignmentPropsType, borderTypePropsType, elevationPropsType, tAlignDirectionProps, tAlignProps, tBorderColorProps, tBorderWidthProps, tFillProps, titleSizePropsType, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface ITooltipThemeColor {
|
|
6
6
|
align?: tAlignProps;
|
|
@@ -17,8 +17,9 @@ export interface ITooltipThemeColor {
|
|
|
17
17
|
textSize?: tTextSizeProps;
|
|
18
18
|
titleSize?: titleSizePropsType;
|
|
19
19
|
titleTextColor?: tTextColorProps;
|
|
20
|
+
titleTextWeight?: tTextWeightProps;
|
|
20
21
|
}
|
|
21
|
-
type appearanceKeysType =
|
|
22
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
22
23
|
export type tooltipAppearanceType = {
|
|
23
24
|
[key in appearanceKeysType]?: ITooltipThemeColor;
|
|
24
25
|
};
|
|
@@ -34,11 +35,11 @@ export interface ITooltipProps extends ITooltipThemeColor, iStyleAttributes {
|
|
|
34
35
|
children?: ReactNode;
|
|
35
36
|
className?: string;
|
|
36
37
|
initialIsVisible?: any;
|
|
37
|
-
set?: string;
|
|
38
38
|
style?: CSSProperties;
|
|
39
39
|
text?: string;
|
|
40
40
|
title?: string;
|
|
41
41
|
type?: string;
|
|
42
42
|
width?: string;
|
|
43
|
+
set?: string;
|
|
43
44
|
}
|
|
44
45
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -113,17 +113,17 @@
|
|
|
113
113
|
"react-responsive": "^10.0.0",
|
|
114
114
|
"react-scroll": "^1.9.0",
|
|
115
115
|
"react-scrollbars-custom": "^4.1.1",
|
|
116
|
-
"react-select": "^5.8.
|
|
116
|
+
"react-select": "^5.8.2",
|
|
117
117
|
"swiper": "^11.1.14",
|
|
118
|
-
"uuid": "^
|
|
118
|
+
"uuid": "^11.0.2"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@babel/core": "^7.
|
|
121
|
+
"@babel/core": "^7.26.0",
|
|
122
122
|
"@babel/eslint-parser": "^7.25.9",
|
|
123
123
|
"@babel/eslint-plugin": "^7.25.9",
|
|
124
|
-
"@babel/preset-env": "^7.
|
|
124
|
+
"@babel/preset-env": "^7.26.0",
|
|
125
125
|
"@babel/preset-react": "^7.25.9",
|
|
126
|
-
"@chromatic-com/storybook": "^3.
|
|
126
|
+
"@chromatic-com/storybook": "^3.2.2",
|
|
127
127
|
"@commitlint/cli": "^19.5.0",
|
|
128
128
|
"@commitlint/config-conventional": "^19.5.0",
|
|
129
129
|
"@itcase/lint": "^1.0.14",
|
|
@@ -136,19 +136,19 @@
|
|
|
136
136
|
"@semantic-release/changelog": "^6.0.3",
|
|
137
137
|
"@semantic-release/git": "^10.0.1",
|
|
138
138
|
"@semantic-release/release-notes-generator": "14.0.1",
|
|
139
|
-
"@storybook/addon-essentials": "^8.
|
|
140
|
-
"@storybook/addon-interactions": "^8.
|
|
141
|
-
"@storybook/addon-links": "^8.
|
|
142
|
-
"@storybook/addon-onboarding": "^8.
|
|
143
|
-
"@storybook/addon-styling-webpack": "^1.0.
|
|
144
|
-
"@storybook/addon-themes": "^8.
|
|
139
|
+
"@storybook/addon-essentials": "^8.4.2",
|
|
140
|
+
"@storybook/addon-interactions": "^8.4.2",
|
|
141
|
+
"@storybook/addon-links": "^8.4.2",
|
|
142
|
+
"@storybook/addon-onboarding": "^8.4.2",
|
|
143
|
+
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
144
|
+
"@storybook/addon-themes": "^8.4.2",
|
|
145
145
|
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
146
|
-
"@storybook/blocks": "^8.
|
|
147
|
-
"@storybook/react": "^8.
|
|
148
|
-
"@storybook/react-webpack5": "^8.
|
|
149
|
-
"@storybook/test": "^8.
|
|
146
|
+
"@storybook/blocks": "^8.4.2",
|
|
147
|
+
"@storybook/react": "^8.4.2",
|
|
148
|
+
"@storybook/react-webpack5": "^8.4.2",
|
|
149
|
+
"@storybook/test": "^8.4.2",
|
|
150
150
|
"@types/js-cookie": "^3.0.6",
|
|
151
|
-
"@types/lodash": "^4.17.
|
|
151
|
+
"@types/lodash": "^4.17.13",
|
|
152
152
|
"@types/react": "^18",
|
|
153
153
|
"@types/react-datepicker": "^7.0.0",
|
|
154
154
|
"@types/react-dom": "^18.3.1",
|
|
@@ -159,8 +159,8 @@
|
|
|
159
159
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
160
160
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
161
161
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
162
|
-
"eslint": "9.
|
|
163
|
-
"eslint-plugin-storybook": "^0.
|
|
162
|
+
"eslint": "9.14.0",
|
|
163
|
+
"eslint-plugin-storybook": "^0.11.0",
|
|
164
164
|
"husky": "^9.1.6",
|
|
165
165
|
"lint-staged": "^15.2.10",
|
|
166
166
|
"npm": "^10.9.0",
|
|
@@ -178,22 +178,22 @@
|
|
|
178
178
|
"postcss-import-ext-glob": "^2.1.1",
|
|
179
179
|
"postcss-loader": "^8.1.1",
|
|
180
180
|
"postcss-mixins": "^11.0.3",
|
|
181
|
-
"postcss-nested": "^
|
|
181
|
+
"postcss-nested": "^7.0.2",
|
|
182
182
|
"postcss-nested-ancestors": "^3.0.0",
|
|
183
183
|
"postcss-normalize": "^13.0.1",
|
|
184
184
|
"postcss-prepend-imports": "^1.0.1",
|
|
185
|
-
"postcss-preset-env": "^10.0.
|
|
185
|
+
"postcss-preset-env": "^10.0.9",
|
|
186
186
|
"postcss-pxtorem": "^6.1.0",
|
|
187
187
|
"postcss-responsive-type": "github:ITCase/postcss-responsive-type",
|
|
188
188
|
"postcss-sort-media-queries": "^5.2.0",
|
|
189
189
|
"prettier": "^3.3.3",
|
|
190
|
-
"rollup": "^4.24.
|
|
190
|
+
"rollup": "^4.24.4",
|
|
191
191
|
"rollup-plugin-copy": "^3.5.0",
|
|
192
192
|
"rollup-plugin-dts": "^6.1.1",
|
|
193
193
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
194
194
|
"rollup-preserve-directives": "^1.1.2",
|
|
195
|
-
"semantic-release": "^24.
|
|
196
|
-
"storybook": "^8.
|
|
195
|
+
"semantic-release": "^24.2.0",
|
|
196
|
+
"storybook": "^8.4.2",
|
|
197
197
|
"stylelint": "^16.10.0",
|
|
198
198
|
"typescript": "^5.6.3"
|
|
199
199
|
}
|