trepur_components 2.3.47 → 2.3.49

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 (96) hide show
  1. package/lib/assets/trepurComponentsLogo.svg +32 -0
  2. package/lib/components/Accordion/Accordion.stories.d.ts +1 -1
  3. package/lib/components/AlertBar/AlertBar.stories.d.ts +1 -1
  4. package/lib/components/AlertBar/index.js +6 -6
  5. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -2
  6. package/lib/components/Breadcrumbs/index.d.ts +1 -1
  7. package/lib/components/Breadcrumbs/index.js +4 -4
  8. package/lib/components/Button/Button.stories.d.ts +1 -1
  9. package/lib/components/Button/index.js +16 -15
  10. package/lib/components/Calendar/Calendar.stories.d.ts +1 -1
  11. package/lib/components/Calendar/index.js +1 -1
  12. package/lib/components/Card/Card.stories.d.ts +1 -1
  13. package/lib/components/Card/index.js +18 -23
  14. package/lib/components/Carousel/Carousel.stories.d.ts +1 -1
  15. package/lib/components/Carousel/index.d.ts +1 -1
  16. package/lib/components/Carousel/index.js +44 -44
  17. package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +1 -1
  18. package/lib/components/CarouselThumbnail/index.d.ts +1 -1
  19. package/lib/components/CarouselThumbnail/index.js +33 -32
  20. package/lib/components/Checkbox/Checkbox.stories.d.ts +1 -1
  21. package/lib/components/Collapsible/Collapsible.stories.d.ts +1 -1
  22. package/lib/components/Collapsible/index.d.ts +2 -2
  23. package/lib/components/Collapsible/index.js +40 -42
  24. package/lib/components/Counter/Counter.stories.d.ts +1 -1
  25. package/lib/components/Counter/index.js +6 -6
  26. package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +1 -1
  27. package/lib/components/DetailUpdater/index.d.ts +0 -1
  28. package/lib/components/Dropdown/Dropdown.stories.d.ts +1 -1
  29. package/lib/components/Dropdown/index.d.ts +1 -1
  30. package/lib/components/Dropdown/index.js +34 -32
  31. package/lib/components/FileUploader/FileUploader.stories.d.ts +1 -1
  32. package/lib/components/Footer/Footer.stories.d.ts +1 -1
  33. package/lib/components/FooterNav/FooterNav.stories.d.ts +3 -3
  34. package/lib/components/FooterNav/index.d.ts +3 -3
  35. package/lib/components/FooterNav/index.js +6 -5
  36. package/lib/components/Form/Form.stories.d.ts +1 -1
  37. package/lib/components/Form/index.d.ts +1 -1
  38. package/lib/components/Gallery/Gallery.stories.d.ts +1 -1
  39. package/lib/components/Gallery/index.d.ts +1 -1
  40. package/lib/components/Greeting/Greeting.stories.d.ts +1 -1
  41. package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +1 -1
  42. package/lib/components/Icon/Icon.stories.d.ts +1 -1
  43. package/lib/components/Icon/index.d.ts +1 -1
  44. package/lib/components/Image/Image.stories.d.ts +1 -1
  45. package/lib/components/ImageCard/ImageCard.stories.d.ts +1 -1
  46. package/lib/components/ImageCard/index.d.ts +1 -1
  47. package/lib/components/ImageCard/index.js +10 -9
  48. package/lib/components/Input/Input.stories.d.ts +3 -3
  49. package/lib/components/Input/index.d.ts +2 -2
  50. package/lib/components/Input/index.js +22 -21
  51. package/lib/components/Link/Link.stories.d.ts +1 -2
  52. package/lib/components/Link/index.js +18 -17
  53. package/lib/components/Map/Map.stories.d.ts +1 -1
  54. package/lib/components/Map/index.js +2 -2
  55. package/lib/components/Map/utils.d.ts +1 -1
  56. package/lib/components/Map/utils.js +3 -6
  57. package/lib/components/MenuButton/MenuButton.stories.d.ts +1 -1
  58. package/lib/components/Nav/Nav.stories.d.ts +2 -2
  59. package/lib/components/Nav/index.d.ts +2 -2
  60. package/lib/components/Nav/index.js +49 -49
  61. package/lib/components/NavItem/NavItem.stories.d.ts +5 -5
  62. package/lib/components/NavItem/index.d.ts +4 -4
  63. package/lib/components/Pill/Pill.stories.d.ts +1 -1
  64. package/lib/components/Pill/index.js +6 -6
  65. package/lib/components/Search/Search.stories.d.ts +1 -1
  66. package/lib/components/Select/Select.stories.d.ts +1 -1
  67. package/lib/components/Showcase/Showcase.stories.d.ts +1 -1
  68. package/lib/components/Showcase/index.d.ts +1 -1
  69. package/lib/components/SideNav/SideNav.stories.d.ts +1 -1
  70. package/lib/components/SocialButton/SocialButton.stories.d.ts +1 -1
  71. package/lib/components/SplitCard/SplitCard.stories.d.ts +1 -1
  72. package/lib/components/SplitCard/index.js +3 -3
  73. package/lib/components/Stars/Stars.stories.d.ts +1 -1
  74. package/lib/components/Testimonial/Testimonial.stories.d.ts +1 -1
  75. package/lib/components/Testimonial/index.d.ts +1 -1
  76. package/lib/components/TextArea/TextArea.stories.d.ts +2 -2
  77. package/lib/components/TextArea/index.d.ts +1 -1
  78. package/lib/components/TextArea/index.js +3 -3
  79. package/lib/components/Timeline/Timeline.stories.d.ts +1 -1
  80. package/lib/components/Timeline/index.js +14 -14
  81. package/lib/components/Tubestops/Tubestops.stories.d.ts +1 -1
  82. package/lib/components/Tubestops/index.js +58 -61
  83. package/lib/components/Video/Video.stories.d.ts +1 -1
  84. package/lib/components/Video/index.d.ts +1 -1
  85. package/lib/components/index.d.ts +37 -37
  86. package/lib/documentation/assets/index.d.ts +1 -1
  87. package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +1 -1
  88. package/lib/node_modules/keen-slider/react.js +261 -294
  89. package/lib/style.css +1 -1
  90. package/lib/utils/matchMedia.js +1 -2
  91. package/lib/utils/screens.js +3 -7
  92. package/package.json +2 -2
  93. package/lib/components/Calendar/style.css.js +0 -1
  94. package/lib/components/Map/map.css.js +0 -1
  95. package/lib/node_modules/@maptiler/sdk/dist/maptiler-sdk.css.js +0 -1
  96. package/lib/node_modules/keen-slider/keen-slider.min.css.js +0 -1
@@ -1,5 +1,5 @@
1
- import { StoryObj } from '@storybook/react';
2
1
  import { FileUploader } from './';
2
+ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { StoryObj } from '@storybook/react';
2
1
  import { Footer } from './';
2
+ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,16 +1,16 @@
1
- import { StoryObj } from '@storybook/react';
2
1
  import { FooterNav } from './';
2
+ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
6
6
  component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
7
7
  Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
8
- href?: string | undefined;
8
+ href?: string;
9
9
  onClick?: any;
10
10
  } & import('react').RefAttributes<HTMLDivElement>>;
11
11
  Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
12
  Icon: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
13
- icon: import('@fortawesome/fontawesome-svg-core').IconProp | import('@fortawesome/fontawesome-free-solid').IconDefinition;
13
+ icon: import('@fortawesome/fontawesome-free-solid').IconDefinition | import('@fortawesome/fontawesome-svg-core').IconProp;
14
14
  } & import('react').RefAttributes<HTMLDivElement>>;
15
15
  };
16
16
  args: {
@@ -1,10 +1,10 @@
1
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
- import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
3
1
  import { HTMLAttributes } from 'react';
2
+ import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
3
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
4
4
 
5
5
  declare const FooterNav: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
6
6
  Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
7
- href?: string | undefined;
7
+ href?: string;
8
8
  onClick?: any;
9
9
  } & import('react').RefAttributes<HTMLDivElement>>;
10
10
  Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as n } from "react";
3
3
  import s from "clsx";
4
- import { Icon as N } from "../Icon/index.js";
4
+ import { Icon as d } from "../Icon/index.js";
5
5
  const l = n(({ className: o, children: e, ...t }, r) => /* @__PURE__ */ a(
6
6
  "div",
7
7
  {
@@ -13,9 +13,10 @@ const l = n(({ className: o, children: e, ...t }, r) => /* @__PURE__ */ a(
13
13
  ...t,
14
14
  children: e
15
15
  }
16
- )), m = n(({ className: o, children: e, href: t, onClick: r, ...p }) => /* @__PURE__ */ a(
16
+ )), m = n(({ className: o, children: e, href: t, onClick: r, ...p }, N) => /* @__PURE__ */ a(
17
17
  "div",
18
18
  {
19
+ ref: N,
19
20
  className: s(
20
21
  "group w-full cursor-pointer py-2 text-center transition-all duration-500",
21
22
  o
@@ -31,16 +32,16 @@ const l = n(({ className: o, children: e, ...t }, r) => /* @__PURE__ */ a(
31
32
  ...t,
32
33
  children: e
33
34
  }
34
- )), c = n(({ icon: o, ...e }) => /* @__PURE__ */ a(N, { icon: o, ...e }));
35
+ )), c = n(({ icon: o, ...e }, t) => /* @__PURE__ */ a(d, { icon: o, ref: t, ...e }));
35
36
  l.displayName = "FooterNav";
36
37
  m.displayName = "FooterNav.Item";
37
38
  c.displayName = "FooterNav.Icon";
38
39
  i.displayName = "FooterNav.Label";
39
- const x = Object.assign(l, {
40
+ const F = Object.assign(l, {
40
41
  Item: m,
41
42
  Label: i,
42
43
  Icon: c
43
44
  });
44
45
  export {
45
- x as FooterNav
46
+ F as FooterNav
46
47
  };
@@ -1,5 +1,5 @@
1
- import { Form } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { Form } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { InputContextProps } from '../Input';
2
1
  import { ButtonProps } from '../Button';
2
+ import { InputContextProps } from '../Input';
3
3
 
4
4
  export interface Props {
5
5
  id?: string;
@@ -1,5 +1,5 @@
1
- import { StoryObj } from '@storybook/react';
2
1
  import { Gallery } from './';
2
+ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { ImageProps } from '../Image';
2
1
  import { HTMLAttributes } from 'react';
2
+ import { ImageProps } from '../Image';
3
3
 
4
4
  declare const Gallery: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
5
5
  Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & ImageProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
- import { StoryObj } from '@storybook/react';
2
1
  import { Greeting } from './';
2
+ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { HamburgerIcon } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { HamburgerIcon } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { StoryObj } from '@storybook/react';
2
1
  import { Icon } from './';
2
+ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core';
2
1
  import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
2
+ import { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core';
3
3
 
4
4
  export interface IconProps {
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
- import { Image } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { Image } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { ImageCard } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { ImageCard } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { ImageProps } from '../Image';
2
1
  import { HTMLAttributes } from 'react';
2
+ import { ImageProps } from '../Image';
3
3
 
4
4
  declare const ImageCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
5
5
  Image: import('react').ForwardRefExoticComponent<HTMLAttributes<ImageProps> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
@@ -1,35 +1,36 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
3
  import { Image as N } from "../Image/index.js";
4
- import s from "clsx";
4
+ import r from "clsx";
5
5
  import { Button as f } from "../Button/index.js";
6
- const d = o(({ className: a, children: e, onClick: t, ...r }, I) => /* @__PURE__ */ m(
6
+ const d = o(({ className: a, children: e, onClick: t, ...s }, I) => /* @__PURE__ */ m(
7
7
  "div",
8
8
  {
9
9
  ref: I,
10
- className: s(
10
+ className: r(
11
11
  "grid overflow-hidden rounded-xl bg-white drop-shadow",
12
12
  a
13
13
  ),
14
14
  onClick: t,
15
- ...r,
15
+ ...s,
16
16
  children: e
17
17
  }
18
- )), n = o(({ src: a, ...e }) => /* @__PURE__ */ m("div", { className: "h-64", children: /* @__PURE__ */ m(N, { className: "object-cover", src: a, ...e }) })), l = o(({ children: a, className: e, ...t }, r) => /* @__PURE__ */ m("div", { className: s("p-4 pt-2", e), ref: r, ...t, children: a })), i = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: s("text-sm font-bold", a), ref: t, ...e })), p = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: s("text-sm font-normal", a), ref: t, ...e })), c = o(({ className: a, ...e }, t) => /* @__PURE__ */ m(
18
+ )), n = o(({ src: a, ...e }, t) => /* @__PURE__ */ m("div", { ref: t, className: "h-64", children: /* @__PURE__ */ m(N, { className: "object-cover", src: a, ...e }) })), l = o(({ children: a, className: e, ...t }, s) => /* @__PURE__ */ m("div", { className: r("p-4 pt-2", e), ref: s, ...t, children: a })), i = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: r("text-sm font-bold", a), ref: t, ...e })), p = o(({ className: a, ...e }, t) => /* @__PURE__ */ m("p", { className: r("text-sm font-normal", a), ref: t, ...e })), c = o(({ className: a, ...e }, t) => /* @__PURE__ */ m(
19
19
  "p",
20
20
  {
21
- className: s("line-clamp-5 pt-2 text-md font-normal", a),
21
+ className: r("line-clamp-5 pt-2 text-md font-normal", a),
22
22
  ref: t,
23
23
  ...e
24
24
  }
25
- )), g = o(({ children: a, className: e, ...t }) => /* @__PURE__ */ m(
25
+ )), g = o(({ children: a, className: e, ...t }, s) => /* @__PURE__ */ m(
26
26
  f,
27
27
  {
28
- className: s("mt-4 my-auto w-full justify-center", e),
28
+ ref: s,
29
+ className: r("mt-4 my-auto w-full justify-center", e),
29
30
  ...t,
30
31
  children: a
31
32
  }
32
- )), C = o(({ children: a, className: e, ...t }) => /* @__PURE__ */ m("p", { className: s("pt-4 text-end text-sm", e), ...t, children: a }));
33
+ )), C = o(({ children: a, className: e, ...t }, s) => /* @__PURE__ */ m("p", { ref: s, className: r("pt-4 text-end text-sm", e), ...t, children: a }));
33
34
  d.displayName = "ImageCard";
34
35
  n.displayName = "ImageCard.Image";
35
36
  i.displayName = "ImageCard.Title";
@@ -1,14 +1,14 @@
1
- import { Input } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { Input } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
6
6
  component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
7
  Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
8
  Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
9
- required?: boolean | undefined;
9
+ required?: boolean;
10
10
  } & import('react').RefAttributes<HTMLDivElement>>;
11
- Box: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ Box: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
12
12
  Validation: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
13
  };
14
14
  args: {
@@ -25,9 +25,9 @@ export interface InputContextProps {
25
25
  declare const Input: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
26
26
  Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
27
27
  Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
28
- required?: boolean | undefined;
28
+ required?: boolean;
29
29
  } & import('react').RefAttributes<HTMLDivElement>>;
30
- Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
30
+ Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
31
31
  Validation: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
32
32
  };
33
33
  export { Input };
@@ -1,69 +1,70 @@
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: n, errors: e, placeholder: t, ...r }, 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,
9
- ...r
9
+ ...n
10
10
  }),
11
- [e, r]
11
+ [e, n]
12
12
  );
13
- return /* @__PURE__ */ o(s.Provider, { value: f, children: /* @__PURE__ */ o("div", { ref: l, children: n }) });
13
+ return /* @__PURE__ */ o(s.Provider, { value: f, children: /* @__PURE__ */ o("div", { ref: l, children: r }) });
14
14
  }), u = a(
15
- ({ children: n, ...e }, t) => {
16
- const r = y(null);
15
+ ({ children: r, ...e }, t) => {
16
+ const n = y(null);
17
17
  return /* @__PURE__ */ o(
18
18
  "div",
19
19
  {
20
20
  className: "mt-4 w-full",
21
21
  onClick: () => {
22
22
  var l;
23
- return (l = r.current) == null ? void 0 : l.focus();
23
+ return (l = n.current) == null ? void 0 : l.focus();
24
24
  },
25
25
  ref: t,
26
26
  ...e,
27
- children: n
27
+ children: r
28
28
  }
29
29
  );
30
30
  }
31
- ), i = a(({ className: n, children: e, required: t = !1 }, r) => /* @__PURE__ */ I(
31
+ ), i = a(({ className: r, children: e, required: t = !1 }, n) => /* @__PURE__ */ I(
32
32
  "div",
33
33
  {
34
- ref: r,
35
- className: m("flex px-1 text-sm font-normal leading-5", n),
34
+ ref: n,
35
+ className: m("flex px-1 text-sm font-normal leading-5", r),
36
36
  children: [
37
37
  /* @__PURE__ */ o("p", { children: e }),
38
38
  t && /* @__PURE__ */ o("p", { className: "text-sm font-normal", children: " *" })
39
39
  ]
40
40
  }
41
41
  )), c = a(
42
- ({ ...n }) => {
43
- const { errors: e, placeholder: t } = d(s) || {};
42
+ ({ ...r }, e) => {
43
+ const { errors: t, placeholder: n } = d(s) || {};
44
44
  return /* @__PURE__ */ o(
45
45
  "input",
46
46
  {
47
- placeholder: t,
47
+ ref: e,
48
+ placeholder: n,
48
49
  className: m(
49
50
  "text-ink text-md w-full rounded-md border border-gray-300 bg-white py-2 pl-4",
50
51
  {
51
- "border-error border-2": e != null
52
+ "border-error border-2": t != null
52
53
  }
53
54
  ),
54
- ...n
55
+ ...r
55
56
  }
56
57
  );
57
58
  }
58
- ), x = a(({ ...n }, e) => {
59
+ ), x = a(({ ...r }, e) => {
59
60
  const { errors: t } = d(s) || {};
60
61
  return /* @__PURE__ */ o(
61
62
  "div",
62
63
  {
63
64
  ref: e,
64
65
  className: "text-md gap-y-2 pl-1 pt-2 font-semibold text-error-default",
65
- ...n,
66
- children: t == null ? void 0 : t.map((r, l) => /* @__PURE__ */ o("p", { children: r }, `error-msg-${l + 1}`))
66
+ ...r,
67
+ children: t == null ? void 0 : t.map((n, l) => /* @__PURE__ */ o("p", { children: n }, `error-msg-${l + 1}`))
67
68
  }
68
69
  );
69
70
  });
@@ -1,5 +1,5 @@
1
- import { Link } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { Link } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -26,6 +26,5 @@ export declare const Ghost: Story;
26
26
  export declare const Basic: Story;
27
27
  export declare const Loading: Story;
28
28
  export declare const Small: Story;
29
- export declare const Medium: Story;
30
29
  export declare const Large: Story;
31
30
  export declare const Download: Story;
@@ -1,6 +1,6 @@
1
- import { jsx as b } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as a } from "react";
3
- import { Icon as x } from "../Icon/index.js";
3
+ import { Icon as h } from "../Icon/index.js";
4
4
  import c from "clsx";
5
5
  const i = a(
6
6
  ({
@@ -8,15 +8,16 @@ const i = a(
8
8
  children: e,
9
9
  loading: t = !1,
10
10
  variant: r = "primary",
11
- size: n = "sm",
11
+ size: b = "sm",
12
12
  downloadFileName: s,
13
- href: g,
13
+ href: m,
14
14
  target: u,
15
15
  ...p
16
- }) => /* @__PURE__ */ b("div", { className: "inline-block", children: /* @__PURE__ */ b(
16
+ }, x) => /* @__PURE__ */ n(
17
17
  "a",
18
18
  {
19
- href: g,
19
+ ref: x,
20
+ href: m,
20
21
  target: u,
21
22
  ...s && { download: s },
22
23
  className: c(
@@ -29,24 +30,24 @@ const i = a(
29
30
  "border-button-bordered-border text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "bordered" && !t,
30
31
  "border-button-basic-border bg-button-basic-bg text-button-basic-text hover:bg-button-basic-hover active:bg-button-basic-active": r === "basic" && !t,
31
32
  "w-40 animate-pulse border-loading bg-loading": t,
32
- "px-12 py-3 text-base font-normal leading-4": n === "sm",
33
- "px-12 py-3 text-lg font-normal leading-8": n === "md",
34
- "px-12 py-4 text-xl font-normal leading-8": n === "lg"
33
+ "px-12 py-3 text-base font-normal leading-4": b === "sm",
34
+ "px-12 py-3 text-lg font-normal leading-8": b === "md",
35
+ "px-12 py-4 text-xl font-normal leading-8": b === "lg"
35
36
  },
36
37
  o
37
38
  ),
38
39
  ...p,
39
40
  children: !t && e
40
41
  }
41
- ) })
42
- ), d = a(({ className: o, ...e }, t) => /* @__PURE__ */ b("p", { className: c("text-md", o), ref: t, ...e })), m = a(({ icon: o }, e) => /* @__PURE__ */ b(x, { size: "md", ref: e, icon: o }));
42
+ )
43
+ ), g = a(({ className: o, ...e }, t) => /* @__PURE__ */ n("p", { className: c("text-md", o), ref: t, ...e })), d = a(({ icon: o }, e) => /* @__PURE__ */ n(h, { size: "lg", ref: e, icon: o }));
43
44
  i.displayName = "Link";
44
- m.displayName = "Link.Icon";
45
- d.displayName = "Link.Label";
46
- const f = Object.assign(i, {
47
- Icon: m,
48
- Label: d
45
+ d.displayName = "Link.Icon";
46
+ g.displayName = "Link.Label";
47
+ const L = Object.assign(i, {
48
+ Icon: d,
49
+ Label: g
49
50
  });
50
51
  export {
51
- f as Link
52
+ L as Link
52
53
  };
@@ -1,5 +1,5 @@
1
- import { Map } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { Map } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: 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,5 +1,5 @@
1
- import { Marker } from './types';
2
1
  import { MutableRefObject } from 'react';
2
+ import { Marker } from './types';
3
3
 
4
4
  import * as maptilersdk from '@maptiler/sdk';
5
5
  export interface FeatureGeometry {
@@ -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,5 @@
1
- import { MenuButton } from '.';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { MenuButton } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -1,5 +1,5 @@
1
- import { Nav } from '..';
2
1
  import { StoryObj } from '@storybook/react';
2
+ import { Nav } from '..';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
@@ -12,7 +12,7 @@ declare const meta: {
12
12
  Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
13
  Folder: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
14
14
  label: string;
15
- active?: boolean | undefined;
15
+ active?: boolean;
16
16
  } & import('react').RefAttributes<HTMLDivElement>>;
17
17
  };
18
18
  parameters: {
@@ -1,5 +1,5 @@
1
- import { ImageProps } from '../Image';
2
1
  import { HTMLAttributes } from 'react';
2
+ import { ImageProps } from '../Image';
3
3
 
4
4
  export interface NavContextProps {
5
5
  expanded?: boolean;
@@ -15,7 +15,7 @@ declare const Nav: import('react').ForwardRefExoticComponent<HTMLAttributes<HTML
15
15
  Body: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
16
16
  Folder: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
17
17
  label: string;
18
- active?: boolean | undefined;
18
+ active?: boolean;
19
19
  } & import('react').RefAttributes<HTMLDivElement>>;
20
20
  };
21
21
  export { Nav };