@itcase/ui 1.0.65 → 1.0.70

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 +349 -0
  2. package/dist/components/Avatar.js +100 -0
  3. package/dist/components/Background.js +172 -0
  4. package/dist/components/Badge.js +109 -32
  5. package/dist/components/Breadcrumbs.js +414 -0
  6. package/dist/components/Button.js +364 -59
  7. package/dist/components/Caption.js +129 -0
  8. package/dist/components/Card.js +171 -0
  9. package/dist/components/Cell.js +190 -0
  10. package/dist/components/Checkbox.js +14 -0
  11. package/dist/components/Chips.js +251 -2
  12. package/dist/components/Choice.js +60 -0
  13. package/dist/components/Code.js +119 -0
  14. package/dist/components/ContextMenu.js +83 -0
  15. package/dist/components/CookiesWarning.js +55 -6
  16. package/dist/components/DadataHintField.js +49 -0
  17. package/dist/components/DatePicker.js +71 -8
  18. package/dist/components/Divider.js +165 -0
  19. package/dist/components/Dot.js +157 -0
  20. package/dist/components/Drawer.js +77 -0
  21. package/dist/components/Dropdown.js +421 -0
  22. package/dist/components/Empty.js +124 -3
  23. package/dist/components/Fader.js +128 -0
  24. package/dist/components/Flex.js +898 -0
  25. package/dist/components/FormField.js +306 -2
  26. package/dist/components/Grid.js +1299 -0
  27. package/dist/components/Group.js +377 -0
  28. package/dist/components/Icon.js +342 -0
  29. package/dist/components/Image.js +326 -0
  30. package/dist/components/Input.js +88 -0
  31. package/dist/components/InputPassword.js +88 -0
  32. package/dist/components/Label.js +255 -1
  33. package/dist/components/LanguageSelector.js +35 -0
  34. package/dist/components/Link.js +324 -0
  35. package/dist/components/List.js +349 -0
  36. package/dist/components/Loader.js +49 -0
  37. package/dist/components/Logo.js +49 -0
  38. package/dist/components/Menu.js +98 -0
  39. package/dist/components/MenuItem.js +386 -0
  40. package/dist/components/Modal.js +147 -0
  41. package/dist/components/Notification.js +133 -0
  42. package/dist/components/Page.js +422 -0
  43. package/dist/components/Pagination.js +30 -2
  44. package/dist/components/RadioButton.js +28 -0
  45. package/dist/components/RangeSlider.js +171 -0
  46. package/dist/components/Scrollbar.js +14 -0
  47. package/dist/components/Search.js +299 -0
  48. package/dist/components/Segmented.js +60 -0
  49. package/dist/components/Select.js +524 -1
  50. package/dist/components/SiteMenu.js +70 -0
  51. package/dist/components/Swiper.js +361 -0
  52. package/dist/components/Switch.js +49 -0
  53. package/dist/components/Tab.js +750 -3
  54. package/dist/components/Text.js +218 -2
  55. package/dist/components/Textarea.js +78 -2
  56. package/dist/components/Tile.js +366 -2
  57. package/dist/components/Title.js +235 -0
  58. package/dist/components/Tooltip.js +195 -0
  59. package/dist/components/Video.js +98 -0
  60. package/dist/components/Wrapper.js +316 -0
  61. package/dist/constants/componentProps/iconSize.js +1 -1
  62. package/dist/constants/componentProps/itemColor.js +5 -0
  63. package/dist/constants/componentProps/size.js +1 -1
  64. package/dist/constants/componentProps/textSize.js +5 -0
  65. package/dist/constants/componentProps/textWrap.js +5 -0
  66. package/dist/constants.js +8 -2
  67. package/dist/context/Notifications.js +14 -0
  68. package/dist/css/components/Badge/Badge.css +1 -1
  69. package/dist/css/components/Button/Button.css +1 -1
  70. package/dist/css/components/DatePicker/DatePicker.css +6 -1
  71. package/dist/css/components/Page/Page.css +8 -0
  72. package/dist/css/components/RadioButton/RadioButton.css +19 -19
  73. package/dist/css/components/Segmented/Segmented.css +6 -8
  74. package/dist/css/styles/constraints/constraints.css +42 -29
  75. package/dist/css/styles/width/width.css +3 -1
  76. package/package.json +2 -1
@@ -100,6 +100,20 @@ function useNotifications() {
100
100
  function useNotificationsAPI() {
101
101
  return React.useContext(NotificationsAPIContext);
102
102
  }
103
+ NotificationsProvider.__docgenInfo = {
104
+ "description": "",
105
+ "methods": [],
106
+ "displayName": "NotificationsProvider",
107
+ "props": {
108
+ "children": {
109
+ "description": "",
110
+ "type": {
111
+ "name": "any"
112
+ },
113
+ "required": false
114
+ }
115
+ }
116
+ };
103
117
 
104
118
  exports.NotificationsProvider = NotificationsProvider;
105
119
  exports.useNotifications = useNotifications;
@@ -27,8 +27,8 @@
27
27
  .badge {
28
28
  &&_type {
29
29
  &_primary {
30
- background: var(--color-primary);
31
30
  color: var(--color-primary-text-primary);
31
+ background: var(--color-primary-primary);
32
32
  }
33
33
  }
34
34
  }
@@ -48,7 +48,7 @@
48
48
  }
49
49
  .button {
50
50
  &_size {
51
- @each $size in xs, s, m, l, xl, xxl {
51
+ @each $size in xxs, xs, s, m, l, xl, xxl {
52
52
  &_$(size) {
53
53
  ^^&__wrapper {
54
54
  padding: var(--button-size-$(size)-padding);
@@ -854,7 +854,12 @@
854
854
  cursor: default !important;
855
855
  }
856
856
  }
857
- &--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__month-text--in-range, .react-datepicker__quarter-text--in-range, .react-datepicker__year-text--in-range) {
857
+ &--in-selecting-range:not(
858
+ .react-datepicker__day--in-range,
859
+ .react-datepicker__month-text--in-range,
860
+ .react-datepicker__quarter-text--in-range,
861
+ .react-datepicker__year-text--in-range
862
+ ) {
858
863
  background: var(--date-picker-day-selected-background);
859
864
  & .button__label {
860
865
  color: var(--date-picker-day-selected-text-color);
@@ -0,0 +1,8 @@
1
+ .page {
2
+ width: 100%;
3
+ &__wrapper {
4
+ width: 100%;
5
+ max-width: var(--max);
6
+ margin: 0 auto;
7
+ }
8
+ }
@@ -5,40 +5,40 @@
5
5
  column-gap: 4px;
6
6
  &:hover {
7
7
  ^&__state {
8
- border-color: var(--radio-button-state-hover-border);
8
+ border-color: var(--radio-button-state-border-hover);
9
9
  }
10
10
  }
11
11
  &__item {
12
- position: relative;
13
- cursor: pointer;
12
+ min-width: 16px;
13
+ min-height: 16px;
14
14
  font-size: 0;
15
15
  line-height: 0;
16
+ margin: 2px 0 0 0;
17
+ position: relative;
16
18
  display: flex;
17
- min-height: 16px;
18
- min-width: 16px;
19
- grid-row-start: span 2;
20
19
  align-self: start;
21
- margin: 2px 0 0 0;
20
+ cursor: pointer;
21
+ grid-row-start: span 2;
22
22
  ^&__input {
23
- cursor: pointer;
24
- appearance: none;
25
- border: 0;
26
- margin: 0;
23
+ width: 100%;
24
+ height: 100%;
27
25
  font-size: 0;
28
26
  line-height: 0;
27
+ margin: 0;
28
+ border: 0;
29
29
  position: absolute;
30
30
  left: 0;
31
31
  top: 0;
32
- width: 100%;
33
- height: 100%;
34
32
  z-index: 3;
33
+ cursor: pointer;
34
+ appearance: none;
35
35
  &:disabled + .radio-button__state {
36
36
  border-color: transparent !important;
37
37
  }
38
38
  }
39
39
  ^&__state {
40
- flex: 1;
41
40
  display: flex;
41
+ flex: 1;
42
42
  z-index: 1;
43
43
  &_shape {
44
44
  &_rounded {
@@ -54,15 +54,15 @@
54
54
  }
55
55
  }
56
56
  ^&__state-checkmark {
57
- height: calc(100% - 6px);
58
57
  width: calc(100% - 6px);
58
+ height: calc(100% - 6px);
59
+ border-radius: 50%;
59
60
  position: absolute;
60
- z-index: 2;
61
+ display: none;
61
62
  left: 50%;
62
63
  top: 50%;
64
+ z-index: 2;
63
65
  transform: translate(-50%, -50%);
64
- display: none;
65
- border-radius: 50%;
66
66
  }
67
67
  }
68
68
  }
@@ -111,5 +111,5 @@
111
111
  }
112
112
  }
113
113
  :root {
114
- --radio-button-state-hover-border: var(--color-surface-border-tertiary);
114
+ --radio-button-state-border-hover: var(--color-surface-border-tertiary);
115
115
  }
@@ -25,8 +25,8 @@
25
25
  width 0.3s ease;
26
26
  }
27
27
  ^^&__item {
28
- border-radius: 6px;
29
28
  min-width: 120px;
29
+ border-radius: 6px;
30
30
  position: relative;
31
31
  display: flex;
32
32
  align-items: center;
@@ -52,22 +52,20 @@
52
52
  & input {
53
53
  width: 100%;
54
54
  height: 100%;
55
+ margin: 0;
56
+ border: 0;
55
57
  position: absolute;
56
- left: 0;
57
- top: 0;
58
- right: 0;
59
- bottom: 0;
58
+ inset: 0 0 0 0;
60
59
  z-index: 2;
61
60
  opacity: 0%;
62
61
  cursor: pointer;
63
- border: 0;
64
- margin: 0;
65
62
  }
66
63
  &-label {
67
64
  width: 100%;
68
65
  text-align: center;
69
66
  position: relative;
70
- display: block;
67
+ display: flex;
68
+ justify-content: center;
71
69
  z-index: 3;
72
70
  transition: color 0.5s ease;
73
71
  cursor: pointer;
@@ -1,59 +1,72 @@
1
1
  .constraints {
2
- &_top-left,
3
- &_left-top {
2
+ &_top {
3
+ top: 0;
4
+ }
5
+ &_top-left {
4
6
  left: 0;
5
7
  top: 0;
6
8
  }
7
- &_bottom-left,
8
- &_left-bottom {
9
+ &_top-right {
10
+ top: 0;
11
+ right: 0;
12
+ }
13
+ &_top-fill {
9
14
  left: 0;
10
- bottom: 0;
15
+ top: 0;
16
+ right: 0;
11
17
  }
12
- &_bottom-right,
13
- &_right-bottom {
18
+ &_top-center {
19
+ position: absolute;
20
+ left: 50%;
21
+ top: 0%;
14
22
  right: 0;
23
+ transform: translate(-50%, 0);
24
+ }
25
+ &_bottom {
26
+ bottom: 0;
27
+ }
28
+ &_bottom-left {
29
+ left: 0;
15
30
  bottom: 0;
16
31
  }
17
- &_top-right,
18
- &_right-top {
32
+ &_bottom-right {
19
33
  right: 0;
20
- top: 0;
34
+ bottom: 0;
21
35
  }
22
- &_left-right-top {
36
+ &_bottom-left-right {
23
37
  left: 0;
24
- right: 0;
25
38
  top: 0;
39
+ right: 0;
26
40
  }
27
-
28
- &_left-right-bottom {
29
- left: 0;
41
+ &_bottom_center {
42
+ position: absolute;
43
+ left: 50%;
30
44
  right: 0;
31
45
  bottom: 0;
46
+ transform: translate(-50%, 0);
32
47
  }
33
- &_left-right-top-bottom {
48
+ &_bottom-fill {
34
49
  left: 0;
35
50
  right: 0;
36
51
  bottom: 0;
37
- top: 0;
52
+ }
53
+ &_left {
54
+ left: 0;
55
+ }
56
+ &_right {
57
+ right: 0;
38
58
  }
39
59
  &_center {
40
60
  position: absolute;
41
- top: 50%;
42
61
  left: 50%;
62
+ top: 50%;
43
63
  transform: translate(-50%, -50%);
44
64
  }
45
- &_center-top {
46
- position: absolute;
47
- top: 0%;
48
- left: 50%;
49
- right: 0;
50
- transform: translate(-50%, 0);
65
+ &_fill {
66
+ inset: 0 0 0 0;
51
67
  }
52
- &_center-bottom {
53
- position: absolute;
68
+ &_fill_vertical {
69
+ top: 0;
54
70
  bottom: 0;
55
- left: 50%;
56
- right: 0;
57
- transform: translate(-50%, 0);
58
71
  }
59
72
  }
@@ -5,5 +5,7 @@
5
5
  &_fill {
6
6
  width: 100%;
7
7
  }
8
+ &_auto {
9
+ width: auto;
10
+ }
8
11
  }
9
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.65",
3
+ "version": "1.0.70",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -79,6 +79,7 @@
79
79
  "@semantic-release/release-notes-generator": "^12.0.0",
80
80
  "babel-loader": "^9.1.3",
81
81
  "babel-plugin-inline-react-svg": "^2.0.2",
82
+ "babel-plugin-react-docgen": "^4.2.1",
82
83
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
83
84
  "eslint": "8.50.0",
84
85
  "eslint-config-prettier": "^9.0.0",