@harjs/react-ui 1.1.9 → 1.1.11
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/assets/css/components/data-display/chip/css.cjs +2 -2
- package/dist/assets/css/components/data-display/chip/size.css +6 -6
- package/dist/assets/css/components/data-display/chip/styles.css +1 -0
- package/dist/assets/css/components/data-display/typography/paragraph/css.cjs +2 -2
- package/dist/assets/css/components/data-display/typography/paragraph/size.css +6 -6
- package/dist/assets/css/components/data-display/typography/title/core.css +1 -1
- package/dist/assets/css/components/data-display/typography/typography.css +0 -1
- package/dist/assets/css/components/feedback/drawer/css.cjs +13 -8
- package/dist/assets/css/components/feedback/drawer/size.css +31 -6
- package/dist/assets/css/components/feedback/modal/css.cjs +3 -6
- package/dist/assets/css/components/feedback/modal/size.css +6 -6
- package/dist/assets/css/components/form/button/css.cjs +2 -2
- package/dist/assets/css/components/form/button/size.css +6 -6
- package/dist/assets/css/components/form/checkbox/color.checked.css +1020 -1024
- package/dist/assets/css/components/form/checkbox/color.radio-checked.css +1150 -1154
- package/dist/assets/css/components/form/checkbox/color.radio-unchecked.css +727 -735
- package/dist/assets/css/components/form/checkbox/color.unchecked.css +727 -735
- package/dist/assets/css/components/form/checkbox/css.cjs +5 -5
- package/dist/assets/css/components/form/checkbox/size.css +3 -3
- package/dist/assets/css/components/form/input/addon.css +19 -15
- package/dist/assets/css/components/form/input/color.addon.css +511 -0
- package/dist/assets/css/components/form/input/css.cjs +6 -136
- package/dist/assets/css/components/form/input/size.css +6 -6
- package/dist/assets/css/components/form/input/styles.css +7 -0
- package/dist/assets/css/components/form/input/templates/color.addon.template.css +50 -0
- package/dist/assets/css/components/form/select/color.css +635 -0
- package/dist/assets/css/components/form/select/css.cjs +43 -0
- package/dist/assets/css/components/form/select/options.css +121 -100
- package/dist/assets/css/components/form/select/radius.css +45 -0
- package/dist/assets/css/components/form/select/size.css +35 -0
- package/dist/assets/css/components/form/select/styles.css +8 -6
- package/dist/assets/css/components/form/select/templates/color.template.css +62 -0
- package/dist/assets/css/components/form/select/templates/radius.template.css +3 -0
- package/dist/assets/css/components/form/select/templates/size.template.css +4 -0
- package/dist/assets/css/components/form/switch/color.css +721 -0
- package/dist/assets/css/components/form/switch/css.cjs +40 -0
- package/dist/assets/css/components/form/switch/radius.css +42 -0
- package/dist/assets/css/components/form/switch/size.css +28 -0
- package/dist/assets/css/components/form/switch/styles.css +7 -5
- package/dist/assets/css/components/form/switch/templates/color.template.css +71 -0
- package/dist/assets/css/components/form/switch/templates/radius.template.css +3 -0
- package/dist/assets/css/components/form/switch/templates/size.template.css +8 -0
- package/dist/components/data-display/typography/paragraph/Paragraph.js +1 -1
- package/dist/components/data-display/typography/title/IProps.d.ts +0 -1
- package/dist/components/data-display/typography/title/Title.js +5 -7
- package/dist/components/feedback/drawer/IProps.d.ts +4 -3
- package/dist/components/feedback/drawer/index.js +2 -2
- package/dist/components/form/checkbox/Props.d.ts +2 -3
- package/dist/components/form/checkbox/index.d.ts +1 -2
- package/dist/components/form/checkbox/index.js +1 -3
- package/dist/components/form/input/index.js +1 -1
- package/dist/components/form/select/index.js +33 -24
- package/dist/components/form/switch/index.js +5 -5
- package/dist/components/navigation/wizard/IProps.d.ts +3 -3
- package/dist/libs/infrastructure/shared/Utils.js +1 -1
- package/dist/libs/infrastructure/types/IGlobalProps.d.ts +1 -15
- package/dist/libs/infrastructure/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/assets/css/components/data-display/typography/title/size.css +0 -41
- package/dist/assets/css/components/form/switch/core/border.css +0 -208
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.
|
|
1
|
+
.har-select-options {
|
|
2
2
|
visibility: hidden;
|
|
3
3
|
opacity: 0;
|
|
4
4
|
position: absolute;
|
|
@@ -13,108 +13,129 @@
|
|
|
13
13
|
visibility 250ms,
|
|
14
14
|
opacity 250ms,
|
|
15
15
|
transform 250ms ease-in-out;
|
|
16
|
-
}
|
|
17
|
-
.ar-select-options.top {
|
|
18
|
-
box-shadow: 0 5px 15px -2.5px var(--black-10);
|
|
19
|
-
}
|
|
20
|
-
.ar-select-options.bottom {
|
|
21
|
-
box-shadow: 0 -5px 15px -2.5px var(--black-10);
|
|
22
|
-
}
|
|
23
16
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
17
|
+
&.top {
|
|
18
|
+
box-shadow: 0 5px 15px -2.5px var(--black-10);
|
|
19
|
+
}
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
overflow-x: hidden;
|
|
33
|
-
overflow-y: auto;
|
|
34
|
-
}
|
|
35
|
-
.ar-select-options > ul > li {
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
gap: 0 0.5rem;
|
|
39
|
-
padding: 0 1rem;
|
|
40
|
-
height: var(--input-height);
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
|
-
.ar-select-options > ul > li:hover {
|
|
44
|
-
background-color: var(--gray-200);
|
|
45
|
-
}
|
|
46
|
-
.ar-select-options > ul > li.selectedItem {
|
|
47
|
-
/* background-color: rgba(var(--success-rgb), 0.1); */
|
|
48
|
-
}
|
|
49
|
-
.ar-select-options > ul > li.navigate-with-arrow-keys {
|
|
50
|
-
background-color: var(--gray-100);
|
|
51
|
-
}
|
|
21
|
+
&.bottom {
|
|
22
|
+
box-shadow: 0 -5px 15px -2.5px var(--black-10);
|
|
23
|
+
}
|
|
52
24
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
.ar-select-options > ul > li > .no-options-field {
|
|
59
|
-
padding: 0 !important;
|
|
60
|
-
}
|
|
61
|
-
.ar-select-options > .no-options-field > .text,
|
|
62
|
-
.ar-select-options > ul > li > .no-options-field > .text {
|
|
63
|
-
color: var(--gray-500);
|
|
64
|
-
}
|
|
65
|
-
.ar-select-options > .no-options-field > .add-item,
|
|
66
|
-
.ar-select-options > ul > li > .no-options-field > .add-item {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
position: relative;
|
|
70
|
-
background-color: rgba(var(--primary-rgb), 0.05);
|
|
71
|
-
padding: 0.25rem 0.5rem;
|
|
72
|
-
border-radius: var(--radius-4);
|
|
73
|
-
border-left: solid 2px var(--primary);
|
|
74
|
-
color: var(--primary);
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
}
|
|
77
|
-
.ar-select-options > .no-options-field > .add-item::before,
|
|
78
|
-
.ar-select-options > ul > li > .no-options-field > .add-item::before {
|
|
79
|
-
position: absolute;
|
|
80
|
-
top: 50%;
|
|
81
|
-
transform: translateY(-50%);
|
|
82
|
-
left: 0;
|
|
83
|
-
content: "";
|
|
84
|
-
border: solid 5px transparent;
|
|
85
|
-
border-left-color: var(--primary);
|
|
86
|
-
}
|
|
87
|
-
.ar-select-options > .no-options-field > .add-item > .plus,
|
|
88
|
-
.ar-select-options > ul > li > .no-options-field > .add-item > .plus {
|
|
89
|
-
display: inline-block;
|
|
90
|
-
position: relative;
|
|
91
|
-
background-color: var(--primary);
|
|
92
|
-
min-width: 1rem;
|
|
93
|
-
height: 1rem;
|
|
94
|
-
margin-right: 0.25rem;
|
|
95
|
-
border-radius: var(--radius-full);
|
|
96
|
-
color: var(--white-100);
|
|
97
|
-
text-align: center;
|
|
98
|
-
line-height: 1rem;
|
|
99
|
-
}
|
|
25
|
+
> .search-field {
|
|
26
|
+
padding: 0.5rem;
|
|
27
|
+
border-bottom: solid 1px var(--gray-200);
|
|
28
|
+
}
|
|
100
29
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
30
|
+
> .no-options-field {
|
|
31
|
+
width: 100%;
|
|
32
|
+
padding: 0.5rem 1rem;
|
|
33
|
+
|
|
34
|
+
> .text {
|
|
35
|
+
color: var(--gray-500);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
> .add-item {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
position: relative;
|
|
42
|
+
background-color: rgba(var(--primary-rgb), 0.05);
|
|
43
|
+
padding: 0.25rem 0.5rem;
|
|
44
|
+
border-radius: var(--radius-4);
|
|
45
|
+
border-left: solid 2px var(--primary);
|
|
46
|
+
color: var(--primary);
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
|
|
49
|
+
&::before {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: 50%;
|
|
52
|
+
transform: translateY(-50%);
|
|
53
|
+
left: 0;
|
|
54
|
+
content: "";
|
|
55
|
+
border: solid 5px transparent;
|
|
56
|
+
border-left-color: var(--primary);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> .plus {
|
|
60
|
+
display: inline-block;
|
|
61
|
+
position: relative;
|
|
62
|
+
background-color: var(--primary);
|
|
63
|
+
min-width: 1rem;
|
|
64
|
+
height: 1rem;
|
|
65
|
+
margin-right: 0.25rem;
|
|
66
|
+
border-radius: var(--radius-full);
|
|
67
|
+
color: var(--white-100);
|
|
68
|
+
text-align: center;
|
|
69
|
+
line-height: 1rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
> ul {
|
|
75
|
+
width: 100%;
|
|
76
|
+
max-height: calc(var(--input-height) * 5);
|
|
77
|
+
overflow-x: hidden;
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
|
|
80
|
+
> li {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 0 0.5rem;
|
|
84
|
+
padding: 0 1rem;
|
|
85
|
+
height: var(--input-height);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
background-color: var(--gray-200);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.navigate-with-arrow-keys {
|
|
93
|
+
background-color: var(--gray-100);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
> .no-options-field {
|
|
97
|
+
width: 100%;
|
|
98
|
+
padding: 0;
|
|
99
|
+
|
|
100
|
+
> .text {
|
|
101
|
+
color: var(--gray-500);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
> .add-item {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
position: relative;
|
|
108
|
+
background-color: rgba(var(--primary-rgb), 0.05);
|
|
109
|
+
padding: 0.25rem 0.5rem;
|
|
110
|
+
border-radius: var(--radius-4);
|
|
111
|
+
border-left: solid 2px var(--primary);
|
|
112
|
+
color: var(--primary);
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
position: absolute;
|
|
117
|
+
top: 50%;
|
|
118
|
+
transform: translateY(-50%);
|
|
119
|
+
left: 0;
|
|
120
|
+
content: "";
|
|
121
|
+
border: solid 5px transparent;
|
|
122
|
+
border-left-color: var(--primary);
|
|
123
|
+
}
|
|
112
124
|
|
|
113
|
-
.
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
> .plus {
|
|
126
|
+
display: inline-block;
|
|
127
|
+
position: relative;
|
|
128
|
+
background-color: var(--primary);
|
|
129
|
+
min-width: 1rem;
|
|
130
|
+
height: 1rem;
|
|
131
|
+
margin-right: 0.25rem;
|
|
132
|
+
border-radius: var(--radius-full);
|
|
133
|
+
color: var(--white-100);
|
|
134
|
+
text-align: center;
|
|
135
|
+
line-height: 1rem;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
116
141
|
}
|
|
117
|
-
.ar-select-options.bottom:is(.opened, .closed),
|
|
118
|
-
.ar-select-options.bottom:is(.opened, .closed) {
|
|
119
|
-
transform-origin: bottom;
|
|
120
|
-
} */
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.har-select {
|
|
2
|
+
> .wrapper {
|
|
3
|
+
> .selections {
|
|
4
|
+
&.radius-0 {
|
|
5
|
+
border-radius: var(--radius-0);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&.radius-2 {
|
|
9
|
+
border-radius: var(--radius-2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.radius-4 {
|
|
13
|
+
border-radius: var(--radius-4);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.radius-6 {
|
|
17
|
+
border-radius: var(--radius-6);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.radius-8 {
|
|
21
|
+
border-radius: var(--radius-8);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.radius-12 {
|
|
25
|
+
border-radius: var(--radius-12);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.radius-16 {
|
|
29
|
+
border-radius: var(--radius-16);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.radius-20 {
|
|
33
|
+
border-radius: var(--radius-20);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.radius-40 {
|
|
37
|
+
border-radius: var(--radius-40);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.radius-full {
|
|
41
|
+
border-radius: var(--radius-full);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.har-select {
|
|
2
|
+
> .wrapper {
|
|
3
|
+
> .selections {
|
|
4
|
+
&.size-xs {
|
|
5
|
+
min-height: 2rem !important;
|
|
6
|
+
font-size: 0.75rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&.size-sm {
|
|
10
|
+
min-height: 2.25rem !important;
|
|
11
|
+
font-size: 0.875rem;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&.size-md {
|
|
15
|
+
min-height: 2.5rem !important;
|
|
16
|
+
font-size: 0.875rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.size-lg {
|
|
20
|
+
min-height: 2.75rem !important;
|
|
21
|
+
font-size: 1rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.size-xl {
|
|
25
|
+
min-height: 3rem !important;
|
|
26
|
+
font-size: 1rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.size-2xl {
|
|
30
|
+
min-height: 3.25rem !important;
|
|
31
|
+
font-size: 1.25rem;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
@import url("./color.css");
|
|
1
2
|
@import url("./options.css");
|
|
3
|
+
@import url("./radius.css");
|
|
4
|
+
@import url("./size.css");
|
|
2
5
|
|
|
3
|
-
.
|
|
6
|
+
.har-select-wrapper {
|
|
4
7
|
position: relative;
|
|
5
8
|
width: 100%;
|
|
6
9
|
user-select: none;
|
|
7
10
|
|
|
8
|
-
> .
|
|
11
|
+
> .har-select {
|
|
9
12
|
display: flex;
|
|
10
13
|
flex-direction: column;
|
|
11
14
|
gap: 0.25rem;
|
|
@@ -77,11 +80,11 @@
|
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
|
|
80
|
-
> .
|
|
83
|
+
> .har-input-wrapper {
|
|
81
84
|
white-space: nowrap;
|
|
82
85
|
text-overflow: ellipsis;
|
|
83
86
|
|
|
84
|
-
> .
|
|
87
|
+
> .har-input {
|
|
85
88
|
white-space: nowrap;
|
|
86
89
|
text-overflow: ellipsis;
|
|
87
90
|
|
|
@@ -148,7 +151,6 @@
|
|
|
148
151
|
top: calc(var(--input-height) / 2);
|
|
149
152
|
transform: translateY(-50%);
|
|
150
153
|
right: 2rem;
|
|
151
|
-
background-color: var(--black-30);
|
|
152
154
|
backdrop-filter: blur(5px);
|
|
153
155
|
width: 1rem;
|
|
154
156
|
height: 1rem;
|
|
@@ -169,7 +171,7 @@
|
|
|
169
171
|
|
|
170
172
|
&::before {
|
|
171
173
|
content: "x";
|
|
172
|
-
color: var(--
|
|
174
|
+
color: var(--red-500);
|
|
173
175
|
font-size: 0.75rem;
|
|
174
176
|
}
|
|
175
177
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
&.__COLOR__ {
|
|
2
|
+
&.filled {
|
|
3
|
+
background-color: var(--__COLOR__-100);
|
|
4
|
+
border: var(--stroke-1) solid var(--__COLOR__-300);
|
|
5
|
+
|
|
6
|
+
&:focus {
|
|
7
|
+
border: var(--stroke-1) solid var(--__COLOR__-500);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&::placeholder {
|
|
11
|
+
color: var(--__COLOR__-400);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.surface-borderless {
|
|
16
|
+
background-color: var(--__COLOR__-100);
|
|
17
|
+
|
|
18
|
+
&:focus {
|
|
19
|
+
background-color: transparent;
|
|
20
|
+
box-shadow: 0 0 0 2.5px var(--__COLOR__-200);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&::placeholder {
|
|
24
|
+
color: var(--__COLOR__-400);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.outlined {
|
|
29
|
+
background-color: transparent;
|
|
30
|
+
border: var(--stroke-1) solid var(--__COLOR__-300);
|
|
31
|
+
|
|
32
|
+
&:focus {
|
|
33
|
+
box-shadow: 0 0 0 2.5px var(--__COLOR__-200);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::placeholder {
|
|
37
|
+
color: var(--__COLOR__-400);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.dashed {
|
|
42
|
+
background-color: transparent;
|
|
43
|
+
border: var(--stroke-1) dashed var(--__COLOR__-300);
|
|
44
|
+
|
|
45
|
+
&:focus {
|
|
46
|
+
box-shadow: 0 0 0 2.5px var(--__COLOR__-200);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&::placeholder {
|
|
50
|
+
color: var(--__COLOR__-400);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.borderless {
|
|
55
|
+
background-color: transparent;
|
|
56
|
+
border: var(--stroke-1) solid transparent;
|
|
57
|
+
|
|
58
|
+
&::placeholder {
|
|
59
|
+
color: var(--__COLOR__-400);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|