@regardio/react 0.7.21 → 0.7.22
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/background-slideshow/index.mjs +2 -4
- package/dist/blurry-gradient/index.mjs +1 -3
- package/dist/button/index.d.mts +2 -2
- package/dist/button/index.mjs +2 -3
- package/dist/{button-C2xZwsR7.mjs → button-wigUM1BB.mjs} +1 -3
- package/dist/carousel/index.mjs +3 -10
- package/dist/checkbox/index.mjs +1 -3
- package/dist/checkbox-group/index.mjs +1 -3
- package/dist/chunk-CfYAbeIz.mjs +13 -0
- package/dist/countdown/index.mjs +1 -3
- package/dist/field/index.mjs +1 -3
- package/dist/fieldset/index.mjs +1 -3
- package/dist/form/index.mjs +1 -3
- package/dist/generic-error/index.mjs +1 -3
- package/dist/grid/index.mjs +2 -6
- package/dist/heading/index.mjs +2 -4
- package/dist/highlight/index.mjs +1 -3
- package/dist/hooks/use-current-route-data.mjs +2 -5
- package/dist/hooks/use-focus-search.mjs +2 -5
- package/dist/hooks/use-matches-data.mjs +2 -5
- package/dist/hooks/use-media-query.mjs +2 -5
- package/dist/hooks/use-mobile.mjs +2 -5
- package/dist/hooks/use-nonce.mjs +1 -3
- package/dist/hooks/use-orientation.mjs +2 -5
- package/dist/hooks/use-user.mjs +4 -11
- package/dist/icon-button/index.d.mts +1 -2
- package/dist/icon-button/index.mjs +2 -4
- package/dist/if/index.mjs +1 -3
- package/dist/iframe/index.mjs +1 -3
- package/dist/input/index.d.mts +2 -2
- package/dist/input/index.mjs +2 -3
- package/dist/{input-BjvjCsws.mjs → input-C2SM4-AB.mjs} +1 -3
- package/dist/link/index.mjs +2 -4
- package/dist/list/index.mjs +2 -7
- package/dist/markdown-container/index.mjs +2 -4
- package/dist/password-input/index.d.mts +1 -2
- package/dist/password-input/index.mjs +3 -5
- package/dist/picture/index.mjs +2 -3
- package/dist/{picture-Cd1Znyh0.mjs → picture-CcN2vXsQ.mjs} +1 -3
- package/dist/protected-email/index.mjs +1 -3
- package/dist/radio/index.mjs +1 -3
- package/dist/radio-group/index.mjs +1 -3
- package/dist/slider/index.mjs +1 -3
- package/dist/switch/index.mjs +1 -3
- package/dist/text/index.mjs +1 -3
- package/dist/{text-AWrHS6tk.mjs → text-BFTwzxPw.mjs} +1 -3
- package/dist/toggle/index.mjs +1 -3
- package/dist/utils/author/index.mjs +1 -3
- package/dist/utils/text/index.mjs +2 -3
- package/package.json +14 -14
- package/src/markdown-container/markdown-to-jsx.d.ts +28 -0
- package/dist/chunk-DQk6qfdC.mjs +0 -18
- /package/dist/{input-DlgggywA.d.mts → index-B_G_f749.d.mts} +0 -0
- /package/dist/{button-B7uJY8dG.d.mts → index-DH3W0i5O.d.mts} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as Picture } from "../picture-
|
|
1
|
+
import { t as Picture } from "../picture-CcN2vXsQ.mjs";
|
|
2
2
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
4
|
//#region src/background-slideshow/background-slideshow.tsx
|
|
6
5
|
function BackgroundSlideshow({ baseUrl, className = "", imgClassName = "", locale, pictureClassName = "", images = [], slideshow = true, slideshowInterval = 6e3, transitionDuration = 6e3, filter }) {
|
|
7
6
|
const validatedImages = useMemo(() => {
|
|
@@ -105,6 +104,5 @@ function BackgroundSlideshow({ baseUrl, className = "", imgClassName = "", local
|
|
|
105
104
|
})]
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
|
-
|
|
109
107
|
//#endregion
|
|
110
|
-
export { BackgroundSlideshow };
|
|
108
|
+
export { BackgroundSlideshow };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
2
|
//#region src/blurry-gradient/blurry-gradient.tsx
|
|
4
3
|
const BlurryGradient = (props) => {
|
|
5
4
|
const { description = "Decorative blurry gradient", neutralColor, primaryColor, secondaryColor, ...svgProps } = props;
|
|
@@ -88,6 +87,5 @@ const BlurryGradient = (props) => {
|
|
|
88
87
|
]
|
|
89
88
|
});
|
|
90
89
|
};
|
|
91
|
-
|
|
92
90
|
//#endregion
|
|
93
|
-
export { BlurryGradient };
|
|
91
|
+
export { BlurryGradient };
|
package/dist/button/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ButtonVariant, n as ButtonProps, r as ButtonSize, t as Button } from "../
|
|
2
|
-
export { Button,
|
|
1
|
+
import { i as ButtonVariant, n as ButtonProps, r as ButtonSize, t as Button } from "../index-DH3W0i5O.mjs";
|
|
2
|
+
export { Button, ButtonProps, ButtonSize, ButtonVariant };
|
package/dist/button/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
|
|
3
|
-
export { Button };
|
|
1
|
+
import { t as Button } from "../button-wigUM1BB.mjs";
|
|
2
|
+
export { Button };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Button } from "@base-ui/react/button";
|
|
4
|
-
|
|
5
4
|
//#region src/button/button.tsx
|
|
6
5
|
const buttonVariants = {
|
|
7
6
|
destructive: [
|
|
@@ -124,6 +123,5 @@ const Button$1 = ({ children, className, variant, size, ...props }) => {
|
|
|
124
123
|
children
|
|
125
124
|
});
|
|
126
125
|
};
|
|
127
|
-
|
|
128
126
|
//#endregion
|
|
129
|
-
export { Button$1 as t };
|
|
127
|
+
export { Button$1 as t };
|
package/dist/carousel/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "../chunk-
|
|
2
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as __exportAll } from "../chunk-CfYAbeIz.mjs";
|
|
2
|
+
import { t as Button } from "../button-wigUM1BB.mjs";
|
|
3
3
|
import { createContext, useCallback, useContext, useEffect, useState } from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import useEmblaCarousel from "embla-carousel-react";
|
|
6
|
-
|
|
7
6
|
//#region src/carousel/carousel-root.tsx
|
|
8
7
|
const CarouselContext = createContext(null);
|
|
9
8
|
function useCarousel() {
|
|
@@ -73,7 +72,6 @@ const CarouselRoot = function CarouselRoot({ children, className, opts, orientat
|
|
|
73
72
|
})
|
|
74
73
|
});
|
|
75
74
|
};
|
|
76
|
-
|
|
77
75
|
//#endregion
|
|
78
76
|
//#region src/carousel/carousel-content.tsx
|
|
79
77
|
const CarouselContent = function CarouselContent({ className, ref, ...props }) {
|
|
@@ -83,7 +81,6 @@ const CarouselContent = function CarouselContent({ className, ref, ...props }) {
|
|
|
83
81
|
...props
|
|
84
82
|
});
|
|
85
83
|
};
|
|
86
|
-
|
|
87
84
|
//#endregion
|
|
88
85
|
//#region src/carousel/carousel-item.tsx
|
|
89
86
|
const CarouselItem = function CarouselItem({ className, ref, ...props }) {
|
|
@@ -95,7 +92,6 @@ const CarouselItem = function CarouselItem({ className, ref, ...props }) {
|
|
|
95
92
|
...props
|
|
96
93
|
});
|
|
97
94
|
};
|
|
98
|
-
|
|
99
95
|
//#endregion
|
|
100
96
|
//#region src/carousel/carousel-next.tsx
|
|
101
97
|
const CarouselNext = function CarouselNext({ className, ref, ...props }) {
|
|
@@ -108,7 +104,6 @@ const CarouselNext = function CarouselNext({ className, ref, ...props }) {
|
|
|
108
104
|
...props
|
|
109
105
|
});
|
|
110
106
|
};
|
|
111
|
-
|
|
112
107
|
//#endregion
|
|
113
108
|
//#region src/carousel/carousel-previous.tsx
|
|
114
109
|
const CarouselPrevious = function CarouselPrevious({ className, ref, ...props }) {
|
|
@@ -121,7 +116,6 @@ const CarouselPrevious = function CarouselPrevious({ className, ref, ...props })
|
|
|
121
116
|
...props
|
|
122
117
|
});
|
|
123
118
|
};
|
|
124
|
-
|
|
125
119
|
//#endregion
|
|
126
120
|
//#region src/carousel/index.parts.ts
|
|
127
121
|
var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -131,6 +125,5 @@ var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
|
131
125
|
Previous: () => CarouselPrevious,
|
|
132
126
|
Root: () => CarouselRoot
|
|
133
127
|
});
|
|
134
|
-
|
|
135
128
|
//#endregion
|
|
136
|
-
export { index_parts_exports as Carousel, useCarousel };
|
|
129
|
+
export { index_parts_exports as Carousel, useCarousel };
|
package/dist/checkbox/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
4
|
-
|
|
5
4
|
//#region src/checkbox/checkbox.tsx
|
|
6
5
|
const checkboxRoot = tv({
|
|
7
6
|
base: [
|
|
@@ -65,6 +64,5 @@ const Checkbox = {
|
|
|
65
64
|
Indicator: CheckboxIndicator,
|
|
66
65
|
Root: CheckboxRoot
|
|
67
66
|
};
|
|
68
|
-
|
|
69
67
|
//#endregion
|
|
70
|
-
export { Checkbox, CheckboxIndicator, CheckboxRoot };
|
|
68
|
+
export { Checkbox, CheckboxIndicator, CheckboxRoot };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CheckboxGroup as CheckboxGroup$1 } from "@base-ui/react/checkbox-group";
|
|
4
|
-
|
|
5
4
|
//#region src/checkbox-group/checkbox-group.tsx
|
|
6
5
|
const checkboxGroup = tv({
|
|
7
6
|
base: [
|
|
@@ -24,6 +23,5 @@ const CheckboxGroup = ({ className, orientation = "vertical", ...props }) => {
|
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
|
-
export { CheckboxGroup };
|
|
27
|
+
export { CheckboxGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/dist/countdown/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { cn } from "@regardio/tailwind/utils";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
4
|
//#region src/countdown/countdown.tsx
|
|
6
5
|
function Countdown() {
|
|
7
6
|
const [timerValue, setTimerValue] = useState(0);
|
|
@@ -53,6 +52,5 @@ function Countdown() {
|
|
|
53
52
|
})
|
|
54
53
|
});
|
|
55
54
|
}
|
|
56
|
-
|
|
57
55
|
//#endregion
|
|
58
|
-
export { Countdown };
|
|
56
|
+
export { Countdown };
|
package/dist/field/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Field as Field$1 } from "@base-ui/react/field";
|
|
4
|
-
|
|
5
4
|
//#region src/field/field.tsx
|
|
6
5
|
const fieldRoot = tv({
|
|
7
6
|
base: ["space-y-1"],
|
|
@@ -110,6 +109,5 @@ const Field = {
|
|
|
110
109
|
Root: FieldRoot,
|
|
111
110
|
Validity: Field$1.Validity
|
|
112
111
|
};
|
|
113
|
-
|
|
114
112
|
//#endregion
|
|
115
|
-
export { Field };
|
|
113
|
+
export { Field };
|
package/dist/fieldset/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
4
|
-
|
|
5
4
|
//#region src/fieldset/fieldset.tsx
|
|
6
5
|
const fieldsetRoot = tv({
|
|
7
6
|
base: [
|
|
@@ -56,6 +55,5 @@ const Fieldset = {
|
|
|
56
55
|
Legend: FieldsetLegend,
|
|
57
56
|
Root: FieldsetRoot
|
|
58
57
|
};
|
|
59
|
-
|
|
60
58
|
//#endregion
|
|
61
|
-
export { Fieldset };
|
|
59
|
+
export { Fieldset };
|
package/dist/form/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Form as Form$1 } from "@base-ui/react/form";
|
|
4
|
-
|
|
5
4
|
//#region src/form/form.tsx
|
|
6
5
|
const form = tv({
|
|
7
6
|
base: [],
|
|
@@ -26,6 +25,5 @@ const Form = ({ className, variant, ...props }) => {
|
|
|
26
25
|
...props
|
|
27
26
|
});
|
|
28
27
|
};
|
|
29
|
-
|
|
30
28
|
//#endregion
|
|
31
|
-
export { Form };
|
|
29
|
+
export { Form };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { isRouteErrorResponse } from "react-router";
|
|
3
|
-
|
|
4
3
|
//#region src/generic-error/generic-error.tsx
|
|
5
4
|
/**
|
|
6
5
|
* Compute a normalized error descriptor from a React Router error.
|
|
@@ -53,6 +52,5 @@ function GenericError({ error, renderMessage }) {
|
|
|
53
52
|
})] })]
|
|
54
53
|
});
|
|
55
54
|
}
|
|
56
|
-
|
|
57
55
|
//#endregion
|
|
58
|
-
export { GenericError, getErrorDescriptor };
|
|
56
|
+
export { GenericError, getErrorDescriptor };
|
package/dist/grid/index.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "../chunk-
|
|
1
|
+
import { t as __exportAll } from "../chunk-CfYAbeIz.mjs";
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
import { tv } from "@regardio/tailwind/utils";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
5
|
//#region src/grid/grid-item.tsx
|
|
7
6
|
const gridItem = tv({
|
|
8
7
|
defaultVariants: { span: 12 },
|
|
@@ -159,7 +158,6 @@ const GridItem = function GridItem({ children, className, classNames, span, span
|
|
|
159
158
|
children
|
|
160
159
|
});
|
|
161
160
|
};
|
|
162
|
-
|
|
163
161
|
//#endregion
|
|
164
162
|
//#region src/grid/grid-root.tsx
|
|
165
163
|
const grid = tv({
|
|
@@ -207,13 +205,11 @@ const GridRoot = function GridRoot({ children, className, classNames, flow, alig
|
|
|
207
205
|
})
|
|
208
206
|
});
|
|
209
207
|
};
|
|
210
|
-
|
|
211
208
|
//#endregion
|
|
212
209
|
//#region src/grid/index.parts.ts
|
|
213
210
|
var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
214
211
|
Item: () => GridItem,
|
|
215
212
|
Root: () => GridRoot
|
|
216
213
|
});
|
|
217
|
-
|
|
218
214
|
//#endregion
|
|
219
|
-
export { index_parts_exports as Grid, gridItem, useGrid };
|
|
215
|
+
export { index_parts_exports as Grid, gridItem, useGrid };
|
package/dist/heading/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as shy, t as lowerCaseSzett } from "../text-
|
|
1
|
+
import { r as shy, t as lowerCaseSzett } from "../text-BFTwzxPw.mjs";
|
|
2
2
|
import { cn, tv } from "@regardio/tailwind/utils";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
4
|
//#region src/heading/heading.tsx
|
|
6
5
|
const heading = tv({
|
|
7
6
|
base: [],
|
|
@@ -23,6 +22,5 @@ const Heading = function Heading({ as, children, className, level = 2, ...props
|
|
|
23
22
|
children: word
|
|
24
23
|
});
|
|
25
24
|
};
|
|
26
|
-
|
|
27
25
|
//#endregion
|
|
28
|
-
export { Heading };
|
|
26
|
+
export { Heading };
|
package/dist/highlight/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/highlight/highlight.tsx
|
|
5
4
|
const highlight = tv({
|
|
6
5
|
defaultVariants: { variant: "primary" },
|
|
@@ -30,6 +29,5 @@ const Highlight = ({ children, className, variant }) => {
|
|
|
30
29
|
})]
|
|
31
30
|
});
|
|
32
31
|
};
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
|
-
export { Highlight };
|
|
33
|
+
export { Highlight };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { useMemo } from "react";
|
|
4
3
|
import { useLocation, useMatches } from "react-router";
|
|
5
|
-
|
|
6
4
|
//#region src/hooks/use-current-route-data.ts
|
|
7
5
|
/**
|
|
8
6
|
* This base hook is used to access data related to the current route
|
|
@@ -17,6 +15,5 @@ function useCurrentRouteData() {
|
|
|
17
15
|
});
|
|
18
16
|
}, [matchingRoutes, location])?.loaderData || void 0;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
//#endregion
|
|
22
|
-
export { useCurrentRouteData };
|
|
19
|
+
export { useCurrentRouteData };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { useEffect } from "react";
|
|
4
|
-
|
|
5
3
|
//#region src/hooks/use-focus-search.ts
|
|
6
4
|
/** Focuses on the field when user clicks cmd + k or ctrl + k */
|
|
7
5
|
function useFocusSearch(ref) {
|
|
@@ -18,6 +16,5 @@ function useFocusSearch(ref) {
|
|
|
18
16
|
};
|
|
19
17
|
}, [ref]);
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
|
-
export { useFocusSearch };
|
|
20
|
+
export { useFocusSearch };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { useMemo } from "react";
|
|
4
3
|
import { useMatches } from "react-router";
|
|
5
|
-
|
|
6
4
|
//#region src/hooks/use-matches-data.ts
|
|
7
5
|
/**
|
|
8
6
|
* This base hook is used in other hooks to quickly search for specific data
|
|
@@ -18,6 +16,5 @@ function useMatchesData(id) {
|
|
|
18
16
|
});
|
|
19
17
|
}, [matchingRoutes, id])?.data || void 0;
|
|
20
18
|
}
|
|
21
|
-
|
|
22
19
|
//#endregion
|
|
23
|
-
export { useMatchesData };
|
|
20
|
+
export { useMatchesData };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { useEffect, useState } from "react";
|
|
4
|
-
|
|
5
3
|
//#region src/hooks/use-media-query.ts
|
|
6
4
|
/**
|
|
7
5
|
* A hook that returns a boolean indicating whether the current viewport matches the provided media query
|
|
@@ -23,6 +21,5 @@ function useMediaQuery(query) {
|
|
|
23
21
|
}, [query]);
|
|
24
22
|
return matches;
|
|
25
23
|
}
|
|
26
|
-
|
|
27
24
|
//#endregion
|
|
28
|
-
export { useMediaQuery };
|
|
25
|
+
export { useMediaQuery };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { useEffect, useState } from "react";
|
|
4
|
-
|
|
5
3
|
//#region src/hooks/use-mobile.ts
|
|
6
4
|
const MOBILE_BREAKPOINT = 768;
|
|
7
5
|
function useIsMobile() {
|
|
@@ -17,6 +15,5 @@ function useIsMobile() {
|
|
|
17
15
|
}, []);
|
|
18
16
|
return !!isMobile;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
//#endregion
|
|
22
|
-
export { useIsMobile };
|
|
19
|
+
export { useIsMobile };
|
package/dist/hooks/use-nonce.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
|
-
|
|
3
2
|
//#region src/hooks/use-nonce.ts
|
|
4
3
|
/**
|
|
5
4
|
* Nonce Provider.
|
|
@@ -8,6 +7,5 @@ import { createContext, useContext } from "react";
|
|
|
8
7
|
const NonceContext = createContext("");
|
|
9
8
|
const NonceProvider = NonceContext.Provider;
|
|
10
9
|
const useNonce = () => useContext(NonceContext);
|
|
11
|
-
|
|
12
10
|
//#endregion
|
|
13
|
-
export { NonceContext, NonceProvider, useNonce };
|
|
11
|
+
export { NonceContext, NonceProvider, useNonce };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
3
2
|
import { useEffect, useState } from "react";
|
|
4
|
-
|
|
5
3
|
//#region src/hooks/use-orientation.ts
|
|
6
4
|
/**
|
|
7
5
|
* Hook that tracks the current device orientation
|
|
@@ -27,6 +25,5 @@ function useOrientation() {
|
|
|
27
25
|
}, []);
|
|
28
26
|
return orientation;
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
//#endregion
|
|
32
|
-
export { useOrientation };
|
|
29
|
+
export { useOrientation };
|
package/dist/hooks/use-user.mjs
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { createContext, useContext } from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/hooks/use-user.tsx
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
4
|
+
* Context for storing and accessing the current authenticated user
|
|
7
5
|
*/
|
|
8
|
-
const
|
|
6
|
+
const UserContext = createContext({
|
|
9
7
|
isLoading: false,
|
|
10
8
|
user: null
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Context for storing and accessing the current authenticated user
|
|
14
|
-
*/
|
|
15
|
-
const UserContext = createContext(defaultContextValue);
|
|
9
|
+
});
|
|
16
10
|
/**
|
|
17
11
|
* Provider component for the UserContext
|
|
18
12
|
*/
|
|
@@ -34,6 +28,5 @@ function useUser() {
|
|
|
34
28
|
if (context === void 0) throw new Error("useUser must be used within a UserContextProvider");
|
|
35
29
|
return context;
|
|
36
30
|
}
|
|
37
|
-
|
|
38
31
|
//#endregion
|
|
39
|
-
export { UserContext, UserContextProvider, useUser };
|
|
32
|
+
export { UserContext, UserContextProvider, useUser };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as Button } from "../button-wigUM1BB.mjs";
|
|
2
2
|
import { tv } from "@regardio/tailwind/utils";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
4
|
//#region src/icon-button/icon-button.tsx
|
|
6
5
|
const iconButton = tv({
|
|
7
6
|
base: [
|
|
@@ -31,6 +30,5 @@ const IconButton = ({ icon, size = "md", title, "aria-label": ariaLabel, classNa
|
|
|
31
30
|
children: icon
|
|
32
31
|
});
|
|
33
32
|
};
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
|
-
export { IconButton };
|
|
34
|
+
export { IconButton };
|
package/dist/if/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/if/if.tsx
|
|
5
4
|
function If({ condition, children, fallback }) {
|
|
6
5
|
return useMemo(() => {
|
|
@@ -16,6 +15,5 @@ function If({ condition, children, fallback }) {
|
|
|
16
15
|
children
|
|
17
16
|
]);
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { If };
|
|
19
|
+
export { If };
|
package/dist/iframe/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cn } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/iframe/iframe.tsx
|
|
5
4
|
const Iframe = ({ src, title, className }) => /* @__PURE__ */ jsx("iframe", {
|
|
6
5
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
@@ -10,6 +9,5 @@ const Iframe = ({ src, title, className }) => /* @__PURE__ */ jsx("iframe", {
|
|
|
10
9
|
src,
|
|
11
10
|
title
|
|
12
11
|
});
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
|
-
export { Iframe };
|
|
13
|
+
export { Iframe };
|
package/dist/input/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as InputVariant, n as InputProps, r as InputSize, t as Input } from "../
|
|
2
|
-
export { Input,
|
|
1
|
+
import { i as InputVariant, n as InputProps, r as InputSize, t as Input } from "../index-B_G_f749.mjs";
|
|
2
|
+
export { Input, InputProps, InputSize, InputVariant };
|
package/dist/input/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { t as Input } from "../input-
|
|
2
|
-
|
|
3
|
-
export { Input };
|
|
1
|
+
import { t as Input } from "../input-C2SM4-AB.mjs";
|
|
2
|
+
export { Input };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Input } from "@base-ui/react/input";
|
|
4
|
-
|
|
5
4
|
//#region src/input/input.tsx
|
|
6
5
|
const input = tv({
|
|
7
6
|
base: [
|
|
@@ -68,6 +67,5 @@ const Input$1 = ({ className, variant, size, ...props }) => {
|
|
|
68
67
|
...props
|
|
69
68
|
});
|
|
70
69
|
};
|
|
71
|
-
|
|
72
70
|
//#endregion
|
|
73
|
-
export { Input$1 as t };
|
|
71
|
+
export { Input$1 as t };
|
package/dist/link/index.mjs
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as lowerCaseSzett } from "../text-
|
|
1
|
+
import { t as lowerCaseSzett } from "../text-BFTwzxPw.mjs";
|
|
2
2
|
import { createContext, useCallback, useContext } from "react";
|
|
3
3
|
import { tv } from "@regardio/tailwind/utils";
|
|
4
4
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { NavLink } from "react-router";
|
|
6
|
-
|
|
7
6
|
//#region src/link/link.tsx
|
|
8
7
|
const PathResolverContext = createContext(null);
|
|
9
8
|
const PathResolverProvider = PathResolverContext.Provider;
|
|
@@ -124,6 +123,5 @@ const MarkdownLink = ({ children, href, ...props }) => {
|
|
|
124
123
|
});
|
|
125
124
|
return null;
|
|
126
125
|
};
|
|
127
|
-
|
|
128
126
|
//#endregion
|
|
129
|
-
export { Link, LinkBase, MarkdownLink, PathResolverProvider, usePathResolver };
|
|
127
|
+
export { Link, LinkBase, MarkdownLink, PathResolverProvider, usePathResolver };
|
package/dist/list/index.mjs
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { t as __exportAll } from "../chunk-
|
|
1
|
+
import { t as __exportAll } from "../chunk-CfYAbeIz.mjs";
|
|
2
2
|
import { createContext, useContext, useMemo } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
4
|
//#region src/list/list-root-context.ts
|
|
6
5
|
const ListRootContext = createContext(void 0);
|
|
7
6
|
function useListRootContext() {
|
|
8
7
|
return useContext(ListRootContext);
|
|
9
8
|
}
|
|
10
|
-
|
|
11
9
|
//#endregion
|
|
12
10
|
//#region src/list/list-item.tsx
|
|
13
11
|
function ListItemImpl(props) {
|
|
@@ -21,7 +19,6 @@ function ListItemImpl(props) {
|
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
21
|
const ListItem = ListItemImpl;
|
|
24
|
-
|
|
25
22
|
//#endregion
|
|
26
23
|
//#region src/list/list-root.tsx
|
|
27
24
|
function ListRootImpl(props) {
|
|
@@ -42,13 +39,11 @@ function ListRootImpl(props) {
|
|
|
42
39
|
});
|
|
43
40
|
}
|
|
44
41
|
const ListRoot = ListRootImpl;
|
|
45
|
-
|
|
46
42
|
//#endregion
|
|
47
43
|
//#region src/list/index.parts.ts
|
|
48
44
|
var index_parts_exports = /* @__PURE__ */ __exportAll({
|
|
49
45
|
Item: () => ListItem,
|
|
50
46
|
Root: () => ListRoot
|
|
51
47
|
});
|
|
52
|
-
|
|
53
48
|
//#endregion
|
|
54
|
-
export { index_parts_exports as List };
|
|
49
|
+
export { index_parts_exports as List };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { n as replaceSpecialChars } from "../text-
|
|
1
|
+
import { n as replaceSpecialChars } from "../text-BFTwzxPw.mjs";
|
|
2
2
|
import { cn } from "@regardio/tailwind/utils";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { MDXProvider } from "@mdx-js/react";
|
|
5
5
|
import Markdown from "markdown-to-jsx";
|
|
6
|
-
|
|
7
6
|
//#region src/markdown-container/markdown-container.tsx
|
|
8
7
|
const doubleNewlineRegex = /\n\n+/;
|
|
9
8
|
function processTextOutsideMDXComponents(text, locale) {
|
|
@@ -70,6 +69,5 @@ const MarkdownContainer = (props) => {
|
|
|
70
69
|
})
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
|
-
|
|
74
72
|
//#endregion
|
|
75
|
-
export { MarkdownContainer, transformLink };
|
|
73
|
+
export { MarkdownContainer, transformLink };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
2
|
-
import { t as Input } from "../input-
|
|
1
|
+
import { t as Button } from "../button-wigUM1BB.mjs";
|
|
2
|
+
import { t as Input } from "../input-C2SM4-AB.mjs";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { tv } from "@regardio/tailwind/utils";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
6
|
//#region src/password-input/password-input.tsx
|
|
8
7
|
const passwordInput = tv({
|
|
9
8
|
base: ["relative"],
|
|
@@ -87,6 +86,5 @@ const PasswordInput = ({ className, variant = "default", inputVariant = "default
|
|
|
87
86
|
})]
|
|
88
87
|
});
|
|
89
88
|
};
|
|
90
|
-
|
|
91
89
|
//#endregion
|
|
92
|
-
export { PasswordInput };
|
|
90
|
+
export { PasswordInput };
|
package/dist/picture/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { n as screenSizeVariants, t as Picture } from "../picture-
|
|
2
|
-
|
|
3
|
-
export { Picture, screenSizeVariants };
|
|
1
|
+
import { n as screenSizeVariants, t as Picture } from "../picture-CcN2vXsQ.mjs";
|
|
2
|
+
export { Picture, screenSizeVariants };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cn } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/picture/picture.tsx
|
|
5
4
|
const screenSizeVariants = {
|
|
6
5
|
lg: 1280,
|
|
@@ -64,6 +63,5 @@ const Picture = ({ alt, baseUrl, className, formats, imgClassName, placeholder =
|
|
|
64
63
|
})]
|
|
65
64
|
});
|
|
66
65
|
};
|
|
67
|
-
|
|
68
66
|
//#endregion
|
|
69
|
-
export { screenSizeVariants as n, Picture as t };
|
|
67
|
+
export { screenSizeVariants as n, Picture as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/protected-email/protected-email.tsx
|
|
5
4
|
/**
|
|
6
5
|
* ProtectedEmail component that obfuscates email addresses to protect from scrapers.
|
|
@@ -32,6 +31,5 @@ function ProtectedEmail({ username, domain, text, className }) {
|
|
|
32
31
|
children: fallbackText
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
|
-
|
|
36
34
|
//#endregion
|
|
37
|
-
export { ProtectedEmail };
|
|
35
|
+
export { ProtectedEmail };
|
package/dist/radio/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Radio as Radio$1 } from "@base-ui/react/radio";
|
|
4
|
-
|
|
5
4
|
//#region src/radio/radio.tsx
|
|
6
5
|
const radioRoot = tv({
|
|
7
6
|
base: [
|
|
@@ -67,6 +66,5 @@ const Radio = {
|
|
|
67
66
|
Indicator: RadioIndicator,
|
|
68
67
|
Root: RadioRoot
|
|
69
68
|
};
|
|
70
|
-
|
|
71
69
|
//#endregion
|
|
72
|
-
export { Radio, RadioIndicator, RadioRoot };
|
|
70
|
+
export { Radio, RadioIndicator, RadioRoot };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
4
|
-
|
|
5
4
|
//#region src/radio-group/radio-group.tsx
|
|
6
5
|
const radioGroup = tv({
|
|
7
6
|
base: [
|
|
@@ -24,6 +23,5 @@ const RadioGroup = ({ className, orientation = "vertical", ...props }) => {
|
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
|
-
|
|
28
26
|
//#endregion
|
|
29
|
-
export { RadioGroup };
|
|
27
|
+
export { RadioGroup };
|
package/dist/slider/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
4
|
-
|
|
5
4
|
//#region src/slider/slider.tsx
|
|
6
5
|
const sliderRoot = tv({
|
|
7
6
|
base: [
|
|
@@ -128,6 +127,5 @@ const Slider = {
|
|
|
128
127
|
Track: SliderTrack,
|
|
129
128
|
Value: SliderValue
|
|
130
129
|
};
|
|
131
|
-
|
|
132
130
|
//#endregion
|
|
133
|
-
export { Slider, SliderControl, SliderIndicator, SliderRoot, SliderThumb, SliderTrack, SliderValue };
|
|
131
|
+
export { Slider, SliderControl, SliderIndicator, SliderRoot, SliderThumb, SliderTrack, SliderValue };
|
package/dist/switch/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
4
|
-
|
|
5
4
|
//#region src/switch/switch.tsx
|
|
6
5
|
const switchRoot = tv({
|
|
7
6
|
base: [
|
|
@@ -82,6 +81,5 @@ const Switch = {
|
|
|
82
81
|
Root: SwitchRoot,
|
|
83
82
|
Thumb: SwitchThumb
|
|
84
83
|
};
|
|
85
|
-
|
|
86
84
|
//#endregion
|
|
87
|
-
export { Switch, SwitchRoot, SwitchThumb };
|
|
85
|
+
export { Switch, SwitchRoot, SwitchThumb };
|
package/dist/text/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/text/text.tsx
|
|
5
4
|
const text = tv({
|
|
6
5
|
base: ["relative", "block"],
|
|
@@ -27,6 +26,5 @@ const Text = ({ children, className, variant, themeColor }) => {
|
|
|
27
26
|
children
|
|
28
27
|
});
|
|
29
28
|
};
|
|
30
|
-
|
|
31
29
|
//#endregion
|
|
32
|
-
export { Text };
|
|
30
|
+
export { Text };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Fragment, cloneElement, isValidElement } from "react";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { replaceShyInString, splitIntoSentences, typographicQuotes } from "@regardio/js/text";
|
|
4
|
-
|
|
5
4
|
//#region src/utils/text/text.tsx
|
|
6
5
|
const lowerCaseSzett = (text, _returnType) => {
|
|
7
6
|
const processString = (str) => {
|
|
@@ -47,6 +46,5 @@ function replaceSpecialChars(text, locale) {
|
|
|
47
46
|
function wrapSentences(text) {
|
|
48
47
|
return splitIntoSentences(text).map((sentence, index) => /* @__PURE__ */ jsxs("span", { children: [sentence, " "] }, index.toString()));
|
|
49
48
|
}
|
|
50
|
-
|
|
51
49
|
//#endregion
|
|
52
|
-
export { wrapSentences as i, replaceSpecialChars as n, shy as r, lowerCaseSzett as t };
|
|
50
|
+
export { wrapSentences as i, replaceSpecialChars as n, shy as r, lowerCaseSzett as t };
|
package/dist/toggle/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { tv } from "@regardio/tailwind/utils";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
4
|
-
|
|
5
4
|
//#region src/toggle/toggle.tsx
|
|
6
5
|
const toggle = tv({
|
|
7
6
|
base: [
|
|
@@ -77,6 +76,5 @@ const Toggle = ({ className, variant = "outline", size = "md", title, children,
|
|
|
77
76
|
children
|
|
78
77
|
});
|
|
79
78
|
};
|
|
80
|
-
|
|
81
79
|
//#endregion
|
|
82
|
-
export { Toggle };
|
|
80
|
+
export { Toggle };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { parseAuthorString } from "@regardio/js/text";
|
|
3
|
-
|
|
4
3
|
//#region src/utils/author/author.tsx
|
|
5
4
|
function generateLinkFromAuthorString(input) {
|
|
6
5
|
const match = parseAuthorString(input);
|
|
@@ -21,6 +20,5 @@ function generateLinkFromAuthorString(input) {
|
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
|
-
|
|
25
23
|
//#endregion
|
|
26
|
-
export { generateLinkFromAuthorString };
|
|
24
|
+
export { generateLinkFromAuthorString };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { i as wrapSentences, n as replaceSpecialChars, r as shy, t as lowerCaseSzett } from "../../text-
|
|
2
|
-
|
|
3
|
-
export { lowerCaseSzett, replaceSpecialChars, shy, wrapSentences };
|
|
1
|
+
import { i as wrapSentences, n as replaceSpecialChars, r as shy, t as lowerCaseSzett } from "../../text-BFTwzxPw.mjs";
|
|
2
|
+
export { lowerCaseSzett, replaceSpecialChars, shy, wrapSentences };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "@regardio/react",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.22",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Regardio React UI components",
|
|
7
7
|
"keywords": ["react", "components", "ui", "regardio", "tailwindcss"],
|
|
@@ -209,39 +209,39 @@
|
|
|
209
209
|
"@base-ui/react": "1.2.0",
|
|
210
210
|
"@maptiler/sdk": "3.11.1",
|
|
211
211
|
"@mdx-js/react": "3.1.1",
|
|
212
|
-
"@regardio/js": "0.
|
|
212
|
+
"@regardio/js": "0.8.1",
|
|
213
213
|
"@regardio/tailwind": "0.3.9",
|
|
214
|
-
"@supabase/supabase-js": "2.
|
|
214
|
+
"@supabase/supabase-js": "2.99.0",
|
|
215
215
|
"cmdk": "1.1.1",
|
|
216
216
|
"embla-carousel": "8.6.0",
|
|
217
217
|
"embla-carousel-react": "8.6.0",
|
|
218
218
|
"input-otp": "1.4.2",
|
|
219
219
|
"intl-parse-accept-language": "1.0.0",
|
|
220
220
|
"leaflet": "alpha",
|
|
221
|
-
"lucide-react": "0.
|
|
222
|
-
"markdown-to-jsx": "9.7.
|
|
221
|
+
"lucide-react": "0.577.0",
|
|
222
|
+
"markdown-to-jsx": "9.7.9",
|
|
223
223
|
"react": "19.2.4",
|
|
224
224
|
"react-day-picker": "9.14.0",
|
|
225
225
|
"react-dom": "19.2.4",
|
|
226
226
|
"react-hook-form": "7.71.2",
|
|
227
|
-
"react-resizable-panels": "4.
|
|
227
|
+
"react-resizable-panels": "4.7.2",
|
|
228
228
|
"react-router": "7.13.1",
|
|
229
229
|
"tailwind-variants": "3.2.2",
|
|
230
230
|
"vaul": "1.1.2",
|
|
231
231
|
"zod": "4.3.6"
|
|
232
232
|
},
|
|
233
233
|
"devDependencies": {
|
|
234
|
-
"@regardio/dev": "1.16.
|
|
235
|
-
"@storybook/addon-a11y": "10.2.
|
|
236
|
-
"@storybook/addon-docs": "10.2.
|
|
237
|
-
"@storybook/addon-vitest": "10.2.
|
|
238
|
-
"@storybook/react-vite": "10.2.
|
|
234
|
+
"@regardio/dev": "1.16.2",
|
|
235
|
+
"@storybook/addon-a11y": "10.2.17",
|
|
236
|
+
"@storybook/addon-docs": "10.2.17",
|
|
237
|
+
"@storybook/addon-vitest": "10.2.17",
|
|
238
|
+
"@storybook/react-vite": "10.2.17",
|
|
239
239
|
"@tailwindcss/vite": "4.2.1",
|
|
240
240
|
"@testing-library/jest-dom": "6.9.1",
|
|
241
241
|
"@testing-library/react": "16.3.2",
|
|
242
242
|
"@total-typescript/ts-reset": "0.6.1",
|
|
243
243
|
"@types/leaflet": "1.9.21",
|
|
244
|
-
"@types/node": "25.
|
|
244
|
+
"@types/node": "25.4.0",
|
|
245
245
|
"@types/react": "19.2.14",
|
|
246
246
|
"@types/react-dom": "19.2.3",
|
|
247
247
|
"@vitejs/plugin-react": "5.1.4",
|
|
@@ -250,9 +250,9 @@
|
|
|
250
250
|
"@vitest/ui": "4.0.18",
|
|
251
251
|
"jsdom": "28.1.0",
|
|
252
252
|
"playwright": "1.58.2",
|
|
253
|
-
"storybook": "10.2.
|
|
253
|
+
"storybook": "10.2.17",
|
|
254
254
|
"tailwindcss": "4.2.1",
|
|
255
|
-
"tsdown": "0.
|
|
255
|
+
"tsdown": "0.21.1",
|
|
256
256
|
"typescript": "5.9.3",
|
|
257
257
|
"vite": "7.3.1",
|
|
258
258
|
"vitest": "4.0.18"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare module 'markdown-to-jsx' {
|
|
2
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export namespace MarkdownToJSX {
|
|
5
|
+
export interface Options {
|
|
6
|
+
createElement?: (tag: string, props: unknown, ...children: ReactNode[]) => ReactNode;
|
|
7
|
+
forceBlock?: boolean;
|
|
8
|
+
forceInline?: boolean;
|
|
9
|
+
overrides?: {
|
|
10
|
+
[key: string]:
|
|
11
|
+
| ComponentType<unknown>
|
|
12
|
+
| { component?: ComponentType<unknown>; props?: Record<string, unknown> };
|
|
13
|
+
};
|
|
14
|
+
wrapper?: string | ComponentType<unknown>;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface MarkdownProps {
|
|
20
|
+
children: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
options?: MarkdownToJSX.Options;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const Markdown: ComponentType<MarkdownProps>;
|
|
27
|
+
export default Markdown;
|
|
28
|
+
}
|
package/dist/chunk-DQk6qfdC.mjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) {
|
|
6
|
-
__defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
if (!no_symbols) {
|
|
12
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __exportAll as t };
|
|
File without changes
|
|
File without changes
|