@mrfylke/contact-form 0.1.5 → 0.1.8
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/components/index.d.ts +0 -10
- package/lib/translations/components/index.d.ts.map +1 -1
- package/lib/translations/components/index.js +1 -21
- package/lib/translations/index.d.ts +0 -1
- package/lib/translations/index.d.ts.map +1 -1
- package/lib/translations/index.js +1 -2
- package/lib/translations/json-to-override.d.ts.map +1 -1
- package/lib/translations/json-to-override.js +0 -6
- package/lib/translations/merge-overrides.d.ts +0 -2
- package/lib/translations/merge-overrides.d.ts.map +1 -1
- package/lib/translations/merge-overrides.js +0 -4
- package/lib/translations/pages/index.d.ts +0 -1
- package/lib/translations/pages/index.d.ts.map +1 -1
- package/lib/translations/pages/index.js +1 -3
- package/lib/translations/types.d.ts +0 -2
- package/lib/translations/types.d.ts.map +1 -1
- 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/components/clear-button.d.ts +0 -4
- package/lib/translations/components/clear-button.d.ts.map +0 -1
- package/lib/translations/components/clear-button.js +0 -7
- package/lib/translations/components/departure-date-selector.d.ts +0 -8
- package/lib/translations/components/departure-date-selector.d.ts.map +0 -1
- package/lib/translations/components/departure-date-selector.js +0 -11
- package/lib/translations/components/departure-time.d.ts +0 -8
- package/lib/translations/components/departure-time.d.ts.map +0 -1
- package/lib/translations/components/departure-time.js +0 -11
- package/lib/translations/components/empty-search.d.ts +0 -18
- package/lib/translations/components/empty-search.d.ts.map +0 -1
- package/lib/translations/components/empty-search.js +0 -21
- package/lib/translations/components/geolocation-button.d.ts +0 -10
- package/lib/translations/components/geolocation-button.d.ts.map +0 -1
- package/lib/translations/components/geolocation-button.js +0 -13
- package/lib/translations/components/map.d.ts +0 -19
- package/lib/translations/components/map.d.ts.map +0 -1
- package/lib/translations/components/map.js +0 -22
- package/lib/translations/components/search.d.ts +0 -9
- package/lib/translations/components/search.d.ts.map +0 -1
- package/lib/translations/components/search.js +0 -12
- package/lib/translations/components/swap-button.d.ts +0 -4
- package/lib/translations/components/swap-button.d.ts.map +0 -1
- package/lib/translations/components/swap-button.js +0 -7
- package/lib/translations/components/tab-link.d.ts +0 -5
- package/lib/translations/components/tab-link.d.ts.map +0 -1
- package/lib/translations/components/tab-link.js +0 -8
- package/lib/translations/components/venue-icon.d.ts +0 -9
- package/lib/translations/components/venue-icon.d.ts.map +0 -1
- package/lib/translations/components/venue-icon.js +0 -12
- package/lib/translations/dictionary.d.ts +0 -33
- package/lib/translations/dictionary.d.ts.map +0 -1
- package/lib/translations/dictionary.js +0 -59
- package/lib/translations/modules/index.d.ts +0 -4
- package/lib/translations/modules/index.d.ts.map +0 -1
- package/lib/translations/modules/index.js +0 -9
- 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/translations/modules/search-time.d.ts +0 -8
- package/lib/translations/modules/search-time.d.ts.map +0 -1
- package/lib/translations/modules/search-time.js +0 -11
- package/lib/translations/modules/situation.d.ts +0 -8
- package/lib/translations/modules/situation.d.ts.map +0 -1
- package/lib/translations/modules/situation.js +0 -11
- package/lib/translations/pages/departures.d.ts +0 -64
- package/lib/translations/pages/departures.d.ts.map +0 -1
- package/lib/translations/pages/departures.js +0 -75
- package/lib/utils/env.d.ts +0 -10
- package/lib/utils/env.d.ts.map +0 -1
- package/lib/utils/env.js +0 -49
- package/lib/utils/presence.d.ts +0 -2
- package/lib/utils/presence.d.ts.map +0 -1
- package/lib/utils/presence.js +0 -5
- package/lib/utils/use-debounce.d.ts +0 -3
- package/lib/utils/use-debounce.d.ts.map +0 -1
- package/lib/utils/use-debounce.js +0 -14
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,29 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var venue_icon_1 = require("./venue-icon");
|
|
5
|
-
Object.defineProperty(exports, "VenueIcon", { enumerable: true, get: function () { return venue_icon_1.VenueIcon; } });
|
|
3
|
+
exports.TransportModeFilter = exports.TransportMode = exports.Loading = void 0;
|
|
6
4
|
var loading_1 = require("./loading");
|
|
7
5
|
Object.defineProperty(exports, "Loading", { enumerable: true, get: function () { return loading_1.Loading; } });
|
|
8
|
-
var geolocation_button_1 = require("./geolocation-button");
|
|
9
|
-
Object.defineProperty(exports, "GeolocationButton", { enumerable: true, get: function () { return geolocation_button_1.GeolocationButton; } });
|
|
10
|
-
var departure_date_selector_1 = require("./departure-date-selector");
|
|
11
|
-
Object.defineProperty(exports, "DepartureDateSelector", { enumerable: true, get: function () { return departure_date_selector_1.DepartureDateSelector; } });
|
|
12
|
-
var map_1 = require("./map");
|
|
13
|
-
Object.defineProperty(exports, "Map", { enumerable: true, get: function () { return map_1.Map; } });
|
|
14
6
|
var transport_mode_1 = require("./transport-mode");
|
|
15
7
|
Object.defineProperty(exports, "TransportMode", { enumerable: true, get: function () { return transport_mode_1.TransportMode; } });
|
|
16
8
|
var transport_mode_filter_1 = require("./transport-mode-filter");
|
|
17
9
|
Object.defineProperty(exports, "TransportModeFilter", { enumerable: true, get: function () { return transport_mode_filter_1.TransportModeFilter; } });
|
|
18
|
-
var swap_button_1 = require("./swap-button");
|
|
19
|
-
Object.defineProperty(exports, "SwapButton", { enumerable: true, get: function () { return swap_button_1.SwapButton; } });
|
|
20
|
-
var empty_search_1 = require("./empty-search");
|
|
21
|
-
Object.defineProperty(exports, "EmptySearch", { enumerable: true, get: function () { return empty_search_1.EmptySearch; } });
|
|
22
|
-
var tab_link_1 = require("./tab-link");
|
|
23
|
-
Object.defineProperty(exports, "TabLink", { enumerable: true, get: function () { return tab_link_1.TabLink; } });
|
|
24
|
-
var departure_time_1 = require("./departure-time");
|
|
25
|
-
Object.defineProperty(exports, "DepartureTime", { enumerable: true, get: function () { return departure_time_1.DepartureTime; } });
|
|
26
|
-
var clear_button_1 = require("./clear-button");
|
|
27
|
-
Object.defineProperty(exports, "ClearButton", { enumerable: true, get: function () { return clear_button_1.ClearButton; } });
|
|
28
|
-
var search_1 = require("./search");
|
|
29
|
-
Object.defineProperty(exports, "SearchInput", { enumerable: true, get: function () { return search_1.SearchInput; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,YAAY,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,YAAY,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,cAAc,EACd,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EACV,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.PageText = exports.ComponentText = exports.ServerText = exports.CommonText = exports.loadOrgTranslations = exports.jsonTranslationsToOverride = exports.useMergedTranslations = exports.mergeTranslationOverrides = exports.jsonToTranslatedString = exports.getTextForLanguage = exports.useLanguageSettings = exports.useTranslation = exports.AppLanguageProvider = exports.translation = exports.appLanguages = exports.DEFAULT_LANGUAGE_STRING = exports.DEFAULT_LANGUAGE = exports.Language = void 0;
|
|
40
40
|
var commons_1 = require("./commons");
|
|
41
41
|
Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return commons_1.Language; } });
|
|
42
42
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE", { enumerable: true, get: function () { return commons_1.DEFAULT_LANGUAGE; } });
|
|
@@ -62,4 +62,3 @@ exports.CommonText = __importStar(require("./common"));
|
|
|
62
62
|
exports.ServerText = __importStar(require("./server"));
|
|
63
63
|
exports.ComponentText = __importStar(require("./components"));
|
|
64
64
|
exports.PageText = __importStar(require("./pages"));
|
|
65
|
-
exports.ModuleText = __importStar(require("./modules"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-to-override.d.ts","sourceRoot":"","sources":["../../src/translations/json-to-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG/D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,qBAAqB,CAAC;AAE1B,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAC9D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,qBAAqB,GAC1B,+BAA+B,
|
|
1
|
+
{"version":3,"file":"json-to-override.d.ts","sourceRoot":"","sources":["../../src/translations/json-to-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAG/D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,qBAAqB,CAAC;AAE1B,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;CAC9D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,qBAAqB,GAC1B,+BAA+B,CAqEjC"}
|
|
@@ -49,12 +49,6 @@ function jsonTranslationsToOverride(json) {
|
|
|
49
49
|
? componentsVal.map(convertValue)
|
|
50
50
|
: convertValue(componentsVal));
|
|
51
51
|
}
|
|
52
|
-
if (json.modules) {
|
|
53
|
-
const modulesVal = json.modules;
|
|
54
|
-
result.modules = (Array.isArray(modulesVal)
|
|
55
|
-
? modulesVal.map(convertValue)
|
|
56
|
-
: convertValue(modulesVal));
|
|
57
|
-
}
|
|
58
52
|
if (json.common) {
|
|
59
53
|
const commonVal = json.common;
|
|
60
54
|
result.common = (Array.isArray(commonVal)
|
|
@@ -2,7 +2,6 @@ import { translation } from './commons';
|
|
|
2
2
|
import type { ContactFormTranslationsOverride } from './types';
|
|
3
3
|
import * as PageText from './pages';
|
|
4
4
|
import * as ComponentText from './components';
|
|
5
|
-
import * as ModuleText from './modules';
|
|
6
5
|
import * as CommonText from './common';
|
|
7
6
|
import * as ServerText from './server';
|
|
8
7
|
/**
|
|
@@ -21,7 +20,6 @@ export declare function jsonToTranslatedString(json: {
|
|
|
21
20
|
export declare function mergeTranslationOverrides(overrides: ContactFormTranslationsOverride): {
|
|
22
21
|
PageText: typeof PageText;
|
|
23
22
|
ComponentText: typeof ComponentText;
|
|
24
|
-
ModuleText: typeof ModuleText;
|
|
25
23
|
CommonText: typeof CommonText;
|
|
26
24
|
ServerText: typeof ServerText;
|
|
27
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge-overrides.d.ts","sourceRoot":"","sources":["../../src/translations/merge-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"merge-overrides.d.ts","sourceRoot":"","sources":["../../src/translations/merge-overrides.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,GACvD,UAAU,CAAC,OAAO,WAAW,CAAC,GAAG,MAAM,CASzC;AA8ED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,+BAA+B,GACzC;IACD,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,UAAU,EAAE,OAAO,UAAU,CAAC;CAC/B,CAiBA"}
|
|
@@ -38,7 +38,6 @@ exports.mergeTranslationOverrides = mergeTranslationOverrides;
|
|
|
38
38
|
const commons_1 = require("./commons");
|
|
39
39
|
const PageText = __importStar(require("./pages"));
|
|
40
40
|
const ComponentText = __importStar(require("./components"));
|
|
41
|
-
const ModuleText = __importStar(require("./modules"));
|
|
42
41
|
const CommonText = __importStar(require("./common"));
|
|
43
42
|
const ServerText = __importStar(require("./server"));
|
|
44
43
|
/**
|
|
@@ -115,9 +114,6 @@ function mergeTranslationOverrides(overrides) {
|
|
|
115
114
|
ComponentText: overrides.components
|
|
116
115
|
? deepMergeTranslations(ComponentText, overrides.components)
|
|
117
116
|
: ComponentText,
|
|
118
|
-
ModuleText: overrides.modules
|
|
119
|
-
? deepMergeTranslations(ModuleText, overrides.modules)
|
|
120
|
-
: ModuleText,
|
|
121
117
|
CommonText: overrides.common
|
|
122
118
|
? deepMergeTranslations(CommonText, overrides.common)
|
|
123
119
|
: CommonText,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/translations/pages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Error = exports.Contact =
|
|
4
|
-
var departures_1 = require("./departures");
|
|
5
|
-
Object.defineProperty(exports, "Departures", { enumerable: true, get: function () { return departures_1.Departures; } });
|
|
3
|
+
exports.Error = exports.Contact = void 0;
|
|
6
4
|
var contact_1 = require("./contact");
|
|
7
5
|
Object.defineProperty(exports, "Contact", { enumerable: true, get: function () { return contact_1.Contact; } });
|
|
8
6
|
var error_1 = require("./error");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import * as PageText from './pages';
|
|
3
|
-
import * as ModuleText from './modules';
|
|
4
3
|
import * as ComponentText from './components';
|
|
5
4
|
import * as CommonText from './common';
|
|
6
5
|
import * as ServerText from './server';
|
|
@@ -33,7 +32,6 @@ export type DeepPartial<T> = {
|
|
|
33
32
|
*/
|
|
34
33
|
export type ContactFormTranslationsOverride = {
|
|
35
34
|
pages?: DeepPartial<typeof PageText>;
|
|
36
|
-
modules?: DeepPartial<typeof ModuleText>;
|
|
37
35
|
components?: DeepPartial<typeof ComponentText>;
|
|
38
36
|
common?: DeepPartial<typeof CommonText>;
|
|
39
37
|
server?: DeepPartial<typeof ServerText>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translations/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/translations/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,aAAa,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,UAAU,CAAC;AAEvC,oBAAY,4BAA4B;IACtC,KAAK,QAAQ;IACb,KAAK,QAAQ;IACb,IAAI,OAAO;IACX,KAAK,QAAQ;IACb,IAAI,OAAO;IACX,KAAK,QAAQ;IACb,IAAI,OAAO;CACZ;AAED,eAAO,MAAM,qBAAqB;;;;;;mBAShC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,aAAa,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;IACxC,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,UAAU,CAAC,CAAC;CACzC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrfylke/contact-form",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
"clean": "rm -rf lib",
|
|
46
46
|
"lint": "eslint \"src/**/*.{ts,tsx}\"",
|
|
47
47
|
"format": "prettier --write \"src/**/*.{ts,tsx,json,md}\"",
|
|
48
|
-
"format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\""
|
|
49
|
-
"publish": "npm publish --access public"
|
|
48
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,json,md}\""
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@graphql-codegen/cli": "^5.0.7",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-form-footer.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-footer.tsx"],"names":[],"mappings":"AAYA,MAAM,MAAM,sBAAsB,GAAG;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAqBF,wBAAgB,iBAAiB,CAAC,EAChC,eAAuB,GACxB,EAAE,sBAAsB,2CAqPxB"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ContactFormFooter = ContactFormFooter;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const translations_1 = require("../translations");
|
|
10
|
-
const language_context_1 = require("../translations/language-context");
|
|
11
|
-
const theme_1 = require("../modules/theme");
|
|
12
|
-
const config_1 = require("../modules/config");
|
|
13
|
-
const footer_module_css_1 = __importDefault(require("./footer.module.css"));
|
|
14
|
-
function getAccentColor(theme) {
|
|
15
|
-
const accent = theme?.color?.background?.accent;
|
|
16
|
-
const accent4 = accent?.[4];
|
|
17
|
-
if (accent4?.foreground?.primary)
|
|
18
|
-
return accent4.foreground.primary;
|
|
19
|
-
const neutral = theme?.color?.background?.neutral;
|
|
20
|
-
return neutral?.[0]?.foreground?.primary ?? 'inherit';
|
|
21
|
-
}
|
|
22
|
-
function ContactFormFooter({ withoutSettings = false, }) {
|
|
23
|
-
const { t, language } = (0, translations_1.useTranslation)();
|
|
24
|
-
const { isDarkMode, toggleDarkmode, theme, isThemeForced } = (0, theme_1.useTheme)();
|
|
25
|
-
const { org, layout } = (0, config_1.useContactFormConfig)();
|
|
26
|
-
const { setLanguage } = (0, language_context_1.useLanguageSettings)();
|
|
27
|
-
const footerUrls = layout?.footerUrls;
|
|
28
|
-
const footerLinksOverride = layout?.footerLinksOverride;
|
|
29
|
-
const buttonStyle = {
|
|
30
|
-
color: getAccentColor(theme),
|
|
31
|
-
borderColor: getAccentColor(theme),
|
|
32
|
-
};
|
|
33
|
-
const basePath = layout?.basePath ?? '/contact';
|
|
34
|
-
const supportHref = footerUrls?.help ?? basePath;
|
|
35
|
-
// Group override links by section if section is provided
|
|
36
|
-
const groupedOverrideLinks = footerLinksOverride
|
|
37
|
-
? footerLinksOverride.reduce((acc, link) => {
|
|
38
|
-
const section = link.section || 'default';
|
|
39
|
-
if (!acc[section])
|
|
40
|
-
acc[section] = [];
|
|
41
|
-
acc[section].push(link);
|
|
42
|
-
return acc;
|
|
43
|
-
}, {})
|
|
44
|
-
: null;
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)("footer", { className: footer_module_css_1.default.footer, children: (0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__content, children: [(0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__top, children: [footerLinksOverride ? (
|
|
46
|
-
// Render override links, grouped by section
|
|
47
|
-
Object.entries(groupedOverrideLinks).map(([sectionKey, links]) => ((0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [sectionKey !== 'default' && ((0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: sectionKey })), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: links.map((link, index) => ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: link.href, target: "_blank", rel: "noreferrer", children: t(link.label) }) }, index))) })] }, sectionKey)))) : (
|
|
48
|
-
// Standard behavior: fixed sections
|
|
49
|
-
(0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(translations_1.ModuleText.Layout.base.footer.sections.general.header) }), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: footerUrls?.tickets && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: footerUrls.tickets, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.sections.general
|
|
50
|
-
.ticketPricesPageLink) }) })) })] }), (0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(translations_1.ModuleText.Layout.base.footer.sections.contact.header) }), (0, jsx_runtime_1.jsx)("ul", { className: footer_module_css_1.default.footer__linkList, children: (0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("a", { href: supportHref, children: t(translations_1.ModuleText.Layout.base.footer.sections.general
|
|
51
|
-
.supportPageLink) }) }) })] })] })), !withoutSettings && ((0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__section, children: [(0, jsx_runtime_1.jsx)("h3", { className: footer_module_css_1.default.footer__title, children: t(!isThemeForced
|
|
52
|
-
? translations_1.ModuleText.Layout.base.footer.sections.settings.header
|
|
53
|
-
: translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
54
|
-
.forcedThemeHeader) }), (0, jsx_runtime_1.jsxs)("ul", { className: footer_module_css_1.default.footer__linkList, children: [language !== translations_1.Language.Norwegian && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.Norwegian), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
55
|
-
.setLanguage.norsk) }) })), language !== translations_1.Language.English && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.English), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
56
|
-
.setLanguage.english) }) })), language !== translations_1.Language.Nynorsk && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, onClick: () => setLanguage(translations_1.Language.Nynorsk), style: buttonStyle, children: t(translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
57
|
-
.setLanguage.nynorsk) }) })), !isThemeForced && ((0, jsx_runtime_1.jsx)("li", { children: (0, jsx_runtime_1.jsx)("button", { className: footer_module_css_1.default.buttonLink, style: buttonStyle, onClick: () => toggleDarkmode(!isDarkMode), children: isDarkMode
|
|
58
|
-
? t(translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
59
|
-
.toggleLightMode)
|
|
60
|
-
: t(translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
61
|
-
.toggleDarkMode) }) }))] }), (0, jsx_runtime_1.jsx)("p", { className: footer_module_css_1.default.footer__cookieWarning, children: t(!isThemeForced
|
|
62
|
-
? translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
63
|
-
.cookiesWarning
|
|
64
|
-
: translations_1.ModuleText.Layout.base.footer.sections.settings
|
|
65
|
-
.languageCookiesWarning) })] }))] }), (0, jsx_runtime_1.jsx)("hr", {}), (0, jsx_runtime_1.jsxs)("section", { className: footer_module_css_1.default.footer__bottomLinks, children: [footerLinksOverride
|
|
66
|
-
? // When override is set, bottom links come from override (filter by section if needed)
|
|
67
|
-
// For now, render all override links that don't have a section or have section='bottom'
|
|
68
|
-
(() => {
|
|
69
|
-
const bottomLinks = footerLinksOverride.filter((link) => !link.section || link.section === 'bottom');
|
|
70
|
-
return (bottomLinks.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: footer_module_css_1.default.footer__bottomLinks__mid, children: bottomLinks.map((link, index) => ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: "\u2022" }), (0, jsx_runtime_1.jsx)("a", { href: link.href, target: "_blank", rel: "noreferrer", children: t(link.label) })] }, index))) })));
|
|
71
|
-
})()
|
|
72
|
-
: // Standard behavior: privacy and accessibility from footerUrls
|
|
73
|
-
(footerUrls?.privacy || footerUrls?.accessibility) && ((0, jsx_runtime_1.jsxs)("div", { className: footer_module_css_1.default.footer__bottomLinks__mid, children: [footerUrls?.privacy && ((0, jsx_runtime_1.jsx)("a", { href: footerUrls.privacy, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.bottomLinks.privacy) })), footerUrls?.privacy && footerUrls?.accessibility && ((0, jsx_runtime_1.jsx)("span", { "aria-hidden": "true", children: "\u2022" })), footerUrls?.accessibility && ((0, jsx_runtime_1.jsx)("a", { href: footerUrls.accessibility, target: "_blank", rel: "noreferrer", children: t(translations_1.ModuleText.Layout.base.footer.bottomLinks
|
|
74
|
-
.accessibilityStatement) }))] })), org.logo && ((0, jsx_runtime_1.jsx)("img", { className: footer_module_css_1.default.footer__orgLogo, src: org.logo.accentBar ?? org.logo.srcDark ?? org.logo.src, alt: org.logo.alt }))] })] }) }));
|
|
75
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type ContactFormHeaderProps = {
|
|
2
|
-
/** Override home page URL for the "Go to X" button. Uses layout.footerUrls.homePage when not set. */
|
|
3
|
-
homeUrl?: {
|
|
4
|
-
href: string;
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare function ContactFormHeader({ homeUrl }: ContactFormHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=contact-form-header.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-form-header.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-header.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,sBAAsB,GAAG;IACnC,qGAAqG;IACrG,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AA0BF,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,2CA2DpE"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ContactFormHeader = ContactFormHeader;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const link_1 = __importDefault(require("next/link"));
|
|
9
|
-
const translations_1 = require("../translations");
|
|
10
|
-
const config_1 = require("../modules/config");
|
|
11
|
-
const theme_1 = require("../modules/theme");
|
|
12
|
-
const button_1 = require("../components/button");
|
|
13
|
-
const translations_2 = require("../translations");
|
|
14
|
-
const header_module_css_1 = __importDefault(require("./header.module.css"));
|
|
15
|
-
function getAccentContrastColor(theme) {
|
|
16
|
-
const accent = theme?.color?.background?.accent;
|
|
17
|
-
const accent4 = accent?.[4];
|
|
18
|
-
if (accent4 && typeof accent4 === 'object' && 'foreground' in accent4) {
|
|
19
|
-
const fg = accent4.foreground
|
|
20
|
-
?.primary;
|
|
21
|
-
if (fg) {
|
|
22
|
-
return {
|
|
23
|
-
background: accent4.background ?? 'transparent',
|
|
24
|
-
foreground: { primary: fg, secondary: fg, disabled: fg },
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
background: 'transparent',
|
|
30
|
-
foreground: {
|
|
31
|
-
primary: 'currentColor',
|
|
32
|
-
secondary: 'currentColor',
|
|
33
|
-
disabled: 'currentColor',
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
function ContactFormHeader({ homeUrl }) {
|
|
38
|
-
const { t } = (0, translations_1.useTranslation)();
|
|
39
|
-
const { org, layout } = (0, config_1.useContactFormConfig)();
|
|
40
|
-
const { theme } = (0, theme_1.useTheme)();
|
|
41
|
-
const accentColor = getAccentContrastColor(theme);
|
|
42
|
-
// Use override links if provided, otherwise fall back to standard behavior
|
|
43
|
-
const headerLinks = layout?.headerLinksOverride;
|
|
44
|
-
const standardHome = homeUrl ?? layout?.footerUrls?.homePage;
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)("header", { className: header_module_css_1.default.pageHeader, children: (0, jsx_runtime_1.jsxs)("div", { className: header_module_css_1.default.pageHeader__content, children: [(0, jsx_runtime_1.jsx)("h1", { className: header_module_css_1.default.pageHeader__logo, children: (0, jsx_runtime_1.jsx)(link_1.default, { href: layout?.basePath ?? '/contact', className: header_module_css_1.default.pageHeader__logoLink, "data-testid": "homeButton", children: org.logo ? ((0, jsx_runtime_1.jsx)("img", { className: header_module_css_1.default.pageHeader__logoImg, src: org.logo.accentBar ?? org.logo.srcDark ?? org.logo.src, alt: org.logo.alt })) : ((0, jsx_runtime_1.jsx)("span", { children: org.name })) }) }), headerLinks
|
|
46
|
-
? // Render override links
|
|
47
|
-
headerLinks.map((link, index) => ((0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: link.href, title: t(link.label), mode: "secondary", backgroundColor: accentColor, radiusSize: "circular", size: "pill", aProps: { target: '_blank', rel: 'noreferrer' } }, index)))
|
|
48
|
-
: // Standard behavior: single optional home link
|
|
49
|
-
standardHome && ((0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: standardHome.href, title: t(translations_2.CommonText.Layout.homeLink(standardHome.name)), mode: "secondary", backgroundColor: accentColor, radiusSize: "circular", size: "pill", aProps: { target: '_blank', rel: 'noreferrer' } }))] }) }));
|
|
50
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
.footer {
|
|
2
|
-
background-color: token('color.background.accent.4.background');
|
|
3
|
-
color: token('color.background.accent.4.foreground.primary');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.footer__content {
|
|
7
|
-
margin: 0 auto;
|
|
8
|
-
padding: token('spacing.large');
|
|
9
|
-
max-width: var(--maxPageWidth, 976px);
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.footer__top {
|
|
14
|
-
display: grid;
|
|
15
|
-
gap: token('spacing.xLarge');
|
|
16
|
-
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.footer__content hr {
|
|
20
|
-
border: 0;
|
|
21
|
-
border-bottom: token('border.width.slim') solid token('color.background.accent.4.foreground.primary');
|
|
22
|
-
margin: token('spacing.xLarge') 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.footer__title {
|
|
26
|
-
margin-bottom: token('spacing.small');
|
|
27
|
-
font-size: 1rem;
|
|
28
|
-
font-weight: 600;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.footer__section {
|
|
32
|
-
padding: token('spacing.medium') 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.footer__linkList {
|
|
36
|
-
list-style-type: none;
|
|
37
|
-
margin: 0;
|
|
38
|
-
padding: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.footer__linkList li {
|
|
42
|
-
margin-bottom: token('spacing.small');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.footer a {
|
|
46
|
-
text-decoration: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.footer a,
|
|
50
|
-
.footer a:visited {
|
|
51
|
-
transition: opacity 100ms ease-in;
|
|
52
|
-
color: token('color.background.accent.4.foreground.primary');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.footer a:hover {
|
|
56
|
-
opacity: 0.75;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.footer__bottomLinks {
|
|
60
|
-
width: 100%;
|
|
61
|
-
display: flex;
|
|
62
|
-
justify-content: space-between;
|
|
63
|
-
align-items: center;
|
|
64
|
-
gap: token('spacing.medium');
|
|
65
|
-
flex-wrap: wrap;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.footer__bottomLinks > div:only-child {
|
|
69
|
-
margin: 0 auto;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.footer__bottomLinks__mid {
|
|
73
|
-
text-align: center;
|
|
74
|
-
display: flex;
|
|
75
|
-
gap: token('spacing.medium');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.footer__cookieWarning {
|
|
79
|
-
margin-top: token('spacing.medium');
|
|
80
|
-
font-size: 0.875rem;
|
|
81
|
-
color: token('color.background.accent.4.foreground.primary');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.buttonLink {
|
|
85
|
-
color: token('color.background.accent.4.foreground.primary');
|
|
86
|
-
font-size: 1rem;
|
|
87
|
-
background-color: transparent;
|
|
88
|
-
border: 0;
|
|
89
|
-
cursor: pointer;
|
|
90
|
-
transition: opacity 100ms ease-in;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.buttonLink:hover {
|
|
94
|
-
opacity: 0.75;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.footer__orgLogo {
|
|
98
|
-
height: 2.5rem;
|
|
99
|
-
width: auto;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@media (max-width: 650px) {
|
|
103
|
-
.footer__bottomLinks {
|
|
104
|
-
justify-content: center;
|
|
105
|
-
align-items: center;
|
|
106
|
-
flex-direction: column;
|
|
107
|
-
gap: token('spacing.xLarge');
|
|
108
|
-
}
|
|
109
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.pageHeader {
|
|
2
|
-
background-color: token('color.background.accent.4.background');
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.pageHeader__content {
|
|
6
|
-
width: 100%;
|
|
7
|
-
max-width: var(--maxPageWidth, 976px);
|
|
8
|
-
margin: 0 auto;
|
|
9
|
-
padding: token('spacing.medium');
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.pageHeader__logo {
|
|
17
|
-
margin: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.pageHeader__logoLink {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
gap: token('spacing.medium');
|
|
24
|
-
padding: token('spacing.medium');
|
|
25
|
-
padding-left: 0;
|
|
26
|
-
color: token('color.background.accent.4.foreground.primary');
|
|
27
|
-
text-decoration: none;
|
|
28
|
-
transition: opacity 200ms ease-in-out;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.pageHeader__logoLink:hover,
|
|
32
|
-
.pageHeader__logoLink:active {
|
|
33
|
-
opacity: 0.8;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.pageHeader__logoImg {
|
|
37
|
-
height: 2rem;
|
|
38
|
-
width: auto;
|
|
39
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-button.d.ts","sourceRoot":"","sources":["../../../src/translations/components/clear-button.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClearButton = void 0;
|
|
4
|
-
const commons_1 = require("../../translations/commons");
|
|
5
|
-
exports.ClearButton = {
|
|
6
|
-
alt: (0, commons_1.translation)('Fjern lokasjon', 'Remove location', 'Fjern lokasjon'),
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const DepartureDateSelector: {
|
|
2
|
-
now: import("../../translations/commons").TranslatedString;
|
|
3
|
-
arrival: import("../../translations/commons").TranslatedString;
|
|
4
|
-
departure: import("../../translations/commons").TranslatedString;
|
|
5
|
-
date: import("../../translations/commons").TranslatedString;
|
|
6
|
-
time: import("../../translations/commons").TranslatedString;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=departure-date-selector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"departure-date-selector.d.ts","sourceRoot":"","sources":["../../../src/translations/components/departure-date-selector.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;CAMjC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DepartureDateSelector = void 0;
|
|
4
|
-
const commons_1 = require("../../translations/commons");
|
|
5
|
-
exports.DepartureDateSelector = {
|
|
6
|
-
now: (0, commons_1.translation)('Nå', 'Now', 'No'),
|
|
7
|
-
arrival: (0, commons_1.translation)('Ankomst', 'Arrival', 'Framkomst'),
|
|
8
|
-
departure: (0, commons_1.translation)('Avgang', 'Departure', 'Avgang'),
|
|
9
|
-
date: (0, commons_1.translation)('Dato', 'Date', 'Dato'),
|
|
10
|
-
time: (0, commons_1.translation)('Tid', 'Time', 'Tid'),
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const DepartureTime: {
|
|
2
|
-
time: {
|
|
3
|
-
aimedPrefix: import("../../translations/commons").TranslatedString;
|
|
4
|
-
expectedPrefix: import("../../translations/commons").TranslatedString;
|
|
5
|
-
};
|
|
6
|
-
cancelled: import("../../translations/commons").TranslatedString;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=departure-time.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"departure-time.d.ts","sourceRoot":"","sources":["../../../src/translations/components/departure-time.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;CAUzB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DepartureTime = void 0;
|
|
4
|
-
const commons_1 = require("../../translations/commons");
|
|
5
|
-
exports.DepartureTime = {
|
|
6
|
-
time: {
|
|
7
|
-
aimedPrefix: (0, commons_1.translation)('Rutetid', 'Route time', `Rutetid`),
|
|
8
|
-
expectedPrefix: (0, commons_1.translation)('Sanntid', 'Realtime', `Sanntid`),
|
|
9
|
-
},
|
|
10
|
-
cancelled: (0, commons_1.translation)('Avgangen fra denne holdeplassen er kansellert.', 'The departure from this stop has been cancelled.', 'Avgangen frå denne haldeplassen er kansellert.'),
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const EmptySearch: {
|
|
2
|
-
notSearched: import("../../translations/commons").TranslatedString;
|
|
3
|
-
emptyDetails: {
|
|
4
|
-
trip: import("../../translations/commons").TranslatedString;
|
|
5
|
-
nearby: import("../../translations/commons").TranslatedString;
|
|
6
|
-
stopPlace: import("../../translations/commons").TranslatedString;
|
|
7
|
-
};
|
|
8
|
-
searching: {
|
|
9
|
-
trip: import("../../translations/commons").TranslatedString;
|
|
10
|
-
nearby: import("../../translations/commons").TranslatedString;
|
|
11
|
-
stopPlace: import("../../translations/commons").TranslatedString;
|
|
12
|
-
};
|
|
13
|
-
nearbyNoGeolocation: {
|
|
14
|
-
title: import("../../translations/commons").TranslatedString;
|
|
15
|
-
details: import("../../translations/commons").TranslatedString;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=empty-search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"empty-search.d.ts","sourceRoot":"","sources":["../../../src/translations/components/empty-search.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;CAqDvB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EmptySearch = void 0;
|
|
4
|
-
const commons_1 = require("../../translations/commons");
|
|
5
|
-
exports.EmptySearch = {
|
|
6
|
-
notSearched: (0, commons_1.translation)('Du har ikke gjennomført et søk enda.', 'You have not created a search yet.', 'Du har ikkje gjennomført eit søk enno.'),
|
|
7
|
-
emptyDetails: {
|
|
8
|
-
trip: (0, commons_1.translation)('Reiseforslagene dukker opp her når du søker etter det.', 'Travel suggestions will appear here when you search for it.', 'Reiseforslaga dukkar opp her når du søkjer etter det.'),
|
|
9
|
-
nearby: (0, commons_1.translation)('Avganger dukker opp her når du søker etter det.', 'Departures will appear here when you search for it.', 'Avgangar dukkar opp her når du søkjer etter det.'),
|
|
10
|
-
stopPlace: (0, commons_1.translation)('Avganger dukker opp her når du søker etter det.', 'Departures will appear here when you search for it.', 'Avgangar dukkar opp her når du søkjer etter det.'),
|
|
11
|
-
},
|
|
12
|
-
searching: {
|
|
13
|
-
trip: (0, commons_1.translation)('Laster reiseforslag...', 'Loading travel suggestions...', 'Lastar reiseforslag...'),
|
|
14
|
-
nearby: (0, commons_1.translation)('Laster holdeplasser...', 'Loading stop places...', 'Lastar haldeplassar...'),
|
|
15
|
-
stopPlace: (0, commons_1.translation)('Laster avganger...', 'Loading departures...', 'Lastar avgangar...'),
|
|
16
|
-
},
|
|
17
|
-
nearbyNoGeolocation: {
|
|
18
|
-
title: (0, commons_1.translation)('Holdeplasser i nærheten er ikke tilgjengelig', 'Stop places nearby are not available', 'Haldeplassar i nærleiken er ikkje tilgjengeleg'),
|
|
19
|
-
details: (0, commons_1.translation)('Del din posisjon for å finne holdeplasser i nærheten. Bruk søkefeltet for å finne andre holdeplasser.', 'Share your position to find stop places nearby. Use the search field to find other stop places.', 'Del din posisjon for å finne haldeplassar i nærleiken. Bruk søkefeltet for å finne andre haldeplassar.'),
|
|
20
|
-
},
|
|
21
|
-
};
|