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
@@ -0,0 +1,44 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Search } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
7
+ parameters: {};
8
+ argTypes: {
9
+ leftIconProps: {
10
+ description: string;
11
+ control: string;
12
+ table: {
13
+ category: string;
14
+ };
15
+ };
16
+ rightIconProps: {
17
+ description: string;
18
+ control: string;
19
+ table: {
20
+ category: string;
21
+ };
22
+ };
23
+ placeholder: {
24
+ description: string;
25
+ control: string;
26
+ table: {
27
+ category: string;
28
+ };
29
+ };
30
+ text: {
31
+ description: string;
32
+ control: string;
33
+ table: {
34
+ category: string;
35
+ };
36
+ };
37
+ };
38
+ args: {
39
+ placeholder: string;
40
+ };
41
+ };
42
+ export default meta;
43
+ type Story = StoryObj<typeof Search>;
44
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
- import { IconProps } from 'src/components/Icon';
1
+ import { IconProps } from '../Icon';
2
+
2
3
  export interface Props {
3
4
  id?: string;
4
5
  className?: string;
@@ -0,0 +1,18 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Select } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').SelectContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & {
8
+ value: string;
9
+ } & import('react').RefAttributes<HTMLLIElement>>;
10
+ };
11
+ parameters: {};
12
+ args: {
13
+ children: import("react/jsx-runtime").JSX.Element[];
14
+ };
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof Select>;
18
+ export declare const Default: Story;
@@ -1,11 +1,18 @@
1
- export interface SelectProps {
2
- id?: string;
3
- className?: string;
4
- options: string[];
5
- label: string;
6
- value?: string;
7
- onClick?: any;
8
- fullWidth?: boolean;
9
- required?: boolean;
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface SelectContextProps {
4
+ loading?: boolean;
5
+ defaultOpen?: boolean;
6
+ onOpenChange?: (open: boolean) => void;
7
+ onChange?: (value: string) => void;
8
+ open?: boolean;
9
+ setOpen?: (open: boolean) => void;
10
+ internalValue: string;
11
+ setInternalValue: (val: string) => void;
10
12
  }
11
- export declare const Select: ({ id, className, options, value, label, onClick, required, fullWidth }: SelectProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const Select: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & SelectContextProps & import('react').RefAttributes<HTMLDivElement>> & {
14
+ Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & {
15
+ value: string;
16
+ } & import('react').RefAttributes<HTMLLIElement>>;
17
+ };
18
+ export { Select };
@@ -1,68 +1,149 @@
1
- import { jsxs as r, Fragment as y, jsx as e } from "react/jsx-runtime";
2
- import { useState as d } from "react";
3
- import { Icon as D } from "../Icon/index.js";
4
- import { faChevronDown as j } from "@fortawesome/fontawesome-free-solid";
5
- import s from "classnames";
6
- const A = ({
7
- id: h,
8
- className: m,
9
- options: l,
10
- value: a,
11
- label: f,
12
- onClick: w,
13
- required: x = !1,
14
- fullWidth: c = !1
15
- }) => {
16
- const [n, i] = d(!1), [u, b] = d(
17
- a !== void 0 ? a : l == null ? void 0 : l[0]
18
- ), p = (t) => {
19
- w(t.target.textContent), b(t.target.textContent), i(!1);
20
- }, o = s({
21
- "w-full": c,
22
- "sm:w-72": !c
23
- }), g = s(
24
- o,
25
- m,
26
- "w-full rounded-xl bg-white shadow drop-shadow flex cursor-pointer flex-row justify-between px-4"
27
- ), v = s(
28
- o,
29
- "absolute w-full bg-white mt-2 rounded-2xl py-4 shadow-xl border border-lightest-grey h-64 overflow-scroll"
30
- ), C = "bg-white text-ink hover:bg-lightest-grey hover:cursor-pointer px-4 py-2";
31
- return /* @__PURE__ */ r(y, { children: [
32
- /* @__PURE__ */ r(
33
- "div",
34
- {
35
- id: h,
36
- className: g,
37
- onClick: () => {
38
- i(!n);
39
- },
40
- children: [
41
- /* @__PURE__ */ r("div", { className: "flex flex-col", children: [
42
- /* @__PURE__ */ r("div", { className: "absolute mt-2 flex bg-white text-xs font-thin", children: [
43
- /* @__PURE__ */ e("p", { children: f }),
44
- x && /* @__PURE__ */ e("p", { className: "font-semiBold text-error", children: " *" })
45
- ] }),
46
- /* @__PURE__ */ e("p", { className: "border-ink text-ink flex justify-between rounded-xl bg-white pb-1 pt-6", children: u })
47
- ] }),
48
- /* @__PURE__ */ e(D, { colour: "ink", icon: j })
49
- ]
50
- }
51
- ),
52
- n && /* @__PURE__ */ e("div", { className: s("relative z-20", o), children: /* @__PURE__ */ e("ul", { className: v, children: l == null ? void 0 : l.map((t, N) => /* @__PURE__ */ e(
53
- "li",
54
- {
55
- className: C,
56
- value: t,
57
- onClick: (k) => {
58
- p(k);
59
- },
60
- children: t
1
+ import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
+ import { forwardRef as i, useState as N, useCallback as b, useEffect as M, createContext as V, useContext as p } from "react";
3
+ import c from "clsx";
4
+ import { Input as u } from "../Input/index.js";
5
+ import { Card as z } from "../Card/index.js";
6
+ import { Button as y } from "../Button/index.js";
7
+ import { faCaretDown as A } from "@fortawesome/fontawesome-free-solid";
8
+ const m = V(null), v = i(
9
+ ({
10
+ id: l,
11
+ open: a,
12
+ defaultOpen: r,
13
+ onOpenChange: t,
14
+ onChange: e,
15
+ className: n,
16
+ children: d,
17
+ loading: k,
18
+ ...T
19
+ }) => {
20
+ const [h, B] = N(a ?? r), [f, S] = N(""), x = b(
21
+ (s) => {
22
+ B(s), t == null || t(s);
61
23
  },
62
- `key_${N}`
63
- )) }) })
64
- ] });
65
- };
24
+ [t]
25
+ ), D = {
26
+ loading: k,
27
+ open: h,
28
+ setOpen: x,
29
+ internalValue: f,
30
+ setInternalValue: S
31
+ };
32
+ M(
33
+ () => x(a ?? r ?? !1),
34
+ [a, r, x]
35
+ );
36
+ const L = b(
37
+ (s) => {
38
+ f.includes(s) ? (S(""), e == null || e("")) : (S(s), e == null || e(s));
39
+ },
40
+ [f, e]
41
+ );
42
+ return /* @__PURE__ */ o(m.Provider, { value: D, children: /* @__PURE__ */ I("div", { className: "grid gap-1", children: [
43
+ /* @__PURE__ */ o(
44
+ w,
45
+ {
46
+ id: l,
47
+ className: n,
48
+ onChange: () => L,
49
+ ...T,
50
+ children: d
51
+ }
52
+ ),
53
+ /* @__PURE__ */ o(g, { children: d })
54
+ ] }) });
55
+ }
56
+ ), E = i(({ className: l, ...a }, r) => {
57
+ const { open: t, setOpen: e } = p(m) || {};
58
+ return /* @__PURE__ */ o(
59
+ y,
60
+ {
61
+ ref: r,
62
+ className: l,
63
+ "aria-label": "toggle open",
64
+ onClick: () => e == null ? void 0 : e(!t),
65
+ variant: "ghost",
66
+ size: "sm",
67
+ ...a,
68
+ children: /* @__PURE__ */ o(
69
+ y.Icon,
70
+ {
71
+ className: c("transition-transform duration-300 ease-in-out", {
72
+ "rotate-180 transform": t
73
+ }),
74
+ icon: A
75
+ }
76
+ )
77
+ }
78
+ );
79
+ }), w = i(({ className: l }, a) => {
80
+ const { open: r, setOpen: t, internalValue: e } = p(m) || {};
81
+ return /* @__PURE__ */ I(
82
+ u,
83
+ {
84
+ className: c(
85
+ "w-full rounded-md bg-white caret-transparent ",
86
+ l
87
+ ),
88
+ ref: a,
89
+ "data-open": r,
90
+ placeholder: "boo",
91
+ value: e ?? "",
92
+ children: [
93
+ /* @__PURE__ */ o(u.Label, { children: "sdfgh" }),
94
+ /* @__PURE__ */ o(
95
+ u.Wrapper,
96
+ {
97
+ onClick: () => t == null ? void 0 : t(!r),
98
+ onBlur: () => t == null ? void 0 : t(!1),
99
+ className: c(
100
+ "caret-transparent rounded hover:cursor-pointer data-[open=true]:border-primary data-[open=true]:ring-1 data-[open=true]:ring-primary",
101
+ l
102
+ ),
103
+ children: /* @__PURE__ */ o(u.Actions, { children: /* @__PURE__ */ o(E, {}) })
104
+ }
105
+ )
106
+ ]
107
+ }
108
+ );
109
+ }), g = i(({ children: l, className: a, ...r }, t) => {
110
+ const { open: e } = p(m) || {};
111
+ return e ? /* @__PURE__ */ o(
112
+ z,
113
+ {
114
+ ref: t,
115
+ className: c(
116
+ "!px-0 data-[state=open]:animate-in w-full data-[state=open]:fade-in-0",
117
+ a
118
+ ),
119
+ ...r,
120
+ children: /* @__PURE__ */ o("ul", { children: l })
121
+ }
122
+ ) : null;
123
+ }), j = i(({ children: l, value: a, className: r, ...t }, e) => {
124
+ const { setInternalValue: n } = p(m) || {};
125
+ return /* @__PURE__ */ o(
126
+ "li",
127
+ {
128
+ ref: e,
129
+ className: c(
130
+ "hover:cursor-pointer hover:bg-gray-100 w-full py-2 px-4",
131
+ r
132
+ ),
133
+ value: a,
134
+ onMouseDown: (d) => n == null ? void 0 : n(d.target.innerHTML),
135
+ ...t,
136
+ children: l
137
+ }
138
+ );
139
+ });
140
+ v.displayName = "Select";
141
+ g.displayName = "Select.Content";
142
+ w.displayName = "Select.Trigger";
143
+ j.displayName = "Select.Item";
144
+ const J = Object.assign(v, {
145
+ Item: j
146
+ });
66
147
  export {
67
- A as Select
148
+ J as Select
68
149
  };
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Showcase } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ title, subTitle, description, size, iconProps }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
7
+ args: {
8
+ title: string;
9
+ subTitle: string;
10
+ description: string;
11
+ bgColour: "white";
12
+ size: "large";
13
+ };
14
+ };
15
+ export default meta;
16
+ type Story = StoryObj<typeof Showcase>;
17
+ export declare const Default: Story;
@@ -1,5 +1,6 @@
1
- import { IconProps } from 'src/components/Icon';
1
+ import { IconProps } from '../Icon';
2
2
  import { Colours } from '../../utils/controls';
3
+
3
4
  export interface Props {
4
5
  id: string;
5
6
  className?: string;
@@ -0,0 +1,40 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { SideNav } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, children, showNav, leftExpand }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
7
+ parameters: {
8
+ backgrounds: {
9
+ default: string;
10
+ values: {
11
+ name: string;
12
+ value: string;
13
+ }[];
14
+ };
15
+ };
16
+ argTypes: {
17
+ bgColour: {
18
+ type: {
19
+ name: "string";
20
+ required: false;
21
+ };
22
+ options: string[];
23
+ description: string;
24
+ table: {
25
+ type: {
26
+ summary: string;
27
+ };
28
+ };
29
+ defaultValue: string;
30
+ control: string;
31
+ };
32
+ };
33
+ args: {
34
+ children: import("react/jsx-runtime").JSX.Element;
35
+ showNav: true;
36
+ };
37
+ };
38
+ export default meta;
39
+ type Story = StoryObj<typeof SideNav>;
40
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { Colours } from '../../utils/controls';
2
+
2
3
  export interface Props {
3
4
  id: string;
4
5
  className: string;
@@ -0,0 +1,83 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { SocialButton } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, onClick, type, href, openInNewTab }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ argTypes: {
15
+ onClick: {
16
+ type: {
17
+ name: "function";
18
+ required: false;
19
+ };
20
+ description: string;
21
+ action: string;
22
+ table: {
23
+ type: {
24
+ summary: string;
25
+ };
26
+ defaultValue: {
27
+ summary: string;
28
+ };
29
+ };
30
+ };
31
+ type: {
32
+ type: {
33
+ name: "string";
34
+ required: false;
35
+ };
36
+ options: string[];
37
+ description: string;
38
+ table: {
39
+ type: {
40
+ summary: string;
41
+ };
42
+ defaultValue: {
43
+ summary: string;
44
+ };
45
+ };
46
+ defaultValue: string;
47
+ control: {
48
+ type: string;
49
+ };
50
+ };
51
+ href: {
52
+ type: {
53
+ name: "string";
54
+ required: false;
55
+ };
56
+ description: string;
57
+ table: {
58
+ type: {
59
+ summary: string;
60
+ };
61
+ defaultValue: {
62
+ summary: string;
63
+ };
64
+ };
65
+ };
66
+ openInNewTab: {
67
+ type: {
68
+ name: "boolean";
69
+ required: false;
70
+ };
71
+ description: string;
72
+ defaultValue: string;
73
+ };
74
+ };
75
+ args: {
76
+ type: "facebook";
77
+ href: string;
78
+ onClick: import('@storybook/addon-actions').HandlerFunction;
79
+ };
80
+ };
81
+ export default meta;
82
+ type Story = StoryObj<typeof SocialButton>;
83
+ 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,21 @@
1
+ import { SplitCard } 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('./').SplitCardContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ LeftContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
+ RightContent: 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
+ Text: 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 SplitCard>;
18
+ export declare const Default: Story;
19
+ export declare const swapDesktop: Story;
20
+ export declare const swapMobile: Story;
21
+ export declare const loading: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export interface SplitCardContextProps {
3
4
  swapDesktop?: boolean;
4
5
  swapMobile?: boolean;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Stars } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ args: {
8
+ stars: number;
9
+ size: string;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof Stars>;
14
+ export declare const Default: Story;
@@ -0,0 +1,21 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Testimonial } 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<HTMLImageElement> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
8
+ Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
9
+ Section: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
10
+ Position: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ Date: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
+ Text: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
+ AuthorDetails: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
14
+ };
15
+ args: {
16
+ children: import("react/jsx-runtime").JSX.Element[];
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof Testimonial>;
21
+ 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 Testimonial: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
4
5
  Image: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
5
6
  Title: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,21 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { TextArea } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').TextAreaContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
9
+ required?: boolean;
10
+ } & import('react').RefAttributes<HTMLDivElement>>;
11
+ Box: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
+ Validation: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
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 TextArea>;
21
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export interface TextAreaContextProps {
3
4
  autoComplete?: string;
4
5
  disabled?: boolean;
@@ -0,0 +1,21 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Timeline } from '.';
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('react').RefAttributes<HTMLDivElement>>;
8
+ Dot: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
9
+ index: number;
10
+ length: number;
11
+ } & import('react').RefAttributes<HTMLDivElement>>;
12
+ Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
+ };
14
+ parameters: {};
15
+ args: {
16
+ children: import("react/jsx-runtime").JSX.Element[];
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof Timeline>;
21
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  declare const Timeline: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
3
4
  Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
4
5
  Dot: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
@@ -0,0 +1,24 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Tubestops } from '.';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').TubestopsContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
+ Stop: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
9
+ stopId: number;
10
+ } & import('react').RefAttributes<HTMLDivElement>>;
11
+ Text: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
12
+ Controls: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
13
+ Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
14
+ Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
15
+ stopId: number;
16
+ } & import('react').RefAttributes<HTMLDivElement>>;
17
+ };
18
+ args: {
19
+ children: import("react/jsx-runtime").JSX.Element[];
20
+ };
21
+ };
22
+ export default meta;
23
+ type Story = StoryObj<typeof Tubestops>;
24
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
+
2
3
  export interface TubestopsContextProps {
3
4
  totalStops?: number;
4
5
  setTotalStops?: (stop: number) => void;