@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.
Files changed (112) hide show
  1. package/dist/{Avatar_cjs_CQhA8iu9.js → Avatar_cjs_BqJtyGqb.js} +1 -1
  2. package/dist/{Avatar_es__NA_FQGM.js → Avatar_es_7WTlfUFM.js} +1 -1
  3. package/dist/{Button_cjs_B2eZhvoC.js → Button_cjs_oO7g75FT.js} +1 -1
  4. package/dist/{Button_es_C8qinRU4.js → Button_es_CymyESs0.js} +1 -1
  5. package/dist/{ChipsGroup_cjs_ChJ71i_A.js → ChipsGroup_cjs_C3KJn3MF.js} +1 -1
  6. package/dist/{ChipsGroup_es_Dj0Lu5zm.js → ChipsGroup_es_BdIFBKkG.js} +1 -1
  7. package/dist/{DatePicker_cjs_CpN9wFK4.js → DatePicker_cjs_DsFAHbZ4.js} +3 -3
  8. package/dist/{DatePicker_es_B6WjNDiN.js → DatePicker_es_CvtwPWL_.js} +3 -3
  9. package/dist/{DropdownItem_cjs_DUIefLij.js → DropdownItem_cjs_f1GO8Bg4.js} +1 -1
  10. package/dist/{DropdownItem_es_uFi08Joi.js → DropdownItem_es_Cc7Ebhgl.js} +1 -1
  11. package/dist/{Icon_cjs_D-UNVTqI.js → Icon_cjs_C9zGWlVp.js} +13 -13
  12. package/dist/{Icon_es_Cstv1LFr.js → Icon_es_DHLepoKo.js} +13 -13
  13. package/dist/{Label_cjs_BvS_ANE3.js → Label_cjs_O2PnxmeQ.js} +6 -6
  14. package/dist/{Label_es_C4Icioi8.js → Label_es_47i4dTW3.js} +6 -6
  15. package/dist/cjs/components/Accordion.js +1 -1
  16. package/dist/cjs/components/Avatar.js +2 -2
  17. package/dist/cjs/components/AvatarStack.js +2 -2
  18. package/dist/cjs/components/Badge.js +1 -1
  19. package/dist/cjs/components/Breadcrumbs.js +1 -1
  20. package/dist/cjs/components/Button.js +2 -2
  21. package/dist/cjs/components/Cell.js +2 -2
  22. package/dist/cjs/components/Chips.js +2 -2
  23. package/dist/cjs/components/Choice.js +1 -1
  24. package/dist/cjs/components/CookiesWarning.js +2 -2
  25. package/dist/cjs/components/DatePeriod.js +5 -5
  26. package/dist/cjs/components/DatePicker.js +4 -4
  27. package/dist/cjs/components/Drawer.js +1 -1
  28. package/dist/cjs/components/Dropdown.js +2 -2
  29. package/dist/cjs/components/HeroTitle.js +1 -1
  30. package/dist/cjs/components/Icon.js +1 -1
  31. package/dist/cjs/components/InputPassword.js +1 -1
  32. package/dist/cjs/components/Label.js +2 -2
  33. package/dist/cjs/components/MenuItem.js +1 -1
  34. package/dist/cjs/components/Modal.js +1 -1
  35. package/dist/cjs/components/ModalSheetBottom.js +1 -1
  36. package/dist/cjs/components/Notification.js +1 -1
  37. package/dist/cjs/components/Pagination.js +7 -5
  38. package/dist/cjs/components/Response.js +2 -2
  39. package/dist/cjs/components/Search.js +1 -1
  40. package/dist/cjs/components/Segmented.js +1 -1
  41. package/dist/cjs/components/Select.js +1 -1
  42. package/dist/cjs/components/Swiper.js +1 -1
  43. package/dist/cjs/components/Tab.js +1 -1
  44. package/dist/cjs/components/Tile.js +5 -9
  45. package/dist/cjs/components/Title.js +1 -1
  46. package/dist/cjs/components/Tooltip.js +1 -1
  47. package/dist/cjs/components/Warning.js +1 -1
  48. package/dist/components/Accordion.js +1 -1
  49. package/dist/components/Avatar.js +2 -2
  50. package/dist/components/AvatarStack.js +2 -2
  51. package/dist/components/Badge.js +1 -1
  52. package/dist/components/Breadcrumbs.js +1 -1
  53. package/dist/components/Button.js +2 -2
  54. package/dist/components/Cell.js +2 -2
  55. package/dist/components/Chips.js +2 -2
  56. package/dist/components/Choice.js +1 -1
  57. package/dist/components/CookiesWarning.js +2 -2
  58. package/dist/components/DatePeriod.js +5 -5
  59. package/dist/components/DatePicker.js +4 -4
  60. package/dist/components/Drawer.js +1 -1
  61. package/dist/components/Dropdown.js +2 -2
  62. package/dist/components/HeroTitle.js +1 -1
  63. package/dist/components/Icon.js +1 -1
  64. package/dist/components/InputPassword.js +1 -1
  65. package/dist/components/Label.js +2 -2
  66. package/dist/components/MenuItem.js +1 -1
  67. package/dist/components/Modal.js +1 -1
  68. package/dist/components/ModalSheetBottom.js +1 -1
  69. package/dist/components/Notification.js +1 -1
  70. package/dist/components/Pagination.js +7 -5
  71. package/dist/components/Response.js +2 -2
  72. package/dist/components/Search.js +1 -1
  73. package/dist/components/Segmented.js +1 -1
  74. package/dist/components/Select.js +1 -1
  75. package/dist/components/Swiper.js +1 -1
  76. package/dist/components/Tab.js +1 -1
  77. package/dist/components/Tile.js +5 -9
  78. package/dist/components/Title.js +1 -1
  79. package/dist/components/Tooltip.js +1 -1
  80. package/dist/components/Warning.js +1 -1
  81. package/dist/css/components/Tooltip/Tooltip.css +0 -8
  82. package/dist/types/components/Icon/Icon.appearance.d.ts +7 -7
  83. package/dist/types/components/Icon/Icon.interface.d.ts +8 -8
  84. package/dist/types/components/Input/Input.appearance.d.ts +163 -2
  85. package/dist/types/components/Label/Label.appearance.d.ts +2262 -259
  86. package/dist/types/components/Label/Label.interface.d.ts +54 -45
  87. package/dist/types/components/Label/appearance/labelAccent.d.ts +2 -20
  88. package/dist/types/components/Label/appearance/labelDanger.d.ts +2 -16
  89. package/dist/types/components/Label/appearance/labelDisabled.d.ts +2 -16
  90. package/dist/types/components/Label/appearance/labelError.d.ts +2 -16
  91. package/dist/types/components/Label/appearance/labelGradient.d.ts +2 -9
  92. package/dist/types/components/Label/appearance/labelInfo.d.ts +2 -23
  93. package/dist/types/components/Label/appearance/labelPrimary.d.ts +2 -16
  94. package/dist/types/components/Label/appearance/labelSecondary.d.ts +2 -16
  95. package/dist/types/components/Label/appearance/labelShape.d.ts +2 -24
  96. package/dist/types/components/Label/appearance/labelSize.d.ts +2 -58
  97. package/dist/types/components/Label/appearance/labelStyle.d.ts +2 -13
  98. package/dist/types/components/Label/appearance/labelSuccess.d.ts +2 -16
  99. package/dist/types/components/Label/appearance/labelSurface.d.ts +2 -28
  100. package/dist/types/components/Label/appearance/labelWarning.d.ts +2 -16
  101. package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +2 -0
  102. package/dist/types/components/Tooltip/Tooltip.appearance.d.ts +914 -2
  103. package/dist/types/components/Tooltip/Tooltip.d.ts +43 -2
  104. package/dist/types/components/Tooltip/Tooltip.interface.d.ts +42 -32
  105. package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +2 -9
  106. package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +2 -8
  107. package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +2 -9
  108. package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +2 -9
  109. package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +2 -17
  110. package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +2 -13
  111. package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +2 -9
  112. package/package.json +4 -4
@@ -1,5 +1,46 @@
1
1
  import React from 'react';
2
- import type { TooltipConfig, TooltipProps } from './Tooltip.interface';
2
+ import type { TooltipConfig } from './Tooltip.interface';
3
3
  declare const tooltipConfig: TooltipConfig;
4
- declare const Tooltip: React.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & React.RefAttributes<any>>;
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 { AlignDirectionProps, AlignmentProps, AlignProps, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, ElevationProps, FillProps, ShapeProps, SizeProps, TextColorProps, TextSizeProps, TextWeightProps, TitleSizeProps } from '@itcase/types';
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
- export interface TooltipThemeColor {
5
- [key: number | string | symbol]: any;
6
- align?: AlignProps;
7
- alignDirection?: AlignDirectionProps;
8
- alignment?: AlignmentProps;
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?: TextColorProps;
17
- textSize?: TextSizeProps;
18
- titleSize?: TitleSizeProps;
19
- titleTextColor?: TextColorProps;
20
- titleTextWeight?: TextWeightProps;
21
- }
22
- type AppearanceKeys = AppearanceKeysDefault & {};
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
- export interface TooltipConfig {
27
- [key: number | string | symbol]: any;
28
- appearance: TooltipAppearanceType | undefined;
29
- setAppearance: (newComponent: TooltipAppearanceType) => void;
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
- initialIsVisible?: any;
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
- type?: string;
44
- width?: string;
45
- set?: string;
46
- }
47
- export {};
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
- declare const tooltipAppearanceDefault: {
2
- defaultPrimary: {
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
- declare const tooltipAppearanceDisabled: {
2
- disabledPrimary: {
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
- declare const tooltipAppearanceError: {
2
- errorPrimary: {
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
- declare const tooltipAppearanceRequire: {
2
- requirePrimary: {
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
- declare const tooltipAppearanceSize: {
2
- sizeL: {
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
- declare const tooltipAppearanceStyle: {
2
- solid: {
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
- declare const tooltipAppearanceSuccess: {
2
- successPrimary: {
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.116",
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.112",
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.39",
144
- "@itcase/types": "^1.0.42",
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",