@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.
- package/dist/components/Accordion.js +349 -0
- package/dist/components/Avatar.js +100 -0
- package/dist/components/Background.js +172 -0
- package/dist/components/Badge.js +109 -32
- package/dist/components/Breadcrumbs.js +414 -0
- package/dist/components/Button.js +364 -59
- package/dist/components/Caption.js +129 -0
- package/dist/components/Card.js +171 -0
- package/dist/components/Cell.js +190 -0
- package/dist/components/Checkbox.js +14 -0
- package/dist/components/Chips.js +251 -2
- package/dist/components/Choice.js +60 -0
- package/dist/components/Code.js +119 -0
- package/dist/components/ContextMenu.js +83 -0
- package/dist/components/CookiesWarning.js +55 -6
- package/dist/components/DadataHintField.js +49 -0
- package/dist/components/DatePicker.js +71 -8
- package/dist/components/Divider.js +165 -0
- package/dist/components/Dot.js +157 -0
- package/dist/components/Drawer.js +77 -0
- package/dist/components/Dropdown.js +421 -0
- package/dist/components/Empty.js +124 -3
- package/dist/components/Fader.js +128 -0
- package/dist/components/Flex.js +898 -0
- package/dist/components/FormField.js +306 -2
- package/dist/components/Grid.js +1299 -0
- package/dist/components/Group.js +377 -0
- package/dist/components/Icon.js +342 -0
- package/dist/components/Image.js +326 -0
- package/dist/components/Input.js +88 -0
- package/dist/components/InputPassword.js +88 -0
- package/dist/components/Label.js +255 -1
- package/dist/components/LanguageSelector.js +35 -0
- package/dist/components/Link.js +324 -0
- package/dist/components/List.js +349 -0
- package/dist/components/Loader.js +49 -0
- package/dist/components/Logo.js +49 -0
- package/dist/components/Menu.js +98 -0
- package/dist/components/MenuItem.js +386 -0
- package/dist/components/Modal.js +147 -0
- package/dist/components/Notification.js +133 -0
- package/dist/components/Page.js +422 -0
- package/dist/components/Pagination.js +30 -2
- package/dist/components/RadioButton.js +28 -0
- package/dist/components/RangeSlider.js +171 -0
- package/dist/components/Scrollbar.js +14 -0
- package/dist/components/Search.js +299 -0
- package/dist/components/Segmented.js +60 -0
- package/dist/components/Select.js +524 -1
- package/dist/components/SiteMenu.js +70 -0
- package/dist/components/Swiper.js +361 -0
- package/dist/components/Switch.js +49 -0
- package/dist/components/Tab.js +750 -3
- package/dist/components/Text.js +218 -2
- package/dist/components/Textarea.js +78 -2
- package/dist/components/Tile.js +366 -2
- package/dist/components/Title.js +235 -0
- package/dist/components/Tooltip.js +195 -0
- package/dist/components/Video.js +98 -0
- package/dist/components/Wrapper.js +316 -0
- package/dist/constants/componentProps/iconSize.js +1 -1
- package/dist/constants/componentProps/itemColor.js +5 -0
- package/dist/constants/componentProps/size.js +1 -1
- package/dist/constants/componentProps/textSize.js +5 -0
- package/dist/constants/componentProps/textWrap.js +5 -0
- package/dist/constants.js +8 -2
- package/dist/context/Notifications.js +14 -0
- package/dist/css/components/Badge/Badge.css +1 -1
- package/dist/css/components/Button/Button.css +1 -1
- package/dist/css/components/DatePicker/DatePicker.css +6 -1
- package/dist/css/components/Page/Page.css +8 -0
- package/dist/css/components/RadioButton/RadioButton.css +19 -19
- package/dist/css/components/Segmented/Segmented.css +6 -8
- package/dist/css/styles/constraints/constraints.css +42 -29
- package/dist/css/styles/width/width.css +3 -1
- 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;
|
|
@@ -854,7 +854,12 @@
|
|
|
854
854
|
cursor: default !important;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
|
-
&--in-selecting-range:not(
|
|
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);
|
|
@@ -5,40 +5,40 @@
|
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
&:hover {
|
|
7
7
|
^&__state {
|
|
8
|
-
border-color: var(--radio-button-state-hover
|
|
8
|
+
border-color: var(--radio-button-state-border-hover);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
&__item {
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
grid-row-start: span 2;
|
|
22
22
|
^&__input {
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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:
|
|
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
|
|
3
|
-
|
|
2
|
+
&_top {
|
|
3
|
+
top: 0;
|
|
4
|
+
}
|
|
5
|
+
&_top-left {
|
|
4
6
|
left: 0;
|
|
5
7
|
top: 0;
|
|
6
8
|
}
|
|
7
|
-
&
|
|
8
|
-
|
|
9
|
+
&_top-right {
|
|
10
|
+
top: 0;
|
|
11
|
+
right: 0;
|
|
12
|
+
}
|
|
13
|
+
&_top-fill {
|
|
9
14
|
left: 0;
|
|
10
|
-
|
|
15
|
+
top: 0;
|
|
16
|
+
right: 0;
|
|
11
17
|
}
|
|
12
|
-
&
|
|
13
|
-
|
|
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
|
-
&
|
|
18
|
-
&_right-top {
|
|
32
|
+
&_bottom-right {
|
|
19
33
|
right: 0;
|
|
20
|
-
|
|
34
|
+
bottom: 0;
|
|
21
35
|
}
|
|
22
|
-
&
|
|
36
|
+
&_bottom-left-right {
|
|
23
37
|
left: 0;
|
|
24
|
-
right: 0;
|
|
25
38
|
top: 0;
|
|
39
|
+
right: 0;
|
|
26
40
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
left:
|
|
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
|
-
&
|
|
48
|
+
&_bottom-fill {
|
|
34
49
|
left: 0;
|
|
35
50
|
right: 0;
|
|
36
51
|
bottom: 0;
|
|
37
|
-
|
|
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
|
-
&
|
|
46
|
-
|
|
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
|
-
&
|
|
53
|
-
|
|
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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.0.
|
|
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",
|