@mrfylke/contact-form 0.1.5 → 0.1.7
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/README.md +17 -0
- package/lib/components/button/button.module.css +151 -139
- package/lib/components/checkbox/checkbox.module.css +40 -37
- package/lib/components/error-message/error-message.module.css +2 -2
- package/lib/components/external-link-page.module.css +15 -15
- package/lib/components/form/fieldset/fieldset.module.css +15 -15
- package/lib/components/form/form-component-label/form-component-label.module.css +4 -4
- package/lib/components/form/form.module.css +324 -308
- package/lib/components/loading/loading.module.css +9 -9
- package/lib/components/section-card/section-card.module.css +10 -10
- package/lib/contact.module.css +37 -36
- package/lib/error-content/error-content.module.css +7 -7
- package/lib/layouts/container.module.css +10 -10
- package/lib/layouts/layout.module.css +46 -45
- package/lib/modules/config/types.d.ts +2 -32
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/filter.module.css +51 -49
- package/lib/modules/transport-mode/icon/icon.module.css +14 -14
- package/lib/success-content/success-content.module.css +7 -7
- package/lib/translations/modules/index.d.ts +0 -1
- package/lib/translations/modules/index.d.ts.map +1 -1
- package/lib/translations/modules/index.js +1 -3
- package/package.json +2 -3
- package/lib/layouts/contact-form-footer.d.ts +0 -5
- package/lib/layouts/contact-form-footer.d.ts.map +0 -1
- package/lib/layouts/contact-form-footer.js +0 -75
- package/lib/layouts/contact-form-header.d.ts +0 -9
- package/lib/layouts/contact-form-header.d.ts.map +0 -1
- package/lib/layouts/contact-form-header.js +0 -50
- package/lib/layouts/footer.module.css +0 -109
- package/lib/layouts/header.module.css +0 -39
- package/lib/translations/modules/layout.d.ts +0 -73
- package/lib/translations/modules/layout.d.ts.map +0 -1
- package/lib/translations/modules/layout.js +0 -106
- package/lib/utils/use-localstorage.d.ts +0 -2
- package/lib/utils/use-localstorage.d.ts.map +0 -1
- package/lib/utils/use-localstorage.js +0 -40
- package/lib/utils/user-media-query.d.ts +0 -2
- package/lib/utils/user-media-query.d.ts.map +0 -1
- package/lib/utils/user-media-query.js +0 -36
|
@@ -4,93 +4,96 @@
|
|
|
4
4
|
|
|
5
5
|
/* Checkbox */
|
|
6
6
|
.checkbox {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
display: block;
|
|
8
|
+
transition:
|
|
9
|
+
border 150ms ease-in-out,
|
|
9
10
|
background-color 100ms ease;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
padding: token('spacing.medium');
|
|
13
|
+
border-radius: token('border.radius.small');
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.checkbox:not(.checkbox--readonly) {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
background-color: token('color.interactive.2.default.background');
|
|
18
|
+
color: token('color.interactive.2.default.foreground.primary');
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.checkbox:not(.checkbox--readonly):hover {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
background-color: token('color.interactive.2.hover.background');
|
|
23
|
+
color: token('color.interactive.2.hover.foreground.primary');
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
.checkbox:not(.checkbox--readonly):active {
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
background-color: token('color.interactive.2.active.background');
|
|
28
|
+
color: token('color.interactive.2.active.foreground.primary');
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.checkbox:not(.checkbox--readonly):disabled {
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
background-color: token('color.interactive.2.disabled.background');
|
|
33
|
+
color: token('color.interactive.2.disabled.foreground.primary');
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.checkbox:not(.checkbox--readonly):focus-within {
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
outline: 0;
|
|
38
|
+
box-shadow: inset 0 0 0 token('border.width.slim')
|
|
39
|
+
token('color.interactive.2.outline.background');
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.checkbox--expand {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
display: flex;
|
|
44
|
+
flex: 1;
|
|
45
|
+
flex-grow: 1;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.checkbox--disabled {
|
|
47
|
-
|
|
49
|
+
cursor: not-allowed;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
.checkbox--disabled > * {
|
|
51
|
-
|
|
53
|
+
opacity: 0.2;
|
|
52
54
|
}
|
|
53
55
|
|
|
54
56
|
.checkbox--error {
|
|
55
|
-
|
|
57
|
+
border-color: token('color.status.error.primary.background');
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.checkbox__checkbox {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
position: absolute;
|
|
62
|
+
opacity: 0;
|
|
63
|
+
width: 1px;
|
|
64
|
+
height: 1px;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
.checkbox__checkbox:focus {
|
|
66
|
-
|
|
68
|
+
outline: 0;
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
.checkbox__checkbox[readonly] {
|
|
70
|
-
|
|
72
|
+
color: token('color.foreground.dynamic.secondary');
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
:global(.dark) .checkbox__checkbox::-webkit-calendar-picker-indicator {
|
|
74
|
-
|
|
76
|
+
filter: invert(1);
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.checkbox__content {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
display: flex;
|
|
81
|
+
gap: token('spacing.medium');
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
.checkbox__label {
|
|
83
|
-
|
|
85
|
+
flex: 1;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
.checkbox__description {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
flex: 1;
|
|
90
|
+
opacity: 0.6;
|
|
91
|
+
margin-top: token('spacing.small');
|
|
92
|
+
composes: typo-body__s from '@atb-as/theme/lib/generated/typography.module.css';
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
.checkbox__checkbox:not(:checked) + .checkbox__icon {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
border: token('border.width.slim') solid
|
|
97
|
+
token('color.foreground.dynamic.primary');
|
|
98
|
+
border-radius: token('border.radius.small');
|
|
96
99
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
.externalLinkPage {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
min-height: 400px;
|
|
7
|
+
padding: var(--spacer-large);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.externalLinkPage__content {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: var(--spacer-medium);
|
|
15
|
+
max-width: 600px;
|
|
16
|
+
text-align: center;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.externalLinkPage__title {
|
|
20
|
-
|
|
20
|
+
margin-bottom: var(--spacer-small);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.externalLinkPage__description {
|
|
24
|
-
|
|
24
|
+
margin-bottom: var(--spacer-medium);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.externalLinkPage__button {
|
|
28
|
-
|
|
28
|
+
margin-top: var(--spacer-medium);
|
|
29
29
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
.fieldset {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding: token('spacing.large');
|
|
6
|
+
border: none;
|
|
7
|
+
border-radius: token('border.radius.regular');
|
|
8
|
+
color: token('color.background.neutral.0.foreground.primary');
|
|
9
|
+
background-color: token('color.background.neutral.0.background');
|
|
10
|
+
gap: token('spacing.xSmall');
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.fieldset > * + * {
|
|
14
|
-
|
|
14
|
+
margin-top: token('spacing.xLarge');
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.legend {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: token('spacing.medium');
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.required::after {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
content: '*';
|
|
24
|
+
color: token('color.status.error.primary.background');
|
|
25
|
+
margin-left: token('spacing.small');
|
|
26
26
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.required::after {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
content: '*';
|
|
3
|
+
color: token('color.status.error.primary.background');
|
|
4
|
+
margin-left: token('spacing.small');
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.disabled,
|
|
8
8
|
.disabled::after {
|
|
9
|
-
|
|
9
|
+
color: token('color.foreground.dynamic.disabled');
|
|
10
10
|
}
|