katalyst-govuk-formbuilder 1.2.2 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/builds/katalyst/govuk/formbuilder.css +25 -21
- data/app/assets/{javascripts → builds}/katalyst/govuk/formbuilder.js +606 -203
- data/app/assets/builds/katalyst/govuk/formbuilder.min.js +1 -0
- data/app/assets/config/katalyst-govuk-formbuilder.js +2 -0
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +48 -0
- data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_richtextarea.scss +2 -0
- data/app/assets/stylesheets/katalyst/govuk/formbuilder.scss +26 -0
- data/config/importmap.rb +5 -0
- data/lib/govuk_design_system_formbuilder/elements/check_box_field.rb +5 -5
- data/lib/govuk_design_system_formbuilder/elements/rich_text_area.rb +2 -1
- data/lib/katalyst/govuk/formbuilder/engine.rb +3 -8
- data/lib/katalyst/govuk/formbuilder/frontend.rb +2 -0
- data/lib/katalyst/govuk/formbuilder/version.rb +3 -1
- data/lib/katalyst/govuk/formbuilder.rb +2 -0
- metadata +8 -4
- data/app/assets/javascripts/katalyst/govuk/formbuilder.min.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825db35e2cda704416b62b17d88cd78293d52c743f354a4b7c5f706f8831380e
|
4
|
+
data.tar.gz: 3580d6c6732c92f28753731955b162c9eabf8582939d629ebb0979c3650fc12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51c61d52190aa4bd3083568b8020b54a3cd83bf104aa69c0a1fad1c2e0cd08be16439034cac8b97fb149add2f043c55c895729dcca9c130721dc0529f4d3ed02
|
7
|
+
data.tar.gz: 4139797a41ba4364b2e97f025d9d860c5348627a886504eb1c828dfd593bef5bcced2ce0eedc75a87f6ddf1dda9c58c10f4468504ee5e5934bf7b158c53bae85
|
data/README.md
CHANGED
@@ -40,7 +40,7 @@ You can use the provided helper to load the formbuilder esm from importmaps and
|
|
40
40
|
You'll need to include the helper to make this method available, which you can add to your `ApplicationController`:
|
41
41
|
|
42
42
|
```ruby
|
43
|
-
helper Katalyst::GOVUK::
|
43
|
+
helper Katalyst::GOVUK::Formbuilder::Frontend
|
44
44
|
```
|
45
45
|
|
46
46
|
## Contributing
|
@@ -15,6 +15,8 @@
|
|
15
15
|
background-color: #ffdd00;
|
16
16
|
box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
|
17
17
|
text-decoration: none;
|
18
|
+
-webkit-box-decoration-break: clone;
|
19
|
+
box-decoration-break: clone;
|
18
20
|
}
|
19
21
|
.govuk-link:link {
|
20
22
|
color: #1d70b8;
|
@@ -165,7 +167,7 @@
|
|
165
167
|
}
|
166
168
|
@media (min-width: 40.0625em) {
|
167
169
|
.govuk-list--bullet > li,
|
168
|
-
.govuk-list--number > li {
|
170
|
+
.govuk-list--number > li {
|
169
171
|
margin-bottom: 5px;
|
170
172
|
}
|
171
173
|
}
|
@@ -624,8 +626,8 @@
|
|
624
626
|
}
|
625
627
|
@media (min-width: 40.0625em) {
|
626
628
|
.govuk-body-m + .govuk-heading-l, .govuk-body + .govuk-heading-l,
|
627
|
-
.govuk-body-s + .govuk-heading-l,
|
628
|
-
.govuk-list + .govuk-heading-l {
|
629
|
+
.govuk-body-s + .govuk-heading-l,
|
630
|
+
.govuk-list + .govuk-heading-l {
|
629
631
|
padding-top: 20px;
|
630
632
|
}
|
631
633
|
}
|
@@ -641,12 +643,12 @@
|
|
641
643
|
}
|
642
644
|
@media (min-width: 40.0625em) {
|
643
645
|
.govuk-body-m + .govuk-heading-m, .govuk-body + .govuk-heading-m,
|
644
|
-
.govuk-body-s + .govuk-heading-m,
|
645
|
-
.govuk-list + .govuk-heading-m,
|
646
|
-
.govuk-body-m + .govuk-heading-s,
|
647
|
-
.govuk-body + .govuk-heading-s,
|
648
|
-
.govuk-body-s + .govuk-heading-s,
|
649
|
-
.govuk-list + .govuk-heading-s {
|
646
|
+
.govuk-body-s + .govuk-heading-m,
|
647
|
+
.govuk-list + .govuk-heading-m,
|
648
|
+
.govuk-body-m + .govuk-heading-s,
|
649
|
+
.govuk-body + .govuk-heading-s,
|
650
|
+
.govuk-body-s + .govuk-heading-s,
|
651
|
+
.govuk-list + .govuk-heading-s {
|
650
652
|
padding-top: 10px;
|
651
653
|
}
|
652
654
|
}
|
@@ -765,7 +767,7 @@
|
|
765
767
|
align-items: baseline;
|
766
768
|
}
|
767
769
|
.govuk-button-group .govuk-button,
|
768
|
-
.govuk-button-group .govuk-link {
|
770
|
+
.govuk-button-group .govuk-link {
|
769
771
|
margin-right: 15px;
|
770
772
|
}
|
771
773
|
.govuk-button-group .govuk-link {
|
@@ -828,7 +830,7 @@
|
|
828
830
|
}
|
829
831
|
@media (min-width: 40.0625em) {
|
830
832
|
.govuk-grid-column-one-third {
|
831
|
-
width: 33.
|
833
|
+
width: 33.3333333333%;
|
832
834
|
float: left;
|
833
835
|
}
|
834
836
|
}
|
@@ -852,7 +854,7 @@
|
|
852
854
|
}
|
853
855
|
@media (min-width: 40.0625em) {
|
854
856
|
.govuk-grid-column-two-thirds {
|
855
|
-
width: 66.
|
857
|
+
width: 66.6666666667%;
|
856
858
|
float: left;
|
857
859
|
}
|
858
860
|
}
|
@@ -898,7 +900,7 @@
|
|
898
900
|
}
|
899
901
|
@media (min-width: 48.0625em) {
|
900
902
|
.govuk-grid-column-one-third-from-desktop {
|
901
|
-
width: 33.
|
903
|
+
width: 33.3333333333%;
|
902
904
|
float: left;
|
903
905
|
}
|
904
906
|
}
|
@@ -920,7 +922,7 @@
|
|
920
922
|
}
|
921
923
|
@media (min-width: 48.0625em) {
|
922
924
|
.govuk-grid-column-two-thirds-from-desktop {
|
923
|
-
width: 66.
|
925
|
+
width: 66.6666666667%;
|
924
926
|
float: left;
|
925
927
|
}
|
926
928
|
}
|
@@ -965,7 +967,7 @@
|
|
965
967
|
}
|
966
968
|
@media (min-width: 40.0625em) {
|
967
969
|
.govuk-main-wrapper--auto-spacing:first-child,
|
968
|
-
.govuk-main-wrapper--l {
|
970
|
+
.govuk-main-wrapper--l {
|
969
971
|
padding-top: 50px;
|
970
972
|
}
|
971
973
|
}
|
@@ -1250,7 +1252,7 @@
|
|
1250
1252
|
|
1251
1253
|
@supports not (caret-color: auto) {
|
1252
1254
|
.govuk-fieldset,
|
1253
|
-
x:-moz-any-link {
|
1255
|
+
x:-moz-any-link {
|
1254
1256
|
display: table-cell;
|
1255
1257
|
}
|
1256
1258
|
}
|
@@ -1983,13 +1985,13 @@ x:-moz-any-link {
|
|
1983
1985
|
}
|
1984
1986
|
@media print {
|
1985
1987
|
.govuk-input__prefix,
|
1986
|
-
.govuk-input__suffix {
|
1988
|
+
.govuk-input__suffix {
|
1987
1989
|
font-family: sans-serif;
|
1988
1990
|
}
|
1989
1991
|
}
|
1990
1992
|
@media (min-width: 40.0625em) {
|
1991
1993
|
.govuk-input__prefix,
|
1992
|
-
.govuk-input__suffix {
|
1994
|
+
.govuk-input__suffix {
|
1993
1995
|
font-size: 19px;
|
1994
1996
|
font-size: 1.1875rem;
|
1995
1997
|
line-height: 1.3157894737;
|
@@ -1997,20 +1999,20 @@ x:-moz-any-link {
|
|
1997
1999
|
}
|
1998
2000
|
@media print {
|
1999
2001
|
.govuk-input__prefix,
|
2000
|
-
.govuk-input__suffix {
|
2002
|
+
.govuk-input__suffix {
|
2001
2003
|
font-size: 14pt;
|
2002
2004
|
line-height: 1.15;
|
2003
2005
|
}
|
2004
2006
|
}
|
2005
2007
|
@media (max-width: 40.0525em) {
|
2006
2008
|
.govuk-input__prefix,
|
2007
|
-
.govuk-input__suffix {
|
2009
|
+
.govuk-input__suffix {
|
2008
2010
|
line-height: 1.6;
|
2009
2011
|
}
|
2010
2012
|
}
|
2011
2013
|
@media (max-width: 19.99em) {
|
2012
2014
|
.govuk-input__prefix,
|
2013
|
-
.govuk-input__suffix {
|
2015
|
+
.govuk-input__suffix {
|
2014
2016
|
display: block;
|
2015
2017
|
height: 100%;
|
2016
2018
|
white-space: normal;
|
@@ -2182,6 +2184,8 @@ x:-moz-any-link {
|
|
2182
2184
|
background-color: #ffdd00;
|
2183
2185
|
box-shadow: 0 -2px #ffdd00, 0 4px #0b0c0c;
|
2184
2186
|
text-decoration: none;
|
2187
|
+
-webkit-box-decoration-break: clone;
|
2188
|
+
box-decoration-break: clone;
|
2185
2189
|
}
|
2186
2190
|
.govuk-error-summary__list a:link, .govuk-error-summary__list a:visited {
|
2187
2191
|
color: #d4351c;
|