@truedat/core 8.14.4 → 8.14.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/core",
3
- "version": "8.14.4",
3
+ "version": "8.14.5",
4
4
  "description": "Truedat Web Core",
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -57,7 +57,7 @@
57
57
  "@testing-library/jest-dom": "^6.6.3",
58
58
  "@testing-library/react": "^16.3.0",
59
59
  "@testing-library/user-event": "^14.6.1",
60
- "@truedat/test": "8.14.4",
60
+ "@truedat/test": "8.14.5",
61
61
  "identity-obj-proxy": "^3.0.0",
62
62
  "jest": "^29.7.0",
63
63
  "redux-saga-test-plan": "^4.0.6"
@@ -99,5 +99,5 @@
99
99
  "swr": "^2.3.3",
100
100
  "turndown": "^7.2.2"
101
101
  },
102
- "gitHead": "3f043f28fd445df46a419f7872e23fe73e00e93d"
102
+ "gitHead": "a792103a77b3b2392be5777a8dc6675ac3882ffd"
103
103
  }
@@ -162,7 +162,7 @@ const Languages = () => {
162
162
  className="lang-manager-dropdown"
163
163
  placeholder={formatMessage({
164
164
  id: "i18n.messages.locale.lang_select",
165
- defaultMessage: "Select languaje",
165
+ defaultMessage: "Select language",
166
166
  })}
167
167
  name="add-locales"
168
168
  multiple={false}
@@ -87,7 +87,7 @@ exports[`<Messages /> matches the latest snapshot 1`] = `
87
87
  class="divider default text"
88
88
  role="alert"
89
89
  >
90
- Select languaje
90
+ Select language
91
91
  </div>
92
92
  <i
93
93
  aria-hidden="true"
@@ -1,303 +1,28 @@
1
+ @import "./ModalAppearance.less";
2
+
1
3
  :root {
2
4
  --td-danger: #e42135;
3
5
  }
4
6
 
5
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal),
6
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) {
7
- width: min(560px, calc(100vw - 48px));
8
- border-radius: 18px;
9
- overflow: visible;
10
- box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
11
- }
12
-
13
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .close.icon,
14
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .close.icon {
15
- top: 22px;
16
- right: 24px;
17
- width: 32px;
18
- height: 32px;
19
- padding: 8px 0 0 0;
20
- border-radius: 8px;
21
- color: #8aa0bd;
22
- text-shadow: none;
23
- opacity: 1;
24
- transition:
25
- color 0.15s ease,
26
- background-color 0.15s ease;
27
- }
28
-
29
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
30
- > .close.icon:hover,
31
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .close.icon:hover,
32
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
33
- > .close.icon:focus,
34
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
35
- > .close.icon:focus {
36
- background: #f1f5f9;
37
- color: #334155;
38
- }
39
-
40
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .header,
41
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .header {
42
- min-height: 80px;
43
- padding: 20px 58px 20px 28px;
44
- border-bottom: 1px solid #e8edf5;
45
- border-radius: 18px 18px 0 0;
46
- background: #ffffff;
47
- color: #1e293b;
48
- font-size: 22px;
49
- font-weight: 900;
50
- line-height: 1.15;
51
- letter-spacing: 0;
52
- text-transform: uppercase;
53
- }
54
-
55
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
56
- > .header
57
- .subheader,
58
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
59
- > .header
60
- .subheader {
61
- margin-top: 8px;
62
- color: #64748b;
63
- font-size: 12px;
64
- font-weight: 700;
65
- line-height: 1.35;
66
- text-transform: none;
67
- }
68
-
69
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .content,
70
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .content {
71
- padding: 30px;
72
- background: #ffffff;
73
- color: #50627a;
74
- font-size: 14px;
75
- font-weight: 600;
76
- line-height: 1.5;
77
- white-space: pre-line;
78
- }
79
-
80
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .content i,
81
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .content i {
82
- display: inline-flex;
83
- align-items: center;
84
- max-width: 100%;
85
- min-height: 28px;
86
- margin: 0 4px;
87
- padding: 5px 10px;
88
- border: 1px solid #dbe4ef;
89
- border-radius: 7px;
90
- background: #eef3f8;
91
- color: #002057;
92
- font-style: normal;
93
- font-weight: 900;
94
- line-height: 1.2;
95
- overflow-wrap: anywhere;
96
- vertical-align: middle;
97
- }
98
-
99
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .actions,
100
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .actions {
101
- min-height: 0;
102
- padding: 0;
103
- border-top: 1px solid #e8edf5;
104
- border-radius: 0 0 18px 18px;
105
- background: #ffffff;
106
- display: flex;
107
- align-items: center;
108
- justify-content: flex-end;
109
- gap: 8px;
110
- }
111
-
112
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .actions::after,
113
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .actions::after {
114
- display: none;
115
- }
116
-
117
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
118
- > .actions
119
- .ui.button,
120
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
121
- > .actions
122
- .ui.button {
123
- min-width: 132px;
124
- min-height: 48px;
125
- margin: 10px 0 0;
126
- border-radius: 4px;
127
- box-shadow: none;
128
- font-size: 12px;
129
- font-weight: 900;
130
- letter-spacing: 0.02em;
131
- text-transform: uppercase;
132
- transition:
133
- background-color 0.15s ease,
134
- border-color 0.15s ease,
135
- color 0.15s ease;
136
- }
7
+ .ui.small.modal:not(.user-modal):not(.execution-popup-modal):not(.true-modal),
8
+ .ui.mini.modal:not(.user-modal):not(.execution-popup-modal):not(.true-modal) {
9
+ .modal-appearance();
137
10
 
138
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
139
- > .actions
140
- .ui.secondary.button,
141
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
142
- > .actions
143
- .ui.secondary.button,
144
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
145
- > .actions
146
- .ui.button:not(.primary):not(.positive):not(.negative),
147
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
148
- > .actions
149
- .ui.button:not(.primary):not(.positive):not(.negative) {
150
- border: 1px solid #d8e1ed;
151
- background: #ffffff;
152
- color: #64748b;
153
- }
154
-
155
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
156
- > .actions
157
- .ui.secondary.button:hover,
158
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
159
- > .actions
160
- .ui.secondary.button:hover,
161
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
162
- > .actions
163
- .ui.secondary.button:focus,
164
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
165
- > .actions
166
- .ui.secondary.button:focus,
167
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
168
- > .actions
169
- .ui.button:not(.primary):not(.positive):not(.negative):hover,
170
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
171
- > .actions
172
- .ui.button:not(.primary):not(.positive):not(.negative):hover,
173
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
174
- > .actions
175
- .ui.button:not(.primary):not(.positive):not(.negative):focus,
176
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
177
- > .actions
178
- .ui.button:not(.primary):not(.positive):not(.negative):focus {
179
- border-color: #bdc9d8;
180
- background: #f8fafc;
181
- color: #475569;
182
- }
183
-
184
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
185
- > .actions
186
- .ui.primary.button,
187
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
188
- > .actions
189
- .ui.primary.button,
190
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
191
- > .actions
192
- .ui.positive.button,
193
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
194
- > .actions
195
- .ui.positive.button {
196
- background: #002057;
197
- color: #ffffff;
198
- }
199
-
200
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
201
- > .actions
202
- .ui.primary.button:hover,
203
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
204
- > .actions
205
- .ui.primary.button:hover,
206
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
207
- > .actions
208
- .ui.primary.button:focus,
209
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
210
- > .actions
211
- .ui.primary.button:focus,
212
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
213
- > .actions
214
- .ui.positive.button:hover,
215
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
216
- > .actions
217
- .ui.positive.button:hover,
218
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
219
- > .actions
220
- .ui.positive.button:focus,
221
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
222
- > .actions
223
- .ui.positive.button:focus {
224
- background: #001840;
225
- }
226
-
227
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
228
- > .actions
229
- .ui.negative.button,
230
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
231
- > .actions
232
- .ui.negative.button {
233
- background: #ed5c17;
234
- color: #ffffff;
235
- }
236
-
237
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
238
- > .actions
239
- .ui.negative.button:hover,
240
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
241
- > .actions
242
- .ui.negative.button:hover,
243
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
244
- > .actions
245
- .ui.negative.button:focus,
246
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
247
- > .actions
248
- .ui.negative.button:focus {
249
- background: #d94f12;
250
- }
251
-
252
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
253
- > .actions
254
- .ui.disabled.button,
255
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
256
- > .actions
257
- .ui.disabled.button,
258
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
259
- > .actions
260
- .ui.button:disabled,
261
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
262
- > .actions
263
- .ui.button:disabled {
264
- cursor: not-allowed;
265
- opacity: 0.55;
266
- }
267
-
268
- @media only screen and (max-width: 767px) {
269
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal),
270
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) {
271
- width: calc(100vw - 24px);
11
+ > .close.icon {
12
+ .modal-close-appearance();
13
+ width: auto;
14
+ height: auto;
272
15
  }
273
16
 
274
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .header,
275
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .header {
276
- min-height: 72px;
277
- padding: 18px 54px 18px 20px !important;
278
- font-size: 18px;
279
- }
280
-
281
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .content,
282
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .content {
283
- padding: 22px 20px !important;
284
- }
285
-
286
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal) > .actions,
287
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal) > .actions {
288
- min-height: auto;
289
- padding: 0 !important;
290
- flex-direction: column-reverse;
291
- align-items: stretch;
292
- }
17
+ > .actions {
18
+ display: flex;
19
+ flex-wrap: wrap;
20
+ justify-content: flex-end;
21
+ align-items: center;
22
+ gap: 0.75rem;
293
23
 
294
- .ui.small.modal:not(.user-modal):not(.execution-popup-modal)
295
- > .actions
296
- .ui.button,
297
- .ui.mini.modal:not(.user-modal):not(.execution-popup-modal)
298
- > .actions
299
- .ui.button {
300
- width: 100%;
301
- margin: 0 !important;
24
+ .button {
25
+ margin: 0;
26
+ }
302
27
  }
303
28
  }
@@ -0,0 +1,52 @@
1
+ .modal-appearance() {
2
+ padding: 0;
3
+ border: 0;
4
+ border-radius: 1rem;
5
+ box-shadow:
6
+ 0 20px 25px -5px rgba(0, 0, 0, 0.2),
7
+ 0 8px 10px -6px rgba(0, 0, 0, 0.15);
8
+
9
+ > .header {
10
+ padding: 1.5rem 3.5rem 1rem 1.5rem;
11
+ border-radius: 1rem 1rem 0 0;
12
+ border-bottom: 0;
13
+ background: @primaryColor;
14
+ color: #f8fafc;
15
+ }
16
+
17
+ > .content {
18
+ padding: 1.625rem 1.5rem 2rem;
19
+ }
20
+
21
+ > .actions {
22
+ padding: 1rem 1.5rem;
23
+ padding-bottom: 1rem !important;
24
+ border-radius: 0 0 1rem 1rem;
25
+ border-top: 1px solid #e2e8f0;
26
+ background: #f8fafc;
27
+ }
28
+ }
29
+
30
+ .modal-close-appearance() {
31
+ position: absolute;
32
+ top: 1.25rem;
33
+ right: 1rem;
34
+ padding: 6px;
35
+ border: none;
36
+ border-radius: 0.5rem;
37
+ background: none;
38
+ color: #f8fafc;
39
+ cursor: pointer;
40
+ font-size: 1.25rem;
41
+ line-height: 1;
42
+ opacity: 0.8;
43
+
44
+ &:hover {
45
+ opacity: 1;
46
+ }
47
+
48
+ &:focus-visible {
49
+ outline: 2px solid currentColor;
50
+ outline-offset: 2px;
51
+ }
52
+ }
@@ -1,28 +1,19 @@
1
1
  @import "./ModalEffects.less";
2
+ @import "./ModalAppearance.less";
2
3
 
3
4
  .ui.modal.true-modal {
5
+ .modal-appearance();
4
6
  display: flex !important;
5
7
  flex-direction: column;
6
8
  max-width: calc(100vw - 2rem);
7
9
  max-height: calc(100vh - 2rem);
8
10
  max-height: calc(100dvh - 2rem);
9
- padding: 0;
10
- border: 0;
11
- border-radius: 1rem;
12
- box-shadow:
13
- 0 20px 25px -5px rgba(0, 0, 0, 0.2),
14
- 0 8px 10px -6px rgba(0, 0, 0, 0.15);
15
11
 
16
12
  > .header {
17
13
  display: flex;
18
14
  align-items: center;
19
15
  gap: 0.75rem;
20
16
  flex-shrink: 0;
21
- padding: 1.5rem 3.5rem 1rem 1.5rem;
22
- border-radius: 1rem 1rem 0 0;
23
- border-bottom: 0;
24
- background: @primaryColor;
25
- color: #f8fafc;
26
17
 
27
18
  > .icon {
28
19
  margin: 0;
@@ -43,34 +34,13 @@
43
34
  }
44
35
 
45
36
  > .true-modal-close {
46
- position: absolute;
47
- top: 1.25rem;
48
- right: 1rem;
49
- padding: 6px;
50
- border: none;
51
- border-radius: 0.5rem;
52
- background: none;
53
- color: #f8fafc;
54
- cursor: pointer;
55
- font-size: 1.25rem;
56
- line-height: 1;
57
- opacity: 0.8;
58
-
59
- &:hover {
60
- opacity: 1;
61
- }
62
-
63
- &:focus-visible {
64
- outline: 2px solid currentColor;
65
- outline-offset: 2px;
66
- }
37
+ .modal-close-appearance();
67
38
  }
68
39
 
69
40
  > .content {
70
41
  flex: 1 1 auto;
71
42
  min-height: 0;
72
43
  overflow-y: auto;
73
- padding: 1.625rem 1.5rem 2rem;
74
44
  }
75
45
 
76
46
  > .actions {
@@ -80,11 +50,6 @@
80
50
  justify-content: flex-end;
81
51
  align-items: center;
82
52
  gap: 0.75rem;
83
- padding: 1rem 1.5rem;
84
- padding-bottom: 1rem !important;
85
- border-radius: 0 0 1rem 1rem;
86
- border-top: 1px solid #e2e8f0;
87
- background: #f8fafc;
88
53
 
89
54
  .button {
90
55
  margin: 0;