trepur_components 2.3.25 → 2.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Accordion/index.js +5 -5
- package/lib/components/AlertBar/index.js +31 -27
- package/lib/components/Button/index.js +2 -3
- package/lib/components/Calendar/index.js +27 -27
- package/lib/components/Card/index.js +7 -7
- package/lib/components/Carousel/Carousel.stories.d.ts +1 -3
- package/lib/components/Carousel/index.d.ts +15 -17
- package/lib/components/Carousel/index.js +100 -100
- package/lib/components/CarouselThumbnail/index.d.ts +14 -14
- package/lib/components/Collapsible/index.js +44 -41
- package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +1 -3
- package/lib/components/DetailUpdater/index.d.ts +1 -4
- package/lib/components/DetailUpdater/index.js +11 -13
- package/lib/components/Dialog/Dialog.stories.d.ts +1 -1
- package/lib/components/Dialog/index.d.ts +2 -2
- package/lib/components/Dialog/index.js +4 -14
- package/lib/components/Dropdown/index.js +41 -41
- package/lib/components/FileUploader/FilePreview.d.ts +1 -1
- package/lib/components/FooterNav/index.js +24 -16
- package/lib/components/Form/Form.stories.d.ts +3 -22
- package/lib/components/Input/index.js +36 -36
- package/lib/components/MenuButton/MenuButton.stories.d.ts +1 -17
- package/lib/components/MenuButton/index.d.ts +1 -3
- package/lib/components/MenuButton/index.js +9 -15
- package/lib/components/Modal/Modal.stories.d.ts +1 -1
- package/lib/components/Modal/index.d.ts +1 -1
- package/lib/components/Nav/index.js +85 -81
- package/lib/components/NavItem/index.js +21 -14
- package/lib/components/Search/Search.stories.d.ts +1 -11
- package/lib/components/Search/index.d.ts +1 -1
- package/lib/components/Select/Select.stories.d.ts +1 -1
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/Showcase/Showcase.stories.d.ts +3 -7
- package/lib/components/Showcase/index.d.ts +1 -1
- package/lib/components/SideNav/SideNav.stories.d.ts +4 -12
- package/lib/components/SideNav/index.d.ts +2 -2
- package/lib/components/SocialButton/SocialButton.stories.d.ts +10 -25
- package/lib/components/SocialButton/index.d.ts +1 -1
- package/lib/components/SplitCard/index.js +34 -34
- package/lib/components/Stars/index.d.ts +0 -3
- package/lib/components/Stars/index.js +6 -6
- package/lib/components/Testimonial/index.js +31 -15
- package/lib/components/TextArea/index.js +37 -37
- package/lib/components/index.d.ts +1 -1
- package/lib/styles/themes/penrithmrt.css +12 -12
- package/lib/tailwind/boxShadow.ts +1 -1
- package/lib/tailwind/colors.ts +20 -20
- package/lib/tailwind/container.ts +2 -2
- package/lib/tailwind/preset.ts +12 -12
- package/lib/tailwind/spacing.ts +1 -1
- package/package.json +4 -2
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { Colours } from '../../utils/controls';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
2
|
|
|
4
3
|
export interface Props {
|
|
5
4
|
id?: string;
|
|
6
5
|
className?: string;
|
|
7
|
-
backgroundColour?: Colours;
|
|
8
6
|
menuItems: Array<{
|
|
9
7
|
name: string;
|
|
10
8
|
href: string;
|
|
11
9
|
}>;
|
|
12
10
|
onClick?: React.MouseEventHandler;
|
|
13
11
|
}
|
|
14
|
-
export declare const MenuButton: ({ id, className,
|
|
12
|
+
export declare const MenuButton: ({ id, className, menuItems, onClick }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,21 @@
|
|
|
1
1
|
import { jsx as t, Fragment as h, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
3
|
import { Dropdown as l } from "../Dropdown/index.js";
|
|
4
|
-
import { Image as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
className: d,
|
|
9
|
-
backgroundColour: w = "white",
|
|
10
|
-
menuItems: a,
|
|
11
|
-
onClick: e
|
|
12
|
-
}) => {
|
|
13
|
-
const [r, i] = u(!1), m = p(
|
|
4
|
+
import { Image as p } from "../Image/index.js";
|
|
5
|
+
import c from "classnames";
|
|
6
|
+
const g = ({ id: s, className: d, menuItems: m, onClick: e }) => {
|
|
7
|
+
const [r, a] = u(!1), i = c(
|
|
14
8
|
d,
|
|
15
9
|
"h-[45px] w-[80px] overflow-hidden rounded-full border-2 border-lightest-grey my-auto flex cursor-pointer justify-between pl-2 text-center hover:shadow-md"
|
|
16
10
|
);
|
|
17
|
-
return
|
|
11
|
+
return m ? /* @__PURE__ */ o("div", { children: [
|
|
18
12
|
/* @__PURE__ */ o(
|
|
19
13
|
"div",
|
|
20
14
|
{
|
|
21
15
|
id: s,
|
|
22
|
-
className:
|
|
16
|
+
className: i,
|
|
23
17
|
onClick: () => {
|
|
24
|
-
|
|
18
|
+
a(!r);
|
|
25
19
|
},
|
|
26
20
|
children: [
|
|
27
21
|
/* @__PURE__ */ t("div", { className: "mx-auto my-auto", onClick: (n) => e == null ? void 0 : e(n), children: /* @__PURE__ */ o(
|
|
@@ -39,7 +33,7 @@ const H = ({
|
|
|
39
33
|
}
|
|
40
34
|
) }),
|
|
41
35
|
/* @__PURE__ */ t(
|
|
42
|
-
|
|
36
|
+
p,
|
|
43
37
|
{
|
|
44
38
|
src: "https://picsum.photos/300/300",
|
|
45
39
|
className: "mx-auto my-auto h-8 w-8 rounded-full object-contain"
|
|
@@ -52,5 +46,5 @@ const H = ({
|
|
|
52
46
|
] }) : /* @__PURE__ */ t(h, {});
|
|
53
47
|
};
|
|
54
48
|
export {
|
|
55
|
-
|
|
49
|
+
g as MenuButton
|
|
56
50
|
};
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ id, className, children, visible, onOverlayClick, mobileGutter, animationStyle
|
|
5
|
+
component: ({ id, className, children, visible, onOverlayClick, mobileGutter, animationStyle }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
docs: {
|
|
8
8
|
description: {
|
|
@@ -7,4 +7,4 @@ export interface Props extends Partial<Pick<HTMLElement, 'className' | 'id'>> {
|
|
|
7
7
|
mobileGutter?: boolean;
|
|
8
8
|
animationStyle?: 'fade' | 'slideBottom';
|
|
9
9
|
}
|
|
10
|
-
export declare const Modal: ({ id, className, children, visible, onOverlayClick, mobileGutter, animationStyle
|
|
10
|
+
export declare const Modal: ({ id, className, children, visible, onOverlayClick, mobileGutter, animationStyle }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,135 +1,139 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { createContext as C, forwardRef as
|
|
1
|
+
import { jsx as e, jsxs as p, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as C, forwardRef as l, useState as v, useMemo as k, useContext as c, useRef as w } from "react";
|
|
3
3
|
import { HamburgerIcon as M } from "../HamburgerIcon/index.js";
|
|
4
4
|
import { faChevronDown as j } from "@fortawesome/fontawesome-free-solid";
|
|
5
|
-
import
|
|
5
|
+
import d from "clsx";
|
|
6
6
|
import { Icon as D } from "../Icon/index.js";
|
|
7
7
|
import { NavItem as F } from "../NavItem/index.js";
|
|
8
|
-
const i = C(null),
|
|
9
|
-
const [
|
|
8
|
+
const i = C(null), N = l(({ className: t, children: r, loading: a }, s) => {
|
|
9
|
+
const [o, n] = v(!1), m = k(
|
|
10
10
|
() => ({
|
|
11
|
-
expanded:
|
|
12
|
-
setExpanded:
|
|
13
|
-
loading:
|
|
11
|
+
expanded: o,
|
|
12
|
+
setExpanded: n,
|
|
13
|
+
loading: a
|
|
14
14
|
}),
|
|
15
|
-
[
|
|
15
|
+
[o, n, a]
|
|
16
16
|
);
|
|
17
|
-
return /* @__PURE__ */ e(i.Provider, { value:
|
|
18
|
-
}),
|
|
19
|
-
({ className:
|
|
17
|
+
return /* @__PURE__ */ e(i.Provider, { value: m, children: /* @__PURE__ */ e("div", { className: t, ref: s, children: r }) });
|
|
18
|
+
}), f = l(
|
|
19
|
+
({ className: t, children: r }, a) => /* @__PURE__ */ e(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
23
|
-
className:
|
|
24
|
-
children:
|
|
22
|
+
ref: a,
|
|
23
|
+
className: d("relative h-24 w-full bg-nav-bg px-2 py-2", t),
|
|
24
|
+
children: r
|
|
25
25
|
}
|
|
26
26
|
)
|
|
27
|
-
),
|
|
28
|
-
const { loading:
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
!
|
|
27
|
+
), g = l(({ className: t, children: r }, a) => {
|
|
28
|
+
const { loading: s, setExpanded: o, expanded: n } = c(i) || {};
|
|
29
|
+
return /* @__PURE__ */ p("div", { ref: a, className: d("flex h-full md:hidden", t), children: [
|
|
30
|
+
!s && /* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
|
|
31
31
|
M,
|
|
32
32
|
{
|
|
33
33
|
variant: "ghost",
|
|
34
|
-
onClick: () =>
|
|
34
|
+
onClick: () => o == null ? void 0 : o(!n),
|
|
35
35
|
className: "aspect-square"
|
|
36
36
|
}
|
|
37
37
|
) }),
|
|
38
|
-
/* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children:
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: r })
|
|
39
39
|
] });
|
|
40
|
-
}),
|
|
40
|
+
}), u = l(({ className: t, children: r }, a) => /* @__PURE__ */ e(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
|
-
ref:
|
|
44
|
-
className:
|
|
43
|
+
ref: a,
|
|
44
|
+
className: d(
|
|
45
45
|
"hidden justify-between md:flex md:gap-4 md:px-4 lg:gap-8 lg:px-20",
|
|
46
|
-
|
|
46
|
+
t
|
|
47
47
|
),
|
|
48
|
-
children:
|
|
48
|
+
children: r
|
|
49
49
|
}
|
|
50
|
-
)),
|
|
51
|
-
({ className:
|
|
52
|
-
const { expanded:
|
|
53
|
-
return
|
|
50
|
+
)), x = l(
|
|
51
|
+
({ className: t, children: r }, a) => {
|
|
52
|
+
const { expanded: s } = c(i) || {};
|
|
53
|
+
return s ? /* @__PURE__ */ e(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
|
-
ref:
|
|
57
|
-
className:
|
|
56
|
+
ref: a,
|
|
57
|
+
className: d(
|
|
58
58
|
"h-screen bg-nav-bg px-8 pb-12 pt-2 md:hidden",
|
|
59
|
-
|
|
59
|
+
t
|
|
60
60
|
),
|
|
61
|
-
children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 md:hidden", children:
|
|
61
|
+
children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 md:hidden", children: r })
|
|
62
62
|
}
|
|
63
|
-
) : /* @__PURE__ */ e(
|
|
63
|
+
) : /* @__PURE__ */ e(H, {});
|
|
64
64
|
}
|
|
65
|
-
),
|
|
66
|
-
({ className:
|
|
67
|
-
const { loading:
|
|
68
|
-
return /* @__PURE__ */ e(
|
|
65
|
+
), h = l(
|
|
66
|
+
({ className: t, children: r }, a) => {
|
|
67
|
+
const { loading: s } = c(i) || {};
|
|
68
|
+
return s ? /* @__PURE__ */ e(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
|
-
ref:
|
|
72
|
-
className:
|
|
73
|
-
children: /* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
ref: a,
|
|
72
|
+
className: d("my-4 md:flex md:gap-4 lg:gap-6", t),
|
|
73
|
+
children: [...Array(5)].map((o, n) => /* @__PURE__ */ e(F, { loading: !0 }, n))
|
|
74
|
+
}
|
|
75
|
+
) : /* @__PURE__ */ e(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
ref: a,
|
|
79
|
+
className: d("my-4 md:flex md:gap-4 lg:gap-6", t),
|
|
80
|
+
children: r
|
|
77
81
|
}
|
|
78
82
|
);
|
|
79
83
|
}
|
|
80
|
-
),
|
|
81
|
-
const [
|
|
82
|
-
return /* @__PURE__ */
|
|
84
|
+
), b = l(({ className: t, label: r, children: a, active: s = !1 }) => {
|
|
85
|
+
const [o, n] = v(!1), m = w(null);
|
|
86
|
+
return /* @__PURE__ */ p(
|
|
83
87
|
"div",
|
|
84
88
|
{
|
|
85
|
-
ref:
|
|
86
|
-
onClick: () =>
|
|
87
|
-
onMouseLeave: () =>
|
|
88
|
-
className:
|
|
89
|
+
ref: m,
|
|
90
|
+
onClick: () => n(!0),
|
|
91
|
+
onMouseLeave: () => n(!1),
|
|
92
|
+
className: d(
|
|
89
93
|
"relative m-auto py-0 text-nav-text after:block after:scale-x-0 after:border-b-2 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
|
|
90
94
|
{
|
|
91
|
-
"font-bold":
|
|
92
|
-
"font-light": !
|
|
95
|
+
"font-bold": s,
|
|
96
|
+
"font-light": !s
|
|
93
97
|
},
|
|
94
|
-
|
|
98
|
+
t
|
|
95
99
|
),
|
|
96
100
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */ e("p", { className: "text-lg", children:
|
|
101
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-1", children: [
|
|
102
|
+
/* @__PURE__ */ e("p", { className: "text-lg", children: r }),
|
|
99
103
|
/* @__PURE__ */ e(D, { size: "xs", icon: j })
|
|
100
104
|
] }),
|
|
101
|
-
|
|
105
|
+
o && /* @__PURE__ */ e("div", { className: "absolute -left-5 top-7 z-50 w-40 bg-nav-bg", children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-y-2 bg-nav-bg px-4 py-4", children: a }) })
|
|
102
106
|
]
|
|
103
107
|
}
|
|
104
108
|
);
|
|
105
|
-
}),
|
|
106
|
-
const { loading:
|
|
107
|
-
return
|
|
109
|
+
}), y = l(({ className: t, src: r, ...a }, s) => {
|
|
110
|
+
const { loading: o } = c(i) || {};
|
|
111
|
+
return o ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "h-20 w-20 animate-pulse bg-gray-300" }) }) : /* @__PURE__ */ e(
|
|
108
112
|
"img",
|
|
109
113
|
{
|
|
110
|
-
className:
|
|
111
|
-
ref:
|
|
112
|
-
src:
|
|
113
|
-
...
|
|
114
|
+
className: d("h-20 flex-none", t),
|
|
115
|
+
ref: s,
|
|
116
|
+
src: r,
|
|
117
|
+
...a
|
|
114
118
|
}
|
|
115
119
|
);
|
|
116
120
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
const A = Object.assign(
|
|
126
|
-
Header:
|
|
127
|
-
DesktopHeader:
|
|
128
|
-
MobileHeader:
|
|
129
|
-
Section:
|
|
130
|
-
Logo:
|
|
131
|
-
Body:
|
|
132
|
-
Folder:
|
|
121
|
+
N.displayName = "Nav";
|
|
122
|
+
f.displayName = "Nav.Header";
|
|
123
|
+
u.displayName = "Nav.DesktopHeader";
|
|
124
|
+
g.displayName = "Nav.MobileHeader";
|
|
125
|
+
y.displayName = "Nav.Logo";
|
|
126
|
+
h.displayName = "Nav.Section";
|
|
127
|
+
x.displayName = "Nav.Body";
|
|
128
|
+
b.displayName = "Nav.Folder";
|
|
129
|
+
const A = Object.assign(N, {
|
|
130
|
+
Header: f,
|
|
131
|
+
DesktopHeader: u,
|
|
132
|
+
MobileHeader: g,
|
|
133
|
+
Section: h,
|
|
134
|
+
Logo: y,
|
|
135
|
+
Body: x,
|
|
136
|
+
Folder: b
|
|
133
137
|
});
|
|
134
138
|
export {
|
|
135
139
|
A as Nav
|
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
const l = o(({ loading: t = !1, active: e, children: r, className: m, href: f, ...i }, c) => t ? /* @__PURE__ */ a("div", { className: "m-auto", children: /* @__PURE__ */ a("div", { className: "h-7 w-20 animate-pulse rounded-md bg-gray-300" }) }) : /* @__PURE__ */ a(
|
|
5
5
|
"a",
|
|
6
6
|
{
|
|
7
|
-
href:
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
7
|
+
href: f,
|
|
8
|
+
ref: c,
|
|
9
|
+
className: n(
|
|
10
10
|
"m-auto inline-block py-0 text-nav-text after:block after:scale-x-0 after:border-b-2 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
|
|
11
11
|
{
|
|
12
12
|
"font-bold": e,
|
|
13
13
|
"font-light": !e
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
m
|
|
16
16
|
),
|
|
17
|
-
...
|
|
18
|
-
children:
|
|
17
|
+
...i,
|
|
18
|
+
children: r
|
|
19
19
|
}
|
|
20
|
-
)),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
)), s = o(({ className: t, ...e }, r) => /* @__PURE__ */ a(
|
|
21
|
+
"p",
|
|
22
|
+
{
|
|
23
|
+
className: n("flex-none text-nowrap text-lg", t),
|
|
24
|
+
ref: r,
|
|
25
|
+
...e
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
l.displayName = "NavItem";
|
|
29
|
+
s.displayName = "NavItem.Label";
|
|
30
|
+
const x = Object.assign(l, {
|
|
31
|
+
Label: s
|
|
25
32
|
});
|
|
26
33
|
export {
|
|
27
|
-
|
|
34
|
+
x as NavItem
|
|
28
35
|
};
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps
|
|
6
|
+
component: ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
parameters: {};
|
|
8
8
|
argTypes: {
|
|
9
9
|
leftIconProps: {
|
|
@@ -69,16 +69,6 @@ declare const meta: {
|
|
|
69
69
|
};
|
|
70
70
|
args: {
|
|
71
71
|
placeholder: string;
|
|
72
|
-
leftIconProps: {
|
|
73
|
-
type: string;
|
|
74
|
-
className: string;
|
|
75
|
-
bgColour: string;
|
|
76
|
-
};
|
|
77
|
-
rightIconProps: {
|
|
78
|
-
type: string;
|
|
79
|
-
className: string;
|
|
80
|
-
bgColour: string;
|
|
81
|
-
};
|
|
82
72
|
};
|
|
83
73
|
};
|
|
84
74
|
export default meta;
|
|
@@ -9,4 +9,4 @@ export interface Props {
|
|
|
9
9
|
leftIconProps?: IconProps;
|
|
10
10
|
rightIconProps?: IconProps;
|
|
11
11
|
}
|
|
12
|
-
export declare const Search: ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps
|
|
12
|
+
export declare const Search: ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Select } from './';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, className, options, value, label, onClick, required, fullWidth
|
|
6
|
+
component: ({ id, className, options, value, label, onClick, required, fullWidth }: import('./').SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
parameters: {};
|
|
8
8
|
argTypes: {
|
|
9
9
|
label: {
|
|
@@ -8,4 +8,4 @@ export interface SelectProps {
|
|
|
8
8
|
fullWidth?: boolean;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare const Select: ({ id, className, options, value, label, onClick, required, fullWidth
|
|
11
|
+
export declare const Select: ({ id, className, options, value, label, onClick, required, fullWidth }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({
|
|
6
|
+
component: ({ title, subTitle, description, size, iconProps }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
argTypes: {
|
|
8
8
|
id: {
|
|
9
9
|
description: string;
|
|
@@ -42,12 +42,8 @@ declare const meta: {
|
|
|
42
42
|
title: string;
|
|
43
43
|
subTitle: string;
|
|
44
44
|
description: string;
|
|
45
|
-
bgColour:
|
|
46
|
-
size:
|
|
47
|
-
iconProps: {
|
|
48
|
-
icon: import('@fortawesome/fontawesome-free-solid').IconDefinition;
|
|
49
|
-
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
50
|
-
};
|
|
45
|
+
bgColour: "white";
|
|
46
|
+
size: "large";
|
|
51
47
|
};
|
|
52
48
|
};
|
|
53
49
|
export default meta;
|
|
@@ -12,4 +12,4 @@ export interface Props {
|
|
|
12
12
|
size?: 'small' | 'medium' | 'large';
|
|
13
13
|
iconProps?: IconProps;
|
|
14
14
|
}
|
|
15
|
-
export declare const Showcase: ({
|
|
15
|
+
export declare const Showcase: ({ title, subTitle, description, size, iconProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, className, children,
|
|
6
|
+
component: ({ id, className, children, showNav, leftExpand }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
parameters: {
|
|
8
8
|
backgrounds: {
|
|
9
9
|
default: string;
|
|
@@ -14,18 +14,10 @@ declare const meta: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
argTypes: {
|
|
17
|
-
navLinks: {
|
|
18
|
-
description: string;
|
|
19
|
-
table: {
|
|
20
|
-
type: {
|
|
21
|
-
summary: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
17
|
bgColour: {
|
|
26
18
|
type: {
|
|
27
|
-
name: string;
|
|
28
|
-
required:
|
|
19
|
+
name: "string";
|
|
20
|
+
required: false;
|
|
29
21
|
};
|
|
30
22
|
options: string[];
|
|
31
23
|
description: string;
|
|
@@ -72,7 +64,7 @@ declare const meta: {
|
|
|
72
64
|
};
|
|
73
65
|
args: {
|
|
74
66
|
children: import("react/jsx-runtime").JSX.Element;
|
|
75
|
-
showNav:
|
|
67
|
+
showNav: true;
|
|
76
68
|
};
|
|
77
69
|
};
|
|
78
70
|
export default meta;
|
|
@@ -3,10 +3,10 @@ import { Colours } from '../../utils/controls';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
id: string;
|
|
5
5
|
className: string;
|
|
6
|
-
children:
|
|
6
|
+
children: React.ReactNode;
|
|
7
7
|
getNavStatus: (asSideBar: boolean, open: boolean) => void;
|
|
8
8
|
bgColour?: Colours;
|
|
9
9
|
showNav?: boolean;
|
|
10
10
|
leftExpand?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const SideNav: ({ id, className, children,
|
|
12
|
+
export declare const SideNav: ({ id, className, children, showNav, leftExpand }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ id, className, onClick, type, href, openInNewTab
|
|
6
|
+
component: ({ id, className, onClick, type, href, openInNewTab }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
parameters: {
|
|
8
8
|
docs: {
|
|
9
9
|
description: {
|
|
@@ -14,8 +14,8 @@ declare const meta: {
|
|
|
14
14
|
argTypes: {
|
|
15
15
|
onClick: {
|
|
16
16
|
type: {
|
|
17
|
-
name:
|
|
18
|
-
required:
|
|
17
|
+
name: "function";
|
|
18
|
+
required: false;
|
|
19
19
|
};
|
|
20
20
|
description: string;
|
|
21
21
|
action: string;
|
|
@@ -30,8 +30,8 @@ declare const meta: {
|
|
|
30
30
|
};
|
|
31
31
|
type: {
|
|
32
32
|
type: {
|
|
33
|
-
name: string;
|
|
34
|
-
required:
|
|
33
|
+
name: "string";
|
|
34
|
+
required: false;
|
|
35
35
|
};
|
|
36
36
|
options: string[];
|
|
37
37
|
description: string;
|
|
@@ -50,8 +50,8 @@ declare const meta: {
|
|
|
50
50
|
};
|
|
51
51
|
href: {
|
|
52
52
|
type: {
|
|
53
|
-
name: string;
|
|
54
|
-
required:
|
|
53
|
+
name: "string";
|
|
54
|
+
required: false;
|
|
55
55
|
};
|
|
56
56
|
description: string;
|
|
57
57
|
table: {
|
|
@@ -65,27 +65,12 @@ declare const meta: {
|
|
|
65
65
|
};
|
|
66
66
|
openInNewTab: {
|
|
67
67
|
type: {
|
|
68
|
-
name:
|
|
69
|
-
required:
|
|
68
|
+
name: "boolean";
|
|
69
|
+
required: false;
|
|
70
70
|
};
|
|
71
71
|
description: string;
|
|
72
72
|
defaultValue: string;
|
|
73
73
|
};
|
|
74
|
-
children: {
|
|
75
|
-
type: {
|
|
76
|
-
name: string;
|
|
77
|
-
value: string;
|
|
78
|
-
};
|
|
79
|
-
description: string;
|
|
80
|
-
table: {
|
|
81
|
-
type: {
|
|
82
|
-
summary: string;
|
|
83
|
-
};
|
|
84
|
-
defaultValue: {
|
|
85
|
-
summary: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
74
|
id: {
|
|
90
75
|
description: string;
|
|
91
76
|
control: {
|
|
@@ -120,7 +105,7 @@ declare const meta: {
|
|
|
120
105
|
};
|
|
121
106
|
};
|
|
122
107
|
args: {
|
|
123
|
-
type:
|
|
108
|
+
type: "facebook";
|
|
124
109
|
href: string;
|
|
125
110
|
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
126
111
|
};
|
|
@@ -9,4 +9,4 @@ export interface Props {
|
|
|
9
9
|
href?: string;
|
|
10
10
|
openInNewTab?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const SocialButton: ({ id, className, onClick, type, href, openInNewTab
|
|
12
|
+
export declare const SocialButton: ({ id, className, onClick, type, href, openInNewTab }: Props) => import("react/jsx-runtime").JSX.Element;
|