@regardio/react 0.3.3 → 0.4.0
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/dist/components/background-slideshow.d.ts +7 -5
- package/dist/components/background-slideshow.js +172 -74
- package/dist/components/blurry-gradient.d.ts +11 -4
- package/dist/components/blurry-gradient.js +121 -5
- package/dist/components/box.d.ts +12 -9
- package/dist/components/box.js +48 -23
- package/dist/components/carousel.d.ts +12 -10
- package/dist/components/carousel.js +146 -66
- package/dist/components/countdown.d.ts +5 -2
- package/dist/components/countdown.js +55 -21
- package/dist/components/definition-list.d.ts +19 -16
- package/dist/components/definition-list.js +83 -51
- package/dist/components/generic-error.d.ts +25 -5
- package/dist/components/generic-error.js +42 -34
- package/dist/components/heading.d.ts +13 -10
- package/dist/components/heading.js +114 -25
- package/dist/components/highlight.d.ts +11 -8
- package/dist/components/highlight.js +65 -17
- package/dist/components/icon-button.d.ts +7 -4
- package/dist/components/icon-button.js +16 -5
- package/dist/components/if.d.ts +6 -4
- package/dist/components/if.js +22 -14
- package/dist/components/iframe.d.ts +6 -4
- package/dist/components/iframe.js +26 -3
- package/dist/components/item.d.ts +17 -14
- package/dist/components/item.js +504 -301
- package/dist/components/leaflet-map.d.ts +5 -4
- package/dist/components/leaflet-map.js +192 -186
- package/dist/components/link.d.ts +24 -16
- package/dist/components/link.js +191 -102
- package/dist/components/list-item.d.ts +11 -8
- package/dist/components/list-item.js +35 -17
- package/dist/components/maptiler-map.d.ts +5 -4
- package/dist/components/maptiler-map.js +125 -112
- package/dist/components/markdown-container.d.ts +10 -8
- package/dist/components/markdown-container.js +181 -82
- package/dist/components/password-input.d.ts +7 -5
- package/dist/components/password-input.js +50 -8
- package/dist/components/picture.d.ts +19 -7
- package/dist/components/picture.js +75 -34
- package/dist/components/protected-email.d.ts +14 -3
- package/dist/components/protected-email.js +29 -15
- package/dist/components/text.d.ts +12 -9
- package/dist/components/text.js +42 -24
- package/dist/components/unordered-list.d.ts +11 -8
- package/dist/components/unordered-list.js +37 -19
- package/dist/hooks/use-current-route-data.d.ts +7 -2
- package/dist/hooks/use-current-route-data.js +13 -9
- package/dist/hooks/use-focus-search.d.ts +6 -3
- package/dist/hooks/use-focus-search.js +17 -13
- package/dist/hooks/use-matches-data.d.ts +9 -2
- package/dist/hooks/use-matches-data.js +12 -8
- package/dist/hooks/use-media-query.d.ts +8 -2
- package/dist/hooks/use-media-query.js +19 -15
- package/dist/hooks/use-mobile.d.ts +3 -2
- package/dist/hooks/use-mobile.js +18 -14
- package/dist/hooks/use-nonce.d.ts +12 -5
- package/dist/hooks/use-nonce.js +11 -7
- package/dist/hooks/use-orientation.d.ts +11 -3
- package/dist/hooks/use-orientation.js +28 -24
- package/dist/hooks/use-user.d.ts +43 -8
- package/dist/hooks/use-user.js +21 -13
- package/dist/utils/author.d.ts +4 -4
- package/dist/utils/author.js +49 -31
- package/dist/utils/cn.d.ts +8 -4
- package/dist/utils/cn.js +12 -8
- package/dist/utils/is-route-active.d.ts +19 -3
- package/dist/utils/is-route-active.js +45 -43
- package/dist/utils/locale.d.ts +66 -4
- package/dist/utils/locale.js +33 -22
- package/dist/utils/text.d.ts +24 -7
- package/dist/utils/text.js +114 -89
- package/package.json +4 -3
- package/dist/components/background-slideshow.d.ts.map +0 -1
- package/dist/components/blurry-gradient.d.ts.map +0 -1
- package/dist/components/box.d.ts.map +0 -1
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/countdown.d.ts.map +0 -1
- package/dist/components/definition-list.d.ts.map +0 -1
- package/dist/components/generic-error.d.ts.map +0 -1
- package/dist/components/heading.d.ts.map +0 -1
- package/dist/components/highlight.d.ts.map +0 -1
- package/dist/components/icon-button.d.ts.map +0 -1
- package/dist/components/if.d.ts.map +0 -1
- package/dist/components/iframe.d.ts.map +0 -1
- package/dist/components/item.d.ts.map +0 -1
- package/dist/components/leaflet-map.d.ts.map +0 -1
- package/dist/components/link.d.ts.map +0 -1
- package/dist/components/link.test.d.ts +0 -2
- package/dist/components/link.test.d.ts.map +0 -1
- package/dist/components/link.test.js +0 -204
- package/dist/components/list-item.d.ts.map +0 -1
- package/dist/components/maptiler-map.d.ts.map +0 -1
- package/dist/components/markdown-container.d.ts.map +0 -1
- package/dist/components/password-input.d.ts.map +0 -1
- package/dist/components/picture.d.ts.map +0 -1
- package/dist/components/protected-email.d.ts.map +0 -1
- package/dist/components/text.d.ts.map +0 -1
- package/dist/components/unordered-list.d.ts.map +0 -1
- package/dist/hooks/use-current-route-data.d.ts.map +0 -1
- package/dist/hooks/use-focus-search.d.ts.map +0 -1
- package/dist/hooks/use-matches-data.d.ts.map +0 -1
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-mobile.d.ts.map +0 -1
- package/dist/hooks/use-nonce.d.ts.map +0 -1
- package/dist/hooks/use-nonce.test.d.ts +0 -2
- package/dist/hooks/use-nonce.test.d.ts.map +0 -1
- package/dist/hooks/use-nonce.test.js +0 -27
- package/dist/hooks/use-orientation.d.ts.map +0 -1
- package/dist/hooks/use-user.d.ts.map +0 -1
- package/dist/shadcn/accordion.d.ts +0 -25
- package/dist/shadcn/accordion.d.ts.map +0 -1
- package/dist/shadcn/accordion.js +0 -45
- package/dist/shadcn/alert-dialog.d.ts +0 -73
- package/dist/shadcn/alert-dialog.d.ts.map +0 -1
- package/dist/shadcn/alert-dialog.js +0 -93
- package/dist/shadcn/alert.d.ts +0 -34
- package/dist/shadcn/alert.d.ts.map +0 -1
- package/dist/shadcn/alert.js +0 -42
- package/dist/shadcn/aspect-ratio.d.ts +0 -6
- package/dist/shadcn/aspect-ratio.d.ts.map +0 -1
- package/dist/shadcn/aspect-ratio.js +0 -7
- package/dist/shadcn/avatar.d.ts +0 -16
- package/dist/shadcn/avatar.d.ts.map +0 -1
- package/dist/shadcn/avatar.js +0 -27
- package/dist/shadcn/badge.d.ts +0 -29
- package/dist/shadcn/badge.d.ts.map +0 -1
- package/dist/shadcn/badge.js +0 -29
- package/dist/shadcn/breadcrumb.d.ts +0 -42
- package/dist/shadcn/breadcrumb.d.ts.map +0 -1
- package/dist/shadcn/breadcrumb.js +0 -74
- package/dist/shadcn/button.d.ts +0 -38
- package/dist/shadcn/button.d.ts.map +0 -1
- package/dist/shadcn/button.js +0 -38
- package/dist/shadcn/calendar.d.ts +0 -23
- package/dist/shadcn/calendar.d.ts.map +0 -1
- package/dist/shadcn/calendar.js +0 -163
- package/dist/shadcn/card.d.ts +0 -31
- package/dist/shadcn/card.d.ts.map +0 -1
- package/dist/shadcn/card.js +0 -55
- package/dist/shadcn/carousel.d.ts +0 -51
- package/dist/shadcn/carousel.d.ts.map +0 -1
- package/dist/shadcn/carousel.js +0 -161
- package/dist/shadcn/chart.d.ts +0 -103
- package/dist/shadcn/chart.d.ts.map +0 -1
- package/dist/shadcn/chart.js +0 -248
- package/dist/shadcn/checkbox.d.ts +0 -8
- package/dist/shadcn/checkbox.d.ts.map +0 -1
- package/dist/shadcn/checkbox.js +0 -22
- package/dist/shadcn/collapsible.d.ts +0 -16
- package/dist/shadcn/collapsible.d.ts.map +0 -1
- package/dist/shadcn/collapsible.js +0 -19
- package/dist/shadcn/command.d.ts +0 -61
- package/dist/shadcn/command.d.ts.map +0 -1
- package/dist/shadcn/command.js +0 -123
- package/dist/shadcn/context-menu.d.ts +0 -107
- package/dist/shadcn/context-menu.d.ts.map +0 -1
- package/dist/shadcn/context-menu.js +0 -151
- package/dist/shadcn/dialog.d.ts +0 -57
- package/dist/shadcn/dialog.d.ts.map +0 -1
- package/dist/shadcn/dialog.js +0 -96
- package/dist/shadcn/drawer.d.ts +0 -54
- package/dist/shadcn/drawer.d.ts.map +0 -1
- package/dist/shadcn/drawer.js +0 -96
- package/dist/shadcn/dropdown-menu.d.ts +0 -110
- package/dist/shadcn/dropdown-menu.d.ts.map +0 -1
- package/dist/shadcn/dropdown-menu.js +0 -152
- package/dist/shadcn/form.d.ts +0 -59
- package/dist/shadcn/form.d.ts.map +0 -1
- package/dist/shadcn/form.js +0 -99
- package/dist/shadcn/hover-card.d.ts +0 -20
- package/dist/shadcn/hover-card.d.ts.map +0 -1
- package/dist/shadcn/hover-card.js +0 -26
- package/dist/shadcn/input-otp.d.ts +0 -25
- package/dist/shadcn/input-otp.d.ts.map +0 -1
- package/dist/shadcn/input-otp.js +0 -54
- package/dist/shadcn/input.d.ts +0 -14
- package/dist/shadcn/input.d.ts.map +0 -1
- package/dist/shadcn/input.js +0 -48
- package/dist/shadcn/label.d.ts +0 -8
- package/dist/shadcn/label.d.ts.map +0 -1
- package/dist/shadcn/label.js +0 -16
- package/dist/shadcn/menubar.d.ts +0 -108
- package/dist/shadcn/menubar.d.ts.map +0 -1
- package/dist/shadcn/menubar.js +0 -174
- package/dist/shadcn/navigation-menu.d.ts +0 -79
- package/dist/shadcn/navigation-menu.d.ts.map +0 -1
- package/dist/shadcn/navigation-menu.js +0 -108
- package/dist/shadcn/pagination.d.ts +0 -45
- package/dist/shadcn/pagination.d.ts.map +0 -1
- package/dist/shadcn/pagination.js +0 -83
- package/dist/shadcn/popover.d.ts +0 -19
- package/dist/shadcn/popover.d.ts.map +0 -1
- package/dist/shadcn/popover.js +0 -29
- package/dist/shadcn/progress.d.ts +0 -9
- package/dist/shadcn/progress.d.ts.map +0 -1
- package/dist/shadcn/progress.js +0 -17
- package/dist/shadcn/radio-group.d.ts +0 -12
- package/dist/shadcn/radio-group.d.ts.map +0 -1
- package/dist/shadcn/radio-group.js +0 -32
- package/dist/shadcn/resizable.d.ts +0 -20
- package/dist/shadcn/resizable.d.ts.map +0 -1
- package/dist/shadcn/resizable.js +0 -32
- package/dist/shadcn/scroll-area.d.ts +0 -16
- package/dist/shadcn/scroll-area.d.ts.map +0 -1
- package/dist/shadcn/scroll-area.js +0 -40
- package/dist/shadcn/select.d.ts +0 -63
- package/dist/shadcn/select.d.ts.map +0 -1
- package/dist/shadcn/select.js +0 -120
- package/dist/shadcn/separator.d.ts +0 -10
- package/dist/shadcn/separator.d.ts.map +0 -1
- package/dist/shadcn/separator.js +0 -18
- package/dist/shadcn/sheet.d.ts +0 -48
- package/dist/shadcn/sheet.d.ts.map +0 -1
- package/dist/shadcn/sheet.js +0 -99
- package/dist/shadcn/sidebar.d.ts +0 -200
- package/dist/shadcn/sidebar.d.ts.map +0 -1
- package/dist/shadcn/sidebar.js +0 -528
- package/dist/shadcn/skeleton.d.ts +0 -6
- package/dist/shadcn/skeleton.d.ts.map +0 -1
- package/dist/shadcn/skeleton.js +0 -11
- package/dist/shadcn/slider.d.ts +0 -12
- package/dist/shadcn/slider.d.ts.map +0 -1
- package/dist/shadcn/slider.js +0 -50
- package/dist/shadcn/sonner.d.ts +0 -7
- package/dist/shadcn/sonner.d.ts.map +0 -1
- package/dist/shadcn/sonner.js +0 -20
- package/dist/shadcn/switch.d.ts +0 -8
- package/dist/shadcn/switch.d.ts.map +0 -1
- package/dist/shadcn/switch.js +0 -22
- package/dist/shadcn/table.d.ts +0 -35
- package/dist/shadcn/table.d.ts.map +0 -1
- package/dist/shadcn/table.js +0 -73
- package/dist/shadcn/tabs.d.ts +0 -20
- package/dist/shadcn/tabs.d.ts.map +0 -1
- package/dist/shadcn/tabs.js +0 -40
- package/dist/shadcn/textarea.d.ts +0 -7
- package/dist/shadcn/textarea.d.ts.map +0 -1
- package/dist/shadcn/textarea.js +0 -14
- package/dist/shadcn/toggle-group.d.ts +0 -22
- package/dist/shadcn/toggle-group.d.ts.map +0 -1
- package/dist/shadcn/toggle-group.js +0 -43
- package/dist/shadcn/toggle.d.ts +0 -29
- package/dist/shadcn/toggle.d.ts.map +0 -1
- package/dist/shadcn/toggle.js +0 -31
- package/dist/shadcn/tooltip.d.ts +0 -20
- package/dist/shadcn/tooltip.d.ts.map +0 -1
- package/dist/shadcn/tooltip.js +0 -40
- package/dist/stories/BackgroundSlideshow.stories.d.ts +0 -9
- package/dist/stories/BackgroundSlideshow.stories.d.ts.map +0 -1
- package/dist/stories/BackgroundSlideshow.stories.js +0 -60
- package/dist/stories/BlurryGradient.stories.d.ts +0 -11
- package/dist/stories/BlurryGradient.stories.d.ts.map +0 -1
- package/dist/stories/BlurryGradient.stories.js +0 -53
- package/dist/stories/Box.stories.d.ts +0 -13
- package/dist/stories/Box.stories.d.ts.map +0 -1
- package/dist/stories/Box.stories.js +0 -50
- package/dist/stories/Carousel.stories.d.ts +0 -9
- package/dist/stories/Carousel.stories.d.ts.map +0 -1
- package/dist/stories/Carousel.stories.js +0 -30
- package/dist/stories/Countdown.stories.d.ts +0 -7
- package/dist/stories/Countdown.stories.d.ts.map +0 -1
- package/dist/stories/Countdown.stories.js +0 -11
- package/dist/stories/DefinitionList.stories.d.ts +0 -9
- package/dist/stories/DefinitionList.stories.d.ts.map +0 -1
- package/dist/stories/DefinitionList.stories.js +0 -20
- package/dist/stories/GenericError.stories.d.ts +0 -9
- package/dist/stories/GenericError.stories.d.ts.map +0 -1
- package/dist/stories/GenericError.stories.js +0 -39
- package/dist/stories/Heading.stories.d.ts +0 -15
- package/dist/stories/Heading.stories.d.ts.map +0 -1
- package/dist/stories/Heading.stories.js +0 -61
- package/dist/stories/Highlight.stories.d.ts +0 -8
- package/dist/stories/Highlight.stories.d.ts.map +0 -1
- package/dist/stories/Highlight.stories.js +0 -19
- package/dist/stories/IconButton.stories.d.ts +0 -10
- package/dist/stories/IconButton.stories.d.ts.map +0 -1
- package/dist/stories/IconButton.stories.js +0 -32
- package/dist/stories/If.stories.d.ts +0 -13
- package/dist/stories/If.stories.d.ts.map +0 -1
- package/dist/stories/If.stories.js +0 -54
- package/dist/stories/Iframe.stories.d.ts +0 -8
- package/dist/stories/Iframe.stories.d.ts.map +0 -1
- package/dist/stories/Iframe.stories.js +0 -23
- package/dist/stories/Item.stories.d.ts +0 -10
- package/dist/stories/Item.stories.d.ts.map +0 -1
- package/dist/stories/Item.stories.js +0 -32
- package/dist/stories/Link.stories.d.ts +0 -10
- package/dist/stories/Link.stories.d.ts.map +0 -1
- package/dist/stories/Link.stories.js +0 -36
- package/dist/stories/ListItem.stories.d.ts +0 -9
- package/dist/stories/ListItem.stories.d.ts.map +0 -1
- package/dist/stories/ListItem.stories.js +0 -26
- package/dist/stories/MarkdownContainer.stories.d.ts +0 -11
- package/dist/stories/MarkdownContainer.stories.d.ts.map +0 -1
- package/dist/stories/MarkdownContainer.stories.js +0 -66
- package/dist/stories/PasswordInput.stories.d.ts +0 -9
- package/dist/stories/PasswordInput.stories.d.ts.map +0 -1
- package/dist/stories/PasswordInput.stories.js +0 -27
- package/dist/stories/Picture.stories.d.ts +0 -10
- package/dist/stories/Picture.stories.d.ts.map +0 -1
- package/dist/stories/Picture.stories.js +0 -46
- package/dist/stories/ProtectedEmail.stories.d.ts +0 -10
- package/dist/stories/ProtectedEmail.stories.d.ts.map +0 -1
- package/dist/stories/ProtectedEmail.stories.js +0 -34
- package/dist/stories/Text.stories.d.ts +0 -10
- package/dist/stories/Text.stories.d.ts.map +0 -1
- package/dist/stories/Text.stories.js +0 -31
- package/dist/stories/UnorderedList.stories.d.ts +0 -10
- package/dist/stories/UnorderedList.stories.d.ts.map +0 -1
- package/dist/stories/UnorderedList.stories.js +0 -24
- package/dist/test-setup.d.ts +0 -2
- package/dist/test-setup.d.ts.map +0 -1
- package/dist/test-setup.js +0 -1
- package/dist/utils/author.d.ts.map +0 -1
- package/dist/utils/author.test.d.ts +0 -2
- package/dist/utils/author.test.d.ts.map +0 -1
- package/dist/utils/author.test.js +0 -46
- package/dist/utils/cn.d.ts.map +0 -1
- package/dist/utils/cn.test.d.ts +0 -2
- package/dist/utils/cn.test.d.ts.map +0 -1
- package/dist/utils/cn.test.js +0 -33
- package/dist/utils/is-route-active.d.ts.map +0 -1
- package/dist/utils/is-route-active.test.d.ts +0 -2
- package/dist/utils/is-route-active.test.d.ts.map +0 -1
- package/dist/utils/is-route-active.test.js +0 -61
- package/dist/utils/locale.d.ts.map +0 -1
- package/dist/utils/locale.test.d.ts +0 -2
- package/dist/utils/locale.test.d.ts.map +0 -1
- package/dist/utils/locale.test.js +0 -99
- package/dist/utils/text.d.ts.map +0 -1
- package/dist/utils/text.test.d.ts +0 -2
- package/dist/utils/text.test.d.ts.map +0 -1
- package/dist/utils/text.test.js +0 -122
package/dist/components/link.js
CHANGED
|
@@ -1,111 +1,200 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createContext, useCallback, useContext } from 'react';
|
|
1
|
+
import React, { createContext, useContext, useCallback, isValidElement, cloneElement } from 'react';
|
|
3
2
|
import { NavLink } from 'react-router';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
let path;
|
|
14
|
-
if (routeKey && pathResolver) {
|
|
15
|
-
path = pathResolver(routeKey);
|
|
16
|
-
}
|
|
17
|
-
else if (typeof to === 'string') {
|
|
18
|
-
path = to;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
path = to?.pathname ?? '';
|
|
22
|
-
if (to?.search)
|
|
23
|
-
path += to.search;
|
|
24
|
-
if (to?.hash)
|
|
25
|
-
path += to.hash;
|
|
3
|
+
import { defineConfig } from 'cva';
|
|
4
|
+
import { twMerge } from 'fluid-tailwindcss/tailwind-merge';
|
|
5
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/components/link.tsx
|
|
8
|
+
var { cva, compose } = defineConfig({
|
|
9
|
+
hooks: {
|
|
10
|
+
onComplete: (className) => {
|
|
11
|
+
return twMerge(className);
|
|
26
12
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var lowerCaseSzett = (text, _returnType) => {
|
|
16
|
+
const processString = (str) => {
|
|
17
|
+
const parts = str.split(/(ß)/g);
|
|
18
|
+
return parts.map(
|
|
19
|
+
(part, index) => part === "\xDF" ? /* @__PURE__ */ jsx(
|
|
20
|
+
"span",
|
|
21
|
+
{
|
|
22
|
+
className: "lowercase",
|
|
23
|
+
children: part
|
|
24
|
+
},
|
|
25
|
+
index.toString()
|
|
26
|
+
) : part
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
if (typeof text === "string") {
|
|
30
|
+
return processString(text);
|
|
31
|
+
}
|
|
32
|
+
if (isValidElement(text)) {
|
|
33
|
+
const element = text;
|
|
34
|
+
const { children, ...props } = element.props;
|
|
35
|
+
return cloneElement(element, {
|
|
36
|
+
...props,
|
|
37
|
+
children: lowerCaseSzett(children)
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (Array.isArray(text)) {
|
|
41
|
+
return text.map((child, index) => /* @__PURE__ */ jsx(React.Fragment, { children: lowerCaseSzett(child) }, index.toString()));
|
|
42
|
+
}
|
|
43
|
+
return text;
|
|
44
|
+
};
|
|
45
|
+
var PathResolverContext = createContext(null);
|
|
46
|
+
var PathResolverProvider = PathResolverContext.Provider;
|
|
47
|
+
function usePathResolver() {
|
|
48
|
+
return useContext(PathResolverContext);
|
|
49
|
+
}
|
|
50
|
+
var LinkBase = ({
|
|
51
|
+
className,
|
|
52
|
+
to,
|
|
53
|
+
routeKey,
|
|
54
|
+
children,
|
|
55
|
+
onClick,
|
|
56
|
+
viewTransition = true,
|
|
57
|
+
...props
|
|
58
|
+
}) => {
|
|
59
|
+
const pathResolver = usePathResolver();
|
|
60
|
+
let path;
|
|
61
|
+
if (routeKey && pathResolver) {
|
|
62
|
+
path = pathResolver(routeKey);
|
|
63
|
+
} else if (typeof to === "string") {
|
|
64
|
+
path = to;
|
|
65
|
+
} else {
|
|
66
|
+
path = to?.pathname ?? "";
|
|
67
|
+
if (to?.search) path += to.search;
|
|
68
|
+
if (to?.hash) path += to.hash;
|
|
69
|
+
}
|
|
70
|
+
const isExternal = path.startsWith("tel:") || path.startsWith("mailto:") || path.startsWith("#") || path.startsWith("http");
|
|
71
|
+
const handleClick = useCallback(
|
|
72
|
+
(event) => {
|
|
73
|
+
onClick?.(event);
|
|
74
|
+
if (event.defaultPrevented) return;
|
|
75
|
+
if (path.startsWith("tel:") || path.startsWith("mailto:")) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (path.startsWith("#")) {
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
const element = document.getElementById(path.substring(1));
|
|
81
|
+
if (element) {
|
|
82
|
+
element.scrollIntoView({ behavior: "smooth" });
|
|
50
83
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (path.startsWith("http")) {
|
|
87
|
+
event.preventDefault();
|
|
88
|
+
window.open(path, "_blank", "noopener,noreferrer");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
[onClick, path]
|
|
93
|
+
);
|
|
94
|
+
if (!path) {
|
|
95
|
+
return /* @__PURE__ */ jsx(Fragment, { children: typeof children === "function" ? null : children });
|
|
96
|
+
}
|
|
97
|
+
if (isExternal) {
|
|
98
|
+
const externalState = {
|
|
99
|
+
isActive: false,
|
|
100
|
+
isPending: false,
|
|
101
|
+
isTransitioning: false
|
|
102
|
+
};
|
|
103
|
+
const resolvedClassName = typeof className === "function" ? className(externalState) : className;
|
|
104
|
+
const resolvedStyle = typeof props.style === "function" ? props.style(externalState) : props.style;
|
|
105
|
+
return /* @__PURE__ */ jsx(
|
|
106
|
+
"a",
|
|
107
|
+
{
|
|
108
|
+
className: resolvedClassName,
|
|
109
|
+
href: path,
|
|
110
|
+
onClick: handleClick,
|
|
111
|
+
style: resolvedStyle,
|
|
112
|
+
children: typeof children === "function" ? children(externalState) : children
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
return /* @__PURE__ */ jsx(
|
|
117
|
+
NavLink,
|
|
118
|
+
{
|
|
119
|
+
...props,
|
|
120
|
+
className,
|
|
121
|
+
onClick: handleClick,
|
|
122
|
+
to: path,
|
|
123
|
+
viewTransition,
|
|
124
|
+
children
|
|
64
125
|
}
|
|
65
|
-
|
|
126
|
+
);
|
|
66
127
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
variant: {
|
|
80
|
-
button: [
|
|
81
|
-
'block',
|
|
82
|
-
'button',
|
|
83
|
-
'mt-s',
|
|
84
|
-
'relative',
|
|
85
|
-
'rarr',
|
|
86
|
-
'text-right',
|
|
87
|
-
'text-sm',
|
|
88
|
-
'tracking-wider',
|
|
89
|
-
'uppercase',
|
|
90
|
-
],
|
|
91
|
-
code: ['font-monospace'],
|
|
92
|
-
link: ['rarr', '!bg-transparent', 'uppercase', '!tracking-wider'],
|
|
93
|
-
navtitle: ['block', 'uppercase', 'tracking-wider'],
|
|
94
|
-
primary: [],
|
|
95
|
-
subtitle: ['text-lg'],
|
|
96
|
-
},
|
|
128
|
+
var link = cva({
|
|
129
|
+
base: [],
|
|
130
|
+
defaultVariants: {
|
|
131
|
+
variant: "primary"
|
|
132
|
+
},
|
|
133
|
+
variants: {
|
|
134
|
+
arrow: {
|
|
135
|
+
darr: "darr",
|
|
136
|
+
larr: "larr",
|
|
137
|
+
rarr: "rarr",
|
|
138
|
+
uarr: "uarr"
|
|
97
139
|
},
|
|
140
|
+
variant: {
|
|
141
|
+
button: [
|
|
142
|
+
"block",
|
|
143
|
+
"button",
|
|
144
|
+
"mt-s",
|
|
145
|
+
"relative",
|
|
146
|
+
"rarr",
|
|
147
|
+
"text-right",
|
|
148
|
+
"text-sm",
|
|
149
|
+
"tracking-wider",
|
|
150
|
+
"uppercase"
|
|
151
|
+
],
|
|
152
|
+
code: ["font-monospace"],
|
|
153
|
+
link: ["rarr", "!bg-transparent", "uppercase", "!tracking-wider"],
|
|
154
|
+
navtitle: ["block", "uppercase", "tracking-wider"],
|
|
155
|
+
primary: [],
|
|
156
|
+
subtitle: ["text-lg"]
|
|
157
|
+
}
|
|
158
|
+
}
|
|
98
159
|
});
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
160
|
+
var Link = ({
|
|
161
|
+
arrow,
|
|
162
|
+
children,
|
|
163
|
+
className,
|
|
164
|
+
routeKey,
|
|
165
|
+
to,
|
|
166
|
+
variant,
|
|
167
|
+
viewTransition,
|
|
168
|
+
...props
|
|
169
|
+
}) => {
|
|
170
|
+
return /* @__PURE__ */ jsx(
|
|
171
|
+
LinkBase,
|
|
172
|
+
{
|
|
173
|
+
...props,
|
|
174
|
+
className: link({
|
|
175
|
+
arrow,
|
|
176
|
+
className,
|
|
177
|
+
variant
|
|
178
|
+
}),
|
|
179
|
+
routeKey,
|
|
180
|
+
to,
|
|
181
|
+
viewTransition,
|
|
182
|
+
children: lowerCaseSzett(children)
|
|
109
183
|
}
|
|
110
|
-
|
|
184
|
+
);
|
|
185
|
+
};
|
|
186
|
+
var MarkdownLink = ({ children, href, ...props }) => {
|
|
187
|
+
if (href) {
|
|
188
|
+
return /* @__PURE__ */ jsx(
|
|
189
|
+
Link,
|
|
190
|
+
{
|
|
191
|
+
to: href,
|
|
192
|
+
...props,
|
|
193
|
+
children
|
|
194
|
+
}
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
return null;
|
|
111
198
|
};
|
|
199
|
+
|
|
200
|
+
export { Link, LinkBase, MarkdownLink, PathResolverProvider, usePathResolver };
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as cva from 'cva';
|
|
3
|
+
import { VariantProps } from 'cva';
|
|
4
|
+
import { ComponentProps } from 'react';
|
|
5
|
+
|
|
3
6
|
declare const li: (props?: ({
|
|
4
7
|
variant?: "primary" | undefined;
|
|
5
8
|
} & ({
|
|
6
|
-
class?:
|
|
9
|
+
class?: cva.ClassValue;
|
|
7
10
|
className?: never;
|
|
8
11
|
} | {
|
|
9
12
|
class?: never;
|
|
10
|
-
className?:
|
|
13
|
+
className?: cva.ClassValue;
|
|
11
14
|
})) | undefined) => string;
|
|
12
|
-
|
|
15
|
+
interface ListItemProps extends ComponentProps<'li'>, VariantProps<typeof li> {
|
|
13
16
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
declare const ListItem: (props: ListItemProps) => react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { ListItem, type ListItemProps };
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineConfig } from 'cva';
|
|
2
|
+
import { twMerge } from 'fluid-tailwindcss/tailwind-merge';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/utils/cn.ts
|
|
6
|
+
var { cva, compose } = defineConfig({
|
|
7
|
+
hooks: {
|
|
8
|
+
onComplete: (className) => {
|
|
9
|
+
return twMerge(className);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
var li = cva({
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "primary"
|
|
16
|
+
},
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
primary: []
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
var ListItem = (props) => {
|
|
24
|
+
const { children, className, variant } = props;
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
26
|
+
"li",
|
|
27
|
+
{
|
|
28
|
+
className: li({
|
|
29
|
+
className,
|
|
30
|
+
variant
|
|
31
|
+
}),
|
|
32
|
+
children
|
|
33
|
+
}
|
|
34
|
+
);
|
|
19
35
|
};
|
|
36
|
+
|
|
37
|
+
export { ListItem };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
2
3
|
interface MapTilerMarker {
|
|
3
4
|
lat: number;
|
|
4
5
|
lng: number;
|
|
@@ -21,6 +22,6 @@ interface MapTilerMapProps {
|
|
|
21
22
|
apiKey: string;
|
|
22
23
|
showPopupsImmediately?: boolean;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
declare const MapTilerMap: ({ markers, center, zoom, mapStyle, apiKey, showPopupsImmediately, }: MapTilerMapProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
export { MapTilerMap };
|
|
@@ -1,116 +1,129 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useEffect, useRef } from 'react';
|
|
1
|
+
import { config, Map, Marker, Popup } from '@maptiler/sdk';
|
|
2
|
+
import { useRef, useEffect } from 'react';
|
|
4
3
|
import '@maptiler/sdk/dist/maptiler-sdk.css';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/components/maptiler-map.tsx
|
|
7
|
+
var MapTilerMap = ({
|
|
8
|
+
markers,
|
|
9
|
+
center,
|
|
10
|
+
zoom = 12,
|
|
11
|
+
mapStyle = "streets",
|
|
12
|
+
apiKey,
|
|
13
|
+
showPopupsImmediately = false
|
|
14
|
+
}) => {
|
|
15
|
+
const mapContainerRef = useRef(null);
|
|
16
|
+
const mapRef = useRef(null);
|
|
17
|
+
const markersRef = useRef([]);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (!mapContainerRef.current || typeof window === "undefined") return;
|
|
20
|
+
config.apiKey = apiKey;
|
|
21
|
+
let calculatedCenter;
|
|
22
|
+
if (center) {
|
|
23
|
+
calculatedCenter = [center.lng, center.lat];
|
|
24
|
+
} else if (markers.length > 0) {
|
|
25
|
+
const firstMarker = markers[0];
|
|
26
|
+
if (firstMarker) {
|
|
27
|
+
calculatedCenter = [firstMarker.lng, firstMarker.lat];
|
|
28
|
+
} else {
|
|
29
|
+
calculatedCenter = [13.404954, 52.520008];
|
|
30
|
+
}
|
|
31
|
+
} else {
|
|
32
|
+
calculatedCenter = [13.404954, 52.520008];
|
|
33
|
+
}
|
|
34
|
+
const map = new Map({
|
|
35
|
+
center: calculatedCenter,
|
|
36
|
+
container: mapContainerRef.current,
|
|
37
|
+
style: `https://api.maptiler.com/maps/${mapStyle}/style.json?key=${apiKey}`,
|
|
38
|
+
zoom
|
|
39
|
+
});
|
|
40
|
+
map.on("styleimagemissing", (e) => {
|
|
41
|
+
const id = e.id;
|
|
42
|
+
console.warn(`Missing sprite image: ${id}`);
|
|
43
|
+
});
|
|
44
|
+
mapRef.current = map;
|
|
45
|
+
const newMarkers = [];
|
|
46
|
+
markers.forEach((marker) => {
|
|
47
|
+
const markerInstance = new Marker().setLngLat([marker.lng, marker.lat]).addTo(map);
|
|
48
|
+
let popupContent = "";
|
|
49
|
+
if (marker.htmlContent) {
|
|
50
|
+
popupContent = marker.htmlContent;
|
|
51
|
+
} else if (marker.content) {
|
|
52
|
+
popupContent = marker.content;
|
|
53
|
+
}
|
|
54
|
+
if (popupContent) {
|
|
55
|
+
const popup = new Popup({
|
|
56
|
+
closeButton: false,
|
|
57
|
+
offset: marker.offset ? [marker.offset.x, marker.offset.y] : [0, 0]
|
|
58
|
+
}).setHTML(popupContent);
|
|
59
|
+
markerInstance.setPopup(popup);
|
|
60
|
+
if (showPopupsImmediately) {
|
|
61
|
+
markerInstance.togglePopup();
|
|
16
62
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
63
|
+
}
|
|
64
|
+
newMarkers.push(markerInstance);
|
|
65
|
+
});
|
|
66
|
+
markersRef.current = newMarkers;
|
|
67
|
+
return () => {
|
|
68
|
+
if (mapRef.current) {
|
|
69
|
+
mapRef.current.remove();
|
|
70
|
+
mapRef.current = null;
|
|
71
|
+
}
|
|
72
|
+
markersRef.current = [];
|
|
73
|
+
};
|
|
74
|
+
}, [markers, apiKey, mapStyle, zoom, center, showPopupsImmediately]);
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
const map = mapRef.current;
|
|
77
|
+
if (!map) return;
|
|
78
|
+
markersRef.current.forEach((marker) => {
|
|
79
|
+
marker.remove();
|
|
80
|
+
});
|
|
81
|
+
markersRef.current = [];
|
|
82
|
+
const newMarkers = [];
|
|
83
|
+
markers.forEach((marker) => {
|
|
84
|
+
const markerInstance = new Marker().setLngLat([marker.lng, marker.lat]).addTo(map);
|
|
85
|
+
let popupContent = "";
|
|
86
|
+
if (marker.htmlContent) {
|
|
87
|
+
popupContent = marker.htmlContent;
|
|
88
|
+
} else if (marker.content) {
|
|
89
|
+
popupContent = marker.content;
|
|
90
|
+
}
|
|
91
|
+
if (popupContent) {
|
|
92
|
+
const popup = new Popup({
|
|
93
|
+
closeButton: false,
|
|
94
|
+
offset: marker.offset ? [marker.offset.x, marker.offset.y] : [0, 0]
|
|
95
|
+
}).setHTML(popupContent);
|
|
96
|
+
markerInstance.setPopup(popup);
|
|
97
|
+
if (showPopupsImmediately) {
|
|
98
|
+
markerInstance.togglePopup();
|
|
25
99
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
offset: marker.offset ? [marker.offset.x, marker.offset.y] : [0, 0],
|
|
54
|
-
}).setHTML(popupContent);
|
|
55
|
-
markerInstance.setPopup(popup);
|
|
56
|
-
if (showPopupsImmediately) {
|
|
57
|
-
markerInstance.togglePopup();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
newMarkers.push(markerInstance);
|
|
61
|
-
});
|
|
62
|
-
markersRef.current = newMarkers;
|
|
63
|
-
return () => {
|
|
64
|
-
if (mapRef.current) {
|
|
65
|
-
mapRef.current.remove();
|
|
66
|
-
mapRef.current = null;
|
|
67
|
-
}
|
|
68
|
-
markersRef.current = [];
|
|
69
|
-
};
|
|
70
|
-
}, [markers, apiKey, mapStyle, zoom, center, showPopupsImmediately]);
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
const map = mapRef.current;
|
|
73
|
-
if (!map)
|
|
74
|
-
return;
|
|
75
|
-
markersRef.current.forEach((marker) => {
|
|
76
|
-
marker.remove();
|
|
77
|
-
});
|
|
78
|
-
markersRef.current = [];
|
|
79
|
-
const newMarkers = [];
|
|
80
|
-
markers.forEach((marker) => {
|
|
81
|
-
const markerInstance = new Marker().setLngLat([marker.lng, marker.lat]).addTo(map);
|
|
82
|
-
let popupContent = '';
|
|
83
|
-
if (marker.htmlContent) {
|
|
84
|
-
popupContent = marker.htmlContent;
|
|
85
|
-
}
|
|
86
|
-
else if (marker.content) {
|
|
87
|
-
popupContent = marker.content;
|
|
88
|
-
}
|
|
89
|
-
if (popupContent) {
|
|
90
|
-
const popup = new Popup({
|
|
91
|
-
closeButton: false,
|
|
92
|
-
offset: marker.offset ? [marker.offset.x, marker.offset.y] : [0, 0],
|
|
93
|
-
}).setHTML(popupContent);
|
|
94
|
-
markerInstance.setPopup(popup);
|
|
95
|
-
if (showPopupsImmediately) {
|
|
96
|
-
markerInstance.togglePopup();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
newMarkers.push(markerInstance);
|
|
100
|
-
});
|
|
101
|
-
markersRef.current = newMarkers;
|
|
102
|
-
if (markers.length > 1) {
|
|
103
|
-
const lngs = markers.map((m) => m.lng);
|
|
104
|
-
const lats = markers.map((m) => m.lat);
|
|
105
|
-
const minLng = Math.min(...lngs);
|
|
106
|
-
const maxLng = Math.max(...lngs);
|
|
107
|
-
const minLat = Math.min(...lats);
|
|
108
|
-
const maxLat = Math.max(...lats);
|
|
109
|
-
map.fitBounds([
|
|
110
|
-
[minLng, minLat],
|
|
111
|
-
[maxLng, maxLat],
|
|
112
|
-
], { padding: 20 });
|
|
113
|
-
}
|
|
114
|
-
}, [markers, showPopupsImmediately]);
|
|
115
|
-
return (_jsx("div", { className: "h-full w-full", ref: mapContainerRef }));
|
|
100
|
+
}
|
|
101
|
+
newMarkers.push(markerInstance);
|
|
102
|
+
});
|
|
103
|
+
markersRef.current = newMarkers;
|
|
104
|
+
if (markers.length > 1) {
|
|
105
|
+
const lngs = markers.map((m) => m.lng);
|
|
106
|
+
const lats = markers.map((m) => m.lat);
|
|
107
|
+
const minLng = Math.min(...lngs);
|
|
108
|
+
const maxLng = Math.max(...lngs);
|
|
109
|
+
const minLat = Math.min(...lats);
|
|
110
|
+
const maxLat = Math.max(...lats);
|
|
111
|
+
map.fitBounds(
|
|
112
|
+
[
|
|
113
|
+
[minLng, minLat],
|
|
114
|
+
[maxLng, maxLat]
|
|
115
|
+
],
|
|
116
|
+
{ padding: 20 }
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}, [markers, showPopupsImmediately]);
|
|
120
|
+
return /* @__PURE__ */ jsx(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
className: "h-full w-full",
|
|
124
|
+
ref: mapContainerRef
|
|
125
|
+
}
|
|
126
|
+
);
|
|
116
127
|
};
|
|
128
|
+
|
|
129
|
+
export { MapTilerMap };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { MarkdownToJSX } from 'markdown-to-jsx';
|
|
2
|
+
import react__default from 'react';
|
|
3
|
+
|
|
4
|
+
declare function transformLink(to: string | Partial<{
|
|
4
5
|
pathname?: string;
|
|
5
6
|
search?: string;
|
|
6
7
|
hash?: string;
|
|
7
8
|
}> | undefined): string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type MDXComponent<P = object> = react__default.ComponentType<P>;
|
|
10
|
+
type MarkdownOverrides = MarkdownToJSX.Options['overrides'];
|
|
11
|
+
type MarkdownContainerProps = react__default.PropsWithChildren<{
|
|
11
12
|
characters?: number;
|
|
12
13
|
className?: string;
|
|
13
14
|
locale: string;
|
|
@@ -16,5 +17,6 @@ export type MarkdownContainerProps = React.PropsWithChildren<{
|
|
|
16
17
|
mdxComponents?: Record<string, MDXComponent>;
|
|
17
18
|
markdownOverrides?: MarkdownOverrides;
|
|
18
19
|
}>;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
declare const MarkdownContainer: react__default.FC<MarkdownContainerProps>;
|
|
21
|
+
|
|
22
|
+
export { type MDXComponent, MarkdownContainer, type MarkdownContainerProps, type MarkdownOverrides, transformLink };
|