@regardio/react 0.3.3 → 0.4.2
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 +14 -11
- 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 +18 -15
- 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 +5 -4
- 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/utils/text.js
CHANGED
|
@@ -1,102 +1,127 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import React, { isValidElement, cloneElement } from 'react';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
// src/utils/text.tsx
|
|
5
|
+
var lowerCaseSzett = (text, _returnType) => {
|
|
6
|
+
const processString = (str) => {
|
|
7
|
+
const parts = str.split(/(ß)/g);
|
|
8
|
+
return parts.map(
|
|
9
|
+
(part, index) => part === "\xDF" ? /* @__PURE__ */ jsx(
|
|
10
|
+
"span",
|
|
11
|
+
{
|
|
12
|
+
className: "lowercase",
|
|
13
|
+
children: part
|
|
14
|
+
},
|
|
15
|
+
index.toString()
|
|
16
|
+
) : part
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
if (typeof text === "string") {
|
|
20
|
+
return processString(text);
|
|
21
|
+
}
|
|
22
|
+
if (isValidElement(text)) {
|
|
23
|
+
const element = text;
|
|
24
|
+
const { children, ...props } = element.props;
|
|
25
|
+
return cloneElement(element, {
|
|
26
|
+
...props,
|
|
27
|
+
children: lowerCaseSzett(children)
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (Array.isArray(text)) {
|
|
31
|
+
return text.map((child, index) => /* @__PURE__ */ jsx(React.Fragment, { children: lowerCaseSzett(child) }, index.toString()));
|
|
32
|
+
}
|
|
33
|
+
return text;
|
|
23
34
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
35
|
+
function toBoolean(value) {
|
|
36
|
+
if (typeof value === "boolean") {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return value === "true" || value === "1";
|
|
29
40
|
}
|
|
30
41
|
function replaceShyInString(input) {
|
|
31
|
-
|
|
42
|
+
return input.replace(/­/g, "\xAD");
|
|
32
43
|
}
|
|
33
44
|
function replaceShyInReactNode(node) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
if (typeof node === "string") {
|
|
46
|
+
return node.replace(/\u00AD/g, "");
|
|
47
|
+
}
|
|
48
|
+
if (isValidElement(node)) {
|
|
49
|
+
const element = node;
|
|
50
|
+
const { children, ...props } = element.props;
|
|
51
|
+
return cloneElement(element, {
|
|
52
|
+
...props,
|
|
53
|
+
children: replaceShyInReactNode(children)
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (Array.isArray(node)) {
|
|
57
|
+
return node.map((child, index) => /* @__PURE__ */ jsx(React.Fragment, { children: replaceShyInReactNode(child) }, index.toString()));
|
|
58
|
+
}
|
|
59
|
+
return node;
|
|
49
60
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
61
|
+
function shy(input) {
|
|
62
|
+
if (input === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
if (typeof input === "string") {
|
|
66
|
+
return replaceShyInString(input);
|
|
67
|
+
}
|
|
68
|
+
return replaceShyInReactNode(input);
|
|
58
69
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
var quoteStyles = {
|
|
71
|
+
cs: { close: "\u201D", closeSingle: "\u2019", open: "\u201E", openSingle: "\u201A" },
|
|
72
|
+
// Danish, Norwegian - » « › ‹
|
|
73
|
+
da: { close: "\xAB", closeSingle: "\u203A", open: "\xBB", openSingle: "\u2039" },
|
|
74
|
+
// German (Germany, Austria) - „ " ‚ '
|
|
75
|
+
de: { close: "\u201D", closeSingle: "\u2019", open: "\u201E", openSingle: "\u201A" },
|
|
76
|
+
// German (Switzerland) - « » ‹ ›
|
|
77
|
+
"de-ch": { close: "\xBB", closeSingle: "\u203A", open: "\xAB", openSingle: "\u2039" },
|
|
78
|
+
// English (US, UK, etc.) - " " ' '
|
|
79
|
+
en: { close: "\u201D", closeSingle: "\u2019", open: "\u201C", openSingle: "\u2018" },
|
|
80
|
+
// Spanish, Italian, Portuguese - « » " "
|
|
81
|
+
es: { close: "\xBB", closeSingle: "\u201D", open: "\xAB", openSingle: "\u201C" },
|
|
82
|
+
fi: { close: "\u201D", closeSingle: "\u2019", open: "\u201D", openSingle: "\u2019" },
|
|
83
|
+
// French - « » ‹ › (with spaces)
|
|
84
|
+
fr: { close: " \xBB", closeSingle: " \u203A", open: "\xAB ", openSingle: "\u2039 " },
|
|
85
|
+
hu: { close: "\u201D", closeSingle: "\u2019", open: "\u201E", openSingle: "\u201A" },
|
|
86
|
+
it: { close: "\xBB", closeSingle: "\u201D", open: "\xAB", openSingle: "\u201C" },
|
|
87
|
+
// Japanese - 「 」 『 』
|
|
88
|
+
ja: { close: "\u300D", closeSingle: "\u300F", open: "\u300C", openSingle: "\u300E" },
|
|
89
|
+
// Dutch - ' ' ' '
|
|
90
|
+
nl: { close: "\u2019", closeSingle: "\u2019", open: "\u2018", openSingle: "\u2018" },
|
|
91
|
+
no: { close: "\xAB", closeSingle: "\u203A", open: "\xBB", openSingle: "\u2039" },
|
|
92
|
+
// Polish, Czech, Hungarian - „ " ‚ '
|
|
93
|
+
pl: { close: "\u201D", closeSingle: "\u2019", open: "\u201E", openSingle: "\u201A" },
|
|
94
|
+
pt: { close: "\xBB", closeSingle: "\u201D", open: "\xAB", openSingle: "\u201C" },
|
|
95
|
+
// Russian - « » ‚ '
|
|
96
|
+
ru: { close: "\xBB", closeSingle: "\u2019", open: "\xAB", openSingle: "\u201A" },
|
|
97
|
+
// Swedish, Finnish - " " ' '
|
|
98
|
+
sv: { close: "\u201D", closeSingle: "\u2019", open: "\u201D", openSingle: "\u2019" },
|
|
99
|
+
// Chinese - 「 」 『 』
|
|
100
|
+
zh: { close: "\u300D", closeSingle: "\u300F", open: "\u300C", openSingle: "\u300E" }
|
|
78
101
|
};
|
|
79
102
|
function getQuoteStyle(locale) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
103
|
+
const normalized = locale.toLowerCase();
|
|
104
|
+
const exactMatch = quoteStyles[normalized];
|
|
105
|
+
if (exactMatch) {
|
|
106
|
+
return exactMatch;
|
|
107
|
+
}
|
|
108
|
+
const baseLanguage = normalized.split("-")[0];
|
|
109
|
+
if (baseLanguage) {
|
|
110
|
+
const baseMatch = quoteStyles[baseLanguage];
|
|
111
|
+
if (baseMatch) {
|
|
112
|
+
return baseMatch;
|
|
91
113
|
}
|
|
92
|
-
|
|
114
|
+
}
|
|
115
|
+
return quoteStyles.en;
|
|
93
116
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
117
|
+
function typographicQuotes(text, locale) {
|
|
118
|
+
const style = getQuoteStyle(locale);
|
|
119
|
+
let result = text.replace(/"([^"]*)"/g, `${style.open}$1${style.close}`);
|
|
120
|
+
result = result.replace(/'([^']*)'/g, `${style.openSingle}$1${style.closeSingle}`);
|
|
121
|
+
return result;
|
|
99
122
|
}
|
|
100
|
-
|
|
101
|
-
|
|
123
|
+
function replaceSpecialChars(text, locale) {
|
|
124
|
+
return shy(typographicQuotes(text, locale));
|
|
102
125
|
}
|
|
126
|
+
|
|
127
|
+
export { lowerCaseSzett, replaceSpecialChars, shy, toBoolean, typographicQuotes };
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@maptiler/leaflet-maptilersdk": "4.1.1",
|
|
10
10
|
"@maptiler/sdk": "3.9.0",
|
|
11
11
|
"@mdx-js/react": "3.1.1",
|
|
12
|
-
"@regardio/js": "0.
|
|
12
|
+
"@regardio/js": "0.4.0",
|
|
13
13
|
"@supabase/supabase-js": "2.89.0",
|
|
14
14
|
"cmdk": "1.1.1",
|
|
15
15
|
"cva": "beta",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"playwright": "^1.57.0",
|
|
55
55
|
"storybook": "10.1.11",
|
|
56
56
|
"tailwindcss": "4.1.18",
|
|
57
|
+
"tsup": "8.5.0",
|
|
57
58
|
"typescript": "5.9.3",
|
|
58
59
|
"vite": "7.3.0",
|
|
59
60
|
"vitest": "4.0.16"
|
|
@@ -91,9 +92,9 @@
|
|
|
91
92
|
"url": "https://github.com/regardio/react.git"
|
|
92
93
|
},
|
|
93
94
|
"scripts": {
|
|
94
|
-
"build": "
|
|
95
|
+
"build": "tsup",
|
|
95
96
|
"clean": "exec-clean .turbo dist",
|
|
96
|
-
"dev": "
|
|
97
|
+
"dev": "tsup --watch",
|
|
97
98
|
"fix": "exec-p fix:*",
|
|
98
99
|
"fix:biome": "lint-biome check --write --unsafe .",
|
|
99
100
|
"fix:md": "lint-md --fix",
|
|
@@ -113,5 +114,5 @@
|
|
|
113
114
|
},
|
|
114
115
|
"sideEffects": ["./src/styles/tailwind.css"],
|
|
115
116
|
"type": "module",
|
|
116
|
-
"version": "0.
|
|
117
|
+
"version": "0.4.2"
|
|
117
118
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"background-slideshow.d.ts","sourceRoot":"","sources":["../../src/components/background-slideshow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,OAAO,CAAC;CACb,CAAC;AAEF,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,SAAc,EACd,YAAiB,EACjB,MAAM,EACN,gBAAqB,EACrB,MAAW,EACX,SAAgB,EAChB,iBAAwB,EACxB,kBAAyB,EACzB,MAAM,GACP,EAAE,wBAAwB,GAAG,YAAY,CAuIzC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blurry-gradient.d.ts","sourceRoot":"","sources":["../../src/components/blurry-gradient.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,mBAAoB,SAAQ,QAAQ,CAAC,aAAa,CAAC;IAClE,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IAKrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,GAAI,OAAO,mBAAmB,4CAmFxD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../src/components/box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,GAAG;;;;;;;;0BAgBP,CAAC;AAEH,MAAM,WAAW,QAAS,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,GAAG,CAAC;IAC/E,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB;AAED,eAAO,MAAM,GAAG,GAAI,2DAMjB,QAAQ,4CAYV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/components/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,OAAO,EAGL,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAE5C,UAAU,oBAAoB;IAC5B,GAAG,EAAE,WAAW,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB;AAID,iBAAS,WAAW,yBAMnB;AAED,UAAU,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC5D,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAED,QAAA,MAAM,QAAQ,0GAoFb,CAAC;AAGF,QAAA,MAAM,eAAe,2HAUpB,CAAC;AAGF,UAAU,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,YAAY,8GAajB,CAAC;AAGF,QAAA,MAAM,gBAAgB,iIAerB,CAAC;AAGF,QAAA,MAAM,YAAY,iIAejB,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"countdown.d.ts","sourceRoot":"","sources":["../../src/components/countdown.tsx"],"names":[],"mappings":"AAGA,wBAAgB,SAAS,4CA8ExB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definition-list.d.ts","sourceRoot":"","sources":["../../src/components/definition-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,EAAE;;;;;;;;0BAWN,CAAC;AAEH,QAAA,MAAM,EAAE;;;;;;;;0BAUN,CAAC;AAEH,QAAA,MAAM,EAAE;;;;;;;;0BAUN,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC;CAAG;AAE7F,MAAM,WAAW,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,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/components/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGzD,QAAA,MAAM,OAAO;;;;;;;;;0BAgBX,CAAC;AAEH,MAAM,WAAW,YACf,SAAQ,cAAc,CAAC,kBAAkB,CAAC,EACxC,YAAY,CAAC,OAAO,OAAO,CAAC;IAC9B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;AAEjD,eAAO,MAAM,OAAO;4DAOjB,YAAY;;CAkBd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../src/components/highlight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,EAAE;;;;;;;;0BASN,CAAC;AAEH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC;CAAG;AAE1F,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAoC9C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/components/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC/D,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAahD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../src/components/if.tsx"],"names":[],"mappings":"AAEA,KAAK,SAAS,CAAC,KAAK,GAAG,OAAO,IAAI,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,CAAC,GAAG,EAAE,CAAC;AAE5E,wBAAgB,EAAE,CAAC,KAAK,GAAG,OAAO,EAAE,EAClC,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,CAAC,eAAe,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC,kDAgBD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iframe.d.ts","sourceRoot":"","sources":["../../src/components/iframe.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CASxC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/components/item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAGr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OAAO,IAAI,CAAC;IACpF,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,IAAI,GAAI,iFASlB,SAAS,4CAgBX,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC;IAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAapD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.test.d.ts","sourceRoot":"","sources":["../../src/components/link.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { fireEvent, render, screen } from '@testing-library/react';
|
|
3
|
-
import { MemoryRouter } from 'react-router';
|
|
4
|
-
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
|
|
5
|
-
import { Link, LinkBase, MarkdownLink, PathResolverProvider, usePathResolver } from './link';
|
|
6
|
-
const renderWithRouter = (ui, { route = '/' } = {}) => {
|
|
7
|
-
return render(_jsx(MemoryRouter, { initialEntries: [route], children: ui }));
|
|
8
|
-
};
|
|
9
|
-
describe('LinkBase', () => {
|
|
10
|
-
describe('path resolution', () => {
|
|
11
|
-
test('renders with string "to" prop', () => {
|
|
12
|
-
renderWithRouter(_jsx(LinkBase, { to: "/about", children: "About" }));
|
|
13
|
-
const link = screen.getByRole('link', { name: 'About' });
|
|
14
|
-
expect(link).toHaveAttribute('href', '/about');
|
|
15
|
-
});
|
|
16
|
-
test('renders with object "to" prop containing pathname', () => {
|
|
17
|
-
renderWithRouter(_jsx(LinkBase, { to: { pathname: '/contact' }, children: "Contact" }));
|
|
18
|
-
const link = screen.getByRole('link', { name: 'Contact' });
|
|
19
|
-
expect(link).toHaveAttribute('href', '/contact');
|
|
20
|
-
});
|
|
21
|
-
test('renders with object "to" prop containing pathname, search, and hash', () => {
|
|
22
|
-
renderWithRouter(_jsx(LinkBase, { to: { hash: '#section', pathname: '/page', search: '?foo=bar' }, children: "Full Path" }));
|
|
23
|
-
const link = screen.getByRole('link', { name: 'Full Path' });
|
|
24
|
-
expect(link).toHaveAttribute('href', '/page?foo=bar#section');
|
|
25
|
-
});
|
|
26
|
-
test('uses pathResolver when routeKey is provided', () => {
|
|
27
|
-
const mockResolver = vi.fn().mockReturnValue('/resolved-path');
|
|
28
|
-
renderWithRouter(_jsx(PathResolverProvider, { value: mockResolver, children: _jsx(LinkBase, { routeKey: "home", children: "Home" }) }));
|
|
29
|
-
expect(mockResolver).toHaveBeenCalledWith('home');
|
|
30
|
-
const link = screen.getByRole('link', { name: 'Home' });
|
|
31
|
-
expect(link).toHaveAttribute('href', '/resolved-path');
|
|
32
|
-
});
|
|
33
|
-
test('falls back to "to" prop when no pathResolver is available', () => {
|
|
34
|
-
renderWithRouter(_jsx(LinkBase, { routeKey: "home", to: "/fallback", children: "Home" }));
|
|
35
|
-
const link = screen.getByRole('link', { name: 'Home' });
|
|
36
|
-
expect(link).toHaveAttribute('href', '/fallback');
|
|
37
|
-
});
|
|
38
|
-
test('renders children only when path is empty', () => {
|
|
39
|
-
renderWithRouter(_jsx(LinkBase, { children: "No Link" }));
|
|
40
|
-
expect(screen.queryByRole('link')).toBeNull();
|
|
41
|
-
expect(screen.getByText('No Link')).toBeInTheDocument();
|
|
42
|
-
});
|
|
43
|
-
test('renders nothing for function children when path is empty', () => {
|
|
44
|
-
const { container } = renderWithRouter(_jsx(LinkBase, { children: () => _jsx("span", { children: "Function Child" }) }));
|
|
45
|
-
expect(screen.queryByRole('link')).toBeNull();
|
|
46
|
-
expect(container.textContent).toBe('');
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
describe('external links', () => {
|
|
50
|
-
let windowOpenSpy;
|
|
51
|
-
beforeEach(() => {
|
|
52
|
-
windowOpenSpy = vi.spyOn(window, 'open').mockImplementation(() => null);
|
|
53
|
-
});
|
|
54
|
-
afterEach(() => {
|
|
55
|
-
windowOpenSpy.mockRestore();
|
|
56
|
-
});
|
|
57
|
-
test('renders tel: links as anchor elements', () => {
|
|
58
|
-
renderWithRouter(_jsx(LinkBase, { to: "tel:+1234567890", children: "Call Us" }));
|
|
59
|
-
const link = screen.getByRole('link', { name: 'Call Us' });
|
|
60
|
-
expect(link.tagName).toBe('A');
|
|
61
|
-
expect(link).toHaveAttribute('href', 'tel:+1234567890');
|
|
62
|
-
});
|
|
63
|
-
test('renders mailto: links as anchor elements', () => {
|
|
64
|
-
renderWithRouter(_jsx(LinkBase, { to: "mailto:test@example.com", children: "Email Us" }));
|
|
65
|
-
const link = screen.getByRole('link', { name: 'Email Us' });
|
|
66
|
-
expect(link.tagName).toBe('A');
|
|
67
|
-
expect(link).toHaveAttribute('href', 'mailto:test@example.com');
|
|
68
|
-
});
|
|
69
|
-
test('opens http links in new tab on click', () => {
|
|
70
|
-
renderWithRouter(_jsx(LinkBase, { to: "https://example.com", children: "External" }));
|
|
71
|
-
const link = screen.getByRole('link', { name: 'External' });
|
|
72
|
-
fireEvent.click(link);
|
|
73
|
-
expect(windowOpenSpy).toHaveBeenCalledWith('https://example.com', '_blank', 'noopener,noreferrer');
|
|
74
|
-
});
|
|
75
|
-
test('handles hash links with smooth scroll', () => {
|
|
76
|
-
const mockElement = document.createElement('div');
|
|
77
|
-
mockElement.id = 'section';
|
|
78
|
-
mockElement.scrollIntoView = vi.fn();
|
|
79
|
-
document.body.appendChild(mockElement);
|
|
80
|
-
renderWithRouter(_jsx(LinkBase, { to: "#section", children: "Go to Section" }));
|
|
81
|
-
const link = screen.getByRole('link', { name: 'Go to Section' });
|
|
82
|
-
fireEvent.click(link);
|
|
83
|
-
expect(mockElement.scrollIntoView).toHaveBeenCalledWith({ behavior: 'smooth' });
|
|
84
|
-
document.body.removeChild(mockElement);
|
|
85
|
-
});
|
|
86
|
-
test('does not scroll if hash element does not exist', () => {
|
|
87
|
-
renderWithRouter(_jsx(LinkBase, { to: "#nonexistent", children: "Missing Section" }));
|
|
88
|
-
const link = screen.getByRole('link', { name: 'Missing Section' });
|
|
89
|
-
expect(() => fireEvent.click(link)).not.toThrow();
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
describe('onClick handling', () => {
|
|
93
|
-
test('calls custom onClick handler', () => {
|
|
94
|
-
const handleClick = vi.fn();
|
|
95
|
-
renderWithRouter(_jsx(LinkBase, { onClick: handleClick, to: "/page", children: "Click Me" }));
|
|
96
|
-
const link = screen.getByRole('link', { name: 'Click Me' });
|
|
97
|
-
fireEvent.click(link);
|
|
98
|
-
expect(handleClick).toHaveBeenCalled();
|
|
99
|
-
});
|
|
100
|
-
test('respects preventDefault from custom onClick', () => {
|
|
101
|
-
const windowOpenSpy = vi.spyOn(window, 'open').mockImplementation(() => null);
|
|
102
|
-
const handleClick = vi.fn((e) => e.preventDefault());
|
|
103
|
-
renderWithRouter(_jsx(LinkBase, { onClick: handleClick, to: "https://example.com", children: "External" }));
|
|
104
|
-
const link = screen.getByRole('link', { name: 'External' });
|
|
105
|
-
fireEvent.click(link);
|
|
106
|
-
expect(handleClick).toHaveBeenCalled();
|
|
107
|
-
expect(windowOpenSpy).not.toHaveBeenCalled();
|
|
108
|
-
windowOpenSpy.mockRestore();
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
describe('className and style handling', () => {
|
|
112
|
-
test('applies static className to external links', () => {
|
|
113
|
-
renderWithRouter(_jsx(LinkBase, { className: "custom-class", to: "https://example.com", children: "External" }));
|
|
114
|
-
const link = screen.getByRole('link', { name: 'External' });
|
|
115
|
-
expect(link).toHaveClass('custom-class');
|
|
116
|
-
});
|
|
117
|
-
test('resolves function className for external links', () => {
|
|
118
|
-
renderWithRouter(_jsx(LinkBase, { className: ({ isActive }) => (isActive ? 'active' : 'inactive'), to: "https://example.com", children: "External" }));
|
|
119
|
-
const link = screen.getByRole('link', { name: 'External' });
|
|
120
|
-
expect(link).toHaveClass('inactive');
|
|
121
|
-
});
|
|
122
|
-
test('resolves function style for external links', () => {
|
|
123
|
-
renderWithRouter(_jsx(LinkBase, { style: ({ isActive }) => ({ color: isActive ? 'red' : 'blue' }), to: "https://example.com", children: "External" }));
|
|
124
|
-
const link = screen.getByRole('link', { name: 'External' });
|
|
125
|
-
expect(link).toHaveStyle({ color: 'rgb(0, 0, 255)' });
|
|
126
|
-
});
|
|
127
|
-
test('resolves function children for external links', () => {
|
|
128
|
-
renderWithRouter(_jsx(LinkBase, { to: "https://example.com", children: ({ isActive }) => (isActive ? 'Active' : 'Inactive') }));
|
|
129
|
-
expect(screen.getByText('Inactive')).toBeInTheDocument();
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
describe('viewTransition prop', () => {
|
|
133
|
-
test('defaults to true for internal links', () => {
|
|
134
|
-
renderWithRouter(_jsx(LinkBase, { to: "/page", children: "Page" }));
|
|
135
|
-
const link = screen.getByRole('link', { name: 'Page' });
|
|
136
|
-
expect(link).toBeInTheDocument();
|
|
137
|
-
});
|
|
138
|
-
test('can be disabled', () => {
|
|
139
|
-
renderWithRouter(_jsx(LinkBase, { to: "/page", viewTransition: false, children: "Page" }));
|
|
140
|
-
const link = screen.getByRole('link', { name: 'Page' });
|
|
141
|
-
expect(link).toBeInTheDocument();
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
describe('Link', () => {
|
|
146
|
-
test('applies variant classes', () => {
|
|
147
|
-
renderWithRouter(_jsx(Link, { to: "/page", variant: "button", children: "Button Link" }));
|
|
148
|
-
const link = screen.getByRole('link', { name: 'Button Link' });
|
|
149
|
-
expect(link).toHaveClass('button');
|
|
150
|
-
});
|
|
151
|
-
test('applies arrow classes', () => {
|
|
152
|
-
renderWithRouter(_jsx(Link, { arrow: "rarr", to: "/page", children: "Arrow Link" }));
|
|
153
|
-
const link = screen.getByRole('link', { name: 'Arrow Link' });
|
|
154
|
-
expect(link).toHaveClass('rarr');
|
|
155
|
-
});
|
|
156
|
-
test('merges custom className with variant classes', () => {
|
|
157
|
-
renderWithRouter(_jsx(Link, { className: "custom", to: "/page", variant: "code", children: "Code Link" }));
|
|
158
|
-
const link = screen.getByRole('link', { name: 'Code Link' });
|
|
159
|
-
expect(link).toHaveClass('font-monospace');
|
|
160
|
-
expect(link).toHaveClass('custom');
|
|
161
|
-
});
|
|
162
|
-
test('passes through routeKey to LinkBase', () => {
|
|
163
|
-
const mockResolver = vi.fn().mockReturnValue('/resolved');
|
|
164
|
-
renderWithRouter(_jsx(PathResolverProvider, { value: mockResolver, children: _jsx(Link, { routeKey: "test", children: "Test" }) }));
|
|
165
|
-
expect(mockResolver).toHaveBeenCalledWith('test');
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
describe('MarkdownLink', () => {
|
|
169
|
-
test('renders Link when href is provided', () => {
|
|
170
|
-
renderWithRouter(_jsx(MarkdownLink, { href: "/page", children: "Markdown Link" }));
|
|
171
|
-
const link = screen.getByRole('link', { name: 'Markdown Link' });
|
|
172
|
-
expect(link).toHaveAttribute('href', '/page');
|
|
173
|
-
});
|
|
174
|
-
test('renders null when href is not provided', () => {
|
|
175
|
-
const { container } = renderWithRouter(_jsx(MarkdownLink, { children: "No Href" }));
|
|
176
|
-
expect(container.textContent).toBe('');
|
|
177
|
-
});
|
|
178
|
-
test('passes through Link props', () => {
|
|
179
|
-
renderWithRouter(_jsx(MarkdownLink, { href: "/page", variant: "subtitle", children: "Styled Link" }));
|
|
180
|
-
const link = screen.getByRole('link', { name: 'Styled Link' });
|
|
181
|
-
expect(link).toHaveClass('text-lg');
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
describe('usePathResolver', () => {
|
|
185
|
-
test('returns null when no provider is present', () => {
|
|
186
|
-
let resolverValue = vi.fn();
|
|
187
|
-
const TestComponent = () => {
|
|
188
|
-
resolverValue = usePathResolver();
|
|
189
|
-
return null;
|
|
190
|
-
};
|
|
191
|
-
render(_jsx(TestComponent, {}));
|
|
192
|
-
expect(resolverValue).toBeNull();
|
|
193
|
-
});
|
|
194
|
-
test('returns resolver function when provider is present', () => {
|
|
195
|
-
const mockResolver = vi.fn().mockReturnValue('/path');
|
|
196
|
-
let resolverValue = null;
|
|
197
|
-
const TestComponent = () => {
|
|
198
|
-
resolverValue = usePathResolver();
|
|
199
|
-
return null;
|
|
200
|
-
};
|
|
201
|
-
render(_jsx(PathResolverProvider, { value: mockResolver, children: _jsx(TestComponent, {}) }));
|
|
202
|
-
expect(resolverValue).toBe(mockResolver);
|
|
203
|
-
});
|
|
204
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../src/components/list-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,EAAE;;;;;;;;0BASN,CAAC;AAEH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC;CAAG;AAEvF,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,4CAa5C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maptiler-map.d.ts","sourceRoot":"","sources":["../../src/components/maptiler-map.tsx"],"names":[],"mappings":"AAEA,OAAO,qCAAqC,CAAC;AAE7C,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,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B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC7C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,CAAC,CAAC;AAmEH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAkC9D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"password-input.d.ts","sourceRoot":"","sources":["../../src/components/password-input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC;CAAG;AAEnF,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,aAAa,GAAI,yBAAyB,kBAAkB,4CAmCjE,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"picture.d.ts","sourceRoot":"","sources":["../../src/components/picture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,kBAAkB;;;;;;;;CAQrB,CAAC;AAGX,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAaD,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA8DnC,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protected-email.d.ts","sourceRoot":"","sources":["../../src/components/protected-email.tsx"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAWD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CA8BxF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/components/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,IAAI;;;;;;;;;0BAgBR,CAAC;AAEH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpF,eAAO,MAAM,IAAI,GAAI,OAAO,SAAS,4CAcpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unordered-list.d.ts","sourceRoot":"","sources":["../../src/components/unordered-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD,QAAA,MAAM,EAAE;;;;;;;;0BAWN,CAAC;AAEH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,CAAC;CAAG;AAE5F,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAatD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-current-route-data.d.ts","sourceRoot":"","sources":["../../src/hooks/use-current-route-data.ts"],"names":[],"mappings":"AAOA,wBAAgB,mBAAmB,CAAC,UAAU,qBAU7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-search.d.ts","sourceRoot":"","sources":["../../src/hooks/use-focus-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,CAAC,gBAAgB,CAAC,QAe9D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-matches-data.d.ts","sourceRoot":"","sources":["../../src/hooks/use-matches-data.ts"],"names":[],"mappings":"AASA,wBAAgB,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAS3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-media-query.d.ts","sourceRoot":"","sources":["../../src/hooks/use-media-query.ts"],"names":[],"mappings":"AAOA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAyBpD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAc1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-nonce.d.ts","sourceRoot":"","sources":["../../src/hooks/use-nonce.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,iCAA4B,CAAC;AACtD,eAAO,MAAM,aAAa,kCAAwB,CAAC;AAEnD,eAAO,MAAM,QAAQ,cAAiC,CAAC;AAMvD,wBAAgB,aAAa,IAAI,MAAM,CAItC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-nonce.test.d.ts","sourceRoot":"","sources":["../../src/hooks/use-nonce.test.ts"],"names":[],"mappings":""}
|