@digigov/cli-lab 1.0.1 → 1.2.1

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.
@@ -0,0 +1,1424 @@
1
+ const components = {
2
+ /*
3
+ "Layout": {
4
+ element: 'div',
5
+ classes: ['govgr-layout-wrapper'],
6
+ props: {
7
+
8
+ }
9
+ },
10
+ "Content": {
11
+ element: 'div',
12
+ classes: ['govgr-width-container'],
13
+ props: {
14
+
15
+ },
16
+ children: [
17
+ {
18
+ element: 'div',
19
+ classes: ['govgr-main-wrapper'],
20
+ props: {
21
+
22
+ },
23
+ children: [
24
+ {
25
+ element: 'children'
26
+ }
27
+ ]
28
+
29
+ }
30
+ ]
31
+ },
32
+ "Main": {
33
+ element: 'div',
34
+ classes: ['govgr-grid-column-two-thirds'],
35
+ props: {
36
+
37
+ }
38
+ },
39
+ "Side": {
40
+ element: 'div',
41
+ classes: ['govgr-grid-column-one-third'],
42
+ props: {
43
+
44
+ }
45
+ },
46
+
47
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
48
+ "Bottom": {
49
+ element: 'div',
50
+ classes: [],
51
+ props: {
52
+
53
+ }
54
+ },
55
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
56
+ "Top": {
57
+ element: 'div',
58
+ classes: [],
59
+ props: {
60
+
61
+ }
62
+ },
63
+
64
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
65
+ "PageTitle": {
66
+ element: 'div',
67
+ classes: [],
68
+ props: {
69
+
70
+ }
71
+ },
72
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
73
+ "PageTitleSection": {
74
+ element: 'div',
75
+ classes: [],
76
+ props: {
77
+
78
+ }
79
+ },
80
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
81
+ "PageTitleCaption": {
82
+ element: 'span',
83
+ classes: [
84
+ ],
85
+ props: {
86
+ size: {
87
+ values: {
88
+ xl: 'govgr-caption-xl',
89
+ l: 'govgr-caption-l',
90
+ m: 'govgr-caption-m',
91
+ }
92
+ }
93
+ }
94
+ },
95
+ // This component will replace PageTitleCaption
96
+ "HeadingCaption": {
97
+ element: 'span',
98
+ classes: [
99
+ ],
100
+ props: {
101
+ size: {
102
+ values: {
103
+ xl: 'govgr-caption-xl',
104
+ l: 'govgr-caption-l',
105
+ m: 'govgr-caption-m',
106
+ }
107
+ }
108
+ }
109
+ },
110
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
111
+ "Caption": {
112
+ element: '',
113
+ classes: [],
114
+ props: {
115
+
116
+ }
117
+ },
118
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
119
+ "PageTitleHeading": {
120
+ element: 'h1',
121
+ classes: [],
122
+ props: {
123
+ size: {
124
+ default: 'xl',
125
+ values: {
126
+ xl: 'govgr-heading-xl',
127
+ l: 'govgr-heading-l',
128
+ m: 'govgr-heading-m',
129
+ s: 'govgr-heading-s'
130
+ },
131
+ }
132
+ }
133
+ },
134
+ // This component will replace PageTitleCaption
135
+ "Heading": {
136
+ element: 'h1',
137
+ classes: [],
138
+ props: {
139
+ size: {
140
+ default: 'xl',
141
+ values: {
142
+ xl: 'govgr-heading-xl',
143
+ l: 'govgr-heading-l',
144
+ m: 'govgr-heading-m',
145
+ s: 'govgr-heading-s'
146
+ },
147
+ }
148
+ }
149
+ },
150
+ "NormalText": {
151
+ element: 'span',
152
+ classes: [],
153
+ props: {
154
+ variant: {
155
+ default: 'normal',
156
+ values: {
157
+ lead: 'govgr-body-l',
158
+ normal: 'govgr-body',
159
+ small: 'govgr-body-s'
160
+ }
161
+ },
162
+ fontSize: {
163
+ default: 19,
164
+ values: {
165
+ 14: 'govgr-!-font-size-14',
166
+ 16: 'govgr-!-font-size-16',
167
+ 19: 'govgr-!-font-size-19',
168
+ 24: 'govgr-!-font-size-24',
169
+ 30: 'govgr-!-font-size-30',
170
+ 36: 'govgr-!-font-size-36',
171
+ 48: 'govgr-!-font-size-48',
172
+ 72: 'govgr-!-font-size-72',
173
+ },
174
+ }
175
+ }
176
+ },
177
+ "Paragraph": {
178
+ element: 'p',
179
+ classes: [],
180
+ props: {
181
+ variant: {
182
+ default: 'normal',
183
+ values: {
184
+ lead: 'govgr-body-l',
185
+ normal: 'govgr-body',
186
+ small: 'govgr-body-s'
187
+ }
188
+ },
189
+ fontSize: {
190
+ values: {
191
+ 14: 'govgr-!-font-size-14',
192
+ 16: 'govgr-!-font-size-16',
193
+ 19: 'govgr-!-font-size-19',
194
+ 24: 'govgr-!-font-size-24',
195
+ 30: 'govgr-!-font-size-30',
196
+ 36: 'govgr-!-font-size-36',
197
+ 48: 'govgr-!-font-size-48',
198
+ 72: 'govgr-!-font-size-72',
199
+ }
200
+ }
201
+ }
202
+ },
203
+ "Hint": {
204
+ element: 'p',
205
+ classes: ['govgr-hint'],
206
+ props: {
207
+ }
208
+ },
209
+ "VisuallyHidden": {
210
+ element: 'span',
211
+ classes: ['govgr-visually-hidden'],
212
+ props: {
213
+ }
214
+ },
215
+ "Link": {
216
+ element: 'a',
217
+ classes: ['govgr-link'],
218
+ props: {
219
+ underline: {
220
+ type: 'boolean',
221
+ values: {
222
+ false: 'govgr-link--no-underline'
223
+ }
224
+ }
225
+ }
226
+ },
227
+ "List": {
228
+ element: 'ul',
229
+ classes: ['govgr-list'],
230
+ props: {
231
+ listStyle: {
232
+ values: {
233
+ bullet: 'govgr-list--bullet',
234
+ number: 'govgr-list--number'
235
+ },
236
+ spaced: {
237
+ type: 'boolean',
238
+ values: {
239
+ true: 'govgr-list--spaced'
240
+ }
241
+ }
242
+ }
243
+
244
+ }
245
+ },
246
+ "ListItem": {
247
+ element: 'li',
248
+ classes: ['govgr-list__item'],
249
+ props: {
250
+
251
+ }
252
+ },
253
+ "SectionBreak": {
254
+ element: 'h2',
255
+ classes: ["govgr-section-break"],
256
+ props: {
257
+ visible: {
258
+ type: 'boolean',
259
+ values: {
260
+ true: 'govgr-section-break--visible'
261
+ },
262
+ },
263
+ size: {
264
+ values: {
265
+ xl: "govgr-section-break--xl",
266
+ lg: "govgr-section-break--l",
267
+ md: "govgr-section-break--m",
268
+ }
269
+ }
270
+ }
271
+ },
272
+ "ButtonGroup": {
273
+ element: 'div',
274
+ classes: ['govgr-button-group'],
275
+ props: {
276
+ }
277
+ },
278
+ "Button": {
279
+ element: 'button',
280
+ classes: ['govgr-btn'],
281
+ props: {
282
+ color: {
283
+ values: {
284
+ primary: 'govgr-btn-primary',
285
+ secondary: 'govgr-btn-secondary',
286
+ warning: 'govgr-btn-warning'
287
+ },
288
+ default: 'primary'
289
+ },
290
+ disabled: {
291
+ type: 'boolean',
292
+ values: {
293
+ true: 'govgr-btn-disabled'
294
+ },
295
+ pass: true
296
+ }
297
+ }
298
+ },
299
+ "ButtonRightArrow": {
300
+ element: 'span',
301
+ classes: ['right-arrow'],
302
+ nochildren: true,
303
+ props: {
304
+ }
305
+ },
306
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
307
+ "ButtonIcon": {
308
+ element: 'span',
309
+ classes: [],
310
+ props: {
311
+
312
+ }
313
+ },
314
+ "Header": {
315
+ element: 'header',
316
+ classes: ['govgr-header'],
317
+ props: {
318
+
319
+ }
320
+ },
321
+ "HeaderSection": {
322
+ element: 'div',
323
+ classes: ['govgr-header__container'],
324
+ props: {
325
+ role: {
326
+ default: 'banner',
327
+ pass: true
328
+ }
329
+ }
330
+ },
331
+ "HeaderLogo": {
332
+ element: 'img',
333
+ classes: ['govgr-header-logo'],
334
+ nochildren: true,
335
+ props: {
336
+ src: {
337
+ default: 'https://www.gov.gr/gov_gr_logo.svg',
338
+ pass: true
339
+ }
340
+ },
341
+ },
342
+ "HeaderSecondaryLogo": {
343
+ element: 'img',
344
+ classes: ['govgr-header-logo'],
345
+ props: {
346
+ src: {
347
+ default: '/',
348
+ pass: true
349
+ }
350
+ },
351
+ },
352
+ "HeaderTitle": {
353
+ element: 'a',
354
+ classes: ['govgr-header-title'],
355
+ props: {
356
+ href: {
357
+ default: '/',
358
+ pass: true
359
+ }
360
+ }
361
+ },
362
+ "HeaderSubtitle": {
363
+ element: 'div',
364
+ classes: [],
365
+ props: {
366
+
367
+ }
368
+ },
369
+ "Accordion": {
370
+ element: 'div',
371
+ classes: ['govgr-accordion'],
372
+ props: {
373
+
374
+ }
375
+ },
376
+ "AccordionSection": {
377
+ element: 'div',
378
+ classes: ['govgr-accordion__section'],
379
+ props: {
380
+ selected: {
381
+ type: 'boolean',
382
+ values: {
383
+ true: 'govgr-accordion__section-open'
384
+ }
385
+ }
386
+ }
387
+ },
388
+ "AccordionSectionHeader": {
389
+ element: 'div',
390
+ classes: ['govgr-accordion__section-header'],
391
+ props: {
392
+ },
393
+ children: [
394
+ {
395
+ element: 'h2',
396
+ classes: ['govgr-accordion__section-heading'],
397
+ props: {
398
+ },
399
+ children: [
400
+ {
401
+ element: 'span',
402
+ classes: ['govgr-accordion__section-button'],
403
+ props: {
404
+ },
405
+ children: [
406
+ {
407
+ element: 'children'
408
+ }
409
+ ]
410
+ },
411
+ ]
412
+ }
413
+ ]
414
+ },
415
+ "AccordionSectionContent": {
416
+ element: 'div',
417
+ classes: ['govgr-accordion__section-content'],
418
+ props: {
419
+ }
420
+ },
421
+
422
+ "Blockquote": {
423
+ element: 'blockquote',
424
+ classes: ['govgr-blockquote'],
425
+ props: {
426
+
427
+ }
428
+ },
429
+ "Breadcrumbs": {
430
+ element: 'div',
431
+ classes: ['govgr-breadcrumbs'],
432
+ props: {
433
+
434
+ }
435
+ },
436
+ "BreadcrumbsList": {
437
+ element: 'ol',
438
+ classes: ['govgr-breadcrumbs__list'],
439
+ props: {
440
+
441
+ }
442
+ },
443
+ "BreadcrumbsListItem": {
444
+ element: 'li',
445
+ classes: ['govgr-breadcrumbs__list-item'],
446
+ props: {
447
+ href: {
448
+ default: '/',
449
+ pass: false
450
+ }
451
+ },
452
+ children: [
453
+ {
454
+ element: 'a',
455
+ classes: ['govgr-breadcrumbs__link'],
456
+ props: {
457
+ href: {
458
+ pass: true
459
+ }
460
+ },
461
+ children: [
462
+ {
463
+ element: 'children'
464
+ }
465
+ ]
466
+ }
467
+ ]
468
+ },
469
+ "BackLink": {
470
+ element: 'a',
471
+ classes: ['govgr-back-link'],
472
+ children: [
473
+ {
474
+ element: 'span',
475
+ classes: ['govgr-caret-left'],
476
+ },
477
+ {
478
+ element: 'children',
479
+ }
480
+ ],
481
+ props: {
482
+ href: {
483
+ default: '/',
484
+ pass: true
485
+ }
486
+ }
487
+ },
488
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
489
+ // TODO: This component does not exist in the current library @digigov/ui
490
+ "IconComponent": {
491
+ element: 'img',
492
+ classes: [],
493
+ props: {
494
+
495
+ }
496
+ },
497
+ "Confirmation": {
498
+ element: 'div',
499
+ classes: ['govgr-panel', 'govgr-panel--confirmation'],
500
+ props: {
501
+
502
+ }
503
+ },
504
+ "ConfirmationTitle": {
505
+ element: 'h1',
506
+ classes: ['govgr-panel__title'],
507
+ props: {
508
+
509
+ }
510
+ },
511
+ "ConfirmationBody": {
512
+ element: 'div',
513
+ classes: ['govgr-panel__body'],
514
+ props: {
515
+
516
+ }
517
+ },
518
+ "DetailsSummary": {
519
+ element: 'summary',
520
+ classes: ['govgr-details__summary'],
521
+ props: {
522
+
523
+ }
524
+ },
525
+ "DetailsContent": {
526
+ element: 'p',
527
+ classes: ['govgr-details__summary-text'],
528
+ props: {
529
+
530
+ }
531
+ },
532
+ "Details": {
533
+ element: 'details',
534
+ classes: ['govgr-details'],
535
+ props: {
536
+
537
+ }
538
+ },
539
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
540
+ "AccordionDivider": {
541
+ element: 'div',
542
+ classes: [''],
543
+ props: {
544
+
545
+ }
546
+ },
547
+ "ErrorSummary": {
548
+ element: 'div',
549
+ classes: ['govgr-error-summary'],
550
+ props: {
551
+
552
+ }
553
+ },
554
+ "NavHorizontal": {
555
+ element: 'nav',
556
+ classes: ['govgr-horizontal-nav'],
557
+ props: {
558
+ active: {
559
+ type: 'boolean',
560
+ values: {
561
+ true: 'govgr-horizontal-nav--active'
562
+ }
563
+ }
564
+ }
565
+ },
566
+ "NavHorizontalList": {
567
+ element: 'div',
568
+ classes: ['govgr-horizontal-nav__container'],
569
+ props: {
570
+
571
+ }
572
+ },
573
+ "NavHorizontalListItem": {
574
+ element: 'a',
575
+ classes: ['govgr-horizontal-nav__item'],
576
+ props: {
577
+ active: {
578
+ type: 'boolean',
579
+ values: {
580
+ true: 'govgr-horizontal-nav__item-active',
581
+ }
582
+ },
583
+ href: {
584
+ default: '/',
585
+ pass:true
586
+ }
587
+ }
588
+ },
589
+ "BurgerIcon": {
590
+ element: 'div',
591
+ classes: ['govgr-burger-menu', 'govgr-burger-menu--white-bg'],
592
+ props: {
593
+ active: {
594
+ type: 'boolean',
595
+ values: {
596
+ true: 'govgr-burger-menu--active'
597
+ }
598
+ }
599
+ },
600
+ children: [
601
+ {
602
+ element: 'div',
603
+ classes: ['govgr-burger-menu__line1'],
604
+ props: {
605
+ }
606
+ },
607
+ {
608
+ element: 'div',
609
+ classes: ['govgr-burger-menu__line2'],
610
+ props: {
611
+ }
612
+ },
613
+ {
614
+ element: 'div',
615
+ classes: ['govgr-burger-menu__line3'],
616
+ props: {
617
+ }
618
+ }
619
+ ]
620
+ },
621
+ "NavVertical": {
622
+ element: 'nav',
623
+ classes: ['govgr-vertical-nav'],
624
+ props: {
625
+
626
+ }
627
+ },
628
+ "NavVerticalItem": {
629
+ element: 'a',
630
+ classes: ['govgr-link', 'govgr-vertical-nav__item'],
631
+ props: {
632
+ active: {
633
+ type: 'boolean',
634
+ values: {
635
+ true: 'govgr-vertical-nav__item--active',
636
+ }
637
+ }
638
+ }
639
+ },
640
+ "NotificationBanner": {
641
+ element: 'div',
642
+ classes: ['govgr-notification-banner'],
643
+ props: {
644
+ success: {
645
+ type: 'boolean',
646
+ values: {
647
+ true: 'govgr-notification-banner--success'
648
+ },
649
+ }
650
+ }
651
+ },
652
+ "NotificationBannerHeader": {
653
+ element: 'div',
654
+ classes: ['govgr-notification-banner__header'],
655
+ children: [
656
+ {
657
+ element: 'h2',
658
+ classes: ['govgr-notification-banner__title'],
659
+ children: [
660
+ { element: 'children' }
661
+ ]
662
+ }
663
+ ],
664
+ props: {
665
+
666
+ }
667
+ },
668
+ "NotificationBannerContent": {
669
+ element: 'div',
670
+ classes: ['govgr-notification-banner__content'],
671
+ props: {
672
+
673
+ }
674
+ },
675
+ "NotificationBannerHeading": {
676
+ element: 'h3',
677
+ classes: ['govgr-notification-banner__heading'],
678
+ props: {
679
+
680
+ }
681
+ },
682
+ "NotificationBannerLink": {
683
+ element: 'a',
684
+ classes: ['govgr-notification-banner__link'],
685
+ props: {
686
+
687
+ }
688
+ },
689
+
690
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
691
+ "ServiceBadge": {
692
+ element: 'div',
693
+ classes: ['govgr-phase-banner'],
694
+ props: {
695
+
696
+ }
697
+ },
698
+ // This component will replace ServiceBadge
699
+ "PhaseBanner": {
700
+ element: 'div',
701
+ classes: ['govgr-phase-banner'],
702
+ props: {
703
+
704
+ },
705
+ children: [
706
+ {
707
+ element: 'p',
708
+ classes: ['govgr-phase-banner__content'],
709
+ props: {
710
+ },
711
+ children: [
712
+ {
713
+ element: 'children'
714
+ }
715
+ ]
716
+ }
717
+ ]
718
+ },
719
+ "PhaseBannerTag": {
720
+ element: 'strong',
721
+ classes: ['govgr-tag', 'govgr-phase-banner__content__tag'],
722
+ props: {
723
+
724
+ }
725
+ },
726
+
727
+ "PhaseBannerText": {
728
+ element: 'span',
729
+ classes: ['govgr-phase-banner__text'],
730
+ props: {
731
+
732
+ }
733
+ },
734
+ "SummaryList": {
735
+ element: 'dl',
736
+ classes: ['govgr-summary-list'],
737
+ props: {
738
+
739
+ }
740
+ },
741
+ "SummaryListItem": {
742
+ element: 'div',
743
+ classes: ['govgr-summary-list__row'],
744
+ props: {
745
+
746
+ }
747
+ },
748
+ "SummaryListItemKey": {
749
+ element: 'dt',
750
+ classes: ['govgr-summary-list__key'],
751
+ props: {
752
+
753
+ }
754
+ },
755
+ "SummaryListItemValue": {
756
+ element: 'dd',
757
+ classes: ['govgr-summary-list__value'],
758
+ props: {
759
+
760
+ }
761
+ },
762
+ "SummaryListItemAction": {
763
+ element: 'dd',
764
+ classes: ['govgr-summary-list__actions'],
765
+ props: {
766
+
767
+ }
768
+ },
769
+ "Tabs": {
770
+ element: 'div',
771
+ classes: ['govgr-tabs'],
772
+ props: {
773
+
774
+ }
775
+ },
776
+ "TabsHeading": {
777
+ element: 'h6',
778
+ classes: ['govgr-tabs__title'],
779
+ props: {
780
+ size: {
781
+ default: 's',
782
+ values: {
783
+ m: 'govgr-heading-m',
784
+ s: 'govgr-heading-s'
785
+ },
786
+
787
+ }
788
+ }
789
+ },
790
+ "TabList": {
791
+ element: 'ul',
792
+ classes: ['govgr-tabs__list'],
793
+ props: {}
794
+ },
795
+ "TabListItem": {
796
+ element: 'li',
797
+ classes: ['govgr-tabs__list-item'],
798
+ props: {
799
+ selected: {
800
+ type: 'boolean',
801
+ values: {
802
+ true: 'govgr-tabs__list-item-selected',
803
+ },
804
+ default: false
805
+ },
806
+ href: {
807
+ default: '/',
808
+ pass: false
809
+ },
810
+ },
811
+ children: [
812
+ {
813
+ element: 'a',
814
+ classes: ['govgr-tabs__tab'],
815
+ props: {
816
+ href: {
817
+ pass: true
818
+ },
819
+ },
820
+ children: [
821
+ {
822
+ element: 'children'
823
+ }
824
+ ]
825
+ }
826
+ ]
827
+ },
828
+ "TabPanel": {
829
+ element: 'div',
830
+ classes: ['govgr-tabs__panel'],
831
+ props: {
832
+ active: {
833
+ default: false,
834
+ type: 'boolean',
835
+ values: {
836
+ true: 'govgr-tabs__panel-visible',
837
+ }
838
+ },
839
+ }
840
+ },
841
+ "Copyright": {
842
+ element: 'p',
843
+ classes: ['govgr-footer__licence-description'],
844
+ props: {
845
+
846
+ }
847
+ },
848
+ "HellenicRepublicLogo": {
849
+ element: 'img',
850
+ classes: ['govgr-footer__government-logo'],
851
+ nochildren: true,
852
+ props: {
853
+ src: {
854
+ default: 'https://government.gov.gr/wp-content/uploads/2017/09/kyvernisi-logo-small-1.png',
855
+ pass: true
856
+ }
857
+
858
+ }
859
+ },
860
+ // The following component will be deprecated and this is a shell component that can be used to warn the developers to remove it.
861
+ "GovGRFooter": {
862
+ element: 'footer',
863
+ classes: ['govgr-footer'],
864
+ props: {
865
+
866
+ }
867
+ },
868
+ // This component will replace the GovGRFooter
869
+ "Footer": {
870
+ element: 'footer',
871
+ classes: ['govgr-footer'],
872
+ props: {
873
+
874
+ }
875
+ },
876
+ "FooterContainer": {
877
+ element: 'div',
878
+ classes: ['govgr-width-container'],
879
+ props: {
880
+
881
+ }
882
+ },
883
+ "FooterNavigation": {
884
+ element: 'div',
885
+ classes: ['govgr-footer__navigation'],
886
+ props: {
887
+
888
+ }
889
+ },
890
+ "FooterSection": {
891
+ element: 'div',
892
+ classes: ['govgr-footer__section'],
893
+ props: {
894
+
895
+ }
896
+ },
897
+ "FooterMeta": {
898
+ element: 'div',
899
+ classes: ['govgr-footer__meta'],
900
+ props: {
901
+
902
+ }
903
+ },
904
+ "FooterMetaItem": {
905
+ element: 'div',
906
+ classes: ['govgr-footer__meta-item'],
907
+ props: {
908
+ grow: {
909
+ type: 'boolean',
910
+ values: {
911
+ true: 'govgr-footer__meta-item--grow'
912
+ }
913
+ }
914
+ }
915
+ },
916
+ "FooterContent": {
917
+ element: 'div',
918
+ classes: ['govgr-footer__content'],
919
+ props: {
920
+ }
921
+ },
922
+ "FooterHeading": {
923
+ element: 'h2',
924
+ classes: ['govgr-footer__heading'],
925
+ props: {
926
+ size: {
927
+ values: {
928
+ m: 'govgr-heading-m',
929
+ s: 'govgr-heading-s'
930
+ },
931
+ default: 's'
932
+ }
933
+ }
934
+ },
935
+ "FooterList": {
936
+ element: 'ul',
937
+ classes: ['govgr-footer__list'],
938
+ props: {
939
+ columns: {
940
+ type: 'number',
941
+ values: {
942
+ 2: "govgr-footer__list--columns-2"
943
+ }
944
+ }
945
+ }
946
+ },
947
+ "FooterListItem": {
948
+ element: 'li',
949
+ classes: ['govgr-footer__list-item'],
950
+ props: {
951
+ },
952
+ },
953
+ "FooterLink": {
954
+ element: 'a',
955
+ classes: ['govgr-footer__link'],
956
+ props: {
957
+ href: {
958
+ default: '/',
959
+ pass: true
960
+ },
961
+ }
962
+ },
963
+ "FooterInlineList": {
964
+ element: 'ul',
965
+ classes: ['govgr-footer__inline-list'],
966
+ props: {
967
+
968
+ }
969
+ },
970
+ "FooterInlineListItem": {
971
+ element: 'li',
972
+ classes: ['govgr-footer__inline-list-item'],
973
+ props: {
974
+
975
+ }
976
+ },
977
+ "FooterContentLogos": {
978
+ element: 'div',
979
+ classes: ['govgr-footer__content--logos'],
980
+ props: {
981
+
982
+ }
983
+ },
984
+ "FooterImage": {
985
+ element: 'img',
986
+ classes: ['govgr-footer__logo'],
987
+ nochildren: true,
988
+ props: {
989
+
990
+ }
991
+ },
992
+ "Feedback": {
993
+ element: '',
994
+ classes: [],
995
+ props: {
996
+
997
+ }
998
+ },
999
+ "LicenseCCSA": {
1000
+ element: '',
1001
+ classes: [],
1002
+ props: {
1003
+
1004
+ }
1005
+ },
1006
+ "GovGRLogo": {
1007
+ element: 'img',
1008
+ classes: ['govgr-header-logo'],
1009
+ nochildren: true,
1010
+ props: {
1011
+ src: {
1012
+ default: 'https://www.gov.gr/gov_gr_logo.svg',
1013
+ pass: true
1014
+ }
1015
+ },
1016
+ },
1017
+
1018
+ "Masthead": {
1019
+ element: 'div',
1020
+ classes: ['govgr-masthead', 'govgr-background-dark'],
1021
+ props: {
1022
+ },
1023
+ children: [
1024
+ {
1025
+ element: 'div',
1026
+ classes: ['govgr-width-container'],
1027
+ props: {
1028
+ },
1029
+ children: [
1030
+ {
1031
+ element: 'div',
1032
+ classes: ['govgr-main-wrapper'],
1033
+ props: {
1034
+ },
1035
+ children: [
1036
+ {
1037
+ element: 'children'
1038
+ }
1039
+ ]
1040
+ }
1041
+ ]
1042
+ }
1043
+ ]
1044
+ },
1045
+ "MastheadBody": {
1046
+ element: 'p',
1047
+ classes: ['govgr-masthead-body'],
1048
+ props: {
1049
+
1050
+ }
1051
+ },
1052
+ "WarningText": {
1053
+ element: 'div',
1054
+ classes: ['govgr-warning-text'],
1055
+ children: [
1056
+ {
1057
+ element: 'span',
1058
+ classes: ['govgr-warning-text__icon'],
1059
+ children: [
1060
+ { text: '!' }
1061
+ ],
1062
+ },
1063
+ {
1064
+ element: 'strong',
1065
+ classes: ['govgr-warning-text__text'],
1066
+ children: [
1067
+ {
1068
+ element: 'span',
1069
+ classes: ['govgr-warning-text__assistive'],
1070
+ children: [
1071
+ { text: 'Warning' }
1072
+ ]
1073
+ },
1074
+ {
1075
+ element: 'children',
1076
+ }
1077
+ ]
1078
+
1079
+ }
1080
+ ],
1081
+ props: {
1082
+
1083
+ }
1084
+ },
1085
+ "FormGroup": {
1086
+ element: 'div',
1087
+ classes: ['govgr-form-group'],
1088
+ props: {
1089
+ error: {
1090
+ type: 'boolean',
1091
+ values: {
1092
+ true: 'govgr-form-group__error'
1093
+ }
1094
+ }
1095
+
1096
+ }
1097
+ },
1098
+ "Fieldset": {
1099
+ element: 'fieldset',
1100
+ classes: ['govgr-fieldset'],
1101
+ props: {
1102
+
1103
+ }
1104
+ },
1105
+ "FieldsetLegendSingle": {
1106
+ element: 'h1',
1107
+ classes: ['govgr-heading-m', 'govgr-fieldset__legend'],
1108
+ props: {
1109
+
1110
+ },
1111
+ children: [
1112
+ {
1113
+ element: 'label',
1114
+ classes: [''],
1115
+ props: {
1116
+
1117
+ },
1118
+ children: [
1119
+ { element: 'children' }
1120
+ ]
1121
+ }
1122
+ ]
1123
+ },
1124
+ "FieldsetLegendMultiple": {
1125
+ element: 'h4',
1126
+ classes: ['govgr-heading-s', 'govgr-fieldset__legend'],
1127
+ props: {
1128
+
1129
+ }
1130
+ },
1131
+ "Label": {
1132
+ element: 'label',
1133
+ classes: ['govgr-label'],
1134
+ props: {
1135
+
1136
+ }
1137
+ },
1138
+ "ErrorMessage": {
1139
+ element: 'p',
1140
+ classes: ['govgr-error-message'],
1141
+ props: {
1142
+
1143
+ }
1144
+ },
1145
+ "TextInput": {
1146
+ element: 'input',
1147
+ classes: ['govgr-input'],
1148
+ props: {
1149
+ type: {
1150
+ default: 'text',
1151
+ pass: true
1152
+ },
1153
+ name: {
1154
+ default: '',
1155
+ pass: true
1156
+ },
1157
+ characterWidth: {
1158
+ values: {
1159
+ 2: 'govgr-input--width-2',
1160
+ 3: 'govgr-input--width-3',
1161
+ 4: 'govgr-input--width-4',
1162
+ 5: 'govgr-input--width-5',
1163
+ 10: 'govgr-input--width-10',
1164
+ 20: 'govgr-input--width-20',
1165
+ }
1166
+ },
1167
+ width: {
1168
+ values: {
1169
+ 'one-quarter': 'govgr-!-width-one-quarter',
1170
+ 'one-third': 'govgr-!-width-one-third',
1171
+ 'one-half': 'govgr-!-width-one-half',
1172
+ 'two-thirds': 'govgr-!-width-two-thirds',
1173
+ 'three-quarters': 'govgr-!-width-three-quarters',
1174
+ 'full': 'govgr-!-width-full'
1175
+ }
1176
+ }
1177
+ }
1178
+ },
1179
+ "TextArea": {
1180
+ element: 'textarea',
1181
+ classes: ['govgr-textarea'],
1182
+ props: {
1183
+ name: {
1184
+ default: '',
1185
+ pass: true
1186
+ },
1187
+ row: {
1188
+ values: {
1189
+ 4: '4',
1190
+ 5: '5',
1191
+ 6: '6',
1192
+ 7: '7',
1193
+ 8: '8',
1194
+ },
1195
+ default: 6
1196
+ }
1197
+ }
1198
+ },
1199
+ "DateInput": {
1200
+ element: 'div',
1201
+ classes: ['govgr-date-input'],
1202
+ props: {
1203
+ },
1204
+ },
1205
+ "DateInputItem": {
1206
+ element: 'div',
1207
+ classes: ['govgr-date-input__item'],
1208
+ props: {
1209
+ type: {
1210
+ default: 'text',
1211
+ pass: false
1212
+ },
1213
+ pattern: {
1214
+ default: '[0-9]*',
1215
+ pass: false
1216
+ },
1217
+ inputMode: {
1218
+ default: 'numeric',
1219
+ values: {
1220
+ numeric: '',
1221
+ },
1222
+ pass: false
1223
+ },
1224
+ name: {
1225
+ default: '',
1226
+ pass: false
1227
+ }
1228
+ },
1229
+ children: [
1230
+ {
1231
+ element: 'label',
1232
+ classes: ['govgr-label'],
1233
+ props: {
1234
+
1235
+ },
1236
+ children: [{
1237
+ element: 'children'
1238
+ }]
1239
+ },
1240
+ {
1241
+ element: 'input',
1242
+ classes: ['govgr-input', 'govgr-input--width-2'],
1243
+ props: {
1244
+ type: {
1245
+ pass: true
1246
+ },
1247
+ pattern: {
1248
+ pass: true
1249
+ },
1250
+ inputMode: {
1251
+ pass: true
1252
+ },
1253
+ name: {
1254
+ pass: true
1255
+ }
1256
+ }
1257
+ }
1258
+ ]
1259
+ },
1260
+
1261
+ "Checkbox": {
1262
+ element: 'div',
1263
+ classes: ['govgr-checkboxes'],
1264
+ props: {
1265
+
1266
+ }
1267
+ },
1268
+ "CheckboxItem": {
1269
+ element: 'div',
1270
+ classes: ['govgr-checkboxes__item'],
1271
+ props: {
1272
+ type: {
1273
+ default: 'checkbox',
1274
+ pass: false
1275
+ },
1276
+ name: {
1277
+ default: '',
1278
+ pass: false
1279
+ },
1280
+ value: {
1281
+ default: '',
1282
+ pass: false
1283
+ }
1284
+
1285
+ },
1286
+ children: [
1287
+ {
1288
+ element: 'input',
1289
+ classes: ['govgr-checkboxes__input'],
1290
+ props: {
1291
+ type: {
1292
+ pass: true
1293
+ },
1294
+ name: {
1295
+ pass: true
1296
+ },
1297
+ value: {
1298
+ pass: true
1299
+ }
1300
+ }
1301
+ },
1302
+ {
1303
+ element: 'label',
1304
+ classes: ['govgr-label govgr-checkboxes__label'],
1305
+ props: {
1306
+
1307
+ },
1308
+ children: [
1309
+ { element: 'children' }
1310
+ ]
1311
+ }
1312
+ ]
1313
+ },
1314
+ "Radio": {
1315
+ element: 'div',
1316
+ classes: ['govgr-radios'],
1317
+ props: {
1318
+
1319
+ }
1320
+ },
1321
+ "RadioItem": {
1322
+ element: 'div',
1323
+ classes: ['govgr-radios__item'],
1324
+ props: {
1325
+ type: {
1326
+ default: 'radio',
1327
+ pass: false
1328
+ },
1329
+ name: {
1330
+ default: '',
1331
+ pass: false
1332
+ },
1333
+ value: {
1334
+ default: '',
1335
+ pass: false
1336
+ }
1337
+
1338
+ },
1339
+ children: [
1340
+ {
1341
+ element: 'input',
1342
+ classes: ['govgr-radios__input'],
1343
+ props: {
1344
+ type: {
1345
+ pass: true
1346
+ },
1347
+ name: {
1348
+ pass: true
1349
+ },
1350
+ value: {
1351
+ pass: true
1352
+ }
1353
+ }
1354
+ },
1355
+ {
1356
+ element: 'label',
1357
+ classes: ['govgr-label govgr-radios__label'],
1358
+ props: {
1359
+
1360
+ },
1361
+ children: [
1362
+ { element: 'children' }
1363
+ ]
1364
+ }
1365
+ ]
1366
+ },
1367
+ "Select": {
1368
+ element: 'select',
1369
+ classes: ['govgr-select'],
1370
+ props: {
1371
+ name: {
1372
+ pass: true
1373
+ },
1374
+ defaultValue: {
1375
+ pass: true
1376
+ }
1377
+ }
1378
+ },
1379
+ "SelectOption": {
1380
+ element: 'option',
1381
+ classes: [],
1382
+ props: {
1383
+ value: {
1384
+ pass: true
1385
+ }
1386
+ }
1387
+ },
1388
+ "FileUpload": {
1389
+ element: 'div',
1390
+ classes: ['upload-file'],
1391
+ props: {
1392
+ type: {
1393
+ values: {
1394
+ file: ''
1395
+ },
1396
+ default: 'file',
1397
+ pass: false
1398
+ },
1399
+ name: {
1400
+ pass: false
1401
+ }
1402
+
1403
+ },
1404
+ nochildren: true,
1405
+ children: [
1406
+ {
1407
+ element: 'input',
1408
+ classes: ['input-file', 'secondary-label'],
1409
+ props: {
1410
+ type: {
1411
+ pass: true
1412
+ },
1413
+ name: {
1414
+ pass: true
1415
+ }
1416
+ },
1417
+ nochildren: true
1418
+ }
1419
+ ]
1420
+ }
1421
+ */
1422
+ };
1423
+ module.exports = components
1424
+