@mrfylke/contact-form 0.1.4 → 0.1.5
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/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +3 -1
- package/lib/commoneEvents.d.ts.map +1 -1
- package/lib/components/button/button.d.ts.map +1 -1
- package/lib/components/button/index.d.ts.map +1 -1
- package/lib/components/button/link.d.ts.map +1 -1
- package/lib/components/button/utils.d.ts.map +1 -1
- package/lib/components/checkbox/checkbox.d.ts.map +1 -1
- package/lib/components/checkbox/index.d.ts.map +1 -1
- package/lib/components/error-message/error-message.d.ts.map +1 -1
- package/lib/components/error-message/index.d.ts.map +1 -1
- package/lib/components/external-link-page.d.ts +1 -1
- package/lib/components/external-link-page.d.ts.map +1 -1
- package/lib/components/external-link-page.js +7 -6
- package/lib/components/form/date-selector.d.ts +1 -1
- package/lib/components/form/date-selector.d.ts.map +1 -1
- package/lib/components/form/description-modal.d.ts.map +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts +1 -1
- package/lib/components/form/field-wrapper-with-error/index.d.ts.map +1 -1
- package/lib/components/form/fieldset/index.d.ts.map +1 -1
- package/lib/components/form/file-input.d.ts.map +1 -1
- package/lib/components/form/file-input.js +1 -1
- package/lib/components/form/form-component-label/index.d.ts.map +1 -1
- package/lib/components/form/index.d.ts.map +1 -1
- package/lib/components/form/input.d.ts +1 -1
- package/lib/components/form/input.d.ts.map +1 -1
- package/lib/components/form/input.js +1 -1
- package/lib/components/form/radio.d.ts.map +1 -1
- package/lib/components/form/searchable-select/index.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.js +1 -1
- package/lib/components/form/searchable-select/utils.d.ts +1 -1
- package/lib/components/form/searchable-select/utils.d.ts.map +1 -1
- package/lib/components/form/select.d.ts.map +1 -1
- package/lib/components/form/textarea.d.ts.map +1 -1
- package/lib/components/form/time-selector.d.ts +1 -1
- package/lib/components/form/time-selector.d.ts.map +1 -1
- package/lib/components/icon/checkbox-icon.d.ts +1 -1
- package/lib/components/icon/checkbox-icon.d.ts.map +1 -1
- package/lib/components/icon/checkbox-icon.js +1 -1
- package/lib/components/icon/color-icon.d.ts.map +1 -1
- package/lib/components/icon/color-icon.js +0 -2
- package/lib/components/icon/generated-icons.d.ts +233 -233
- package/lib/components/icon/generated-icons.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.js +1771 -1771
- package/lib/components/icon/icon-wrapper.d.ts +1 -1
- package/lib/components/icon/icon-wrapper.d.ts.map +1 -1
- package/lib/components/icon/illustration.d.ts.map +1 -1
- package/lib/components/icon/illustration.js +0 -2
- package/lib/components/icon/image.d.ts.map +1 -1
- package/lib/components/icon/image.js +0 -2
- package/lib/components/icon/mono-icon-new.d.ts +2 -2
- package/lib/components/icon/mono-icon-new.d.ts.map +1 -1
- package/lib/components/icon/mono-icon.d.ts +1 -1
- package/lib/components/icon/mono-icon.d.ts.map +1 -1
- package/lib/components/icon/mono-icon.js +1 -3
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/loading/index.d.ts +1 -1
- package/lib/components/loading/index.d.ts.map +1 -1
- package/lib/components/section-card/index.d.ts.map +1 -1
- package/lib/components/section-card/section-card.d.ts.map +1 -1
- package/lib/components/typography/index.d.ts +6 -5
- package/lib/components/typography/index.d.ts.map +1 -1
- package/lib/components/typography/index.js +0 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/journey-info/events.d.ts +6 -6
- package/lib/journey-info/events.d.ts.map +1 -1
- package/lib/journey-info/events.js +0 -1
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +4 -2
- package/lib/journey-info/journeyInfoStateMachine.d.ts.map +1 -1
- package/lib/layouts/contact-form-container.d.ts.map +1 -1
- package/lib/layouts/contact-form-footer.d.ts +1 -1
- package/lib/layouts/contact-form-footer.d.ts.map +1 -1
- package/lib/layouts/contact-form-footer.js +39 -23
- package/lib/layouts/contact-form-header.d.ts.map +1 -1
- package/lib/layouts/contact-form-header.js +12 -7
- package/lib/layouts/contact-page-layout.d.ts +2 -2
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +1 -5
- package/lib/layouts/index.d.ts.map +1 -1
- package/lib/lines/use-lines.d.ts.map +1 -1
- package/lib/means-of-transport/events.d.ts +7 -7
- package/lib/means-of-transport/events.d.ts.map +1 -1
- package/lib/means-of-transport/events.js +0 -1
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/index.d.ts.map +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/means-of-transport/index.js +4 -2
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
- package/lib/means-of-transport/means-of-transport-form-machine.js +5 -1
- package/lib/modules/api-browser/index.d.ts.map +1 -1
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/theme-adapter.d.ts.map +1 -1
- package/lib/modules/config/types.d.ts +2 -2
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/graphql-types/index.d.ts.map +1 -1
- package/lib/modules/graphql-types/journeyplanner-types_v3.generated.d.ts.map +1 -1
- package/lib/modules/theme/index.d.ts.map +1 -1
- package/lib/modules/theme/theme-context.d.ts +1 -1
- package/lib/modules/theme/theme-context.d.ts.map +1 -1
- package/lib/modules/theme/theme-context.js +9 -6
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/utils.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/index.js +1 -1
- package/lib/modules/transport-mode/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/utils.d.ts.map +1 -1
- package/lib/refund/events.d.ts +12 -12
- package/lib/refund/events.d.ts.map +1 -1
- package/lib/refund/events.js +0 -1
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundCarForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-and-travel-guarantee/refundTaxiForm.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/index.js +4 -2
- package/lib/refund/refundFormMachine.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.js +9 -3
- package/lib/server/index.d.ts +1 -1
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/journey-planner/authority.d.ts.map +1 -1
- package/lib/server/journey-planner/entur-client.d.ts.map +1 -1
- package/lib/server/journey-planner/index.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.js +11 -11
- package/lib/server/journey-planner/validators.d.ts.map +1 -1
- package/lib/server/types.d.ts.map +1 -1
- package/lib/ticket-control/events.d.ts +6 -6
- package/lib/ticket-control/events.d.ts.map +1 -1
- package/lib/ticket-control/events.js +0 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/index.js +4 -2
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +7 -2
- package/lib/ticketing/events.d.ts +10 -10
- package/lib/ticketing/events.d.ts.map +1 -1
- package/lib/ticketing/events.js +0 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.js +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.js +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.js +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/index.d.ts.map +1 -1
- package/lib/ticketing/index.js +4 -2
- package/lib/ticketing/ticketingStateMachine.d.ts.map +1 -1
- package/lib/ticketing/ticketingStateMachine.js +2 -1
- package/lib/translations/common/index.d.ts.map +1 -1
- package/lib/translations/common/layout.d.ts.map +1 -1
- package/lib/translations/commons.d.ts.map +1 -1
- package/lib/translations/components/index.d.ts.map +1 -1
- package/lib/translations/components/map.d.ts.map +1 -1
- package/lib/translations/components/search.d.ts.map +1 -1
- package/lib/translations/components/transport-mode.d.ts.map +1 -1
- package/lib/translations/dictionary.d.ts.map +1 -1
- package/lib/translations/index.d.ts +2 -2
- package/lib/translations/index.d.ts.map +1 -1
- package/lib/translations/json-to-override.d.ts.map +1 -1
- package/lib/translations/json-to-override.js +15 -5
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/language-context.js +5 -9
- package/lib/translations/load-org-translations.d.ts.map +1 -1
- package/lib/translations/merge-overrides.d.ts.map +1 -1
- package/lib/translations/merge-overrides.js +3 -1
- package/lib/translations/modules/index.d.ts.map +1 -1
- package/lib/translations/modules/situation.d.ts.map +1 -1
- package/lib/translations/pages/contact.d.ts +1 -1
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/departures.d.ts.map +1 -1
- package/lib/translations/pages/index.d.ts.map +1 -1
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/index.d.ts.map +1 -1
- package/lib/translations/translations-context.d.ts.map +1 -1
- package/lib/translations/types.d.ts.map +1 -1
- package/lib/translations/utils.d.ts.map +1 -1
- package/lib/translations/utils.js +3 -1
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/utils/color.js +1 -1
- package/lib/utils/date.d.ts.map +1 -1
- package/lib/utils/date.js +1 -1
- package/lib/utils/env.d.ts.map +1 -1
- package/lib/utils/presence.d.ts.map +1 -1
- package/lib/utils/use-localstorage.d.ts.map +1 -1
- package/lib/utils.d.ts +1 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/validation/commonInputValidator.d.ts.map +1 -1
- package/lib/validation/index.d.ts.map +1 -1
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/modules/api-server/external-client.d.ts +0 -22
- package/lib/modules/api-server/external-client.d.ts.map +0 -1
- package/lib/modules/api-server/external-client.js +0 -86
- package/lib/modules/api-server/index.d.ts +0 -9
- package/lib/modules/api-server/index.d.ts.map +0 -1
- package/lib/modules/api-server/index.js +0 -24
- package/lib/modules/api-server/requesters/graphql-requester.d.ts +0 -6
- package/lib/modules/api-server/requesters/graphql-requester.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/graphql-requester.js +0 -63
- package/lib/modules/api-server/requesters/http-requester.d.ts +0 -3
- package/lib/modules/api-server/requesters/http-requester.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/http-requester.js +0 -110
- package/lib/modules/api-server/requesters/types.d.ts +0 -37
- package/lib/modules/api-server/requesters/types.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/types.js +0 -34
- package/lib/modules/api-server/requesters/utils.d.ts +0 -17
- package/lib/modules/api-server/requesters/utils.d.ts.map +0 -1
- package/lib/modules/api-server/requesters/utils.js +0 -75
- package/lib/modules/cookies/constants.d.ts +0 -4
- package/lib/modules/cookies/constants.d.ts.map +0 -1
- package/lib/modules/cookies/constants.js +0 -6
- package/lib/modules/cookies/cookies-context.d.ts +0 -17
- package/lib/modules/cookies/cookies-context.d.ts.map +0 -1
- package/lib/modules/cookies/cookies-context.js +0 -61
- package/lib/modules/cookies/index.d.ts +0 -15
- package/lib/modules/cookies/index.d.ts.map +0 -1
- package/lib/modules/cookies/index.js +0 -22
- package/lib/modules/firebase/analytics.d.ts +0 -3
- package/lib/modules/firebase/analytics.d.ts.map +0 -1
- package/lib/modules/firebase/analytics.js +0 -40
- package/lib/modules/firebase/firebase.d.ts +0 -4
- package/lib/modules/firebase/firebase.d.ts.map +0 -1
- package/lib/modules/firebase/firebase.js +0 -19
- package/lib/modules/firebase/index.d.ts +0 -5
- package/lib/modules/firebase/index.d.ts.map +0 -1
- package/lib/modules/firebase/index.js +0 -25
- package/lib/modules/firebase/preassigned-fare-products.d.ts +0 -8
- package/lib/modules/firebase/preassigned-fare-products.d.ts.map +0 -1
- package/lib/modules/firebase/preassigned-fare-products.js +0 -35
- package/lib/modules/firebase/tariff-zones.d.ts +0 -17
- package/lib/modules/firebase/tariff-zones.d.ts.map +0 -1
- package/lib/modules/firebase/tariff-zones.js +0 -32
- package/lib/modules/firebase/transport-mode-filter.d.ts +0 -27
- package/lib/modules/firebase/transport-mode-filter.d.ts.map +0 -1
- package/lib/modules/firebase/transport-mode-filter.js +0 -27
- package/lib/modules/firebase/types.d.ts +0 -19
- package/lib/modules/firebase/types.d.ts.map +0 -1
- package/lib/modules/firebase/types.js +0 -15
- package/lib/modules/logging/index.d.ts +0 -6
- package/lib/modules/logging/index.d.ts.map +0 -1
- package/lib/modules/logging/index.js +0 -13
- package/lib/modules/logging/log-api-response.d.ts +0 -15
- package/lib/modules/logging/log-api-response.d.ts.map +0 -1
- package/lib/modules/logging/log-api-response.js +0 -52
- package/lib/modules/logging/log-page-access.d.ts +0 -20
- package/lib/modules/logging/log-page-access.d.ts.map +0 -1
- package/lib/modules/logging/log-page-access.js +0 -60
- package/lib/modules/logging/logger.d.ts +0 -3
- package/lib/modules/logging/logger.d.ts.map +0 -1
- package/lib/modules/logging/logger.js +0 -32
- package/lib/modules/logging/timer.d.ts +0 -6
- package/lib/modules/logging/timer.d.ts.map +0 -1
- package/lib/modules/logging/timer.js +0 -13
- package/lib/modules/logging/with-access-logging.d.ts +0 -5
- package/lib/modules/logging/with-access-logging.d.ts.map +0 -1
- package/lib/modules/logging/with-access-logging.js +0 -20
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts +0 -28
- package/lib/modules/transport-mode/icon/transport-icon-new.d.ts.map +0 -1
- package/lib/modules/transport-mode/icon/transport-icon-new.js +0 -114
- package/lib/server/contact/index.d.ts +0 -11
- package/lib/server/contact/index.d.ts.map +0 -1
- package/lib/server/contact/index.js +0 -47
- package/lib/translations/__tests__/utils.test.d.ts +0 -2
- package/lib/translations/__tests__/utils.test.d.ts.map +0 -1
- package/lib/translations/__tests__/utils.test.js +0 -35
- package/lib/translations/pages/assistant.d.ts +0 -2
- package/lib/translations/pages/assistant.d.ts.map +0 -1
- package/lib/translations/pages/assistant.js +0 -303
- package/lib/utils/enum-from-string.d.ts +0 -4
- package/lib/utils/enum-from-string.d.ts.map +0 -1
- package/lib/utils/enum-from-string.js +0 -9
- package/lib/utils/only-uniques.d.ts +0 -3
- package/lib/utils/only-uniques.d.ts.map +0 -1
- package/lib/utils/only-uniques.js +0 -7
- package/lib/utils/org-theme-definitions.d.ts +0 -5
- package/lib/utils/org-theme-definitions.d.ts.map +0 -1
- package/lib/utils/org-theme-definitions.js +0 -13
- package/lib/utils/reference-data.d.ts +0 -15
- package/lib/utils/reference-data.d.ts.map +0 -1
- package/lib/utils/reference-data.js +0 -15
- package/lib/utils/use-client-width.d.ts +0 -2
- package/lib/utils/use-client-width.d.ts.map +0 -1
- package/lib/utils/use-client-width.js +0 -18
- package/lib/utils/use-interval.d.ts +0 -2
- package/lib/utils/use-interval.d.ts.map +0 -1
- package/lib/utils/use-interval.js +0 -22
- package/lib/utils/use-now.d.ts +0 -2
- package/lib/utils/use-now.d.ts.map +0 -1
- package/lib/utils/use-now.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactFormRoot.d.ts","sourceRoot":"","sources":["../src/ContactFormRoot.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"ContactFormRoot.d.ts","sourceRoot":"","sources":["../src/ContactFormRoot.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAEL,KAAK,+BAA+B,EACpC,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAQxB,MAAM,MAAM,oBAAoB,GAAG;IACjC,mEAAmE;IACnE,MAAM,EAAE,iBAAiB,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC9B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,+BAA+B,CAAC;IACvD,sDAAsD;IACtD,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,MAAM,EACN,oBAAoB,EACpB,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,QAAQ,GACT,EAAE,oBAAoB,2CAuBtB"}
|
package/lib/ContactFormRoot.js
CHANGED
|
@@ -42,7 +42,9 @@ function deriveHeaderFromInitialLanguage(language) {
|
|
|
42
42
|
function deepMerge(target, source) {
|
|
43
43
|
const result = { ...target };
|
|
44
44
|
for (const key in source) {
|
|
45
|
-
if (source[key] &&
|
|
45
|
+
if (source[key] &&
|
|
46
|
+
typeof source[key] === 'object' &&
|
|
47
|
+
!Array.isArray(source[key])) {
|
|
46
48
|
result[key] = deepMerge((result[key] || {}), source[key]);
|
|
47
49
|
}
|
|
48
50
|
else if (source[key] !== undefined) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commoneEvents.d.ts","sourceRoot":"","sources":["../src/commoneEvents.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"commoneEvents.d.ts","sourceRoot":"","sources":["../src/commoneEvents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,eAAO,MAAM,YAAY,EACrB;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EACL,SAAS,GACT,aAAa,GACb,mBAAmB,GACnB,MAAM,GACN,MAAM,GACN,OAAO,GACP,WAAW,GACX,UAAU,GACV,MAAM,GACN,UAAU,GACV,aAAa,GACb,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,UAAU,GACV,sBAAsB,CAAC;IAC3B,KAAK,EAAE,GAAG,CAAC;CACZ,GACD;IACE,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,EAAE,iBAAiB,CAAC;CAC1B,GACD;IACE,IAAI,EAAE,gBAAgB,CAAC;IACvB,KAAK,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAEL,eAAe,EAGhB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,WAAW,GAAG;IACxB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;CACrD,GAAG,eAAe,CAAC;AAEpB,eAAO,MAAM,MAAM,uFAqBlB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/button/link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/button/link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,eAAe,EAGhB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhC,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC;IACtD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC1C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,eAAe,CAAC;AAEpB,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAW,EACX,OAAe,EACf,GAAG,KAAK,EACT,EAAE,eAAe,2CAkCjB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/button/utils.tsx"],"names":[],"mappings":"AAAA,OAAc,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/button/utils.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,yBAAyB,GACzB,uCAAuC,GACvC,eAAe,GACf,eAAe,GACf,8BAA8B,GAC9B,eAAe,GACf,aAAa,GACb,aAAa,GACb,SAAS,GACT,WAAW,GACX,wBAAwB,CAAC;AAE7B,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,CAAC;AAElE,KAAK,oBAAoB,GACrB;IACE,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,EAAE,aAAa,CAAC;CAChC,CAAC;AAEN,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;IAE/C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAEtC;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAEpC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;QACb,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC,CAAC;CACJ,GAAG,oBAAoB,CAAC;AAEzB,wBAAgB,cAAc,CAAC,KAAK,EAAE,eAAe,GAAG,aAAa,CAGpE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAK1E;AAED,wBAAgB,sBAAsB,CAAC,EACrC,IAAsB,EACtB,IAAc,EACd,KAAc,EACd,MAAqB,EACrB,UAAsB,EACtB,OAAiB,EACjB,QAAgB,EAChB,SAAqB,GACtB,EAAE,eAAe,UAajB;AAED,iBAAS,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,2CAa1D;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,GAAG;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,QAAgB,EAChB,QAAgB,EAChB,KAAK,EACL,WAAW,EACX,OAAe,EACf,MAAc,EACd,OAAO,GACR,EAAE,aAAa,2CAyCf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../../src/components/error-message/error-message.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;
|
|
1
|
+
{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../../src/components/error-message/error-message.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,iBAAiB,2CAOtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-message/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/error-message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -10,5 +10,5 @@ export type ExternalLinkPageProps = {
|
|
|
10
10
|
* Component for rendering a page that links to an external website.
|
|
11
11
|
* Used when a contact page is configured with an externalUrl in pagesOverrides.
|
|
12
12
|
*/
|
|
13
|
-
export declare function ExternalLinkPage({ url, title, description }: ExternalLinkPageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function ExternalLinkPage({ url, title, description, }: ExternalLinkPageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=external-link-page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-link-page.d.ts","sourceRoot":"","sources":["../../src/components/external-link-page.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,qBAAqB,GAAG;
|
|
1
|
+
{"version":3,"file":"external-link-page.d.ts","sourceRoot":"","sources":["../../src/components/external-link-page.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,qBAAqB,GAAG;IAClC,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,WAAW,GACZ,EAAE,qBAAqB,2CA2CvB"}
|
|
@@ -14,13 +14,14 @@ const external_link_page_module_css_1 = __importDefault(require("./external-link
|
|
|
14
14
|
* Component for rendering a page that links to an external website.
|
|
15
15
|
* Used when a contact page is configured with an externalUrl in pagesOverrides.
|
|
16
16
|
*/
|
|
17
|
-
function ExternalLinkPage({ url, title, description }) {
|
|
17
|
+
function ExternalLinkPage({ url, title, description, }) {
|
|
18
18
|
const { t } = (0, translations_1.useTranslation)();
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: external_link_page_module_css_1.default.externalLinkPage, children: (0, jsx_runtime_1.jsxs)("div", { className: external_link_page_module_css_1.default.externalLinkPage__content, children: [title && ((0, jsx_runtime_1.jsx)(typography_1.Typo.h2, { textType: "heading__2xl", className: external_link_page_module_css_1.default.externalLinkPage__title, children: title })), description && ((0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", className: external_link_page_module_css_1.default.externalLinkPage__description, children: description })), (0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: url, title: title ||
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: external_link_page_module_css_1.default.externalLinkPage, children: (0, jsx_runtime_1.jsxs)("div", { className: external_link_page_module_css_1.default.externalLinkPage__content, children: [title && ((0, jsx_runtime_1.jsx)(typography_1.Typo.h2, { textType: "heading__2xl", className: external_link_page_module_css_1.default.externalLinkPage__title, children: title })), description && ((0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", className: external_link_page_module_css_1.default.externalLinkPage__description, children: description })), (0, jsx_runtime_1.jsx)(button_1.ButtonLink, { href: url, title: title ||
|
|
20
|
+
t({
|
|
21
|
+
[translations_1.Language.Norwegian]: 'Gå til ekstern side',
|
|
22
|
+
[translations_1.Language.English]: 'Go to external site',
|
|
23
|
+
[translations_1.Language.Nynorsk]: 'Gå til ekstern side',
|
|
24
|
+
}), mode: "interactive_0--bordered", icon: { right: (0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { icon: "navigation/ArrowRight" }) }, aProps: {
|
|
24
25
|
target: '_blank',
|
|
25
26
|
rel: 'noreferrer',
|
|
26
27
|
}, className: external_link_page_module_css_1.default.externalLinkPage__button })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-selector.d.ts","sourceRoot":"","sources":["../../../src/components/form/date-selector.tsx"],"names":[],"mappings":"AAgBA,OAAO,
|
|
1
|
+
{"version":3,"file":"date-selector.d.ts","sourceRoot":"","sources":["../../../src/components/form/date-selector.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AAItE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,EAAE,EACF,KAAK,EACL,KAAK,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,GACT,EAAE,iBAAiB,2CAuEnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-modal.d.ts","sourceRoot":"","sources":["../../../src/components/form/description-modal.tsx"],"names":[],"mappings":"AASA,KAAK,qBAAqB,GAAG;
|
|
1
|
+
{"version":3,"file":"description-modal.d.ts","sourceRoot":"","sources":["../../../src/components/form/description-modal.tsx"],"names":[],"mappings":"AASA,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,gBAAgB,GAAI,mDAKvB,qBAAqB,mDA0FvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/field-wrapper-with-error/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/field-wrapper-with-error/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAkB,MAAM,uBAAuB,CAAC;AAGzE,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,6BAGnC,0BAA0B,4CAS5B,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fieldset/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/fieldset/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG1C,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,kCAItB,aAAa,4CAkBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-input.d.ts","sourceRoot":"","sources":["../../../src/components/form/file-input.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,cAAc,GAAG;
|
|
1
|
+
{"version":3,"file":"file-input.d.ts","sourceRoot":"","sources":["../../../src/components/form/file-input.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;CACpC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;AAI3D,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,EAAE,EACF,QAAQ,EACR,SAAS,EACT,KAAK,EACL,UAAkB,EAClB,IAAI,EACJ,YAAY,GACb,EAAE,cAAc,2CAiHhB"}
|
|
@@ -61,7 +61,7 @@ function FileInput({ id, onChange, iconLabel, label, isRequired = false, name, e
|
|
|
61
61
|
e.preventDefault();
|
|
62
62
|
e.target.click();
|
|
63
63
|
}
|
|
64
|
-
}, children: [(0, jsx_runtime_1.jsx)(FileIcon, { color: background.neutral[0].foreground.primary }), (0, jsx_runtime_1.jsx)(typography_1.Typo.span, { textType: "body__m", children: iconLabel })] }), files.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: form_module_css_1.default.fileList, children: files.map((file, index) => ((0, jsx_runtime_1.jsxs)("div", { className: form_module_css_1.default.fileItem, children: [(0, jsx_runtime_1.jsx)(button_1.Button, { size: "compact", icon: { left: (0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { size: "small", icon: "actions/Delete" }) }, onClick: () => handleRemoveFile(index) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.span, { textType: "body__s", children: file.name })] }, index))) })), errorMessage && (0, jsx_runtime_1.jsx)(error_message_1.ErrorMessage, { message: errorMessage, id: `error-file_input__${id}` })] }));
|
|
64
|
+
}, children: [(0, jsx_runtime_1.jsx)(FileIcon, { color: background.neutral[0].foreground.primary }), (0, jsx_runtime_1.jsx)(typography_1.Typo.span, { textType: "body__m", children: iconLabel })] }), files.length > 0 && ((0, jsx_runtime_1.jsx)("div", { className: form_module_css_1.default.fileList, children: files.map((file, index) => ((0, jsx_runtime_1.jsxs)("div", { className: form_module_css_1.default.fileItem, children: [(0, jsx_runtime_1.jsx)(button_1.Button, { size: "compact", icon: { left: (0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { size: "small", icon: "actions/Delete" }) }, onClick: () => handleRemoveFile(index) }), (0, jsx_runtime_1.jsx)(typography_1.Typo.span, { textType: "body__s", children: file.name })] }, index))) })), errorMessage && ((0, jsx_runtime_1.jsx)(error_message_1.ErrorMessage, { message: errorMessage, id: `error-file_input__${id}` }))] }));
|
|
65
65
|
}
|
|
66
66
|
function FileIcon({ color }) {
|
|
67
67
|
return ((0, jsx_runtime_1.jsx)("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M17.6222 9.08056L10.1092 16.5936C8.40066 18.3021 5.63057 18.3021 3.92203 16.5936C2.21349 14.885 2.21349 12.1149 3.92203 10.4063L11.4351 2.89333C12.5741 1.75431 14.4208 1.75431 15.5598 2.89333C16.6988 4.03236 16.6988 5.8791 15.5598 7.01812L8.34149 14.2365C7.77193 14.8061 6.84856 14.8061 6.27906 14.2365C5.70954 13.667 5.70954 12.7436 6.27906 12.1741L12.6136 5.83961", stroke: color, strokeWidth: "1.66667", strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/form-component-label/index.tsx"],"names":[],"mappings":"AAIA,KAAK,uBAAuB,GAAG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/form-component-label/index.tsx"],"names":[],"mappings":"AAIA,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,2CAKhC,uBAAuB,4CAczB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,cAAc,GACf,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/form/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/form/input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAY,MAAM,OAAO,CAAC;AAGrD,OAAO,EAAY,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AAMhF,KAAK,UAAU,GAAG;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAEzC,eAAO,MAAM,KAAK,GAAI,qHAanB,UAAU,4CAkEZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -30,7 +30,7 @@ const Input = ({ id, label, errorMessage, type, name, checked, value, modalConte
|
|
|
30
30
|
} }))] }), (0, jsx_runtime_1.jsx)("input", { id: `input__${id}`, type: type, name: name, className: (0, css_1.andIf)({
|
|
31
31
|
[form_module_css_1.default.input]: true,
|
|
32
32
|
[form_module_css_1.default.input__error]: !!errorMessage,
|
|
33
|
-
}), checked: checked, value: value, disabled: disabled, onChange: onChange, placeholder: placeholder, "aria-invalid": !!errorMessage, "aria-describedby": errorMessage ? `error-input__${id}` : undefined }), errorMessage && (0, jsx_runtime_1.jsx)(error_message_1.ErrorMessage, { message: t(errorMessage), id: `error-input__${id}` }), displayDescriptionModal && ((0, jsx_runtime_1.jsx)(description_modal_1.default, { title: label, modalContent: modalContent || {}, isModalOpen: isModalOpen, closeModal: toggleModalState }))] }));
|
|
33
|
+
}), checked: checked, value: value, disabled: disabled, onChange: onChange, placeholder: placeholder, "aria-invalid": !!errorMessage, "aria-describedby": errorMessage ? `error-input__${id}` : undefined }), errorMessage && ((0, jsx_runtime_1.jsx)(error_message_1.ErrorMessage, { message: t(errorMessage), id: `error-input__${id}` })), displayDescriptionModal && ((0, jsx_runtime_1.jsx)(description_modal_1.default, { title: label, modalContent: modalContent || {}, isModalOpen: isModalOpen, closeModal: toggleModalState }))] }));
|
|
34
34
|
};
|
|
35
35
|
exports.Input = Input;
|
|
36
36
|
exports.default = exports.Input;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/form/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/form/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAS,MAAM,OAAO,CAAC;AAIlD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC3D,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAEzC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,IAAI,GACL,EAAE,eAAe,2CAoBjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/searchable-select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/searchable-select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchable-select.d.ts","sourceRoot":"","sources":["../../../../src/components/form/searchable-select/searchable-select.tsx"],"names":[],"mappings":"AAiBA,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAC/D,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"searchable-select.d.ts","sourceRoot":"","sources":["../../../../src/components/form/searchable-select/searchable-select.tsx"],"names":[],"mappings":"AAiBA,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAC/D,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,EAAE,EAC1C,EAAE,EACF,KAAK,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,UAAU,EACV,OAAO,EACP,KAAK,EACL,QAAQ,GACT,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAgI1B"}
|
|
@@ -18,7 +18,7 @@ function SearchableSelect({ id, label, value, placeholder, isDisabled, isRequire
|
|
|
18
18
|
const [focused, setFocused] = (0, react_1.useState)(false);
|
|
19
19
|
(0, react_1.useEffect)(() => {
|
|
20
20
|
if (value === undefined && !focused && inputValue !== '') {
|
|
21
|
-
setInputValue('');
|
|
21
|
+
queueMicrotask(() => setInputValue(''));
|
|
22
22
|
}
|
|
23
23
|
}, [value, focused, inputValue]);
|
|
24
24
|
const handleFocus = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Option } from './searchable-select';
|
|
2
|
-
import { Line } from
|
|
2
|
+
import { Line } from '../../../server/journey-planner/validators';
|
|
3
3
|
export declare const getLineOptions: (lines: Line[]) => Option<Line>[];
|
|
4
4
|
export declare const getStopOptions: (stops: Line["quays"]) => Option<Line["quays"][0]>[];
|
|
5
5
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/form/searchable-select/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/form/searchable-select/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAElE,eAAO,MAAM,cAAc,GAAI,OAAO,IAAI,EAAE,KAAG,MAAM,CAAC,IAAI,CAAC,EAM1D,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,OAAO,IAAI,CAAC,OAAO,CAAC,KACnB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAM1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/form/select.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/form/select.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;IAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,EAAE,EACtC,EAAE,EACF,KAAK,EACL,QAAQ,EACR,KAAK,EACL,KAAK,EACL,OAAO,EACP,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAU,GACX,EAAE,WAAW,CAAC,CAAC,CAAC,2CAoFhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/form/textarea.tsx"],"names":[],"mappings":"AACA,OAAkB,
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/form/textarea.tsx"],"names":[],"mappings":"AACA,OAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKzD,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,CAAC,KAAK,IAAI,CAAC;CACnE,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,EAAE,EACF,WAAW,EACX,QAAQ,EACR,KAAK,EACL,UAAkB,EAClB,KAAK,EACL,cAAc,GACf,EAAE,aAAa,2CAyBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-selector.d.ts","sourceRoot":"","sources":["../../../src/components/form/time-selector.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"time-selector.d.ts","sourceRoot":"","sources":["../../../src/components/form/time-selector.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAkB,MAAM,oBAAoB,CAAC;AAGtE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,EAAE,EACF,KAAK,EACL,KAAK,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,GACT,EAAE,iBAAiB,2CAwCnB"}
|
|
@@ -10,5 +10,5 @@ export type CheckboxIconProps = Pick<React.JSX.IntrinsicElements['div'], 'classN
|
|
|
10
10
|
*/
|
|
11
11
|
checked: boolean;
|
|
12
12
|
};
|
|
13
|
-
export declare function CheckBoxIcon({ checked, size
|
|
13
|
+
export declare function CheckBoxIcon({ checked, size }: CheckboxIconProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=checkbox-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/checkbox-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"checkbox-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/checkbox-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAW,MAAM,SAAS,CAAC;AAuD7C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,WAAW,GAAG,MAAM,CACrB,GAAG;IACF;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,IAAe,EAAE,EAAE,iBAAiB,2CAa3E"}
|
|
@@ -10,7 +10,7 @@ function CheckboxCheckedIcon({ width, height, fill, }) {
|
|
|
10
10
|
function CheckboxUncheckedIcon({ width, height, fill, }) {
|
|
11
11
|
return ((0, jsx_runtime_1.jsx)("svg", { width: width, height: height, viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M31.6649 36.2449H8.33487C5.80487 36.2449 3.75488 34.1849 3.75488 31.6649V8.33488C3.75488 5.80488 5.81487 3.75488 8.33487 3.75488H31.6649C34.1949 3.75488 36.2449 5.81488 36.2449 8.33488V31.6649C36.2449 34.1949 34.1849 36.2449 31.6649 36.2449ZM8.32486 6.24488C7.17486 6.24488 6.24487 7.17489 6.24487 8.32489V31.6549C6.24487 32.8049 7.17486 33.7349 8.32486 33.7349H31.6549C32.8049 33.7349 33.7349 32.8049 33.7349 31.6549V8.32489C33.7349 7.17489 32.8049 6.24488 31.6549 6.24488H8.32486Z", fill: fill }) }));
|
|
12
12
|
}
|
|
13
|
-
function CheckBoxIcon({ checked, size = 'normal'
|
|
13
|
+
function CheckBoxIcon({ checked, size = 'normal' }) {
|
|
14
14
|
const { theme } = (0, theme_1.useTheme)();
|
|
15
15
|
const wh = (0, utils_1.useSize)(size);
|
|
16
16
|
const Icon = checked ? CheckboxCheckedIcon : CheckboxUncheckedIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/color-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"color-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/color-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAW,MAAM,SAAS,CAAC;AAG7C,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC7E;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,IAAe,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAiB5E"}
|
|
@@ -11,12 +11,10 @@ function ColorIcon({ icon, size = 'normal', ...props }) {
|
|
|
11
11
|
const currentIcon = generated_icons_1.icons['colorIcons'][icon];
|
|
12
12
|
if (!currentIcon.darkable) {
|
|
13
13
|
const totalPath = `/assets/${currentIcon.relative}`;
|
|
14
|
-
// eslint-disable-next-line
|
|
15
14
|
return (0, jsx_runtime_1.jsx)("img", { width: wh, height: wh, src: totalPath, ...props });
|
|
16
15
|
}
|
|
17
16
|
else {
|
|
18
17
|
const totalPath = `/assets/${specifyDarkOrLight(currentIcon.relative, isDarkMode)}`;
|
|
19
|
-
// eslint-disable-next-line
|
|
20
18
|
return (0, jsx_runtime_1.jsx)("img", { width: wh, height: wh, src: totalPath, ...props });
|
|
21
19
|
}
|
|
22
20
|
}
|