trepur_components 2.3.9 → 2.3.11

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 (284) 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 +25 -0
  7. package/lib/components/AlertBar/index.d.ts +15 -0
  8. package/lib/components/AlertBar/index.js +66 -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 +15 -0
  13. package/lib/components/Breadcrumbs/index.js +49 -0
  14. package/lib/components/Button/Button.stories.d.ts +24 -0
  15. package/lib/components/Button/index.d.ts +14 -0
  16. package/lib/components/Button/index.js +43 -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 +31 -0
  95. package/lib/components/Nav/index.d.ts +20 -0
  96. package/lib/components/Nav/index.js +81 -0
  97. package/lib/components/NavItem/NavItem.stories.d.ts +17 -0
  98. package/lib/components/NavItem/index.d.ts +8 -0
  99. package/lib/components/NavItem/index.js +31 -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 +30 -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/styles/global.css +19 -0
  144. package/{src → lib}/styles/themes/local.css +9 -1
  145. package/lib/styles/themes/penrithmrt.css +101 -0
  146. package/{tailwind → lib/tailwind}/colors.ts +12 -1
  147. package/lib/utils/controls.d.ts +36 -0
  148. package/lib/utils/matchMedia.d.ts +2 -0
  149. package/lib/utils/screens.d.ts +7 -0
  150. package/package.json +4 -1
  151. package/.eslintrc.cjs +0 -72
  152. package/.husky/pre-commit +0 -4
  153. package/.prettierignore +0 -10
  154. package/.prettierrc.json +0 -22
  155. package/postcss.config.js +0 -8
  156. package/src/components/Accordion/Accordion.stories.tsx +0 -39
  157. package/src/components/Accordion/const.tsx +0 -34
  158. package/src/components/Accordion/index.tsx +0 -22
  159. package/src/components/AlertBar/AlertBar.stories.tsx +0 -89
  160. package/src/components/AlertBar/index.tsx +0 -82
  161. package/src/components/Avatar/Avatar.stories.tsx +0 -14
  162. package/src/components/Avatar/index.tsx +0 -492
  163. package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -29
  164. package/src/components/Breadcrumbs/index.tsx +0 -89
  165. package/src/components/Button/Button.stories.tsx +0 -24
  166. package/src/components/Button/index.tsx +0 -59
  167. package/src/components/Calendar/Calendar.stories.tsx +0 -21
  168. package/src/components/Calendar/index.tsx +0 -92
  169. package/src/components/Calendar/style.css +0 -233
  170. package/src/components/Card/Card.stories.tsx +0 -14
  171. package/src/components/Card/index.tsx +0 -39
  172. package/src/components/Carousel/Carousel.stories.tsx +0 -44
  173. package/src/components/Carousel/index.tsx +0 -301
  174. package/src/components/Carousel/utils.ts +0 -53
  175. package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -29
  176. package/src/components/CarouselThumbnail/const.ts +0 -17
  177. package/src/components/CarouselThumbnail/index.tsx +0 -169
  178. package/src/components/CarouselThumbnail/utils.ts +0 -87
  179. package/src/components/Checkbox/Checkbox.mdx +0 -33
  180. package/src/components/Checkbox/Checkbox.stories.tsx +0 -27
  181. package/src/components/Checkbox/index.tsx +0 -44
  182. package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
  183. package/src/components/Collapsible/index.tsx +0 -169
  184. package/src/components/Counter/Counter.stories.tsx +0 -20
  185. package/src/components/Counter/index.tsx +0 -98
  186. package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -37
  187. package/src/components/DetailUpdater/index.tsx +0 -107
  188. package/src/components/Dialog/Dialog.stories.tsx +0 -65
  189. package/src/components/Dialog/index.tsx +0 -29
  190. package/src/components/Dropdown/Dropdown.stories.tsx +0 -22
  191. package/src/components/Dropdown/index.tsx +0 -117
  192. package/src/components/Dropdown/utils.ts +0 -15
  193. package/src/components/FileUploader/FilePreview.tsx +0 -45
  194. package/src/components/FileUploader/FileUploader.stories.tsx +0 -28
  195. package/src/components/FileUploader/index.tsx +0 -177
  196. package/src/components/Footer/Footer.stories.tsx +0 -47
  197. package/src/components/Footer/index.tsx +0 -96
  198. package/src/components/FooterNav/FooterNav.stories.tsx +0 -32
  199. package/src/components/FooterNav/index.tsx +0 -75
  200. package/src/components/Form/Form.stories.tsx +0 -86
  201. package/src/components/Form/index.tsx +0 -41
  202. package/src/components/Gallery/Gallery.stories.tsx +0 -39
  203. package/src/components/Gallery/index.tsx +0 -31
  204. package/src/components/Greeting/Greeting.stories.tsx +0 -16
  205. package/src/components/Greeting/index.tsx +0 -49
  206. package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -14
  207. package/src/components/HamburgerIcon/index.tsx +0 -75
  208. package/src/components/Icon/Icon.stories.tsx +0 -41
  209. package/src/components/Icon/index.tsx +0 -33
  210. package/src/components/Image/Image.stories.tsx +0 -17
  211. package/src/components/Image/index.tsx +0 -25
  212. package/src/components/ImageCard/ImageCard.stories.tsx +0 -29
  213. package/src/components/ImageCard/index.tsx +0 -75
  214. package/src/components/Input/Input.stories.tsx +0 -25
  215. package/src/components/Input/index.tsx +0 -139
  216. package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
  217. package/src/components/MenuButton/index.tsx +0 -66
  218. package/src/components/Modal/Modal.stories.tsx +0 -82
  219. package/src/components/Modal/index.tsx +0 -71
  220. package/src/components/Nav/Nav.stories.tsx +0 -80
  221. package/src/components/Nav/index.tsx +0 -171
  222. package/src/components/NavItem/NavItem.stories.tsx +0 -17
  223. package/src/components/NavItem/index.tsx +0 -39
  224. package/src/components/Pill/Pill.stories.tsx +0 -51
  225. package/src/components/Pill/index.tsx +0 -69
  226. package/src/components/Search/Search.stories.tsx +0 -63
  227. package/src/components/Search/index.tsx +0 -64
  228. package/src/components/Select/Select.stories.tsx +0 -55
  229. package/src/components/Select/index.tsx +0 -97
  230. package/src/components/Showcase/Showcase.stories.tsx +0 -31
  231. package/src/components/Showcase/index.tsx +0 -62
  232. package/src/components/SideNav/SideNav.stories.tsx +0 -50
  233. package/src/components/SideNav/index.tsx +0 -39
  234. package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
  235. package/src/components/SocialButton/index.tsx +0 -63
  236. package/src/components/SplitCard/SplitCard.stories.tsx +0 -34
  237. package/src/components/SplitCard/index.tsx +0 -132
  238. package/src/components/Stars/Star.stories.tsx +0 -18
  239. package/src/components/Stars/index.tsx +0 -38
  240. package/src/components/Testimonial/Testimonial.stories.tsx +0 -37
  241. package/src/components/Testimonial/index.tsx +0 -123
  242. package/src/components/TextArea/TextArea.stories.tsx +0 -24
  243. package/src/components/TextArea/index.tsx +0 -133
  244. package/src/components/Timeline/Timeline.stories.tsx +0 -45
  245. package/src/components/Timeline/index.tsx +0 -65
  246. package/src/components/Tubestops/Tubestops.stories.tsx +0 -22
  247. package/src/components/Tubestops/index.tsx +0 -132
  248. package/src/components/Video/Video.stories.tsx +0 -58
  249. package/src/components/Video/assets/example.mp4 +0 -0
  250. package/src/components/Video/assets/example.ogv +0 -0
  251. package/src/components/Video/assets/example.webm +0 -0
  252. package/src/components/Video/index.tsx +0 -92
  253. package/src/custom.d.ts +0 -14
  254. package/src/documentation/Colours.mdx +0 -192
  255. package/src/documentation/Introduction.mdx +0 -13
  256. package/src/documentation/assets/index.ts +0 -3
  257. package/src/documentation/assets/trepurComponentsLogo.svg +0 -32
  258. package/src/documentation/typography/Fonts/Fonts.stories.tsx +0 -14
  259. package/src/documentation/typography/Fonts/Fonts.tsx +0 -73
  260. package/src/fonts/Sora/OFL.txt +0 -93
  261. package/src/fonts/Sora/README.txt +0 -70
  262. package/src/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  263. package/src/fonts/Sora/static/Sora-Bold.ttf +0 -0
  264. package/src/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  265. package/src/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  266. package/src/fonts/Sora/static/Sora-Light.ttf +0 -0
  267. package/src/fonts/Sora/static/Sora-Medium.ttf +0 -0
  268. package/src/fonts/Sora/static/Sora-Regular.ttf +0 -0
  269. package/src/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  270. package/src/fonts/Sora/static/Sora-Thin.ttf +0 -0
  271. package/src/styles/global.css +0 -75
  272. package/src/styles/themes/test.css +0 -28
  273. package/src/utils/controls.ts +0 -44
  274. package/src/utils/matchMedia.ts +0 -9
  275. package/src/utils/screens.ts +0 -7
  276. package/tailwind.config.ts +0 -13
  277. package/tsconfig.json +0 -49
  278. package/tsconfig.node.json +0 -12
  279. package/vite.config.mjs +0 -64
  280. /package/{src/index.ts → lib/index.d.ts} +0 -0
  281. /package/{tailwind → lib/tailwind}/boxShadow.ts +0 -0
  282. /package/{tailwind → lib/tailwind}/container.ts +0 -0
  283. /package/{tailwind → lib/tailwind}/preset.ts +0 -0
  284. /package/{tailwind → lib/tailwind}/spacing.ts +0 -0
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,47 @@
1
+ import { Accordion } from '.';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
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
+ children: import("react/jsx-runtime").JSX.Element[];
43
+ };
44
+ };
45
+ export default meta;
46
+ type Story = StoryObj<typeof Accordion>;
47
+ export declare const Default: Story;
@@ -0,0 +1,31 @@
1
+ export declare const items: ({
2
+ label: string;
3
+ title: string;
4
+ subtitle: string;
5
+ image: string;
6
+ content: string;
7
+ } | {
8
+ title: string;
9
+ content: string;
10
+ label?: undefined;
11
+ subtitle?: undefined;
12
+ image?: undefined;
13
+ } | {
14
+ label: string;
15
+ title: string;
16
+ image: string;
17
+ content: string;
18
+ subtitle?: undefined;
19
+ } | {
20
+ subtitle: string;
21
+ image: string;
22
+ content: string;
23
+ label?: undefined;
24
+ title?: undefined;
25
+ } | {
26
+ image: string;
27
+ content: string;
28
+ label?: undefined;
29
+ title?: undefined;
30
+ subtitle?: undefined;
31
+ })[];
@@ -0,0 +1,5 @@
1
+ export interface AccordionProps {
2
+ loading?: boolean;
3
+ }
4
+ declare const Accordion: any;
5
+ export { Accordion };
@@ -0,0 +1,9 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as a } from "react";
3
+ import t from "clsx";
4
+ const o = a(({ id: r, className: c, children: i, loading: d = !1, ...s }, m) => /* @__PURE__ */ n("div", { id: r, className: t("", c), ref: m, ...s, children: i }));
5
+ o.displayName = "Accordion";
6
+ const l = Object.assign(o);
7
+ export {
8
+ l as Accordion
9
+ };
@@ -0,0 +1,25 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { AlertBar } from './';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('./').AlertbarContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
8
+ Icon: import('react').ForwardRefExoticComponent<{
9
+ icon: any;
10
+ } & import('react').RefAttributes<SVGSVGElement>>;
11
+ Dismiss: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
12
+ };
13
+ args: {
14
+ children: import("react/jsx-runtime").JSX.Element[];
15
+ };
16
+ };
17
+ export default meta;
18
+ type Story = StoryObj<typeof AlertBar>;
19
+ export declare const Default: Story;
20
+ export declare const Error: Story;
21
+ export declare const Success: Story;
22
+ export declare const Warning: Story;
23
+ export declare const Info: Story;
24
+ export declare const Dismiss: Story;
25
+ export declare const Loading: Story;
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface AlertbarContextProps {
4
+ variant?: 'success' | 'warning' | 'error' | 'info';
5
+ loading?: boolean;
6
+ dismiss?: boolean;
7
+ }
8
+ declare const AlertBar: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AlertbarContextProps & import('react').RefAttributes<HTMLDivElement>> & {
9
+ Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
10
+ Icon: import('react').ForwardRefExoticComponent<{
11
+ icon: any;
12
+ } & import('react').RefAttributes<SVGSVGElement>>;
13
+ Dismiss: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
14
+ };
15
+ export { AlertBar };
@@ -0,0 +1,66 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { createContext as b, forwardRef as s, useMemo as h, useContext as l } from "react";
3
+ import { faCrosshairs as A } from "@fortawesome/fontawesome-free-solid";
4
+ import B from "clsx";
5
+ import { Button as N } from "../Button/index.js";
6
+ import { Icon as c } from "../Icon/index.js";
7
+ const o = b(null), f = s(
8
+ ({
9
+ className: a,
10
+ children: t,
11
+ variant: e = "info",
12
+ dismiss: n = !1,
13
+ loading: i = !1,
14
+ ...g
15
+ }, p) => {
16
+ const x = h(
17
+ () => ({
18
+ dismiss: n,
19
+ loading: i
20
+ }),
21
+ [n, i]
22
+ );
23
+ return /* @__PURE__ */ r(o.Provider, { value: x, children: /* @__PURE__ */ r(
24
+ "div",
25
+ {
26
+ className: B("flex w-full items-center gap-x-2 px-8 py-2", {
27
+ "border-error-default bg-error-light text-error-default": e === "error",
28
+ "border-info-default bg-info-light text-info-default": e === "info",
29
+ "border-success-default bg-success-light text-success-default": e === "success",
30
+ "border-warning-default bg-warning-light text-warning-default": e === "warning"
31
+ }),
32
+ ref: p,
33
+ ...g,
34
+ children: t
35
+ }
36
+ ) });
37
+ }
38
+ ), d = s(({ ...a }, t) => {
39
+ const { loading: e } = l(o) || {};
40
+ return e ? /* @__PURE__ */ r("p", { className: "bg-loading h-6 w-40 animate-pulse rounded-lg" }) : /* @__PURE__ */ r(
41
+ "p",
42
+ {
43
+ className: "text-md text-light-grey flex-1 truncate",
44
+ ref: t,
45
+ ...a
46
+ }
47
+ );
48
+ }), m = s(({ icon: a }, t) => {
49
+ const { loading: e } = l(o) || {};
50
+ return e ? /* @__PURE__ */ r("span", { className: "bg-loading h-6 w-6 animate-pulse rounded-lg" }) : /* @__PURE__ */ r(c, { ref: t, icon: a });
51
+ }), u = s(({ ...a }) => {
52
+ const { loading: t = !1 } = l(o) || {};
53
+ return /* @__PURE__ */ r(N, { loading: t, variant: "ghost", ...a, children: /* @__PURE__ */ r(c, { icon: A }) });
54
+ });
55
+ f.displayName = "AlertBar";
56
+ d.displayName = "AlertBar.Label";
57
+ m.displayName = "AlertBar.Icon";
58
+ u.displayName = "AlertBar.Dismiss";
59
+ const j = Object.assign(f, {
60
+ Label: d,
61
+ Icon: m,
62
+ Dismiss: u
63
+ });
64
+ export {
65
+ j as AlertBar
66
+ };
@@ -0,0 +1,10 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: import('react').FC<{}>;
6
+ args: {};
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof meta>;
10
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+
3
+ export declare const Avatar: React.FC;
@@ -0,0 +1,18 @@
1
+ import { Breadcrumbs } from '.';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLUListElement> & import('.').BreadcrumbsContextProps & import('react').RefAttributes<HTMLUListElement>> & {
7
+ Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
8
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & {
9
+ href: string;
10
+ } & import('react').RefAttributes<HTMLAnchorElement>>;
11
+ };
12
+ args: {
13
+ children: import("react/jsx-runtime").JSX.Element[];
14
+ };
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof Breadcrumbs>;
18
+ export declare const Default: Story;
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface BreadcrumbsContextProps {
4
+ allLinks?: any;
5
+ }
6
+ export interface BreadcrumbsItemContextProps {
7
+ isLast?: boolean;
8
+ }
9
+ declare const Breadcrumbs: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & BreadcrumbsContextProps & import('react').RefAttributes<HTMLUListElement>> & {
10
+ Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
11
+ Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
12
+ href: string;
13
+ } & import('react').RefAttributes<HTMLAnchorElement>>;
14
+ };
15
+ export { Breadcrumbs };
@@ -0,0 +1,49 @@
1
+ import { jsx as s, jsxs as v } from "react/jsx-runtime";
2
+ import { createContext as i, forwardRef as m, useMemo as b, useContext as x, Children as I } from "react";
3
+ const f = i(null), B = i(null), N = m(({ children: e, ...r }, t) => {
4
+ const a = b(
5
+ () => ({
6
+ allLinks: e
7
+ }),
8
+ [e]
9
+ );
10
+ return /* @__PURE__ */ s(f.Provider, { value: a, children: /* @__PURE__ */ s("ul", { ref: t, className: "flex gap-2", ...r, children: e }) });
11
+ }), L = m(({ children: e, ...r }, t) => {
12
+ const { allLinks: a } = x(f) || {}, n = I.toArray(a), c = n.findIndex(
13
+ (o) => {
14
+ var l, u, p, d;
15
+ return ((p = (u = (l = o == null ? void 0 : o.props) == null ? void 0 : l.children) == null ? void 0 : u.props) == null ? void 0 : p.children) === ((d = e == null ? void 0 : e.props) == null ? void 0 : d.children);
16
+ }
17
+ ) === n.length - 1, C = b(
18
+ () => ({
19
+ isLast: c
20
+ }),
21
+ [e]
22
+ );
23
+ return /* @__PURE__ */ s(B.Provider, { value: C, children: /* @__PURE__ */ v("li", { ref: t, className: "flex items-center gap-2", ...r, children: [
24
+ e,
25
+ !c && /* @__PURE__ */ s("p", { children: "/" })
26
+ ] }) });
27
+ }), y = m(({ children: e, href: r, ...t }, a) => {
28
+ const { isLast: n } = x(B) || {};
29
+ return n ? /* @__PURE__ */ s("p", { className: "px-1 py-1 font-bold underline underline-offset-4", children: e }) : /* @__PURE__ */ s("p", { className: "px-1 py-1", children: /* @__PURE__ */ s(
30
+ "a",
31
+ {
32
+ ref: a,
33
+ className: "text-facebook hover:underline",
34
+ href: r,
35
+ ...t,
36
+ children: e
37
+ }
38
+ ) });
39
+ });
40
+ N.displayName = "Breadcrumbs";
41
+ L.displayName = "Breadcrumbs.Item";
42
+ y.displayName = "Breadcrumbs.Label";
43
+ const P = Object.assign(N, {
44
+ Item: L,
45
+ Label: y
46
+ });
47
+ export {
48
+ P as Breadcrumbs
49
+ };
@@ -0,0 +1,24 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Button } from './';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('./').ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
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
+ children: import("react/jsx-runtime").JSX.Element[];
15
+ onClick: import('@storybook/addon-actions').HandlerFunction;
16
+ };
17
+ };
18
+ export default meta;
19
+ type Story = StoryObj<typeof Button>;
20
+ export declare const Default: Story;
21
+ export declare const Secondary: Story;
22
+ export declare const Bordered: Story;
23
+ export declare const Ghost: Story;
24
+ export declare const Loading: Story;
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'react';
2
+
3
+ export interface ButtonProps {
4
+ variant?: 'primary' | 'secondary' | 'ghost' | 'bordered';
5
+ disabled?: boolean;
6
+ loading?: boolean;
7
+ }
8
+ declare const Button: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
9
+ Icon: import('react').ForwardRefExoticComponent<{
10
+ icon: any;
11
+ } & import('react').RefAttributes<SVGSVGElement>>;
12
+ Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
13
+ };
14
+ export { Button };
@@ -0,0 +1,43 @@
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import { forwardRef as n } from "react";
3
+ import { Icon as m } from "../Icon/index.js";
4
+ import s from "clsx";
5
+ const a = n(
6
+ ({
7
+ className: o,
8
+ children: e,
9
+ loading: t = !1,
10
+ variant: r = "primary",
11
+ disabled: g,
12
+ ...d
13
+ }) => /* @__PURE__ */ b(
14
+ "button",
15
+ {
16
+ disabled: t,
17
+ className: s(
18
+ "flex h-[38px] items-center gap-2 rounded-lg border px-4 py-2 text-center text-sm",
19
+ {
20
+ "duration-200": !t,
21
+ "border-button-primary-border bg-button-primary-bg text-button-primary-text hover:bg-button-primary-hover active:bg-button-primary-active": r === "primary" && !t,
22
+ "border-button-secondary-border bg-button-secondary-bg text-button-secondary-text hover:bg-button-secondary-hover active:bg-button-secondary-active": r === "secondary" && !t,
23
+ "border-button-ghost-border bg-button-ghost-bg text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "ghost" && !t,
24
+ "border-button-bordered-border text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "bordered" && !t,
25
+ "w-40 animate-pulse border-loading bg-loading": t
26
+ },
27
+ o
28
+ ),
29
+ ...d,
30
+ children: !t && e
31
+ }
32
+ )
33
+ ), u = n(({ className: o, ...e }, t) => /* @__PURE__ */ b("p", { className: s("text-md", o), ref: t, ...e })), c = n(({ icon: o }, e) => /* @__PURE__ */ b(m, { size: "md", ref: e, icon: o }));
34
+ a.displayName = "Button";
35
+ c.displayName = "Button.Icon";
36
+ u.displayName = "Button.Label";
37
+ const y = Object.assign(a, {
38
+ Icon: c,
39
+ Label: u
40
+ });
41
+ export {
42
+ y as Button
43
+ };
@@ -0,0 +1,11 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { CalendarComponent } from './';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ };
8
+ export default meta;
9
+ type Story = StoryObj<typeof CalendarComponent>;
10
+ export declare const Default: Story;
11
+ export declare const ShowDoubleView: Story;
@@ -0,0 +1,14 @@
1
+
2
+ export type Detail = 'month' | 'year' | 'decade' | 'century';
3
+ export interface CalendarProps {
4
+ onChange?: () => void;
5
+ useRange?: boolean;
6
+ minDetail?: Detail;
7
+ minDate?: Date;
8
+ maxDate?: Date;
9
+ showNavigation?: true;
10
+ disabledDates?: string[];
11
+ showDoubleView?: boolean;
12
+ }
13
+ declare const CalendarComponent: any;
14
+ export { CalendarComponent };
@@ -0,0 +1,49 @@
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { forwardRef as w, useState as y } from "react";
3
+ import b from "react-calendar";
4
+ import "./style.css.js";
5
+ const i = w(
6
+ ({
7
+ onChange: m,
8
+ useRange: l,
9
+ minDetail: s,
10
+ minDate: c,
11
+ maxDate: f,
12
+ showNavigation: d,
13
+ disabledDates: u,
14
+ showDoubleView: p
15
+ }, D) => {
16
+ const [n, r] = y(/* @__PURE__ */ new Date()), C = (e, t) => {
17
+ const a = new Intl.DateTimeFormat("en-gb", {
18
+ year: "numeric",
19
+ month: "2-digit",
20
+ day: "2-digit"
21
+ }).format(e == null ? void 0 : e.date);
22
+ return t ? t.includes(a) : !1;
23
+ };
24
+ return /* @__PURE__ */ g(
25
+ b,
26
+ {
27
+ ref: D,
28
+ onActiveStartDateChange: ({ value: e, activeStartDate: t, action: a }) => {
29
+ const o = t !== null ? t : n;
30
+ a === "next" && r(new Date(o)), a === "prev" && r(new Date(o));
31
+ },
32
+ activeStartDate: n,
33
+ onChange: m,
34
+ selectRange: l,
35
+ minDetail: s,
36
+ minDate: c,
37
+ maxDate: f,
38
+ showNavigation: d,
39
+ showDoubleView: p,
40
+ tileDisabled: (e) => C(e, u)
41
+ }
42
+ );
43
+ }
44
+ );
45
+ i.displayName = "Calendar";
46
+ const F = Object.assign(i);
47
+ export {
48
+ F as CalendarComponent
49
+ };
@@ -0,0 +1,11 @@
1
+ import { Card } from '.';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: any;
7
+ args: {};
8
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof Card>;
11
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ declare const Card: any;
2
+ export { Card };
@@ -0,0 +1,25 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import m from "clsx";
4
+ const t = l(({ className: s, href: o, target: r, children: d, ...i }, p) => {
5
+ let a = "div", e = {};
6
+ return (o || r) && (a = "a", e = { href: o, target: r, ...i }), /* @__PURE__ */ n(
7
+ a,
8
+ {
9
+ className: m(
10
+ "grid grid-cols-1 rounded-xl bg-white p-4 drop-shadow",
11
+ {
12
+ "hover:cursor-pointer": o
13
+ },
14
+ s
15
+ ),
16
+ ...e,
17
+ children: d
18
+ }
19
+ );
20
+ });
21
+ t.displayName = "Card";
22
+ const u = Object.assign(t);
23
+ export {
24
+ u as Card
25
+ };
@@ -0,0 +1,23 @@
1
+ import { Carousel } 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('.').CarouselContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
8
+ Arrow: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').ArrowProps & import('react').RefAttributes<HTMLDivElement>>;
9
+ Dots: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('.').DotProps & import('react').RefAttributes<HTMLButtonElement>>;
10
+ Slides: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
11
+ rightArrow?: boolean | undefined;
12
+ } & import('react').RefAttributes<HTMLDivElement>>;
13
+ };
14
+ args: {
15
+ perView: number;
16
+ spacing: number;
17
+ loop: true;
18
+ children: import("react/jsx-runtime").JSX.Element[];
19
+ };
20
+ };
21
+ export default meta;
22
+ type Story = StoryObj<typeof Carousel>;
23
+ export declare const Default: Story;
@@ -0,0 +1,70 @@
1
+ import { KeenSliderInstance, KeenSliderHooks, KeenSliderOptions } from 'keen-slider/react';
2
+ import { HTMLAttributes } from 'react';
3
+
4
+ export interface ArrowProps {
5
+ rightArrow?: boolean;
6
+ visible?: boolean;
7
+ disabled?: boolean;
8
+ onClick?: any;
9
+ }
10
+ export interface DotProps {
11
+ isActive?: boolean;
12
+ visible?: boolean;
13
+ onClick?: any;
14
+ }
15
+ export interface CarouselContextProps {
16
+ sliderRef?: any;
17
+ instanceRef?: any;
18
+ currentSlide?: number;
19
+ slideWrapperClassName?: string;
20
+ breakpoints?: Record<string, Omit<KeenSliderOptions<{}, {}, KeenSliderHooks>, 'breakpoints'>>;
21
+ defaultAnimation?: {
22
+ duration?: number;
23
+ easing?: (t: number) => number;
24
+ };
25
+ disabled: boolean;
26
+ drag?: boolean;
27
+ dragSpeed?: number;
28
+ initial?: number;
29
+ loop?: boolean;
30
+ mode?: 'snap' | 'free' | 'free-snap';
31
+ range?: {
32
+ align?: boolean;
33
+ min?: number;
34
+ max?: number;
35
+ };
36
+ renderMode?: 'precision' | 'performance' | 'custom';
37
+ rtl?: boolean;
38
+ rubberband?: boolean;
39
+ slides?: any[];
40
+ vertical?: boolean;
41
+ animationStarted?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
42
+ animationStopped?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
43
+ animationEnded?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
44
+ created?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
45
+ destroyed?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
46
+ detailsChanged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
47
+ dragged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
48
+ dragStarted?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
49
+ dragChecked?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
50
+ dragEnded?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
51
+ beforeOptionsChanged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
52
+ optionsChanged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
53
+ slideChanged?: boolean;
54
+ updated?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
55
+ perView?: number;
56
+ spacing?: number;
57
+ number?: number;
58
+ origin?: number | 'auto' | 'center';
59
+ arrows?: ArrowProps;
60
+ dots?: DotProps;
61
+ }
62
+ declare const Carousel: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & CarouselContextProps & import('react').RefAttributes<HTMLDivElement>> & {
63
+ Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
64
+ Arrow: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & ArrowProps & import('react').RefAttributes<HTMLDivElement>>;
65
+ Dots: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & DotProps & import('react').RefAttributes<HTMLButtonElement>>;
66
+ Slides: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
67
+ rightArrow?: boolean | undefined;
68
+ } & import('react').RefAttributes<HTMLDivElement>>;
69
+ };
70
+ export { Carousel };