@blateral/b.kit 1.12.6 → 1.13.1-patch.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/base/icons/AngleLeft.d.ts +8 -0
- package/lib/components/base/icons/AngleLeft.d.ts.map +1 -0
- package/lib/components/base/icons/AngleRight.d.ts +8 -0
- package/lib/components/base/icons/AngleRight.d.ts.map +1 -0
- package/lib/components/base/icons/ArrowDown.d.ts +8 -0
- package/lib/components/base/icons/ArrowDown.d.ts.map +1 -0
- package/lib/components/base/icons/ArrowLeft.d.ts +8 -0
- package/lib/components/base/icons/ArrowLeft.d.ts.map +1 -0
- package/lib/components/base/icons/ArrowUp.d.ts +8 -0
- package/lib/components/base/icons/ArrowUp.d.ts.map +1 -0
- package/lib/components/base/icons/BoxArrowUpRight.d.ts +8 -0
- package/lib/components/base/icons/BoxArrowUpRight.d.ts.map +1 -0
- package/lib/components/base/icons/CalendarToday.d.ts +8 -0
- package/lib/components/base/icons/CalendarToday.d.ts.map +1 -0
- package/lib/components/base/icons/Category.d.ts +8 -0
- package/lib/components/base/icons/Category.d.ts.map +1 -0
- package/lib/components/base/icons/Clock.d.ts +8 -0
- package/lib/components/base/icons/Clock.d.ts.map +1 -0
- package/lib/components/base/icons/ClockFilled.d.ts +8 -0
- package/lib/components/base/icons/ClockFilled.d.ts.map +1 -0
- package/lib/components/base/icons/Computer.d.ts +8 -0
- package/lib/components/base/icons/Computer.d.ts.map +1 -0
- package/lib/components/base/icons/CurrentLocation.d.ts +8 -0
- package/lib/components/base/icons/CurrentLocation.d.ts.map +1 -0
- package/lib/components/base/icons/DateRange.d.ts +8 -0
- package/lib/components/base/icons/DateRange.d.ts.map +1 -0
- package/lib/components/base/icons/DeleteForever.d.ts +8 -0
- package/lib/components/base/icons/DeleteForever.d.ts.map +1 -0
- package/lib/components/base/icons/Filter.d.ts +8 -0
- package/lib/components/base/icons/Filter.d.ts.map +1 -0
- package/lib/components/base/icons/Icons.d.ts +64 -0
- package/lib/components/base/icons/Icons.d.ts.map +1 -0
- package/lib/components/base/icons/Info.d.ts +8 -0
- package/lib/components/base/icons/Info.d.ts.map +1 -0
- package/lib/components/base/icons/Language.d.ts +8 -0
- package/lib/components/base/icons/Language.d.ts.map +1 -0
- package/lib/components/base/icons/LocationPin.d.ts +8 -0
- package/lib/components/base/icons/LocationPin.d.ts.map +1 -0
- package/lib/components/base/icons/LocationSearch.d.ts +8 -0
- package/lib/components/base/icons/LocationSearch.d.ts.map +1 -0
- package/lib/components/base/icons/Map.d.ts +8 -0
- package/lib/components/base/icons/Map.d.ts.map +1 -0
- package/lib/components/base/icons/Money.d.ts +8 -0
- package/lib/components/base/icons/Money.d.ts.map +1 -0
- package/lib/components/base/icons/MyLocation.d.ts +8 -0
- package/lib/components/base/icons/MyLocation.d.ts.map +1 -0
- package/lib/components/base/icons/Person.d.ts +8 -0
- package/lib/components/base/icons/Person.d.ts.map +1 -0
- package/lib/components/base/icons/Place.d.ts +8 -0
- package/lib/components/base/icons/Place.d.ts.map +1 -0
- package/lib/components/base/icons/ToggleOff.d.ts +8 -0
- package/lib/components/base/icons/ToggleOff.d.ts.map +1 -0
- package/lib/components/base/icons/ToggleOn.d.ts +8 -0
- package/lib/components/base/icons/ToggleOn.d.ts.map +1 -0
- package/lib/components/base/icons/files/Excel.d.ts +8 -0
- package/lib/components/base/icons/files/Excel.d.ts.map +1 -0
- package/lib/components/base/icons/files/Image.d.ts +8 -0
- package/lib/components/base/icons/files/Image.d.ts.map +1 -0
- package/lib/components/base/icons/files/Pdf.d.ts +8 -0
- package/lib/components/base/icons/files/Pdf.d.ts.map +1 -0
- package/lib/components/base/icons/files/PowerPoint.d.ts +8 -0
- package/lib/components/base/icons/files/PowerPoint.d.ts.map +1 -0
- package/lib/components/base/icons/files/UploadFile.d.ts +8 -0
- package/lib/components/base/icons/files/UploadFile.d.ts.map +1 -0
- package/lib/components/base/icons/files/Word.d.ts +8 -0
- package/lib/components/base/icons/files/Word.d.ts.map +1 -0
- package/lib/components/base/icons/files/Zip.d.ts +8 -0
- package/lib/components/base/icons/files/Zip.d.ts.map +1 -0
- package/lib/components/blocks/Alert.d.ts +23 -0
- package/lib/components/blocks/Alert.d.ts.map +1 -0
- package/lib/components/blocks/EventBlock.d.ts +42 -0
- package/lib/components/blocks/EventBlock.d.ts.map +1 -0
- package/lib/components/blocks/InfoList.d.ts +20 -0
- package/lib/components/blocks/InfoList.d.ts.map +1 -0
- package/lib/components/blocks/JobCard.d.ts +42 -0
- package/lib/components/blocks/JobCard.d.ts.map +1 -0
- package/lib/components/blocks/LanguageSwitcher.d.ts +14 -0
- package/lib/components/blocks/LanguageSwitcher.d.ts.map +1 -0
- package/lib/components/blocks/NavBlock.d.ts +24 -0
- package/lib/components/blocks/NavBlock.d.ts.map +1 -0
- package/lib/components/blocks/POICard.d.ts +47 -0
- package/lib/components/blocks/POICard.d.ts.map +1 -0
- package/lib/components/blocks/POIFacts.d.ts +12 -0
- package/lib/components/blocks/POIFacts.d.ts.map +1 -0
- package/lib/components/blocks/PriceTag.d.ts +19 -0
- package/lib/components/blocks/PriceTag.d.ts.map +1 -0
- package/lib/components/blocks/VideoBlock.d.ts +24 -0
- package/lib/components/blocks/VideoBlock.d.ts.map +1 -0
- package/lib/components/buttons/Control.d.ts +11 -0
- package/lib/components/buttons/Control.d.ts.map +1 -0
- package/lib/components/debug/DebugLines.d.ts +4 -0
- package/lib/components/debug/DebugLines.d.ts.map +1 -0
- package/lib/components/examples/hooks/ArrayHookExample.d.ts +4 -0
- package/lib/components/examples/hooks/ArrayHookExample.d.ts.map +1 -0
- package/lib/components/examples/hooks/IntervalHookExample.d.ts +4 -0
- package/lib/components/examples/hooks/IntervalHookExample.d.ts.map +1 -0
- package/lib/components/fields/FilterField.d.ts +12 -0
- package/lib/components/fields/FilterField.d.ts.map +1 -0
- package/lib/components/fields/FormField.d.ts +33 -0
- package/lib/components/fields/FormField.d.ts.map +1 -0
- package/lib/components/fields/LocationField.d.ts +49 -0
- package/lib/components/fields/LocationField.d.ts.map +1 -0
- package/lib/components/fields/Textfield.d.ts +1 -1
- package/lib/components/fields/Textfield.d.ts.map +1 -1
- package/lib/components/sections/AlertList.d.ts +30 -0
- package/lib/components/sections/AlertList.d.ts.map +1 -0
- package/lib/components/sections/CardList.d.ts +45 -0
- package/lib/components/sections/CardList.d.ts.map +1 -0
- package/lib/components/sections/DynamicForm.d.ts +6 -6
- package/lib/components/sections/DynamicForm.d.ts.map +1 -1
- package/lib/components/sections/IndexList.d.ts +38 -0
- package/lib/components/sections/IndexList.d.ts.map +1 -0
- package/lib/components/sections/NavList.d.ts +31 -0
- package/lib/components/sections/NavList.d.ts.map +1 -0
- package/lib/components/sections/NewsletterForm.d.ts +90 -0
- package/lib/components/sections/NewsletterForm.d.ts.map +1 -0
- package/lib/components/sections/PriceTable.d.ts +26 -0
- package/lib/components/sections/PriceTable.d.ts.map +1 -0
- package/lib/components/sections/Quote.d.ts +29 -0
- package/lib/components/sections/Quote.d.ts.map +1 -0
- package/lib/components/sections/RawVideo.d.ts +30 -0
- package/lib/components/sections/RawVideo.d.ts.map +1 -0
- package/lib/components/sections/SimpleImage.d.ts +11 -0
- package/lib/components/sections/SimpleImage.d.ts.map +1 -0
- package/lib/components/sections/events/EventDetail.d.ts +58 -0
- package/lib/components/sections/events/EventDetail.d.ts.map +1 -0
- package/lib/components/sections/events/EventList.d.ts +42 -0
- package/lib/components/sections/events/EventList.d.ts.map +1 -0
- package/lib/components/sections/events/EventOverview.d.ts +64 -0
- package/lib/components/sections/events/EventOverview.d.ts.map +1 -0
- package/lib/components/sections/footer/Footer.d.ts +65 -0
- package/lib/components/sections/footer/Footer.d.ts.map +1 -0
- package/lib/components/sections/footer/partials/FooterBottomBar.d.ts +14 -0
- package/lib/components/sections/footer/partials/FooterBottomBar.d.ts.map +1 -0
- package/lib/components/sections/footer/partials/FooterColumn.d.ts +14 -0
- package/lib/components/sections/footer/partials/FooterColumn.d.ts.map +1 -0
- package/lib/components/sections/footer/partials/index.d.ts +3 -0
- package/lib/components/sections/footer/partials/index.d.ts.map +1 -0
- package/lib/components/sections/footer/skeletons/FooterArticle.d.ts +12 -0
- package/lib/components/sections/footer/skeletons/FooterArticle.d.ts.map +1 -0
- package/lib/components/sections/footer/skeletons/FooterBottomGrid.d.ts +16 -0
- package/lib/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +1 -0
- package/lib/components/sections/footer/skeletons/index.d.ts +3 -0
- package/lib/components/sections/footer/skeletons/index.d.ts.map +1 -0
- package/lib/components/sections/form/DynamicForm.d.ts +216 -0
- package/lib/components/sections/form/DynamicForm.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/areaRenderer.d.ts +5 -0
- package/lib/components/sections/form/renderer/areaRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/datepickerRenderer.d.ts +5 -0
- package/lib/components/sections/form/renderer/datepickerRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/fieldGroupRenderer.d.ts +5 -0
- package/lib/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/fieldRenderer.d.ts +5 -0
- package/lib/components/sections/form/renderer/fieldRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/locationRenderer.d.ts +6 -0
- package/lib/components/sections/form/renderer/locationRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/selectRenderer.d.ts +5 -0
- package/lib/components/sections/form/renderer/selectRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/renderer/uploadRenderer.d.ts +5 -0
- package/lib/components/sections/form/renderer/uploadRenderer.d.ts.map +1 -0
- package/lib/components/sections/form/validators/areaValidator.d.ts +4 -0
- package/lib/components/sections/form/validators/areaValidator.d.ts.map +1 -0
- package/lib/components/sections/form/validators/datepickerValidator.d.ts +4 -0
- package/lib/components/sections/form/validators/datepickerValidator.d.ts.map +1 -0
- package/lib/components/sections/form/validators/fieldGroupValidator.d.ts +4 -0
- package/lib/components/sections/form/validators/fieldGroupValidator.d.ts.map +1 -0
- package/lib/components/sections/form/validators/fieldValidator.d.ts +4 -0
- package/lib/components/sections/form/validators/fieldValidator.d.ts.map +1 -0
- package/lib/components/sections/form/validators/locationValidator.d.ts +5 -0
- package/lib/components/sections/form/validators/locationValidator.d.ts.map +1 -0
- package/lib/components/sections/form/validators/selectValidator.d.ts +4 -0
- package/lib/components/sections/form/validators/selectValidator.d.ts.map +1 -0
- package/lib/components/sections/form/validators/uploadValidator.d.ts +4 -0
- package/lib/components/sections/form/validators/uploadValidator.d.ts.map +1 -0
- package/lib/components/sections/header/Header.d.ts.map +1 -1
- package/lib/components/sections/jobs/JobArticle.d.ts +52 -0
- package/lib/components/sections/jobs/JobArticle.d.ts.map +1 -0
- package/lib/components/sections/jobs/JobList.d.ts +39 -0
- package/lib/components/sections/jobs/JobList.d.ts.map +1 -0
- package/lib/components/sections/navigation/NavBar.d.ts +45 -0
- package/lib/components/sections/navigation/NavBar.d.ts.map +1 -0
- package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts +16 -0
- package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
- package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts +9 -0
- package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
- package/lib/components/sections/navigation/partials/MenuFooter.d.ts +12 -0
- package/lib/components/sections/navigation/partials/MenuFooter.d.ts.map +1 -0
- package/lib/components/sections/navigation/partials/MenuHeader.d.ts +16 -0
- package/lib/components/sections/navigation/partials/MenuHeader.d.ts.map +1 -0
- package/lib/components/sections/navigation/partials/NavBarBottom.d.ts +10 -0
- package/lib/components/sections/navigation/partials/NavBarBottom.d.ts.map +1 -0
- package/lib/components/sections/navigation/partials/NavBarMain.d.ts +39 -0
- package/lib/components/sections/navigation/partials/NavBarMain.d.ts.map +1 -0
- package/lib/components/sections/navigation/partials/NavBarTop.d.ts +11 -0
- package/lib/components/sections/navigation/partials/NavBarTop.d.ts.map +1 -0
- package/lib/components/sections/navigation/partials/index.d.ts +6 -0
- package/lib/components/sections/navigation/partials/index.d.ts.map +1 -0
- package/lib/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +18 -0
- package/lib/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +1 -0
- package/lib/components/sections/navigation/skeletons/BarColumn.d.ts +7 -0
- package/lib/components/sections/navigation/skeletons/BarColumn.d.ts.map +1 -0
- package/lib/components/sections/navigation/skeletons/BarLogo.d.ts +14 -0
- package/lib/components/sections/navigation/skeletons/BarLogo.d.ts.map +1 -0
- package/lib/components/sections/navigation/skeletons/BarMenuToggle.d.ts +10 -0
- package/lib/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +1 -0
- package/lib/components/sections/navigation/skeletons/BarNavList.d.ts +9 -0
- package/lib/components/sections/navigation/skeletons/BarNavList.d.ts.map +1 -0
- package/lib/components/sections/navigation/skeletons/index.d.ts +6 -0
- package/lib/components/sections/navigation/skeletons/index.d.ts.map +1 -0
- package/lib/components/sections/pois/PointOfInterestDetail.d.ts +55 -0
- package/lib/components/sections/pois/PointOfInterestDetail.d.ts.map +1 -0
- package/lib/components/sections/pois/PointOfInterestMap.d.ts +121 -0
- package/lib/components/sections/pois/PointOfInterestMap.d.ts.map +1 -0
- package/lib/components/sections/pois/PointOfInterestOverview.d.ts +38 -0
- package/lib/components/sections/pois/PointOfInterestOverview.d.ts.map +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/arrays.d.ts +3 -0
- package/lib/utils/arrays.d.ts.map +1 -0
- package/lib/utils/concat.d.ts +8 -0
- package/lib/utils/concat.d.ts.map +1 -0
- package/lib/utils/cookie-consent/useCookieConsent.d.ts +43 -0
- package/lib/utils/cookie-consent/useCookieConsent.d.ts.map +1 -0
- package/lib/utils/dataURI.d.ts +3 -0
- package/lib/utils/dataURI.d.ts.map +1 -0
- package/lib/utils/filters.d.ts +2 -0
- package/lib/utils/filters.d.ts.map +1 -0
- package/lib/utils/fontLoading.d.ts +14 -0
- package/lib/utils/fontLoading.d.ts.map +1 -0
- package/lib/utils/formFieldText.d.ts +3 -0
- package/lib/utils/formFieldText.d.ts.map +1 -0
- package/lib/utils/getLinkIcon.d.ts +3 -0
- package/lib/utils/getLinkIcon.d.ts.map +1 -0
- package/lib/utils/menuHooks.d.ts +18 -0
- package/lib/utils/menuHooks.d.ts.map +1 -0
- package/lib/utils/navigation.d.ts +20 -0
- package/lib/utils/navigation.d.ts.map +1 -0
- package/lib/utils/structuredData.d.ts +22 -0
- package/lib/utils/structuredData.d.ts.map +1 -0
- package/lib/utils/types.d.ts +8 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/urlParams.d.ts +4 -0
- package/lib/utils/urlParams.d.ts.map +1 -0
- package/lib/utils/useArray.d.ts +13 -0
- package/lib/utils/useArray.d.ts.map +1 -0
- package/lib/utils/useDebounce.d.ts +6 -0
- package/lib/utils/useDebounce.d.ts.map +1 -0
- package/lib/utils/useFontsLoaded.d.ts +2 -0
- package/lib/utils/useFontsLoaded.d.ts.map +1 -0
- package/lib/utils/useGeolocation.d.ts +10 -0
- package/lib/utils/useGeolocation.d.ts.map +1 -0
- package/lib/utils/useLazyInput.d.ts +8 -0
- package/lib/utils/useLazyInput.d.ts.map +1 -0
- package/lib/utils/useLeafletMap.d.ts +55 -0
- package/lib/utils/useLeafletMap.d.ts.map +1 -0
- package/lib/utils/useMounted.d.ts +3 -0
- package/lib/utils/useMounted.d.ts.map +1 -0
- package/lib/utils/usePageScroll.d.ts +23 -0
- package/lib/utils/usePageScroll.d.ts.map +1 -0
- package/lib/utils/useParams.d.ts +6 -0
- package/lib/utils/useParams.d.ts.map +1 -0
- package/lib/utils/usePrevious.d.ts +3 -0
- package/lib/utils/usePrevious.d.ts.map +1 -0
- package/lib/utils/useTimeout.d.ts +6 -0
- package/lib/utils/useTimeout.d.ts.map +1 -0
- package/lib/utils/useUpdateEffect.d.ts +5 -0
- package/lib/utils/useUpdateEffect.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
import { Field, FormikErrors } from 'formik';
|
|
4
|
+
import { LocationData } from "../../fields/LocationField";
|
|
5
|
+
export interface FormStructure {
|
|
6
|
+
[key: string]: Field | Area | Select | Datepicker | Location | FieldGroup | FileUpload;
|
|
7
|
+
}
|
|
8
|
+
export interface FormField {
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface Field extends FormField {
|
|
12
|
+
type: 'Field';
|
|
13
|
+
inputType?: 'text' | 'number' | 'email' | 'password' | 'tel';
|
|
14
|
+
initialValue?: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
info?: string;
|
|
17
|
+
validate?: (key: string, value: string, config: Field) => Promise<string>;
|
|
18
|
+
errorMsg?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface Area extends FormField {
|
|
21
|
+
type: 'Area';
|
|
22
|
+
initialValue?: string;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
info?: string;
|
|
25
|
+
validate?: (key: string, value: string, config: Area) => Promise<string>;
|
|
26
|
+
errorMsg?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface Select extends FormField {
|
|
29
|
+
type: 'Select';
|
|
30
|
+
initialOption?: string;
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
dropdownItems: {
|
|
33
|
+
label?: string;
|
|
34
|
+
value?: Record<string, string>;
|
|
35
|
+
}[];
|
|
36
|
+
info?: string;
|
|
37
|
+
validate?: (key: string, selectedItem: string, config: Select) => Promise<string>;
|
|
38
|
+
indicator?: (props: {
|
|
39
|
+
isOpen: boolean;
|
|
40
|
+
isDisabled?: boolean;
|
|
41
|
+
}) => React.ReactNode;
|
|
42
|
+
errorMsg?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface Datepicker extends FormField {
|
|
45
|
+
type: 'Datepicker';
|
|
46
|
+
initialDates?: [Date, Date];
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
minDate?: Date;
|
|
49
|
+
maxDate?: Date;
|
|
50
|
+
singleSelect?: boolean;
|
|
51
|
+
info?: string;
|
|
52
|
+
customIcon?: (props: {
|
|
53
|
+
isInverted?: boolean;
|
|
54
|
+
singleSelect?: boolean;
|
|
55
|
+
}) => React.ReactNode;
|
|
56
|
+
singleDateError?: string;
|
|
57
|
+
multiDateError?: string;
|
|
58
|
+
nextCtrlUrl?: React.ReactNode;
|
|
59
|
+
prevCtrlUrl?: React.ReactNode;
|
|
60
|
+
validate?: (key: string, value: [Date | null, Date | null], config: Datepicker) => Promise<string>;
|
|
61
|
+
deleteAction?: (handleClick?: (e: React.SyntheticEvent<HTMLButtonElement, Event>) => void) => React.ReactNode;
|
|
62
|
+
submitAction?: (handleClick?: (e: React.SyntheticEvent<HTMLButtonElement, Event>) => void) => React.ReactNode;
|
|
63
|
+
}
|
|
64
|
+
export interface Location extends FormField {
|
|
65
|
+
type: 'Location';
|
|
66
|
+
zoom?: number;
|
|
67
|
+
initialMapCenter?: [number, number];
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
info?: string;
|
|
70
|
+
errorMsg?: string;
|
|
71
|
+
customToggle?: (props: {
|
|
72
|
+
isInverted?: boolean;
|
|
73
|
+
viewState?: 'desc' | 'map';
|
|
74
|
+
handleClick?: () => void;
|
|
75
|
+
}) => React.ReactNode;
|
|
76
|
+
customLocationControl?: (props: {
|
|
77
|
+
isInverted?: boolean;
|
|
78
|
+
handleClick?: () => void;
|
|
79
|
+
}) => React.ReactNode;
|
|
80
|
+
customResetControl?: (props: {
|
|
81
|
+
isInverted?: boolean;
|
|
82
|
+
handleClick?: () => void;
|
|
83
|
+
}) => React.ReactNode;
|
|
84
|
+
validate?: (key: string, value: LocationData, config: Location) => Promise<string>;
|
|
85
|
+
toggleLabel?: string;
|
|
86
|
+
trackLocationLabel?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface FieldGroup extends FormField {
|
|
89
|
+
type: 'FieldGroup';
|
|
90
|
+
groupType: 'Radio' | 'Checkbox';
|
|
91
|
+
fields: Array<{
|
|
92
|
+
initialChecked?: boolean;
|
|
93
|
+
text?: string;
|
|
94
|
+
}>;
|
|
95
|
+
validate?: (key: string, value: Array<string> | string, config: FieldGroup) => Promise<string>;
|
|
96
|
+
errorMsg?: string;
|
|
97
|
+
infoMsg?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface FileUpload extends FormField {
|
|
100
|
+
type: 'Upload';
|
|
101
|
+
addBtnLabel?: string;
|
|
102
|
+
removeBtnLabel?: string;
|
|
103
|
+
info?: string;
|
|
104
|
+
acceptedFormats?: string;
|
|
105
|
+
customUploadIcon?: (isInverted?: boolean) => React.ReactNode;
|
|
106
|
+
customDeleteIcon?: (isInverted?: boolean) => React.ReactNode;
|
|
107
|
+
validate?: (key: string, value: Array<File>, config: FileUpload) => Promise<string>;
|
|
108
|
+
errorMsg?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface FormData {
|
|
111
|
+
[key: string]: FormDataTypes | string;
|
|
112
|
+
}
|
|
113
|
+
export declare type FormDataTypes = string | boolean | Record<string, string> | Array<string> | [Date | null, Date | null] | Array<File> | LocationData;
|
|
114
|
+
declare type FieldTypes = Field | Area | Select | Datepicker | Location | FieldGroup | FileUpload;
|
|
115
|
+
export interface FieldGenerationProps<T extends FieldTypes> {
|
|
116
|
+
field: T;
|
|
117
|
+
value: FormDataTypes;
|
|
118
|
+
error: string;
|
|
119
|
+
info?: string;
|
|
120
|
+
isTouched: boolean;
|
|
121
|
+
key: string;
|
|
122
|
+
isInverted: boolean;
|
|
123
|
+
hasBg: boolean;
|
|
124
|
+
theme: DefaultTheme;
|
|
125
|
+
setField: (props: {
|
|
126
|
+
key: string;
|
|
127
|
+
value: any;
|
|
128
|
+
shouldValidate?: boolean;
|
|
129
|
+
}) => Promise<void | FormikErrors<FormData>>;
|
|
130
|
+
validateField: (name: string) => Promise<string | undefined> | Promise<void>;
|
|
131
|
+
setTouched: (field: string, touched?: boolean | undefined, shouldValidate?: boolean | undefined) => Promise<void> | Promise<FormikErrors<FormData>>;
|
|
132
|
+
handleChange: {
|
|
133
|
+
(e: React.ChangeEvent<any>): void;
|
|
134
|
+
<T_1 = string | React.ChangeEvent<any>>(field: T_1): T_1 extends React.ChangeEvent<any> ? void : (e: string | React.ChangeEvent<any>) => void;
|
|
135
|
+
};
|
|
136
|
+
handleBlur: {
|
|
137
|
+
(e: React.FocusEvent<any>): void;
|
|
138
|
+
<T = any>(fieldOrEvent: T): T extends string ? (e: any) => void : void;
|
|
139
|
+
};
|
|
140
|
+
validateOnBlur?: boolean;
|
|
141
|
+
validateOnChange?: boolean;
|
|
142
|
+
}
|
|
143
|
+
export declare type FormValues = FormData & {
|
|
144
|
+
targetEmails: string[];
|
|
145
|
+
subjectLine: string;
|
|
146
|
+
};
|
|
147
|
+
export interface SubmitResponse {
|
|
148
|
+
message?: string;
|
|
149
|
+
isError?: boolean;
|
|
150
|
+
}
|
|
151
|
+
export declare const DynamicFormComponent: React.FC<{
|
|
152
|
+
/** ID value for targeting section with anchor hashes */
|
|
153
|
+
anchorId?: string | undefined;
|
|
154
|
+
/** Field definitions */
|
|
155
|
+
fields?: FormStructure | undefined;
|
|
156
|
+
/** Callback on form submit */
|
|
157
|
+
onSubmit?: ((values: FormValues) => Promise<SubmitResponse>) | undefined;
|
|
158
|
+
/** Function to inject custom submit button */
|
|
159
|
+
submitAction?: ((props: {
|
|
160
|
+
isInverted?: boolean;
|
|
161
|
+
handleSubmit?: () => Promise<any>;
|
|
162
|
+
isDisabled?: boolean;
|
|
163
|
+
}) => React.ReactNode) | undefined;
|
|
164
|
+
/** List of target emails */
|
|
165
|
+
targetEmails?: string[] | undefined;
|
|
166
|
+
/** E-Mail subject */
|
|
167
|
+
subjectLine?: string | undefined;
|
|
168
|
+
/** Section background */
|
|
169
|
+
bgMode?: "full" | "inverted" | undefined;
|
|
170
|
+
/** Functions to inject custom field components (React nodes) */
|
|
171
|
+
definitions?: {
|
|
172
|
+
field?: ((props: FieldGenerationProps<Field>) => React.ReactNode) | undefined;
|
|
173
|
+
area?: ((props: FieldGenerationProps<Area>) => React.ReactNode) | undefined;
|
|
174
|
+
select?: ((props: FieldGenerationProps<Select>) => React.ReactNode) | undefined;
|
|
175
|
+
datepicker?: ((props: FieldGenerationProps<Datepicker>) => React.ReactNode) | undefined;
|
|
176
|
+
location?: ((props: FieldGenerationProps<Location>) => React.ReactNode) | undefined;
|
|
177
|
+
checkbox?: ((props: FieldGenerationProps<FieldGroup>) => React.ReactNode) | undefined;
|
|
178
|
+
radio?: ((props: FieldGenerationProps<FieldGroup>) => React.ReactNode) | undefined;
|
|
179
|
+
upload?: ((props: FieldGenerationProps<FileUpload>) => React.ReactNode) | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
declare const _default: React.FC<{
|
|
183
|
+
/** ID value for targeting section with anchor hashes */
|
|
184
|
+
anchorId?: string | undefined;
|
|
185
|
+
/** Field definitions */
|
|
186
|
+
fields?: FormStructure | undefined;
|
|
187
|
+
/** Callback on form submit */
|
|
188
|
+
onSubmit?: ((values: FormValues) => Promise<SubmitResponse>) | undefined;
|
|
189
|
+
/** Function to inject custom submit button */
|
|
190
|
+
submitAction?: ((props: {
|
|
191
|
+
isInverted?: boolean | undefined;
|
|
192
|
+
handleSubmit?: (() => Promise<any>) | undefined;
|
|
193
|
+
isDisabled?: boolean | undefined;
|
|
194
|
+
}) => React.ReactNode) | undefined;
|
|
195
|
+
/** List of target emails */
|
|
196
|
+
targetEmails?: string[] | undefined;
|
|
197
|
+
/** E-Mail subject */
|
|
198
|
+
subjectLine?: string | undefined;
|
|
199
|
+
/** Section background */
|
|
200
|
+
bgMode?: "full" | "inverted" | undefined;
|
|
201
|
+
/** Functions to inject custom field components (React nodes) */
|
|
202
|
+
definitions?: {
|
|
203
|
+
field?: ((props: FieldGenerationProps<Field>) => React.ReactNode) | undefined;
|
|
204
|
+
area?: ((props: FieldGenerationProps<Area>) => React.ReactNode) | undefined;
|
|
205
|
+
select?: ((props: FieldGenerationProps<Select>) => React.ReactNode) | undefined;
|
|
206
|
+
datepicker?: ((props: FieldGenerationProps<Datepicker>) => React.ReactNode) | undefined;
|
|
207
|
+
location?: ((props: FieldGenerationProps<Location>) => React.ReactNode) | undefined;
|
|
208
|
+
checkbox?: ((props: FieldGenerationProps<FieldGroup>) => React.ReactNode) | undefined;
|
|
209
|
+
radio?: ((props: FieldGenerationProps<FieldGroup>) => React.ReactNode) | undefined;
|
|
210
|
+
upload?: ((props: FieldGenerationProps<FileUpload>) => React.ReactNode) | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
} & {
|
|
213
|
+
theme?: import("../../../utils/types").RecursivePartial<DefaultTheme> | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
export default _default;
|
|
216
|
+
//# sourceMappingURL=DynamicForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/form/DynamicForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAC5E,OAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKzD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAa,MAAM,QAAQ,CAAC;AAKxD,OAAO,EAAE,YAAY,EAAE,mCAAwC;AA6E/D,MAAM,WAAW,aAAa;IAC1B,CAAC,GAAG,EAAE,MAAM,GACN,KAAK,GACL,IAAI,GACJ,MAAM,GACN,UAAU,GACV,QAAQ,GACR,UAAU,GACV,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,KAAM,SAAQ,SAAS;IACpC,IAAI,EAAE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M,SAAS;0BACnD,qBAAqB,UAAU,CAAC,KAAK,MAAM,SAAS;;EA8b9B,CAAC;;IAle5C,wDAAwD;;IAGxD,wBAAwB;;IAGxB,8BAA8B;;IAG9B,8CAA8C;;;;;;IAO9C,4BAA4B;;IAG5B,qBAAqB;;IAGrB,yBAAyB;;IAGzB,gEAAgE;;;;;;;;;;;;;;AA0cpE,wBAAyC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Area, FieldGenerationProps } from '../DynamicForm';
|
|
3
|
+
declare const renderAreaField: ({ field, key, value, error, isTouched, isInverted, handleChange, handleBlur, }: FieldGenerationProps<Area>) => JSX.Element;
|
|
4
|
+
export default renderAreaField;
|
|
5
|
+
//# sourceMappingURL=areaRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areaRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/areaRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,eAAe,mFASlB,qBAAqB,IAAI,CAAC,gBAc5B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Datepicker, FieldGenerationProps } from '../DynamicForm';
|
|
3
|
+
declare const renderDatepickerField: ({ key, field, value, error, isTouched, isInverted, setField, setTouched, validateField, }: FieldGenerationProps<Datepicker>) => JSX.Element;
|
|
4
|
+
export default renderDatepickerField;
|
|
5
|
+
//# sourceMappingURL=datepickerRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datepickerRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/datepickerRenderer.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAIlE,QAAA,MAAM,qBAAqB,8FAUxB,qBAAqB,UAAU,CAAC,gBAiDlC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldGenerationProps, FieldGroup } from '../DynamicForm';
|
|
3
|
+
export declare const renderRadioGroupField: ({ key, field, value, error, isTouched, isInverted, info, setField, }: FieldGenerationProps<FieldGroup>) => JSX.Element;
|
|
4
|
+
export declare const renderCheckboxGroupField: ({ field, key, isInverted, value, isTouched, error, info, setTouched, validateField, setField, }: FieldGenerationProps<FieldGroup>) => JSX.Element;
|
|
5
|
+
//# sourceMappingURL=fieldGroupRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldGroupRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/fieldGroupRenderer.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAsBlE,eAAO,MAAM,qBAAqB,yEAS/B,qBAAqB,UAAU,CAAC,gBA4ClC,CAAC;AAEF,eAAO,MAAM,wBAAwB,oGAWlC,qBAAqB,UAAU,CAAC,gBA2DlC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Field, FieldGenerationProps } from '../DynamicForm';
|
|
3
|
+
declare const renderField: ({ field, key, value, error, isTouched, handleChange, handleBlur, isInverted, }: FieldGenerationProps<Field>) => JSX.Element;
|
|
4
|
+
export default renderField;
|
|
5
|
+
//# sourceMappingURL=fieldRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/fieldRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,QAAA,MAAM,WAAW,mFASd,qBAAqB,KAAK,CAAC,gBAe7B,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FieldGenerationProps } from '../DynamicForm';
|
|
3
|
+
import { Location } from '../DynamicForm';
|
|
4
|
+
declare const renderLocationField: ({ key, field, value, error, isTouched, isInverted, setField, }: FieldGenerationProps<Location>) => JSX.Element;
|
|
5
|
+
export default renderLocationField;
|
|
6
|
+
//# sourceMappingURL=locationRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locationRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/locationRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,QAAA,MAAM,mBAAmB,mEAQtB,qBAAqB,QAAQ,CAAC,gBAuChC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Select, FieldGenerationProps } from '../DynamicForm';
|
|
3
|
+
declare const renderSelectField: ({ field, key, value, error, isTouched, isInverted, setField, setTouched, validateField, validateOnChange, validateOnBlur, }: FieldGenerationProps<Select>) => JSX.Element;
|
|
4
|
+
export default renderSelectField;
|
|
5
|
+
//# sourceMappingURL=selectRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/selectRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,QAAA,MAAM,iBAAiB,gIAYpB,qBAAqB,MAAM,CAAC,gBA4B9B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FileUpload, FieldGenerationProps } from '../DynamicForm';
|
|
3
|
+
declare const renderUploadField: ({ field, key, error, isTouched, isInverted, setField, }: FieldGenerationProps<FileUpload>) => JSX.Element;
|
|
4
|
+
export default renderUploadField;
|
|
5
|
+
//# sourceMappingURL=uploadRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/renderer/uploadRenderer.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAElE,QAAA,MAAM,iBAAiB,4DAOpB,qBAAqB,UAAU,CAAC,gBAiBlC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areaValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/areaValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,QAAA,MAAM,aAAa,QAAe,MAAM,SAAS,MAAM,UAAU,IAAI,oBAQpE,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datepickerValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/datepickerValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAA,MAAM,mBAAmB,QAChB,MAAM,SACJ,CAAC,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC,UACzB,UAAU,oBAgBrB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldGroupValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/fieldGroupValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAA,MAAM,mBAAmB,QAChB,MAAM,SACJ,MAAM,MAAM,CAAC,GAAG,MAAM,UACrB,UAAU,oBAgBrB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/fieldValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,QAAA,MAAM,cAAc,QAAe,MAAM,SAAS,MAAM,UAAU,KAAK,oBA8BtE,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LocationData } from "../../../fields/LocationField";
|
|
2
|
+
import { Location } from '../DynamicForm';
|
|
3
|
+
declare const locationValidator: (key: string, value: LocationData, config: Location) => Promise<string>;
|
|
4
|
+
export default locationValidator;
|
|
5
|
+
//# sourceMappingURL=locationValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locationValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/locationValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,sCAAwC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,QAAA,MAAM,iBAAiB,QACd,MAAM,SACJ,YAAY,UACX,QAAQ,oBAcnB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/selectValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,QAAA,MAAM,eAAe,QACZ,MAAM,gBACG,MAAM,UACZ,MAAM,oBASjB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadValidator.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/form/validators/uploadValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,QAAA,MAAM,eAAe,QACZ,MAAM,SACJ,MAAM,IAAI,CAAC,UACV,UAAU,oBASrB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,iCAAsC;AAkB3D,UAAU,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/header/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,iCAAsC;AAkB3D,UAAU,gBAAgB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACL;AAkVD,eAAO,MAAM,eAAe;;IAnJxB,yCAAyC;;;;;;;;wDAUF,MAAM,SAAS;0DACb,MAAM,SAAS;;;;;iBAK3C,MAAM,SAAS;;;;IAI5B,6EAA6E;;;EA+H5C,CAAC;;;IAnJlC,yCAAyC;;;;;;;;;;;;;;;;;;IAoBzC,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgIjF,wBAAoC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { JobCardProps } from "../../blocks/JobCard";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface OrganizationData {
|
|
4
|
+
name?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
logo?: string;
|
|
7
|
+
telephone?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
address?: {
|
|
10
|
+
streetAddress?: string;
|
|
11
|
+
addressLocality?: string;
|
|
12
|
+
postalCode?: string;
|
|
13
|
+
addressCountry?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export declare type JobArticleProps = Omit<JobCardProps, 'isInverted' | 'hasBackground' | 'link'> & {
|
|
17
|
+
/** ID value for targeting section with anchor hashes */
|
|
18
|
+
anchorId?: string;
|
|
19
|
+
/** Text that describes the job (richtext) */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** The hiring organization (important for structured data) */
|
|
22
|
+
organization?: OrganizationData;
|
|
23
|
+
/** The date of posting the job tender (important for structured data) */
|
|
24
|
+
datePosted?: Date;
|
|
25
|
+
/** Function to inject primary action */
|
|
26
|
+
primaryAction?: (isInverted?: boolean) => React.ReactNode;
|
|
27
|
+
/** Function to inject secondary action */
|
|
28
|
+
secondaryAction?: (isInverted?: boolean) => React.ReactNode;
|
|
29
|
+
/** Section background */
|
|
30
|
+
bgMode?: 'full' | 'inverted';
|
|
31
|
+
};
|
|
32
|
+
export declare const JobArticleComponent: React.FC<JobArticleProps>;
|
|
33
|
+
declare const _default: React.FC<Omit<JobCardProps, "link" | "isInverted" | "hasBackground"> & {
|
|
34
|
+
/** ID value for targeting section with anchor hashes */
|
|
35
|
+
anchorId?: string | undefined;
|
|
36
|
+
/** Text that describes the job (richtext) */
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
/** The hiring organization (important for structured data) */
|
|
39
|
+
organization?: OrganizationData | undefined;
|
|
40
|
+
/** The date of posting the job tender (important for structured data) */
|
|
41
|
+
datePosted?: Date | undefined;
|
|
42
|
+
/** Function to inject primary action */
|
|
43
|
+
primaryAction?: ((isInverted?: boolean | undefined) => React.ReactNode) | undefined;
|
|
44
|
+
/** Function to inject secondary action */
|
|
45
|
+
secondaryAction?: ((isInverted?: boolean | undefined) => React.ReactNode) | undefined;
|
|
46
|
+
/** Section background */
|
|
47
|
+
bgMode?: "full" | "inverted" | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
theme?: import("../../../utils/types").RecursivePartial<import("styled-components").DefaultTheme> | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
//# sourceMappingURL=JobArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JobArticle.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/jobs/JobArticle.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,6BAAkC;AAGzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAwD1B,MAAM,WAAW,gBAAgB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE;QACN,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;KAC3B,CAAC;CACL;AAED,oBAAY,eAAe,GAAG,IAAI,CAC9B,YAAY,EACZ,YAAY,GAAG,eAAe,GAAG,MAAM,CAC1C,GAAG;IACA,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAEhC,yEAAyE;IACzE,UAAU,CAAC,EAAE,IAAI,CAAC;IAElB,wCAAwC;IACxC,aAAa,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IAE1D,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IAE5D,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;CAChC,CAAC;AA8HF,eAAO,MAAM,mBAAmB,2BAAa,CAAC;;IAlJ1C,wDAAwD;;IAGxD,6CAA6C;;IAG7C,8DAA8D;;IAG9D,yEAAyE;;IAGzE,wCAAwC;;IAGxC,0CAA0C;;IAG1C,yBAAyB;;;;;AAiI7B,wBAAwC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JobCardProps } from "../../blocks/JobCard";
|
|
3
|
+
export declare type JobItem = Omit<JobCardProps, 'isInverted' | 'hasBackground' | 'modelIcon' | 'locationIcon' | 'totalLocations' | 'allLocationsLabel'>;
|
|
4
|
+
export declare const JobListComponent: React.FC<{
|
|
5
|
+
/** ID value for targeting section with anchor hashes */
|
|
6
|
+
anchorId?: string | undefined;
|
|
7
|
+
/** Array of job item settings */
|
|
8
|
+
jobs?: JobItem[] | undefined;
|
|
9
|
+
/** Total amount all locations */
|
|
10
|
+
totalJobLocations?: number | undefined;
|
|
11
|
+
/** Label to show if all location selected */
|
|
12
|
+
allJobLocationsLabel?: string | undefined;
|
|
13
|
+
/** Section background */
|
|
14
|
+
bgMode?: "full" | "inverted" | undefined;
|
|
15
|
+
/** Injection function for job time model icon */
|
|
16
|
+
modelIcon?: (() => React.ReactNode) | undefined;
|
|
17
|
+
/** Injection function for job location icon */
|
|
18
|
+
locationIcon?: (() => React.ReactNode) | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
declare const _default: React.FC<{
|
|
21
|
+
/** ID value for targeting section with anchor hashes */
|
|
22
|
+
anchorId?: string | undefined;
|
|
23
|
+
/** Array of job item settings */
|
|
24
|
+
jobs?: JobItem[] | undefined;
|
|
25
|
+
/** Total amount all locations */
|
|
26
|
+
totalJobLocations?: number | undefined;
|
|
27
|
+
/** Label to show if all location selected */
|
|
28
|
+
allJobLocationsLabel?: string | undefined;
|
|
29
|
+
/** Section background */
|
|
30
|
+
bgMode?: "full" | "inverted" | undefined;
|
|
31
|
+
/** Injection function for job time model icon */
|
|
32
|
+
modelIcon?: (() => React.ReactNode) | undefined;
|
|
33
|
+
/** Injection function for job location icon */
|
|
34
|
+
locationIcon?: (() => React.ReactNode) | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
theme?: import("../../../utils/types").RecursivePartial<import("styled-components").DefaultTheme> | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export default _default;
|
|
39
|
+
//# sourceMappingURL=JobList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JobList.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/jobs/JobList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAgB,EAAE,YAAY,EAAE,6BAAkC;AA2ClE,oBAAY,OAAO,GAAG,IAAI,CACtB,YAAY,EACV,YAAY,GACZ,eAAe,GACf,WAAW,GACX,cAAc,GACd,gBAAgB,GAChB,mBAAmB,CACxB,CAAC;AAmFF,eAAO,MAAM,gBAAgB;IAhFzB,wDAAwD;;IAGxD,iCAAiC;;IAGjC,iCAAiC;;IAGjC,6CAA6C;;IAG7C,yBAAyB;;IAGzB,iDAAiD;uBAC/B,MAAM,SAAS;IAEjC,+CAA+C;0BAC1B,MAAM,SAAS;EA6DD,CAAC;;IAhFpC,wDAAwD;;IAGxD,iCAAiC;;IAGjC,iCAAiC;;IAGjC,6CAA6C;;IAG7C,yBAAyB;;IAGzB,iDAAiD;;IAGjD,+CAA+C;;;;;AA+DnD,wBAAqC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
export declare const getTopHeights: (theme: DefaultTheme, size?: NavBarSize | undefined) => [number, number];
|
|
4
|
+
export declare const hasTopBar: (theme: DefaultTheme) => boolean;
|
|
5
|
+
export declare const getMainHeights: (theme: DefaultTheme, size?: NavBarSize | undefined) => [number, number];
|
|
6
|
+
export declare const getBottomHeights: (theme: DefaultTheme, size?: NavBarSize | undefined) => [number, number];
|
|
7
|
+
export declare const hasBottomBar: (theme: DefaultTheme) => boolean;
|
|
8
|
+
export declare type ExcludeType = 'top' | 'main' | 'bottom';
|
|
9
|
+
/**
|
|
10
|
+
* Get full height of navigation bar
|
|
11
|
+
* @param theme Theme object
|
|
12
|
+
* @param size Navigation bar size
|
|
13
|
+
* @param exclude Exclude parts of the navbar for height calculation
|
|
14
|
+
* @returns [mobile, desktop]
|
|
15
|
+
*/
|
|
16
|
+
export declare const getFullHeight: (theme: DefaultTheme, size?: NavBarSize | undefined, exclude?: ExcludeType[] | undefined) => [number, number];
|
|
17
|
+
export declare type NavBarSize = 'small' | 'large';
|
|
18
|
+
export interface BarStates {
|
|
19
|
+
size: NavBarSize;
|
|
20
|
+
isOpen?: boolean;
|
|
21
|
+
isSticky?: boolean;
|
|
22
|
+
pageFlow?: PageFlow;
|
|
23
|
+
}
|
|
24
|
+
export declare type PageFlow = 'overContent' | 'beforeContent';
|
|
25
|
+
export interface NavBarProps {
|
|
26
|
+
size?: NavBarSize;
|
|
27
|
+
isOpen?: boolean;
|
|
28
|
+
isSticky?: boolean;
|
|
29
|
+
isAnimated?: boolean;
|
|
30
|
+
clampWidth?: 'content' | 'full';
|
|
31
|
+
pageFlow?: PageFlow;
|
|
32
|
+
topBg?: string;
|
|
33
|
+
mainBg?: string;
|
|
34
|
+
bottomBg?: string;
|
|
35
|
+
/** Custom background value for NavBar with pageFlow === overContent and large size */
|
|
36
|
+
onContentBg?: string;
|
|
37
|
+
topBar?: ((props: BarStates) => React.ReactNode) | null;
|
|
38
|
+
mainBar?: ((props: BarStates) => React.ReactNode) | null;
|
|
39
|
+
bottomBar?: ((props: BarStates) => React.ReactNode) | null;
|
|
40
|
+
}
|
|
41
|
+
declare const NavBar: FC<NavBarProps & {
|
|
42
|
+
className?: string;
|
|
43
|
+
}>;
|
|
44
|
+
export default NavBar;
|
|
45
|
+
//# sourceMappingURL=NavBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/sections/navigation/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAC3C,OAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWzD,eAAO,MAAM,aAAa,UACf,YAAY,oCAEpB,CAAC,MAAM,EAAE,MAAM,CAWjB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,YAAY,YAU5C,CAAC;AAEF,eAAO,MAAM,cAAc,UAChB,YAAY,oCAEpB,CAAC,MAAM,EAAE,MAAM,CAWjB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAClB,YAAY,oCAEpB,CAAC,MAAM,EAAE,MAAM,CAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,YAAY,YAU/C,CAAC;AAEF,oBAAY,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,UACf,YAAY,yEAGpB,CAAC,MAAM,EAAE,MAAM,CAkBjB,CAAC;AA8LF,oBAAY,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED,oBAAY,QAAQ,GAAG,aAAa,GAAG,eAAe,CAAC;AAEvD,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACzD,SAAS,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED,QAAA,MAAM,MAAM,EAAE,EAAE,CACZ,WAAW,GAAG;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CA6JJ,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { DefaultTheme } from 'styled-components';
|
|
3
|
+
import { NavBarSize } from '../../NavBar';
|
|
4
|
+
import { MenuBaseProps } from '../Menu';
|
|
5
|
+
export declare const getMenuHeaderHeights: (theme: DefaultTheme, size?: NavBarSize | undefined) => [number, number];
|
|
6
|
+
export declare const hasMenuHeader: (theme: DefaultTheme) => boolean;
|
|
7
|
+
export interface FlyoutMenuProps {
|
|
8
|
+
type: 'flyout';
|
|
9
|
+
collapseIcon?: (props: {
|
|
10
|
+
isCollapsed?: boolean;
|
|
11
|
+
}) => React.ReactNode;
|
|
12
|
+
subNavTitle?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const MenuFlyout: FC<MenuBaseProps & FlyoutMenuProps>;
|
|
15
|
+
export default MenuFlyout;
|
|
16
|
+
//# sourceMappingURL=MenuFlyout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuFlyout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sections/navigation/menu/variations/MenuFlyout.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EACV,EAAE,EAML,MAAM,OAAO,CAAC;AACf,OAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAczD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,aAAa,EAAW,MAAM,SAAS,CAAC;AAkGjD,eAAO,MAAM,oBAAoB,UACtB,YAAY,oCAEpB,CAAC,MAAM,EAAE,MAAM,CAWjB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,YAAY,YAUhD,CAAC;AAwfF,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,aAAa,GAAG,eAAe,CAkOnD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { MenuBaseProps } from '../Menu';
|
|
3
|
+
export interface LargeMenuProps {
|
|
4
|
+
type: 'large';
|
|
5
|
+
columns?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const MenuLarge: FC<MenuBaseProps & LargeMenuProps>;
|
|
8
|
+
export default MenuLarge;
|
|
9
|
+
//# sourceMappingURL=MenuLarge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuLarge.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sections/navigation/menu/variations/MenuLarge.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,EAAE,EAAE,CAAC,aAAa,GAAG,cAAc,CAUjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { NavMenuStates } from '../Navigation';
|
|
3
|
+
import { SocialItem } from "../../../blocks/SocialList";
|
|
4
|
+
import { Language } from "../../../blocks/LanguageSwitcher";
|
|
5
|
+
declare const MenuFooter: FC<{
|
|
6
|
+
isInverted?: boolean;
|
|
7
|
+
langs?: Language[];
|
|
8
|
+
socials?: SocialItem[];
|
|
9
|
+
menuStates?: NavMenuStates;
|
|
10
|
+
}>;
|
|
11
|
+
export default MenuFooter;
|
|
12
|
+
//# sourceMappingURL=MenuFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/navigation/partials/MenuFooter.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAmB,EAAE,UAAU,EAAE,mCAAqC;AACtE,OAAyB,EAAE,QAAQ,EAAE,yCAA2C;AAehF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,aAAa,CAAC;CAC9B,CAqBA,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { NavMenuStates } from '../Navigation';
|
|
3
|
+
import { Language } from "../../../blocks/LanguageSwitcher";
|
|
4
|
+
declare const MenuHeader: FC<{
|
|
5
|
+
isInverted?: boolean;
|
|
6
|
+
menuStates?: NavMenuStates;
|
|
7
|
+
customToggle?: (props: {
|
|
8
|
+
isInverted?: boolean;
|
|
9
|
+
}) => React.ReactNode;
|
|
10
|
+
langs?: Language[];
|
|
11
|
+
action?: (props: {
|
|
12
|
+
isInverted?: boolean;
|
|
13
|
+
} & NavMenuStates) => React.ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
export default MenuHeader;
|
|
16
|
+
//# sourceMappingURL=MenuHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/sections/navigation/partials/MenuHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAyB,EAAE,QAAQ,EAAE,yCAA2C;AAiBhF,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,KAAK,CAAC,SAAS,CAAC;IACpE,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,CACL,KAAK,EAAE;QAAE,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,aAAa,KAC9C,KAAK,CAAC,SAAS,CAAC;CACxB,CA2BA,CAAC;AAEF,eAAe,UAAU,CAAC"}
|