benivo-ui-library 1.9.27 → 1.9.28

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.
@@ -6,5 +6,7 @@
6
6
  @import '../components/checkbox/checkbox.less';
7
7
  @import '../components/radiobutton/radiobutton.less';
8
8
  @import '../components/select/select.less';
9
+ @import '../components/datePicker/datePicker.less';
9
10
  @import '../components/navigation/navigation.less';
10
- @import '../components/swiperSlider/swiper/swiper.less';
11
+ @import '../components/swiperSlider/swiper/swiper.less';
12
+ @import './forms.less';
package/checkbox.less CHANGED
@@ -91,7 +91,7 @@
91
91
  border-color: var(--grey-300);
92
92
 
93
93
  &:after {
94
- color: var(--white);
94
+ color: var(--grey-300);
95
95
  }
96
96
  }
97
97
 
@@ -123,7 +123,7 @@
123
123
  border-color: var(--grey-300);
124
124
 
125
125
  &:after {
126
- color: var(--white);
126
+ color: var(--grey-300);
127
127
  }
128
128
  }
129
129
  }
package/forms.less ADDED
@@ -0,0 +1,256 @@
1
+ //
2
+ // Forms
3
+ //
4
+ @label-width-lg: 210px;
5
+ @label-width: 170px;
6
+
7
+ .form-row {
8
+ display: -ms-flexbox;
9
+ display: flex;
10
+ -ms-flex-wrap: wrap;
11
+ flex-wrap: wrap;
12
+ margin-right: -@gatter;
13
+ margin-left: -@gatter;
14
+
15
+ >.col,
16
+ >[class*='col-'] {
17
+ padding-right: @gatter;
18
+ padding-left: @gatter;
19
+ }
20
+ }
21
+
22
+ .form-group label,
23
+ .form-label {
24
+ display: flex;
25
+ align-items: center;
26
+ margin-bottom: 8px;
27
+ font-size: @form-label-font-size;
28
+ font-weight: @form-label-font-wight;
29
+ word-break: break-word;
30
+ line-height: 20px;
31
+ color: var(--grey-700);
32
+
33
+ .required-point {
34
+ color: var(--error-main);
35
+ }
36
+
37
+ .has-tooltip {
38
+ font-size: @font-size;
39
+ margin: 0 0 0 12px;
40
+ }
41
+ }
42
+
43
+ //Form fields wraps
44
+ .form-group {
45
+ position: relative;
46
+ margin-bottom: @spacer * 1.75;
47
+ text-align: left;
48
+
49
+ .form-text {
50
+ font-size: 12px;
51
+
52
+ @media @lg {
53
+ position: absolute;
54
+ }
55
+ }
56
+
57
+ .text-muted {
58
+ color: color-mix(in srgb, white 30%, var(--text-600));
59
+ }
60
+
61
+ .icon-close-icon {
62
+ position: absolute;
63
+ right: 0.75rem;
64
+ top: 50%;
65
+ .transform(translateY(-50%));
66
+ font-size: 10px;
67
+ font-weight: 700;
68
+ padding: 6px;
69
+
70
+ &:hover {
71
+ cursor: pointer;
72
+ }
73
+
74
+ &:before {
75
+ color: var(--text-600);
76
+
77
+ @media @lg {
78
+ color: var(--text-600);
79
+ }
80
+ }
81
+ }
82
+
83
+ &.inline-field {
84
+ display: flex;
85
+ justify-content: space-between;
86
+ align-items: baseline;
87
+ margin-bottom: 1.75rem;
88
+
89
+ @media @md {
90
+ flex-direction: row;
91
+ }
92
+
93
+ label {
94
+ font: inherit;
95
+ word-break: break-word;
96
+ width: @label-width;
97
+ min-width: @label-width;
98
+
99
+ @media @lg {
100
+ width: @label-width-lg;
101
+ min-width: @label-width-lg;
102
+ }
103
+
104
+ &+div {
105
+ width: 100%;
106
+ word-break: break-word;
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ // Placeholder
113
+ ::-webkit-input-placeholder {
114
+ color: var(--text-400);
115
+ }
116
+
117
+ ::-moz-placeholder {
118
+ color: var(--text-400);
119
+ }
120
+
121
+ :-ms-input-placeholder {
122
+ color: var(--text-400) !important;
123
+ }
124
+
125
+ :-moz-placeholder {
126
+ color: var(--text-400);
127
+ }
128
+
129
+ [placeholder] {
130
+ text-overflow: ellipsis;
131
+ }
132
+
133
+ // Validation
134
+ .invalid,
135
+ .field-invalid {
136
+ border-color: var(--error-main) !important;
137
+
138
+ .form-group label,
139
+ .form-label {
140
+ color: var(--error-main) !important;
141
+ }
142
+
143
+ .has-pre-box {
144
+ .pre-box {
145
+ border-color: var(--error-main) !important;
146
+ border-right-color: transparent !important;
147
+ }
148
+ }
149
+
150
+ .native-date-picker {
151
+ border-color: var(--error-main) !important;
152
+ }
153
+
154
+ .react-datepicker__input-container input,
155
+ .form-select__control,
156
+ .form-control,
157
+ .choose-file {
158
+ border-color: var(--error-main) !important;
159
+
160
+ &:focus,
161
+ &:focus-visible {
162
+ box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--rose-100);
163
+ }
164
+ }
165
+
166
+ .form-select__control--is-focused {
167
+ box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 0 0 4px var(--rose-100);
168
+ }
169
+
170
+ .react-datepicker {
171
+ .form-select__control {
172
+ border-color: var(--border-200) !important;
173
+ }
174
+ }
175
+ }
176
+
177
+ .field-invalid-msg {
178
+ font-size: @extra-small-font-size;
179
+ color: var(--error-main) !important;
180
+ display: block;
181
+ word-break: break-word;
182
+ line-height: 1.4;
183
+ margin-top: .25rem;
184
+ }
185
+
186
+ .alert {
187
+
188
+ &-danger,
189
+ &-warning,
190
+ &-success {
191
+ font-size: @extra-small-font-size;
192
+ .border-radius (4px);
193
+ padding: 6px 15px;
194
+ margin-bottom: 5px;
195
+ }
196
+
197
+ &-danger {
198
+ color: var(--error-main);
199
+ background-color: var(--error-light);
200
+ border: 1px solid var(--error-main);
201
+ }
202
+
203
+ &-warning {
204
+ color: var(--warning-main);
205
+ background-color: var(--warning-light);
206
+ border: 1px solid rgba(138, 99, 0, 0.28);
207
+ margin-bottom: 9px;
208
+ }
209
+
210
+ &-success {
211
+ color: var(--success-main);
212
+ background-color: var(--success-light);
213
+ border: 1px solid var(--success-main);
214
+ }
215
+ }
216
+
217
+ .info {
218
+ position: relative;
219
+ display: block;
220
+
221
+ &:before {
222
+ content: '\e90a';
223
+ font-family: 'icomoon';
224
+ display: block;
225
+ position: absolute;
226
+ right: 11px;
227
+ top: 0;
228
+ font-size: @small-font-size;
229
+ font-weight: lighter;
230
+ color: var(--text-200);
231
+ line-height: 1;
232
+ }
233
+
234
+ input {
235
+ pointer-events: none;
236
+ }
237
+ }
238
+
239
+ .locked {
240
+ position: relative;
241
+
242
+ &:before {
243
+ content: '\e98a';
244
+ font-family: 'icomoon';
245
+ display: flex;
246
+ align-items: center;
247
+ position: absolute;
248
+ right: 11px;
249
+ font-size: 14px;
250
+ color: var(--text-200);
251
+ }
252
+
253
+ input {
254
+ pointer-events: none;
255
+ }
256
+ }