trepur_components 2.4.1 → 2.4.3

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 (97) hide show
  1. package/lib/components/Accordion/Accordion.stories.d.ts +13 -0
  2. package/lib/components/AlertBar/AlertBar.stories.d.ts +25 -0
  3. package/lib/components/AlertBar/index.d.ts +1 -0
  4. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  5. package/lib/components/Avatar/index.d.ts +2 -0
  6. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +20 -0
  7. package/lib/components/Breadcrumbs/index.d.ts +1 -0
  8. package/lib/components/Button/Button.stories.d.ts +10 -7
  9. package/lib/components/Button/index.d.ts +2 -3
  10. package/lib/components/Button/index.js +22 -11
  11. package/lib/components/Calendar/Calendar.stories.d.ts +11 -0
  12. package/lib/components/Calendar/index.d.ts +1 -0
  13. package/lib/components/Card/Card.stories.d.ts +11 -0
  14. package/lib/components/Carousel/Carousel.stories.d.ts +21 -0
  15. package/lib/components/Carousel/index.d.ts +1 -0
  16. package/lib/components/Carousel/index.js +1 -1
  17. package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +22 -0
  18. package/lib/components/CarouselThumbnail/index.d.ts +1 -0
  19. package/lib/components/Checkbox/Checkbox.stories.d.ts +17 -0
  20. package/lib/components/Checkbox/index.d.ts +1 -0
  21. package/lib/components/Collapsible/Collapsible.stories.d.ts +23 -0
  22. package/lib/components/Collapsible/index.d.ts +2 -1
  23. package/lib/components/Collapsible/index.js +1 -1
  24. package/lib/components/Counter/Counter.stories.d.ts +17 -0
  25. package/lib/components/Counter/index.d.ts +1 -0
  26. package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +18 -0
  27. package/lib/components/Dialog/Dialog.stories.d.ts +15 -0
  28. package/lib/components/Dialog/index.d.ts +2 -1
  29. package/lib/components/Dropdown/Dropdown.stories.d.ts +17 -0
  30. package/lib/components/Dropdown/index.d.ts +2 -1
  31. package/lib/components/FileUploader/FileUploader.stories.d.ts +18 -0
  32. package/lib/components/FileUploader/index.d.ts +1 -0
  33. package/lib/components/Footer/Footer.stories.d.ts +19 -0
  34. package/lib/components/Footer/index.d.ts +1 -0
  35. package/lib/components/FooterNav/FooterNav.stories.d.ts +22 -0
  36. package/lib/components/FooterNav/index.d.ts +1 -0
  37. package/lib/components/Form/Form.stories.d.ts +66 -0
  38. package/lib/components/Form/index.d.ts +3 -2
  39. package/lib/components/Gallery/Gallery.stories.d.ts +16 -0
  40. package/lib/components/Gallery/index.d.ts +2 -1
  41. package/lib/components/Greeting/Greeting.stories.d.ts +13 -0
  42. package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +12 -0
  43. package/lib/components/Icon/Icon.stories.d.ts +16 -0
  44. package/lib/components/Icon/index.d.ts +1 -0
  45. package/lib/components/Image/Image.stories.d.ts +13 -0
  46. package/lib/components/ImageCard/ImageCard.stories.d.ts +23 -0
  47. package/lib/components/ImageCard/index.d.ts +2 -1
  48. package/lib/components/Input/Input.stories.d.ts +23 -0
  49. package/lib/components/Input/index.d.ts +4 -3
  50. package/lib/components/Input/index.js +84 -66
  51. package/lib/components/Link/Link.stories.d.ts +30 -0
  52. package/lib/components/Link/index.d.ts +1 -0
  53. package/lib/components/Map/Map.stories.d.ts +18 -0
  54. package/lib/components/Map/index.d.ts +1 -0
  55. package/lib/components/Map/utils.d.ts +1 -0
  56. package/lib/components/MenuButton/MenuButton.stories.d.ts +28 -0
  57. package/lib/components/MenuButton/index.d.ts +2 -0
  58. package/lib/components/Modal/Modal.stories.d.ts +67 -0
  59. package/lib/components/Modal/index.d.ts +2 -0
  60. package/lib/components/Nav/Nav.stories.d.ts +32 -0
  61. package/lib/components/Nav/index.d.ts +1 -0
  62. package/lib/components/NavItem/NavItem.stories.d.ts +22 -0
  63. package/lib/components/NavItem/index.d.ts +1 -0
  64. package/lib/components/Pill/Pill.stories.d.ts +26 -0
  65. package/lib/components/Pill/index.d.ts +1 -0
  66. package/lib/components/Search/Search.stories.d.ts +44 -0
  67. package/lib/components/Search/index.d.ts +2 -1
  68. package/lib/components/Select/Select.stories.d.ts +18 -0
  69. package/lib/components/Select/index.d.ts +17 -10
  70. package/lib/components/Select/index.js +146 -65
  71. package/lib/components/Showcase/Showcase.stories.d.ts +17 -0
  72. package/lib/components/Showcase/index.d.ts +2 -1
  73. package/lib/components/SideNav/SideNav.stories.d.ts +40 -0
  74. package/lib/components/SideNav/index.d.ts +1 -0
  75. package/lib/components/SocialButton/SocialButton.stories.d.ts +83 -0
  76. package/lib/components/SocialButton/index.d.ts +2 -0
  77. package/lib/components/SplitCard/SplitCard.stories.d.ts +21 -0
  78. package/lib/components/SplitCard/index.d.ts +1 -0
  79. package/lib/components/Stars/Stars.stories.d.ts +14 -0
  80. package/lib/components/Testimonial/Testimonial.stories.d.ts +21 -0
  81. package/lib/components/Testimonial/index.d.ts +2 -1
  82. package/lib/components/TextArea/TextArea.stories.d.ts +21 -0
  83. package/lib/components/TextArea/index.d.ts +1 -0
  84. package/lib/components/Timeline/Timeline.stories.d.ts +21 -0
  85. package/lib/components/Timeline/index.d.ts +1 -0
  86. package/lib/components/Tubestops/Tubestops.stories.d.ts +24 -0
  87. package/lib/components/Tubestops/index.d.ts +1 -0
  88. package/lib/components/Video/Video.stories.d.ts +23 -0
  89. package/lib/components/Video/index.d.ts +1 -0
  90. package/lib/components/index.d.ts +1 -0
  91. package/lib/documentation/components/ThemeColours.d.ts +20 -0
  92. package/lib/documentation/typography/Fonts/Fonts.d.ts +2 -0
  93. package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +10 -0
  94. package/lib/sample.jpg +0 -0
  95. package/lib/styles/themes/{rupertbennett.css → paa.css} +18 -18
  96. package/lib/trepurComponentsLogo.svg +32 -0
  97. package/package.json +65 -36
@@ -1,5 +1,6 @@
1
- import { ButtonProps } from 'src/components/Button';
2
- import { InputContextProps } from 'src/components/Input';
1
+ import { ButtonProps } from '../Button';
2
+ import { InputContextProps } from '../Input';
3
+
3
4
  export interface Props {
4
5
  id?: string;
5
6
  className?: string;
@@ -0,0 +1,16 @@
1
+ import { Gallery } from './';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('../Image').ImageProps & import('react').RefAttributes<HTMLDivElement>>;
8
+ };
9
+ args: {
10
+ className: string;
11
+ children: import("react/jsx-runtime").JSX.Element[];
12
+ };
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof Gallery>;
16
+ export declare const Default: Story;
@@ -1,5 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { ImageProps } from 'src/components/Image';
2
+ import { ImageProps } from '../Image';
3
+
3
4
  declare const Gallery: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
4
5
  Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & ImageProps & import('react').RefAttributes<HTMLDivElement>>;
5
6
  };
@@ -0,0 +1,13 @@
1
+ import { Greeting } from './';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ args: {
8
+ morningMessage: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof Greeting>;
13
+ export declare const Default: Story;
@@ -0,0 +1,12 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { HamburgerIcon } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof HamburgerIcon>;
10
+ export declare const Default: Story;
11
+ export declare const Secondary: Story;
12
+ export declare const Ghost: Story;
@@ -0,0 +1,16 @@
1
+ import { Icon } from './';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ args: {
8
+ icon: import('@fortawesome/fontawesome-free-solid').IconDefinition;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof Icon>;
13
+ export declare const Default: Story;
14
+ export declare const Colour: Story;
15
+ export declare const Size: Story;
16
+ export declare const Annimation: Story;
@@ -1,5 +1,6 @@
1
1
  import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
2
2
  import { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core';
3
+
3
4
  export interface IconProps {
4
5
  className?: string;
5
6
  icon: IconProp | IconDefinition;
@@ -0,0 +1,13 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Image } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ args: {
8
+ src: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof Image>;
13
+ export declare const Default: Story;
@@ -0,0 +1,23 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { ImageCard } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Image: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<import('../Image').ImageProps> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
8
+ Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
9
+ Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
10
+ Subtitle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
11
+ Text: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
12
+ Button: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
13
+ Caption: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
14
+ };
15
+ args: {
16
+ children: import("react/jsx-runtime").JSX.Element[];
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof ImageCard>;
21
+ export declare const Default: Story;
22
+ export declare const WithButton: Story;
23
+ export declare const WithCaption: Story;
@@ -1,5 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
- import { ImageProps } from 'src/components/Image';
2
+ import { ImageProps } from '../Image';
3
+
3
4
  declare const ImageCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
4
5
  Image: import('react').ForwardRefExoticComponent<HTMLAttributes<ImageProps> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
5
6
  Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,23 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Input } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
8
+ required?: boolean;
9
+ } & import('react').RefAttributes<HTMLDivElement>>;
10
+ Validation: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ Actions: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
+ Wrapper: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLInputElement> & import('.').InputContextProps & import('react').RefAttributes<HTMLInputElement>>;
13
+ };
14
+ args: {
15
+ placeholder: string;
16
+ children: import("react/jsx-runtime").JSX.Element[];
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof Input>;
21
+ export declare const Default: Story;
22
+ export declare const WithAction: Story;
23
+ export declare const WithValidation: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export interface InputContextProps {
3
4
  autoComplete?: string;
4
5
  disabled?: boolean;
@@ -14,7 +15,7 @@ export interface InputContextProps {
14
15
  name?: string;
15
16
  placeholder?: string;
16
17
  withValidation?: boolean;
17
- onChange?: (e: any) => void;
18
+ handleChange?: (e: any) => void;
18
19
  onBlur?: () => void;
19
20
  onFocus?: () => void;
20
21
  onClick?: () => void;
@@ -22,11 +23,11 @@ export interface InputContextProps {
22
23
  value?: string;
23
24
  }
24
25
  declare const Input: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
25
- Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
26
26
  Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
27
27
  required?: boolean;
28
28
  } & import('react').RefAttributes<HTMLDivElement>>;
29
- Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & import('react').RefAttributes<HTMLInputElement>>;
30
29
  Validation: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
30
+ Actions: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
31
+ Wrapper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & InputContextProps & import('react').RefAttributes<HTMLInputElement>>;
31
32
  };
32
33
  export { Input };
@@ -1,84 +1,102 @@
1
- import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
- import { forwardRef as a, useMemo as b, createContext as N, useContext as d, useRef as y } from "react";
3
- import m from "clsx";
4
- const s = N(null), p = a(({ children: r, errors: e, placeholder: t, ...n }, l) => {
5
- const f = b(
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as o, useMemo as v, createContext as L, useContext as p } from "react";
3
+ import d from "clsx";
4
+ const s = L(null), x = o(({ children: n, className: a, errors: t, placeholder: l, ...e }, i) => {
5
+ const m = v(
6
6
  () => ({
7
- errors: e,
8
- placeholder: t,
9
- ...n
7
+ errors: t,
8
+ placeholder: l,
9
+ ...e
10
10
  }),
11
- [e, n]
11
+ [t, e]
12
12
  );
13
- return /* @__PURE__ */ o(s.Provider, { value: f, children: /* @__PURE__ */ o("div", { ref: l, children: r }) });
14
- }), u = a(
15
- ({ children: r, ...e }, t) => {
16
- const n = y(null);
17
- return /* @__PURE__ */ o(
18
- "div",
19
- {
20
- className: "mt-4 w-full",
21
- onClick: () => {
22
- var l;
23
- return (l = n.current) == null ? void 0 : l.focus();
24
- },
25
- ref: t,
26
- ...e,
27
- children: r
28
- }
29
- );
30
- }
31
- ), i = a(({ className: r, children: e, required: t = !1 }, n) => /* @__PURE__ */ I(
32
- "div",
33
- {
34
- ref: n,
35
- className: m("flex px-1 text-sm font-normal leading-5", r),
36
- children: [
37
- /* @__PURE__ */ o("p", { children: e }),
38
- t && /* @__PURE__ */ o("p", { className: "text-sm font-normal", children: " *" })
39
- ]
40
- }
41
- )), c = a(
42
- ({ ...r }, e) => {
43
- const { errors: t, placeholder: n } = d(s) || {};
44
- return /* @__PURE__ */ o(
13
+ return /* @__PURE__ */ r(s.Provider, { value: m, children: /* @__PURE__ */ r(
14
+ "div",
15
+ {
16
+ ref: i,
17
+ className: d("grid grid-cols-1 gap-2 w-full rounded-md", a),
18
+ ...e,
19
+ children: n
20
+ }
21
+ ) });
22
+ }), f = o(({ children: n, handleChange: a, onClick: t, onBlur: l, ...e }, i) => {
23
+ const { placeholder: m, value: g, errors: u } = p(s) || {};
24
+ return /* @__PURE__ */ c("div", { ref: i, className: "group/input relative isolate flex w-full", children: [
25
+ /* @__PURE__ */ r(
45
26
  "input",
46
27
  {
47
- ref: e,
48
- placeholder: n,
49
- className: m(
50
- "text-ink text-md w-full rounded-md border border-gray-300 bg-white py-2 pl-4",
28
+ placeholder: m,
29
+ className: d(
30
+ "rounded-md flex w-full bg-card px-3 py-1.5 text-sm placeholder:text-gray-500",
51
31
  {
52
- "border-error border-2": t != null
32
+ "border-border border": !u,
33
+ "border-red-600 border-2": u
53
34
  }
54
35
  ),
55
- ...r
36
+ value: g,
37
+ readOnly: e.readOnly,
38
+ disabled: e.disabled,
39
+ autoComplete: e.autoComplete,
40
+ form: e.formId,
41
+ maxLength: e.maxLength,
42
+ minLength: e.minLength,
43
+ pattern: e.pattern,
44
+ required: e.required,
45
+ type: e.type,
46
+ name: e.name,
47
+ onChange: (N) => a == null ? void 0 : a(N.target.value),
48
+ onClick: t,
49
+ onBlur: l,
50
+ onFocus: e.onFocus
56
51
  }
57
- );
52
+ ),
53
+ n
54
+ ] });
55
+ }), b = o(
56
+ ({ className: n, children: a }, t) => /* @__PURE__ */ r(
57
+ "div",
58
+ {
59
+ ref: t,
60
+ className: d(
61
+ "absolute right-1 top-1/2 my-auto -translate-y-1/2",
62
+ n
63
+ ),
64
+ children: a
65
+ }
66
+ )
67
+ ), y = o(({ className: n, children: a, required: t = !1 }, l) => /* @__PURE__ */ c(
68
+ "div",
69
+ {
70
+ ref: l,
71
+ className: d("flex px-1 text-sm font-normal leading-5", n),
72
+ children: [
73
+ /* @__PURE__ */ r("p", { children: a }),
74
+ t && /* @__PURE__ */ r("p", { className: "text-sm font-normal", children: "*" })
75
+ ]
58
76
  }
59
- ), x = a(({ ...r }, e) => {
60
- const { errors: t } = d(s) || {};
61
- return /* @__PURE__ */ o(
77
+ )), I = o(({ ...n }, a) => {
78
+ const { errors: t } = p(s) || {};
79
+ return /* @__PURE__ */ r(
62
80
  "div",
63
81
  {
64
- ref: e,
65
- className: "text-md gap-y-2 pl-1 pt-2 font-semibold text-error-default",
66
- ...r,
67
- children: t == null ? void 0 : t.map((n, l) => /* @__PURE__ */ o("p", { children: n }, `error-msg-${l + 1}`))
82
+ ref: a,
83
+ className: "text-sm pl-1 font-medium text-error-default",
84
+ ...n,
85
+ children: t == null ? void 0 : t.map((l, e) => /* @__PURE__ */ r("p", { children: l }, `error-msg-${e + 1}`))
68
86
  }
69
87
  );
70
88
  });
71
- p.displayName = "Input";
72
- u.displayName = "Input.Item";
73
- i.displayName = "Input.Label";
74
- c.displayName = "Input.Box";
75
- x.displayName = "Input.Validation";
76
- const C = Object.assign(p, {
77
- Item: u,
78
- Label: i,
79
- Box: c,
80
- Validation: x
89
+ x.displayName = "Input";
90
+ b.displayName = "Input.Actions";
91
+ y.displayName = "Input.Label";
92
+ I.displayName = "Input.Validation";
93
+ f.displayName = "Input.Wrapper";
94
+ const A = Object.assign(x, {
95
+ Label: y,
96
+ Validation: I,
97
+ Actions: b,
98
+ Wrapper: f
81
99
  });
82
100
  export {
83
- C as Input
101
+ A as Input
84
102
  };
@@ -0,0 +1,30 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Link } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & import('.').LinkProps & import('react').RefAttributes<HTMLAnchorElement>> & {
7
+ Icon: import('react').ForwardRefExoticComponent<{
8
+ icon: any;
9
+ } & import('react').RefAttributes<SVGSVGElement>>;
10
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
11
+ };
12
+ args: {
13
+ variant: "primary";
14
+ href: string;
15
+ target: string;
16
+ children: import("react/jsx-runtime").JSX.Element[];
17
+ onClick: import('@storybook/addon-actions').HandlerFunction;
18
+ };
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof Link>;
22
+ export declare const Default: Story;
23
+ export declare const Secondary: Story;
24
+ export declare const Bordered: Story;
25
+ export declare const Ghost: Story;
26
+ export declare const Basic: Story;
27
+ export declare const Loading: Story;
28
+ export declare const Small: Story;
29
+ export declare const Large: Story;
30
+ export declare const Download: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export interface LinkProps {
3
4
  variant?: 'primary' | 'secondary' | 'ghost' | 'bordered' | 'basic';
4
5
  loading?: boolean;
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Map } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: typeof Map;
7
+ argTypes: {};
8
+ args: {
9
+ zoom: number;
10
+ terrain: true;
11
+ };
12
+ };
13
+ export default meta;
14
+ type Story = StoryObj<typeof Map>;
15
+ export declare const Default: Story;
16
+ export declare const Markers: Story;
17
+ export declare const PopupLabel: Story;
18
+ export declare const Boundaries: Story;
@@ -1,4 +1,5 @@
1
1
  import { Marker } from './types';
2
+
2
3
  import * as maptilersdk from '@maptiler/sdk';
3
4
  interface MapProps {
4
5
  id: string;
@@ -1,5 +1,6 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { Marker } from './types';
3
+
3
4
  import * as maptilersdk from '@maptiler/sdk';
4
5
  export interface FeatureGeometry {
5
6
  type: string;
@@ -0,0 +1,28 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { MenuButton } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, menuItems, onClick }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
7
+ argTypes: {
8
+ menuItems: {
9
+ description: string;
10
+ control: string;
11
+ table: {
12
+ type: {
13
+ summary: string;
14
+ };
15
+ };
16
+ };
17
+ };
18
+ args: {
19
+ onClick: import('@storybook/addon-actions').HandlerFunction;
20
+ menuItems: {
21
+ name: string;
22
+ href: string;
23
+ }[];
24
+ };
25
+ };
26
+ export default meta;
27
+ type Story = StoryObj<typeof MenuButton>;
28
+ export declare const Default: Story;
@@ -1,3 +1,5 @@
1
+ import { default as React } from 'react';
2
+
1
3
  export interface Props {
2
4
  id?: string;
3
5
  className?: string;
@@ -0,0 +1,67 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ id, className, children, visible, onOverlayClick, mobileGutter, animationStyle }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: string;
10
+ };
11
+ };
12
+ };
13
+ argTypes: {
14
+ id: {
15
+ type: {
16
+ name: string;
17
+ required: boolean;
18
+ };
19
+ description: string;
20
+ table: {
21
+ type: {
22
+ summary: string;
23
+ };
24
+ };
25
+ };
26
+ className: {
27
+ type: {
28
+ name: string;
29
+ required: boolean;
30
+ };
31
+ description: string;
32
+ table: {
33
+ type: {
34
+ summary: string;
35
+ };
36
+ };
37
+ };
38
+ children: {
39
+ type: {
40
+ name: string;
41
+ value: string;
42
+ };
43
+ description: string;
44
+ table: {
45
+ type: {
46
+ summary: string;
47
+ };
48
+ defaultValue: {
49
+ summary: string;
50
+ };
51
+ };
52
+ };
53
+ onOverlayClick: {
54
+ type: {
55
+ name: string;
56
+ required: boolean;
57
+ };
58
+ description: string;
59
+ };
60
+ };
61
+ args: {
62
+ visible: boolean;
63
+ children: import("react/jsx-runtime").JSX.Element;
64
+ };
65
+ };
66
+ export declare const _Modal: (args: any) => React.ReactElement;
67
+ export default meta;
@@ -1,3 +1,5 @@
1
+ import { default as React } from 'react';
2
+
1
3
  export interface Props extends Partial<Pick<HTMLElement, 'className' | 'id'>> {
2
4
  children?: React.ReactNode;
3
5
  visible?: boolean;
@@ -0,0 +1,32 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Nav } from '..';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').NavContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
+ DesktopHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
9
+ MobileHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
10
+ Section: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ Logo: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLImageElement> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
12
+ Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
+ Folder: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
14
+ label: string;
15
+ active?: boolean;
16
+ } & import('react').RefAttributes<HTMLDivElement>>;
17
+ };
18
+ parameters: {
19
+ docs: {
20
+ story: {
21
+ iframe: string;
22
+ };
23
+ };
24
+ };
25
+ args: {
26
+ children: import("react/jsx-runtime").JSX.Element[];
27
+ };
28
+ };
29
+ export default meta;
30
+ type Story = StoryObj<typeof Nav>;
31
+ export declare const Default: Story;
32
+ export declare const Loading: Story;
@@ -1,5 +1,6 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { ImageProps } from '../Image';
3
+
3
4
  export interface NavContextProps {
4
5
  expanded?: boolean;
5
6
  setExpanded?: (val: boolean) => void;
@@ -0,0 +1,22 @@
1
+ import { NavItem } from './';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & {
7
+ href?: string;
8
+ active?: boolean;
9
+ loading?: boolean;
10
+ isInFolder?: boolean;
11
+ } & import('react').RefAttributes<HTMLAnchorElement>> & {
12
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
13
+ };
14
+ args: {
15
+ children: import("react/jsx-runtime").JSX.Element[];
16
+ };
17
+ };
18
+ export default meta;
19
+ type Story = StoryObj<typeof NavItem>;
20
+ export declare const Default: Story;
21
+ export declare const Active: Story;
22
+ export declare const Loading: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  declare const NavItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
3
4
  href?: string;
4
5
  active?: boolean;
@@ -0,0 +1,26 @@
1
+ import { Pill } from './';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('./').PillProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Icon: import('react').ForwardRefExoticComponent<{
8
+ icon: any;
9
+ } & import('react').RefAttributes<SVGSVGElement>>;
10
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
11
+ };
12
+ args: {
13
+ children: import("react/jsx-runtime").JSX.Element[];
14
+ };
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof Pill>;
18
+ export declare const Default: Story;
19
+ export declare const Error: Story;
20
+ export declare const ErrorInverse: Story;
21
+ export declare const Warning: Story;
22
+ export declare const WarningInverse: Story;
23
+ export declare const Success: Story;
24
+ export declare const SuccessInverse: Story;
25
+ export declare const Info: Story;
26
+ export declare const InfoInverse: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export type PickU<T, K extends keyof T> = T extends any ? {
3
4
  [P in K]: T[P];
4
5
  } : never;