@omniumretail/component-library 1.2.12 → 1.2.14
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/780.bundle.js +1 -0
- package/dist/838.bundle.js +2 -0
- package/dist/838.bundle.js.LICENSE.txt +1 -0
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.LICENSE.txt +309 -0
- package/dist/main.css +2 -2
- package/dist/types/components/CategoryReadOnly/index.d.ts +1 -0
- package/package.json +3 -1
- package/src/components/CategoryReadOnly/index.tsx +62 -23
- package/src/components/CategoryReadOnly/styles.module.scss +25 -3
- package/src/components/CategoryResponse/index.tsx +8 -14
- package/src/components/CategoryResponse/styles.module.scss +38 -13
|
@@ -317,7 +317,6 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
317
317
|
return (
|
|
318
318
|
<div className={styles.categoryResponse}>
|
|
319
319
|
<div className={styles.sidebarWrapper}>
|
|
320
|
-
<div className={styles.title}>{t('components.categoryReadOnly.categories')}</div>
|
|
321
320
|
{renderCategories(localData.CategoryAnswers)}
|
|
322
321
|
</div>
|
|
323
322
|
<div className={styles.contentWrapper}>
|
|
@@ -330,9 +329,6 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
330
329
|
onValuesChange={(_, allValues) => onFinish(allValues)}
|
|
331
330
|
>
|
|
332
331
|
<div className={styles.details}>
|
|
333
|
-
<div className={styles.categoryName}>
|
|
334
|
-
{selectedCategory?.Data?.CategoryName}
|
|
335
|
-
</div>
|
|
336
332
|
<div className={styles.categoryDescription}>
|
|
337
333
|
{selectedCategory?.Data?.Description}
|
|
338
334
|
</div>
|
|
@@ -375,12 +371,13 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
375
371
|
<div className={styles.actionContainer}>
|
|
376
372
|
<span className={styles.note}>{t('components.categoryResponse.actions')}: </span>
|
|
377
373
|
|
|
378
|
-
{
|
|
379
|
-
|
|
380
|
-
{action.
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
374
|
+
<div className={styles.action}>
|
|
375
|
+
{question?.Actions?.map((action: any, index: number) => (
|
|
376
|
+
<a onClick={() => props.openAction!(action.Id)} key={action.Id}>
|
|
377
|
+
{action.Name}
|
|
378
|
+
</a>
|
|
379
|
+
))}
|
|
380
|
+
</div>
|
|
384
381
|
</div>
|
|
385
382
|
}
|
|
386
383
|
|
|
@@ -388,10 +385,7 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
388
385
|
<div className={styles.buttonContainer} onClick={() => setIsNoteVisible({ categoryIndex: currentKey, questionIndex: index })}>
|
|
389
386
|
<CommentOutlined className={styles.iconStyle} />
|
|
390
387
|
|
|
391
|
-
<span className={styles.buttonLabel}>{
|
|
392
|
-
? t('components.categoryResponse.editNote')
|
|
393
|
-
: t('components.categoryResponse.addNote')}
|
|
394
|
-
</span>
|
|
388
|
+
<span className={styles.buttonLabel}>{t('components.categoryResponse.note')}</span>
|
|
395
389
|
</div>
|
|
396
390
|
|
|
397
391
|
<div className={styles.buttonContainer} onClick={() => handleAddAction(question.QuestionId, question.Id)}>
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
.label {
|
|
52
52
|
padding-bottom: 15px;
|
|
53
53
|
font-weight: var(--font-weight-bold);
|
|
54
|
-
font-size: var(--font-size-body-
|
|
54
|
+
font-size: var(--font-size-body-4);
|
|
55
55
|
|
|
56
|
-
@media(
|
|
57
|
-
font-size: var(--font-size-body-
|
|
56
|
+
@media(max-width: 767px) {
|
|
57
|
+
font-size: var(--font-size-body-3);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -165,18 +165,22 @@
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.subject {
|
|
168
|
-
font-size: var(--font-size-body-
|
|
169
|
-
font-weight: var(--font-weight-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
@media(min-width: 768px) {
|
|
168
|
+
font-size: var(--font-size-body-4);
|
|
169
|
+
font-weight: var(--font-weight-medium);
|
|
170
|
+
|
|
171
|
+
@media(max-width: 767px) {
|
|
173
172
|
font-size: var(--font-size-body-3);
|
|
174
173
|
}
|
|
175
174
|
}
|
|
176
175
|
|
|
177
176
|
.description {
|
|
178
177
|
font-weight: var(--font-weight-light);
|
|
178
|
+
font-size: var(--font-size-body-3);
|
|
179
179
|
margin-bottom: 4px;
|
|
180
|
+
|
|
181
|
+
@media(max-width: 767px) {
|
|
182
|
+
font-size: var(--font-size-body-2);
|
|
183
|
+
}
|
|
180
184
|
}
|
|
181
185
|
|
|
182
186
|
.noteContainer {
|
|
@@ -191,10 +195,20 @@
|
|
|
191
195
|
white-space: pre-wrap;
|
|
192
196
|
max-height: 100px;
|
|
193
197
|
overflow: auto;
|
|
198
|
+
font-size: var(--font-size-body-3);
|
|
199
|
+
|
|
200
|
+
@media(max-width: 767px) {
|
|
201
|
+
font-size: var(--font-size-body-2);
|
|
202
|
+
}
|
|
194
203
|
}
|
|
195
204
|
|
|
196
205
|
.note {
|
|
197
206
|
font-weight: var(--font-weight-semibold);
|
|
207
|
+
font-size: var(--font-size-body-3);
|
|
208
|
+
|
|
209
|
+
@media(max-width: 767px) {
|
|
210
|
+
font-size: var(--font-size-body-2);
|
|
211
|
+
}
|
|
198
212
|
}
|
|
199
213
|
|
|
200
214
|
.form {
|
|
@@ -206,11 +220,13 @@
|
|
|
206
220
|
font-weight: var(--font-weight-light);
|
|
207
221
|
margin-bottom: 4px;
|
|
208
222
|
margin-top: 16px;
|
|
223
|
+
display: flex;
|
|
224
|
+
gap: 4px;
|
|
209
225
|
}
|
|
210
226
|
|
|
211
227
|
.action {
|
|
212
|
-
|
|
213
|
-
|
|
228
|
+
display: flex;
|
|
229
|
+
flex-direction: column;
|
|
214
230
|
}
|
|
215
231
|
|
|
216
232
|
.actionsButtonsContainer {
|
|
@@ -243,8 +259,16 @@
|
|
|
243
259
|
}
|
|
244
260
|
|
|
245
261
|
.uploadContainer {
|
|
246
|
-
margin-top:
|
|
262
|
+
margin-top: 5px;
|
|
247
263
|
cursor: pointer;
|
|
264
|
+
|
|
265
|
+
@media(min-width: 1350px) {
|
|
266
|
+
margin-top: 1px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@media(min-width: 768px) {
|
|
270
|
+
font-size: 4px;
|
|
271
|
+
}
|
|
248
272
|
}
|
|
249
273
|
|
|
250
274
|
.iconStyle {
|
|
@@ -321,10 +345,11 @@
|
|
|
321
345
|
}
|
|
322
346
|
|
|
323
347
|
.ant-upload-wrapper .ant-upload-list .ant-upload-list-item {
|
|
324
|
-
max-width:
|
|
348
|
+
max-width: 110px !important;
|
|
349
|
+
font-size: 12px !important;
|
|
325
350
|
|
|
326
351
|
@media(max-width: 767px) {
|
|
327
|
-
|
|
352
|
+
font-size: 10px !important;
|
|
328
353
|
}
|
|
329
354
|
}
|
|
330
355
|
|