@itcase/ui 1.8.9 → 1.8.10

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 (93) hide show
  1. package/dist/{Badge_cjs_DrG2tUjI.js → Badge_cjs_CeqDdbMs.js} +1 -1
  2. package/dist/{Badge_es_Bx0NsdST.js → Badge_es_uDX0eyDM.js} +1 -1
  3. package/dist/{Button_cjs_B7OmqizJ.js → Button_cjs_BKQLT7oE.js} +1 -1
  4. package/dist/{Button_es_CBbHMy1v.js → Button_es_H15aBFcg.js} +1 -1
  5. package/dist/{Icon_cjs_DSzfNqif.js → Icon_cjs_BaWMPaAR.js} +1 -1
  6. package/dist/{Icon_es_BBmoZ7_3.js → Icon_es_B0sySEUu.js} +1 -1
  7. package/dist/{Input_cjs_C8RWS1SD.js → Input_cjs_BAVggtkk.js} +5 -5
  8. package/dist/{Input_es_FXxp51gq.js → Input_es_CNduH28G.js} +5 -5
  9. package/dist/{Label_cjs_BCjB-mxC.js → Label_cjs_CbcENlSZ.js} +1 -1
  10. package/dist/{Label_es_CZpanSdR.js → Label_es_BCpDqP3q.js} +1 -1
  11. package/dist/{Title_cjs_iuyln-ab.js → Title_cjs_ByPcFb15.js} +4 -25
  12. package/dist/{Title_es_ke3YylFm.js → Title_es_eejUqSJf.js} +4 -25
  13. package/dist/{Tooltip_cjs_CTwksdFk.js → Tooltip_cjs_CY4HOzhz.js} +1 -1
  14. package/dist/{Tooltip_es_H976MIb7.js → Tooltip_es_B9hN4Zlm.js} +1 -1
  15. package/dist/cjs/components/Accordion.js +3 -3
  16. package/dist/cjs/components/Avatar.js +3 -3
  17. package/dist/cjs/components/Badge.js +4 -4
  18. package/dist/cjs/components/Breadcrumbs.js +3 -3
  19. package/dist/cjs/components/Button.js +4 -4
  20. package/dist/cjs/components/Cell.js +4 -4
  21. package/dist/cjs/components/Checkbox.js +150 -22
  22. package/dist/cjs/components/Chips.js +11 -5
  23. package/dist/cjs/components/Choice.js +3 -3
  24. package/dist/cjs/components/CookiesWarning.js +4 -4
  25. package/dist/cjs/components/DadataHintField.js +1 -1
  26. package/dist/cjs/components/DatePicker.js +65 -100
  27. package/dist/cjs/components/HeroTitle.js +9 -19
  28. package/dist/cjs/components/Icon.js +3 -3
  29. package/dist/cjs/components/Input.js +1 -1
  30. package/dist/cjs/components/InputPassword.js +3 -3
  31. package/dist/cjs/components/Label.js +3 -3
  32. package/dist/cjs/components/Modal.js +1 -1
  33. package/dist/cjs/components/Pagination.js +3 -3
  34. package/dist/cjs/components/Response.js +4 -4
  35. package/dist/cjs/components/Search.js +3 -3
  36. package/dist/cjs/components/Select.js +7 -7
  37. package/dist/cjs/components/Swiper.js +1 -1
  38. package/dist/cjs/components/Tab.js +4 -4
  39. package/dist/cjs/components/Tile.js +4 -4
  40. package/dist/cjs/components/Title.js +5 -5
  41. package/dist/cjs/components/Tooltip.js +2 -2
  42. package/dist/cjs/hooks/useStyles/useStyles.js +3 -0
  43. package/dist/components/Accordion.js +3 -3
  44. package/dist/components/Avatar.js +3 -3
  45. package/dist/components/Badge.js +4 -4
  46. package/dist/components/Breadcrumbs.js +3 -3
  47. package/dist/components/Button.js +4 -4
  48. package/dist/components/Cell.js +4 -4
  49. package/dist/components/Checkbox.js +151 -22
  50. package/dist/components/Chips.js +11 -5
  51. package/dist/components/Choice.js +3 -3
  52. package/dist/components/CookiesWarning.js +4 -4
  53. package/dist/components/DadataHintField.js +1 -1
  54. package/dist/components/DatePicker.js +65 -100
  55. package/dist/components/HeroTitle.js +9 -19
  56. package/dist/components/Icon.js +3 -3
  57. package/dist/components/Input.js +1 -1
  58. package/dist/components/InputPassword.js +3 -3
  59. package/dist/components/Label.js +3 -3
  60. package/dist/components/Modal.js +1 -1
  61. package/dist/components/Pagination.js +3 -3
  62. package/dist/components/Response.js +4 -4
  63. package/dist/components/Search.js +3 -3
  64. package/dist/components/Select.js +7 -7
  65. package/dist/components/Swiper.js +1 -1
  66. package/dist/components/Tab.js +4 -4
  67. package/dist/components/Tile.js +4 -4
  68. package/dist/components/Title.js +5 -5
  69. package/dist/components/Tooltip.js +2 -2
  70. package/dist/css/components/Checkbox/Checkbox.css +3 -0
  71. package/dist/css/components/HeroTitle/HeroTitle.css +20 -16
  72. package/dist/css/components/Select/Select.css +9 -0
  73. package/dist/css/components/Textarea/Textarea.css +2 -0
  74. package/dist/css/components/Title/Title.css +20 -16
  75. package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +1 -1
  76. package/dist/hooks/useStyles/useStyles.js +3 -0
  77. package/dist/types/components/Checkbox/Checkbox.appearance.d.ts +1 -2
  78. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -2
  79. package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +26 -0
  80. package/dist/types/components/Checkbox/appearance/checkboxDisabled.d.ts +20 -0
  81. package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +20 -0
  82. package/dist/types/components/Checkbox/appearance/checkboxRequire.d.ts +20 -0
  83. package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +31 -0
  84. package/dist/types/components/Checkbox/appearance/checkboxStyle.d.ts +14 -0
  85. package/dist/types/components/Checkbox/appearance/checkboxSuccess.d.ts +20 -0
  86. package/dist/types/components/Checkbox/index.d.ts +1 -1
  87. package/dist/types/components/Chips/appearance/chipsSize.d.ts +6 -1
  88. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +1 -0
  89. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +30 -55
  90. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +18 -33
  91. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +12 -22
  92. package/dist/types/components/Input/appearance/inputDefault.d.ts +5 -5
  93. package/package.json +1 -1
@@ -25,12 +25,14 @@
25
25
  background-position: -200%;
26
26
  }
27
27
  }
28
- .hero-title_size {
29
- @each $size in h1, h2, h3, h4, h5, h6 {
30
- &_$(size) {
31
- padding: 0;
32
- margin: 0;
33
- @mixin hero_$(size);
28
+ .hero-title {
29
+ &_size {
30
+ @each $size in h1, h2, h3, h4, h5, h6 {
31
+ &_$(size) {
32
+ padding: 0;
33
+ margin: 0;
34
+ @mixin hero_$(size);
35
+ }
34
36
  }
35
37
  }
36
38
  }
@@ -43,15 +45,17 @@
43
45
  }
44
46
  }
45
47
  }
46
- .hero-title_direction {
47
- &_horizontal {
48
- display: flex;
49
- flex-direction: row;
50
- align-items: flex-start;
51
- }
52
- &_vertical {
53
- display: flex;
54
- flex-direction: column;
55
- align-items: flex-start;
48
+ .hero-title {
49
+ &_direction {
50
+ &_horizontal {
51
+ display: flex;
52
+ flex-direction: row;
53
+ align-items: flex-start;
54
+ }
55
+ &_vertical {
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: flex-start;
59
+ }
56
60
  }
57
61
  }
@@ -91,6 +91,15 @@
91
91
  }
92
92
  }
93
93
 
94
+ .select {
95
+ &_width {
96
+ &_fill {
97
+ width: 100%;
98
+ min-width: 0;
99
+ }
100
+ }
101
+ }
102
+
94
103
  .select {
95
104
  &__control {
96
105
  position: relative;
@@ -1,4 +1,6 @@
1
1
  .textarea {
2
+ width: 100%;
3
+ min-width: 100%;
2
4
  &__input {
3
5
  width: 100%;
4
6
  min-width: 100%;
@@ -25,12 +25,14 @@
25
25
  background-position: -200%;
26
26
  }
27
27
  }
28
- .title_size {
29
- @each $size in h1, h2, h3, h4, h5, h6 {
30
- &_$(size) {
31
- padding: 0;
32
- margin: 0;
33
- @mixin $(size);
28
+ .title {
29
+ &_size {
30
+ @each $size in h1, h2, h3, h4, h5, h6 {
31
+ &_$(size) {
32
+ padding: 0;
33
+ margin: 0;
34
+ @mixin $(size);
35
+ }
34
36
  }
35
37
  }
36
38
  }
@@ -43,15 +45,17 @@
43
45
  }
44
46
  }
45
47
  }
46
- .title_direction {
47
- &_horizontal {
48
- display: flex;
49
- flex-direction: row;
50
- align-items: flex-start;
51
- }
52
- &_vertical {
53
- display: flex;
54
- flex-direction: column;
55
- align-items: flex-start;
48
+ .title {
49
+ &_direction {
50
+ &_horizontal {
51
+ display: flex;
52
+ flex-direction: row;
53
+ align-items: flex-start;
54
+ }
55
+ &_vertical {
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: flex-start;
59
+ }
56
60
  }
57
61
  }
@@ -42,6 +42,9 @@ function useStyles(props) {
42
42
  const resultStylesGroups = {};
43
43
  for (const [propKey, propValue] of Object.entries(propsStyleAttributes)) {
44
44
  let value = null;
45
+ console.log('propKey');
46
+ console.log(propKey);
47
+ console.log('propKey=======');
45
48
  const styleAttributeKey = getTargetStyleAttributeKey(propKey, propValue);
46
49
  const isStyleForCurrentDevice = propKey.toLowerCase().endsWith(deviceCurrentType.toLowerCase());
47
50
 
@@ -1,3 +1,2 @@
1
- import { CheckboxAppearance, CheckboxState } from 'src/components/Checkbox/Checkbox.interface';
1
+ import { CheckboxAppearance } from './Checkbox.interface';
2
2
  export declare const checkboxAppearance: CheckboxAppearance;
3
- export declare const checkboxState: CheckboxState;
@@ -34,7 +34,6 @@ interface CheckboxThemeColor {
34
34
  interface CheckboxConfig {
35
35
  [key: number | string | symbol]: any;
36
36
  appearance: CheckboxAppearance | undefined;
37
- state: CheckboxState | undefined;
38
37
  setAppearance: (newComponent: CheckboxAppearance) => void;
39
38
  setState: (newComponent: CheckboxState) => void;
40
39
  }
@@ -55,4 +54,4 @@ interface CheckboxProps extends CheckboxThemeColor, StyleAttributes {
55
54
  onChange?: (event?: React.ChangeEvent<HTMLInputElement>) => void;
56
55
  onFocus?: (event?: React.FocusEvent<HTMLInputElement>) => void;
57
56
  }
58
- export type { CheckboxThemeColor, CheckboxState, CheckboxAppearance, CheckboxConfig, CheckboxProps, };
57
+ export type { CheckboxThemeColor, CheckboxAppearance, CheckboxConfig, CheckboxProps, };
@@ -0,0 +1,26 @@
1
+ declare const checkboxAppearanceDefault: {
2
+ defaultPrimary: {
3
+ labelTextColor: string;
4
+ descTextColor: string;
5
+ errorStateBorderColor: string;
6
+ stateBorderColorDisabled: string;
7
+ stateBorderColorDisabledChecked: string;
8
+ stateCheckmarkFillDisabled: string;
9
+ stateFillDisabled: string;
10
+ stateFillDisabledChecked: string;
11
+ requiredStateBorderColor: string;
12
+ stateBorderColor: string;
13
+ stateBorderColorChecked: string;
14
+ stateCheckmarkFill: string;
15
+ stateFillChecked: string;
16
+ };
17
+ defaultSecondary: {
18
+ fill: string;
19
+ borderColor: string;
20
+ borderHover: string;
21
+ iconBeforeFill: string;
22
+ iconClearFill: string;
23
+ placeholderTextColor: string;
24
+ };
25
+ };
26
+ export { checkboxAppearanceDefault };
@@ -0,0 +1,20 @@
1
+ declare const checkboxAppearanceDisabled: {
2
+ disabledPrimary: {
3
+ fill: string;
4
+ borderColor: string;
5
+ borderHover: string;
6
+ textColor: string;
7
+ iconBeforeFill: string;
8
+ iconClearFill: string;
9
+ placeholderTextColor: string;
10
+ };
11
+ disabledSecondary: {
12
+ fill: string;
13
+ borderColor: string;
14
+ borderHover: string;
15
+ iconBeforeFill: string;
16
+ iconClearFill: string;
17
+ placeholderTextColor: string;
18
+ };
19
+ };
20
+ export { checkboxAppearanceDisabled };
@@ -0,0 +1,20 @@
1
+ declare const checkboxAppearanceError: {
2
+ errorPrimary: {
3
+ fill: string;
4
+ borderColor: string;
5
+ borderHover: string;
6
+ textColor: string;
7
+ iconBeforeFill: string;
8
+ iconClearFill: string;
9
+ placeholderTextColor: string;
10
+ };
11
+ errorSecondary: {
12
+ fill: string;
13
+ borderColor: string;
14
+ borderHover: string;
15
+ iconBeforeFill: string;
16
+ iconClearFill: string;
17
+ placeholderTextColor: string;
18
+ };
19
+ };
20
+ export { checkboxAppearanceError };
@@ -0,0 +1,20 @@
1
+ declare const checkboxAppearanceRequire: {
2
+ requirePrimary: {
3
+ fill: string;
4
+ borderColor: string;
5
+ borderHover: string;
6
+ textColor: string;
7
+ iconBeforeFill: string;
8
+ iconClearFill: string;
9
+ placeholderTextColor: string;
10
+ };
11
+ requireSecondary: {
12
+ fill: string;
13
+ borderColor: string;
14
+ borderHover: string;
15
+ iconBeforeFill: string;
16
+ iconClearFill: string;
17
+ placeholderTextColor: string;
18
+ };
19
+ };
20
+ export { checkboxAppearanceRequire };
@@ -0,0 +1,31 @@
1
+ declare const checkboxAppearanceSize: {
2
+ sizeXXL: {
3
+ size: string;
4
+ textSize: string;
5
+ };
6
+ sizeXL: {
7
+ size: string;
8
+ textSize: string;
9
+ };
10
+ sizeL: {
11
+ size: string;
12
+ textSize: string;
13
+ };
14
+ sizeM: {
15
+ labelTextSize: string;
16
+ descTextSize: string;
17
+ };
18
+ sizeS: {
19
+ size: string;
20
+ textSize: string;
21
+ };
22
+ sizeXS: {
23
+ size: string;
24
+ textSize: string;
25
+ };
26
+ sizeXXS: {
27
+ size: string;
28
+ textSize: string;
29
+ };
30
+ };
31
+ export { checkboxAppearanceSize };
@@ -0,0 +1,14 @@
1
+ declare const checkboxAppearanceStyle: {
2
+ full: {};
3
+ ghost: {
4
+ fill: string;
5
+ borderWidth: string;
6
+ };
7
+ outlined: {
8
+ fill: string;
9
+ };
10
+ solid: {
11
+ borderWidth: string;
12
+ };
13
+ };
14
+ export { checkboxAppearanceStyle };
@@ -0,0 +1,20 @@
1
+ declare const checkboxAppearanceSuccess: {
2
+ successPrimary: {
3
+ fill: string;
4
+ borderColor: string;
5
+ borderHover: string;
6
+ textColor: string;
7
+ iconBeforeFill: string;
8
+ iconClearFill: string;
9
+ placeholderTextColor: string;
10
+ };
11
+ successSecondary: {
12
+ fill: string;
13
+ borderColor: string;
14
+ borderHover: string;
15
+ iconBeforeFill: string;
16
+ iconClearFill: string;
17
+ placeholderTextColor: string;
18
+ };
19
+ };
20
+ export { checkboxAppearanceSuccess };
@@ -1,2 +1,2 @@
1
1
  export { Checkbox, checkboxConfig } from './Checkbox';
2
- export { checkboxAppearance, checkboxState } from './Checkbox.appearance';
2
+ export { checkboxAppearance } from './Checkbox.appearance';
@@ -1,2 +1,7 @@
1
- declare const chipsAppearanceSize: {};
1
+ declare const chipsAppearanceSize: {
2
+ sizeM: {
3
+ size: string;
4
+ labelTextSize: string;
5
+ };
6
+ };
2
7
  export { chipsAppearanceSize };
@@ -8,6 +8,7 @@ declare const chipsAppearanceSurface: {
8
8
  labelTextColor: string;
9
9
  labelTextHoverColor: string;
10
10
  borderColor: string;
11
+ activeIconItemFill: string;
11
12
  };
12
13
  surfaceSecondary: {
13
14
  fill: string;
@@ -23,66 +23,41 @@ export declare const datePickerAppearance: {
23
23
  inputProps: {};
24
24
  };
25
25
  sizeS: {
26
- datePickerProps: {
27
- daySize: string;
28
- dayTextSize: string;
29
- iconFillSize: number;
30
- };
31
- inputProps: {
32
- size: string;
33
- textSize: string;
34
- clearIconSize: number;
35
- clearLabelTextSize: string;
36
- };
26
+ daySize: string;
27
+ dayTextSize: string;
28
+ iconFillSize: number;
29
+ iconLeft: any;
30
+ iconRight: any;
37
31
  };
38
32
  sizeM: {
39
- datePickerProps: {
40
- daySize: string;
41
- dayTextSize: string;
42
- iconFillSize: number;
43
- };
44
- inputProps: {
45
- size: string;
46
- textSize: string;
47
- clearIconSize: number;
48
- clearLabelTextSize: string;
49
- };
33
+ daySize: string;
34
+ dayTextSize: string;
35
+ iconFillSize: number;
36
+ iconSize: number;
37
+ monthTextSize: string;
38
+ yearTextSize: string;
39
+ iconLeft: any;
40
+ iconRight: any;
50
41
  };
51
42
  sizeL: {
52
- datePickerProps: {
53
- daySize: string;
54
- dayTextSize: string;
55
- iconFillSize: number;
56
- };
57
- inputProps: {
58
- size: string;
59
- textSize: string;
60
- clearIconSize: number;
61
- clearLabelTextSize: string;
62
- };
43
+ daySize: string;
44
+ dayTextSize: string;
45
+ iconFillSize: number;
46
+ iconLeft: any;
47
+ iconRight: any;
63
48
  };
64
49
  surfacePrimary: {
65
- datePickerProps: {
66
- daySize: string;
67
- dayTextColor: string;
68
- dayTextShape: string;
69
- dayTextSize: string;
70
- iconFillHover: string;
71
- iconItemFill: string;
72
- iconShape: string;
73
- };
74
- inputProps: {
75
- width: string;
76
- fill: string;
77
- fillHover: string;
78
- borderColor: string;
79
- textColor: string;
80
- caret: string;
81
- clearIconItemFill: string;
82
- clearIconItemFillHover: string;
83
- clearLabelTextColor: string;
84
- clearLabelTextColorHover: string;
85
- placeholderTextColor: string;
86
- };
50
+ dayTextColor: string;
51
+ dayTextShape: string;
52
+ iconFillHover: string;
53
+ iconItemFill: string;
54
+ iconShape: string;
55
+ iconLeft: any;
56
+ iconRight: any;
57
+ monthTextColor: string;
58
+ monthTextWeight: number;
59
+ placeholderTextColor: string;
60
+ yearTextColor: string;
61
+ yearTextWeight: number;
87
62
  };
88
63
  };
@@ -1,42 +1,27 @@
1
1
  declare const datePickerSize: {
2
2
  sizeS: {
3
- datePickerProps: {
4
- daySize: string;
5
- dayTextSize: string;
6
- iconFillSize: number;
7
- };
8
- inputProps: {
9
- size: string;
10
- textSize: string;
11
- clearIconSize: number;
12
- clearLabelTextSize: string;
13
- };
3
+ daySize: string;
4
+ dayTextSize: string;
5
+ iconFillSize: number;
6
+ iconLeft: any;
7
+ iconRight: any;
14
8
  };
15
9
  sizeM: {
16
- datePickerProps: {
17
- daySize: string;
18
- dayTextSize: string;
19
- iconFillSize: number;
20
- };
21
- inputProps: {
22
- size: string;
23
- textSize: string;
24
- clearIconSize: number;
25
- clearLabelTextSize: string;
26
- };
10
+ daySize: string;
11
+ dayTextSize: string;
12
+ iconFillSize: number;
13
+ iconSize: number;
14
+ monthTextSize: string;
15
+ yearTextSize: string;
16
+ iconLeft: any;
17
+ iconRight: any;
27
18
  };
28
19
  sizeL: {
29
- datePickerProps: {
30
- daySize: string;
31
- dayTextSize: string;
32
- iconFillSize: number;
33
- };
34
- inputProps: {
35
- size: string;
36
- textSize: string;
37
- clearIconSize: number;
38
- clearLabelTextSize: string;
39
- };
20
+ daySize: string;
21
+ dayTextSize: string;
22
+ iconFillSize: number;
23
+ iconLeft: any;
24
+ iconRight: any;
40
25
  };
41
26
  };
42
27
  export { datePickerSize };
@@ -1,27 +1,17 @@
1
1
  declare const datePickerAppearanceSurface: {
2
2
  surfacePrimary: {
3
- datePickerProps: {
4
- daySize: string;
5
- dayTextColor: string;
6
- dayTextShape: string;
7
- dayTextSize: string;
8
- iconFillHover: string;
9
- iconItemFill: string;
10
- iconShape: string;
11
- };
12
- inputProps: {
13
- width: string;
14
- fill: string;
15
- fillHover: string;
16
- borderColor: string;
17
- textColor: string;
18
- caret: string;
19
- clearIconItemFill: string;
20
- clearIconItemFillHover: string;
21
- clearLabelTextColor: string;
22
- clearLabelTextColorHover: string;
23
- placeholderTextColor: string;
24
- };
3
+ dayTextColor: string;
4
+ dayTextShape: string;
5
+ iconFillHover: string;
6
+ iconItemFill: string;
7
+ iconShape: string;
8
+ iconLeft: any;
9
+ iconRight: any;
10
+ monthTextColor: string;
11
+ monthTextWeight: number;
12
+ placeholderTextColor: string;
13
+ yearTextColor: string;
14
+ yearTextWeight: number;
25
15
  };
26
16
  };
27
17
  export { datePickerAppearanceSurface };
@@ -3,22 +3,22 @@ declare const inputAppearanceDefault: {
3
3
  fill: string;
4
4
  borderColor: string;
5
5
  borderHover: string;
6
- iconBeforeFill: string;
7
- iconClearFill: string;
8
6
  textColor: string;
9
7
  textColorDisabled: string;
10
8
  caret: string;
9
+ iconBeforeFill: string;
10
+ iconClearFill: string;
11
11
  };
12
12
  defaultSecondary: {
13
13
  fill: string;
14
14
  borderColor: string;
15
15
  borderHover: string;
16
- iconBeforeFill: string;
17
- iconClearFill: string;
18
- placeholderTextColor: string;
19
16
  textColor: string;
20
17
  textColorDisabled: string;
21
18
  caret: string;
19
+ iconBeforeFill: string;
20
+ iconClearFill: string;
21
+ placeholderTextColor: string;
22
22
  };
23
23
  };
24
24
  export { inputAppearanceDefault };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.9",
3
+ "version": "1.8.10",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",