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.
Files changed (116) hide show
  1. package/lib/components/AlertBar/index.d.ts +0 -1
  2. package/lib/components/AlertBar/index.js +3 -3
  3. package/lib/components/Avatar/index.d.ts +0 -2
  4. package/lib/components/Breadcrumbs/index.d.ts +1 -2
  5. package/lib/components/Breadcrumbs/index.js +4 -4
  6. package/lib/components/Button/Button.stories.d.ts +4 -9
  7. package/lib/components/Button/index.d.ts +0 -1
  8. package/lib/components/Calendar/index.d.ts +0 -1
  9. package/lib/components/Calendar/index.js +1 -1
  10. package/lib/components/Carousel/index.d.ts +1 -2
  11. package/lib/components/Carousel/index.js +8 -8
  12. package/lib/components/CarouselThumbnail/index.d.ts +1 -2
  13. package/lib/components/CarouselThumbnail/index.js +4 -4
  14. package/lib/components/Checkbox/index.d.ts +0 -1
  15. package/lib/components/Collapsible/index.d.ts +2 -3
  16. package/lib/components/Collapsible/index.js +48 -42
  17. package/lib/components/Counter/index.d.ts +0 -1
  18. package/lib/components/Counter/index.js +6 -6
  19. package/lib/components/DetailUpdater/index.d.ts +0 -1
  20. package/lib/components/Dialog/index.d.ts +1 -2
  21. package/lib/components/Dropdown/index.d.ts +1 -2
  22. package/lib/components/Dropdown/index.js +3 -3
  23. package/lib/components/FileUploader/index.d.ts +0 -1
  24. package/lib/components/Footer/index.d.ts +0 -1
  25. package/lib/components/FooterNav/index.d.ts +3 -4
  26. package/lib/components/Form/index.d.ts +2 -3
  27. package/lib/components/Gallery/index.d.ts +1 -2
  28. package/lib/components/Icon/index.d.ts +1 -2
  29. package/lib/components/ImageCard/index.d.ts +1 -2
  30. package/lib/components/Input/index.d.ts +1 -2
  31. package/lib/components/Input/index.js +3 -3
  32. package/lib/components/Link/index.d.ts +0 -1
  33. package/lib/components/Map/index.d.ts +0 -1
  34. package/lib/components/Map/index.js +2 -2
  35. package/lib/components/Map/utils.d.ts +1 -2
  36. package/lib/components/Map/utils.js +3 -6
  37. package/lib/components/MenuButton/index.d.ts +0 -2
  38. package/lib/components/Modal/index.d.ts +0 -2
  39. package/lib/components/Nav/index.d.ts +2 -3
  40. package/lib/components/Nav/index.js +3 -3
  41. package/lib/components/NavItem/index.d.ts +4 -5
  42. package/lib/components/Pill/index.d.ts +0 -1
  43. package/lib/components/Search/index.d.ts +1 -2
  44. package/lib/components/Showcase/index.d.ts +1 -2
  45. package/lib/components/SideNav/index.d.ts +0 -1
  46. package/lib/components/SocialButton/index.d.ts +0 -2
  47. package/lib/components/SplitCard/index.d.ts +0 -1
  48. package/lib/components/SplitCard/index.js +3 -3
  49. package/lib/components/Testimonial/index.d.ts +1 -2
  50. package/lib/components/TextArea/index.d.ts +1 -2
  51. package/lib/components/TextArea/index.js +3 -3
  52. package/lib/components/Timeline/index.d.ts +0 -1
  53. package/lib/components/Tubestops/index.d.ts +0 -1
  54. package/lib/components/Tubestops/index.js +4 -4
  55. package/lib/components/Video/index.d.ts +1 -2
  56. package/lib/components/index.d.ts +37 -38
  57. package/lib/node_modules/keen-slider/react.js +261 -294
  58. package/lib/style.css +1 -1
  59. package/lib/tailwind/preset.ts +0 -1
  60. package/lib/utils/matchMedia.js +1 -2
  61. package/lib/utils/screens.js +3 -7
  62. package/package.json +36 -65
  63. package/lib/assets/sample.jpg +0 -0
  64. package/lib/assets/trepurComponentsLogo.svg +0 -32
  65. package/lib/components/Accordion/Accordion.stories.d.ts +0 -13
  66. package/lib/components/AlertBar/AlertBar.stories.d.ts +0 -25
  67. package/lib/components/Avatar/Avatar.stories.d.ts +0 -10
  68. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -20
  69. package/lib/components/Calendar/Calendar.stories.d.ts +0 -11
  70. package/lib/components/Calendar/style.css.js +0 -1
  71. package/lib/components/Card/Card.stories.d.ts +0 -11
  72. package/lib/components/Carousel/Carousel.stories.d.ts +0 -21
  73. package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +0 -22
  74. package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -17
  75. package/lib/components/Collapsible/Collapsible.stories.d.ts +0 -23
  76. package/lib/components/Counter/Counter.stories.d.ts +0 -17
  77. package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +0 -18
  78. package/lib/components/Dialog/Dialog.stories.d.ts +0 -15
  79. package/lib/components/Dropdown/Dropdown.stories.d.ts +0 -17
  80. package/lib/components/FileUploader/FileUploader.stories.d.ts +0 -18
  81. package/lib/components/Footer/Footer.stories.d.ts +0 -19
  82. package/lib/components/FooterNav/FooterNav.stories.d.ts +0 -22
  83. package/lib/components/Form/Form.stories.d.ts +0 -66
  84. package/lib/components/Gallery/Gallery.stories.d.ts +0 -16
  85. package/lib/components/Greeting/Greeting.stories.d.ts +0 -13
  86. package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +0 -12
  87. package/lib/components/Icon/Icon.stories.d.ts +0 -16
  88. package/lib/components/Image/Image.stories.d.ts +0 -13
  89. package/lib/components/ImageCard/ImageCard.stories.d.ts +0 -23
  90. package/lib/components/Input/Input.stories.d.ts +0 -21
  91. package/lib/components/Link/Link.stories.d.ts +0 -30
  92. package/lib/components/Map/Map.stories.d.ts +0 -18
  93. package/lib/components/Map/map.css.js +0 -1
  94. package/lib/components/MenuButton/MenuButton.stories.d.ts +0 -28
  95. package/lib/components/Modal/Modal.stories.d.ts +0 -67
  96. package/lib/components/Nav/Nav.stories.d.ts +0 -32
  97. package/lib/components/NavItem/NavItem.stories.d.ts +0 -22
  98. package/lib/components/Pill/Pill.stories.d.ts +0 -26
  99. package/lib/components/Search/Search.stories.d.ts +0 -44
  100. package/lib/components/Select/Select.stories.d.ts +0 -24
  101. package/lib/components/Showcase/Showcase.stories.d.ts +0 -17
  102. package/lib/components/SideNav/SideNav.stories.d.ts +0 -40
  103. package/lib/components/SocialButton/SocialButton.stories.d.ts +0 -83
  104. package/lib/components/SplitCard/SplitCard.stories.d.ts +0 -21
  105. package/lib/components/Stars/Stars.stories.d.ts +0 -14
  106. package/lib/components/Testimonial/Testimonial.stories.d.ts +0 -21
  107. package/lib/components/TextArea/TextArea.stories.d.ts +0 -21
  108. package/lib/components/Timeline/Timeline.stories.d.ts +0 -21
  109. package/lib/components/Tubestops/Tubestops.stories.d.ts +0 -24
  110. package/lib/components/Video/Video.stories.d.ts +0 -23
  111. package/lib/documentation/assets/index.d.ts +0 -3
  112. package/lib/documentation/components/ThemeColours.d.ts +0 -20
  113. package/lib/documentation/typography/Fonts/Fonts.d.ts +0 -2
  114. package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +0 -10
  115. package/lib/node_modules/@maptiler/sdk/dist/maptiler-sdk.css.js +0 -1
  116. package/lib/node_modules/keen-slider/keen-slider.min.css.js +0 -1
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface AlertbarContextProps {
4
3
  variant?: 'success' | 'warning' | 'error' | 'info';
5
4
  loading?: boolean;
@@ -1,10 +1,10 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { createContext as b, forwardRef as o, useMemo as h, useContext as l } from "react";
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 = b(null), f = o(
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 = h(
16
+ const x = b(
17
17
  () => ({
18
18
  dismiss: n,
19
19
  loading: i
@@ -1,3 +1 @@
1
- import { default as React } from 'react';
2
-
3
1
  export declare const Avatar: React.FC;
@@ -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 | undefined;
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 { createContext as p, forwardRef as n, useMemo as d, useContext as i, Children as v } from "react";
3
- const b = p(null), f = p(null), x = n(({ children: e, ...r }, t) => {
4
- const a = d(
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 = d(
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 { StoryObj } from '@storybook/react';
2
- import { Button } from './';
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('./').ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
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,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface ButtonProps {
4
3
  variant?: 'primary' | 'secondary' | 'ghost' | 'bordered' | 'basic';
5
4
  disabled?: boolean;
@@ -1,4 +1,3 @@
1
-
2
1
  export type Detail = 'month' | 'year' | 'decade' | 'century';
3
2
  export interface CalendarProps {
4
3
  onChange?: () => void;
@@ -1,7 +1,7 @@
1
1
  import { jsx as C } from "react/jsx-runtime";
2
2
  import { forwardRef as g, useState as w } from "react";
3
3
  import y from "react-calendar";
4
- import "./style.css.js";
4
+ /* empty css */
5
5
  const o = g(
6
6
  ({
7
7
  onChange: i,
@@ -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 { createContext as z, forwardRef as m, useState as g, useMemo as I, useContext as x } from "react";
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 { faChevronRight as K, faChevronLeft as L, faCircle as T } from "@fortawesome/fontawesome-free-solid";
4
+ import { faCircle as K, faChevronRight as L, faChevronLeft as T } from "@fortawesome/fontawesome-free-solid";
5
5
  import u from "clsx";
6
- import "../../node_modules/keen-slider/keen-slider.min.css.js";
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 = z(null), b = m(
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 = I(
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 || l.next()) : c.stopPropagation() !== void 0 || ((a = r.current) == null || a.prev());
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 ? K : L, size: "3x" })
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: T,
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 { createContext as x, forwardRef as o, useMemo as v, useContext as N } from "react";
2
+ import { forwardRef as o, useMemo as x, createContext as v, useContext as N } from "react";
3
3
  import t from "clsx";
4
- import "../../node_modules/keen-slider/keen-slider.min.css.js";
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 = x(null), u = o(({ children: r, className: l, ...e }, s) => {
9
- const n = v(
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,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface CheckboxProps {
4
3
  label?: string;
5
4
  onClick?: (isChecked: boolean) => void;
@@ -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
- expandFully?: boolean;
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 t, jsxs as H } from "react/jsx-runtime";
2
- import { createContext as T, forwardRef as o, useState as I, useMemo as S, useContext as c } from "react";
3
- import { Icon as j } from "../Icon/index.js";
4
- import { Image as L } from "../Image/index.js";
5
- import { faChevronDown as k, faChevronUp as q } from "@fortawesome/fontawesome-free-solid";
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 r = T(null), x = o(
8
- ({ id: e, className: l, children: a, loading: s, expandFully: i = !1, ...m }, g) => {
9
- const [p, d] = I(!1), w = S(
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: s,
11
+ loading: a,
12
12
  expanded: p,
13
- setExpanded: d,
14
- expandFully: i
13
+ setExpanded: d
15
14
  }),
16
- [s, p, d]
15
+ [a, p, d]
17
16
  );
18
- return /* @__PURE__ */ t(r.Provider, { value: w, children: /* @__PURE__ */ t(
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
- ...m,
28
- children: a
26
+ ...r,
27
+ children: t
29
28
  }
30
29
  ) });
31
30
  }
32
- ), C = o(({ className: e, children: l, ...a }, s) => {
33
- const { expanded: i, setExpanded: m } = c(r) || {};
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: () => m == null ? void 0 : m(!i),
39
- ref: s,
40
- ...a,
37
+ onClick: () => r == null ? void 0 : r(!i),
38
+ ref: a,
39
+ ...t,
41
40
  children: [
42
41
  l,
43
- /* @__PURE__ */ t("div", { className: "my-auto flex-none", children: /* @__PURE__ */ t(j, { icon: i ? k : q }) })
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, ...a }, s) => /* @__PURE__ */ t(
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: s,
52
- ...a,
50
+ ref: a,
51
+ ...t,
53
52
  children: e
54
53
  }
55
- )), u = o(({ className: e, src: l, ...a }, s) => /* @__PURE__ */ t("div", { ref: s, className: n("aspect-square flex-none p-4", e), children: /* @__PURE__ */ t(L, { src: l, className: "h-full rounded-2xl", ...a }) })), f = o(({ className: e, ...l }, a) => /* @__PURE__ */ t(
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: a,
58
+ ref: t,
60
59
  ...l
61
60
  }
62
- )), N = o(({ className: e, ...l }, a) => /* @__PURE__ */ t(
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: a,
65
+ ref: t,
67
66
  ...l
68
67
  }
69
- )), h = o(({ className: e, ...l }, a) => /* @__PURE__ */ t(
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: a,
72
+ ref: t,
74
73
  ...l
75
74
  }
76
- )), y = o(({ children: e, className: l, ...a }, s) => {
77
- const { expanded: i, expandFully: m } = c(r) || {};
78
- return /* @__PURE__ */ t(
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-32": i && !m,
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: s,
91
- ...a,
88
+ ref: a,
89
+ ...t,
92
90
  children: e
93
91
  }
94
92
  );
95
- }), v = o(({ className: e, ...l }, a) => /* @__PURE__ */ t("p", { className: n("text-xs md:text-sm", e), ref: a, ...l }));
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
- f.displayName = "Collapsible.Label";
101
- N.displayName = "Collapsible.Title";
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: f,
110
- Title: N,
115
+ Label: N,
116
+ Title: f,
111
117
  Subtitle: h,
112
118
  Content: y,
113
119
  Text: v
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface CounterContextProps {
4
3
  currentCount?: number;
5
4
  setCurrentCount?: (val: number) => void;
@@ -1,9 +1,9 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { createContext as f, forwardRef as t, useState as I, useMemo as v, useContext as c } from "react";
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 { faChevronCircleLeft as h, faChevronCircleRight as N } from "@fortawesome/fontawesome-free-solid";
5
- const r = f(null), a = t(({ children: e, count: o = 0 }, d) => {
6
- const [u, s] = I(o), p = v(
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: h,
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: N,
28
+ icon: h,
29
29
  onClick: () => e == null ? void 0 : e(o + 1)
30
30
  }
31
31
  ) });
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface DetailUpdatesProps {
3
2
  id?: string;
4
3
  className?: string;
@@ -1,5 +1,4 @@
1
- import { ButtonProps } from '../Button';
2
-
1
+ import { ButtonProps } from 'src/components/Button';
3
2
  export interface DialogProps extends Partial<Pick<HTMLElement, 'className' | 'id'>> {
4
3
  title: string;
5
4
  paragraph: string;
@@ -1,6 +1,5 @@
1
- import { ButtonProps } from '../Button';
2
1
  import { HTMLAttributes } from 'react';
3
-
2
+ import { ButtonProps } from 'src/components/Button';
4
3
  export interface DropdownContextProps {
5
4
  showDropdown?: boolean;
6
5
  setShowDropdown?: (val: boolean) => void;
@@ -1,10 +1,10 @@
1
1
  import { jsx as r, jsxs as f } from "react/jsx-runtime";
2
- import { createContext as D, forwardRef as s, useState as b, useRef as x, useMemo as y, useContext as i } from "react";
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 = D(null), c = s(({ children: t }, n) => {
7
- const [o, e] = b(!1), l = x(null), w = y(
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,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface FileUploaderContextProps {
4
3
  fileList?: any;
5
4
  setFileList: (open: any) => void;
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface Props {
4
3
  id?: string;
5
4
  className?: string;
@@ -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 | undefined;
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 { InputContextProps } from '../Input';
2
- import { ButtonProps } from '../Button';
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 | undefined;
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 { createContext as b, forwardRef as a, useMemo as N, useRef as y, useContext as d } from "react";
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 = b(null), p = a(({ children: r, errors: e, placeholder: t, ...n }, l) => {
5
- const f = N(
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,
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export interface LinkProps {
4
3
  variant?: 'primary' | 'secondary' | 'ghost' | 'bordered' | 'basic';
5
4
  loading?: boolean;
@@ -1,5 +1,4 @@
1
1
  import { Marker } from './types';
2
-
3
2
  import * as maptilersdk from '@maptiler/sdk';
4
3
  interface MapProps {
5
4
  id: string;
@@ -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
- import "../../node_modules/@maptiler/sdk/dist/maptiler-sdk.css.js";
7
- import "./map.css.js";
6
+ /* empty css */
7
+ /* empty css */
8
8
  function G({
9
9
  id: P,
10
10
  markers: u,
@@ -1,6 +1,5 @@
1
- import { Marker } from './types';
2
1
  import { MutableRefObject } from 'react';
3
-
2
+ import { Marker } from './types';
4
3
  import * as maptilersdk from '@maptiler/sdk';
5
4
  export interface FeatureGeometry {
6
5
  type: string;
@@ -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,
@@ -1,5 +1,3 @@
1
- import { default as React } from 'react';
2
-
3
1
  export interface Props {
4
2
  id?: string;
5
3
  className?: string;