katalyst-koi 5.9.0 → 5.10.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.
- checksums.yaml +4 -4
- data/app/assets/builds/katalyst/koi.esm.js +2 -15
- data/app/assets/builds/katalyst/koi.js +2 -15
- data/app/assets/builds/katalyst/koi.min.js +1 -1
- data/app/assets/builds/katalyst/koi.min.js.map +1 -1
- data/app/assets/stylesheets/koi/blocks/button.css +4 -2
- data/app/assets/stylesheets/koi/forms/file-upload.css +279 -0
- data/app/assets/stylesheets/koi/forms/index.css +0 -2
- data/app/javascript/koi/application.js +0 -14
- data/app/javascript/koi/controllers/index.js +2 -2
- data/app/models/background_job.rb +1 -1
- data/app/views/admin/sessions/password.html.erb +0 -3
- data/lib/generators/koi/helpers/attribute_helpers.rb +6 -0
- data/lib/koi/form/builder.rb +14 -4
- metadata +1 -10
- data/app/assets/builds/koi/admin.css +0 -1
- data/app/assets/stylesheets/koi/forms/document-field.css +0 -84
- data/app/assets/stylesheets/koi/forms/image-field.css +0 -96
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
.govuk-document-field {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-areas:
|
|
4
|
-
"label"
|
|
5
|
-
"hint"
|
|
6
|
-
"error"
|
|
7
|
-
"preview"
|
|
8
|
-
"file"
|
|
9
|
-
"supplemental";
|
|
10
|
-
grid-template-columns: auto;
|
|
11
|
-
grid-auto-rows: auto;
|
|
12
|
-
|
|
13
|
-
label {
|
|
14
|
-
grid-area: label;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.govuk-hint {
|
|
18
|
-
grid-area: hint;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.govuk-error-message {
|
|
22
|
-
grid-area: error;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
input {
|
|
26
|
-
grid-area: file;
|
|
27
|
-
|
|
28
|
-
&::file-selector-button {
|
|
29
|
-
color: var(--color-dark);
|
|
30
|
-
background: var(--color-tint);
|
|
31
|
-
border: var(--stroke-input);
|
|
32
|
-
border-radius: var(--input-radius);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.preview-file {
|
|
37
|
-
grid-area: preview;
|
|
38
|
-
position: relative;
|
|
39
|
-
overflow: visible;
|
|
40
|
-
background-color: var(--color-tint);
|
|
41
|
-
border: var(--stroke-input);
|
|
42
|
-
border-radius: var(--input-radius);
|
|
43
|
-
margin-bottom: var(--space-2xs);
|
|
44
|
-
padding: var(--space-3xs);
|
|
45
|
-
line-height: var(--leading-standard);
|
|
46
|
-
align-items: start;
|
|
47
|
-
margin-right: auto;
|
|
48
|
-
|
|
49
|
-
&:not([hidden]) {
|
|
50
|
-
display: inline-flex;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.preview-filename {
|
|
54
|
-
line-height: unset;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.file-destroy {
|
|
58
|
-
appearance: none;
|
|
59
|
-
color: black;
|
|
60
|
-
border: none;
|
|
61
|
-
background: none;
|
|
62
|
-
display: inline-block;
|
|
63
|
-
margin-left: 0.2rem;
|
|
64
|
-
padding: 0;
|
|
65
|
-
|
|
66
|
-
&::after {
|
|
67
|
-
content: "×";
|
|
68
|
-
display: block;
|
|
69
|
-
position: relative;
|
|
70
|
-
width: 21px;
|
|
71
|
-
line-height: 21px;
|
|
72
|
-
font-size: 21px;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
> div:last-child {
|
|
78
|
-
grid-area: supplemental;
|
|
79
|
-
|
|
80
|
-
> * + * {
|
|
81
|
-
margin-top: var(--flow-space, var(--space-2xs));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
.govuk-image-field {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-areas:
|
|
4
|
-
"label preview"
|
|
5
|
-
"hint preview"
|
|
6
|
-
"error preview"
|
|
7
|
-
"file preview"
|
|
8
|
-
"supplemental supplemental";
|
|
9
|
-
grid-template-columns: 1fr auto;
|
|
10
|
-
grid-template-rows: auto auto auto 1fr auto;
|
|
11
|
-
gap: 0 1rem;
|
|
12
|
-
|
|
13
|
-
label {
|
|
14
|
-
grid-area: label;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.govuk-hint {
|
|
18
|
-
grid-area: hint;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.govuk-error-message {
|
|
22
|
-
grid-area: error;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
input {
|
|
26
|
-
grid-area: file;
|
|
27
|
-
align-self: start;
|
|
28
|
-
|
|
29
|
-
&::file-selector-button {
|
|
30
|
-
color: var(--color-dark);
|
|
31
|
-
background: var(--color-tint);
|
|
32
|
-
border: var(--stroke-input);
|
|
33
|
-
border-radius: var(--input-radius);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.preview-image {
|
|
38
|
-
grid-area: preview;
|
|
39
|
-
position: relative;
|
|
40
|
-
display: grid;
|
|
41
|
-
overflow: visible;
|
|
42
|
-
align-self: start;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-items: center;
|
|
45
|
-
background-color: var(--color-tint);
|
|
46
|
-
border: var(--stroke-input);
|
|
47
|
-
border-radius: var(--input-radius);
|
|
48
|
-
|
|
49
|
-
min-width: calc(8em + 2 * var(--stroke-input-width));
|
|
50
|
-
aspect-ratio: 1;
|
|
51
|
-
|
|
52
|
-
.image-thumbnail {
|
|
53
|
-
max-width: 8em;
|
|
54
|
-
max-height: 8em;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.file-destroy {
|
|
59
|
-
appearance: none;
|
|
60
|
-
position: absolute;
|
|
61
|
-
background-color: var(--color-tint);
|
|
62
|
-
color: var(--color-dark);
|
|
63
|
-
border-radius: var(--input-radius);
|
|
64
|
-
border: var(--stroke-input);
|
|
65
|
-
display: block;
|
|
66
|
-
padding: 0;
|
|
67
|
-
top: calc(-1 * var(--stroke-input-width));
|
|
68
|
-
right: calc(-1 * var(--stroke-input-width));
|
|
69
|
-
|
|
70
|
-
&::after {
|
|
71
|
-
content: "×";
|
|
72
|
-
display: block;
|
|
73
|
-
position: relative;
|
|
74
|
-
width: 21px;
|
|
75
|
-
line-height: 21px;
|
|
76
|
-
font-size: 21px;
|
|
77
|
-
top: -1px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
> div:last-child {
|
|
82
|
-
grid-area: supplemental;
|
|
83
|
-
|
|
84
|
-
> * + * {
|
|
85
|
-
margin-top: var(--flow-space, var(--space-2xs));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.preview-image[hidden] {
|
|
90
|
-
display: block !important;
|
|
91
|
-
|
|
92
|
-
.file-destroy {
|
|
93
|
-
display: none;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|