@blateral/b.kit 1.21.4-patch.2.6 → 1.21.4-patch.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/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/Icons.d.ts +58 -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/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/Place.d.ts +8 -0
- package/lib/components/base/icons/Place.d.ts.map +1 -0
- package/lib/components/base/icons/UnfoldMore.d.ts +8 -0
- package/lib/components/base/icons/UnfoldMore.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/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/VideoBlock.d.ts +23 -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/FormField.d.ts +33 -0
- package/lib/components/fields/FormField.d.ts.map +1 -0
- package/lib/components/fields/LocationField.d.ts +38 -0
- package/lib/components/fields/LocationField.d.ts.map +1 -0
- 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/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/PriceList.d.ts +20 -9
- package/lib/components/sections/PriceList.d.ts.map +1 -1
- package/lib/components/sections/carousel/PromotionCarousel.d.ts +2 -2
- 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 +39 -0
- package/lib/components/sections/events/EventList.d.ts.map +1 -0
- package/lib/components/sections/events/EventOverview.d.ts +62 -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 +192 -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/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 +14 -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 +37 -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/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/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/types.d.ts +8 -0
- package/lib/utils/types.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/useLazyInput.d.ts +8 -0
- package/lib/utils/useLazyInput.d.ts.map +1 -0
- package/lib/utils/useLeafletMap.d.ts +46 -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/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 @@
|
|
|
1
|
+
{"version":3,"file":"arrays.d.ts","sourceRoot":"","sources":["../../src/utils/arrays.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,qDAIxB,CAAC;AAEF,eAAO,MAAM,YAAY,oEAOxB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Cookie } from './cookie';
|
|
3
|
+
export interface CookieType {
|
|
4
|
+
label: string;
|
|
5
|
+
isAccepted: boolean;
|
|
6
|
+
isEditable: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface CookieTypes {
|
|
9
|
+
[key: string]: CookieType;
|
|
10
|
+
}
|
|
11
|
+
export interface CookieConsentData {
|
|
12
|
+
types: Record<string, boolean>;
|
|
13
|
+
updatedAt: number;
|
|
14
|
+
}
|
|
15
|
+
export interface CookieConsentSettings {
|
|
16
|
+
cookieName?: string;
|
|
17
|
+
initialCookieTypes?: CookieTypes;
|
|
18
|
+
lifetime?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare const selectors: {
|
|
21
|
+
buttons: {
|
|
22
|
+
class: string;
|
|
23
|
+
attribute: string;
|
|
24
|
+
};
|
|
25
|
+
status: {
|
|
26
|
+
class: string;
|
|
27
|
+
attribute: string;
|
|
28
|
+
};
|
|
29
|
+
script: (key: string) => string;
|
|
30
|
+
};
|
|
31
|
+
declare const useCookieConsent: (props: CookieConsentSettings, onSubmit?: (() => void) | undefined, statusRenderer?: ((props: {
|
|
32
|
+
updatedAt: number;
|
|
33
|
+
state: CookieTypes;
|
|
34
|
+
}) => React.ReactElement) | undefined) => {
|
|
35
|
+
cookieTypes: CookieTypes;
|
|
36
|
+
acceptAll: () => void;
|
|
37
|
+
acceptSelected: () => void;
|
|
38
|
+
declineAll: () => void;
|
|
39
|
+
setConsent: (type: keyof CookieTypes, isAccepted?: boolean | undefined) => void;
|
|
40
|
+
getCookieValue: () => Cookie<CookieConsentData> | undefined;
|
|
41
|
+
};
|
|
42
|
+
export default useCookieConsent;
|
|
43
|
+
//# sourceMappingURL=useCookieConsent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCookieConsent.d.ts","sourceRoot":"","sources":["../../../src/utils/cookie-consent/useCookieConsent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAwB,MAAM,UAAU,CAAC;AAGxD,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,WAAW,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,SAAS;;;;;;;;;kBASJ,MAAM;CACvB,CAAC;AAEF,QAAA,MAAM,gBAAgB,UACX,qBAAqB,oBACX,IAAI,yCACI;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,WAAW,CAAC;CACtB,KAAK,MAAM,YAAY;;;;;uBAyKE,MAAM,WAAW;0BAehB,OAAO,iBAAiB,CAAC,GAAG,SAAS;CAYnE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataURI.d.ts","sourceRoot":"","sources":["../../src/utils/dataURI.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,aAAa,QACjB,MAAM,YAAY,uBAExB,MAkBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../src/utils/filters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,uBAAwB,MAAM,wBAElD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FontFallback {
|
|
3
|
+
name: string;
|
|
4
|
+
altFont: string;
|
|
5
|
+
sizeAdjust: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Font {
|
|
8
|
+
rootPath: string;
|
|
9
|
+
sourcePath: string;
|
|
10
|
+
fallbacks?: FontFallback[];
|
|
11
|
+
}
|
|
12
|
+
export declare const importFonts: (fonts: Font[]) => JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=fontLoading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontLoading.d.ts","sourceRoot":"","sources":["../../src/utils/fontLoading.tsx"],"names":[],"mappings":";AAEA,UAAU,YAAY;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,UAAW,IAAI,EAAE,gBAsDxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formFieldText.d.ts","sourceRoot":"","sources":["../../src/utils/formFieldText.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKjD,eAAO,MAAM,oBAAoB,UACtB,YAAY,KACpB,CAAC,MAAM,EAAE,MAAM,CAAC,CAIlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLinkIcon.d.ts","sourceRoot":"","sources":["../../src/utils/getLinkIcon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,eAAO,MAAM,WAAW,UACb,YAAY,QACb,MAAM,uCAEb,MASF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Settings {
|
|
3
|
+
openMenuIdent: string;
|
|
4
|
+
closeMenuIdent: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Hooks in to menu state to control it with keyboard inputs
|
|
8
|
+
* @param initialMenuState
|
|
9
|
+
* @param settings
|
|
10
|
+
* @returns
|
|
11
|
+
*/
|
|
12
|
+
export declare const useMenuKeyboard: (initialMenuState: boolean, settings: Partial<Settings>) => {
|
|
13
|
+
setRoot: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
14
|
+
isMenuOpen: boolean;
|
|
15
|
+
setIsMenuOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=menuHooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menuHooks.d.ts","sourceRoot":"","sources":["../../src/utils/menuHooks.ts"],"names":[],"mappings":";AAEA,UAAU,QAAQ;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,qBACN,OAAO,YACf,QAAQ,QAAQ,CAAC;;;;CAgE9B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NavItem } from "../components/sections/navigation/menu/Menu";
|
|
2
|
+
/**
|
|
3
|
+
* Get current navigation item
|
|
4
|
+
* @param items Array of navItems
|
|
5
|
+
* @param includeHidden Include items that are hidden for menu
|
|
6
|
+
* @returns The current navItem
|
|
7
|
+
*/
|
|
8
|
+
export declare const getCurrentNavItem: (items?: NavItem[] | undefined, includeHidden?: boolean | undefined) => {
|
|
9
|
+
current: NavItem;
|
|
10
|
+
root: NavItem;
|
|
11
|
+
rootIndex: number;
|
|
12
|
+
} | null;
|
|
13
|
+
/**
|
|
14
|
+
* Get naviation item path to current navItem
|
|
15
|
+
* @param items Navigation array with navItems
|
|
16
|
+
* @param exludeHrefs navItems with specific hrefs that should be excluded
|
|
17
|
+
* @returns Array of NavItems
|
|
18
|
+
*/
|
|
19
|
+
export declare const getCurrentNavPath: (items?: NavItem[] | undefined, exludeHrefs?: string[] | undefined) => NavItem[];
|
|
20
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../src/utils/navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oDAAiD;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;QA+B7B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,kFA6B7B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type RecursivePartial<T> = {
|
|
2
|
+
[P in keyof T]?: T[P] extends Array<infer I> ? Array<RecursivePartial<I>> : RecursivePartial<T[P]>;
|
|
3
|
+
};
|
|
4
|
+
export declare type Without<T, U> = {
|
|
5
|
+
[P in Exclude<keyof T, keyof U>]?: never;
|
|
6
|
+
};
|
|
7
|
+
export declare type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,CAAC,CAAC,IAAI;KAC7B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACtC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAC1B,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC/B,CAAC;AAEF,oBAAY,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK;CAAE,CAAC;AAEzE,oBAAY,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,MAAM,GACtC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GACzC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useArray: <T>(defaultValue?: T[] | undefined) => {
|
|
3
|
+
array: T[];
|
|
4
|
+
set: import("react").Dispatch<import("react").SetStateAction<T[]>>;
|
|
5
|
+
push: (element: T | T[]) => void;
|
|
6
|
+
filter: (callback: (value: T, index: number, array: T[]) => void) => void;
|
|
7
|
+
update: (index: number, newEl: T) => void;
|
|
8
|
+
remove: (index: number) => void;
|
|
9
|
+
clear: () => void;
|
|
10
|
+
pop: () => T | undefined;
|
|
11
|
+
};
|
|
12
|
+
export default useArray;
|
|
13
|
+
//# sourceMappingURL=useArray.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useArray.d.ts","sourceRoot":"","sources":["../../src/utils/useArray.ts"],"names":[],"mappings":";AAEA,QAAA,MAAM,QAAQ;;;;yCAuBsB,MAAM,iBAAiB,IAAI;oBAKpC,MAAM;oBAQN,MAAM;;;CAqBhC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDebounce.d.ts","sourceRoot":"","sources":["../../src/utils/useDebounce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA0B,MAAM,OAAO,CAAC;AAG/D,QAAA,MAAM,WAAW,aACH,MAAM,IAAI,SACb,MAAM;;CAkBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const useLazyInput: (callback: (value: string) => void, initial: string, delay?: number) => {
|
|
3
|
+
setValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
4
|
+
value: string;
|
|
5
|
+
forceUpdate: () => void;
|
|
6
|
+
};
|
|
7
|
+
export default useLazyInput;
|
|
8
|
+
//# sourceMappingURL=useLazyInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLazyInput.d.ts","sourceRoot":"","sources":["../../src/utils/useLazyInput.ts"],"names":[],"mappings":";AAGA,QAAA,MAAM,YAAY,qBACI,MAAM,KAAK,IAAI,WACxB,MAAM;;;;CAalB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LeafletMouseEvent } from 'leaflet';
|
|
3
|
+
export interface LeafletMapSettings {
|
|
4
|
+
center: [number, number];
|
|
5
|
+
zoom: number;
|
|
6
|
+
touchZoom: boolean;
|
|
7
|
+
scrollWheelZoom: boolean;
|
|
8
|
+
onlyScrollOnFocus: boolean;
|
|
9
|
+
url: string;
|
|
10
|
+
attribution: string;
|
|
11
|
+
markers: Array<LeafletMapMarker>;
|
|
12
|
+
activeMarkerId?: string;
|
|
13
|
+
fitBoundsPadding: [number, number];
|
|
14
|
+
onMarkerClick?: (markerId: string) => void;
|
|
15
|
+
onActiveMarkerChanged?: (props: {
|
|
16
|
+
markerId: string;
|
|
17
|
+
}) => void;
|
|
18
|
+
onReady?: () => void;
|
|
19
|
+
onClick?: (ev: LeafletMouseEvent, currentZoom: number) => void;
|
|
20
|
+
}
|
|
21
|
+
export interface LeafletMapMarker {
|
|
22
|
+
id: string;
|
|
23
|
+
position: [number, number];
|
|
24
|
+
icon?: {
|
|
25
|
+
url: string;
|
|
26
|
+
size: [number, number];
|
|
27
|
+
anchor: [number, number];
|
|
28
|
+
sizeActive: [number, number];
|
|
29
|
+
anchorActive: [number, number];
|
|
30
|
+
};
|
|
31
|
+
popup?: {
|
|
32
|
+
text: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
declare const useLeafletMap: (settings: Partial<LeafletMapSettings>) => {
|
|
36
|
+
setContainer: import("react").Dispatch<import("react").SetStateAction<HTMLElement | null>>;
|
|
37
|
+
flyToActive: (zoom?: number | undefined) => void;
|
|
38
|
+
flyToPosition: (position?: [number, number] | undefined, zoom?: number | undefined) => void;
|
|
39
|
+
panToPosition: (position?: [number, number] | undefined) => void;
|
|
40
|
+
showAllMarkers: () => void;
|
|
41
|
+
recalculateMapSize: () => void;
|
|
42
|
+
getCurrentZoom: () => number;
|
|
43
|
+
isLoaded: boolean;
|
|
44
|
+
};
|
|
45
|
+
export default useLeafletMap;
|
|
46
|
+
//# sourceMappingURL=useLeafletMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLeafletMap.d.ts","sourceRoot":"","sources":["../../src/utils/useLeafletMap.tsx"],"names":[],"mappings":";AACA,OAAO,EAEH,iBAAiB,EAIpB,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAClE;AAED,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE;QACH,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACvB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAEzB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC7B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAClC,CAAC;IACF,KAAK,CAAC,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;CACL;AAED,QAAA,MAAM,aAAa,aAAc,QAAQ,kBAAkB,CAAC;;;;;;;;;CAsO3D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMounted.d.ts","sourceRoot":"","sources":["../../src/utils/useMounted.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,eAQf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum PageScrollDirection {
|
|
2
|
+
UP = 0,
|
|
3
|
+
DOWN = 1
|
|
4
|
+
}
|
|
5
|
+
interface ScrollSettings {
|
|
6
|
+
/** Direction state change delay in pixels */
|
|
7
|
+
directionOffset?: {
|
|
8
|
+
up?: number;
|
|
9
|
+
down?: number;
|
|
10
|
+
};
|
|
11
|
+
/** Set top offset area */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** On leave top offset callback */
|
|
14
|
+
onLeftOffset?: (dir: PageScrollDirection) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const usePageScroll: (settings?: ScrollSettings | undefined) => {
|
|
17
|
+
isTop: boolean;
|
|
18
|
+
scrollDirection: PageScrollDirection;
|
|
19
|
+
isInOffset: boolean;
|
|
20
|
+
leftOffsetFromTop: boolean;
|
|
21
|
+
};
|
|
22
|
+
export default usePageScroll;
|
|
23
|
+
//# sourceMappingURL=usePageScroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageScroll.d.ts","sourceRoot":"","sources":["../../src/utils/usePageScroll.ts"],"names":[],"mappings":"AAEA,oBAAY,mBAAmB;IAC3B,EAAE,IAAA;IACF,IAAI,IAAA;CACP;AAED,UAAU,cAAc;IACpB,6CAA6C;IAC7C,eAAe,CAAC,EAAE;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACrD;AAED,QAAA,MAAM,aAAa;;;;;CAgGlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTimeout.d.ts","sourceRoot":"","sources":["../../src/utils/useTimeout.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU,aAAc,MAAM,IAAI,SAAS,MAAM;;;CA8BtD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DependencyList, EffectCallback } from 'react';
|
|
2
|
+
/** useEffect function that runs only on update (not on first render) */
|
|
3
|
+
declare const useUpdateEffect: (effect: EffectCallback, deps?: DependencyList | undefined) => void;
|
|
4
|
+
export default useUpdateEffect;
|
|
5
|
+
//# sourceMappingURL=useUpdateEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateEffect.d.ts","sourceRoot":"","sources":["../../src/utils/useUpdateEffect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAqB,MAAM,OAAO,CAAC;AAE1E,wEAAwE;AACxE,QAAA,MAAM,eAAe,WAAY,cAAc,4CAW9C,CAAC;AAEF,eAAe,eAAe,CAAC"}
|