@itcase/ui 1.1.0 → 1.1.2
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 +1 -0
- package/dist/components/Avatar.js +1 -0
- package/dist/components/Breadcrumbs.js +1 -0
- package/dist/components/Button.js +9 -3
- package/dist/components/Cell.js +30 -13
- package/dist/components/Choice.js +1 -0
- package/dist/components/ContextMenu.js +1 -0
- package/dist/components/CookiesWarning.js +1 -0
- package/dist/components/DatePicker.js +3 -1
- package/dist/components/Empty.js +1 -0
- package/dist/components/FormField.js +26 -25
- package/dist/components/Grid.js +2 -2
- package/dist/components/Icon.js +126 -16
- package/dist/components/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -0
- package/dist/components/Label.js +3 -2
- package/dist/components/LanguageSelector.js +1 -0
- package/dist/components/Modal.js +27 -27
- package/dist/components/{Fader.js → Overlay.js} +43 -43
- package/dist/components/{RadioButton.js → Radio.js} +24 -24
- package/dist/components/ScrollOnDrag.js +290 -0
- package/dist/components/Search.js +1 -0
- package/dist/components/Select.js +1 -0
- package/dist/components/SiteMenu.js +1 -0
- package/dist/components/Text.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Tooltip.js +38 -20
- package/dist/constants/componentProps/borderWidth.js +3 -1
- package/dist/constants/componentProps/emojiSize.js +3 -1
- package/dist/constants/componentProps/iconFillSize.js +3 -1
- package/dist/constants/componentProps/iconSize.js +3 -1
- package/dist/constants/componentProps/sizePX.js +3 -1
- package/dist/css/components/DatePicker/DatePicker.css +12 -5
- package/dist/css/components/Group/Group.css +0 -8
- package/dist/css/components/Label/Label.css +0 -19
- package/dist/css/components/Modal/Modal.css +3 -3
- package/dist/css/components/{Fader/Fader.css → Overlay/Overlay.css} +10 -10
- package/dist/css/components/{RadioButton/RadioButton.css → Radio/Radio.css} +11 -10
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +6 -0
- package/dist/css/components/Title/Title.css +9 -0
- package/dist/stories/ModalConfirm.stories.js +1 -1
- package/dist/stories/ModalDefault.stories.js +1 -1
- package/dist/stories/{RadioButton.stories.js → Radio.stories.js} +5 -5
- package/package.json +2 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
.
|
|
1
|
+
.overlay {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
|
-
background: var(--
|
|
4
|
+
background: var(--overlay-fill);
|
|
5
5
|
position: absolute;
|
|
6
6
|
left: 0;
|
|
7
7
|
top: 0;
|
|
8
8
|
z-index: 1;
|
|
9
|
-
backdrop-filter: blur(var(--
|
|
9
|
+
backdrop-filter: blur(var(--overlay-blur, 10px));
|
|
10
10
|
}
|
|
11
|
-
.
|
|
11
|
+
.overlay {
|
|
12
12
|
&&_state {
|
|
13
13
|
&_visible {
|
|
14
14
|
position: fixed;
|
|
15
15
|
visibility: visible !important;
|
|
16
|
-
animation-name:
|
|
16
|
+
animation-name: overlayFadeIn;
|
|
17
17
|
}
|
|
18
18
|
&_hidden {
|
|
19
|
-
animation-name:
|
|
19
|
+
animation-name: overlayFaderOut;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
@keyframes
|
|
23
|
+
@keyframes overlayFadeIn {
|
|
24
24
|
from {
|
|
25
25
|
opacity: 0%;
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
opacity: 100%;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
@keyframes
|
|
31
|
+
@keyframes overlayFaderOut {
|
|
32
32
|
from {
|
|
33
33
|
opacity: 100%;
|
|
34
34
|
}
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
opacity: 0%;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.overlay {
|
|
40
40
|
&&_type_click {
|
|
41
|
-
opacity: 0
|
|
41
|
+
opacity: 0%;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.radio
|
|
1
|
+
.radio {
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: auto 1fr;
|
|
4
4
|
grid-template-rows: auto auto;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
&:hover {
|
|
7
7
|
^&__state {
|
|
8
|
-
border-color: var(--radio-
|
|
8
|
+
border-color: var(--radio-state-border-hover);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
&__item {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
z-index: 3;
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
appearance: none;
|
|
35
|
-
&:disabled + .
|
|
35
|
+
&:disabled + .radio__state {
|
|
36
36
|
border-color: transparent !important;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
z-index: 1;
|
|
43
43
|
&_shape {
|
|
44
44
|
&_rounded {
|
|
45
|
-
border-radius: var(--radio-
|
|
45
|
+
border-radius: var(--radio-shape-rounded, 4px);
|
|
46
46
|
position: relative;
|
|
47
47
|
overflow: hidden;
|
|
48
48
|
}
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
.radio
|
|
69
|
+
.radio {
|
|
70
70
|
&_shape {
|
|
71
71
|
&_rounded {
|
|
72
72
|
^^&__item {
|
|
73
|
-
border-radius: var(--radio-
|
|
73
|
+
border-radius: var(--radio-item-shape-rounded, 4px);
|
|
74
74
|
position: relative;
|
|
75
75
|
overflow: hidden;
|
|
76
76
|
}
|
|
@@ -84,20 +84,21 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
.radio
|
|
87
|
+
.radio {
|
|
88
88
|
&_checkmark {
|
|
89
89
|
&_fill {
|
|
90
90
|
@each $type in accent, primary, secondary, tertiary, surface, success, error {
|
|
91
91
|
&_$(type) {
|
|
92
92
|
&-item {
|
|
93
|
-
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
|
|
93
|
+
@each $color in primary, secondary, tertiary, quaternary, quinary, senary, accent,
|
|
94
|
+
disabled, hover {
|
|
94
95
|
&-$(color) {
|
|
95
96
|
& ^^^^^&__input {
|
|
96
97
|
&:checked {
|
|
97
98
|
& ~ ^^^^^^^&__state {
|
|
98
99
|
&-checkmark {
|
|
99
|
-
display: block;
|
|
100
100
|
background: var(--color-$(type)-item-$(color));
|
|
101
|
+
display: block;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
}
|
|
@@ -111,5 +112,5 @@
|
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
:root {
|
|
114
|
-
--radio-
|
|
115
|
+
--radio-state-border-hover: var(--color-surface-border-tertiary);
|
|
115
116
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { Radio, radioConfig } from '@itcase/ui/components/Radio'
|
|
2
|
+
import radioState from 'src/components/Radio/state.json'
|
|
3
3
|
|
|
4
4
|
import { shapeProps, textColorProps, textSizeProps } from '@itcase/ui/constants'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
radioConfig.setState(radioState)
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
title: 'Atoms /
|
|
10
|
-
component:
|
|
9
|
+
title: 'Atoms / Radio',
|
|
10
|
+
component: Radio,
|
|
11
11
|
argTypes: {
|
|
12
12
|
advancedProps: { control: 'boolean' },
|
|
13
13
|
className: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"react-otp-input": "^3.1.1",
|
|
59
59
|
"react-paginate": "^8.2.0",
|
|
60
60
|
"react-responsive": "^9.0.2",
|
|
61
|
+
"react-scroll-ondrag": "^3.0.1",
|
|
61
62
|
"react-scrollbars-custom": "^4.1.1",
|
|
62
63
|
"react-select": "^5.8.0",
|
|
63
64
|
"swiper": "^11.0.7",
|