@coorpacademy/components 11.36.2-alpha.9 → 11.36.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/es/atom/button-link/types.d.ts +3 -4
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/input-switch/index.d.ts +0 -1
- package/es/atom/input-switch/index.d.ts.map +1 -1
- package/es/atom/input-switch/index.js +5 -18
- package/es/atom/input-switch/index.js.map +1 -1
- package/es/atom/input-switch/style.css +0 -75
- package/es/atom/link/index.d.ts.map +1 -1
- package/es/atom/link/index.js +0 -3
- package/es/atom/link/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +0 -1
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +0 -1
- package/es/molecule/setup-section/index.d.ts +0 -1
- package/es/molecule/setup-section/index.d.ts.map +1 -1
- package/es/molecule/setup-sections/index.d.ts +0 -1
- package/es/organism/brand-learning-priorities/index.d.ts +0 -1
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +6 -2
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/mooc-header/index.d.ts +0 -1
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +52 -48
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +110 -122
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/index.js +49 -3
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/types.d.ts +9 -0
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/skill-edition/types.js.map +1 -1
- package/es/organism/user-preferences/index.d.ts +0 -1
- package/es/template/app-player/loading/index.d.ts +0 -1
- package/es/template/app-player/player/index.d.ts +0 -2
- package/es/template/app-player/player/slides/index.d.ts +0 -1
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +0 -1
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +0 -1
- package/es/template/app-review/index.d.ts +0 -1
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +0 -1
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +0 -1
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +0 -2
- package/es/template/common/dashboard/index.d.ts +0 -2
- package/es/template/common/search-page/index.d.ts +0 -1
- package/es/template/external-course/index.d.ts +0 -1
- package/es/variables/colors.css +6 -8
- package/lib/atom/button-link/types.d.ts +3 -4
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/input-switch/index.d.ts +0 -1
- package/lib/atom/input-switch/index.d.ts.map +1 -1
- package/lib/atom/input-switch/index.js +5 -18
- package/lib/atom/input-switch/index.js.map +1 -1
- package/lib/atom/input-switch/style.css +0 -75
- package/lib/atom/link/index.d.ts.map +1 -1
- package/lib/atom/link/index.js +0 -3
- package/lib/atom/link/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +0 -1
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +0 -1
- package/lib/molecule/setup-section/index.d.ts +0 -1
- package/lib/molecule/setup-section/index.d.ts.map +1 -1
- package/lib/molecule/setup-sections/index.d.ts +0 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +0 -1
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +6 -2
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/mooc-header/index.d.ts +0 -1
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +51 -47
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +110 -122
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.js +49 -3
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +9 -0
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.js.map +1 -1
- package/lib/organism/user-preferences/index.d.ts +0 -1
- package/lib/template/app-player/loading/index.d.ts +0 -1
- package/lib/template/app-player/player/index.d.ts +0 -2
- package/lib/template/app-player/player/slides/index.d.ts +0 -1
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +0 -1
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +0 -1
- package/lib/template/app-review/index.d.ts +0 -1
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +0 -1
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +0 -1
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +0 -2
- package/lib/template/common/dashboard/index.d.ts +0 -2
- package/lib/template/common/search-page/index.d.ts +0 -1
- package/lib/template/external-course/index.d.ts +0 -1
- package/lib/variables/colors.css +6 -8
- package/locales/bs/global.json +2 -2
- package/locales/cs/global.json +2 -2
- package/locales/de/global.json +2 -2
- package/locales/es/global.json +2 -2
- package/locales/et/global.json +2 -2
- package/locales/fi/global.json +2 -2
- package/locales/fr/global.json +2 -2
- package/locales/hr/global.json +2 -2
- package/locales/hu/global.json +2 -2
- package/locales/hy/global.json +2 -2
- package/locales/it/global.json +2 -2
- package/locales/ja/global.json +2 -2
- package/locales/ko/global.json +2 -2
- package/locales/nl/global.json +2 -2
- package/locales/pl/global.json +2 -2
- package/locales/pt/global.json +2 -2
- package/locales/ro/global.json +2 -2
- package/locales/ru/global.json +2 -2
- package/locales/sk/global.json +2 -2
- package/locales/sl/global.json +2 -2
- package/locales/sv/global.json +2 -2
- package/locales/tl/global.json +2 -2
- package/locales/tr/global.json +2 -2
- package/locales/uk/global.json +2 -2
- package/locales/vi/global.json +2 -2
- package/locales/zh/global.json +2 -2
- package/locales/zh_TW/global.json +2 -2
- package/package.json +7 -7
- package/es/atom/input-select/index.d.ts +0 -28
- package/es/atom/input-select/index.d.ts.map +0 -1
- package/es/atom/input-select/index.js +0 -109
- package/es/atom/input-select/index.js.map +0 -1
- package/es/atom/input-select/style.css +0 -169
- package/lib/atom/input-select/index.d.ts +0 -28
- package/lib/atom/input-select/index.d.ts.map +0 -1
- package/lib/atom/input-select/index.js +0 -116
- package/lib/atom/input-select/index.js.map +0 -1
- package/lib/atom/input-select/style.css +0 -169
|
@@ -19,11 +19,7 @@
|
|
|
19
19
|
@value warning_700 from colors;
|
|
20
20
|
@value red_200 from colors;
|
|
21
21
|
@value negative_600 from colors;
|
|
22
|
-
@
|
|
23
|
-
@value cm_grey_700 from colors;
|
|
24
|
-
@value cm_negative_300 from colors;
|
|
25
|
-
@value cm_grey_400 from colors;
|
|
26
|
-
@value cm_grey_500 from colors;
|
|
22
|
+
@vlue cm_negative_200 from colors;
|
|
27
23
|
|
|
28
24
|
.wrapper {
|
|
29
25
|
min-height: 60px;
|
|
@@ -271,50 +267,10 @@
|
|
|
271
267
|
align-items: center;
|
|
272
268
|
}
|
|
273
269
|
|
|
274
|
-
.
|
|
275
|
-
display: flex;
|
|
276
|
-
justify-content: center;
|
|
277
|
-
align-items: center;
|
|
278
|
-
width: 40px;
|
|
279
|
-
height: 40px;
|
|
280
|
-
border-radius: 22px;
|
|
281
|
-
overflow: hidden;
|
|
282
|
-
background-color: white;
|
|
283
|
-
padding: 0;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.userLinkAvatar:hover {
|
|
287
|
-
box-shadow: 0 0 0 2px brand;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.userAvatarOpen {
|
|
291
|
-
box-shadow: 0 0 0 1px white, 0 0 0 3px brand;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.userAvatarWrapper {
|
|
295
|
-
width: 40px;
|
|
296
|
-
height: 40px;
|
|
297
|
-
border-radius: 50%;
|
|
298
|
-
overflow: hidden;
|
|
299
|
-
display: flex;
|
|
300
|
-
align-items: center;
|
|
301
|
-
justify-content: center;
|
|
302
|
-
background: white;
|
|
303
|
-
transition: box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.userAvatarWrapper:not(.userAvatarOpen):hover {
|
|
307
|
-
box-shadow: 0 0 0 2px brand;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.avatar {
|
|
311
|
-
width: 100%;
|
|
312
|
-
height: 100%;
|
|
313
|
-
border-radius: 50%;
|
|
270
|
+
.userLink {
|
|
314
271
|
display: block;
|
|
315
|
-
|
|
272
|
+
height: 100%;
|
|
316
273
|
}
|
|
317
|
-
|
|
318
274
|
.notification {
|
|
319
275
|
width: 36px;
|
|
320
276
|
height: 36px;
|
|
@@ -348,6 +304,19 @@
|
|
|
348
304
|
display: flex;
|
|
349
305
|
}
|
|
350
306
|
|
|
307
|
+
.avatar {
|
|
308
|
+
width: 40px;
|
|
309
|
+
height: 40px;
|
|
310
|
+
border-radius: 20px;
|
|
311
|
+
overflow: hidden;
|
|
312
|
+
background-color: medium;
|
|
313
|
+
border: 1px solid light;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.avatar img {
|
|
317
|
+
width: 100%;
|
|
318
|
+
}
|
|
319
|
+
|
|
351
320
|
.notifications {
|
|
352
321
|
position: absolute;
|
|
353
322
|
top: -8px;
|
|
@@ -448,19 +417,38 @@
|
|
|
448
417
|
height: 100%;
|
|
449
418
|
display: flex;
|
|
450
419
|
align-items: center;
|
|
451
|
-
|
|
420
|
+
justify-content: center;
|
|
421
|
+
width: 40px;
|
|
422
|
+
padding-right: 8px;
|
|
452
423
|
}
|
|
453
424
|
|
|
454
|
-
.
|
|
425
|
+
.settingsToggle {
|
|
426
|
+
position: relative;
|
|
427
|
+
width: 20px;
|
|
428
|
+
height: 20px;
|
|
429
|
+
cursor: pointer;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.settingsToggle:hover {
|
|
433
|
+
color: black;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.settingsToggle::before {
|
|
455
437
|
position: absolute;
|
|
456
|
-
top:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
box-shadow: 0 4px 8px 0px rgba(0,0,0,0.04);
|
|
438
|
+
top: 10px;
|
|
439
|
+
left: 10px;
|
|
440
|
+
font-size: 20px;
|
|
441
|
+
}
|
|
461
442
|
|
|
443
|
+
.settingsWrapper {
|
|
444
|
+
position: absolute;
|
|
445
|
+
top: 75px;
|
|
446
|
+
right: 0;
|
|
447
|
+
width: 300px;
|
|
448
|
+
border-radius: 3px;
|
|
449
|
+
border: 1px solid light;
|
|
462
450
|
background: white;
|
|
463
|
-
|
|
451
|
+
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.02);
|
|
464
452
|
}
|
|
465
453
|
|
|
466
454
|
.settingsWrapperHidden {
|
|
@@ -468,47 +456,73 @@
|
|
|
468
456
|
display: none;
|
|
469
457
|
}
|
|
470
458
|
|
|
459
|
+
.settingsWrapper::after,
|
|
460
|
+
.settingsWrapper::before {
|
|
461
|
+
bottom: 100%;
|
|
462
|
+
right: 20px;
|
|
463
|
+
border: solid transparent;
|
|
464
|
+
content: ' ';
|
|
465
|
+
height: 0;
|
|
466
|
+
width: 0;
|
|
467
|
+
position: absolute;
|
|
468
|
+
pointer-events: none;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.settingsWrapper::after {
|
|
472
|
+
border-color: rgba(255, 255, 255, 0);
|
|
473
|
+
border-bottom-color: white;
|
|
474
|
+
border-width: 10px;
|
|
475
|
+
margin-right: -10px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.settingsWrapper::before {
|
|
479
|
+
border-color: rgba(220, 224, 224, 0);
|
|
480
|
+
border-bottom-color: light;
|
|
481
|
+
border-width: 11px;
|
|
482
|
+
margin-right: -11px;
|
|
483
|
+
}
|
|
484
|
+
|
|
471
485
|
.settingsGroup {
|
|
472
|
-
padding:
|
|
473
|
-
display: flex;
|
|
474
|
-
flex-direction: column;
|
|
475
|
-
gap: 12px;
|
|
486
|
+
padding: 20px;
|
|
476
487
|
}
|
|
477
488
|
|
|
478
489
|
.setting {
|
|
479
490
|
height: 40px;
|
|
480
491
|
display: flex;
|
|
481
492
|
align-items: center;
|
|
482
|
-
|
|
483
|
-
gap: 8px;
|
|
484
|
-
cursor: pointer;
|
|
485
|
-
border-radius: 8px;
|
|
486
|
-
padding: 0px;
|
|
487
|
-
margin: 0px;
|
|
488
|
-
color: cm_grey_700;
|
|
489
|
-
padding-left: 16px;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.setting:hover:not(.setting:last-child) {
|
|
493
|
-
background-color: cm_grey_100;
|
|
493
|
+
gap: 12px;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
.setting:last-child {
|
|
497
|
-
|
|
498
|
-
|
|
497
|
+
font-family: 'Gilroy';
|
|
498
|
+
font-size: 13px;
|
|
499
|
+
font-weight: 600;
|
|
500
|
+
color: medium;
|
|
501
|
+
height: 40px;
|
|
499
502
|
border-top: 1px solid light;
|
|
503
|
+
display: flex;
|
|
504
|
+
justify-content: center;
|
|
505
|
+
align-items: center;
|
|
506
|
+
margin-top: 10px;
|
|
507
|
+
padding: 0 30px;
|
|
508
|
+
cursor: pointer;
|
|
500
509
|
}
|
|
501
510
|
|
|
502
|
-
.setting:last-child
|
|
503
|
-
color:
|
|
504
|
-
width: 100%;
|
|
505
|
-
height: 40px;
|
|
506
|
-
border-radius: 8px;
|
|
507
|
-
padding: 0px 12px;
|
|
511
|
+
.setting:last-child:hover {
|
|
512
|
+
color: dark;
|
|
508
513
|
}
|
|
509
514
|
|
|
510
|
-
.
|
|
511
|
-
|
|
515
|
+
.languageSelect {
|
|
516
|
+
width: 98%;
|
|
517
|
+
height: 30px;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.selectBoxes {
|
|
521
|
+
flex-direction: column;
|
|
522
|
+
height: 60px;
|
|
523
|
+
align-items: baseline;
|
|
524
|
+
margin-top: 15px;
|
|
525
|
+
margin-bottom: 10px;
|
|
512
526
|
}
|
|
513
527
|
|
|
514
528
|
.setting .label {
|
|
@@ -522,46 +536,12 @@
|
|
|
522
536
|
margin-right: 10px;
|
|
523
537
|
}
|
|
524
538
|
|
|
525
|
-
.
|
|
539
|
+
.setting .link {
|
|
526
540
|
font-family: 'Gilroy';
|
|
527
|
-
font-size:
|
|
541
|
+
font-size: 13px;
|
|
528
542
|
font-weight: 600;
|
|
543
|
+
color: dark;
|
|
529
544
|
text-decoration: none;
|
|
530
|
-
line-height: 20px;
|
|
531
|
-
color: cm_grey_700;
|
|
532
|
-
display: flex;
|
|
533
|
-
align-items: center;
|
|
534
|
-
gap: 8px;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.disabled {
|
|
538
|
-
opacity: 0.5;
|
|
539
|
-
pointer-events: none;
|
|
540
|
-
cursor: default;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
.setting.disabled :hover{
|
|
544
|
-
background-color: white;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
.linkIcon {
|
|
548
|
-
width: 14px;
|
|
549
|
-
height: 14px;
|
|
550
|
-
color: inherit;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
.setting:last-child .linkIcon {
|
|
554
|
-
color: cm_negative_200;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
.selectBoxes {
|
|
558
|
-
flex-direction: column;
|
|
559
|
-
height: auto;
|
|
560
|
-
align-items: baseline;
|
|
561
|
-
margin-top: 15px;
|
|
562
|
-
margin-bottom: 10px;
|
|
563
|
-
width: 100%;
|
|
564
|
-
padding-left: 0;
|
|
565
545
|
}
|
|
566
546
|
|
|
567
547
|
.homeIcon {
|
|
@@ -807,6 +787,10 @@
|
|
|
807
787
|
flex-direction: column;
|
|
808
788
|
}
|
|
809
789
|
|
|
790
|
+
.links .link {
|
|
791
|
+
margin-bottom: 10px;
|
|
792
|
+
}
|
|
793
|
+
|
|
810
794
|
.user {
|
|
811
795
|
height: auto;
|
|
812
796
|
padding: 10px 0 20px;
|
|
@@ -829,6 +813,14 @@
|
|
|
829
813
|
padding-bottom: 40px;
|
|
830
814
|
}
|
|
831
815
|
|
|
816
|
+
.settingsToggle {
|
|
817
|
+
display: none;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.settings div label {
|
|
821
|
+
margin-right: 0;
|
|
822
|
+
}
|
|
823
|
+
|
|
832
824
|
.settingsWrapper {
|
|
833
825
|
display: block;
|
|
834
826
|
position: relative;
|
|
@@ -863,8 +855,4 @@
|
|
|
863
855
|
.desktopOnlyMoreMenu {
|
|
864
856
|
display: none;
|
|
865
857
|
}
|
|
866
|
-
|
|
867
|
-
.userAvatarWrapper {
|
|
868
|
-
display: none;
|
|
869
|
-
}
|
|
870
858
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/index.tsx"],"names":[],"mappings":";AAOA,OAAkB,EAEhB,qBAAqB,EAMtB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/index.tsx"],"names":[],"mappings":";AAOA,OAAkB,EAEhB,qBAAqB,EAMtB,MAAM,SAAS,CAAC;AA8XjB,QAAA,MAAM,YAAY;YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUjD,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -272,7 +272,8 @@ const buildContentItem = ({
|
|
|
272
272
|
label,
|
|
273
273
|
iconName
|
|
274
274
|
},
|
|
275
|
-
checkbox
|
|
275
|
+
checkbox,
|
|
276
|
+
deleteButton
|
|
276
277
|
}) => ({
|
|
277
278
|
id: ref,
|
|
278
279
|
title,
|
|
@@ -290,7 +291,26 @@ const buildContentItem = ({
|
|
|
290
291
|
position: 'left'
|
|
291
292
|
}
|
|
292
293
|
}],
|
|
293
|
-
checkbox
|
|
294
|
+
checkbox,
|
|
295
|
+
secondButtonLink: {
|
|
296
|
+
...deleteButton,
|
|
297
|
+
'data-name': `button-${deleteButton?.label}`,
|
|
298
|
+
'aria-label': 'Delete',
|
|
299
|
+
type: 'primary',
|
|
300
|
+
customStyle: {
|
|
301
|
+
width: 'fit-content',
|
|
302
|
+
backgroundColor: 'transparent'
|
|
303
|
+
},
|
|
304
|
+
hoverBackgroundColor: _colors.COLORS.cm_grey_100,
|
|
305
|
+
icon: {
|
|
306
|
+
position: 'left',
|
|
307
|
+
faIcon: {
|
|
308
|
+
name: 'trash',
|
|
309
|
+
color: _colors.COLORS.neutral_500,
|
|
310
|
+
size: 16
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
294
314
|
});
|
|
295
315
|
const Content = ({
|
|
296
316
|
title,
|
|
@@ -302,7 +322,9 @@ const Content = ({
|
|
|
302
322
|
items,
|
|
303
323
|
search,
|
|
304
324
|
emptyResult
|
|
305
|
-
}
|
|
325
|
+
},
|
|
326
|
+
actionButtons,
|
|
327
|
+
checkboxWithTitle: checkboxWithTitleProps
|
|
306
328
|
}) => {
|
|
307
329
|
const buttonProps = buildButtonProps(button);
|
|
308
330
|
const titleProps = {
|
|
@@ -341,6 +363,30 @@ const Content = ({
|
|
|
341
363
|
search: {
|
|
342
364
|
...search,
|
|
343
365
|
theme: 'coorpmanager'
|
|
366
|
+
},
|
|
367
|
+
actionButtons: (0, _map2.default)(actionButton => ({
|
|
368
|
+
...actionButton,
|
|
369
|
+
customStyle: {
|
|
370
|
+
fontWeight: '600',
|
|
371
|
+
borderRadius: '12px',
|
|
372
|
+
width: 'auto'
|
|
373
|
+
}
|
|
374
|
+
}), actionButtons),
|
|
375
|
+
checkboxWithTitle: {
|
|
376
|
+
...checkboxWithTitleProps,
|
|
377
|
+
name: checkboxWithTitleProps?.title,
|
|
378
|
+
'aria-label': checkboxWithTitleProps?.title,
|
|
379
|
+
'data-name': checkboxWithTitleProps?.title,
|
|
380
|
+
customStyle: {
|
|
381
|
+
fontWeight: 600,
|
|
382
|
+
color: _colors.COLORS.neutral_500,
|
|
383
|
+
fontSize: '16px'
|
|
384
|
+
},
|
|
385
|
+
icon: {
|
|
386
|
+
iconName: 'minus',
|
|
387
|
+
iconColor: 'white',
|
|
388
|
+
preset: 's'
|
|
389
|
+
}
|
|
344
390
|
}
|
|
345
391
|
};
|
|
346
392
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","_colors","_types","_style","e","__esModule","default","buildFormField","field","type","theme","size","buildTitleAndInputField","title","subtitle","required","dataName","childType","titleSize","subtitleSize","undefined","SkillInformations","skillInformations","form","iconEditor","select","inputTextArea","inputText","iconEditorProps","iconPreview","buttonLink","label","ariaLabel","icon","position","faIcon","name","onClick","customStyle","borderRadius","padding","fontWeight","fields","options","onChange","formProps","createElement","className","style","skillInformationsContainer","uncappedMap","_map2","convert","cap","buildButtonProps","button","hoverBackgroundColor","COLORS","primary_100","hoverColor","cm_primary_blue","color","width","backgroundColor","cm_blue_50","paddingRight","paddingleft","buildTranslationItems","itemTitle","onEditClick","onDeleteClick","index","id","cm_grey_100","cm_grey_500","secondButtonLink","Translations","items","localesOptions","emptyResult","buttonProps","translationMenuAction","menu","buttons","optionLabel","ref","optionRef","optionOnClick","disabled","_includes2","_keys2","menuWrapper","maxHeight","translationProps","content","_isEmpty2","buttonMenuAction","buildContentItem","image","tags","iconName","checkbox","preset","Content","list","listTitle","search","titleProps","listProps","iconColor","white","fontSize","contentContainer","SkillEdition","props","translations","container","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport {includes, isEmpty, keys, map} from 'lodash/fp';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {\n TranslationPropsType,\n SkillEditionPropsType,\n SkillInformationsProps,\n InputTextareaProps,\n InputTextProps,\n ContentPropsType,\n ContentListItemType\n} from './types';\nimport style from './style.css';\n\nconst buildFormField = (field: InputTextareaProps | InputTextProps, type: 'text' | 'textarea') => {\n return {\n ...field,\n type,\n theme: 'coorpmanager',\n size: 'large'\n };\n};\n\nconst buildTitleAndInputField = ({\n title,\n subtitle,\n required = false,\n dataName,\n childType\n}: {\n title: string;\n subtitle?: string;\n required?: boolean;\n dataName?: string;\n childType?: string;\n}) => {\n return {\n title: {\n type: 'form-group',\n title,\n subtitle,\n titleSize: 'small-and-light',\n subtitleSize: subtitle ? 'standard-without-margin' : undefined,\n required,\n 'data-name': dataName\n },\n childType,\n type: 'titleAndInput'\n };\n};\n\nconst SkillInformations = (skillInformations: SkillInformationsProps) => {\n const {form, iconEditor} = skillInformations;\n const {select, inputTextArea, inputText} = form;\n\n const iconEditorProps = {\n title: {\n type: 'form-group',\n title: iconEditor.title,\n titleSize: 'small-and-light',\n required: true\n },\n field: {\n iconPreview: iconEditor.iconPreview,\n inputText: iconEditor.inputText,\n buttonLink: iconEditor.buttonLink\n ? {\n type: 'secondary',\n label: iconEditor.buttonLink.label,\n ariaLabel: iconEditor.buttonLink.ariaLabel,\n dataName: 'open-icon-modal-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'arrows-rotate',\n size: 16\n }\n },\n onClick: iconEditor.buttonLink.onClick,\n customStyle: {\n borderRadius: '12px',\n padding: '0 8px 0 16px',\n fontWeight: '500'\n }\n }\n : undefined,\n size: 'large'\n },\n childType: 'iconEditor'\n };\n\n const fields = [\n {\n ...buildTitleAndInputField({\n title: select.title,\n subtitle: select.subtitle,\n required: true,\n dataName: select['data-name'],\n childType: 'select'\n }),\n field: {\n options: select.field.options,\n 'aria-label': select.field['aria-label'],\n onChange: select.field.onChange,\n theme: 'skillDetail',\n size: 'large'\n }\n },\n {\n ...buildTitleAndInputField({\n title: inputText.title,\n required: true,\n childType: 'inputText'\n }),\n field: buildFormField(inputText.field, 'text')\n },\n {\n ...buildTitleAndInputField({\n title: inputTextArea.title,\n childType: 'inputTextArea'\n }),\n field: buildFormField(inputTextArea.field, 'textarea')\n }\n ];\n\n const formProps = {\n title: form.title,\n subtitle: form.subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium',\n fields\n };\n\n return (\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...formProps} />\n <div className={style.iconEditor}>\n <TitleAndInput {...iconEditorProps} />\n </div>\n </div>\n );\n};\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst buildButtonProps = (button: TranslationPropsType['button']) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n paddingRight: '8px',\n paddingleft: '16px',\n fontWeight: 600\n }\n});\n\nconst buildTranslationItems = (\n {\n title: itemTitle,\n onEditClick,\n onDeleteClick\n }: {title: string; onEditClick: () => void; onDeleteClick: () => void},\n index: number\n) => ({\n id: index,\n title: itemTitle,\n buttonLink: {\n 'aria-label': 'Edit',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'edit',\n color: COLORS.cm_grey_500,\n size: 16\n }\n },\n onClick: onEditClick\n },\n secondButtonLink: {\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.cm_grey_500,\n size: 16\n }\n },\n onClick: onDeleteClick\n }\n});\n\nconst Translations = ({\n title,\n subtitle,\n items,\n button,\n localesOptions,\n emptyResult\n}: TranslationPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const translationMenuAction = {\n button: buttonProps,\n menu: {\n buttons: map(\n ({\n label: optionLabel,\n ref: optionRef,\n onClick: optionOnClick\n }: {\n label: string;\n ref: string;\n onClick: () => void;\n }) => ({\n type: 'defaultLeft',\n onClick: optionOnClick,\n customStyle: {width: '238px'},\n label: optionLabel,\n 'data-name': optionLabel,\n // disable if current locale option is already in items list\n disabled: includes(optionRef, keys(items))\n }),\n localesOptions\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '252px'}\n }\n };\n\n const translationProps = {\n title: {\n title,\n type: 'form-group',\n subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium'\n },\n 'aria-label': title,\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: translationMenuAction}}),\n items: uncappedMap(buildTranslationItems, items),\n type: 'list'\n },\n buttonMenuAction: translationMenuAction\n };\n\n return <ListItems {...translationProps} />;\n};\n\nconst buildContentItem = ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox\n}: ContentListItemType) => ({\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox\n});\n\nconst Content = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, checkbox, items, search, emptyResult}\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: buttonProps,\n required: true\n };\n\n const listProps = {\n ...(!isEmpty(checkbox) && {\n ...checkbox,\n icon: {iconName: 'minus', iconColor: COLORS.white, preset: 's'},\n customStyle: {fontWeight: 600, color: COLORS.cm_grey_500, fontSize: '16px'}\n }),\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem, items),\n type: 'list'\n },\n search: {\n ...search,\n theme: 'coorpmanager'\n }\n };\n\n return (\n <div className={style.contentContainer}>\n <Title {...titleProps} />\n <ListItems {...listProps} />\n </div>\n );\n};\n\nconst SkillEdition = (props: SkillEditionPropsType) => {\n const {skillInformations, translations, content} = props;\n\n return (\n <div className={style.container}>\n <SkillInformations {...skillInformations} />\n <Translations {...translations} />\n <Content {...content} />\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAP,sBAAA,CAAAC,OAAA;AAS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AClCzH,MAAA,CAAAY,OAAA,CAAAwC,aAAA,CAACyD,OAAO,EAAKT,OAAU,CACpB,CAAC;AAEV,CAAC;AAEDmB,YAAY,CAACI,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAApH,OAAA,GAEpB2G,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","_colors","_types","_style","e","__esModule","default","buildFormField","field","type","theme","size","buildTitleAndInputField","title","subtitle","required","dataName","childType","titleSize","subtitleSize","undefined","SkillInformations","skillInformations","form","iconEditor","select","inputTextArea","inputText","iconEditorProps","iconPreview","buttonLink","label","ariaLabel","icon","position","faIcon","name","onClick","customStyle","borderRadius","padding","fontWeight","fields","options","onChange","formProps","createElement","className","style","skillInformationsContainer","uncappedMap","_map2","convert","cap","buildButtonProps","button","hoverBackgroundColor","COLORS","primary_100","hoverColor","cm_primary_blue","color","width","backgroundColor","cm_blue_50","paddingRight","paddingleft","buildTranslationItems","itemTitle","onEditClick","onDeleteClick","index","id","cm_grey_100","cm_grey_500","secondButtonLink","Translations","items","localesOptions","emptyResult","buttonProps","translationMenuAction","menu","buttons","optionLabel","ref","optionRef","optionOnClick","disabled","_includes2","_keys2","menuWrapper","maxHeight","translationProps","content","_isEmpty2","buttonMenuAction","buildContentItem","image","tags","iconName","checkbox","deleteButton","preset","neutral_500","Content","list","listTitle","search","actionButtons","checkboxWithTitle","checkboxWithTitleProps","titleProps","listProps","iconColor","white","fontSize","actionButton","contentContainer","SkillEdition","props","translations","container","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport {includes, isEmpty, keys, map} from 'lodash/fp';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {\n TranslationPropsType,\n SkillEditionPropsType,\n SkillInformationsProps,\n InputTextareaProps,\n InputTextProps,\n ContentPropsType,\n ContentListItemType\n} from './types';\nimport style from './style.css';\n\nconst buildFormField = (field: InputTextareaProps | InputTextProps, type: 'text' | 'textarea') => {\n return {\n ...field,\n type,\n theme: 'coorpmanager',\n size: 'large'\n };\n};\n\nconst buildTitleAndInputField = ({\n title,\n subtitle,\n required = false,\n dataName,\n childType\n}: {\n title: string;\n subtitle?: string;\n required?: boolean;\n dataName?: string;\n childType?: string;\n}) => {\n return {\n title: {\n type: 'form-group',\n title,\n subtitle,\n titleSize: 'small-and-light',\n subtitleSize: subtitle ? 'standard-without-margin' : undefined,\n required,\n 'data-name': dataName\n },\n childType,\n type: 'titleAndInput'\n };\n};\n\nconst SkillInformations = (skillInformations: SkillInformationsProps) => {\n const {form, iconEditor} = skillInformations;\n const {select, inputTextArea, inputText} = form;\n\n const iconEditorProps = {\n title: {\n type: 'form-group',\n title: iconEditor.title,\n titleSize: 'small-and-light',\n required: true\n },\n field: {\n iconPreview: iconEditor.iconPreview,\n inputText: iconEditor.inputText,\n buttonLink: iconEditor.buttonLink\n ? {\n type: 'secondary',\n label: iconEditor.buttonLink.label,\n ariaLabel: iconEditor.buttonLink.ariaLabel,\n dataName: 'open-icon-modal-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'arrows-rotate',\n size: 16\n }\n },\n onClick: iconEditor.buttonLink.onClick,\n customStyle: {\n borderRadius: '12px',\n padding: '0 8px 0 16px',\n fontWeight: '500'\n }\n }\n : undefined,\n size: 'large'\n },\n childType: 'iconEditor'\n };\n\n const fields = [\n {\n ...buildTitleAndInputField({\n title: select.title,\n subtitle: select.subtitle,\n required: true,\n dataName: select['data-name'],\n childType: 'select'\n }),\n field: {\n options: select.field.options,\n 'aria-label': select.field['aria-label'],\n onChange: select.field.onChange,\n theme: 'skillDetail',\n size: 'large'\n }\n },\n {\n ...buildTitleAndInputField({\n title: inputText.title,\n required: true,\n childType: 'inputText'\n }),\n field: buildFormField(inputText.field, 'text')\n },\n {\n ...buildTitleAndInputField({\n title: inputTextArea.title,\n childType: 'inputTextArea'\n }),\n field: buildFormField(inputTextArea.field, 'textarea')\n }\n ];\n\n const formProps = {\n title: form.title,\n subtitle: form.subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium',\n fields\n };\n\n return (\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...formProps} />\n <div className={style.iconEditor}>\n <TitleAndInput {...iconEditorProps} />\n </div>\n </div>\n );\n};\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst buildButtonProps = (button: TranslationPropsType['button']) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n paddingRight: '8px',\n paddingleft: '16px',\n fontWeight: 600\n }\n});\n\nconst buildTranslationItems = (\n {\n title: itemTitle,\n onEditClick,\n onDeleteClick\n }: {title: string; onEditClick: () => void; onDeleteClick: () => void},\n index: number\n) => ({\n id: index,\n title: itemTitle,\n buttonLink: {\n 'aria-label': 'Edit',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'edit',\n color: COLORS.cm_grey_500,\n size: 16\n }\n },\n onClick: onEditClick\n },\n secondButtonLink: {\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.cm_grey_500,\n size: 16\n }\n },\n onClick: onDeleteClick\n }\n});\n\nconst Translations = ({\n title,\n subtitle,\n items,\n button,\n localesOptions,\n emptyResult\n}: TranslationPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const translationMenuAction = {\n button: buttonProps,\n menu: {\n buttons: map(\n ({\n label: optionLabel,\n ref: optionRef,\n onClick: optionOnClick\n }: {\n label: string;\n ref: string;\n onClick: () => void;\n }) => ({\n type: 'defaultLeft',\n onClick: optionOnClick,\n customStyle: {width: '238px'},\n label: optionLabel,\n 'data-name': optionLabel,\n // disable if current locale option is already in items list\n disabled: includes(optionRef, keys(items))\n }),\n localesOptions\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '252px'}\n }\n };\n\n const translationProps = {\n title: {\n title,\n type: 'form-group',\n subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium'\n },\n 'aria-label': title,\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: translationMenuAction}}),\n items: uncappedMap(buildTranslationItems, items),\n type: 'list'\n },\n buttonMenuAction: translationMenuAction\n };\n\n return <ListItems {...translationProps} />;\n};\n\nconst buildContentItem = ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton\n}: ContentListItemType) => ({\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox,\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n }\n }\n});\n\nconst Content = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, checkbox, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: buttonProps,\n required: true\n };\n\n const listProps = {\n ...(!isEmpty(checkbox) && {\n ...checkbox,\n icon: {iconName: 'minus', iconColor: COLORS.white, preset: 's'},\n customStyle: {fontWeight: 600, color: COLORS.cm_grey_500, fontSize: '16px'}\n }),\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem, items),\n type: 'list'\n },\n search: {\n ...search,\n theme: 'coorpmanager'\n },\n actionButtons: map(\n actionButton => ({\n ...actionButton,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n width: 'auto'\n }\n }),\n actionButtons\n ),\n checkboxWithTitle: {\n ...checkboxWithTitleProps,\n name: checkboxWithTitleProps?.title,\n 'aria-label': checkboxWithTitleProps?.title,\n 'data-name': checkboxWithTitleProps?.title,\n customStyle: {fontWeight: 600, color: COLORS.neutral_500, fontSize: '16px'},\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n }\n };\n\n return (\n <div className={style.contentContainer}>\n <Title {...titleProps} />\n <ListItems {...listProps} />\n </div>\n );\n};\n\nconst SkillEdition = (props: SkillEditionPropsType) => {\n const {skillInformations, translations, content} = props;\n\n return (\n <div className={style.container}>\n <SkillInformations {...skillInformations} />\n <Translations {...translations} />\n <Content {...content} />\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,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,aAAA,CAAC8B,YAAY,EAAK6C,YAAe,CAAC,eAClC/H,MAAA,CAAAY,OAAA,CAAAwC,aAAA,CAAC2D,OAAO,EAAKX,OAAU,CACpB,CAAC;AAEV,CAAC;AAEDyB,YAAY,CAACI,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAA1H,OAAA,GAEpBiH,YAAY","ignoreList":[]}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import { IconPreviewProps } from '../../molecule/icon-preview/types';
|
|
3
|
+
import { ButtonLinkProps } from '../../atom/button-link/types';
|
|
3
4
|
declare const SkillEditionPropTypes: {
|
|
4
5
|
skillInformations: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
5
6
|
form: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
@@ -244,6 +245,12 @@ export declare type ContentListItemType = {
|
|
|
244
245
|
checked: boolean;
|
|
245
246
|
onChange: (value: boolean) => void;
|
|
246
247
|
};
|
|
248
|
+
deleteButton?: ButtonLinkProps;
|
|
249
|
+
};
|
|
250
|
+
export declare type CheckboxWithTitleProps = {
|
|
251
|
+
title?: string;
|
|
252
|
+
checked?: boolean;
|
|
253
|
+
onChange?: (value: boolean) => void;
|
|
247
254
|
};
|
|
248
255
|
export declare type ContentPropsType = {
|
|
249
256
|
title: string;
|
|
@@ -270,6 +277,8 @@ export declare type ContentPropsType = {
|
|
|
270
277
|
onChange: (value: boolean) => void;
|
|
271
278
|
};
|
|
272
279
|
};
|
|
280
|
+
actionButtons?: ButtonLinkProps[];
|
|
281
|
+
checkboxWithTitle?: CheckboxWithTitleProps;
|
|
273
282
|
};
|
|
274
283
|
export declare type SkillEditionPropsType = {
|
|
275
284
|
skillInformations: SkillInformationsProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAsG7D,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1B,CAAC;AAEF,eAAe,qBAAqB,CAAC;AAErC,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,gBAAgB,CAAC;KACzB,CAAC;IACF,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAA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ACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_inputText","_inputTextarea","_iconPreview","_select","e","__esModule","default","FormPropTypes","title","PropTypes","string","subtitle","select","shape","field","options","arrayOf","SelectOptionPropTypes","onChange","func","inputText","InputText","propTypes","inputTextArea","InputTextarea","IconEditorPropTypes","isRequired","iconPreview","IconPreview","buttonLink","label","ariaLabel","onClick","translationPropTypes","localesOptions","ref","items","objectOf","onEditClick","onDeleteClick","button","disabled","bool","contentPropTypes","list","image","tags","iconName","checkbox","checked","search","value","placeholder","emptyResult","description","SkillEditionPropTypes","skillInformations","form","iconEditor","translations","content","_default","exports","themeStyle","setup","coorpmanager","cockpit"],"sources":["../../../src/organism/skill-edition/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport InputText from '../../atom/input-text';\nimport InputTextarea from '../../atom/input-textarea';\nimport IconPreview from '../../molecule/icon-preview';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport {IconPreviewProps} from '../../molecule/icon-preview/types';\n\nconst FormPropTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n select: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n 'data-name': PropTypes.string,\n field: PropTypes.shape({\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n 'aria-label': PropTypes.string,\n onChange: PropTypes.func\n })\n }),\n inputText: PropTypes.shape({\n title: PropTypes.string,\n field: PropTypes.shape(InputText.propTypes)\n }),\n inputTextArea: PropTypes.shape({\n title: PropTypes.string,\n field: PropTypes.shape(InputTextarea.propTypes)\n })\n};\n\nconst IconEditorPropTypes = {\n title: PropTypes.string.isRequired,\n iconPreview: PropTypes.shape(IconPreview.propTypes).isRequired,\n inputText: PropTypes.shape(InputText.propTypes).isRequired,\n buttonLink: PropTypes.shape({\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n 'data-name': PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nconst translationPropTypes = PropTypes.shape({\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n localesOptions: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n ref: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n })\n ).isRequired,\n items: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onDeleteClick: PropTypes.func.isRequired\n }).isRequired\n ),\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool\n }).isRequired\n});\n\nconst contentPropTypes = PropTypes.shape({\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n }).isRequired,\n list: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n image: PropTypes.string.isRequired,\n tags: PropTypes.shape({\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired\n }).isRequired,\n checkbox: PropTypes.shape({\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired\n }).isRequired\n ),\n search: PropTypes.shape({\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired,\n emptyResult: PropTypes.shape({\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired\n }),\n checkbox: PropTypes.shape({\n title: PropTypes.string.isRequired,\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n })\n }).isRequired\n});\n\nconst SkillEditionPropTypes = {\n skillInformations: PropTypes.shape({\n form: PropTypes.shape(FormPropTypes).isRequired,\n iconEditor: PropTypes.shape(IconEditorPropTypes).isRequired\n }).isRequired,\n translations: translationPropTypes.isRequired,\n content: contentPropTypes.isRequired\n};\n\nexport default SkillEditionPropTypes;\n\nexport type SelectOption = {\n name: string;\n value?: string | number;\n selected?: boolean;\n validOption?: boolean;\n};\n\nexport type FieldSelectProps = {\n options: SelectOption[];\n 'aria-label': string;\n onChange: () => void;\n};\n\ntype FormProps = {\n title: string;\n subtitle: string;\n select: {\n title: string;\n subtitle: string;\n 'data-name': string;\n field: FieldSelectProps;\n };\n inputText: {\n title: string;\n field: InputTextProps;\n };\n inputTextArea: {\n title: string;\n field: InputTextareaProps;\n };\n};\n\ntype IconEditorProps = {\n title: string;\n iconPreview: IconPreviewProps;\n inputText: InputTextProps;\n buttonLink?: {label: string; ariaLabel: string; onClick: () => void};\n};\n\nexport type SkillInformationsProps = {\n form: FormProps;\n iconEditor: IconEditorProps;\n};\n\nexport const themeStyle = {\n setup: 'setup',\n coorpmanager: 'coorpmanager',\n cockpit: 'cockpit',\n default: 'defaultStyle'\n};\n\nexport type TranslationPropsType = {\n title: string;\n subtitle: string;\n localesOptions: {\n label: string;\n ref: string;\n onClick: () => void;\n }[];\n items?: {\n [ref: string]: {\n title: string;\n onEditClick: () => void;\n onDeleteClick: () => void;\n };\n };\n button: {\n label: string;\n onClick: () => void;\n disabled?: boolean;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n};\n\nexport type ContentListItemType = {\n ref: string;\n title: string;\n subtitle: string;\n image: string;\n tags: {\n label: string;\n iconName: string;\n };\n checkbox: {\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n};\n\nexport type ContentPropsType = {\n title: string;\n subtitle: string;\n button: {\n label: string;\n onClick: () => void;\n };\n list: {\n title?: string;\n items?: ContentListItemType[];\n search: {\n value: string;\n placeholder: string;\n onChange: (value: string) => void;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n checkbox?: {\n title: string;\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n };\n};\n\nexport type SkillEditionPropsType = {\n skillInformations: SkillInformationsProps;\n translations: TranslationPropsType;\n content: ContentPropsType;\n};\n\nexport type InputTextProps = {\n autoFocus?: boolean;\n title?: string;\n placeholder?: string;\n defaultValue?: string;\n theme?: keyof typeof themeStyle;\n disabled?: boolean;\n value?: string;\n hint?: string;\n error?: string;\n onChange?: (value: string) => void;\n description?: string;\n modified?: boolean;\n type?: string;\n valid?: boolean;\n 'aria-label'?: string;\n 'data-name'?: string;\n inputColor?: boolean;\n};\n\nexport type InputTextareaProps = {\n placeholder?: string;\n title?: string;\n name?: string;\n theme?: keyof typeof themeStyle;\n disabled?: boolean;\n value?: string;\n hint?: string;\n error?: string;\n onChange?: (value: string) => void;\n description?: string;\n modified?: boolean;\n valid?: boolean;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAwD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGxD,MAAMG,aAAa,GAAG;EACpBC,KAAK,EAAEC,kBAAS,CAACC,MAAM;EACvBC,QAAQ,EAAEF,kBAAS,CAACC,MAAM;EAC1BE,MAAM,EAAEH,kBAAS,CAACI,KAAK,CAAC;IACtBL,KAAK,EAAEC,kBAAS,CAACC,MAAM;IACvBC,QAAQ,EAAEF,kBAAS,CAACC,MAAM;IAC1B,WAAW,EAAED,kBAAS,CAACC,MAAM;IAC7BI,KAAK,EAAEL,k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AAEF,MAAM6B,qBAAqB,GAAG;EAC5BC,iBAAiB,EAAE/C,kBAAS,CAACI,KAAK,CAAC;IACjC4C,IAAI,EAAEhD,kBAAS,CAACI,KAAK,CAACN,aAAa,CAAC,CAACmB,UAAU;IAC/CgC,UAAU,EAAEjD,kBAAS,CAACI,KAAK,CAACY,mBAAmB,CAAC,CAACC;EACnD,CAAC,CAAC,CAACA,UAAU;EACbiC,YAAY,EAAE1B,oBAAoB,CAACP,UAAU;EAC7CkC,OAAO,EAAEjB,gBAAgB,CAACjB;AAC5B,CAAC;AAAC,IAAAmC,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAEaiD,qBAAqB;AA8C7B,MAAMQ,UAAU,GAAAD,OAAA,CAAAC,UAAA,GAAG;EACxBC,KAAK,EAAE,OAAO;EACdC,YAAY,EAAE,cAAc;EAC5BC,OAAO,EAAE,SAAS;EAClB5D,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_inputText","_inputTextarea","_iconPreview","_select","e","__esModule","default","FormPropTypes","title","PropTypes","string","subtitle","select","shape","field","options","arrayOf","SelectOptionPropTypes","onChange","func","inputText","InputText","propTypes","inputTextArea","InputTextarea","IconEditorPropTypes","isRequired","iconPreview","IconPreview","buttonLink","label","ariaLabel","onClick","translationPropTypes","localesOptions","ref","items","objectOf","onEditClick","onDeleteClick","button","disabled","bool","contentPropTypes","list","image","tags","iconName","checkbox","checked","search","value","placeholder","emptyResult","description","SkillEditionPropTypes","skillInformations","form","iconEditor","translations","content","_default","exports","themeStyle","setup","coorpmanager","cockpit"],"sources":["../../../src/organism/skill-edition/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport InputText from '../../atom/input-text';\nimport InputTextarea from '../../atom/input-textarea';\nimport IconPreview from '../../molecule/icon-preview';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport {IconPreviewProps} from '../../molecule/icon-preview/types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\n\nconst FormPropTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n select: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n 'data-name': PropTypes.string,\n field: PropTypes.shape({\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes)),\n 'aria-label': PropTypes.string,\n onChange: PropTypes.func\n })\n }),\n inputText: PropTypes.shape({\n title: PropTypes.string,\n field: PropTypes.shape(InputText.propTypes)\n }),\n inputTextArea: PropTypes.shape({\n title: PropTypes.string,\n field: PropTypes.shape(InputTextarea.propTypes)\n })\n};\n\nconst IconEditorPropTypes = {\n title: PropTypes.string.isRequired,\n iconPreview: PropTypes.shape(IconPreview.propTypes).isRequired,\n inputText: PropTypes.shape(InputText.propTypes).isRequired,\n buttonLink: PropTypes.shape({\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n 'data-name': PropTypes.string,\n onClick: PropTypes.func\n })\n};\n\nconst translationPropTypes = PropTypes.shape({\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n localesOptions: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n ref: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n })\n ).isRequired,\n items: PropTypes.objectOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n onEditClick: PropTypes.func.isRequired,\n onDeleteClick: PropTypes.func.isRequired\n }).isRequired\n ),\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool\n }).isRequired\n});\n\nconst contentPropTypes = PropTypes.shape({\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n }).isRequired,\n list: PropTypes.shape({\n items: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n image: PropTypes.string.isRequired,\n tags: PropTypes.shape({\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired\n }).isRequired,\n checkbox: PropTypes.shape({\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired\n }).isRequired\n ),\n search: PropTypes.shape({\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired,\n emptyResult: PropTypes.shape({\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired\n }),\n checkbox: PropTypes.shape({\n title: PropTypes.string.isRequired,\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n })\n }).isRequired\n});\n\nconst SkillEditionPropTypes = {\n skillInformations: PropTypes.shape({\n form: PropTypes.shape(FormPropTypes).isRequired,\n iconEditor: PropTypes.shape(IconEditorPropTypes).isRequired\n }).isRequired,\n translations: translationPropTypes.isRequired,\n content: contentPropTypes.isRequired\n};\n\nexport default SkillEditionPropTypes;\n\nexport type SelectOption = {\n name: string;\n value?: string | number;\n selected?: boolean;\n validOption?: boolean;\n};\n\nexport type FieldSelectProps = {\n options: SelectOption[];\n 'aria-label': string;\n onChange: () => void;\n};\n\ntype FormProps = {\n title: string;\n subtitle: string;\n select: {\n title: string;\n subtitle: string;\n 'data-name': string;\n field: FieldSelectProps;\n };\n inputText: {\n title: string;\n field: InputTextProps;\n };\n inputTextArea: {\n title: string;\n field: InputTextareaProps;\n };\n};\n\ntype IconEditorProps = {\n title: string;\n iconPreview: IconPreviewProps;\n inputText: InputTextProps;\n buttonLink?: {label: string; ariaLabel: string; onClick: () => void};\n};\n\nexport type SkillInformationsProps = {\n form: FormProps;\n iconEditor: IconEditorProps;\n};\n\nexport const themeStyle = {\n setup: 'setup',\n coorpmanager: 'coorpmanager',\n cockpit: 'cockpit',\n default: 'defaultStyle'\n};\n\nexport type TranslationPropsType = {\n title: string;\n subtitle: string;\n localesOptions: {\n label: string;\n ref: string;\n onClick: () => void;\n }[];\n items?: {\n [ref: string]: {\n title: string;\n onEditClick: () => void;\n onDeleteClick: () => void;\n };\n };\n button: {\n label: string;\n onClick: () => void;\n disabled?: boolean;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n};\n\nexport type ContentListItemType = {\n ref: string;\n title: string;\n subtitle: string;\n image: string;\n tags: {\n label: string;\n iconName: string;\n };\n checkbox: {\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n deleteButton?: ButtonLinkProps;\n};\n\nexport type CheckboxWithTitleProps = {\n title?: string;\n checked?: boolean;\n onChange?: (value: boolean) => void;\n};\n\nexport type ContentPropsType = {\n title: string;\n subtitle: string;\n button: {\n label: string;\n onClick: () => void;\n };\n list: {\n title?: string;\n items?: ContentListItemType[];\n search: {\n value: string;\n placeholder: string;\n onChange: (value: string) => void;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n checkbox?: {\n title: string;\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n };\n actionButtons?: ButtonLinkProps[];\n checkboxWithTitle?: CheckboxWithTitleProps;\n};\n\nexport type SkillEditionPropsType = {\n skillInformations: SkillInformationsProps;\n translations: TranslationPropsType;\n content: ContentPropsType;\n};\n\nexport type InputTextProps = {\n autoFocus?: boolean;\n title?: string;\n placeholder?: string;\n defaultValue?: string;\n theme?: keyof typeof themeStyle;\n disabled?: boolean;\n value?: string;\n hint?: string;\n error?: string;\n onChange?: (value: string) => void;\n description?: string;\n modified?: boolean;\n type?: string;\n valid?: boolean;\n 'aria-label'?: string;\n 'data-name'?: string;\n inputColor?: boolean;\n};\n\nexport type InputTextareaProps = {\n placeholder?: string;\n title?: string;\n name?: string;\n theme?: keyof typeof themeStyle;\n disabled?: boolean;\n value?: string;\n hint?: string;\n error?: string;\n onChange?: (value: string) => void;\n description?: string;\n modified?: boolean;\n valid?: boolean;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA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U;MAClC0B,WAAW,EAAE3C,kBAAS,CAACC,MAAM,CAACgB,UAAU;MACxCR,QAAQ,EAAET,kBAAS,CAACU,IAAI,CAACO;IAC3B,CAAC,CAAC,CAACA,UAAU;IACb2B,WAAW,EAAE5C,kBAAS,CAACI,KAAK,CAAC;MAC3BL,KAAK,EAAEC,kBAAS,CAACC,MAAM,CAACgB,UAAU;MAClC4B,WAAW,EAAE7C,kBAAS,CAACC,MAAM,CAACgB;IAChC,CAAC,CAAC;IACFsB,QAAQ,EAAEvC,kBAAS,CAACI,KAAK,CAAC;MACxBL,KAAK,EAAEC,kBAAS,CAACC,MAAM,CAACgB,UAAU;MAClCuB,OAAO,EAAExC,kBAAS,CAACiC,IAAI,CAAChB,UAAU;MAClCR,QAAQ,EAAET,kBAAS,CAACU,IAAI,CAACO;IAC3B,CAAC;EACH,CAAC,CAAC,CAACA;AACL,CAAC,CAAC;AAEF,MAAM6B,qBAAqB,GAAG;EAC5BC,iBAAiB,EAAE/C,kBAAS,CAACI,KAAK,CAAC;IACjC4C,IAAI,EAAEhD,kBAAS,CAACI,KAAK,CAACN,aAAa,CAAC,CAACmB,UAAU;IAC/CgC,UAAU,EAAEjD,kBAAS,CAACI,KAAK,CAACY,mBAAmB,CAAC,CAACC;EACnD,CAAC,CAAC,CAACA,UAAU;EACbiC,YAAY,EAAE1B,oBAAoB,CAACP,UAAU;EAC7CkC,OAAO,EAAEjB,gBAAgB,CAACjB;AAC5B,CAAC;AAAC,IAAAmC,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAEaiD,qBAAqB;AA8C7B,MAAMQ,UAAU,GAAAD,OAAA,CAAAC,UAAA,GAAG;EACxBC,KAAK,EAAE,OAAO;EACdC,YAAY,EAAE,cAAc;EAC5BC,OAAO,EAAE,SAAS;EAClB5D,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -19,7 +19,6 @@ declare namespace UserPreferences {
|
|
|
19
19
|
details: PropTypes.Requireable<string>;
|
|
20
20
|
'data-name': PropTypes.Requireable<string>;
|
|
21
21
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
22
|
-
icon: PropTypes.Requireable<string>;
|
|
23
22
|
}> | null | undefined)[]>;
|
|
24
23
|
const moreInfoAriaLabel: PropTypes.Requireable<string>;
|
|
25
24
|
const groupAriaLabel: PropTypes.Requireable<string>;
|
|
@@ -148,7 +148,6 @@ declare namespace PlayerLoading {
|
|
|
148
148
|
details: PropTypes.Requireable<string>;
|
|
149
149
|
'data-name': PropTypes.Requireable<string>;
|
|
150
150
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
151
|
-
icon: PropTypes.Requireable<string>;
|
|
152
151
|
}> | null | undefined)[]>;
|
|
153
152
|
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
154
153
|
type: PropTypes.Requireable<string>;
|
|
@@ -199,7 +199,6 @@ declare namespace SlidePlayer {
|
|
|
199
199
|
details: PropTypes.Requireable<string>;
|
|
200
200
|
'data-name': PropTypes.Requireable<string>;
|
|
201
201
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
202
|
-
icon: PropTypes.Requireable<string>;
|
|
203
202
|
}> | null | undefined)[]>;
|
|
204
203
|
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
205
204
|
type: PropTypes.Requireable<string>;
|
|
@@ -978,7 +977,6 @@ declare namespace SlidePlayer {
|
|
|
978
977
|
details: PropTypes.Requireable<string>;
|
|
979
978
|
'data-name': PropTypes.Requireable<string>;
|
|
980
979
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
981
|
-
icon: PropTypes.Requireable<string>;
|
|
982
980
|
}> | null | undefined)[]>;
|
|
983
981
|
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
984
982
|
type: PropTypes.Requireable<string>;
|
|
@@ -205,7 +205,6 @@ declare namespace SlidesPlayer {
|
|
|
205
205
|
details: PropTypes.Requireable<string>;
|
|
206
206
|
'data-name': PropTypes.Requireable<string>;
|
|
207
207
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
208
|
-
icon: PropTypes.Requireable<string>;
|
|
209
208
|
}> | null | undefined)[]>;
|
|
210
209
|
items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
211
210
|
type: PropTypes.Requireable<string>;
|