@mrfylke/contact-form 0.1.23 → 0.1.25
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 +1 -11
- package/lib/ContactFormRoot.d.ts +2 -2
- package/lib/ContactFormRoot.d.ts.map +1 -1
- package/lib/ContactFormRoot.js +2 -1
- package/lib/components/button/link.d.ts +1 -1
- package/lib/components/button/link.d.ts.map +1 -1
- package/lib/components/button/utils.d.ts +2 -2
- package/lib/components/button/utils.d.ts.map +1 -1
- package/lib/components/checkbox/checkbox.d.ts +1 -1
- package/lib/components/checkbox/checkbox.d.ts.map +1 -1
- package/lib/components/error-message/error-message.d.ts +1 -1
- package/lib/components/error-message/error-message.d.ts.map +1 -1
- package/lib/components/external-link-page.d.ts +2 -2
- package/lib/components/external-link-page.d.ts.map +1 -1
- package/lib/components/external-link-page.js +1 -1
- 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/date-selector.js +2 -2
- package/lib/components/form/departure-time-field.d.ts +1 -1
- package/lib/components/form/departure-time-field.d.ts.map +1 -1
- package/lib/components/form/description-modal.d.ts +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 +1 -1
- package/lib/components/form/fieldset/index.d.ts.map +1 -1
- package/lib/components/form/file-input.d.ts +1 -1
- package/lib/components/form/file-input.d.ts.map +1 -1
- package/lib/components/form/form-component-label/index.d.ts +3 -2
- package/lib/components/form/form-component-label/index.d.ts.map +1 -1
- package/lib/components/form/form-component-label/index.js +2 -2
- package/lib/components/form/input.d.ts +1 -1
- package/lib/components/form/input.d.ts.map +1 -1
- package/lib/components/form/radio.d.ts +1 -1
- package/lib/components/form/radio.d.ts.map +1 -1
- package/lib/components/form/searchable-select/searchable-select.d.ts +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/select.d.ts +1 -1
- package/lib/components/form/select.d.ts.map +1 -1
- package/lib/components/form/select.js +1 -1
- package/lib/components/form/textarea.d.ts +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/form/time-selector.js +2 -2
- 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/color-icon.d.ts +1 -1
- package/lib/components/icon/color-icon.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.d.ts +422 -262
- package/lib/components/icon/generated-icons.d.ts.map +1 -1
- package/lib/components/icon/generated-icons.js +1931 -1771
- package/lib/components/icon/illustration.d.ts +1 -1
- package/lib/components/icon/illustration.d.ts.map +1 -1
- package/lib/components/icon/image.d.ts +1 -1
- package/lib/components/icon/image.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/utils.d.ts.map +1 -1
- package/lib/components/icon/utils.js +6 -6
- package/lib/components/loading/index.d.ts +2 -2
- package/lib/components/loading/index.d.ts.map +1 -1
- package/lib/components/section-card/section-card.d.ts +1 -1
- package/lib/components/section-card/section-card.d.ts.map +1 -1
- package/lib/components/typography/index.d.ts +6 -6
- package/lib/components/typography/index.d.ts.map +1 -1
- package/lib/error-content/error-content.d.ts +1 -1
- package/lib/error-content/error-content.d.ts.map +1 -1
- package/lib/group-travel/index.d.ts +1 -1
- package/lib/group-travel/index.d.ts.map +1 -1
- package/lib/index.d.ts +5 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -12
- package/lib/journey-info/events.d.ts.map +1 -1
- package/lib/journey-info/index.d.ts +1 -1
- package/lib/journey-info/index.d.ts.map +1 -1
- package/lib/journey-info/index.js +1 -1
- package/lib/layouts/contact-form-container.d.ts +1 -1
- package/lib/layouts/contact-form-container.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.d.ts +1 -23
- package/lib/layouts/contact-page-layout.d.ts.map +1 -1
- package/lib/layouts/contact-page-layout.js +39 -90
- package/lib/layouts/contact-pages.d.ts +20 -0
- package/lib/layouts/contact-pages.d.ts.map +1 -0
- package/lib/layouts/contact-pages.js +124 -0
- package/lib/layouts/index.d.ts +2 -1
- package/lib/layouts/index.d.ts.map +1 -1
- package/lib/layouts/index.js +5 -2
- package/lib/lines/use-departures.js +2 -2
- package/lib/lines/use-lines.d.ts +2 -2
- package/lib/lines/use-lines.js +1 -1
- package/lib/lost-property/LostPropertyForm.d.ts +2 -1
- package/lib/lost-property/LostPropertyForm.d.ts.map +1 -1
- package/lib/lost-property/index.d.ts +1 -1
- package/lib/lost-property/index.d.ts.map +1 -1
- package/lib/lost-property-external/index.d.ts +2 -0
- package/lib/lost-property-external/index.d.ts.map +1 -0
- package/lib/lost-property-external/index.js +17 -0
- package/lib/means-of-transport/events.d.ts.map +1 -1
- package/lib/means-of-transport/forms/delayForm.d.ts +1 -1
- package/lib/means-of-transport/forms/delayForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts +1 -1
- package/lib/means-of-transport/forms/driverForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts +1 -1
- package/lib/means-of-transport/forms/injuryForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts +1 -1
- package/lib/means-of-transport/forms/serviceOfferingForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts +1 -1
- package/lib/means-of-transport/forms/stopForm.d.ts.map +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts +1 -1
- package/lib/means-of-transport/forms/transportationForm.d.ts.map +1 -1
- package/lib/means-of-transport/index.d.ts +1 -1
- package/lib/means-of-transport/index.d.ts.map +1 -1
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts +22 -22
- package/lib/means-of-transport/means-of-transport-form-machine.d.ts.map +1 -1
- package/lib/modules/config/context.d.ts +5 -37
- package/lib/modules/config/context.d.ts.map +1 -1
- package/lib/modules/config/context.js +9 -51
- package/lib/modules/config/types.d.ts +79 -64
- package/lib/modules/config/types.d.ts.map +1 -1
- package/lib/modules/config/types.js +9 -0
- package/lib/modules/org-data/index.d.ts +2 -2
- package/lib/modules/org-data/index.js +2 -2
- package/lib/modules/theme/theme-context.d.ts +1 -1
- package/lib/modules/theme/theme-context.d.ts.map +1 -1
- package/lib/modules/transport-mode/filter/filter.d.ts +1 -1
- package/lib/modules/transport-mode/filter/filter.d.ts.map +1 -1
- package/lib/modules/transport-mode/icon/index.d.ts +4 -4
- package/lib/modules/transport-mode/icon/index.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.d.ts +3 -5
- package/lib/modules/transport-mode/types.d.ts.map +1 -1
- package/lib/modules/transport-mode/types.js +3 -138
- package/lib/modules/transport-mode/utils.d.ts +2 -2
- package/lib/modules/transport-mode/utils.d.ts.map +1 -1
- package/lib/modules/transport-mode/utils.js +39 -6
- package/lib/refund/forms/refund-and-travel-guarantee/index.d.ts +1 -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 +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 +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 +2 -2
- package/lib/refund/forms/refund-ticket/appTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/index.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.d.ts.map +1 -1
- package/lib/refund/forms/refund-ticket/otherTicketRefund.js +1 -5
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts +1 -1
- package/lib/refund/forms/residualValueOnTravelCard/index.d.ts.map +1 -1
- package/lib/refund/index.d.ts +1 -1
- package/lib/refund/index.d.ts.map +1 -1
- package/lib/refund/refundFormMachine.d.ts +14 -14
- package/lib/refund/refundFormMachine.js +1 -1
- package/lib/server/departures-route-handler.d.ts +27 -0
- package/lib/server/departures-route-handler.d.ts.map +1 -0
- package/lib/server/departures-route-handler.js +93 -0
- package/lib/server/index.d.ts +1 -0
- package/lib/server/index.d.ts.map +1 -1
- package/lib/server/index.js +3 -1
- package/lib/server/journey-planner/authority.d.ts +2 -2
- package/lib/server/journey-planner/authority.js +3 -3
- package/lib/server/journey-planner/index.d.ts.map +1 -1
- package/lib/server/journey-planner/index.js +8 -9
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts +1 -0
- package/lib/server/journey-planner/journey-gql/lines.generated.d.ts.map +1 -1
- package/lib/server/journey-planner/journey-gql/lines.generated.js +1 -0
- package/lib/server/journey-planner/validators.d.ts +4 -4
- package/lib/server/journey-planner/validators.js +3 -3
- package/lib/server/lines-route-handler.d.ts +7 -18
- package/lib/server/lines-route-handler.d.ts.map +1 -1
- package/lib/server/lines-route-handler.js +15 -17
- package/lib/success-content/success-content.d.ts +1 -1
- package/lib/success-content/success-content.d.ts.map +1 -1
- package/lib/ticket-control/events.d.ts +1 -1
- package/lib/ticket-control/events.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/feeComplaintForm.js +5 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts +1 -1
- package/lib/ticket-control/forms/feedbackForm.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts +1 -1
- package/lib/ticket-control/forms/postponePayment.d.ts.map +1 -1
- package/lib/ticket-control/forms/postponePayment.js +5 -1
- package/lib/ticket-control/index.d.ts +1 -1
- package/lib/ticket-control/index.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.d.ts +24 -22
- package/lib/ticket-control/ticket-control-form-machine.d.ts.map +1 -1
- package/lib/ticket-control/ticket-control-form-machine.js +4 -2
- package/lib/ticketing/events.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts +1 -1
- package/lib/ticketing/forms/app/appTravelSuggestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/app/index.d.ts +1 -1
- package/lib/ticketing/forms/app/index.d.ts.map +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts +1 -1
- package/lib/ticketing/forms/priceAndTicketTypesForm.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/index.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/orderTravelCard.d.ts.map +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts +1 -1
- package/lib/ticketing/forms/travel-card/travelCardQuestionForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts +1 -1
- package/lib/ticketing/forms/webshop/index.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts +1 -1
- package/lib/ticketing/forms/webshop/webshopAccountForm.d.ts.map +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts +1 -1
- package/lib/ticketing/forms/webshop/webshopTicketingForm.d.ts.map +1 -1
- package/lib/ticketing/index.d.ts +1 -1
- package/lib/ticketing/index.d.ts.map +1 -1
- package/lib/ticketing/ticketingStateMachine.d.ts +8 -8
- package/lib/translations/common/layout.d.ts.map +1 -1
- package/lib/translations/common/layout.js +1 -29
- package/lib/translations/common/titles.d.ts.map +1 -1
- package/lib/translations/common/titles.js +2 -20
- package/lib/translations/json-to-override.d.ts.map +1 -1
- package/lib/translations/language-context.d.ts +3 -3
- package/lib/translations/language-context.d.ts.map +1 -1
- package/lib/translations/merge-overrides.d.ts +3 -3
- package/lib/translations/merge-overrides.js +3 -3
- package/lib/translations/pages/contact.d.ts +6 -16
- package/lib/translations/pages/contact.d.ts.map +1 -1
- package/lib/translations/pages/contact.js +7 -31
- package/lib/translations/server/endpoints.d.ts.map +1 -1
- package/lib/translations/server/endpoints.js +7 -83
- package/lib/translations/translations-context.d.ts +1 -1
- package/lib/translations/translations-context.d.ts.map +1 -1
- package/lib/translations/types.d.ts +7 -7
- package/lib/translations/types.d.ts.map +1 -1
- package/lib/translations/utils.d.ts +0 -7
- package/lib/translations/utils.d.ts.map +1 -1
- package/lib/translations/utils.js +0 -26
- package/lib/types/submit-payloads.d.ts +1 -0
- package/lib/types/submit-payloads.d.ts.map +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/utils/typing.d.ts +32 -0
- package/lib/utils/typing.d.ts.map +1 -0
- package/lib/utils/typing.js +6 -0
- package/lib/utils.d.ts +0 -1
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +1 -5
- package/lib/validation/validationRules.d.ts.map +1 -1
- package/lib/validation/validationRules.js +7 -0
- package/package.json +42 -32
- package/lib/components/icon/icon-wrapper.d.ts +0 -30
- package/lib/components/icon/icon-wrapper.d.ts.map +0 -1
- package/lib/components/icon/icon-wrapper.js +0 -39
- package/lib/components/icon/mono-icon-new.d.ts +0 -32
- package/lib/components/icon/mono-icon-new.d.ts.map +0 -1
- package/lib/components/icon/mono-icon-new.js +0 -43
|
@@ -3,5 +3,5 @@ export type IllustrationProps = Omit<React.JSX.IntrinsicElements['img'], 'src'>
|
|
|
3
3
|
image: Illustrations;
|
|
4
4
|
alt: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function Illustration({ image, ...props }: IllustrationProps): import("react
|
|
6
|
+
export declare function Illustration({ image, ...props }: IllustrationProps): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=illustration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"illustration.d.ts","sourceRoot":"","sources":["../../../src/components/icon/illustration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,KAAK,CACN,GAAG;IACF,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB
|
|
1
|
+
{"version":3,"file":"illustration.d.ts","sourceRoot":"","sources":["../../../src/components/icon/illustration.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGzD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAClC,KAAK,CACN,GAAG;IACF,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAgBlE"}
|
|
@@ -2,6 +2,6 @@ import { Images } from './generated-icons';
|
|
|
2
2
|
type ColorImageProps = Omit<React.JSX.IntrinsicElements['img'], 'src'> & {
|
|
3
3
|
image: Images;
|
|
4
4
|
};
|
|
5
|
-
export declare function Image({ image, ...props }: ColorImageProps): import("react
|
|
5
|
+
export declare function Image({ image, ...props }: ColorImageProps): import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
7
7
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/icon/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGlD,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IACvE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/icon/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGlD,KAAK,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IACvE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAkBzD"}
|
|
@@ -24,6 +24,6 @@ export type MonoIconProps = Omit<React.JSX.IntrinsicElements['img'], 'src'> & {
|
|
|
24
24
|
interactiveColor?: InteractiveColor;
|
|
25
25
|
interactiveState?: InteractiveState;
|
|
26
26
|
};
|
|
27
|
-
export declare function MonoIcon({ icon, size, overrideMode, interactiveColor, interactiveState, ...props }: MonoIconProps): import("react
|
|
27
|
+
export declare function MonoIcon({ icon, size, overrideMode, interactiveColor, interactiveState, ...props }: MonoIconProps): import("react").JSX.Element;
|
|
28
28
|
export default MonoIcon;
|
|
29
29
|
//# sourceMappingURL=mono-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mono-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/mono-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAS,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAW,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC5E;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAe,EACf,YAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,aAAa
|
|
1
|
+
{"version":3,"file":"mono-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/mono-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAS,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAW,MAAM,SAAS,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7D,YAAY,EAAE,SAAS,EAAE,CAAC;AAC1B,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG;IAC5E;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAe,EACf,YAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,aAAa,+BAoBf;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/icon/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/icon/utils.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAOhE,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAE/C"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useSize = useSize;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
// Icon size utilities
|
|
5
|
+
const theme_1 = require("@atb-as/theme");
|
|
6
|
+
// Icon sizes are brand-invariant design tokens (identical across every
|
|
7
|
+
// @atb-as/theme brand variant); AtB is used here only as the source brand.
|
|
8
|
+
const SIZE_MAP = (0, theme_1.createThemesFor)(theme_1.ThemeVariant.AtB)
|
|
9
|
+
.light.icon.size;
|
|
10
10
|
function useSize(size) {
|
|
11
11
|
return SIZE_MAP[size] || SIZE_MAP.normal;
|
|
12
12
|
}
|
|
@@ -7,9 +7,9 @@ export type LoadingProps = {
|
|
|
7
7
|
text: string;
|
|
8
8
|
testID?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare function Loading({ text, testID }: LoadingProps): import("react
|
|
10
|
+
export declare function Loading({ text, testID }: LoadingProps): import("react").JSX.Element;
|
|
11
11
|
export declare function LoadingIcon({ size, a11yText, }: {
|
|
12
12
|
size?: ColorIconProps['size'];
|
|
13
13
|
a11yText?: string;
|
|
14
|
-
}): import("react
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/loading/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/loading/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,YAAY,+BAkBrD;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,+BAYA"}
|
|
@@ -2,6 +2,6 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
export type SectionCardProps = PropsWithChildren<{
|
|
3
3
|
title: string;
|
|
4
4
|
}>;
|
|
5
|
-
export declare const SectionCard: ({ title, children }: SectionCardProps) => import("react
|
|
5
|
+
export declare const SectionCard: ({ title, children }: SectionCardProps) => import("react").JSX.Element;
|
|
6
6
|
export default SectionCard;
|
|
7
7
|
//# sourceMappingURL=section-card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-card.d.ts","sourceRoot":"","sources":["../../../src/components/section-card/section-card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,qBAAqB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"section-card.d.ts","sourceRoot":"","sources":["../../../src/components/section-card/section-card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,qBAAqB,gBAAgB,gCAOhE,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -7,14 +7,14 @@ type BaseTypographyInternal<E extends React.ElementType = React.ElementType> = R
|
|
|
7
7
|
}>;
|
|
8
8
|
export type BaseTypographyProps<E extends React.ElementType> = BaseTypographyInternal<E> & Omit<React.ComponentProps<E>, keyof BaseTypographyInternal>;
|
|
9
9
|
declare const __DEFAULT_ELEMENT__ = "span";
|
|
10
|
-
export default function BaseTypography<E extends React.ElementType = typeof __DEFAULT_ELEMENT__>({ as, textType, testID, className, children, ...props }: BaseTypographyProps<E>):
|
|
10
|
+
export default function BaseTypography<E extends React.ElementType = typeof __DEFAULT_ELEMENT__>({ as, textType, testID, className, children, ...props }: BaseTypographyProps<E>): React.JSX.Element;
|
|
11
11
|
type SupportedTypes = 'div' | 'p' | 'span' | 'h2' | 'h3';
|
|
12
12
|
export declare const Typo: {
|
|
13
|
-
span: (props: BaseTypographyProps<SupportedTypes>) =>
|
|
14
|
-
div: (props: BaseTypographyProps<SupportedTypes>) =>
|
|
15
|
-
p: (props: BaseTypographyProps<SupportedTypes>) =>
|
|
16
|
-
h2: (props: BaseTypographyProps<SupportedTypes>) =>
|
|
17
|
-
h3: (props: BaseTypographyProps<SupportedTypes>) =>
|
|
13
|
+
span: (props: BaseTypographyProps<SupportedTypes>) => React.JSX.Element;
|
|
14
|
+
div: (props: BaseTypographyProps<SupportedTypes>) => React.JSX.Element;
|
|
15
|
+
p: (props: BaseTypographyProps<SupportedTypes>) => React.JSX.Element;
|
|
16
|
+
h2: (props: BaseTypographyProps<SupportedTypes>) => React.JSX.Element;
|
|
17
|
+
h3: (props: BaseTypographyProps<SupportedTypes>) => React.JSX.Element;
|
|
18
18
|
};
|
|
19
19
|
export { screenReaderPause } from './utils';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,KAAK,sBAAsB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IACzE,KAAK,CAAC,iBAAiB,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEL,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IACzD,sBAAsB,CAAC,CAAC,CAAC,GACvB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,sBAAsB,CAAC,CAAC;AAEhE,QAAA,MAAM,mBAAmB,SAAS,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,mBAAmB,EACxD,EACA,EAAE,EACF,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/typography/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,KAAK,sBAAsB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,IACzE,KAAK,CAAC,iBAAiB,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;IACpB,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEL,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,IACzD,sBAAsB,CAAC,CAAC,CAAC,GACvB,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,MAAM,sBAAsB,CAAC,CAAC;AAEhE,QAAA,MAAM,mBAAmB,SAAS,CAAC;AAEnC,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,mBAAmB,EACxD,EACA,EAAE,EACF,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,CAAC,CAAC,qBAYxB;AAED,KAAK,cAAc,GAAG,KAAK,GAAG,GAAG,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAQzD,eAAO,MAAM,IAAI;kBALiB,mBAAmB,gBAAY;iBAA/B,mBAAmB,gBAAY;eAA/B,mBAAmB,gBAAY;gBAA/B,mBAAmB,gBAAY;gBAA/B,mBAAmB,gBAAY;CAWhE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function ErrorContent(): import("react
|
|
1
|
+
export declare function ErrorContent(): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=error-content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-content.d.ts","sourceRoot":"","sources":["../../src/error-content/error-content.tsx"],"names":[],"mappings":"AAOA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"error-content.d.ts","sourceRoot":"","sources":["../../src/error-content/error-content.tsx"],"names":[],"mappings":"AAOA,wBAAgB,YAAY,gCAoB3B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function GroupTravelContent(): import("react
|
|
1
|
+
export default function GroupTravelContent(): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/group-travel/index.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/group-travel/index.tsx"],"names":[],"mappings":"AAMA,MAAM,CAAC,OAAO,UAAU,kBAAkB,gCAmBzC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { useContactFormConfig, useThemeConfig, useApiConfig, buildEnabledPageIds, } from './modules/config';
|
|
2
2
|
export type { TicketControlSubmitPayload, RefundSubmitPayload, MeansOfTransportSubmitPayload, TicketingSubmitPayload, JourneyInfoSubmitPayload, LostPropertySubmitPayload, } from './types/submit-payloads';
|
|
3
3
|
export type { TransportModeType, ReasonForTransportFailure, TicketType, PurchasePlatformType, } from './types';
|
|
4
4
|
export { TicketTypeId } from './types';
|
|
5
|
-
export type { ContactFormConfig,
|
|
5
|
+
export type { ContactFormConfig, Theme, ThemeColors, ContrastColor, TransportColors, InteractiveColor, StatusColors, ApiConfig, OrgConfig, LayoutConfig, LayoutLinkLabel, PagesConfig, FormSchemaOverrides, FormSchemaName, ContactPage, PageId, ExtraPageId, ExtraContactPage, EnabledPageIdsList, } from './modules/config';
|
|
6
6
|
export { ThemeProvider, useTheme, useHtmlDarkMode } from './modules/theme';
|
|
7
|
-
export {
|
|
8
|
-
export { MonoIcon } from './components/icon/mono-icon-new';
|
|
7
|
+
export type { MonoIcons } from './components/icon';
|
|
9
8
|
export { ButtonLink, Button } from './components/button';
|
|
10
9
|
export type { ButtonLinkProps, ButtonProps } from './components/button';
|
|
11
10
|
export { Typo } from './components/typography';
|
|
@@ -16,10 +15,10 @@ export { FieldWrapperWithError, FileInput, Fieldset, Input, Radio, Select, Texta
|
|
|
16
15
|
export { Checkbox } from './components/checkbox';
|
|
17
16
|
export { type Line } from './server/journey-planner/validators';
|
|
18
17
|
export { useLines, useTransportModeOptions } from './lines/use-lines';
|
|
19
|
-
export {
|
|
18
|
+
export { scrollToFirstErrorMessage, findFirstErrorMessage, getLineName, findOrderFormFields, } from './utils';
|
|
20
19
|
export { commonInputValidator } from './validation';
|
|
21
20
|
export type { InputErrorMessages } from './validation';
|
|
22
|
-
export { ContactPageLayout,
|
|
21
|
+
export { ContactPageLayout, getContactPages, getPageTitleForPathname, useActiveContactPageTitle, ContactFormContainer, type ContactFormContainerProps, } from './layouts';
|
|
23
22
|
export { ExternalLinkPage, type ExternalLinkPageProps, } from './components/external-link-page';
|
|
24
23
|
export { ErrorContent } from './error-content/error-content';
|
|
25
24
|
export { SuccessContent } from './success-content/success-content';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,0BAA0B,EAC1B,mBAAmB,EACnB,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,iBAAiB,EACjB,yBAAyB,EACzB,UAAU,EACV,oBAAoB,GACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,YAAY,EACV,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,MAAM,EACN,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE3E,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACzD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGxE,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAGlF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACL,qBAAqB,EACrB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,WAAW,EACX,mBAAmB,GACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -17,16 +17,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.AppTicketRefundContent = exports.RefundFormEvents = exports.RefundTicketForm = exports.FormType = exports.RefundContent = exports.SuccessContent = exports.ErrorContent = exports.ExternalLinkPage = exports.ContactFormContainer = exports.
|
|
21
|
-
exports.ContactFormRoot = exports.JourneyInfoContent =
|
|
20
|
+
exports.TicketingContent = exports.TicketControlPageContent = exports.MeansOfTransportContent = exports.AppTicketRefundContent = exports.RefundFormEvents = exports.RefundTicketForm = exports.FormType = exports.RefundContent = exports.SuccessContent = exports.ErrorContent = exports.ExternalLinkPage = exports.ContactFormContainer = exports.useActiveContactPageTitle = exports.getPageTitleForPathname = exports.getContactPages = exports.ContactPageLayout = exports.commonInputValidator = exports.findOrderFormFields = exports.getLineName = exports.findFirstErrorMessage = exports.scrollToFirstErrorMessage = exports.useTransportModeOptions = exports.useLines = exports.Checkbox = exports.DepartureTimeField = exports.TimeSelector = exports.DateSelector = exports.getStopOptions = exports.getLineOptions = exports.SearchableSelect = exports.Textarea = exports.Select = exports.Radio = exports.Input = exports.Fieldset = exports.FileInput = exports.FieldWrapperWithError = exports.SectionCard = exports.ErrorMessage = exports.Typo = exports.Button = exports.ButtonLink = exports.useHtmlDarkMode = exports.useTheme = exports.ThemeProvider = exports.TicketTypeId = exports.buildEnabledPageIds = exports.useApiConfig = exports.useThemeConfig = exports.useContactFormConfig = void 0;
|
|
21
|
+
exports.ContactFormRoot = exports.JourneyInfoContent = void 0;
|
|
22
22
|
// Configuration system (NEW - required for setup)
|
|
23
23
|
var config_1 = require("./modules/config");
|
|
24
|
-
Object.defineProperty(exports, "ContactFormConfigProvider", { enumerable: true, get: function () { return config_1.ContactFormConfigProvider; } });
|
|
25
24
|
Object.defineProperty(exports, "useContactFormConfig", { enumerable: true, get: function () { return config_1.useContactFormConfig; } });
|
|
26
25
|
Object.defineProperty(exports, "useThemeConfig", { enumerable: true, get: function () { return config_1.useThemeConfig; } });
|
|
27
|
-
Object.defineProperty(exports, "useIconConfig", { enumerable: true, get: function () { return config_1.useIconConfig; } });
|
|
28
|
-
Object.defineProperty(exports, "useOrgConfig", { enumerable: true, get: function () { return config_1.useOrgConfig; } });
|
|
29
26
|
Object.defineProperty(exports, "useApiConfig", { enumerable: true, get: function () { return config_1.useApiConfig; } });
|
|
27
|
+
Object.defineProperty(exports, "buildEnabledPageIds", { enumerable: true, get: function () { return config_1.buildEnabledPageIds; } });
|
|
30
28
|
var types_1 = require("./types");
|
|
31
29
|
Object.defineProperty(exports, "TicketTypeId", { enumerable: true, get: function () { return types_1.TicketTypeId; } });
|
|
32
30
|
// Theme system (NEW)
|
|
@@ -34,11 +32,6 @@ var theme_1 = require("./modules/theme");
|
|
|
34
32
|
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return theme_1.ThemeProvider; } });
|
|
35
33
|
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return theme_1.useTheme; } });
|
|
36
34
|
Object.defineProperty(exports, "useHtmlDarkMode", { enumerable: true, get: function () { return theme_1.useHtmlDarkMode; } });
|
|
37
|
-
// Icon system (NEW)
|
|
38
|
-
var icon_wrapper_1 = require("./components/icon/icon-wrapper");
|
|
39
|
-
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return icon_wrapper_1.Icon; } });
|
|
40
|
-
var mono_icon_new_1 = require("./components/icon/mono-icon-new");
|
|
41
|
-
Object.defineProperty(exports, "MonoIcon", { enumerable: true, get: function () { return mono_icon_new_1.MonoIcon; } });
|
|
42
35
|
// Button components
|
|
43
36
|
var button_1 = require("./components/button");
|
|
44
37
|
Object.defineProperty(exports, "ButtonLink", { enumerable: true, get: function () { return button_1.ButtonLink; } });
|
|
@@ -72,7 +65,6 @@ var use_lines_1 = require("./lines/use-lines");
|
|
|
72
65
|
Object.defineProperty(exports, "useLines", { enumerable: true, get: function () { return use_lines_1.useLines; } });
|
|
73
66
|
Object.defineProperty(exports, "useTransportModeOptions", { enumerable: true, get: function () { return use_lines_1.useTransportModeOptions; } });
|
|
74
67
|
var utils_1 = require("./utils");
|
|
75
|
-
Object.defineProperty(exports, "shouldShowContactPage", { enumerable: true, get: function () { return utils_1.shouldShowContactPage; } });
|
|
76
68
|
Object.defineProperty(exports, "scrollToFirstErrorMessage", { enumerable: true, get: function () { return utils_1.scrollToFirstErrorMessage; } });
|
|
77
69
|
Object.defineProperty(exports, "findFirstErrorMessage", { enumerable: true, get: function () { return utils_1.findFirstErrorMessage; } });
|
|
78
70
|
Object.defineProperty(exports, "getLineName", { enumerable: true, get: function () { return utils_1.getLineName; } });
|
|
@@ -81,7 +73,9 @@ var validation_1 = require("./validation");
|
|
|
81
73
|
Object.defineProperty(exports, "commonInputValidator", { enumerable: true, get: function () { return validation_1.commonInputValidator; } });
|
|
82
74
|
var layouts_1 = require("./layouts");
|
|
83
75
|
Object.defineProperty(exports, "ContactPageLayout", { enumerable: true, get: function () { return layouts_1.ContactPageLayout; } });
|
|
84
|
-
Object.defineProperty(exports, "
|
|
76
|
+
Object.defineProperty(exports, "getContactPages", { enumerable: true, get: function () { return layouts_1.getContactPages; } });
|
|
77
|
+
Object.defineProperty(exports, "getPageTitleForPathname", { enumerable: true, get: function () { return layouts_1.getPageTitleForPathname; } });
|
|
78
|
+
Object.defineProperty(exports, "useActiveContactPageTitle", { enumerable: true, get: function () { return layouts_1.useActiveContactPageTitle; } });
|
|
85
79
|
Object.defineProperty(exports, "ContactFormContainer", { enumerable: true, get: function () { return layouts_1.ContactFormContainer; } });
|
|
86
80
|
var external_link_page_1 = require("./components/external-link-page");
|
|
87
81
|
Object.defineProperty(exports, "ExternalLinkPage", { enumerable: true, get: function () { return external_link_page_1.ExternalLinkPage; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/journey-info/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,6BAA6B,GAC9B;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,UAAU,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;CACtB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEN,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/journey-info/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,6BAA6B,GAC9B;IACE,IAAI,EAAE,iBAAiB,CAAC;IACxB,SAAS,EAAE,UAAU,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB,GACD;IACE,IAAI,EAAE,cAAc,CAAC;CACtB,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEN,eAAO,MAAM,qBAAqB,EAChC,OAAO,YAAY,GAAG,6BAA6B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function JourneyInfoContent(): import("react
|
|
1
|
+
export default function JourneyInfoContent(): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/journey-info/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/journey-info/index.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,kBAAkB,gCAkLzC"}
|
|
@@ -20,7 +20,7 @@ function JourneyInfoContent() {
|
|
|
20
20
|
const PageText = (0, translations_1.usePageText)();
|
|
21
21
|
const { t } = (0, translations_1.useTranslation)();
|
|
22
22
|
const apiConfig = (0, config_1.useApiConfig)();
|
|
23
|
-
const { layout, org } = (0, config_1.useContactFormConfig)();
|
|
23
|
+
const { layout, org = {} } = (0, config_1.useContactFormConfig)();
|
|
24
24
|
const successPath = layout?.successPath ??
|
|
25
25
|
(layout?.basePath ? `${layout.basePath}/success` : '/contact/success');
|
|
26
26
|
const errorPath = layout?.errorPath ??
|
|
@@ -6,5 +6,5 @@ export type ContactFormContainerProps = {
|
|
|
6
6
|
footer: ReactNode;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
};
|
|
9
|
-
export declare function ContactFormContainer({ header, footer, children, }: ContactFormContainerProps): import("react
|
|
9
|
+
export declare function ContactFormContainer({ header, footer, children, }: ContactFormContainerProps): import("react").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=contact-form-container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-form-container.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,EACN,QAAQ,GACT,EAAE,yBAAyB
|
|
1
|
+
{"version":3,"file":"contact-form-container.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-form-container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,oDAAoD;IACpD,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,EACN,QAAQ,GACT,EAAE,yBAAyB,+BAS3B"}
|
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TranslatedString, PageText as StaticPageText } from '../translations';
|
|
3
|
-
import { MonoIcons } from '../components/icon';
|
|
4
|
-
export type ContactPage = {
|
|
5
|
-
title: TranslatedString;
|
|
6
|
-
href: string;
|
|
7
|
-
icon: MonoIcons;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Standard contact pages (tabs) as defined in the package.
|
|
11
|
-
* This is the default list used when no overrides are provided.
|
|
12
|
-
*/
|
|
13
|
-
export declare const getStandardContactPages: (PageText?: typeof StaticPageText) => ContactPage[];
|
|
14
|
-
export declare const contactPages: ContactPage[];
|
|
15
|
-
export type ContactPageLayoutProps = PropsWithChildren<{
|
|
16
|
-
title: string;
|
|
17
|
-
backLink?: {
|
|
18
|
-
href: string;
|
|
19
|
-
label: TranslatedString | Record<string, string>;
|
|
20
|
-
};
|
|
21
|
-
}>;
|
|
22
|
-
declare function ContactPageLayout({ children, backLink }: ContactPageLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export default ContactPageLayout;
|
|
1
|
+
export default function ContactPageLayout(): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element;
|
|
24
2
|
//# sourceMappingURL=contact-page-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-page-layout.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-page-layout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contact-page-layout.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-page-layout.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,iBAAiB,6UA6ExC"}
|
|
@@ -3,9 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = ContactPageLayout;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = require("react");
|
|
9
8
|
const layout_module_css_1 = __importDefault(require("./layout.module.css"));
|
|
10
9
|
const navigation_1 = require("next/navigation");
|
|
11
10
|
const link_1 = __importDefault(require("next/link"));
|
|
@@ -13,97 +12,47 @@ const translations_1 = require("../translations");
|
|
|
13
12
|
const icon_1 = require("../components/icon");
|
|
14
13
|
const button_1 = require("../components/button");
|
|
15
14
|
const typography_1 = require("../components/typography");
|
|
15
|
+
const external_link_page_1 = require("../components/external-link-page");
|
|
16
|
+
const error_content_1 = require("../error-content/error-content");
|
|
17
|
+
const success_content_1 = require("../success-content/success-content");
|
|
16
18
|
const css_1 = require("../utils/css");
|
|
17
19
|
const config_1 = require("../modules/config");
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
const getStandardContactPages = (PageText = translations_1.PageText) => [
|
|
23
|
-
{
|
|
24
|
-
title: PageText.Contact.ticketControl.title,
|
|
25
|
-
href: '/contact/ticket-control',
|
|
26
|
-
icon: 'ticketing/TicketInvalid',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
title: PageText.Contact.refund.title,
|
|
30
|
-
href: '/contact/refund',
|
|
31
|
-
icon: 'transportation-entur/Taxi',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
title: PageText.Contact.modeOfTransport.title,
|
|
35
|
-
href: '/contact/means-of-transport',
|
|
36
|
-
icon: 'transportation/BusFill',
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
title: PageText.Contact.ticketing.title,
|
|
40
|
-
href: '/contact/ticketing',
|
|
41
|
-
icon: 'devices/Phone',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: PageText.Contact.skoleskyss.title,
|
|
45
|
-
href: '/contact/skoleskyss',
|
|
46
|
-
icon: 'ticketing/Student',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
title: PageText.Contact.lostProperty.title,
|
|
50
|
-
href: '/contact/lost-property',
|
|
51
|
-
icon: 'actions/Support',
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
title: PageText.Contact.groupTravel.title,
|
|
55
|
-
href: '/contact/group-travel',
|
|
56
|
-
icon: 'ticketing/TicketMultiple',
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
title: PageText.Contact.journeyInfo.title,
|
|
60
|
-
href: '/contact/journey-info',
|
|
61
|
-
icon: 'actions/Feedback',
|
|
62
|
-
},
|
|
63
|
-
];
|
|
64
|
-
exports.getStandardContactPages = getStandardContactPages;
|
|
65
|
-
// Keep contactPages export for backward compatibility
|
|
66
|
-
exports.contactPages = (0, exports.getStandardContactPages)();
|
|
67
|
-
const pagesWithoutPrivacyAndTerms = ['/contact/group-travel'];
|
|
68
|
-
/**
|
|
69
|
-
* Extract page ID from href (e.g., '/contact/lost-property' -> 'lost-property')
|
|
70
|
-
*/
|
|
71
|
-
function getPageIdFromHref(href) {
|
|
72
|
-
const parts = href.split('/');
|
|
73
|
-
return parts[parts.length - 1] || '';
|
|
74
|
-
}
|
|
75
|
-
function ContactPageLayout({ children, backLink }) {
|
|
76
|
-
const PageText = (0, translations_1.usePageText)();
|
|
20
|
+
const contact_pages_1 = require("./contact-pages");
|
|
21
|
+
function ContactPageLayout() {
|
|
22
|
+
const pageText = (0, translations_1.usePageText)();
|
|
77
23
|
const { t } = (0, translations_1.useTranslation)();
|
|
78
24
|
const pathname = (0, navigation_1.usePathname)();
|
|
79
|
-
const {
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
25
|
+
const { pages, layout } = (0, config_1.useContactFormConfig)();
|
|
26
|
+
const visiblePages = (0, contact_pages_1.useVisiblePages)();
|
|
27
|
+
const basePath = layout?.basePath ?? '/contact';
|
|
28
|
+
const successPath = layout?.successPath ?? `${basePath}/success`;
|
|
29
|
+
const errorPath = layout?.errorPath ?? `${basePath}/error`;
|
|
30
|
+
if (pathname === successPath) {
|
|
31
|
+
return layout?.successContent ?? (0, jsx_runtime_1.jsx)(success_content_1.SuccessContent, {});
|
|
32
|
+
}
|
|
33
|
+
if (pathname === errorPath) {
|
|
34
|
+
return layout?.errorContent ?? (0, jsx_runtime_1.jsx)(error_content_1.ErrorContent, {});
|
|
35
|
+
}
|
|
36
|
+
const activePage = (0, contact_pages_1.findMatchedPage)(pathname, basePath, visiblePages);
|
|
37
|
+
const externalUrl = activePage
|
|
38
|
+
? pages.externalUrlByPageId?.[activePage.id]
|
|
39
|
+
: undefined;
|
|
40
|
+
const ActiveComponent = activePage?.Component;
|
|
41
|
+
const body = externalUrl ? ((0, jsx_runtime_1.jsx)(external_link_page_1.ExternalLinkPage, { url: externalUrl })) : ActiveComponent ? ((0, jsx_runtime_1.jsx)(ActiveComponent, {})) : null;
|
|
42
|
+
const backLink = layout?.backLinkDefault ?? {
|
|
43
|
+
href: '/',
|
|
44
|
+
label: pageText.Contact.contactPageLayout.homeLink,
|
|
94
45
|
};
|
|
95
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: layout_module_css_1.default.layout, children: [(0, jsx_runtime_1.jsxs)("div", { children: [backLink && ((0, jsx_runtime_1.jsx)("div", { className: layout_module_css_1.default.homeLink__container, children: (0, jsx_runtime_1.jsx)(button_1.ButtonLink, { mode: "transparent", href: backLink.href, title: t(backLink.label), icon: { left: (0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { icon: "navigation/ArrowLeft" }) } }) })), (0, jsx_runtime_1.jsxs)("div", { className: layout_module_css_1.default.layout__container, children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.h2, { textType: "heading__2xl", children: t(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}) })] })] }), children, displayPrivacyAndTerms(selectedContactPage) && ((0, jsx_runtime_1.jsx)("div", { className: layout_module_css_1.default.privacyAndTerms, children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__s__strong", children: t(PageText.Contact.contactPageLayout.privacyAndTerms) }) }))] }));
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: layout_module_css_1.default.layout, children: [(0, jsx_runtime_1.jsxs)("div", { children: [backLink && ((0, jsx_runtime_1.jsx)("div", { className: layout_module_css_1.default.homeLink__container, children: (0, jsx_runtime_1.jsx)(button_1.ButtonLink, { mode: "transparent", href: backLink.href, title: t(backLink.label), icon: { left: (0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { icon: "navigation/ArrowLeft" }) } }) })), (0, jsx_runtime_1.jsxs)("div", { className: layout_module_css_1.default.layout__container, children: [(0, jsx_runtime_1.jsx)(typography_1.Typo.h2, { textType: "heading__2xl", children: t(pageText.Contact.contactPageLayout.title) }), (0, jsx_runtime_1.jsx)("nav", { className: layout_module_css_1.default.contact_page_navigator__container, children: visiblePages.map((contactPage) => ((0, jsx_runtime_1.jsx)(ContactPageNavLink, { icon: contactPage.icon, title: contactPage.title, href: `${basePath}/${contactPage.slug}`, isActive: pathname.includes(`${basePath}/${contactPage.slug}`), externalUrl: pages.externalUrlByPageId?.[contactPage.id] }, contactPage.id))) })] })] }), body, (0, contact_pages_1.displayPrivacyAndTerms)(activePage) && ((0, jsx_runtime_1.jsx)("div", { className: layout_module_css_1.default.privacyAndTerms, children: (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__s__strong", children: t(pageText.Contact.contactPageLayout.privacyAndTerms) }) }))] }));
|
|
47
|
+
}
|
|
48
|
+
function ContactPageNavLink({ icon, title, href, isActive, externalUrl, }) {
|
|
49
|
+
const { t } = (0, translations_1.useTranslation)();
|
|
50
|
+
const linkClassName = (0, css_1.andIf)({
|
|
51
|
+
[layout_module_css_1.default.contact_page_navigator__link]: true,
|
|
52
|
+
[layout_module_css_1.default.contact_page_navigator__activePage]: isActive,
|
|
53
|
+
});
|
|
54
|
+
if (externalUrl) {
|
|
55
|
+
return ((0, jsx_runtime_1.jsxs)("a", { href: externalUrl, target: "_blank", rel: "noreferrer", className: linkClassName, children: [(0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { size: "large", icon: icon }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(title) })] }));
|
|
56
|
+
}
|
|
57
|
+
return ((0, jsx_runtime_1.jsxs)(link_1.default, { shallow: true, href: href, className: linkClassName, children: [(0, jsx_runtime_1.jsx)(icon_1.MonoIcon, { size: "large", icon: icon }), (0, jsx_runtime_1.jsx)(typography_1.Typo.p, { textType: "body__m", children: t(title) })] }));
|
|
108
58
|
}
|
|
109
|
-
exports.default = ContactPageLayout;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PageText as StaticPageText, TranslatedString } from '../translations';
|
|
2
|
+
import type { ContactFormConfig, ContactPage } from '../modules/config';
|
|
3
|
+
/**
|
|
4
|
+
* All contact pages (tabs) the package can render, each paired with the form
|
|
5
|
+
* component it renders. Hosts opt into the ones they want via `pages.enabledPageIds`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getContactPages: (PageText?: typeof StaticPageText) => ContactPage[];
|
|
8
|
+
export declare function useVisiblePages(): ContactPage[];
|
|
9
|
+
export declare function getVisiblePages(pages: ContactFormConfig['pages'], pageText: typeof StaticPageText): ContactPage[];
|
|
10
|
+
export declare function findMatchedPage(pathname: string, basePath: string, visiblePages: ContactPage[]): ContactPage | undefined;
|
|
11
|
+
export declare function getPageTitleForPathname(pathname: string, config: ContactFormConfig): TranslatedString | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Title of the currently active contact page, reactive to client-side
|
|
14
|
+
* navigation (including the shallow routing `ContactPageNavLink` uses).
|
|
15
|
+
* Safe to call above `ContactFormRoot`, since it only depends on Next's
|
|
16
|
+
* router, not the package's translation/config context.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useActiveContactPageTitle(config: ContactFormConfig): TranslatedString | undefined;
|
|
19
|
+
export declare const displayPrivacyAndTerms: (contactPage?: ContactPage) => boolean;
|
|
20
|
+
//# sourceMappingURL=contact-pages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-pages.d.ts","sourceRoot":"","sources":["../../src/layouts/contact-pages.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,IAAI,cAAc,EAC1B,gBAAgB,EAGjB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUxE;;;GAGG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAU,OAAO,cAA+B,KAC/C,WAAW,EAyDb,CAAC;AAEF,wBAAgB,eAAe,IAAI,WAAW,EAAE,CAI/C;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC,EACjC,QAAQ,EAAE,OAAO,cAAc,GAC9B,WAAW,EAAE,CAMf;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,WAAW,EAAE,GAC1B,WAAW,GAAG,SAAS,CAIzB;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,iBAAiB,GACxB,gBAAgB,GAAG,SAAS,CAO9B;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,iBAAiB,GACxB,gBAAgB,GAAG,SAAS,CAG9B;AAID,eAAO,MAAM,sBAAsB,GAAI,cAAc,WAAW,YAG/D,CAAC"}
|