@itcase/ui 1.9.27 → 1.9.29

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 (134) hide show
  1. package/dist/{Avatar_cjs_CS01fvh-.js → Avatar_cjs_DsgsCeRd.js} +2 -2
  2. package/dist/{Avatar_es_DRObE1DB.js → Avatar_es_DBNS3IWw.js} +2 -2
  3. package/dist/{Button_cjs_DPs7uj_n.js → Button_cjs_VVROhnrj.js} +19 -33
  4. package/dist/{Button_es_ljlle2Pu.js → Button_es_D74OMP6r.js} +19 -33
  5. package/dist/{ChipsGroup_cjs_Sn3uiCSJ.js → ChipsGroup_cjs_P0UlUnid.js} +4 -4
  6. package/dist/{ChipsGroup_es_CbzUWqG9.js → ChipsGroup_es_BgECuDPT.js} +4 -4
  7. package/dist/{DatePicker_cjs_Bfiav-tb.js → DatePicker_cjs_CnXoxGZ_.js} +5 -5
  8. package/dist/{DatePicker_es_CtbVXMmy.js → DatePicker_es_DyAZeFi2.js} +5 -5
  9. package/dist/{DropdownItem_cjs_Capn0Iu7.js → DropdownItem_cjs_l_fnynBJ.js} +2 -2
  10. package/dist/{DropdownItem_es_CTw07zF3.js → DropdownItem_es_B36TJ2oI.js} +2 -2
  11. package/dist/{Group_cjs_DNI9PTBq.js → Group_cjs_C1YVff0N.js} +1 -1
  12. package/dist/{Group_es_nBtACpoG.js → Group_es_C69f2Dom.js} +1 -1
  13. package/dist/{Icon_cjs_BgGtdviU.js → Icon_cjs_D-jQrwjV.js} +2 -2
  14. package/dist/{Icon_es_CtZHchZc.js → Icon_es_BstDGBF3.js} +2 -2
  15. package/dist/{Input_cjs_KgFCCi2U.js → Input_cjs_CV0nr-f4.js} +1 -1
  16. package/dist/{Input_es_I8GPoibb.js → Input_es_B2dHRF47.js} +1 -1
  17. package/dist/{Label_cjs_FRIVslSV.js → Label_cjs_CyPU9hqO.js} +3 -3
  18. package/dist/{Label_es_CI2mt2wH.js → Label_es_qnCgQX52.js} +3 -3
  19. package/dist/{Loader_cjs_DWBtnjaL.js → Loader_cjs_B3j9ATrq.js} +1 -1
  20. package/dist/{Loader_es_BvTBRuay.js → Loader_es_wjTqawH6.js} +1 -1
  21. package/dist/{Overlay_cjs_tGA2fU43.js → Overlay_cjs_-hY4qbRG.js} +1 -1
  22. package/dist/{Overlay_es_BS7OTFoy.js → Overlay_es_dNz3djDB.js} +1 -1
  23. package/dist/{SelectContainer_cjs_doMatESV.js → SelectContainer_cjs_CnhODaJP.js} +4 -4
  24. package/dist/{SelectContainer_es_2ZX3VSMS.js → SelectContainer_es_CcYDHcBP.js} +4 -4
  25. package/dist/{Text_cjs_DG2eMKBi.js → Text_cjs_Co2XdYF-.js} +1 -1
  26. package/dist/{Text_es_CU9KR5AE.js → Text_es_DaYcLe4H.js} +1 -1
  27. package/dist/cjs/components/Accordion.js +2 -2
  28. package/dist/cjs/components/Avatar.js +3 -3
  29. package/dist/cjs/components/AvatarStack.js +4 -4
  30. package/dist/cjs/components/Badge.js +2 -2
  31. package/dist/cjs/components/Breadcrumbs.js +2 -2
  32. package/dist/cjs/components/Button.js +4 -4
  33. package/dist/cjs/components/Cell.js +3 -3
  34. package/dist/cjs/components/Checkbox.js +1 -1
  35. package/dist/cjs/components/Chips.js +3 -3
  36. package/dist/cjs/components/Choice.js +4 -4
  37. package/dist/cjs/components/CookiesWarning.js +4 -4
  38. package/dist/cjs/components/Dadata.js +1 -1
  39. package/dist/cjs/components/DatePeriod.js +12 -11
  40. package/dist/cjs/components/DatePicker.js +7 -7
  41. package/dist/cjs/components/Drawer.js +2 -2
  42. package/dist/cjs/components/Dropdown.js +3 -3
  43. package/dist/cjs/components/Flex.js +2 -2
  44. package/dist/cjs/components/Grid.js +2 -2
  45. package/dist/cjs/components/Group.js +1 -1
  46. package/dist/cjs/components/HeroTitle.js +3 -3
  47. package/dist/cjs/components/Icon.js +2 -2
  48. package/dist/cjs/components/Input.js +1 -1
  49. package/dist/cjs/components/InputNumber.js +181 -0
  50. package/dist/cjs/components/InputPassword.js +2 -2
  51. package/dist/cjs/components/Label.js +3 -3
  52. package/dist/cjs/components/Loader.js +2 -2
  53. package/dist/cjs/components/MenuItem.js +4 -4
  54. package/dist/cjs/components/Modal.js +5 -5
  55. package/dist/cjs/components/ModalSheetBottom.js +2 -2
  56. package/dist/cjs/components/Notification.js +5 -5
  57. package/dist/cjs/components/Overlay.js +1 -1
  58. package/dist/cjs/components/Pagination.js +4 -4
  59. package/dist/cjs/components/Radio.js +1 -1
  60. package/dist/cjs/components/RangeSlider.js +2 -2
  61. package/dist/cjs/components/Response.js +6 -6
  62. package/dist/cjs/components/Search.js +2 -2
  63. package/dist/cjs/components/Segmented.js +2 -2
  64. package/dist/cjs/components/Select.js +5 -5
  65. package/dist/cjs/components/Swiper.js +3 -3
  66. package/dist/cjs/components/Switch.js +1 -1
  67. package/dist/cjs/components/Tab.js +5 -5
  68. package/dist/cjs/components/Text.js +1 -1
  69. package/dist/cjs/components/Tile.js +3 -3
  70. package/dist/cjs/components/Title.js +2 -2
  71. package/dist/cjs/components/Tooltip.js +2 -2
  72. package/dist/cjs/components/Warning.js +2 -2
  73. package/dist/components/Accordion.js +2 -2
  74. package/dist/components/Avatar.js +3 -3
  75. package/dist/components/AvatarStack.js +4 -4
  76. package/dist/components/Badge.js +2 -2
  77. package/dist/components/Breadcrumbs.js +2 -2
  78. package/dist/components/Button.js +4 -4
  79. package/dist/components/Cell.js +3 -3
  80. package/dist/components/Checkbox.js +1 -1
  81. package/dist/components/Chips.js +3 -3
  82. package/dist/components/Choice.js +4 -4
  83. package/dist/components/CookiesWarning.js +4 -4
  84. package/dist/components/Dadata.js +1 -1
  85. package/dist/components/DatePeriod.js +12 -11
  86. package/dist/components/DatePicker.js +7 -7
  87. package/dist/components/Drawer.js +2 -2
  88. package/dist/components/Dropdown.js +3 -3
  89. package/dist/components/Flex.js +2 -2
  90. package/dist/components/Grid.js +2 -2
  91. package/dist/components/Group.js +1 -1
  92. package/dist/components/HeroTitle.js +3 -3
  93. package/dist/components/Icon.js +2 -2
  94. package/dist/components/Input.js +1 -1
  95. package/dist/components/InputNumber.js +178 -0
  96. package/dist/components/InputPassword.js +2 -2
  97. package/dist/components/Label.js +3 -3
  98. package/dist/components/Loader.js +2 -2
  99. package/dist/components/MenuItem.js +4 -4
  100. package/dist/components/Modal.js +5 -5
  101. package/dist/components/ModalSheetBottom.js +2 -2
  102. package/dist/components/Notification.js +5 -5
  103. package/dist/components/Overlay.js +1 -1
  104. package/dist/components/Pagination.js +4 -4
  105. package/dist/components/Radio.js +1 -1
  106. package/dist/components/RangeSlider.js +2 -2
  107. package/dist/components/Response.js +6 -6
  108. package/dist/components/Search.js +2 -2
  109. package/dist/components/Segmented.js +2 -2
  110. package/dist/components/Select.js +5 -5
  111. package/dist/components/Swiper.js +3 -3
  112. package/dist/components/Switch.js +1 -1
  113. package/dist/components/Tab.js +5 -5
  114. package/dist/components/Text.js +1 -1
  115. package/dist/components/Tile.js +3 -3
  116. package/dist/components/Title.js +2 -2
  117. package/dist/components/Tooltip.js +2 -2
  118. package/dist/components/Warning.js +2 -2
  119. package/dist/css/styles/bundles.css +49 -0
  120. package/dist/types/components/Button/Button.appearance.d.ts +290 -0
  121. package/dist/types/components/Button/Button.d.ts +5 -0
  122. package/dist/types/components/Button/Button.interface.d.ts +5 -0
  123. package/dist/types/components/InputNumber/InputNumber.appearance.d.ts +3 -0
  124. package/dist/types/components/InputNumber/InputNumber.d.ts +3 -0
  125. package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +48 -0
  126. package/dist/types/components/InputNumber/appearance/InputNumberDefault.d.ts +3 -0
  127. package/dist/types/components/InputNumber/appearance/InputNumberShape.d.ts +25 -0
  128. package/dist/types/components/InputNumber/appearance/inputNumberSize.d.ts +33 -0
  129. package/dist/types/components/InputNumber/appearance/inputNumberStyle.d.ts +16 -0
  130. package/dist/types/components/InputNumber/appearance/inputNumberSurface.d.ts +3 -0
  131. package/dist/types/components/InputNumber/index.d.ts +2 -0
  132. package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -0
  133. package/dist/types/components/Tab/Tab.interface.d.ts +68 -40
  134. package/package.json +10 -10
@@ -10,13 +10,16 @@ declare const Button: React.ForwardRefExoticComponent<{
10
10
  fillHover?: import("@itcase/types").FillHoverProps;
11
11
  icon?: import("../Icon/Icon.interface").IconProps["SvgImage"];
12
12
  iconAfter?: import("../Icon/Icon.interface").IconProps["SvgImage"];
13
+ iconAfterAppearance?: import("../Icon/Icon.interface").IconProps["appearance"];
13
14
  iconAfterFill?: import("../Icon/Icon.interface").IconProps["fill"];
14
15
  iconAfterFillIcon?: import("../Icon/Icon.interface").IconProps["iconFillIcon"];
15
16
  iconAfterFillSize?: import("../Icon/Icon.interface").IconProps["fillSize"];
16
17
  iconAfterShape?: import("../Icon/Icon.interface").IconProps["shape"];
17
18
  iconAfterSize?: import("../Icon/Icon.interface").IconProps["iconSize"];
18
19
  iconAfterSrc?: import("../Icon/Icon.interface").IconProps["imageSrc"];
20
+ iconAppearance?: import("../Icon/Icon.interface").IconProps["appearance"];
19
21
  iconBefore?: import("../Icon/Icon.interface").IconProps["SvgImage"];
22
+ iconBeforeAppearance?: import("../Icon/Icon.interface").IconProps["appearance"];
20
23
  iconBeforeFill?: import("../Icon/Icon.interface").IconProps["fill"];
21
24
  iconBeforeFillIcon?: import("../Icon/Icon.interface").IconProps["iconFillIcon"];
22
25
  iconBeforeFillSize?: import("../Icon/Icon.interface").IconProps["fillSize"];
@@ -45,6 +48,8 @@ declare const Button: React.ForwardRefExoticComponent<{
45
48
  shapeStrength?: import("@itcase/types").ShapeStrengthProps;
46
49
  size?: import("@itcase/types").SizeProps;
47
50
  wrap?: import("@itcase/types").WrapProps;
51
+ zeroGap?: boolean;
52
+ zeroPadding?: boolean;
48
53
  } & import("../../hooks/useStyles/styleAttributes.interface").StyleAttributes & {
49
54
  after?: string;
50
55
  appearance?: import("@itcase/types").CompositeAppearanceKey;
@@ -13,13 +13,16 @@ type ButtonAppearanceProps = {
13
13
  fillHover?: FillHoverProps;
14
14
  icon?: IconProps['SvgImage'];
15
15
  iconAfter?: IconProps['SvgImage'];
16
+ iconAfterAppearance?: IconProps['appearance'];
16
17
  iconAfterFill?: IconProps['fill'];
17
18
  iconAfterFillIcon?: IconProps['iconFillIcon'];
18
19
  iconAfterFillSize?: IconProps['fillSize'];
19
20
  iconAfterShape?: IconProps['shape'];
20
21
  iconAfterSize?: IconProps['iconSize'];
21
22
  iconAfterSrc?: IconProps['imageSrc'];
23
+ iconAppearance?: IconProps['appearance'];
22
24
  iconBefore?: IconProps['SvgImage'];
25
+ iconBeforeAppearance?: IconProps['appearance'];
23
26
  iconBeforeFill?: IconProps['fill'];
24
27
  iconBeforeFillIcon?: IconProps['iconFillIcon'];
25
28
  iconBeforeFillSize?: IconProps['fillSize'];
@@ -48,6 +51,8 @@ type ButtonAppearanceProps = {
48
51
  shapeStrength?: ShapeStrengthProps;
49
52
  size?: SizeProps;
50
53
  wrap?: WrapProps;
54
+ zeroGap?: boolean;
55
+ zeroPadding?: boolean;
51
56
  };
52
57
  type ButtonProps = ButtonAppearanceProps & StyleAttributes & {
53
58
  after?: string;
@@ -0,0 +1,3 @@
1
+ import { InputNumberAppearance } from './InputNumber.interfaces';
2
+ declare const inputNumberAppearance: InputNumberAppearance;
3
+ export { inputNumberAppearance };
@@ -0,0 +1,3 @@
1
+ import { InputNumberProps } from './InputNumber.interfaces';
2
+ declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { InputNumber };
@@ -0,0 +1,48 @@
1
+ import { CSSProperties } from 'react';
2
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceStyleKey, AppearanceTitleSizeKey, BorderColorHoverProps, BorderColorProps, BorderWidthProps, CompositeAppearanceTitleKey, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SvgFillHoverProps, SvgFillProps } from '@itcase/types';
3
+ import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
+ import { IconProps } from '../Icon/Icon.interface';
5
+ import { TextProps } from '../Text/Text.interface';
6
+ interface InputNumberAppearanceProps {
7
+ borderColor?: BorderColorProps;
8
+ borderColorHover?: BorderColorHoverProps;
9
+ borderWidth?: BorderWidthProps;
10
+ fill?: FillProps;
11
+ fillHover?: FillHoverProps;
12
+ iconFill?: IconProps['fill'];
13
+ iconFillHover?: IconProps['fillHover'];
14
+ iconFillIcon?: IconProps['fill'];
15
+ iconMinus?: IconProps['icon'];
16
+ iconPlus?: IconProps['icon'];
17
+ iconShape?: IconProps['iconShape'];
18
+ iconSize?: IconProps['size'];
19
+ inputNumberTextColor?: TextProps['textColor'];
20
+ inputNumberTextSize?: TextProps['size'];
21
+ inputNumberTextWeight?: TextProps['textWeight'];
22
+ shape?: ShapeProps;
23
+ shapeStrength?: ShapeStrengthProps;
24
+ size?: TextProps['size'];
25
+ svgFill?: SvgFillProps;
26
+ svgFillHover?: SvgFillHoverProps;
27
+ }
28
+ type InputNumberProps = InputNumberAppearanceProps & StyleAttributes & {
29
+ id?: number;
30
+ appearance?: CompositeAppearanceTitleKey;
31
+ className?: string;
32
+ max?: number;
33
+ min?: number;
34
+ onChange?: (number: number) => void;
35
+ step?: number;
36
+ style?: CSSProperties;
37
+ type?: 'custom' | 'number';
38
+ value?: number;
39
+ };
40
+ type InputNumberAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceStyleKey | AppearanceTitleSizeKey;
41
+ type InputNumberAppearance = {
42
+ [key in InputNumberAppearanceKey]?: InputNumberAppearanceProps;
43
+ };
44
+ type InputNumberConfig = {
45
+ appearance: InputNumberAppearance;
46
+ setAppearance: (appearanceConfig: InputNumberAppearance) => void;
47
+ };
48
+ export type { InputNumberAppearance, InputNumberConfig, InputNumberProps };
@@ -0,0 +1,3 @@
1
+ import { InputNumberAppearance } from '../InputNumber.interfaces';
2
+ declare const inputNumberAppearanceDefault: InputNumberAppearance;
3
+ export { inputNumberAppearanceDefault };
@@ -0,0 +1,25 @@
1
+ declare const inputNumberAppearanceShape: {
2
+ circular: {
3
+ shape: string;
4
+ };
5
+ rounded: {
6
+ shape: string;
7
+ };
8
+ roundedXL: {
9
+ shape: string;
10
+ shapeStrength: string;
11
+ };
12
+ roundedL: {
13
+ shape: string;
14
+ shapeStrength: string;
15
+ };
16
+ roundedM: {
17
+ shape: string;
18
+ shapeStrength: string;
19
+ };
20
+ roundedS: {
21
+ shape: string;
22
+ shapeStrength: string;
23
+ };
24
+ };
25
+ export { inputNumberAppearanceShape };
@@ -0,0 +1,33 @@
1
+ declare const inputNumberAppearanceSize: {
2
+ sizeXXL: {
3
+ size: string;
4
+ iconFillSize: string;
5
+ iconSize: string;
6
+ inputNumberTextSize: string;
7
+ };
8
+ sizeXL: {
9
+ size: string;
10
+ iconFillSize: string;
11
+ iconSize: string;
12
+ inputNumberTextSize: string;
13
+ };
14
+ sizeL: {
15
+ size: string;
16
+ iconFillSize: string;
17
+ iconSize: string;
18
+ inputNumberTextSize: string;
19
+ };
20
+ sizeM: {
21
+ size: string;
22
+ iconFillSize: string;
23
+ iconSize: string;
24
+ inputNumberTextSize: string;
25
+ };
26
+ sizeS: {
27
+ size: string;
28
+ iconFillSize: string;
29
+ iconSize: string;
30
+ inputNumberTextSize: string;
31
+ };
32
+ };
33
+ export { inputNumberAppearanceSize };
@@ -0,0 +1,16 @@
1
+ declare const inputNumberAppearanceStyle: {
2
+ solid: {
3
+ borderColor: string;
4
+ };
5
+ outlined: {
6
+ fill: string;
7
+ };
8
+ full: {
9
+ borderColor: string;
10
+ };
11
+ ghost: {
12
+ fill: string;
13
+ borderColor: string;
14
+ };
15
+ };
16
+ export { inputNumberAppearanceStyle };
@@ -0,0 +1,3 @@
1
+ import { InputNumberAppearance } from '../InputNumber.interfaces';
2
+ declare const inputNumberAppearanceSurface: InputNumberAppearance;
3
+ export { inputNumberAppearanceSurface };
@@ -0,0 +1,2 @@
1
+ export { InputNumber } from './InputNumber';
2
+ export { inputNumberAppearance } from './InputNumber.appearance';
@@ -20,6 +20,7 @@ export interface RangeSliderProps extends StyleAttributes {
20
20
  pushable?: boolean;
21
21
  range?: boolean;
22
22
  shape?: ShapeProps;
23
+ step?: number;
23
24
  style?: CSSProperties;
24
25
  value?: number;
25
26
  vertical?: boolean;
@@ -1,92 +1,120 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
- import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, DirectionProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, SizeProps, TextAlignProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextGradientProps, TextSizeProps, TextStyleProps, TextWeightProps, TextWrapProps, WidthProps, WrapProps } from '@itcase/types';
2
+ import { AlignDirectionProps, AlignProps, AppearanceKeysDefault, AppearanceSizeKey, BorderColorProps, BorderTypeProps, BorderWidthProps, DirectionProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, SizeProps, TextAlignProps, TextColorHoverProps, TextColorProps, TextGradientProps, TextStyleProps, TextWeightProps, TextWrapProps, WidthProps, WrapProps } from '@itcase/types';
3
3
  import type { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
- interface TabThemeColor {
5
- [key: number | string | symbol]: any;
4
+ import { BadgeProps } from '../Badge/Badge.interface';
5
+ import { DividerProps } from '../Divider/Divider.interface';
6
+ import { IconProps } from '../Icon/Icon.interface';
7
+ import { TextProps } from '../Text/Text.interface';
8
+ type TabAppearanceProps = {
6
9
  align?: AlignProps;
7
10
  alignDirection?: AlignDirectionProps;
8
- badgeAppearance?: AppearanceKeysDefault;
9
- badgeSize?: SizeProps;
10
- badgeTextColor?: TextColorProps;
11
- badgeTextSize?: TextSizeProps;
12
- badgeValue?: string;
13
- dividerDirection?: DirectionProps;
14
- dividerFill?: FillProps;
15
- dividerFillActive?: FillProps;
16
- dividerFillActiveHover?: FillHoverProps;
17
- dividerFillDisabled?: FillProps;
18
- dividerFillHover?: FillHoverProps;
19
- dividerSize?: SizeProps;
11
+ badgeAppearance?: BadgeProps['appearance'];
12
+ badgeAppearanceSize?: AppearanceSizeKey;
13
+ badgeShape?: BadgeProps['shape'];
14
+ badgeSize?: BadgeProps['size'];
15
+ badgeTextColor?: BadgeProps['textColor'];
16
+ badgeTextSize?: BadgeProps['textSize'];
17
+ badgeValue?: BadgeProps['value'];
18
+ dividerDirection?: DividerProps['direction'];
19
+ dividerFill?: DividerProps['fill'];
20
+ dividerFillActive?: DividerProps['fillActive'];
21
+ dividerFillActiveHover?: DividerProps['fillActiveHover'];
22
+ dividerFillDisabled?: DividerProps['fillDisabled'];
23
+ dividerFillHover?: DividerProps['fillHover'];
24
+ dividerSize?: DividerProps['size'];
20
25
  fill?: FillProps;
21
- fillActive?: FillProps;
26
+ fillActive?: FillActiveProps;
22
27
  fillActiveHover?: FillHoverProps;
23
28
  fillDisabled?: FillProps;
24
29
  fillHover?: FillHoverProps;
30
+ icon?: IconProps['SvgImage'];
31
+ iconFill?: IconProps['fill'];
32
+ iconFillIcon?: IconProps['iconFill'];
33
+ iconFillSize?: IconProps['iconFillSize'];
34
+ iconShape?: IconProps['shape'];
35
+ iconSize?: IconProps['size'];
36
+ iconSrc?: IconProps['imageSrc'];
25
37
  justifyContent?: JustifyContentProps;
26
38
  label?: string;
27
- labelColor?: TextColorProps;
28
- labelColorActive?: TextColorActiveProps;
39
+ labelColorActive?: TextProps['textColorActive'];
29
40
  labelColorDisabled?: TextColorProps;
30
41
  labelTextAlign?: TextAlignProps;
42
+ labelTextColor?: TextProps['textColor'];
43
+ labelTextColorActive?: TextProps['textColorActive'];
44
+ labelTextColorActiveHover?: TextProps['textColorActiveHover'];
31
45
  labelTextColorHover?: TextColorHoverProps;
32
46
  labelTextGradient?: TextGradientProps;
33
- labelTextSize?: TextSizeProps;
47
+ labelTextSize?: TextProps['size'];
34
48
  labelTextStyle?: TextStyleProps;
35
49
  labelTextWeight?: TextWeightProps;
36
50
  labelTextWrap?: TextWrapProps;
37
51
  linkFill?: FillProps;
38
52
  shape?: ShapeProps;
53
+ shapeStrength?: ShapeStrengthProps;
39
54
  size?: SizeProps;
40
55
  type?: string;
41
56
  width?: WidthProps;
42
- }
57
+ };
43
58
  type TabAppearance = {
44
- [key in AppearanceKeysDefault]?: TabThemeColor;
59
+ [key in AppearanceKeysDefault]?: TabAppearanceProps;
45
60
  };
46
- interface TabConfig {
47
- [key: number | string | symbol]: any;
48
- appearance: TabAppearance | undefined;
61
+ type TabConfig = {
62
+ appearance: TabAppearance;
49
63
  setAppearance: (newComponent: TabAppearance) => void;
50
- }
51
- interface TabProps extends TabThemeColor, StyleAttributes {
52
- [key: number | string | symbol]: any;
64
+ };
65
+ type TabProps = StyleAttributes & TabAppearanceProps & {
53
66
  after?: ReactNode;
54
67
  appearance?: AppearanceKeysDefault;
55
68
  before?: ReactNode;
56
69
  children?: ReactNode;
57
70
  className?: string;
71
+ dataTestId?: number;
58
72
  dataTour?: string;
59
73
  href?: string;
74
+ isActive?: boolean;
75
+ isDisabled?: boolean;
76
+ isHover?: boolean;
77
+ isSkeleton?: boolean;
60
78
  link?: string;
79
+ onClick?: () => void;
80
+ onMouseEnter?: () => void;
61
81
  rel?: string;
62
82
  reset?: boolean;
83
+ set?: string;
63
84
  style?: CSSProperties;
64
85
  target?: string;
86
+ };
87
+ interface TabGroupListItem {
88
+ badgeValue?: string;
89
+ icon?: string;
90
+ iconSrc?: string;
91
+ key?: number;
92
+ label?: string;
65
93
  isActive?: boolean;
66
- isDisabled?: boolean;
67
- isHover?: boolean;
68
94
  onClick?: () => void;
69
- onMouseEnter?: () => void;
70
- set?: string;
71
95
  }
72
- interface TabGroupProps extends StyleAttributes {
96
+ type TabGroupAppearanceProps = {
73
97
  align?: AlignProps;
74
98
  alignDirection?: AlignDirectionProps;
75
99
  borderColor?: BorderColorProps;
76
100
  borderType?: BorderTypeProps;
77
101
  borderWidth?: BorderWidthProps;
78
- children?: ReactNode;
79
- className?: string;
80
102
  contentAlign?: AlignProps;
81
- dataTestId?: string;
82
- dataTour?: string;
83
103
  direction?: DirectionProps;
84
104
  fill?: FillProps;
85
- horizontalScroll?: boolean;
86
- style?: CSSProperties;
87
105
  width?: WidthProps;
88
106
  wrap?: WrapProps;
107
+ };
108
+ type TabGroupProps = StyleAttributes & TabGroupAppearanceProps & {
109
+ children?: ReactNode;
110
+ className?: string;
111
+ dataTestId?: string;
112
+ dataTour?: string;
113
+ horizontalScroll?: boolean;
89
114
  isSkeleton: boolean;
90
115
  set?: string;
91
- }
92
- export type { TabThemeColor, TabAppearance, TabConfig, TabProps, TabGroupProps };
116
+ style?: CSSProperties;
117
+ tabAppearance?: TabProps['appearance'];
118
+ tabList?: TabGroupListItem[];
119
+ };
120
+ export type { TabAppearance, TabConfig, TabGroupProps, TabProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.27",
3
+ "version": "1.9.29",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -102,18 +102,18 @@
102
102
  "dependencies": {
103
103
  "@emotion/is-prop-valid": "^1.4.0",
104
104
  "@itcase/common": "^1.2.34",
105
- "@itcase/icons": "^1.2.27",
105
+ "@itcase/icons": "^1.2.28",
106
106
  "@itcase/storybook-config": "^1.2.29",
107
107
  "@itcase/tokens-am": "^1.1.37",
108
108
  "@itcase/tokens-baikal": "^1.1.37",
109
109
  "@itcase/tokens-palette": "^1.1.37",
110
110
  "clsx": "^2.1.1",
111
111
  "date-fns": "^4.1.0",
112
- "framer-motion": "^12.23.24",
112
+ "framer-motion": "^12.23.25",
113
113
  "js-cookie": "^3.0.5",
114
114
  "lodash": "^4.17.21",
115
115
  "luxon": "^3.7.2",
116
- "motion": "^12.23.24",
116
+ "motion": "^12.23.25",
117
117
  "rc-slider": "^11.1.9",
118
118
  "react": "^18.3.1",
119
119
  "react-dadata": "^2.27.4",
@@ -137,9 +137,9 @@
137
137
  "@babel/core": "^7.28.5",
138
138
  "@babel/preset-env": "^7.28.5",
139
139
  "@babel/preset-react": "^7.28.5",
140
- "@commitlint/cli": "^20.1.0",
141
- "@commitlint/config-conventional": "^20.0.0",
142
- "@itcase/config": "^1.0.70",
140
+ "@commitlint/cli": "^20.2.0",
141
+ "@commitlint/config-conventional": "^20.2.0",
142
+ "@itcase/config": "^1.0.72",
143
143
  "@itcase/lint": "^1.1.69",
144
144
  "@itcase/types": "^1.1.0",
145
145
  "@rollup/plugin-alias": "^6.0.0",
@@ -167,15 +167,15 @@
167
167
  "eslint": "9.39.1",
168
168
  "husky": "^9.1.7",
169
169
  "lint-staged": "^16.2.7",
170
- "prettier": "^3.6.2",
170
+ "prettier": "^3.7.4",
171
171
  "rollup": "^4.53.3",
172
172
  "rollup-plugin-copy": "^3.5.0",
173
173
  "rollup-plugin-dts": "^6.3.0",
174
174
  "rollup-plugin-peer-deps-external": "^2.2.4",
175
175
  "rollup-preserve-directives": "^1.1.3",
176
176
  "semantic-release": "^24.2.9",
177
- "storybook": "^10.1.0",
178
- "stylelint": "^16.26.0",
177
+ "storybook": "^10.1.4",
178
+ "stylelint": "^16.26.1",
179
179
  "typescript": "^5.9.3"
180
180
  }
181
181
  }