@itcase/ui 1.0.80 → 1.0.82

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 (76) hide show
  1. package/dist/components/Accordion.js +3 -5
  2. package/dist/components/Avatar.js +4 -3
  3. package/dist/components/Badge.js +5 -9
  4. package/dist/components/Breadcrumbs.js +45 -51
  5. package/dist/components/Button.js +10 -35
  6. package/dist/components/Cell.js +103 -97
  7. package/dist/components/Choice.js +1 -1
  8. package/dist/components/ContextMenu.js +1 -1
  9. package/dist/components/DatePicker.js +86 -15
  10. package/dist/components/Icon.js +8 -8
  11. package/dist/components/Label.js +7 -4
  12. package/dist/components/MenuItem.js +2 -2
  13. package/dist/components/Modal.js +17 -15
  14. package/dist/components/Pagination.js +64 -2
  15. package/dist/components/Search.js +14 -61
  16. package/dist/components/Segmented.js +18 -4
  17. package/dist/components/Swiper.js +2 -2
  18. package/dist/components/Tab.js +108 -110
  19. package/dist/components/Text.js +1 -1
  20. package/dist/components/Tile.js +1 -1
  21. package/dist/components/Title.js +1 -1
  22. package/dist/constants/componentProps/borderColor.js +1 -1
  23. package/dist/constants/componentProps/fill.js +1 -1
  24. package/dist/constants/componentProps/strokeColor.js +1 -1
  25. package/dist/constants/componentProps/textColor.js +1 -1
  26. package/dist/constants/componentProps/textColorActive.js +1 -1
  27. package/dist/constants/componentProps/textColorHover.js +1 -1
  28. package/dist/css/components/Accordion/Accordion.css +1 -2
  29. package/dist/css/components/Avatar/Avatar.css +7 -4
  30. package/dist/css/components/Badge/Badge.css +1 -18
  31. package/dist/css/components/Button/Button.css +3 -14
  32. package/dist/css/components/Cell/Cell.css +12 -22
  33. package/dist/css/components/Chips/Chips.css +1 -2
  34. package/dist/css/components/Choice/Choice.css +4 -4
  35. package/dist/css/components/Choice/css/__item/choice__item.css +1 -2
  36. package/dist/css/components/Code/Code.css +1 -1
  37. package/dist/css/components/ContextMenu/ContextMenu.css +2 -7
  38. package/dist/css/components/ContextMenu/css/__item/context-menu__item.css +1 -2
  39. package/dist/css/components/DadataHintField/DadataHintField.css +1 -0
  40. package/dist/css/components/DatePicker/DatePicker.css +30 -0
  41. package/dist/css/components/Divider/Divider.css +24 -42
  42. package/dist/css/components/Dot/Dot.css +5 -9
  43. package/dist/css/components/Dropdown/Dropdown.css +9 -0
  44. package/dist/css/components/Flex/Flex.css +2 -2
  45. package/dist/css/components/Flex/css/__item/flex__item_shape.css +1 -1
  46. package/dist/css/components/Grid/Grid.css +1 -1
  47. package/dist/css/components/Group/Group.css +1 -1
  48. package/dist/css/components/Icon/Icon.css +1 -1
  49. package/dist/css/components/Label/Label.css +1 -1
  50. package/dist/css/components/MenuItem/MenuItem.css +11 -1
  51. package/dist/css/components/Modal/Modal.css +1 -1
  52. package/dist/css/components/Notification/Notification.css +38 -25
  53. package/dist/css/components/Notification/css/__item/notification__item_set_float.css +3 -10
  54. package/dist/css/components/Notification/css/__item/notification__item_set_form.css +2 -3
  55. package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +19 -0
  56. package/dist/css/components/Notification/css/__item/notification__item_set_top.css +1 -2
  57. package/dist/css/components/Notification/css/__item/notification__item_status.css +3 -3
  58. package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +10 -7
  59. package/dist/css/components/Pagination/Pagination.css +14 -14
  60. package/dist/css/components/Pagination/css/__item/pagination__item.css +14 -14
  61. package/dist/css/components/RadioButton/RadioButton.css +2 -2
  62. package/dist/css/components/Search/Search.css +8 -9
  63. package/dist/css/components/Search/css/search-input/search-input.css +6 -7
  64. package/dist/css/components/Search/css/search-input/search-input_shape.css +1 -1
  65. package/dist/css/components/Segmented/Segmented.css +1 -1
  66. package/dist/css/components/Select/Select.css +18 -5
  67. package/dist/css/components/Select/css/__control/select__control_shape.css +1 -1
  68. package/dist/css/components/Select/css/__multi-value/select__multi-value.css +5 -2
  69. package/dist/css/components/Swiper/Swiper.css +2 -2
  70. package/dist/css/components/Tab/Tab.css +3 -14
  71. package/dist/css/components/Textarea/Textarea.css +5 -5
  72. package/dist/css/components/Tile/Tile.css +2 -2
  73. package/dist/css/styles/border-color/border-color.css +2 -1
  74. package/dist/css/styles/fill/fill.css +19 -15
  75. package/dist/css/styles/text-color/text-color.css +2 -2
  76. package/package.json +15 -15
@@ -1,14 +1,13 @@
1
1
  .button {
2
2
  text-decoration: none;
3
3
  background: none;
4
+ padding: 0;
5
+ margin: 0;
4
6
  border: solid 0 #fff;
5
7
  position: relative;
6
8
  display: flex;
7
9
  justify-content: center;
8
10
  align-items: center;
9
- cursor: pointer;
10
- padding: 0;
11
- margin: 0;
12
11
  transition: var(--button-transition);
13
12
  &__loader {
14
13
  width: 100%;
@@ -34,7 +33,7 @@
34
33
  .button {
35
34
  &_shape {
36
35
  &_rounded {
37
- border-radius: var(--button-shape-rounded-default);
36
+ border-radius: var(--button-shape-rounded-default, 6px);
38
37
  @each $size in xs, s, m, l, xl, xxl {
39
38
  &.button_size_$(size) {
40
39
  border-radius: var(--button-size-$(size)-shape-rounded);
@@ -329,43 +328,33 @@
329
328
  }
330
329
  }
331
330
  :root {
332
- --button-shape-rounded-default: 6px;
333
331
  --button-transition: all 0.2s ease 0s;
334
-
335
332
  --button-size-xxs-padding: 4px 12px;
336
333
  --button-size-xxs-icon-padding: 0px;
337
334
  --button-size-xxs-gap: 6px;
338
335
  --button-size-xxs-shape-rounded: 6px;
339
-
340
336
  --button-size-xs-padding: 2px 8px;
341
337
  --button-size-xs-icon-padding: 0px;
342
338
  --button-size-xs-gap: 6px;
343
339
  --button-size-xs-shape-rounded: 6px;
344
-
345
340
  --button-size-s-padding: 4px 16px;
346
341
  --button-size-s-icon-padding: 0px;
347
342
  --button-size-s-gap: 6px;
348
343
  --button-size-s-shape-rounded: 6px;
349
-
350
344
  --button-size-m-padding: 8px 24px;
351
345
  --button-size-m-icon-padding: 10px;
352
346
  --button-size-m-gap: 6px;
353
347
  --button-size-m-shape-rounded: 6px;
354
-
355
348
  --button-size-l-padding: 12px 32px;
356
349
  --button-size-l-icon-padding: 0px;
357
350
  --button-size-l-gap: 6px;
358
351
  --button-size-l-shape-rounded: 6px;
359
-
360
352
  --button-size-xl-padding: 16px 32px;
361
353
  --button-size-xl-icon-padding: 0px;
362
354
  --button-size-xl-gap: 6px;
363
355
  --button-size-xl-shape-rounded: 6px;
364
-
365
356
  --button-size-xxl-padding: 24px 40px;
366
357
  --button-size-xxl-icon-padding: 0px;
367
358
  --button-size-xxl-gap: 6px;
368
359
  --button-size-xxl-shape-rounded: 6px;
369
360
  }
370
-
371
-
@@ -2,36 +2,26 @@
2
2
  &__wrapper {
3
3
  ^&__data {
4
4
  display: flex;
5
- flex-flow: column nowrap;
6
- flex: 1;
5
+ flex-flow: row nowrap;
6
+ align-items: center;
7
+ gap: 8px;
7
8
  }
8
9
  ^&__icon {
9
- padding: 8px 0 0 0;
10
- display: flex;
11
- gap: 16px;
12
- &-before {
13
- display: flex;
14
- padding: 0 16px 0 0;
15
- align-items: center;
16
- }
17
- &-after {
18
- display: flex;
19
- padding: 0 0 0 16px;
20
- align-items: center;
21
- }
22
10
  }
23
11
  }
24
12
  }
25
13
  .cell {
26
- &_direction {
27
- &_vertical {
28
- ^^&__data {
14
+ &__wrapper {
15
+ &_direction {
16
+ &_vertical {
17
+ display: flex;
18
+ flex-direction: column;
29
19
  }
30
- }
31
- &_horizontal {
32
- ^^&__data {
33
- flex-flow: row;
20
+ &_horizontal {
21
+ display: flex;
22
+ flex-direction: row;
34
23
  justify-content: space-between;
24
+ gap: 20px;
35
25
  }
36
26
  }
37
27
  }
@@ -46,7 +46,7 @@
46
46
  .chips {
47
47
  &_shape {
48
48
  &_rounded {
49
- border-radius: var(--chips-shape-rounded-default);
49
+ border-radius: var(--chips-shape-rounded-default, 6px);
50
50
  @each $size in xxs, xs, s, m, l, xl, xxl {
51
51
  &.chips_size_$(size) {
52
52
  border-radius: var(--chips-size-$(size)-shape-rounded);
@@ -60,7 +60,6 @@
60
60
  }
61
61
 
62
62
  :root {
63
- --chips-shape-rounded-default: 6px;
64
63
  --chips-size-xxs-shape-rounded: 6px;
65
64
  --chips-size-xs-shape-rounded: 6px;
66
65
  --chips-size-s-shape-rounded: 6px;
@@ -10,7 +10,7 @@
10
10
  .choice {
11
11
  &_shape {
12
12
  &_rounded {
13
- border-radius: 8px;
13
+ border-radius: var(--choice-shape-rounded, 8px);
14
14
  overflow: hidden;
15
15
  }
16
16
  &_circular {
@@ -20,7 +20,7 @@
20
20
  }
21
21
  .choice {
22
22
  &_size {
23
- @each $size in tiny, compact, normal {
23
+ @each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
24
24
  &_$(size) {
25
25
  ^^&__item {
26
26
  &-label {
@@ -33,14 +33,13 @@
33
33
  }
34
34
  .choice__item {
35
35
  min-width: 30px;
36
- border-width: 0;
37
36
  position: relative;
38
37
  display: flex;
39
38
  &:hover {
40
39
  background: var(--choice-item-background-hover);
41
40
  }
42
41
  &:not(:last-child) {
43
- border-right-width: 1px;
42
+ border-right: 1px solid var(--choice-border-color);
44
43
  }
45
44
  &_active {
46
45
  background: var(--choice-item-background-active);
@@ -69,4 +68,5 @@
69
68
  :root {
70
69
  --choice-item-background-hover: var(--color-surface-secondary);
71
70
  --choice-item-background-active: var(--color-surface-active);
71
+ --choice-border-color: var(--color-surface-border-tertiary);
72
72
  }
@@ -1,13 +1,12 @@
1
1
  .choice__item {
2
2
  min-width: 30px;
3
- border-width: 0;
4
3
  position: relative;
5
4
  display: flex;
6
5
  &:hover {
7
6
  background: var(--choice-item-background-hover);
8
7
  }
9
8
  &:not(:last-child) {
10
- border-right-width: 1px;
9
+ border-right: 1px solid var(--choice-border-color);
11
10
  }
12
11
  &_active {
13
12
  background: var(--choice-item-background-active);
@@ -25,7 +25,7 @@
25
25
  .code__input {
26
26
  &_shape {
27
27
  &_rounded {
28
- border-radius: 8px;
28
+ border-radius: var(--code-input-shape-rounded, 8px);
29
29
  }
30
30
  &_circular {
31
31
  border-radius: 50%;
@@ -1,11 +1,10 @@
1
1
  .context-menu__item {
2
- cursor: pointer;
3
2
  &-wrapper {
4
3
  display: flex;
5
4
  }
6
5
  &-title {
7
- flex: 1;
8
6
  white-space: nowrap;
7
+ flex: 1;
9
8
  }
10
9
  }
11
10
 
@@ -17,8 +16,8 @@
17
16
  .context-menu {
18
17
  &_shape {
19
18
  &_rounded {
19
+ border-radius: var(--context-menu-shape-rounded, 12px);
20
20
  overflow: hidden;
21
- border-radius: var(--context-menu-shape-rounded-default);
22
21
  }
23
22
  &_circular {
24
23
  border-radius: 50%;
@@ -37,7 +36,3 @@
37
36
  }
38
37
  }
39
38
  }
40
-
41
- :root {
42
- --context-menu-shape-rounded-default: 12px;
43
- }
@@ -1,10 +1,9 @@
1
1
  .context-menu__item {
2
- cursor: pointer;
3
2
  &-wrapper {
4
3
  display: flex;
5
4
  }
6
5
  &-title {
7
- flex: 1;
8
6
  white-space: nowrap;
7
+ flex: 1;
9
8
  }
10
9
  }
@@ -2,6 +2,7 @@
2
2
  &__container {
3
3
  width: 100%;
4
4
  ^&__input {
5
+ height: auto;
5
6
  color: var(--react-dadata-color);
6
7
  padding: var(--react-dadata-padding);
7
8
  border: 1px solid var(--react-dadata-border);
@@ -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,15 @@
1089
1109
  }
1090
1110
  }
1091
1111
  }
1112
+ &__clear-icon {
1113
+ position: absolute;
1114
+ top: 50%;
1115
+ right: 12px;
1116
+ transform: translateY(-50%);
1117
+ }
1118
+ &__clear-label {
1119
+ width: 100%;
1120
+ }
1092
1121
  &-wrapper {
1093
1122
  width: 100%;
1094
1123
  ^&__input-container {
@@ -1160,6 +1189,7 @@
1160
1189
  --date-picker-day-range-border-radius: 0;
1161
1190
  --date-picker-day-range-start-border-radius: 12px 0 0 12px;
1162
1191
  --date-picker-day-range-end-border-radius: 0 12px 12px 0;
1192
+ --date-picker-day-range-start-end-border-radius: 12px;
1163
1193
  --date-picker-day-today-background: var(--color-surface-secondary);
1164
1194
  --date-picker-day-today-text-color: var(--color-surface-text-primary);
1165
1195
  --date-picker-day-weekend-background: var(--color-surface-primary);
@@ -5,58 +5,28 @@
5
5
  }
6
6
  .divider {
7
7
  &_size {
8
- &_xs {
9
- height: 1px;
10
- }
11
- &_s {
12
- height: 2px;
13
- }
14
- &_m {
15
- height: 3px;
16
- }
17
- &_l {
18
- height: 4px;
19
- }
20
- &_xl {
21
- height: 5px;
8
+ @each $size in xs, s, m, l, xl {
9
+ &_$(size) {
10
+ height: var(--divider-size-$(size)-height);
11
+ }
22
12
  }
23
13
  }
24
14
  &_direction {
25
15
  &_horizontal {
26
16
  &^^&_size {
27
- &_xs {
28
- height: 1px;
29
- }
30
- &_s {
31
- height: 2px;
32
- }
33
- &_m {
34
- height: 3px;
35
- }
36
- &_l {
37
- height: 4px;
38
- }
39
- &_xl {
40
- height: 5px;
17
+ @each $size in xs, s, m, l, xl {
18
+ &_$(size) {
19
+ height: var(--divider-size-$(size)-height);
20
+ }
41
21
  }
42
22
  }
43
23
  }
44
24
  &_vertical {
45
25
  &^^&_size {
46
- &_xs {
47
- width: 1px;
48
- }
49
- &_s {
50
- width: 2px;
51
- }
52
- &_m {
53
- width: 3px;
54
- }
55
- &_l {
56
- width: 4px;
57
- }
58
- &_xl {
59
- width: 5px;
26
+ @each $size in xs, s, m, l, xl {
27
+ &_$(size) {
28
+ width: var(--divider-size-$(size)-width);
29
+ }
60
30
  }
61
31
  }
62
32
  }
@@ -76,3 +46,15 @@
76
46
  }
77
47
  }
78
48
  }
49
+ :root {
50
+ --divider-size-xs-height: 1px;
51
+ --divider-size-s-height: 2px;
52
+ --divider-size-m-height: 3px;
53
+ --divider-size-l-height: 4px;
54
+ --divider-size-xl-height: 5px;
55
+ --divider-size-xs-width: 1px;
56
+ --divider-size-s-width: 2px;
57
+ --divider-size-m-width: 3px;
58
+ --divider-size-l-width: 4px;
59
+ --divider-size-xl-width: 5px;
60
+ }
@@ -1,14 +1,14 @@
1
1
  .dot {
2
2
  }
3
3
  .dot {
4
- min-width: var(--dot-width);
5
- min-height: var(--dot-height);
6
- max-width: var(--dot-width);
7
- max-height: var(--dot-height);
4
+ min-width: var(--dot-width, 16px);
5
+ min-height: var(--dot-height, 16px);
6
+ max-width: var(--dot-width, 16px);
7
+ max-height: var(--dot-height, 16px);
8
8
  }
9
9
  .dot_shape {
10
10
  &_rounded {
11
- border-radius: 12px;
11
+ border-radius: var(--dot-shape-rounded, 12px);
12
12
  }
13
13
  &_circular {
14
14
  border-radius: 50%;
@@ -17,7 +17,3 @@
17
17
  border-radius: 0;
18
18
  }
19
19
  }
20
- :root {
21
- --dot-width: 16px;
22
- --dot-height: 16px;
23
- }
@@ -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
+ }
@@ -74,7 +74,7 @@
74
74
  .flex {
75
75
  &_shape {
76
76
  &_rounded {
77
- border-radius: 12px;
77
+ border-radius: var(--flex-shape-rounded, 12px);
78
78
  }
79
79
  &_circular {
80
80
  border-radius: 50%;
@@ -159,7 +159,7 @@
159
159
  &__item {
160
160
  &_shape {
161
161
  &_rounded {
162
- border-radius: 12px;
162
+ border-radius: var(--flex-item-shape-rounded, 12px);
163
163
  }
164
164
  &_circular {
165
165
  border-radius: 50%;
@@ -2,7 +2,7 @@
2
2
  &__item {
3
3
  &_shape {
4
4
  &_rounded {
5
- border-radius: 12px;
5
+ border-radius: var(--flex-item-shape-rounded, 12px);
6
6
  }
7
7
  &_circular {
8
8
  border-radius: 50%;
@@ -112,7 +112,7 @@
112
112
  .grid {
113
113
  &_shape {
114
114
  &_rounded {
115
- border-radius: 12px;
115
+ border-radius: var(--grid-shape-rounded, 12px);
116
116
  }
117
117
  }
118
118
  }
@@ -46,7 +46,7 @@
46
46
  .group {
47
47
  &_shape {
48
48
  &_rounded {
49
- border-radius: 12px;
49
+ border-radius: var(--group-shape-rounded, 12px);
50
50
  }
51
51
  &_circular {
52
52
  border-radius: 50%;
@@ -116,7 +116,7 @@
116
116
  }
117
117
  .icon_shape {
118
118
  &_rounded {
119
- border-radius: 12px;
119
+ border-radius: var(--icon-shape-rounded, 12px);
120
120
  }
121
121
  &_circular {
122
122
  border-radius: 50%;
@@ -23,7 +23,7 @@
23
23
  .label {
24
24
  &_shape {
25
25
  &_rounded {
26
- border-radius: var(--label-shape-rounded-default);
26
+ border-radius: var(--label-shape-rounded-default, 6px);
27
27
  @each $size in xxs, xs, s, m, l, xl, xxl {
28
28
  &.label_size_$(size) {
29
29
  border-radius: var(--label-size-$(size)-shape-rounded);
@@ -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
+ }
@@ -17,7 +17,7 @@
17
17
  }
18
18
  .modal-shape {
19
19
  &_rounded {
20
- border-radius: 20px;
20
+ border-radius: var(--modal-shape-rounded, 20px);
21
21
  }
22
22
  &_circular {
23
23
  border-radius: 50%;
@@ -27,20 +27,13 @@
27
27
  &_set {
28
28
  &_float {
29
29
  width: 100%;
30
- border-radius: 8px;
30
+ padding: var(--notification-item-set-float-padding, 12px 16px);
31
+ border-radius: var(--notification-item-set-float-border-radius, 8px);
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
  }
@@ -50,8 +43,7 @@
50
43
  &_top {
51
44
  width: 100%;
52
45
  ^^&-wrapper {
53
- padding: 12px 0;
54
- position: relative;
46
+ padding: var(--notification-item-set-top-padding, 12px 0);
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: var(--notification-item-set-form-padding, 12px 16px);
61
+ border-radius: var(--notification-item-set-form-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: var(--notification-item-set-toast-padding, 12px 16px);
77
+ border-radius: var(--notification-item-set-toast-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
  }
@@ -2,20 +2,13 @@
2
2
  &_set {
3
3
  &_float {
4
4
  width: 100%;
5
- border-radius: 8px;
5
+ padding: var(--notification-item-set-float-padding, 12px 16px);
6
+ border-radius: var(--notification-item-set-float-border-radius, 8px);
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
  }