trepur_components 2.3.9 → 2.3.10

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 (282) hide show
  1. package/lib/_virtual/react.js +4 -0
  2. package/lib/components/Accordion/Accordion.stories.d.ts +47 -0
  3. package/lib/components/Accordion/const.d.ts +31 -0
  4. package/lib/components/Accordion/index.d.ts +5 -0
  5. package/lib/components/Accordion/index.js +9 -0
  6. package/lib/components/AlertBar/AlertBar.stories.d.ts +24 -0
  7. package/lib/components/AlertBar/index.d.ts +16 -0
  8. package/lib/components/AlertBar/index.js +36 -0
  9. package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
  10. package/lib/components/Avatar/index.d.ts +3 -0
  11. package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +18 -0
  12. package/lib/components/Breadcrumbs/index.d.ts +17 -0
  13. package/lib/components/Breadcrumbs/index.js +16 -0
  14. package/lib/components/Button/Button.stories.d.ts +20 -0
  15. package/lib/components/Button/index.d.ts +13 -0
  16. package/lib/components/Button/index.js +30 -0
  17. package/lib/components/Calendar/Calendar.stories.d.ts +11 -0
  18. package/lib/components/Calendar/index.d.ts +14 -0
  19. package/lib/components/Calendar/index.js +49 -0
  20. package/lib/components/Calendar/style.css.js +1 -0
  21. package/lib/components/Card/Card.stories.d.ts +11 -0
  22. package/lib/components/Card/index.d.ts +2 -0
  23. package/lib/components/Card/index.js +25 -0
  24. package/lib/components/Carousel/Carousel.stories.d.ts +23 -0
  25. package/lib/components/Carousel/index.d.ts +70 -0
  26. package/lib/components/Carousel/index.js +159 -0
  27. package/lib/components/Carousel/utils.d.ts +1 -0
  28. package/lib/components/Carousel/utils.js +38 -0
  29. package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +22 -0
  30. package/lib/components/CarouselThumbnail/const.d.ts +1 -0
  31. package/lib/components/CarouselThumbnail/const.js +20 -0
  32. package/lib/components/CarouselThumbnail/index.d.ts +51 -0
  33. package/lib/components/CarouselThumbnail/index.js +74 -0
  34. package/lib/components/CarouselThumbnail/utils.d.ts +2 -0
  35. package/lib/components/CarouselThumbnail/utils.js +65 -0
  36. package/lib/components/Checkbox/Checkbox.stories.d.ts +17 -0
  37. package/lib/components/Checkbox/index.d.ts +11 -0
  38. package/lib/components/Checkbox/index.js +28 -0
  39. package/lib/components/Collapsible/Collapsible.stories.d.ts +57 -0
  40. package/lib/components/Collapsible/index.d.ts +19 -0
  41. package/lib/components/Collapsible/index.js +87 -0
  42. package/lib/components/Counter/Counter.stories.d.ts +17 -0
  43. package/lib/components/Counter/index.d.ts +14 -0
  44. package/lib/components/Counter/index.js +49 -0
  45. package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +20 -0
  46. package/lib/components/DetailUpdater/index.d.ts +18 -0
  47. package/lib/components/DetailUpdater/index.js +63 -0
  48. package/lib/components/Dialog/Dialog.stories.d.ts +15 -0
  49. package/lib/components/Dialog/index.d.ts +12 -0
  50. package/lib/components/Dialog/index.js +16 -0
  51. package/lib/components/Dropdown/Dropdown.stories.d.ts +17 -0
  52. package/lib/components/Dropdown/index.d.ts +13 -0
  53. package/lib/components/Dropdown/index.js +66 -0
  54. package/lib/components/Dropdown/utils.d.ts +1 -0
  55. package/lib/components/Dropdown/utils.js +14 -0
  56. package/lib/components/FileUploader/FilePreview.d.ts +8 -0
  57. package/lib/components/FileUploader/FileUploader.stories.d.ts +52 -0
  58. package/lib/components/FileUploader/index.d.ts +15 -0
  59. package/lib/components/Footer/Footer.stories.d.ts +19 -0
  60. package/lib/components/Footer/index.d.ts +16 -0
  61. package/lib/components/Footer/index.js +36 -0
  62. package/lib/components/FooterNav/FooterNav.stories.d.ts +22 -0
  63. package/lib/components/FooterNav/index.d.ts +15 -0
  64. package/lib/components/FooterNav/index.js +38 -0
  65. package/lib/components/Form/Form.stories.d.ts +117 -0
  66. package/lib/components/Form/index.d.ts +13 -0
  67. package/lib/components/Form/index.js +17 -0
  68. package/lib/components/Gallery/Gallery.stories.d.ts +16 -0
  69. package/lib/components/Gallery/index.d.ts +7 -0
  70. package/lib/components/Greeting/Greeting.stories.d.ts +13 -0
  71. package/lib/components/Greeting/index.d.ts +7 -0
  72. package/lib/components/Greeting/index.js +20 -0
  73. package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +10 -0
  74. package/lib/components/HamburgerIcon/index.d.ts +2 -0
  75. package/lib/components/HamburgerIcon/index.js +78 -0
  76. package/lib/components/Icon/Icon.stories.d.ts +16 -0
  77. package/lib/components/Icon/index.d.ts +10 -0
  78. package/lib/components/Icon/index.js +23 -0
  79. package/lib/components/Image/Image.stories.d.ts +13 -0
  80. package/lib/components/Image/index.d.ts +5 -0
  81. package/lib/components/Image/index.js +17 -0
  82. package/lib/components/ImageCard/ImageCard.stories.d.ts +19 -0
  83. package/lib/components/ImageCard/index.d.ts +11 -0
  84. package/lib/components/ImageCard/index.js +32 -0
  85. package/lib/components/Input/Input.stories.d.ts +22 -0
  86. package/lib/components/Input/index.d.ts +33 -0
  87. package/lib/components/Input/index.js +83 -0
  88. package/lib/components/MenuButton/MenuButton.stories.d.ts +76 -0
  89. package/lib/components/MenuButton/index.d.ts +14 -0
  90. package/lib/components/MenuButton/index.js +56 -0
  91. package/lib/components/Modal/Modal.stories.d.ts +67 -0
  92. package/lib/components/Modal/index.d.ts +10 -0
  93. package/lib/components/Modal/index.js +45 -0
  94. package/lib/components/Nav/Nav.stories.d.ts +32 -0
  95. package/lib/components/Nav/index.d.ts +21 -0
  96. package/lib/components/Nav/index.js +82 -0
  97. package/lib/components/NavItem/NavItem.stories.d.ts +18 -0
  98. package/lib/components/NavItem/index.d.ts +8 -0
  99. package/lib/components/NavItem/index.js +24 -0
  100. package/lib/components/Pill/Pill.stories.d.ts +22 -0
  101. package/lib/components/Pill/index.d.ts +17 -0
  102. package/lib/components/Pill/index.js +31 -0
  103. package/lib/components/Search/Search.stories.d.ts +86 -0
  104. package/lib/components/Search/index.d.ts +12 -0
  105. package/lib/components/Search/index.js +42 -0
  106. package/lib/components/Select/Select.stories.d.ts +56 -0
  107. package/lib/components/Select/index.d.ts +11 -0
  108. package/lib/components/Select/index.js +68 -0
  109. package/lib/components/Showcase/Showcase.stories.d.ts +55 -0
  110. package/lib/components/Showcase/index.d.ts +15 -0
  111. package/lib/components/SideNav/SideNav.stories.d.ts +80 -0
  112. package/lib/components/SideNav/index.d.ts +12 -0
  113. package/lib/components/SocialButton/SocialButton.stories.d.ts +130 -0
  114. package/lib/components/SocialButton/index.d.ts +12 -0
  115. package/lib/components/SplitCard/SplitCard.stories.d.ts +21 -0
  116. package/lib/components/SplitCard/index.d.ts +14 -0
  117. package/lib/components/Stars/Star.stories.d.ts +14 -0
  118. package/lib/components/Stars/index.d.ts +8 -0
  119. package/lib/components/Stars/index.js +22 -0
  120. package/lib/components/Testimonial/Testimonial.stories.d.ts +21 -0
  121. package/lib/components/Testimonial/index.d.ts +13 -0
  122. package/lib/components/Testimonial/index.js +42 -0
  123. package/lib/components/TextArea/TextArea.stories.d.ts +21 -0
  124. package/lib/components/TextArea/index.d.ts +33 -0
  125. package/lib/components/TextArea/index.js +76 -0
  126. package/lib/components/Timeline/Timeline.stories.d.ts +21 -0
  127. package/lib/components/Timeline/index.d.ts +11 -0
  128. package/lib/components/Timeline/index.js +31 -0
  129. package/lib/components/Tubestops/Tubestops.stories.d.ts +19 -0
  130. package/lib/components/Tubestops/index.d.ts +15 -0
  131. package/lib/components/Tubestops/index.js +77 -0
  132. package/lib/components/Video/Video.stories.d.ts +23 -0
  133. package/lib/components/Video/index.d.ts +18 -0
  134. package/lib/components/Video/index.js +32 -0
  135. package/{src/components/index.ts → lib/components/index.d.ts} +35 -71
  136. package/lib/documentation/assets/index.d.ts +3 -0
  137. package/lib/documentation/typography/Fonts/Fonts.d.ts +2 -0
  138. package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +10 -0
  139. package/lib/index.js +72 -0
  140. package/lib/node_modules/keen-slider/keen-slider.min.css.js +1 -0
  141. package/lib/node_modules/keen-slider/react.js +591 -0
  142. package/lib/style.css +1 -0
  143. package/lib/utils/controls.d.ts +36 -0
  144. package/lib/utils/matchMedia.d.ts +2 -0
  145. package/lib/utils/screens.d.ts +7 -0
  146. package/package.json +4 -1
  147. package/.eslintrc.cjs +0 -72
  148. package/.husky/pre-commit +0 -4
  149. package/.prettierignore +0 -10
  150. package/.prettierrc.json +0 -22
  151. package/postcss.config.js +0 -8
  152. package/src/components/Accordion/Accordion.stories.tsx +0 -39
  153. package/src/components/Accordion/const.tsx +0 -34
  154. package/src/components/Accordion/index.tsx +0 -22
  155. package/src/components/AlertBar/AlertBar.stories.tsx +0 -89
  156. package/src/components/AlertBar/index.tsx +0 -82
  157. package/src/components/Avatar/Avatar.stories.tsx +0 -14
  158. package/src/components/Avatar/index.tsx +0 -492
  159. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -29
  160. package/src/components/Breadcrumbs/index.tsx +0 -89
  161. package/src/components/Button/Button.stories.tsx +0 -24
  162. package/src/components/Button/index.tsx +0 -59
  163. package/src/components/Calendar/Calendar.stories.tsx +0 -21
  164. package/src/components/Calendar/index.tsx +0 -92
  165. package/src/components/Calendar/style.css +0 -233
  166. package/src/components/Card/Card.stories.tsx +0 -14
  167. package/src/components/Card/index.tsx +0 -39
  168. package/src/components/Carousel/Carousel.stories.tsx +0 -44
  169. package/src/components/Carousel/index.tsx +0 -301
  170. package/src/components/Carousel/utils.ts +0 -53
  171. package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -29
  172. package/src/components/CarouselThumbnail/const.ts +0 -17
  173. package/src/components/CarouselThumbnail/index.tsx +0 -169
  174. package/src/components/CarouselThumbnail/utils.ts +0 -87
  175. package/src/components/Checkbox/Checkbox.mdx +0 -33
  176. package/src/components/Checkbox/Checkbox.stories.tsx +0 -27
  177. package/src/components/Checkbox/index.tsx +0 -44
  178. package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
  179. package/src/components/Collapsible/index.tsx +0 -169
  180. package/src/components/Counter/Counter.stories.tsx +0 -20
  181. package/src/components/Counter/index.tsx +0 -98
  182. package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -37
  183. package/src/components/DetailUpdater/index.tsx +0 -107
  184. package/src/components/Dialog/Dialog.stories.tsx +0 -65
  185. package/src/components/Dialog/index.tsx +0 -29
  186. package/src/components/Dropdown/Dropdown.stories.tsx +0 -22
  187. package/src/components/Dropdown/index.tsx +0 -117
  188. package/src/components/Dropdown/utils.ts +0 -15
  189. package/src/components/FileUploader/FilePreview.tsx +0 -45
  190. package/src/components/FileUploader/FileUploader.stories.tsx +0 -28
  191. package/src/components/FileUploader/index.tsx +0 -177
  192. package/src/components/Footer/Footer.stories.tsx +0 -47
  193. package/src/components/Footer/index.tsx +0 -96
  194. package/src/components/FooterNav/FooterNav.stories.tsx +0 -32
  195. package/src/components/FooterNav/index.tsx +0 -75
  196. package/src/components/Form/Form.stories.tsx +0 -86
  197. package/src/components/Form/index.tsx +0 -41
  198. package/src/components/Gallery/Gallery.stories.tsx +0 -39
  199. package/src/components/Gallery/index.tsx +0 -31
  200. package/src/components/Greeting/Greeting.stories.tsx +0 -16
  201. package/src/components/Greeting/index.tsx +0 -49
  202. package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -14
  203. package/src/components/HamburgerIcon/index.tsx +0 -75
  204. package/src/components/Icon/Icon.stories.tsx +0 -41
  205. package/src/components/Icon/index.tsx +0 -33
  206. package/src/components/Image/Image.stories.tsx +0 -17
  207. package/src/components/Image/index.tsx +0 -25
  208. package/src/components/ImageCard/ImageCard.stories.tsx +0 -29
  209. package/src/components/ImageCard/index.tsx +0 -75
  210. package/src/components/Input/Input.stories.tsx +0 -25
  211. package/src/components/Input/index.tsx +0 -139
  212. package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
  213. package/src/components/MenuButton/index.tsx +0 -66
  214. package/src/components/Modal/Modal.stories.tsx +0 -82
  215. package/src/components/Modal/index.tsx +0 -71
  216. package/src/components/Nav/Nav.stories.tsx +0 -80
  217. package/src/components/Nav/index.tsx +0 -171
  218. package/src/components/NavItem/NavItem.stories.tsx +0 -17
  219. package/src/components/NavItem/index.tsx +0 -39
  220. package/src/components/Pill/Pill.stories.tsx +0 -51
  221. package/src/components/Pill/index.tsx +0 -69
  222. package/src/components/Search/Search.stories.tsx +0 -63
  223. package/src/components/Search/index.tsx +0 -64
  224. package/src/components/Select/Select.stories.tsx +0 -55
  225. package/src/components/Select/index.tsx +0 -97
  226. package/src/components/Showcase/Showcase.stories.tsx +0 -31
  227. package/src/components/Showcase/index.tsx +0 -62
  228. package/src/components/SideNav/SideNav.stories.tsx +0 -50
  229. package/src/components/SideNav/index.tsx +0 -39
  230. package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
  231. package/src/components/SocialButton/index.tsx +0 -63
  232. package/src/components/SplitCard/SplitCard.stories.tsx +0 -34
  233. package/src/components/SplitCard/index.tsx +0 -132
  234. package/src/components/Stars/Star.stories.tsx +0 -18
  235. package/src/components/Stars/index.tsx +0 -38
  236. package/src/components/Testimonial/Testimonial.stories.tsx +0 -37
  237. package/src/components/Testimonial/index.tsx +0 -123
  238. package/src/components/TextArea/TextArea.stories.tsx +0 -24
  239. package/src/components/TextArea/index.tsx +0 -133
  240. package/src/components/Timeline/Timeline.stories.tsx +0 -45
  241. package/src/components/Timeline/index.tsx +0 -65
  242. package/src/components/Tubestops/Tubestops.stories.tsx +0 -22
  243. package/src/components/Tubestops/index.tsx +0 -132
  244. package/src/components/Video/Video.stories.tsx +0 -58
  245. package/src/components/Video/assets/example.mp4 +0 -0
  246. package/src/components/Video/assets/example.ogv +0 -0
  247. package/src/components/Video/assets/example.webm +0 -0
  248. package/src/components/Video/index.tsx +0 -92
  249. package/src/custom.d.ts +0 -14
  250. package/src/documentation/Colours.mdx +0 -192
  251. package/src/documentation/Introduction.mdx +0 -13
  252. package/src/documentation/assets/index.ts +0 -3
  253. package/src/documentation/assets/trepurComponentsLogo.svg +0 -32
  254. package/src/documentation/typography/Fonts/Fonts.stories.tsx +0 -14
  255. package/src/documentation/typography/Fonts/Fonts.tsx +0 -73
  256. package/src/fonts/Sora/OFL.txt +0 -93
  257. package/src/fonts/Sora/README.txt +0 -70
  258. package/src/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  259. package/src/fonts/Sora/static/Sora-Bold.ttf +0 -0
  260. package/src/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  261. package/src/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  262. package/src/fonts/Sora/static/Sora-Light.ttf +0 -0
  263. package/src/fonts/Sora/static/Sora-Medium.ttf +0 -0
  264. package/src/fonts/Sora/static/Sora-Regular.ttf +0 -0
  265. package/src/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  266. package/src/fonts/Sora/static/Sora-Thin.ttf +0 -0
  267. package/src/utils/controls.ts +0 -44
  268. package/src/utils/matchMedia.ts +0 -9
  269. package/src/utils/screens.ts +0 -7
  270. package/tailwind.config.ts +0 -13
  271. package/tsconfig.json +0 -49
  272. package/tsconfig.node.json +0 -12
  273. package/vite.config.mjs +0 -64
  274. /package/{src/index.ts → lib/index.d.ts} +0 -0
  275. /package/{src → lib}/styles/global.css +0 -0
  276. /package/{src → lib}/styles/themes/local.css +0 -0
  277. /package/{src → lib}/styles/themes/test.css +0 -0
  278. /package/{tailwind → lib/tailwind}/boxShadow.ts +0 -0
  279. /package/{tailwind → lib/tailwind}/colors.ts +0 -0
  280. /package/{tailwind → lib/tailwind}/container.ts +0 -0
  281. /package/{tailwind → lib/tailwind}/preset.ts +0 -0
  282. /package/{tailwind → lib/tailwind}/spacing.ts +0 -0
@@ -0,0 +1,42 @@
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { Icon as r } from "../Icon/index.js";
3
+ import n from "classnames";
4
+ const N = ({
5
+ id: c,
6
+ className: o,
7
+ onChange: s,
8
+ placeholder: m,
9
+ text: i,
10
+ leftIconProps: l,
11
+ rightIconProps: a
12
+ }) => {
13
+ const t = n(o, "flex"), v = n(
14
+ {
15
+ "pl-9": l !== void 0,
16
+ "pl-2": l === void 0
17
+ },
18
+ "w-full rounded-md border-2 py-2 pr-9"
19
+ ), p = s != null ? (u) => {
20
+ s(u.target.value);
21
+ } : void 0;
22
+ return /* @__PURE__ */ d("div", { id: c, className: t, children: [
23
+ /* @__PURE__ */ e("div", { children: i !== void 0 && /* @__PURE__ */ e("h2", { className: "font-base-lg py-2 pr-4", children: i }) }),
24
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ d("div", { className: "relative flex w-full", children: [
25
+ l !== void 0 && /* @__PURE__ */ e(r, { ...l }),
26
+ /* @__PURE__ */ e(
27
+ "input",
28
+ {
29
+ className: v,
30
+ onChange: p,
31
+ placeholder: m,
32
+ type: "text",
33
+ name: "search"
34
+ }
35
+ ),
36
+ a !== void 0 && /* @__PURE__ */ e(r, { ...a })
37
+ ] }) })
38
+ ] });
39
+ };
40
+ export {
41
+ N as Search
42
+ };
@@ -0,0 +1,56 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Select } from './';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, options, value, label, onClick, required, fullWidth, }: import('./').SelectProps) => import("react/jsx-runtime").JSX.Element;
7
+ parameters: {};
8
+ argTypes: {
9
+ label: {
10
+ description: string;
11
+ control: string;
12
+ table: {
13
+ category: string;
14
+ };
15
+ };
16
+ id: {
17
+ description: string;
18
+ control: {
19
+ type: string;
20
+ default: boolean;
21
+ };
22
+ table: {
23
+ category: string;
24
+ type: {
25
+ summary: string;
26
+ };
27
+ defaultValue: {
28
+ summary: string;
29
+ };
30
+ };
31
+ };
32
+ className: {
33
+ description: string;
34
+ control: {
35
+ type: string;
36
+ default: boolean;
37
+ };
38
+ table: {
39
+ category: string;
40
+ type: {
41
+ summary: string;
42
+ };
43
+ defaultValue: {
44
+ summary: string;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ args: {
50
+ label: string;
51
+ options: string[];
52
+ };
53
+ };
54
+ export default meta;
55
+ type Story = StoryObj<typeof Select>;
56
+ export declare const Default: Story;
@@ -0,0 +1,11 @@
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;
10
+ }
11
+ export declare const Select: ({ id, className, options, value, label, onClick, required, fullWidth, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,68 @@
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
61
+ },
62
+ `key_${N}`
63
+ )) }) })
64
+ ] });
65
+ };
66
+ export {
67
+ A as Select
68
+ };
@@ -0,0 +1,55 @@
1
+ import { Showcase } from '.';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, title, subTitle, description, bgColour, size, iconProps, }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
7
+ argTypes: {
8
+ id: {
9
+ description: string;
10
+ control: {
11
+ type: string;
12
+ default: boolean;
13
+ };
14
+ table: {
15
+ category: string;
16
+ type: {
17
+ summary: string;
18
+ };
19
+ defaultValue: {
20
+ summary: string;
21
+ };
22
+ };
23
+ };
24
+ className: {
25
+ description: string;
26
+ control: {
27
+ type: string;
28
+ default: boolean;
29
+ };
30
+ table: {
31
+ category: string;
32
+ type: {
33
+ summary: string;
34
+ };
35
+ defaultValue: {
36
+ summary: string;
37
+ };
38
+ };
39
+ };
40
+ };
41
+ args: {
42
+ title: string;
43
+ subTitle: string;
44
+ description: string;
45
+ bgColour: string;
46
+ size: string;
47
+ iconProps: {
48
+ icon: import('@fortawesome/fontawesome-free-solid').IconDefinition;
49
+ onClick: import('@storybook/addon-actions').HandlerFunction;
50
+ };
51
+ };
52
+ };
53
+ export default meta;
54
+ type Story = StoryObj<typeof Showcase>;
55
+ export declare const Default: Story;
@@ -0,0 +1,15 @@
1
+ import { Colours } from '../../utils/controls';
2
+ import { IconProps } from '../Icon';
3
+
4
+ export interface Props {
5
+ id: string;
6
+ className?: string;
7
+ title: string;
8
+ subTitle: string;
9
+ description: string;
10
+ bgColour?: Colours;
11
+ image: string;
12
+ size?: 'small' | 'medium' | 'large';
13
+ iconProps?: IconProps;
14
+ }
15
+ export declare const Showcase: ({ id, className, title, subTitle, description, bgColour, size, iconProps, }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,80 @@
1
+ import { SideNav } from '.';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ id, className, children, bgColour, 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
+ navLinks: {
18
+ description: string;
19
+ table: {
20
+ type: {
21
+ summary: string;
22
+ };
23
+ };
24
+ };
25
+ bgColour: {
26
+ type: {
27
+ name: string;
28
+ required: boolean;
29
+ };
30
+ options: string[];
31
+ description: string;
32
+ table: {
33
+ type: {
34
+ summary: string;
35
+ };
36
+ };
37
+ defaultValue: string;
38
+ control: string;
39
+ };
40
+ id: {
41
+ description: string;
42
+ control: {
43
+ type: string;
44
+ default: boolean;
45
+ };
46
+ table: {
47
+ category: string;
48
+ type: {
49
+ summary: string;
50
+ };
51
+ defaultValue: {
52
+ summary: string;
53
+ };
54
+ };
55
+ };
56
+ className: {
57
+ description: string;
58
+ control: {
59
+ type: string;
60
+ default: boolean;
61
+ };
62
+ table: {
63
+ category: string;
64
+ type: {
65
+ summary: string;
66
+ };
67
+ defaultValue: {
68
+ summary: string;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ args: {
74
+ children: import("react/jsx-runtime").JSX.Element;
75
+ showNav: boolean;
76
+ };
77
+ };
78
+ export default meta;
79
+ type Story = StoryObj<typeof SideNav>;
80
+ export declare const Default: Story;
@@ -0,0 +1,12 @@
1
+ import { Colours } from '../../utils/controls';
2
+
3
+ export interface Props {
4
+ id: string;
5
+ className: string;
6
+ children: any;
7
+ getNavStatus: (asSideBar: boolean, open: boolean) => void;
8
+ bgColour?: Colours;
9
+ showNav?: boolean;
10
+ leftExpand?: boolean;
11
+ }
12
+ export declare const SideNav: ({ id, className, children, bgColour, showNav, leftExpand, }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,130 @@
1
+ import { SocialButton } from '.';
2
+ import { StoryObj } from '@storybook/react';
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: string;
18
+ required: boolean;
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: boolean;
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: boolean;
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: string;
69
+ required: boolean;
70
+ };
71
+ description: string;
72
+ defaultValue: string;
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
+ id: {
90
+ description: string;
91
+ control: {
92
+ type: string;
93
+ default: boolean;
94
+ };
95
+ table: {
96
+ category: string;
97
+ type: {
98
+ summary: string;
99
+ };
100
+ defaultValue: {
101
+ summary: string;
102
+ };
103
+ };
104
+ };
105
+ className: {
106
+ description: string;
107
+ control: {
108
+ type: string;
109
+ default: boolean;
110
+ };
111
+ table: {
112
+ category: string;
113
+ type: {
114
+ summary: string;
115
+ };
116
+ defaultValue: {
117
+ summary: string;
118
+ };
119
+ };
120
+ };
121
+ };
122
+ args: {
123
+ type: string;
124
+ href: string;
125
+ onClick: import('@storybook/addon-actions').HandlerFunction;
126
+ };
127
+ };
128
+ export default meta;
129
+ type Story = StoryObj<typeof SocialButton>;
130
+ export declare const Default: Story;
@@ -0,0 +1,12 @@
1
+ import { SocialTypes } from '../../utils/controls';
2
+ import { default as React } from 'react';
3
+
4
+ export interface Props {
5
+ id?: string;
6
+ className?: string;
7
+ onClick?: React.MouseEventHandler;
8
+ type?: SocialTypes;
9
+ href?: string;
10
+ openInNewTab?: boolean;
11
+ }
12
+ export declare const SocialButton: ({ id, className, onClick, type, href, openInNewTab, }: Props) => import("react/jsx-runtime").JSX.Element;
@@ -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
+ className: string;
14
+ swapDesktop: true;
15
+ swapMobile: true;
16
+ children: import("react/jsx-runtime").JSX.Element[];
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof SplitCard>;
21
+ export declare const Default: Story;
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface SplitCardContextProps {
4
+ swapDesktop?: boolean;
5
+ swapMobile?: boolean;
6
+ isMd?: boolean;
7
+ }
8
+ declare const SplitCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & SplitCardContextProps & import('react').RefAttributes<HTMLDivElement>> & {
9
+ LeftContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
10
+ RightContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ Title: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
12
+ Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
13
+ };
14
+ export { SplitCard };
@@ -0,0 +1,14 @@
1
+ import { Stars } from '.';
2
+ import { StoryObj } from '@storybook/react';
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,8 @@
1
+ import { SizeProp } from '@fortawesome/fontawesome-svg-core';
2
+
3
+ export interface StarProps {
4
+ stars?: 1 | 2 | 3 | 4 | 5;
5
+ size?: SizeProp;
6
+ }
7
+ declare const Stars: any;
8
+ export { Stars };
@@ -0,0 +1,22 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as c } from "react";
3
+ import { Icon as i } from "../Icon/index.js";
4
+ import { faStar as n } from "@fortawesome/fontawesome-free-solid";
5
+ import f from "clsx";
6
+ const o = c(({ className: s, stars: a = 0, size: p }, e) => {
7
+ const m = () => [...Array(5)].map((d, r) => /* @__PURE__ */ t(
8
+ i,
9
+ {
10
+ className: r < a ? "text-star" : "",
11
+ icon: n,
12
+ size: "2x"
13
+ },
14
+ `checked_star_${r}`
15
+ ));
16
+ return /* @__PURE__ */ t("div", { ref: e, className: f("flex", s), children: m() });
17
+ });
18
+ o.displayName = "Stars";
19
+ const _ = Object.assign(o);
20
+ export {
21
+ _ as Stars
22
+ };
@@ -0,0 +1,21 @@
1
+ import { Testimonial } 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
+ 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;
@@ -0,0 +1,13 @@
1
+ import { ImageProps } from '../Image';
2
+ import { HTMLAttributes } from 'react';
3
+
4
+ declare const Testimonial: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
5
+ Image: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
6
+ Title: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
7
+ Section: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
+ Position: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
9
+ Date: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
10
+ Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
+ AuthorDetails: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
+ };
13
+ export { Testimonial };
@@ -0,0 +1,42 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as m } from "react";
3
+ import { Card as u } from "../Card/index.js";
4
+ import { Image as x } from "../Image/index.js";
5
+ import o from "clsx";
6
+ const n = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i(u, { ref: a, className: o("grid gap-4", s), ...t, children: e })), l = m(({ className: s, src: e, ...t }, a) => /* @__PURE__ */ i("div", { ref: a, className: "mx-auto w-40 ", children: /* @__PURE__ */ i(x, { className: "rounded-full", src: e, ...t }) })), r = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i("h3", { ref: a, className: "text-center text-lg font-medium", ...t, children: e })), c = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i("div", { ref: a, className: o("text-center", s), ...t, children: e })), T = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i(
7
+ "p",
8
+ {
9
+ ref: a,
10
+ className: o("text-md font-regular text-sm", s),
11
+ ...t,
12
+ children: e
13
+ }
14
+ )), N = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i("p", { ref: a, className: "font-regular text-sm", ...t, children: e })), d = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i("p", { className: o("text-md text-center font-light"), ...t, children: e })), p = m(({ className: s, children: e, ...t }, a) => /* @__PURE__ */ i(
15
+ "p",
16
+ {
17
+ ref: a,
18
+ className: o("text-center text-sm font-medium", s),
19
+ ...t,
20
+ children: e
21
+ }
22
+ ));
23
+ n.displayName = "Testimonial";
24
+ l.displayName = "Testimonial.Image";
25
+ r.displayName = "Testimonial.Title";
26
+ c.displayName = "Testimonial.Section";
27
+ T.displayName = "Testimonial.Position";
28
+ N.displayName = "Testimonial.Date";
29
+ d.displayName = "Testimonial.Text";
30
+ p.displayName = "Testimonial.AuthorDetails";
31
+ const I = Object.assign(n, {
32
+ Image: l,
33
+ Title: r,
34
+ Section: c,
35
+ Position: T,
36
+ Date: N,
37
+ Text: d,
38
+ AuthorDetails: p
39
+ });
40
+ export {
41
+ I as Testimonial
42
+ };