@itcase/ui 1.9.24 → 1.9.25

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 (107) hide show
  1. package/dist/{Avatar_cjs_DRZE113U.js → Avatar_cjs_CS01fvh-.js} +11 -5
  2. package/dist/{Avatar_es_Cmq4xAG6.js → Avatar_es_DRObE1DB.js} +11 -5
  3. package/dist/{ChipsGroup_cjs_D0bGehZY.js → ChipsGroup_cjs_Sn3uiCSJ.js} +33 -33
  4. package/dist/{ChipsGroup_es_DWvsJ5bu.js → ChipsGroup_es_CbzUWqG9.js} +33 -33
  5. package/dist/{DatePicker_cjs_Cm50AX0J.js → DatePicker_cjs_Bfiav-tb.js} +1 -1
  6. package/dist/{DatePicker_es_B-WPA9y9.js → DatePicker_es_CtbVXMmy.js} +1 -1
  7. package/dist/{Group_cjs_393FExUN.js → Group_cjs_DNI9PTBq.js} +1 -1
  8. package/dist/{Group_es_BtE98Vb5.js → Group_es_nBtACpoG.js} +1 -1
  9. package/dist/{SelectContainer_cjs_CsHj-fP_.js → SelectContainer_cjs_CdLyIuwj.js} +1 -1
  10. package/dist/{SelectContainer_es_Bc4Laoir.js → SelectContainer_es_DGTrm8OT.js} +1 -1
  11. package/dist/cjs/components/Avatar.js +1 -1
  12. package/dist/cjs/components/AvatarStack.js +2 -2
  13. package/dist/cjs/components/Button.js +1 -1
  14. package/dist/cjs/components/Cell.js +12 -16
  15. package/dist/cjs/components/Chips.js +1 -1
  16. package/dist/cjs/components/Code.js +17 -17
  17. package/dist/cjs/components/CookiesWarning.js +1 -1
  18. package/dist/cjs/components/DatePeriod.js +5 -5
  19. package/dist/cjs/components/DatePicker.js +2 -2
  20. package/dist/cjs/components/Group.js +1 -1
  21. package/dist/cjs/components/Notification.js +1 -1
  22. package/dist/cjs/components/Response.js +2 -2
  23. package/dist/cjs/components/Select.js +2 -2
  24. package/dist/cjs/components/Swiper.js +1 -1
  25. package/dist/cjs/components/Textarea.js +9 -21
  26. package/dist/cjs/components/Video.js +1 -1
  27. package/dist/cjs/components/Warning.js +2 -2
  28. package/dist/components/Avatar.js +1 -1
  29. package/dist/components/AvatarStack.js +2 -2
  30. package/dist/components/Button.js +1 -1
  31. package/dist/components/Cell.js +12 -16
  32. package/dist/components/Chips.js +1 -1
  33. package/dist/components/Code.js +17 -17
  34. package/dist/components/CookiesWarning.js +1 -1
  35. package/dist/components/DatePeriod.js +5 -5
  36. package/dist/components/DatePicker.js +2 -2
  37. package/dist/components/Group.js +1 -1
  38. package/dist/components/Notification.js +1 -1
  39. package/dist/components/Response.js +2 -2
  40. package/dist/components/Select.js +2 -2
  41. package/dist/components/Swiper.js +1 -1
  42. package/dist/components/Textarea.js +9 -21
  43. package/dist/components/Video.js +1 -1
  44. package/dist/components/Warning.js +2 -2
  45. package/dist/css/styles/bundles.css +6 -6
  46. package/dist/snippets/Group.snippets.json +1 -1
  47. package/dist/types/components/Button/Button.d.ts +1 -1
  48. package/dist/types/components/Button/Button.interface.d.ts +1 -1
  49. package/dist/types/components/Cell/Cell.appearance.d.ts +2 -2
  50. package/dist/types/components/Cell/Cell.interface.d.ts +67 -56
  51. package/dist/types/components/Cell/appearance/cellSize.d.ts +2 -58
  52. package/dist/types/components/Cell/appearance/cellStyle.d.ts +2 -13
  53. package/dist/types/components/Cell/appearance/cellSurface.d.ts +2 -54
  54. package/dist/types/components/Chips/Chips.interface.d.ts +83 -21
  55. package/dist/types/components/Chips/ChipsGroup.d.ts +2 -1
  56. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +2 -23
  57. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -16
  58. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +2 -13
  59. package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -16
  60. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -16
  61. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +2 -16
  62. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +2 -16
  63. package/dist/types/components/Chips/appearance/chipsShape.d.ts +2 -24
  64. package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -44
  65. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -13
  66. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -16
  67. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -45
  68. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -16
  69. package/dist/types/components/Code/Code.appearance.d.ts +2 -2
  70. package/dist/types/components/Code/Code.interface.d.ts +32 -33
  71. package/dist/types/components/Code/appearance/codeDefault.d.ts +2 -10
  72. package/dist/types/components/Code/appearance/codeDisabled.d.ts +2 -11
  73. package/dist/types/components/Code/appearance/codeError.d.ts +2 -11
  74. package/dist/types/components/Code/appearance/codeRequire.d.ts +2 -11
  75. package/dist/types/components/Code/appearance/codeShape.d.ts +2 -24
  76. package/dist/types/components/Code/appearance/codeSize.d.ts +2 -12
  77. package/dist/types/components/Code/appearance/codeStyle.d.ts +2 -15
  78. package/dist/types/components/Code/appearance/codeSuccess.d.ts +2 -11
  79. package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
  80. package/dist/types/components/Group/Group.appearance.d.ts +2 -2
  81. package/dist/types/components/Group/Group.d.ts +53 -2
  82. package/dist/types/components/Group/Group.interface.d.ts +48 -36
  83. package/dist/types/components/Textarea/Textarea.appearance.d.ts +2 -2
  84. package/dist/types/components/Textarea/Textarea.interface.d.ts +25 -22
  85. package/dist/types/components/Textarea/appearance/textareaDefault.d.ts +2 -36
  86. package/dist/types/components/Textarea/appearance/textareaDisabled.d.ts +2 -19
  87. package/dist/types/components/Textarea/appearance/textareaError.d.ts +2 -19
  88. package/dist/types/components/Textarea/appearance/textareaRequire.d.ts +2 -19
  89. package/dist/types/components/Textarea/appearance/textareaShape.d.ts +2 -24
  90. package/dist/types/components/Textarea/appearance/textareaSize.d.ts +2 -30
  91. package/dist/types/components/Textarea/appearance/textareaStyle.d.ts +2 -15
  92. package/dist/types/components/Textarea/appearance/textareaSuccess.d.ts +2 -20
  93. package/dist/types/components/Title/Title.appearance.d.ts +513 -456
  94. package/dist/types/components/Title/Title.interface.d.ts +11 -9
  95. package/dist/types/components/Video/Video.interface.d.ts +3 -6
  96. package/dist/types/components/Warning/Warning.appearance.d.ts +1276 -121
  97. package/dist/types/components/Warning/Warning.interface.d.ts +38 -34
  98. package/dist/types/components/Warning/appearance/warningAccent.d.ts +2 -22
  99. package/dist/types/components/Warning/appearance/warningError.d.ts +2 -22
  100. package/dist/types/components/Warning/appearance/warningInfo.d.ts +2 -22
  101. package/dist/types/components/Warning/appearance/warningShape.d.ts +2 -24
  102. package/dist/types/components/Warning/appearance/warningSize.d.ts +2 -10
  103. package/dist/types/components/Warning/appearance/warningStyle.d.ts +2 -13
  104. package/dist/types/components/Warning/appearance/warningWarning.d.ts +2 -22
  105. package/package.json +1 -1
  106. package/dist/{Button_cjs_BRShPZw4.js → Button_cjs_DPs7uj_n.js} +1 -1
  107. package/dist/{Button_es_CvRcO3xM.js → Button_es_ljlle2Pu.js} +1 -1
@@ -1,41 +1,45 @@
1
- import type { CSSProperties, ElementType } from 'react';
2
- import { AppearanceKeysDefault, BorderColorProps, FillProps, ItemFillProps, ShapeProps, SizePXProps, TextColorProps, TextSizeProps, TextWeightProps } from '@itcase/types';
3
- interface WarningThemeColor {
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ import { AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorProps, CompositeAppearanceKey, FillProps, ShapeProps, ShapeStrengthProps, TextColorProps, TextSizeProps } 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
+ type WarningAppearanceProps = {
4
7
  borderColor?: BorderColorProps;
5
- descriptionTextColor: TextColorProps;
6
- descriptionTextSize: TextSizeProps;
8
+ descriptionTextColor?: TextColorProps;
9
+ descriptionTextSize?: TextSizeProps;
7
10
  fill?: FillProps;
8
- iconAfter: ElementType;
9
- iconAfterFillIcon: ItemFillProps;
10
- iconAfterSize: SizePXProps;
11
- iconAfterSrc: string;
12
- iconBefore: ElementType;
13
- iconBeforeFill: FillProps;
14
- iconBeforeFillIcon: ItemFillProps;
15
- iconBeforeSize: SizePXProps;
16
- iconBeforeSrc: string;
17
- labelTextColor?: TextColorProps;
18
- labelTextSize?: TextSizeProps;
19
- labelTextWeight: TextWeightProps;
20
- size: TextSizeProps;
21
- }
22
- type WarningAppearance = {
23
- [key in AppearanceKeysDefault]?: WarningThemeColor;
11
+ iconAfter?: IconProps['SvgImage'];
12
+ iconAfterFill?: IconProps['fill'];
13
+ iconAfterFillIcon?: IconProps['iconFillIcon'];
14
+ iconAfterSize?: IconProps['iconSize'];
15
+ iconAfterSrc?: IconProps['imageSrc'];
16
+ iconBefore?: IconProps['SvgImage'];
17
+ iconBeforeFill?: IconProps['fill'];
18
+ iconBeforeFillIcon?: IconProps['iconFillIcon'];
19
+ iconBeforeSize?: IconProps['iconSize'];
20
+ iconBeforeSrc?: IconProps['imageSrc'];
21
+ labelTextColor?: TextProps['textColor'];
22
+ labelTextSize?: TextProps['size'];
23
+ labelTextWeight?: TextProps['textWeight'];
24
+ shape?: ShapeProps;
25
+ shapeStrength?: ShapeStrengthProps;
26
+ size?: TextSizeProps;
24
27
  };
25
- interface WarningConfig {
26
- [key: number | string | symbol]: any;
27
- appearance: WarningAppearance | undefined;
28
- setAppearance: (newComponent: WarningAppearance) => void;
29
- }
30
- interface WarningProps {
31
- appearance?: string;
32
- className: string;
28
+ type WarningProps = StyleAttributes & WarningAppearanceProps & {
29
+ appearance?: CompositeAppearanceKey;
30
+ children?: ReactNode;
31
+ className?: string;
33
32
  description?: string;
34
- iconAfterSrc?: string;
35
- iconBeforeSrc?: string;
33
+ isSkeleton?: boolean;
36
34
  label?: string;
37
- shape?: ShapeProps;
38
35
  style?: CSSProperties;
39
- isSkeleton?: boolean;
36
+ };
37
+ type WarningAppearanceKey = AppearanceKeysDefault | AppearanceShapeKey | AppearanceSizeKey | AppearanceStyleKey;
38
+ type WarningAppearance = {
39
+ [key in WarningAppearanceKey]?: WarningAppearanceProps;
40
+ };
41
+ interface WarningConfig {
42
+ appearance: WarningAppearance;
43
+ setAppearance: (appearanceConfig: WarningAppearance) => void;
40
44
  }
41
- export { WarningConfig, WarningProps };
45
+ export type { WarningAppearance, WarningConfig, WarningProps };
@@ -1,23 +1,3 @@
1
- declare const warningAppearanceAccent: {
2
- accentMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- descriptionTextColor: string;
6
- borderColor: string;
7
- iconAfter: string;
8
- iconAfterFillIcon: string;
9
- iconBefore: string;
10
- iconBeforeFillIcon: string;
11
- };
12
- accentPrimary: {
13
- fill: string;
14
- labelTextColor: string;
15
- descriptionTextColor: string;
16
- borderColor: string;
17
- iconAfter: string;
18
- iconAfterFillIcon: string;
19
- iconBefore: string;
20
- iconBeforeFillIcon: string;
21
- };
22
- };
1
+ import { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceAccent: WarningAppearance;
23
3
  export { warningAppearanceAccent };
@@ -1,23 +1,3 @@
1
- declare const warningAppearanceError: {
2
- errorMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- descriptionTextColor: string;
6
- borderColor: string;
7
- iconAfter: string;
8
- iconAfterFillIcon: string;
9
- iconBefore: string;
10
- iconBeforeFillIcon: string;
11
- };
12
- errorPrimary: {
13
- fill: string;
14
- labelTextColor: string;
15
- descriptionTextColor: string;
16
- borderColor: string;
17
- iconAfter: string;
18
- iconAfterFillIcon: string;
19
- iconBefore: string;
20
- iconBeforeFillIcon: string;
21
- };
22
- };
1
+ import { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceError: WarningAppearance;
23
3
  export { warningAppearanceError };
@@ -1,23 +1,3 @@
1
- declare const warningAppearanceInfo: {
2
- infoMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- descriptionTextColor: string;
6
- borderColor: string;
7
- iconAfter: string;
8
- iconAfterFillIcon: string;
9
- iconBefore: string;
10
- iconBeforeFillIcon: string;
11
- };
12
- infoPrimary: {
13
- fill: string;
14
- labelTextColor: string;
15
- descriptionTextColor: string;
16
- borderColor: string;
17
- iconAfter: string;
18
- iconAfterFillIcon: string;
19
- iconBefore: string;
20
- iconBeforeFillIcon: string;
21
- };
22
- };
1
+ import { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceInfo: WarningAppearance;
23
3
  export { warningAppearanceInfo };
@@ -1,25 +1,3 @@
1
- declare const warningAppearanceShape: {
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
- };
1
+ import { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceShape: WarningAppearance;
25
3
  export { warningAppearanceShape };
@@ -1,11 +1,3 @@
1
- declare const warningAppearanceSize: {
2
- sizeL: {
3
- size: string;
4
- labelTextSize: string;
5
- labelTextWeight: string;
6
- descriptionTextSize: string;
7
- iconAfterSize: string;
8
- iconBeforeSize: string;
9
- };
10
- };
1
+ import { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceSize: WarningAppearance;
11
3
  export { warningAppearanceSize };
@@ -1,14 +1,3 @@
1
- declare const warningAppearanceStyle: {
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 { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceStyle: WarningAppearance;
14
3
  export { warningAppearanceStyle };
@@ -1,23 +1,3 @@
1
- declare const warningAppearanceWarning: {
2
- warningMutedPrimary: {
3
- fill: string;
4
- labelTextColor: string;
5
- descriptionTextColor: string;
6
- borderColor: string;
7
- iconAfter: string;
8
- iconAfterFillIcon: string;
9
- iconBefore: string;
10
- iconBeforeFillIcon: string;
11
- };
12
- warningPrimary: {
13
- fill: string;
14
- labelTextColor: string;
15
- descriptionTextColor: string;
16
- borderColor: string;
17
- iconAfter: string;
18
- iconAfterFillIcon: string;
19
- iconBefore: string;
20
- iconBeforeFillIcon: string;
21
- };
22
- };
1
+ import { WarningAppearance } from '../Warning.interface';
2
+ declare const warningAppearanceWarning: WarningAppearance;
23
3
  export { warningAppearanceWarning };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.24",
3
+ "version": "1.9.25",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -85,9 +85,9 @@ const buttonAppearanceError = {
85
85
  errorMutedPrimary: {
86
86
  fill: 'errorTertiary',
87
87
  fillHover: 'errorHover',
88
- borderColor: 'errorBorderSecondary',
89
88
  labelTextColor: 'errorTextQuaternary',
90
89
  labelTextColorHover: 'errorTextQuaternary',
90
+ borderColor: 'errorBorderSecondary',
91
91
  iconAfterFillIcon: 'errorItemQuaternary',
92
92
  iconBeforeFillIcon: 'errorItemQuaternary',
93
93
  iconFillIcon: 'errorItemQuaternary',
@@ -83,9 +83,9 @@ const buttonAppearanceError = {
83
83
  errorMutedPrimary: {
84
84
  fill: 'errorTertiary',
85
85
  fillHover: 'errorHover',
86
- borderColor: 'errorBorderSecondary',
87
86
  labelTextColor: 'errorTextQuaternary',
88
87
  labelTextColorHover: 'errorTextQuaternary',
88
+ borderColor: 'errorBorderSecondary',
89
89
  iconAfterFillIcon: 'errorItemQuaternary',
90
90
  iconBeforeFillIcon: 'errorItemQuaternary',
91
91
  iconFillIcon: 'errorItemQuaternary',