@itcase/ui 1.0.66 → 1.0.71
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 +120 -35
- 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 +247 -0
- 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 +1303 -2
- 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 +308 -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 +57 -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/borderColor.js +1 -1
- package/dist/constants/componentProps/borderColorHover.js +5 -0
- package/dist/constants/componentProps/borderType.js +1 -1
- package/dist/constants/componentProps/borderWidth.js +5 -0
- package/dist/constants/componentProps/height.js +5 -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/sizeInterface.js +5 -0
- package/dist/constants/componentProps/sizePX.js +5 -0
- package/dist/constants/componentProps/state.js +5 -0
- package/dist/constants/componentProps/textSize.js +5 -0
- package/dist/constants/componentProps/textWrap.js +5 -0
- package/dist/constants.js +26 -8
- 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/RadioButton/RadioButton.css +19 -19
- package/dist/css/components/Segmented/Segmented.css +6 -8
- package/dist/css/styles/border-color/border-color.css +0 -27
- package/dist/css/styles/border-color-focus/border-color-focus.css +18 -0
- package/dist/css/styles/border-color-hover/border-color-hover.css +21 -0
- package/dist/css/styles/border-width/border-width.css +1 -1
- package/dist/css/styles/constraints/constraints.css +42 -29
- package/dist/css/styles/width/width.css +3 -1
- package/package.json +2 -1
- package/dist/css/styles/border/border.css +0 -13
package/dist/constants.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var align = require('./constants/componentProps/align.js');
|
|
4
3
|
var alignDirection = require('./constants/componentProps/alignDirection.js');
|
|
4
|
+
var align = require('./constants/componentProps/align.js');
|
|
5
|
+
var borderColorHover = require('./constants/componentProps/borderColorHover.js');
|
|
5
6
|
var borderColor = require('./constants/componentProps/borderColor.js');
|
|
6
7
|
var borderType = require('./constants/componentProps/borderType.js');
|
|
8
|
+
var borderWidth = require('./constants/componentProps/borderWidth.js');
|
|
7
9
|
var captionPosition = require('./constants/componentProps/captionPosition.js');
|
|
8
10
|
var direction = require('./constants/componentProps/direction.js');
|
|
9
11
|
var emojiSize = require('./constants/componentProps/emojiSize.js');
|
|
10
|
-
var position = require('./constants/componentProps/position.js');
|
|
11
|
-
var fill = require('./constants/componentProps/fill.js');
|
|
12
12
|
var fillGradient = require('./constants/componentProps/fillGradient.js');
|
|
13
|
+
var fill = require('./constants/componentProps/fill.js');
|
|
13
14
|
var fillType = require('./constants/componentProps/fillType.js');
|
|
14
15
|
var flexAlign = require('./constants/componentProps/flexAlign.js');
|
|
15
16
|
var flexJustifyContent = require('./constants/componentProps/flexJustifyContent.js');
|
|
@@ -18,22 +19,30 @@ var gridAlign = require('./constants/componentProps/gridAlign.js');
|
|
|
18
19
|
var gridAlignSelf = require('./constants/componentProps/gridAlignSelf.js');
|
|
19
20
|
var gridJustifyItems = require('./constants/componentProps/gridJustifyItems.js');
|
|
20
21
|
var gridJustifySelf = require('./constants/componentProps/gridJustifySelf.js');
|
|
22
|
+
var height = require('./constants/componentProps/height.js');
|
|
21
23
|
var horizontalContentAlign = require('./constants/componentProps/horizontalContentAlign.js');
|
|
22
24
|
var horizontalResizeMode = require('./constants/componentProps/horizontalResizeMode.js');
|
|
23
25
|
var iconSize = require('./constants/componentProps/iconSize.js');
|
|
26
|
+
var itemColor = require('./constants/componentProps/itemColor.js');
|
|
27
|
+
var position = require('./constants/componentProps/position.js');
|
|
24
28
|
var resizeMode = require('./constants/componentProps/resizeMode.js');
|
|
25
29
|
var shape = require('./constants/componentProps/shape.js');
|
|
30
|
+
var sizeInterface = require('./constants/componentProps/sizeInterface.js');
|
|
31
|
+
var sizePX = require('./constants/componentProps/sizePX.js');
|
|
26
32
|
var size = require('./constants/componentProps/size.js');
|
|
27
33
|
var stacking = require('./constants/componentProps/stacking.js');
|
|
34
|
+
var state = require('./constants/componentProps/state.js');
|
|
28
35
|
var strokeColor = require('./constants/componentProps/strokeColor.js');
|
|
29
36
|
var textAlign = require('./constants/componentProps/textAlign.js');
|
|
30
|
-
var textColor = require('./constants/componentProps/textColor.js');
|
|
31
37
|
var textColorActive = require('./constants/componentProps/textColorActive.js');
|
|
32
38
|
var textColorHover = require('./constants/componentProps/textColorHover.js');
|
|
39
|
+
var textColor = require('./constants/componentProps/textColor.js');
|
|
33
40
|
var textGradient = require('./constants/componentProps/textGradient.js');
|
|
41
|
+
var textSize = require('./constants/componentProps/textSize.js');
|
|
34
42
|
var textStyle = require('./constants/componentProps/textStyle.js');
|
|
35
43
|
var textTag = require('./constants/componentProps/textTag.js');
|
|
36
44
|
var textWeight = require('./constants/componentProps/textWeight.js');
|
|
45
|
+
var textWrap = require('./constants/componentProps/textWrap.js');
|
|
37
46
|
var titleSize = require('./constants/componentProps/titleSize.js');
|
|
38
47
|
var type = require('./constants/componentProps/type.js');
|
|
39
48
|
var underline = require('./constants/componentProps/underline.js');
|
|
@@ -44,16 +53,17 @@ var wrap = require('./constants/componentProps/wrap.js');
|
|
|
44
53
|
|
|
45
54
|
|
|
46
55
|
|
|
47
|
-
exports.alignProps = align.default;
|
|
48
56
|
exports.alignDirectionProps = alignDirection.default;
|
|
57
|
+
exports.alignProps = align.default;
|
|
58
|
+
exports.borderColorHoverProps = borderColorHover.default;
|
|
49
59
|
exports.borderColorProps = borderColor.default;
|
|
50
60
|
exports.borderTypeProps = borderType.default;
|
|
61
|
+
exports.borderWidthProps = borderWidth.default;
|
|
51
62
|
exports.captionPositionProps = captionPosition.default;
|
|
52
63
|
exports.directionProps = direction.default;
|
|
53
64
|
exports.emojiSizeProps = emojiSize.default;
|
|
54
|
-
exports.positionProps = position.default;
|
|
55
|
-
exports.fillProps = fill.default;
|
|
56
65
|
exports.fillGradientProps = fillGradient.default;
|
|
66
|
+
exports.fillProps = fill.default;
|
|
57
67
|
exports.fillTypeProps = fillType.default;
|
|
58
68
|
exports.flexAlignProps = flexAlign.default;
|
|
59
69
|
exports.flexJustifyContentProps = flexJustifyContent.default;
|
|
@@ -62,22 +72,30 @@ exports.gridAlignProps = gridAlign.default;
|
|
|
62
72
|
exports.gridAlignSelfProps = gridAlignSelf.default;
|
|
63
73
|
exports.gridJustifyItemsProps = gridJustifyItems.default;
|
|
64
74
|
exports.gridJustifySelfProps = gridJustifySelf.default;
|
|
75
|
+
exports.heightProps = height.default;
|
|
65
76
|
exports.horizontalContentAlignProps = horizontalContentAlign.default;
|
|
66
77
|
exports.horizontalResizeModeProps = horizontalResizeMode.default;
|
|
67
78
|
exports.iconSizeProps = iconSize.default;
|
|
79
|
+
exports.itemColorProps = itemColor.default;
|
|
80
|
+
exports.positionProps = position.default;
|
|
68
81
|
exports.resizeModeProps = resizeMode.default;
|
|
69
82
|
exports.shapeProps = shape.default;
|
|
83
|
+
exports.sizeInterfaceProps = sizeInterface.default;
|
|
84
|
+
exports.sizePXProps = sizePX.default;
|
|
70
85
|
exports.sizeProps = size.default;
|
|
71
86
|
exports.stackingProps = stacking.default;
|
|
87
|
+
exports.stateProps = state.default;
|
|
72
88
|
exports.strokeColorProps = strokeColor.default;
|
|
73
89
|
exports.textAlignProps = textAlign.default;
|
|
74
|
-
exports.textColorProps = textColor.default;
|
|
75
90
|
exports.textColorActiveProps = textColorActive.default;
|
|
76
91
|
exports.textColorHoverProps = textColorHover.default;
|
|
92
|
+
exports.textColorProps = textColor.default;
|
|
77
93
|
exports.textGradientProps = textGradient.default;
|
|
94
|
+
exports.textSizeProps = textSize.default;
|
|
78
95
|
exports.textStyleProps = textStyle.default;
|
|
79
96
|
exports.textTagProps = textTag.default;
|
|
80
97
|
exports.textWeightProps = textWeight.default;
|
|
98
|
+
exports.textWrapProps = textWrap.default;
|
|
81
99
|
exports.titleSizeProps = titleSize.default;
|
|
82
100
|
exports.typeProps = type.default;
|
|
83
101
|
exports.underlineProps = underline.default;
|
|
@@ -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;
|
|
@@ -11,32 +11,5 @@
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
&_hover {
|
|
15
|
-
&_$(type) {
|
|
16
|
-
&-border {
|
|
17
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active, disabled, hover {
|
|
18
|
-
&-$(color) {
|
|
19
|
-
&:hover {
|
|
20
|
-
border-color: var(--color-$(type)-border-$(color));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
&_focus {
|
|
28
|
-
&_$(type) {
|
|
29
|
-
&-border {
|
|
30
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active, disabled, hover {
|
|
31
|
-
&-$(color) {
|
|
32
|
-
&:focus {
|
|
33
|
-
outline: 0;
|
|
34
|
-
border-color: var(--color-$(type)-border-$(color)) !important;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
14
|
}
|
|
42
15
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.border-color {
|
|
2
|
+
@each $type in accent, primary, secondary, tertiary, surface, success, error {
|
|
3
|
+
&_focus {
|
|
4
|
+
&_$(type) {
|
|
5
|
+
&-border {
|
|
6
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, active, disabled, hover {
|
|
7
|
+
&-$(color) {
|
|
8
|
+
&:focus {
|
|
9
|
+
outline: 0;
|
|
10
|
+
border-color: var(--color-$(type)-border-$(color)) !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.border-color_hover {
|
|
2
|
+
@each $type in accent, primary, secondary, tertiary, surface, success, error, info, warning{
|
|
3
|
+
&_$(type) {
|
|
4
|
+
&-border {
|
|
5
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent, disabled, hover {
|
|
6
|
+
&-$(color) {
|
|
7
|
+
&:hover {
|
|
8
|
+
border: solid 2px red;
|
|
9
|
+
border-color: var(--color-$(type)-border-$(color));
|
|
10
|
+
}
|
|
11
|
+
&-hover {
|
|
12
|
+
&:hover {
|
|
13
|
+
border-color: var(--color-$(type)-border-$(color));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -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.71",
|
|
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",
|