@itcase/ui 1.0.80 → 1.0.81

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 (47) hide show
  1. package/dist/components/Accordion.js +2 -4
  2. package/dist/components/Avatar.js +4 -3
  3. package/dist/components/Badge.js +2 -2
  4. package/dist/components/Breadcrumbs.js +45 -51
  5. package/dist/components/Button.js +10 -35
  6. package/dist/components/Cell.js +73 -71
  7. package/dist/components/Choice.js +1 -1
  8. package/dist/components/DatePicker.js +82 -15
  9. package/dist/components/Icon.js +8 -8
  10. package/dist/components/Label.js +1 -1
  11. package/dist/components/MenuItem.js +2 -2
  12. package/dist/components/Modal.js +17 -15
  13. package/dist/components/Pagination.js +64 -2
  14. package/dist/components/Search.js +9 -39
  15. package/dist/components/Segmented.js +18 -4
  16. package/dist/components/Swiper.js +2 -2
  17. package/dist/components/Tab.js +9 -9
  18. package/dist/components/Text.js +1 -1
  19. package/dist/components/Tile.js +1 -1
  20. package/dist/components/Title.js +1 -1
  21. package/dist/constants/componentProps/strokeColor.js +1 -1
  22. package/dist/constants/componentProps/textColor.js +1 -1
  23. package/dist/constants/componentProps/textColorActive.js +1 -1
  24. package/dist/constants/componentProps/textColorHover.js +1 -1
  25. package/dist/css/components/Avatar/Avatar.css +6 -3
  26. package/dist/css/components/Choice/Choice.css +3 -3
  27. package/dist/css/components/Choice/css/__item/choice__item.css +1 -2
  28. package/dist/css/components/DadataHintField/DadataHintField.css +1 -0
  29. package/dist/css/components/DatePicker/DatePicker.css +27 -0
  30. package/dist/css/components/Dropdown/Dropdown.css +9 -0
  31. package/dist/css/components/MenuItem/MenuItem.css +11 -1
  32. package/dist/css/components/Notification/Notification.css +36 -23
  33. package/dist/css/components/Notification/css/__item/notification__item_set_float.css +2 -9
  34. package/dist/css/components/Notification/css/__item/notification__item_set_form.css +2 -3
  35. package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +19 -0
  36. package/dist/css/components/Notification/css/__item/notification__item_set_top.css +0 -1
  37. package/dist/css/components/Notification/css/__item/notification__item_status.css +3 -3
  38. package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +10 -7
  39. package/dist/css/components/Search/Search.css +7 -7
  40. package/dist/css/components/Search/css/search-input/search-input.css +7 -7
  41. package/dist/css/components/Select/Select.css +7 -4
  42. package/dist/css/components/Select/css/__control/select__control_shape.css +1 -1
  43. package/dist/css/components/Select/css/__multi-value/select__multi-value.css +5 -2
  44. package/dist/css/components/Swiper/Swiper.css +2 -2
  45. package/dist/css/components/Tab/Tab.css +0 -10
  46. package/dist/css/components/Textarea/Textarea.css +1 -1
  47. package/package.json +15 -15
@@ -899,6 +899,18 @@
899
899
  border-radius: var(--date-picker-day-range-end-border-radius) !important;
900
900
  }
901
901
  }
902
+ &-start.react-datepicker__day--range-end {
903
+ border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
904
+ &:hover {
905
+ border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
906
+ }
907
+ }
908
+ &.react-datepicker__day--selecting-range-start.react-datepicker__day--selecting-range-end {
909
+ border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
910
+ &:hover {
911
+ border-radius: var(--date-picker-day-range-start-end-border-radius) !important;
912
+ }
913
+ }
902
914
  }
903
915
  &--today {
904
916
  background: var(--date-picker-day-today-background);
@@ -1069,6 +1081,14 @@
1069
1081
  }
1070
1082
  }
1071
1083
  &__input {
1084
+ &-container {
1085
+ display: flex;
1086
+ align-items: center;
1087
+ gap: 12px;
1088
+ & .input {
1089
+ min-width: 256px;
1090
+ }
1091
+ }
1072
1092
  &-time-container {
1073
1093
  text-align: center;
1074
1094
  padding: 4px;
@@ -1089,6 +1109,12 @@
1089
1109
  }
1090
1110
  }
1091
1111
  }
1112
+ &__clear-icon {
1113
+ position: absolute;
1114
+ top: 50%;
1115
+ right: 12px;
1116
+ transform: translateY(-50%);
1117
+ }
1092
1118
  &-wrapper {
1093
1119
  width: 100%;
1094
1120
  ^&__input-container {
@@ -1160,6 +1186,7 @@
1160
1186
  --date-picker-day-range-border-radius: 0;
1161
1187
  --date-picker-day-range-start-border-radius: 12px 0 0 12px;
1162
1188
  --date-picker-day-range-end-border-radius: 0 12px 12px 0;
1189
+ --date-picker-day-range-start-end-border-radius: 12px;
1163
1190
  --date-picker-day-today-background: var(--color-surface-secondary);
1164
1191
  --date-picker-day-today-text-color: var(--color-surface-text-primary);
1165
1192
  --date-picker-day-weekend-background: var(--color-surface-primary);
@@ -85,3 +85,12 @@
85
85
  }
86
86
  }
87
87
  }
88
+ .dropdown {
89
+ &__item {
90
+ &_shape {
91
+ &_rounded {
92
+ border-radius: var(--dropdown-item-shape-rounded, 4px);
93
+ }
94
+ }
95
+ }
96
+ }
@@ -37,7 +37,7 @@
37
37
  .menu-item {
38
38
  &_shape {
39
39
  &_rounded {
40
- border-radius: 12px;
40
+ border-radius: var(--menu-item-shape-rounded, 12px);
41
41
  }
42
42
  &_circular {
43
43
  border-radius: 50%;
@@ -54,3 +54,13 @@
54
54
  }
55
55
  }
56
56
  }
57
+
58
+ :root {
59
+ --menu-item-size-xxs-padding: 0 4px;
60
+ --menu-item-size-xs-padding: 0 4px;
61
+ --menu-item-size-s-padding: 1px 4px;
62
+ --menu-item-size-m-padding: 2px 4px;
63
+ --menu-item-size-l-padding: 4px 6px;
64
+ --menu-item-size-xl-padding: 7px 8px;
65
+ --menu-item-size-xxl-padding: 4px 10px;
66
+ }
@@ -28,19 +28,12 @@
28
28
  &_float {
29
29
  width: 100%;
30
30
  border-radius: 8px;
31
+ padding: 12px 16px;
32
+ @mixin elevation-8;
31
33
  ^^&-wrapper {
32
- padding: 12px 16px;
33
- border-radius: 8px;
34
- position: relative;
35
34
  display: flex;
36
35
  flex-direction: column;
37
36
  gap: 4px;
38
- @mixin elevation-8;
39
- }
40
- ^^&-close {
41
- position: absolute;
42
- top: 16px;
43
- right: 12px;
44
37
  }
45
38
  }
46
39
  }
@@ -51,7 +44,6 @@
51
44
  width: 100%;
52
45
  ^^&-wrapper {
53
46
  padding: 12px 0;
54
- position: relative;
55
47
  display: flex;
56
48
  flex-direction: column;
57
49
  justify-content: center;
@@ -65,11 +57,29 @@
65
57
  &_set {
66
58
  &_form {
67
59
  width: 100%;
60
+ padding: 12px 16px;
61
+ border-radius: 8px;
68
62
  ^^&-wrapper {
69
63
  text-align: left;
70
- padding: 12px 16px;
71
- border-radius: 8px;
72
- position: relative;
64
+ display: flex;
65
+ flex-direction: column;
66
+ gap: 4px;
67
+ }
68
+ }
69
+ }
70
+ }
71
+ .notification__item {
72
+ &_set {
73
+ &_toast {
74
+ width: 100%;
75
+ background: var(--color-surface-primary);
76
+ padding: 12px 16px;
77
+ border-radius: 8px;
78
+ display: flex;
79
+ flex-direction: column;
80
+ gap: 24px;
81
+ @mixin elevation-8;
82
+ ^^&-wrapper {
73
83
  display: flex;
74
84
  flex-direction: column;
75
85
  gap: 4px;
@@ -80,8 +90,8 @@
80
90
  .notification__item {
81
91
  &_status {
82
92
  &_success {
93
+ background: var(--color-success-primary);
83
94
  ^^&-wrapper {
84
- background: var(--color-success-primary);
85
95
  ^^^&-title {
86
96
  color: var(--color-success-text-secondary);
87
97
  }
@@ -91,8 +101,8 @@
91
101
  }
92
102
  }
93
103
  &_error {
104
+ background: var(--color-error-primary);
94
105
  ^^&-wrapper {
95
- background: var(--color-error-primary);
96
106
  ^^^&-title {
97
107
  color: var(--color-error-text-secondary);
98
108
  }
@@ -102,8 +112,8 @@
102
112
  }
103
113
  }
104
114
  &_warning {
115
+ background: var(--color-primary-primary);
105
116
  ^^&-wrapper {
106
- background: var(--color-primary-primary);
107
117
  ^^^&-title {
108
118
  color: var(--color-primary-text-primary);
109
119
  }
@@ -117,13 +127,16 @@
117
127
  .notification__item {
118
128
  &_type {
119
129
  &_close-button {
120
- ^^&-title {
121
- margin-right: 40px;
122
- }
123
- ^^&-close {
124
- position: absolute;
125
- top: 12px;
126
- right: 16px;
130
+ ^^&-wrapper {
131
+ position: relative;
132
+ ^^^&-title {
133
+ margin-right: 40px;
134
+ }
135
+ ^^^&-close {
136
+ position: absolute;
137
+ top: 0;
138
+ right: 0;
139
+ }
127
140
  }
128
141
  }
129
142
  }
@@ -3,19 +3,12 @@
3
3
  &_float {
4
4
  width: 100%;
5
5
  border-radius: 8px;
6
+ padding: 12px 16px;
7
+ @mixin elevation-8;
6
8
  ^^&-wrapper {
7
- padding: 12px 16px;
8
- border-radius: 8px;
9
- position: relative;
10
9
  display: flex;
11
10
  flex-direction: column;
12
11
  gap: 4px;
13
- @mixin elevation-8;
14
- }
15
- ^^&-close {
16
- position: absolute;
17
- top: 16px;
18
- right: 12px;
19
12
  }
20
13
  }
21
14
  }
@@ -2,11 +2,10 @@
2
2
  &_set {
3
3
  &_form {
4
4
  width: 100%;
5
+ padding: 12px 16px;
6
+ border-radius: 8px;
5
7
  ^^&-wrapper {
6
8
  text-align: left;
7
- padding: 12px 16px;
8
- border-radius: 8px;
9
- position: relative;
10
9
  display: flex;
11
10
  flex-direction: column;
12
11
  gap: 4px;
@@ -0,0 +1,19 @@
1
+ .notification__item {
2
+ &_set {
3
+ &_toast {
4
+ width: 100%;
5
+ background: var(--color-surface-primary);
6
+ padding: 12px 16px;
7
+ border-radius: 8px;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 24px;
11
+ @mixin elevation-8;
12
+ ^^&-wrapper {
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: 4px;
16
+ }
17
+ }
18
+ }
19
+ }
@@ -4,7 +4,6 @@
4
4
  width: 100%;
5
5
  ^^&-wrapper {
6
6
  padding: 12px 0;
7
- position: relative;
8
7
  display: flex;
9
8
  flex-direction: column;
10
9
  justify-content: center;
@@ -1,8 +1,8 @@
1
1
  .notification__item {
2
2
  &_status {
3
3
  &_success {
4
+ background: var(--color-success-primary);
4
5
  ^^&-wrapper {
5
- background: var(--color-success-primary);
6
6
  ^^^&-title {
7
7
  color: var(--color-success-text-secondary);
8
8
  }
@@ -12,8 +12,8 @@
12
12
  }
13
13
  }
14
14
  &_error {
15
+ background: var(--color-error-primary);
15
16
  ^^&-wrapper {
16
- background: var(--color-error-primary);
17
17
  ^^^&-title {
18
18
  color: var(--color-error-text-secondary);
19
19
  }
@@ -23,8 +23,8 @@
23
23
  }
24
24
  }
25
25
  &_warning {
26
+ background: var(--color-primary-primary);
26
27
  ^^&-wrapper {
27
- background: var(--color-primary-primary);
28
28
  ^^^&-title {
29
29
  color: var(--color-primary-text-primary);
30
30
  }
@@ -1,13 +1,16 @@
1
1
  .notification__item {
2
2
  &_type {
3
3
  &_close-button {
4
- ^^&-title {
5
- margin-right: 40px;
6
- }
7
- ^^&-close {
8
- position: absolute;
9
- top: 12px;
10
- right: 16px;
4
+ ^^&-wrapper {
5
+ position: relative;
6
+ ^^^&-title {
7
+ margin-right: 40px;
8
+ }
9
+ ^^^&-close {
10
+ position: absolute;
11
+ top: 0;
12
+ right: 0;
13
+ }
11
14
  }
12
15
  }
13
16
  }
@@ -23,19 +23,19 @@
23
23
  width: 100%;
24
24
  position: relative;
25
25
  display: grid;
26
- grid-template-columns: 1fr 1fr;
27
- transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
28
26
  align-items: center;
27
+ transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
28
+ grid-template-columns: 1fr 1fr;
29
29
  }
30
30
  &__value {
31
31
  background: none;
32
+ padding: 1px 0 !important;
32
33
  border: none;
33
34
  position: relative;
34
35
  display: block;
36
+ z-index: 2;
35
37
  grid-column: 1/3;
36
38
  grid-row-start: 1;
37
- z-index: 2;
38
- padding: 1.25px 0 !important;
39
39
  &:focus {
40
40
  outline: 0;
41
41
  }
@@ -49,7 +49,7 @@
49
49
  background: none;
50
50
  border: none;
51
51
  position: relative;
52
- display: block;
52
+ display: grid;
53
53
  grid-column: 1/3;
54
54
  grid-row-start: 1;
55
55
  &:focus {
@@ -60,10 +60,10 @@
60
60
  margin: 0 4px 0 0;
61
61
  position: absolute;
62
62
  top: 50%;
63
- transform: translate(0, -50%);
64
63
  right: 0;
65
- cursor: pointer;
66
64
  z-index: 2;
65
+ transform: translate(0, -50%);
66
+ cursor: pointer;
67
67
  }
68
68
  &&_state_focus,
69
69
  &&_state_filled {
@@ -12,19 +12,19 @@
12
12
  width: 100%;
13
13
  position: relative;
14
14
  display: grid;
15
- grid-template-columns: 1fr 1fr;
16
- transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
17
15
  align-items: center;
16
+ transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
17
+ grid-template-columns: 1fr 1fr;
18
18
  }
19
19
  &__value {
20
20
  background: none;
21
+ padding: 1px 0 !important;
21
22
  border: none;
22
23
  position: relative;
23
24
  display: block;
25
+ z-index: 2;
24
26
  grid-column: 1/3;
25
27
  grid-row-start: 1;
26
- z-index: 2;
27
- padding: 1.25px 0 !important;
28
28
  &:focus {
29
29
  outline: 0;
30
30
  }
@@ -38,7 +38,7 @@
38
38
  background: none;
39
39
  border: none;
40
40
  position: relative;
41
- display: block;
41
+ display: grid;
42
42
  grid-column: 1/3;
43
43
  grid-row-start: 1;
44
44
  &:focus {
@@ -49,10 +49,10 @@
49
49
  margin: 0 4px 0 0;
50
50
  position: absolute;
51
51
  top: 50%;
52
- transform: translate(0, -50%);
53
52
  right: 0;
54
- cursor: pointer;
55
53
  z-index: 2;
54
+ transform: translate(0, -50%);
55
+ cursor: pointer;
56
56
  }
57
57
  &&_state_focus,
58
58
  &&_state_filled {
@@ -32,7 +32,7 @@
32
32
 
33
33
  .select {
34
34
  &&_size {
35
- @each $size in normal, compaсt {
35
+ @each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
36
36
  &_$(size) {
37
37
  ^^&__control {
38
38
  padding: var(--select-size-$(size)-padding);
@@ -109,7 +109,7 @@
109
109
  &__control {
110
110
  &_shape {
111
111
  &_rounded {
112
- border-radius: 6px;
112
+ border-radius: var(--select-control-shape-rounded, 6px);
113
113
  }
114
114
  &_circular {
115
115
  border-radius: 50%;
@@ -234,8 +234,11 @@
234
234
 
235
235
  .select__multi-value {
236
236
  &-wrapper {
237
- padding: 4px 6px;
238
- border-radius: 6px;
237
+ padding: var(--select-multi-value-padding, 4px 6px);
238
+ border-radius: var(--select-multi-value-border-radius, 6px);
239
+ ^&__label {
240
+ display: flex;
241
+ }
239
242
  }
240
243
  }
241
244
 
@@ -2,7 +2,7 @@
2
2
  &__control {
3
3
  &_shape {
4
4
  &_rounded {
5
- border-radius: 6px;
5
+ border-radius: var(--select-control-shape-rounded, 6px);
6
6
  }
7
7
  &_circular {
8
8
  border-radius: 50%;
@@ -1,6 +1,9 @@
1
1
  .select__multi-value {
2
2
  &-wrapper {
3
- padding: 4px 6px;
4
- border-radius: 6px;
3
+ padding: var(--select-multi-value-padding, 4px 6px);
4
+ border-radius: var(--select-multi-value-border-radius, 6px);
5
+ ^&__label {
6
+ display: flex;
7
+ }
5
8
  }
6
9
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 11.0.3
2
+ * Swiper 11.0.4
3
3
  * Most modern mobile touch slider and framework with hardware accelerated transitions
4
4
  * https://swiperjs.com
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: October 26, 2023
10
+ * Released on: November 9, 2023
11
11
  */
12
12
 
13
13
  /* FONT_START */
@@ -59,19 +59,9 @@
59
59
  }
60
60
  }
61
61
  }
62
- .tab {
63
- &_state {
64
- &_active {
65
- ^^&__label {
66
- color: var(--color-surface-text-accent);
67
- }
68
- }
69
- }
70
- }
71
62
  :root {
72
63
  --tab-size-normal-padding: 10px;
73
64
  --tab-size-normal-gap: 10px;
74
-
75
65
  --tab-size-compact-padding: 10px;
76
66
  --tab-size-compact-gap: 10px;
77
67
  }
@@ -18,7 +18,7 @@
18
18
  .textarea {
19
19
  &_shape {
20
20
  &_rounded {
21
- border-radius: 4px;
21
+ border-radius: var(--textarea-shape-rounded, 4px);
22
22
  position: relative;
23
23
  }
24
24
  &_underline {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -40,12 +40,12 @@
40
40
  "registry": "https://registry.npmjs.org/"
41
41
  },
42
42
  "dependencies": {
43
- "@itcase/common": "^1.1.9",
43
+ "@itcase/common": "^1.1.10",
44
44
  "clsx": "^2.0.0",
45
45
  "html5-boilerplate": "^8.0.0",
46
46
  "js-cookie": "^3.0.5",
47
47
  "lodash": "^4.17.21",
48
- "luxon": "^3.4.3",
48
+ "luxon": "^3.4.4",
49
49
  "prop-types": "^15.8.1",
50
50
  "rc-slider": "^10.4.0",
51
51
  "react": "^18.2.0",
@@ -59,16 +59,16 @@
59
59
  "react-responsive": "^9.0.2",
60
60
  "react-scrollbars-custom": "^4.1.1",
61
61
  "react-select": "^5.8.0",
62
- "swiper": "^11.0.3",
62
+ "swiper": "^11.0.4",
63
63
  "uuid": "^9.0.1"
64
64
  },
65
65
  "devDependencies": {
66
- "@babel/core": "^7.23.2",
67
- "@babel/eslint-parser": "^7.22.15",
68
- "@babel/preset-env": "^7.23.2",
69
- "@babel/preset-react": "^7.22.15",
70
- "@commitlint/cli": "^18.2.0",
71
- "@commitlint/config-conventional": "^18.1.0",
66
+ "@babel/core": "^7.23.3",
67
+ "@babel/eslint-parser": "^7.23.3",
68
+ "@babel/preset-env": "^7.23.3",
69
+ "@babel/preset-react": "^7.23.3",
70
+ "@commitlint/cli": "^18.4.2",
71
+ "@commitlint/config-conventional": "^18.4.2",
72
72
  "@rollup/plugin-babel": "^6.0.4",
73
73
  "@rollup/plugin-commonjs": "^25.0.7",
74
74
  "@rollup/plugin-json": "^6.0.1",
@@ -86,7 +86,7 @@
86
86
  "eslint-config-standard": "^17.1.0",
87
87
  "eslint-plugin-babel": "^5.3.1",
88
88
  "eslint-plugin-import": "^2.29.0",
89
- "eslint-plugin-n": "^16.3.0",
89
+ "eslint-plugin-n": "^16.3.1",
90
90
  "eslint-plugin-node": "^11.1.0",
91
91
  "eslint-plugin-prettier": "^5.0.1",
92
92
  "eslint-plugin-promise": "^6.1.1",
@@ -94,8 +94,8 @@
94
94
  "eslint-plugin-react-hooks": "^4.6.0",
95
95
  "eslint-plugin-standard": "^5.0.0",
96
96
  "husky": "^8.0.3",
97
- "lint-staged": "^15.0.2",
98
- "npm": "^10.2.3",
97
+ "lint-staged": "^15.1.0",
98
+ "npm": "^10.2.4",
99
99
  "postcss": "^8.4.31",
100
100
  "postcss-aspect-ratio-polyfill": "^2.0.0",
101
101
  "postcss-cli": "^10.1.0",
@@ -118,9 +118,9 @@
118
118
  "postcss-pxtorem": "^6.0.0",
119
119
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
120
120
  "postcss-sort-media-queries": "^5.2.0",
121
- "prettier": "^3.0.3",
121
+ "prettier": "^3.1.0",
122
122
  "react-datepicker": "^4.21.0",
123
- "rollup": "^4.3.0",
123
+ "rollup": "^4.4.1",
124
124
  "rollup-plugin-peer-deps-external": "^2.2.4",
125
125
  "semantic-release": "^22.0.7",
126
126
  "stylelint": "^15.11.0",