@ilo-org/twig 0.2.12 → 0.2.13
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/.eslintrc.js +37 -49
- package/.stylelintrc +2 -6
- package/.turbo/turbo-build:lib.log +2 -2
- package/CHANGELOG.md +12 -0
- package/apps/storybook/assets.js +5 -0
- package/apps/storybook/main.js +17 -8
- package/apps/storybook/manager-head.html +1 -1
- package/apps/storybook/manager.js +2 -2
- package/apps/storybook/patterns/colors.stories.mdx +9 -4
- package/apps/storybook/patterns/intro.stories.mdx +47 -42
- package/apps/storybook/patterns/typeset.stories.mdx +10 -6
- package/apps/storybook/patterns/welcome.stories.mdx +21 -16
- package/apps/storybook/preview-body.html +1 -1
- package/apps/storybook/preview.js +16 -16
- package/apps/storybook/styles.scss +1 -1
- package/apps/storybook/theme.js +5 -5
- package/babel.config.js +3 -3
- package/importprefix.js +5 -5
- package/importsvgs.js +3 -3
- package/jest.config.js +8 -8
- package/outputtwigs.js +16 -13
- package/package.json +46 -55
- package/postcss.config.js +2 -2
- package/src/namespaces.js +5 -5
- package/src/patterns/components/accordion/accordion-item.wingsuit.yml +1 -1
- package/src/patterns/components/accordion/accordion.behavior.js +2 -2
- package/src/patterns/components/accordion/accordion.js +31 -21
- package/src/patterns/components/accordion/accordion.stories.jsx +4 -2
- package/src/patterns/components/accordion/accordion.wingsuit.yml +4 -3
- package/src/patterns/components/accordion/index.js +3 -3
- package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +2 -2
- package/src/patterns/components/breadcrumb/breadcrumb.js +14 -12
- package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +4 -2
- package/src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml +1 -1
- package/src/patterns/components/breadcrumb/index.js +3 -3
- package/src/patterns/components/button/button.stories.jsx +4 -2
- package/src/patterns/components/button/button.wingsuit.yml +12 -12
- package/src/patterns/components/button/index.js +2 -2
- package/src/patterns/components/callout/callout.behavior.js +2 -2
- package/src/patterns/components/callout/callout.js +18 -13
- package/src/patterns/components/callout/callout.stories.jsx +4 -2
- package/src/patterns/components/callout/callout.wingsuit.yml +2 -2
- package/src/patterns/components/callout/index.js +3 -3
- package/src/patterns/components/card/card.stories.jsx +4 -2
- package/src/patterns/components/card/card.wingsuit.yml +8 -8
- package/src/patterns/components/card/index.js +2 -2
- package/src/patterns/components/cardgroup/cardgroup.stories.jsx +4 -2
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +31 -31
- package/src/patterns/components/cardgroup/index.js +2 -2
- package/src/patterns/components/contextmenu/contextmenu.stories.jsx +4 -2
- package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +7 -7
- package/src/patterns/components/contextmenu/index.js +2 -2
- package/src/patterns/components/dropdown/dropdown.stories.jsx +4 -2
- package/src/patterns/components/dropdown/dropdown.wingsuit.yml +4 -4
- package/src/patterns/components/dropdown/index.js +2 -2
- package/src/patterns/components/footer/footer.stories.jsx +4 -2
- package/src/patterns/components/footer/footer.wingsuit.yml +1 -1
- package/src/patterns/components/footer/index.js +2 -2
- package/src/patterns/components/form/fileupload.behavior.js +2 -2
- package/src/patterns/components/form/fileupload.js +6 -5
- package/src/patterns/components/form/form.stories.jsx +4 -2
- package/src/patterns/components/form/form.wingsuit.yml +92 -92
- package/src/patterns/components/form/index.js +3 -3
- package/src/patterns/components/hero/hero.stories.jsx +4 -2
- package/src/patterns/components/hero/hero.wingsuit.yml +4 -4
- package/src/patterns/components/hero/index.js +2 -2
- package/src/patterns/components/herocard/herocard.stories.jsx +4 -2
- package/src/patterns/components/herocard/herocard.wingsuit.yml +5 -5
- package/src/patterns/components/herocard/index.js +2 -2
- package/src/patterns/components/icon/index.js +2 -2
- package/src/patterns/components/image/image.stories.jsx +4 -2
- package/src/patterns/components/image/image.wingsuit.yml +9 -9
- package/src/patterns/components/image/index.js +2 -2
- package/src/patterns/components/link/index.js +2 -2
- package/src/patterns/components/link/link.stories.jsx +4 -2
- package/src/patterns/components/link/link.wingsuit.yml +3 -3
- package/src/patterns/components/linklist/index.js +2 -2
- package/src/patterns/components/linklist/linklist.stories.jsx +4 -2
- package/src/patterns/components/linklist/linklist.wingsuit.yml +15 -15
- package/src/patterns/components/list/index.js +2 -2
- package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
- package/src/patterns/components/list/list.stories.jsx +4 -2
- package/src/patterns/components/list/list.wingsuit.yml +4 -4
- package/src/patterns/components/loading/index.js +3 -3
- package/src/patterns/components/loading/loading.behavior.js +2 -2
- package/src/patterns/components/loading/loading.js +2 -2
- package/src/patterns/components/loading/loading.stories.jsx +4 -2
- package/src/patterns/components/loading/loading.wingsuit.yml +5 -5
- package/src/patterns/components/localnav/index.js +3 -3
- package/src/patterns/components/localnav/localnav.stories.jsx +4 -2
- package/src/patterns/components/localnav/localnav.twig +3 -1
- package/src/patterns/components/localnav/localnav.wingsuit.yml +17 -19
- package/src/patterns/components/modal/index.js +3 -3
- package/src/patterns/components/modal/modal.behavior.js +2 -2
- package/src/patterns/components/modal/modal.js +9 -7
- package/src/patterns/components/modal/modal.stories.jsx +5 -2
- package/src/patterns/components/modal/modal.wingsuit.yml +20 -20
- package/src/patterns/components/navigation/index.js +3 -3
- package/src/patterns/components/navigation/navigation.behavior.js +2 -2
- package/src/patterns/components/navigation/navigation.js +110 -37
- package/src/patterns/components/navigation/navigation.stories.jsx +5 -2
- package/src/patterns/components/navigation/navigation.wingsuit.yml +7 -7
- package/src/patterns/components/notification/index.js +3 -3
- package/src/patterns/components/notification/notification.behavior.js +3 -3
- package/src/patterns/components/notification/notification.js +4 -2
- package/src/patterns/components/notification/notification.stories.jsx +5 -2
- package/src/patterns/components/notification/notification.wingsuit.yml +7 -7
- package/src/patterns/components/pagination/Pagination.stories.jsx +4 -2
- package/src/patterns/components/pagination/index.js +2 -2
- package/src/patterns/components/pagination/pagination.wingsuit.yml +12 -12
- package/src/patterns/components/polyfill/index.js +2 -2
- package/src/patterns/components/profile/index.js +2 -2
- package/src/patterns/components/profile/profile.stories.jsx +5 -2
- package/src/patterns/components/profile/profile.wingsuit.yml +3 -3
- package/src/patterns/components/readmore/index.js +3 -3
- package/src/patterns/components/readmore/readmore.behavior.js +2 -2
- package/src/patterns/components/readmore/readmore.js +4 -2
- package/src/patterns/components/readmore/readmore.stories.jsx +5 -2
- package/src/patterns/components/readmore/readmore.wingsuit.yml +4 -4
- package/src/patterns/components/richtext/index.js +2 -2
- package/src/patterns/components/richtext/richtext.stories.jsx +5 -2
- package/src/patterns/components/richtext/richtext.wingsuit.yml +1 -1
- package/src/patterns/components/searchfield/index.js +2 -2
- package/src/patterns/components/searchfield/searchfield.stories.jsx +5 -2
- package/src/patterns/components/searchfield/searchfield.wingsuit.yml +1 -1
- package/src/patterns/components/table/index.js +3 -3
- package/src/patterns/components/table/table.behavior.js +2 -2
- package/src/patterns/components/table/table.js +66 -44
- package/src/patterns/components/table/table.stories.jsx +5 -2
- package/src/patterns/components/table/table.wingsuit.yml +11 -21
- package/src/patterns/components/tableofcontents/index.js +3 -3
- package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +2 -2
- package/src/patterns/components/tableofcontents/tableofcontents.js +27 -19
- package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +5 -2
- package/src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml +14 -14
- package/src/patterns/components/tabs/index.js +3 -3
- package/src/patterns/components/tabs/tabs.behavior.js +4 -4
- package/src/patterns/components/tabs/tabs.js +12 -8
- package/src/patterns/components/tabs/tabs.stories.jsx +5 -2
- package/src/patterns/components/tabs/tabs.wingsuit.yml +120 -120
- package/src/patterns/components/tags/index.js +3 -3
- package/src/patterns/components/tags/tag.behavior.js +2 -2
- package/src/patterns/components/tags/tag.js +12 -12
- package/src/patterns/components/tags/tag.stories.jsx +5 -2
- package/src/patterns/components/tags/tag.wingsuit.yml +3 -3
- package/src/patterns/components/tags/tags.wingsuit.yml +1 -1
- package/src/patterns/components/tooltip/index.js +3 -3
- package/src/patterns/components/tooltip/tooltip.behavior.js +2 -2
- package/src/patterns/components/tooltip/tooltip.js +35 -25
- package/src/patterns/components/tooltip/tooltip.stories.jsx +5 -2
- package/src/patterns/components/tooltip/tooltip.wingsuit.yml +4 -4
- package/src/patterns/components/video/index.js +3 -3
- package/src/patterns/components/video/video.behavior.js +2 -2
- package/src/patterns/components/video/video.js +6 -5
- package/src/patterns/components/video/video.stories.jsx +5 -2
- package/src/patterns/components/video/video.wingsuit.yml +11 -11
- package/src/vendorjs/lib.vendor.js +1 -1
- package/wingsuit.config.js +14 -13
- package/.editorconfig +0 -12
- package/.eslintignore +0 -11
- package/.prettierignore +0 -16
- package/.prettierrc.js +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
form:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/form/form.twig"
|
|
3
3
|
label: Form
|
|
4
4
|
description: A component for displaying a form.
|
|
5
5
|
fields:
|
|
@@ -102,10 +102,10 @@ form:
|
|
|
102
102
|
legend: "Radio Group"
|
|
103
103
|
type: "radio"
|
|
104
104
|
- field:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
helper: "The file upload's helper text"
|
|
106
|
+
label: "File Upload Field Label"
|
|
107
|
+
name: "fileupload"
|
|
108
|
+
placeholder: "File Upload Field"
|
|
109
109
|
type: "file"
|
|
110
110
|
- field:
|
|
111
111
|
label: "Date Picker Field Label"
|
|
@@ -113,9 +113,9 @@ form:
|
|
|
113
113
|
placeholder: "MM/DD/YYYY"
|
|
114
114
|
type: "date"
|
|
115
115
|
- field:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
label: "Number Picker Field Label"
|
|
117
|
+
name: "text"
|
|
118
|
+
placeholder: "Number Picker Field"
|
|
119
119
|
type: "number"
|
|
120
120
|
- field:
|
|
121
121
|
label: "Textarea"
|
|
@@ -202,10 +202,10 @@ form:
|
|
|
202
202
|
legend: "Radio Group"
|
|
203
203
|
type: "radio"
|
|
204
204
|
- field:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
helper: "The file upload's helper text"
|
|
206
|
+
label: "File Upload Field Label"
|
|
207
|
+
name: "fileupload"
|
|
208
|
+
placeholder: "File Upload Field"
|
|
209
209
|
type: "file"
|
|
210
210
|
- field:
|
|
211
211
|
enddata:
|
|
@@ -219,9 +219,9 @@ form:
|
|
|
219
219
|
range: true
|
|
220
220
|
type: "date"
|
|
221
221
|
- field:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
label: "Number Picker Field Label"
|
|
223
|
+
name: "text"
|
|
224
|
+
placeholder: "Number Picker Field"
|
|
225
225
|
type: "number"
|
|
226
226
|
- field:
|
|
227
227
|
label: "Textarea"
|
|
@@ -343,13 +343,13 @@ form:
|
|
|
343
343
|
legend: "Radio Group"
|
|
344
344
|
type: "radio"
|
|
345
345
|
- field:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
346
|
+
label: "File Upload Field Label"
|
|
347
|
+
name: "fileupload"
|
|
348
|
+
placeholder: "File Upload Field"
|
|
349
|
+
tooltip:
|
|
350
|
+
label: "tooltip"
|
|
351
|
+
icon: true
|
|
352
|
+
theme: "dark"
|
|
353
353
|
type: "file"
|
|
354
354
|
- field:
|
|
355
355
|
label: "Date Picker Field Label"
|
|
@@ -361,13 +361,13 @@ form:
|
|
|
361
361
|
theme: "dark"
|
|
362
362
|
type: "date"
|
|
363
363
|
- field:
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
364
|
+
label: "Number Picker Field Label"
|
|
365
|
+
name: "text"
|
|
366
|
+
placeholder: "Number Picker Field"
|
|
367
|
+
tooltip:
|
|
368
|
+
label: "tooltip"
|
|
369
|
+
icon: true
|
|
370
|
+
theme: "dark"
|
|
371
371
|
type: "number"
|
|
372
372
|
- field:
|
|
373
373
|
label: "Textarea"
|
|
@@ -477,13 +477,13 @@ form:
|
|
|
477
477
|
legend: "Radio Group"
|
|
478
478
|
type: "radio"
|
|
479
479
|
- field:
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
480
|
+
label: "File Upload Field Label"
|
|
481
|
+
name: "fileupload"
|
|
482
|
+
placeholder: "File Upload Field"
|
|
483
|
+
tooltip:
|
|
484
|
+
label: "tooltip"
|
|
485
|
+
icon: true
|
|
486
|
+
theme: dark
|
|
487
487
|
type: "file"
|
|
488
488
|
- field:
|
|
489
489
|
enddata:
|
|
@@ -491,7 +491,7 @@ form:
|
|
|
491
491
|
name: "datepickerend"
|
|
492
492
|
placeholder: "MM/DD/YYYY"
|
|
493
493
|
tooltip:
|
|
494
|
-
label:
|
|
494
|
+
label: "tooltip"
|
|
495
495
|
icon: true
|
|
496
496
|
theme: dark
|
|
497
497
|
label: "Date Picker Field Label"
|
|
@@ -504,13 +504,13 @@ form:
|
|
|
504
504
|
range: true
|
|
505
505
|
type: "date"
|
|
506
506
|
- field:
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
507
|
+
label: "Number Picker Field Label"
|
|
508
|
+
name: "text"
|
|
509
|
+
placeholder: "Number Picker Field"
|
|
510
|
+
tooltip:
|
|
511
|
+
label: "tooltip"
|
|
512
|
+
icon: true
|
|
513
|
+
theme: "dark"
|
|
514
514
|
type: "number"
|
|
515
515
|
- field:
|
|
516
516
|
label: "Textarea"
|
|
@@ -535,7 +535,7 @@ form:
|
|
|
535
535
|
name: "text"
|
|
536
536
|
placeholder: "Text Field"
|
|
537
537
|
type: "text"
|
|
538
|
-
error:
|
|
538
|
+
error: "this is an error message form the server"
|
|
539
539
|
type: "input"
|
|
540
540
|
- field:
|
|
541
541
|
id: "dropdown"
|
|
@@ -552,13 +552,13 @@ form:
|
|
|
552
552
|
value: "four"
|
|
553
553
|
- label: "Option Five"
|
|
554
554
|
value: "the fifth"
|
|
555
|
-
error:
|
|
555
|
+
error: "this is an error message form the server"
|
|
556
556
|
type: "dropdown"
|
|
557
557
|
- field:
|
|
558
558
|
label: "Checkbox Label"
|
|
559
559
|
name: "checkbox"
|
|
560
560
|
type: "checkbox"
|
|
561
|
-
error:
|
|
561
|
+
error: "this is an error message form the server"
|
|
562
562
|
type: "checkbox"
|
|
563
563
|
- choicegroupid: "multiplecheckboxes"
|
|
564
564
|
field:
|
|
@@ -584,7 +584,7 @@ form:
|
|
|
584
584
|
type: "checkbox"
|
|
585
585
|
legend: "Multiple Checkboxes"
|
|
586
586
|
type: "checkbox"
|
|
587
|
-
grouperror:
|
|
587
|
+
grouperror: "this is an error message form the server"
|
|
588
588
|
- choicegroupid: "radios"
|
|
589
589
|
field:
|
|
590
590
|
- label: "Radio Field Label 1"
|
|
@@ -607,33 +607,33 @@ form:
|
|
|
607
607
|
name: "radio"
|
|
608
608
|
type: "radio"
|
|
609
609
|
value: "radio5"
|
|
610
|
-
grouperror:
|
|
610
|
+
grouperror: "this is an error message form the server"
|
|
611
611
|
legend: "Radio Group"
|
|
612
612
|
type: "radio"
|
|
613
613
|
- field:
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
614
|
+
helper: "The file upload's helper text"
|
|
615
|
+
label: "File Upload Field Label"
|
|
616
|
+
name: "fileupload"
|
|
617
|
+
placeholder: "File Upload Field"
|
|
618
|
+
error: "this is an error message form the server"
|
|
619
619
|
type: "file"
|
|
620
620
|
- field:
|
|
621
621
|
label: "Date Picker Field Label"
|
|
622
622
|
name: "datepicker"
|
|
623
623
|
placeholder: "MM/DD/YYYY"
|
|
624
|
-
error:
|
|
624
|
+
error: "this is an error message form the server"
|
|
625
625
|
type: "date"
|
|
626
626
|
- field:
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
627
|
+
label: "Number Picker Field Label"
|
|
628
|
+
name: "text"
|
|
629
|
+
placeholder: "Number Picker Field"
|
|
630
|
+
error: "this is an error message form the server"
|
|
631
631
|
type: "number"
|
|
632
632
|
- field:
|
|
633
633
|
label: "Textarea"
|
|
634
634
|
name: "textarea"
|
|
635
635
|
placeholder: "Textarea"
|
|
636
|
-
error:
|
|
636
|
+
error: "this is an error message form the server"
|
|
637
637
|
type: "textarea"
|
|
638
638
|
- field:
|
|
639
639
|
formgroupid: "formgroup"
|
|
@@ -643,7 +643,7 @@ form:
|
|
|
643
643
|
name: "text"
|
|
644
644
|
placeholder: "Text Field"
|
|
645
645
|
type: "text"
|
|
646
|
-
error:
|
|
646
|
+
error: "this is an error message form the server"
|
|
647
647
|
type: "input"
|
|
648
648
|
- field:
|
|
649
649
|
id: "dropdown"
|
|
@@ -660,13 +660,13 @@ form:
|
|
|
660
660
|
value: "four"
|
|
661
661
|
- label: "Option Five"
|
|
662
662
|
value: "the fifth"
|
|
663
|
-
error:
|
|
663
|
+
error: "this is an error message form the server"
|
|
664
664
|
type: "dropdown"
|
|
665
665
|
- field:
|
|
666
666
|
label: "Checkbox Label"
|
|
667
667
|
name: "checkbox"
|
|
668
668
|
type: "checkbox"
|
|
669
|
-
error:
|
|
669
|
+
error: "this is an error message form the server"
|
|
670
670
|
type: "checkbox"
|
|
671
671
|
- choicegroupid: "multiplecheckboxes"
|
|
672
672
|
field:
|
|
@@ -692,7 +692,7 @@ form:
|
|
|
692
692
|
type: "checkbox"
|
|
693
693
|
legend: "Multiple Checkboxes"
|
|
694
694
|
type: "checkbox"
|
|
695
|
-
grouperror:
|
|
695
|
+
grouperror: "this is an error message form the server"
|
|
696
696
|
- choicegroupid: "radios"
|
|
697
697
|
field:
|
|
698
698
|
- label: "Radio Field Label 1"
|
|
@@ -717,36 +717,36 @@ form:
|
|
|
717
717
|
value: "radio5"
|
|
718
718
|
legend: "Radio Group"
|
|
719
719
|
type: "radio"
|
|
720
|
-
grouperror:
|
|
720
|
+
grouperror: "this is an error message form the server"
|
|
721
721
|
- field:
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
722
|
+
label: "File Upload Field Label"
|
|
723
|
+
name: "fileupload"
|
|
724
|
+
placeholder: "File Upload Field"
|
|
725
|
+
error: "this is an error message form the server"
|
|
726
726
|
type: "file"
|
|
727
727
|
- field:
|
|
728
728
|
enddata:
|
|
729
729
|
label: "Date Picker End Field Label"
|
|
730
730
|
name: "datepickerend"
|
|
731
731
|
placeholder: "MM/DD/YYYY"
|
|
732
|
-
error:
|
|
732
|
+
error: "this is an error message form the server"
|
|
733
733
|
label: "Date Picker Field Label"
|
|
734
734
|
name: "datepicker"
|
|
735
735
|
placeholder: "MM/DD/YYYY"
|
|
736
|
-
error:
|
|
736
|
+
error: "this is an error message form the server"
|
|
737
737
|
range: true
|
|
738
738
|
type: "date"
|
|
739
739
|
- field:
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
740
|
+
label: "Number Picker Field Label"
|
|
741
|
+
name: "text"
|
|
742
|
+
placeholder: "Number Picker Field"
|
|
743
|
+
error: "this is an error message form the server"
|
|
744
744
|
type: "number"
|
|
745
745
|
- field:
|
|
746
746
|
label: "Textarea"
|
|
747
747
|
name: "textarea"
|
|
748
748
|
placeholder: "Textarea"
|
|
749
|
-
error:
|
|
749
|
+
error: "this is an error message form the server"
|
|
750
750
|
type: "textarea"
|
|
751
751
|
legend: "Example Form Group"
|
|
752
752
|
type: "default"
|
|
@@ -838,10 +838,10 @@ form:
|
|
|
838
838
|
legend: "Radio Group"
|
|
839
839
|
type: "radio"
|
|
840
840
|
- field:
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
841
|
+
label: "File Upload Field Label"
|
|
842
|
+
name: "fileupload"
|
|
843
|
+
placeholder: "File Upload Field"
|
|
844
|
+
helper: "this is the helper text"
|
|
845
845
|
type: "file"
|
|
846
846
|
- field:
|
|
847
847
|
label: "Date Picker Field Label"
|
|
@@ -850,10 +850,10 @@ form:
|
|
|
850
850
|
helper: "this is the helper text"
|
|
851
851
|
type: "date"
|
|
852
852
|
- field:
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
853
|
+
label: "Number Picker Field Label"
|
|
854
|
+
name: "text"
|
|
855
|
+
placeholder: "Number Picker Field"
|
|
856
|
+
helper: "this is the helper text"
|
|
857
857
|
type: "number"
|
|
858
858
|
- field:
|
|
859
859
|
label: "Textarea"
|
|
@@ -945,10 +945,10 @@ form:
|
|
|
945
945
|
type: "radio"
|
|
946
946
|
grouphelper: "this is the helper text"
|
|
947
947
|
- field:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
948
|
+
label: "File Upload Field Label"
|
|
949
|
+
name: "fileupload"
|
|
950
|
+
placeholder: "File Upload Field"
|
|
951
|
+
helper: "this is the helper text"
|
|
952
952
|
type: "file"
|
|
953
953
|
- field:
|
|
954
954
|
enddata:
|
|
@@ -963,10 +963,10 @@ form:
|
|
|
963
963
|
range: true
|
|
964
964
|
type: "date"
|
|
965
965
|
- field:
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
966
|
+
label: "Number Picker Field Label"
|
|
967
|
+
name: "text"
|
|
968
|
+
placeholder: "Number Picker Field"
|
|
969
|
+
helper: "this is the helper text"
|
|
970
970
|
type: "number"
|
|
971
971
|
- field:
|
|
972
972
|
label: "Textarea"
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./hero.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
hero:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/hero/hero.twig"
|
|
3
3
|
label: Hero
|
|
4
4
|
description: The Hero presents an image banner.
|
|
5
5
|
fields:
|
|
@@ -64,7 +64,7 @@ hero:
|
|
|
64
64
|
label: Theme
|
|
65
65
|
description: The theme type for the hero
|
|
66
66
|
required: false
|
|
67
|
-
preview:
|
|
67
|
+
preview: "dark"
|
|
68
68
|
options:
|
|
69
69
|
dark: Dark
|
|
70
70
|
light: Light
|
|
@@ -74,14 +74,14 @@ hero:
|
|
|
74
74
|
description: does the hero card have a background? (Defaults to true, only applied to Home Hero)
|
|
75
75
|
options:
|
|
76
76
|
true: true
|
|
77
|
-
false:
|
|
77
|
+
false: "false"
|
|
78
78
|
preview: true
|
|
79
79
|
types:
|
|
80
80
|
type: select
|
|
81
81
|
label: Types
|
|
82
82
|
description: The type of hero
|
|
83
83
|
required: false
|
|
84
|
-
preview:
|
|
84
|
+
preview: "publication"
|
|
85
85
|
options:
|
|
86
86
|
home: Home
|
|
87
87
|
publication: Publication
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./herocard.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
herocard:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/herocard/herocard.twig"
|
|
3
3
|
label: Hero Card
|
|
4
4
|
description: The Hero card, a subcomponent of the hero
|
|
5
5
|
id: herocard
|
|
@@ -41,9 +41,9 @@ herocard:
|
|
|
41
41
|
label: Alignment
|
|
42
42
|
description: alignment for card
|
|
43
43
|
options:
|
|
44
|
-
left:
|
|
45
|
-
center:
|
|
46
|
-
right:
|
|
44
|
+
left: "left"
|
|
45
|
+
center: "center"
|
|
46
|
+
right: "right"
|
|
47
47
|
preview: "center"
|
|
48
48
|
hasbackground:
|
|
49
49
|
type: select
|
|
@@ -51,6 +51,6 @@ herocard:
|
|
|
51
51
|
description: does the hero card have a background? (Defaults to true, only applied to Home Hero)
|
|
52
52
|
options:
|
|
53
53
|
true: true
|
|
54
|
-
false:
|
|
54
|
+
false: "false"
|
|
55
55
|
preview: true
|
|
56
56
|
visibility: storybook
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./image.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
image:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/image/image.twig"
|
|
3
3
|
label: Image
|
|
4
4
|
description: A component for displaying an image.
|
|
5
5
|
fields:
|
|
@@ -8,17 +8,17 @@ image:
|
|
|
8
8
|
label: Alt
|
|
9
9
|
description: alt text for the image
|
|
10
10
|
required: true
|
|
11
|
-
preview:
|
|
11
|
+
preview: "My alt text"
|
|
12
12
|
caption:
|
|
13
13
|
type: string
|
|
14
14
|
label: Caption
|
|
15
15
|
description: string
|
|
16
|
-
preview:
|
|
16
|
+
preview: "my image caption"
|
|
17
17
|
credit:
|
|
18
18
|
type: string
|
|
19
19
|
label: Credit
|
|
20
20
|
description: string
|
|
21
|
-
preview:
|
|
21
|
+
preview: "Photo: copyright 2022 Person S. Name"
|
|
22
22
|
required: true
|
|
23
23
|
url:
|
|
24
24
|
type: object
|
|
@@ -27,13 +27,13 @@ image:
|
|
|
27
27
|
required: true
|
|
28
28
|
preview:
|
|
29
29
|
- breakpoint: 0
|
|
30
|
-
src:
|
|
30
|
+
src: "https://place-hold.it/400x300?text=SmallBreakpointImage"
|
|
31
31
|
- breakpoint: 800
|
|
32
|
-
src:
|
|
32
|
+
src: "https://place-hold.it/800x600?text=MediumBreakpointImage"
|
|
33
33
|
- breakpoint: 1200
|
|
34
|
-
src:
|
|
34
|
+
src: "https://place-hold.it/1200x900?text=LargeBreakpointImage"
|
|
35
35
|
- breakpoint: 1440
|
|
36
|
-
src:
|
|
36
|
+
src: "https://place-hold.it/1600x1200?text=LargestBreakpointImage"
|
|
37
37
|
settings:
|
|
38
38
|
ishero:
|
|
39
39
|
type: select
|
|
@@ -43,5 +43,5 @@ image:
|
|
|
43
43
|
required: false
|
|
44
44
|
options:
|
|
45
45
|
True: true
|
|
46
|
-
False:
|
|
46
|
+
False: "false"
|
|
47
47
|
visibility: storybook
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./link.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
link:
|
|
2
|
-
use:
|
|
2
|
+
use: "@components/link/link.twig"
|
|
3
3
|
label: Link
|
|
4
4
|
description: A component for displaying a link.
|
|
5
5
|
fields:
|
|
@@ -21,7 +21,7 @@ link:
|
|
|
21
21
|
description: Optional link label
|
|
22
22
|
preview: "Link"
|
|
23
23
|
required: false
|
|
24
|
-
settings:
|
|
24
|
+
settings:
|
|
25
25
|
theme:
|
|
26
26
|
type: select
|
|
27
27
|
label: Theme
|
|
@@ -31,5 +31,5 @@ link:
|
|
|
31
31
|
light: Light
|
|
32
32
|
dark: Dark
|
|
33
33
|
footer: Footer
|
|
34
|
-
preview:
|
|
34
|
+
preview: "light"
|
|
35
35
|
visibility: storybook
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export default {};
|
|
4
|
+
const patternDefinition = require("./linklist.wingsuit.yml");
|
|
4
5
|
|
|
6
|
+
/* eslint-disable-next-line */
|
|
5
7
|
export const wingsuit = {
|
|
6
8
|
patternDefinition,
|
|
7
9
|
parameters: {
|