trepur_components 2.3.48 → 2.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/lib/components/AlertBar/index.d.ts +0 -1
- package/lib/components/AlertBar/index.js +3 -3
- package/lib/components/Avatar/index.d.ts +0 -2
- package/lib/components/Breadcrumbs/index.d.ts +1 -2
- package/lib/components/Breadcrumbs/index.js +4 -4
- package/lib/components/Button/Button.stories.d.ts +4 -9
- package/lib/components/Button/index.d.ts +0 -1
- package/lib/components/Calendar/index.d.ts +0 -1
- package/lib/components/Calendar/index.js +1 -1
- package/lib/components/Carousel/index.d.ts +1 -2
- package/lib/components/Carousel/index.js +8 -8
- package/lib/components/CarouselThumbnail/index.d.ts +1 -2
- package/lib/components/CarouselThumbnail/index.js +4 -4
- package/lib/components/Checkbox/index.d.ts +0 -1
- package/lib/components/Collapsible/index.d.ts +2 -3
- package/lib/components/Collapsible/index.js +48 -42
- package/lib/components/Counter/index.d.ts +0 -1
- package/lib/components/Counter/index.js +6 -6
- package/lib/components/DetailUpdater/index.d.ts +0 -1
- package/lib/components/Dialog/index.d.ts +1 -2
- package/lib/components/Dropdown/index.d.ts +1 -2
- package/lib/components/Dropdown/index.js +3 -3
- package/lib/components/FileUploader/index.d.ts +0 -1
- package/lib/components/Footer/index.d.ts +0 -1
- package/lib/components/FooterNav/index.d.ts +3 -4
- package/lib/components/Form/index.d.ts +2 -3
- package/lib/components/Gallery/index.d.ts +1 -2
- package/lib/components/Icon/index.d.ts +1 -2
- package/lib/components/ImageCard/index.d.ts +1 -2
- package/lib/components/Input/index.d.ts +1 -2
- package/lib/components/Input/index.js +3 -3
- package/lib/components/Link/index.d.ts +0 -1
- package/lib/components/Map/index.d.ts +0 -1
- package/lib/components/Map/index.js +2 -2
- package/lib/components/Map/utils.d.ts +1 -2
- package/lib/components/Map/utils.js +3 -6
- package/lib/components/MenuButton/index.d.ts +0 -2
- package/lib/components/Modal/index.d.ts +0 -2
- package/lib/components/Nav/index.d.ts +2 -3
- package/lib/components/Nav/index.js +3 -3
- package/lib/components/NavItem/index.d.ts +4 -5
- package/lib/components/Pill/index.d.ts +0 -1
- package/lib/components/Search/index.d.ts +1 -2
- package/lib/components/Showcase/index.d.ts +1 -2
- package/lib/components/SideNav/index.d.ts +0 -1
- package/lib/components/SocialButton/index.d.ts +0 -2
- package/lib/components/SplitCard/index.d.ts +0 -1
- package/lib/components/SplitCard/index.js +3 -3
- package/lib/components/Testimonial/index.d.ts +1 -2
- package/lib/components/TextArea/index.d.ts +1 -2
- package/lib/components/TextArea/index.js +3 -3
- package/lib/components/Timeline/index.d.ts +0 -1
- package/lib/components/Tubestops/index.d.ts +0 -1
- package/lib/components/Tubestops/index.js +4 -4
- package/lib/components/Video/index.d.ts +1 -2
- package/lib/components/index.d.ts +37 -38
- package/lib/node_modules/keen-slider/react.js +261 -294
- package/lib/style.css +1 -1
- package/lib/tailwind/preset.ts +0 -1
- package/lib/utils/matchMedia.js +1 -2
- package/lib/utils/screens.js +3 -7
- package/package.json +36 -65
- package/lib/assets/sample.jpg +0 -0
- package/lib/assets/trepurComponentsLogo.svg +0 -32
- package/lib/components/Accordion/Accordion.stories.d.ts +0 -13
- package/lib/components/AlertBar/AlertBar.stories.d.ts +0 -25
- package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -20
- package/lib/components/Calendar/Calendar.stories.d.ts +0 -11
- package/lib/components/Calendar/style.css.js +0 -1
- package/lib/components/Card/Card.stories.d.ts +0 -11
- package/lib/components/Carousel/Carousel.stories.d.ts +0 -21
- package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +0 -22
- package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -17
- package/lib/components/Collapsible/Collapsible.stories.d.ts +0 -23
- package/lib/components/Counter/Counter.stories.d.ts +0 -17
- package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +0 -18
- package/lib/components/Dialog/Dialog.stories.d.ts +0 -15
- package/lib/components/Dropdown/Dropdown.stories.d.ts +0 -17
- package/lib/components/FileUploader/FileUploader.stories.d.ts +0 -18
- package/lib/components/Footer/Footer.stories.d.ts +0 -19
- package/lib/components/FooterNav/FooterNav.stories.d.ts +0 -22
- package/lib/components/Form/Form.stories.d.ts +0 -66
- package/lib/components/Gallery/Gallery.stories.d.ts +0 -16
- package/lib/components/Greeting/Greeting.stories.d.ts +0 -13
- package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +0 -12
- package/lib/components/Icon/Icon.stories.d.ts +0 -16
- package/lib/components/Image/Image.stories.d.ts +0 -13
- package/lib/components/ImageCard/ImageCard.stories.d.ts +0 -23
- package/lib/components/Input/Input.stories.d.ts +0 -21
- package/lib/components/Link/Link.stories.d.ts +0 -30
- package/lib/components/Map/Map.stories.d.ts +0 -18
- package/lib/components/Map/map.css.js +0 -1
- package/lib/components/MenuButton/MenuButton.stories.d.ts +0 -28
- package/lib/components/Modal/Modal.stories.d.ts +0 -67
- package/lib/components/Nav/Nav.stories.d.ts +0 -32
- package/lib/components/NavItem/NavItem.stories.d.ts +0 -22
- package/lib/components/Pill/Pill.stories.d.ts +0 -26
- package/lib/components/Search/Search.stories.d.ts +0 -44
- package/lib/components/Select/Select.stories.d.ts +0 -24
- package/lib/components/Showcase/Showcase.stories.d.ts +0 -17
- package/lib/components/SideNav/SideNav.stories.d.ts +0 -40
- package/lib/components/SocialButton/SocialButton.stories.d.ts +0 -83
- package/lib/components/SplitCard/SplitCard.stories.d.ts +0 -21
- package/lib/components/Stars/Stars.stories.d.ts +0 -14
- package/lib/components/Testimonial/Testimonial.stories.d.ts +0 -21
- package/lib/components/TextArea/TextArea.stories.d.ts +0 -21
- package/lib/components/Timeline/Timeline.stories.d.ts +0 -21
- package/lib/components/Tubestops/Tubestops.stories.d.ts +0 -24
- package/lib/components/Video/Video.stories.d.ts +0 -23
- package/lib/documentation/assets/index.d.ts +0 -3
- package/lib/documentation/components/ThemeColours.d.ts +0 -20
- package/lib/documentation/typography/Fonts/Fonts.d.ts +0 -2
- package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +0 -10
- package/lib/node_modules/@maptiler/sdk/dist/maptiler-sdk.css.js +0 -1
- package/lib/node_modules/keen-slider/keen-slider.min.css.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as o, useMemo as b, createContext as h, useContext as l } from "react";
|
|
3
3
|
import { faCrosshairs as A } from "@fortawesome/fontawesome-free-solid";
|
|
4
4
|
import B from "clsx";
|
|
5
5
|
import { Button as w } from "../Button/index.js";
|
|
6
6
|
import { Icon as c } from "../Icon/index.js";
|
|
7
|
-
const s =
|
|
7
|
+
const s = h(null), f = o(
|
|
8
8
|
({
|
|
9
9
|
className: t,
|
|
10
10
|
children: a,
|
|
@@ -13,7 +13,7 @@ const s = b(null), f = o(
|
|
|
13
13
|
loading: i = !1,
|
|
14
14
|
...g
|
|
15
15
|
}, p) => {
|
|
16
|
-
const x =
|
|
16
|
+
const x = b(
|
|
17
17
|
() => ({
|
|
18
18
|
dismiss: n,
|
|
19
19
|
loading: i
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
2
|
export interface BreadcrumbsContextProps {
|
|
4
3
|
allLinks?: any;
|
|
5
4
|
}
|
|
@@ -11,7 +10,7 @@ declare const Breadcrumbs: import('react').ForwardRefExoticComponent<HTMLAttribu
|
|
|
11
10
|
children?: any;
|
|
12
11
|
} & import('react').RefAttributes<HTMLLIElement>>;
|
|
13
12
|
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
|
|
14
|
-
href?: string
|
|
13
|
+
href?: string;
|
|
15
14
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
16
15
|
};
|
|
17
16
|
export { Breadcrumbs };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as C } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
const b =
|
|
4
|
-
const a =
|
|
2
|
+
import { forwardRef as n, useMemo as p, createContext as d, useContext as i, Children as v } from "react";
|
|
3
|
+
const b = d(null), f = d(null), x = n(({ children: e, ...r }, t) => {
|
|
4
|
+
const a = p(
|
|
5
5
|
() => ({
|
|
6
6
|
allLinks: e
|
|
7
7
|
}),
|
|
@@ -10,7 +10,7 @@ const b = p(null), f = p(null), x = n(({ children: e, ...r }, t) => {
|
|
|
10
10
|
return /* @__PURE__ */ s(b.Provider, { value: a, children: /* @__PURE__ */ s("ul", { ref: t, className: "flex gap-2", ...r, children: e }) });
|
|
11
11
|
}), B = n(({ children: e, ...r }, t) => {
|
|
12
12
|
var c, m, u;
|
|
13
|
-
const { allLinks: a } = i(b) || {}, o = v.toArray(a), l = ((c = e == null ? void 0 : e.props) == null ? void 0 : c.children) === ((u = (m = o[o.length - 1]) == null ? void 0 : m.props) == null ? void 0 : u.children.props.children), N =
|
|
13
|
+
const { allLinks: a } = i(b) || {}, o = v.toArray(a), l = ((c = e == null ? void 0 : e.props) == null ? void 0 : c.children) === ((u = (m = o[o.length - 1]) == null ? void 0 : m.props) == null ? void 0 : u.children.props.children), N = p(
|
|
14
14
|
() => ({
|
|
15
15
|
isLast: l
|
|
16
16
|
}),
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Button } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
4
3
|
declare const meta: {
|
|
4
|
+
tags: string[];
|
|
5
5
|
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('.').ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
7
7
|
Icon: import('react').ForwardRefExoticComponent<{
|
|
8
8
|
icon: any;
|
|
9
9
|
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
10
10
|
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
11
|
};
|
|
12
|
-
args: {
|
|
13
|
-
variant: "primary";
|
|
14
|
-
children: import("react/jsx-runtime").JSX.Element[];
|
|
15
|
-
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
16
|
-
};
|
|
17
12
|
};
|
|
18
13
|
export default meta;
|
|
19
14
|
type Story = StoryObj<typeof Button>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { KeenSliderInstance, KeenSliderHooks, KeenSliderOptions } from 'keen-slider/react';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
2
|
+
import { KeenSliderInstance, KeenSliderHooks, KeenSliderOptions } from 'keen-slider/react';
|
|
4
3
|
export interface ArrowProps {
|
|
5
4
|
rightArrow?: boolean;
|
|
6
5
|
visible?: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as m, useState as g, useMemo as z, createContext as I, useContext as x } from "react";
|
|
3
3
|
import { Icon as w } from "../Icon/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { faCircle as K, faChevronRight as L, faChevronLeft as T } from "@fortawesome/fontawesome-free-solid";
|
|
5
5
|
import u from "clsx";
|
|
6
|
-
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { useKeenSlider as $ } from "../../node_modules/keen-slider/react.js";
|
|
8
8
|
import { WheelControls as M } from "./utils.js";
|
|
9
|
-
const p =
|
|
9
|
+
const p = I(null), b = m(
|
|
10
10
|
({
|
|
11
11
|
breakpoints: o,
|
|
12
12
|
children: t,
|
|
@@ -34,7 +34,7 @@ const p = z(null), b = m(
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
[M]
|
|
37
|
-
), A =
|
|
37
|
+
), A = z(
|
|
38
38
|
() => ({
|
|
39
39
|
sliderRef: y,
|
|
40
40
|
instanceRef: v,
|
|
@@ -101,10 +101,10 @@ const p = z(null), b = m(
|
|
|
101
101
|
),
|
|
102
102
|
onClick: (c) => {
|
|
103
103
|
var l, a;
|
|
104
|
-
t ? c.stopPropagation() !== void 0 || ((l = r.current) == null
|
|
104
|
+
return t ? c.stopPropagation() !== void 0 || ((l = r.current) == null ? void 0 : l.next()) : c.stopPropagation() !== void 0 || ((a = r.current) == null ? void 0 : a.prev());
|
|
105
105
|
},
|
|
106
106
|
...s,
|
|
107
|
-
children: /* @__PURE__ */ n(w, { icon: t ?
|
|
107
|
+
children: /* @__PURE__ */ n(w, { icon: t ? L : T, size: "3x" })
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
110
|
}), j = m(({ className: o, ...t }, s) => {
|
|
@@ -127,7 +127,7 @@ const p = z(null), b = m(
|
|
|
127
127
|
"hover:text-carousel-dots-hover",
|
|
128
128
|
r === i ? "text-carousel-dots-active" : "text-carousel-dots-default"
|
|
129
129
|
),
|
|
130
|
-
icon:
|
|
130
|
+
icon: K,
|
|
131
131
|
size: "xl"
|
|
132
132
|
}
|
|
133
133
|
)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { KeenSliderInstance, KeenSliderHooks, KeenSliderOptions } from 'keen-slider/react';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
2
|
+
import { KeenSliderInstance, KeenSliderHooks, KeenSliderOptions } from 'keen-slider/react';
|
|
4
3
|
export interface CarouselThumbnailContextProps {
|
|
5
4
|
slideWrapperClassName?: string;
|
|
6
5
|
breakpoints?: Record<string, Omit<KeenSliderOptions<object, object, KeenSliderHooks>, 'breakpoints'>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as i, jsxs as C, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as o, useMemo as x, createContext as v, useContext as N } from "react";
|
|
3
3
|
import t from "clsx";
|
|
4
|
-
|
|
4
|
+
/* empty css */
|
|
5
5
|
import { useKeenSlider as a } from "../../node_modules/keen-slider/react.js";
|
|
6
6
|
import { breakpointsToRender as S } from "./const.js";
|
|
7
7
|
import { WheelControls as g, ThumbnailPlugin as w } from "./utils.js";
|
|
8
|
-
const m =
|
|
9
|
-
const n =
|
|
8
|
+
const m = v(null), u = o(({ children: r, className: l, ...e }, s) => {
|
|
9
|
+
const n = x(
|
|
10
10
|
() => ({
|
|
11
11
|
...e
|
|
12
12
|
}),
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ImageProps } from '../Image';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
2
|
+
import { ImageProps } from 'src/components/Image';
|
|
4
3
|
export interface CollapsibleContextProps {
|
|
5
4
|
loading?: boolean;
|
|
6
5
|
expanded?: boolean;
|
|
7
6
|
setExpanded?: (expanded: boolean) => void;
|
|
8
|
-
|
|
7
|
+
defaultExpanded?: boolean;
|
|
9
8
|
}
|
|
10
9
|
declare const Collapsible: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & CollapsibleContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
11
10
|
Header: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Image as
|
|
5
|
-
import { faChevronDown as
|
|
1
|
+
import { jsx as s, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as o, useState as T, useMemo as I, createContext as S, useContext as c } from "react";
|
|
3
|
+
import { Icon as L } from "../Icon/index.js";
|
|
4
|
+
import { Image as j } from "../Image/index.js";
|
|
5
|
+
import { faChevronDown as M, faChevronUp as _ } from "@fortawesome/fontawesome-free-solid";
|
|
6
6
|
import n from "clsx";
|
|
7
|
-
const
|
|
8
|
-
({ id: e, className: l, children:
|
|
9
|
-
const [p, d] =
|
|
7
|
+
const m = S(null), x = o(
|
|
8
|
+
({ id: e, className: l, children: t, loading: a, defaultExpanded: i = !1, ...r }, g) => {
|
|
9
|
+
const [p, d] = T(i), w = I(
|
|
10
10
|
() => ({
|
|
11
|
-
loading:
|
|
11
|
+
loading: a,
|
|
12
12
|
expanded: p,
|
|
13
|
-
setExpanded: d
|
|
14
|
-
expandFully: i
|
|
13
|
+
setExpanded: d
|
|
15
14
|
}),
|
|
16
|
-
[
|
|
15
|
+
[a, p, d]
|
|
17
16
|
);
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ s(m.Provider, { value: w, children: /* @__PURE__ */ s(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
20
|
id: e,
|
|
@@ -24,81 +23,88 @@ const r = T(null), x = o(
|
|
|
24
23
|
l
|
|
25
24
|
),
|
|
26
25
|
ref: g,
|
|
27
|
-
...
|
|
28
|
-
children:
|
|
26
|
+
...r,
|
|
27
|
+
children: t
|
|
29
28
|
}
|
|
30
29
|
) });
|
|
31
30
|
}
|
|
32
|
-
), C = o(({ className: e, children: l, ...
|
|
33
|
-
const { expanded: i, setExpanded:
|
|
31
|
+
), C = o(({ className: e, children: l, ...t }, a) => {
|
|
32
|
+
const { expanded: i, setExpanded: r } = c(m) || {};
|
|
34
33
|
return /* @__PURE__ */ H(
|
|
35
34
|
"div",
|
|
36
35
|
{
|
|
37
36
|
className: n("flex h-24 pr-4 sm:pr-8", e),
|
|
38
|
-
onClick: () =>
|
|
39
|
-
ref:
|
|
40
|
-
...
|
|
37
|
+
onClick: () => r == null ? void 0 : r(!i),
|
|
38
|
+
ref: a,
|
|
39
|
+
...t,
|
|
41
40
|
children: [
|
|
42
41
|
l,
|
|
43
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ s("div", { className: "my-auto flex-none", children: /* @__PURE__ */ s(L, { icon: i ? M : _ }) })
|
|
44
43
|
]
|
|
45
44
|
}
|
|
46
45
|
);
|
|
47
|
-
}), b = o(({ children: e, className: l, ...
|
|
46
|
+
}), b = o(({ children: e, className: l, ...t }, a) => /* @__PURE__ */ s(
|
|
48
47
|
"div",
|
|
49
48
|
{
|
|
50
49
|
className: n("mx-4 my-auto grid w-full", l),
|
|
51
|
-
ref:
|
|
52
|
-
...
|
|
50
|
+
ref: a,
|
|
51
|
+
...t,
|
|
53
52
|
children: e
|
|
54
53
|
}
|
|
55
|
-
)), u = o(({ className: e, src: l, ...
|
|
54
|
+
)), u = o(({ className: e, src: l, ...t }, a) => /* @__PURE__ */ s("div", { ref: a, className: n("aspect-square flex-none p-4", e), children: /* @__PURE__ */ s(j, { src: l, className: "h-full rounded-2xl", ...t }) })), N = o(({ className: e, ...l }, t) => /* @__PURE__ */ s(
|
|
56
55
|
"p",
|
|
57
56
|
{
|
|
58
57
|
className: n("text-xxs text-light-grey truncate md:text-xs", e),
|
|
59
|
-
ref:
|
|
58
|
+
ref: t,
|
|
60
59
|
...l
|
|
61
60
|
}
|
|
62
|
-
)),
|
|
61
|
+
)), f = o(({ className: e, ...l }, t) => /* @__PURE__ */ s(
|
|
63
62
|
"p",
|
|
64
63
|
{
|
|
65
64
|
className: n("md:text-md truncate text-sm", e),
|
|
66
|
-
ref:
|
|
65
|
+
ref: t,
|
|
67
66
|
...l
|
|
68
67
|
}
|
|
69
|
-
)), h = o(({ className: e, ...l },
|
|
68
|
+
)), h = o(({ className: e, ...l }, t) => /* @__PURE__ */ s(
|
|
70
69
|
"p",
|
|
71
70
|
{
|
|
72
71
|
className: n("truncate text-xs md:text-sm", e),
|
|
73
|
-
ref:
|
|
72
|
+
ref: t,
|
|
74
73
|
...l
|
|
75
74
|
}
|
|
76
|
-
)), y = o(({ children: e, className: l, ...
|
|
77
|
-
const { expanded: i
|
|
78
|
-
return /* @__PURE__ */
|
|
75
|
+
)), y = o(({ children: e, className: l, ...t }, a) => {
|
|
76
|
+
const { expanded: i } = c(m) || {};
|
|
77
|
+
return /* @__PURE__ */ s(
|
|
79
78
|
"div",
|
|
80
79
|
{
|
|
81
80
|
className: n(
|
|
82
81
|
"w-auto overflow-scroll px-4 transition-max-height duration-300",
|
|
83
82
|
{
|
|
84
|
-
"max-h-
|
|
85
|
-
"max-h-full": i && m,
|
|
83
|
+
"max-h-[800px]": i,
|
|
86
84
|
"max-h-0": !i
|
|
87
85
|
},
|
|
88
86
|
l
|
|
89
87
|
),
|
|
90
|
-
ref:
|
|
91
|
-
...
|
|
88
|
+
ref: a,
|
|
89
|
+
...t,
|
|
92
90
|
children: e
|
|
93
91
|
}
|
|
94
92
|
);
|
|
95
|
-
}), v = o(({
|
|
93
|
+
}), v = o(({ children: e, className: l, ...t }, a) => /* @__PURE__ */ s(
|
|
94
|
+
"p",
|
|
95
|
+
{
|
|
96
|
+
className: n("text-xs md:text-sm pb-6", l),
|
|
97
|
+
ref: a,
|
|
98
|
+
...t,
|
|
99
|
+
dangerouslySetInnerHTML: { __html: e }
|
|
100
|
+
}
|
|
101
|
+
));
|
|
96
102
|
x.displayName = "Collapsible";
|
|
97
103
|
C.displayName = "Collapsible.Header";
|
|
98
104
|
y.displayName = "Collapsible.Content";
|
|
99
105
|
u.displayName = "Collapsible.Image";
|
|
100
|
-
|
|
101
|
-
|
|
106
|
+
N.displayName = "Collapsible.Label";
|
|
107
|
+
f.displayName = "Collapsible.Title";
|
|
102
108
|
h.displayName = "Collapsible.Subtitle";
|
|
103
109
|
b.displayName = "Collapsible.HeaderContent";
|
|
104
110
|
v.displayName = "Collapsible.Text";
|
|
@@ -106,8 +112,8 @@ const U = Object.assign(x, {
|
|
|
106
112
|
Header: C,
|
|
107
113
|
HeaderContent: b,
|
|
108
114
|
Image: u,
|
|
109
|
-
Label:
|
|
110
|
-
Title:
|
|
115
|
+
Label: N,
|
|
116
|
+
Title: f,
|
|
111
117
|
Subtitle: h,
|
|
112
118
|
Content: y,
|
|
113
119
|
Text: v
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as t, useState as f, useMemo as I, createContext as v, useContext as c } from "react";
|
|
3
3
|
import { Icon as i } from "../Icon/index.js";
|
|
4
|
-
import {
|
|
5
|
-
const r =
|
|
6
|
-
const [u, s] =
|
|
4
|
+
import { faChevronCircleRight as h, faChevronCircleLeft as N } from "@fortawesome/fontawesome-free-solid";
|
|
5
|
+
const r = v(null), a = t(({ children: e, count: o = 0 }, d) => {
|
|
6
|
+
const [u, s] = f(o), p = I(
|
|
7
7
|
() => ({
|
|
8
8
|
currentCount: u,
|
|
9
9
|
setCurrentCount: s
|
|
@@ -16,7 +16,7 @@ const r = f(null), a = t(({ children: e, count: o = 0 }, d) => {
|
|
|
16
16
|
return /* @__PURE__ */ n("div", { className: "my-auto cursor-pointer", children: /* @__PURE__ */ n(
|
|
17
17
|
i,
|
|
18
18
|
{
|
|
19
|
-
icon:
|
|
19
|
+
icon: N,
|
|
20
20
|
onClick: () => e == null ? void 0 : e(o - 1)
|
|
21
21
|
}
|
|
22
22
|
) });
|
|
@@ -25,7 +25,7 @@ const r = f(null), a = t(({ children: e, count: o = 0 }, d) => {
|
|
|
25
25
|
return /* @__PURE__ */ n("div", { className: "my-auto cursor-pointer", children: /* @__PURE__ */ n(
|
|
26
26
|
i,
|
|
27
27
|
{
|
|
28
|
-
icon:
|
|
28
|
+
icon: h,
|
|
29
29
|
onClick: () => e == null ? void 0 : e(o + 1)
|
|
30
30
|
}
|
|
31
31
|
) });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as s, useState as D, useRef as b, useMemo as x, createContext as y, useContext as i } from "react";
|
|
3
3
|
import { Button as d } from "../Button/index.js";
|
|
4
4
|
import { faChevronDown as v } from "@fortawesome/fontawesome-free-solid";
|
|
5
5
|
import { useClickOutside as C } from "./utils.js";
|
|
6
|
-
const a =
|
|
7
|
-
const [o, e] =
|
|
6
|
+
const a = y(null), c = s(({ children: t }, n) => {
|
|
7
|
+
const [o, e] = D(!1), l = b(null), w = x(
|
|
8
8
|
() => ({
|
|
9
9
|
showDropdown: o,
|
|
10
10
|
setShowDropdown: e
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
-
import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
|
|
3
1
|
import { HTMLAttributes } from 'react';
|
|
4
|
-
|
|
2
|
+
import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
|
|
3
|
+
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
|
5
4
|
declare const FooterNav: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
6
5
|
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
7
|
-
href?: string
|
|
6
|
+
href?: string;
|
|
8
7
|
onClick?: any;
|
|
9
8
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
9
|
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ButtonProps } from 'src/components/Button';
|
|
2
|
+
import { InputContextProps } from 'src/components/Input';
|
|
4
3
|
export interface Props {
|
|
5
4
|
id?: string;
|
|
6
5
|
className?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ImageProps } from '../Image';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
2
|
+
import { ImageProps } from 'src/components/Image';
|
|
4
3
|
declare const Gallery: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
4
|
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & ImageProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
5
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
1
|
import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
|
|
3
|
-
|
|
2
|
+
import { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core';
|
|
4
3
|
export interface IconProps {
|
|
5
4
|
className?: string;
|
|
6
5
|
icon: IconProp | IconDefinition;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ImageProps } from '../Image';
|
|
2
1
|
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
2
|
+
import { ImageProps } from 'src/components/Image';
|
|
4
3
|
declare const ImageCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
4
|
Image: import('react').ForwardRefExoticComponent<HTMLAttributes<ImageProps> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
6
5
|
Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
2
|
export interface InputContextProps {
|
|
4
3
|
autoComplete?: string;
|
|
5
4
|
disabled?: boolean;
|
|
@@ -25,7 +24,7 @@ export interface InputContextProps {
|
|
|
25
24
|
declare const Input: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
26
25
|
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
26
|
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
28
|
-
required?: boolean
|
|
27
|
+
required?: boolean;
|
|
29
28
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
30
29
|
Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
|
|
31
30
|
Validation: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as o, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef as a, useMemo as b, createContext as N, useContext as d, useRef as y } from "react";
|
|
3
3
|
import m from "clsx";
|
|
4
|
-
const s =
|
|
5
|
-
const f =
|
|
4
|
+
const s = N(null), p = a(({ children: r, errors: e, placeholder: t, ...n }, l) => {
|
|
5
|
+
const f = b(
|
|
6
6
|
() => ({
|
|
7
7
|
errors: e,
|
|
8
8
|
placeholder: t,
|
|
@@ -3,8 +3,8 @@ import { useRef as D, useEffect as J } from "react";
|
|
|
3
3
|
import { handleBoundary as j, renderMarkers as q, handleFitMarkers as C, renderInformationPopups as Q } from "./utils.js";
|
|
4
4
|
import X from "clsx";
|
|
5
5
|
import * as l from "@maptiler/sdk";
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
8
|
function G({
|
|
9
9
|
id: P,
|
|
10
10
|
markers: u,
|
|
@@ -44,8 +44,7 @@ function B(t, e) {
|
|
|
44
44
|
});
|
|
45
45
|
(i = t.current) == null || i.on("mouseenter", "places", function(o) {
|
|
46
46
|
var c, s, f, g;
|
|
47
|
-
if (!t.current)
|
|
48
|
-
return;
|
|
47
|
+
if (!t.current) return;
|
|
49
48
|
t.current.getCanvas().style.cursor = "pointer";
|
|
50
49
|
const { coordinates: r } = (s = (c = o.features) == null ? void 0 : c[0]) == null ? void 0 : s.geometry, { title: l } = (g = (f = o.features) == null ? void 0 : f[0]) == null ? void 0 : g.properties, a = `
|
|
51
50
|
<h3 class='bg-red-600 text-white'>
|
|
@@ -62,8 +61,7 @@ function B(t, e) {
|
|
|
62
61
|
}
|
|
63
62
|
async function P(t, e, u, i, n = !1, o, r, l) {
|
|
64
63
|
var f, g, y, v, h, L, S, p, I, $;
|
|
65
|
-
if (!t.current)
|
|
66
|
-
return;
|
|
64
|
+
if (!t.current) return;
|
|
67
65
|
const a = (f = t.current) == null ? void 0 : f.getSource(u), c = (g = t.current) == null ? void 0 : g.getSource(i);
|
|
68
66
|
!a && !((y = t.current) != null && y.getSource(e)) && ((v = t.current) == null || v.addSource(e, {
|
|
69
67
|
type: "geojson",
|
|
@@ -115,8 +113,7 @@ async function P(t, e, u, i, n = !1, o, r, l) {
|
|
|
115
113
|
}
|
|
116
114
|
function j(t, e) {
|
|
117
115
|
var i, n, o, r;
|
|
118
|
-
if (!e || e.length === 0)
|
|
119
|
-
return;
|
|
116
|
+
if (!e || e.length === 0) return;
|
|
120
117
|
const u = new M.LngLatBounds(
|
|
121
118
|
{
|
|
122
119
|
lat: (i = e == null ? void 0 : e[0]) == null ? void 0 : i.lat,
|