trepur_components 2.3.2 → 2.3.4

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 (354) hide show
  1. package/.eslintrc.cjs +43 -0
  2. package/.husky/pre-commit +4 -0
  3. package/.prettierrc.json +22 -0
  4. package/archive/Breadcrumbs/Breadcrumbs.stories.tsx +46 -0
  5. package/archive/Breadcrumbs/index.tsx +42 -0
  6. package/archive/BreadcrumbsBordered/BreadcrumbsBordered.stories.tsx +52 -0
  7. package/archive/BreadcrumbsBordered/index.tsx +44 -0
  8. package/archive/BreadcrumbsItem/BreadcrumbsItem.stories.tsx +40 -0
  9. package/archive/BreadcrumbsItem/index.tsx +149 -0
  10. package/archive/Button/Button.stories.tsx +150 -0
  11. package/archive/Button/index.tsx +111 -0
  12. package/archive/Button/style.module.css +76 -0
  13. package/archive/Calendar/Calendar.stories.tsx +82 -0
  14. package/archive/Calendar/index.tsx +76 -0
  15. package/archive/Calendar/style.css +233 -0
  16. package/archive/Card/Card.stories.tsx +75 -0
  17. package/archive/Card/index.tsx +102 -0
  18. package/archive/Card/style.module.css +75 -0
  19. package/archive/CardWithTopImage/CardWithTopImage.stories.tsx +50 -0
  20. package/archive/CardWithTopImage/index.tsx +39 -0
  21. package/archive/CardWithTopImage/style.module.css +11 -0
  22. package/archive/Carousel/Carousel.stories.tsx +451 -0
  23. package/archive/Carousel/index.tsx +388 -0
  24. package/archive/Carousel/style.module.css +99 -0
  25. package/archive/CarouselThumbnail/CarouselThumbnail.stories.tsx +350 -0
  26. package/archive/CarouselThumbnail/index.tsx +302 -0
  27. package/archive/CarouselThumbnail/style.module.css +67 -0
  28. package/archive/Checkbox/Checkbox.mdx +33 -0
  29. package/archive/Checkbox/Checkbox.stories.tsx +34 -0
  30. package/archive/Checkbox/index.tsx +51 -0
  31. package/archive/Checkbox/style.module.css +15 -0
  32. package/archive/Collapsible/Collapsible.stories.tsx +67 -0
  33. package/archive/Collapsible/index.tsx +116 -0
  34. package/archive/Collapsible/style.module.css +47 -0
  35. package/archive/Column/Column.stories.tsx +89 -0
  36. package/archive/Column/index.tsx +119 -0
  37. package/archive/Column/style.module.css +151 -0
  38. package/archive/ComponentWrapper/ComponentWrapper.stories.tsx +40 -0
  39. package/archive/ComponentWrapper/index.tsx +55 -0
  40. package/archive/ComponentWrapper/style.module.css +40 -0
  41. package/archive/Container/Container.stories.tsx +40 -0
  42. package/archive/Container/index.tsx +24 -0
  43. package/archive/Container/style.module.css +4 -0
  44. package/archive/Counter/Counter.stories.tsx +19 -0
  45. package/archive/Counter/index.tsx +66 -0
  46. package/archive/Counter/style.module.css +19 -0
  47. package/archive/DetailUpdater/DetailUpdater.stories.tsx +96 -0
  48. package/archive/DetailUpdater/index.tsx +112 -0
  49. package/archive/DetailUpdater/style.module.css +31 -0
  50. package/archive/Dialog/Dialog.stories.tsx +131 -0
  51. package/archive/Dialog/index.tsx +91 -0
  52. package/archive/Dialog/style.module.css +44 -0
  53. package/archive/DropdownMenu/DropdownMenu.stories.tsx +59 -0
  54. package/archive/DropdownMenu/index.tsx +51 -0
  55. package/archive/DropdownMenu/style.module.css +38 -0
  56. package/archive/DynamicTextSection/DynamicTextSection.stories.tsx +74 -0
  57. package/archive/DynamicTextSection/index.tsx +36 -0
  58. package/archive/DynamicTextSection/style.module.css +0 -0
  59. package/archive/FileUploader/FilePreview.tsx +48 -0
  60. package/archive/FileUploader/FileUploader.stories.tsx +28 -0
  61. package/archive/FileUploader/index.tsx +135 -0
  62. package/archive/FileUploader/style.module.css +54 -0
  63. package/archive/FilterItem/FilterItem.stories.tsx +33 -0
  64. package/archive/FilterItem/index.tsx +101 -0
  65. package/archive/FilterItem/style.module.css +27 -0
  66. package/archive/Footer/Footer.stories.tsx +59 -0
  67. package/archive/Footer/index.tsx +50 -0
  68. package/archive/Footer/style.module.css +19 -0
  69. package/archive/FooterNav/FooterNav.stories.tsx +125 -0
  70. package/archive/FooterNav/index.tsx +57 -0
  71. package/archive/FooterNav/style.module.css +32 -0
  72. package/archive/FooterNavItem/FooterNavItem.stories.tsx +53 -0
  73. package/archive/FooterNavItem/index.tsx +80 -0
  74. package/archive/FooterNavItem/style.module.css +139 -0
  75. package/archive/Form/Form.stories.tsx +86 -0
  76. package/archive/Form/index.tsx +61 -0
  77. package/archive/Form/style.module.css +0 -0
  78. package/archive/FyreCard/FyreCard.stories.tsx +31 -0
  79. package/archive/FyreCard/index.tsx +52 -0
  80. package/archive/FyreCard/style.module.css +19 -0
  81. package/archive/Greeting/Greeting.stories.tsx +41 -0
  82. package/archive/Greeting/index.tsx +32 -0
  83. package/archive/HamburgerIcon/HamburgerIcon.stories.tsx +32 -0
  84. package/archive/HamburgerIcon/index.tsx +103 -0
  85. package/archive/HamburgerIcon/style.module.css +85 -0
  86. package/archive/HorizontalLine/HorizontalLine.stories.tsx +54 -0
  87. package/archive/HorizontalLine/index.tsx +40 -0
  88. package/archive/HorizontalLine/style.module.css +55 -0
  89. package/archive/Icon/Icon.stories.tsx +164 -0
  90. package/archive/Icon/index.tsx +115 -0
  91. package/archive/Icon/style.module.css +253 -0
  92. package/archive/IconCard/IconCard.stories.tsx +46 -0
  93. package/archive/IconCard/index.tsx +57 -0
  94. package/archive/IconCard/style.module.css +18 -0
  95. package/archive/Image/Image.stories.tsx +87 -0
  96. package/archive/Image/index.tsx +132 -0
  97. package/archive/Image/style.module.css +109 -0
  98. package/archive/ImageInfo/ImageInfo.stories.tsx +39 -0
  99. package/archive/ImageInfo/index.tsx +95 -0
  100. package/archive/ImageInfo/style.module.css +47 -0
  101. package/archive/ImageLink/ImageLink.stories.tsx +37 -0
  102. package/archive/ImageLink/index.tsx +49 -0
  103. package/archive/ImageLink/style.module.css +23 -0
  104. package/archive/ImageLinkList/ImageLinkList.stories.tsx +34 -0
  105. package/archive/ImageLinkList/index.tsx +33 -0
  106. package/archive/ImageLinkList/style.module.css +3 -0
  107. package/archive/InformationIcon/InformationIcon.stories.tsx +83 -0
  108. package/archive/InformationIcon/index.tsx +128 -0
  109. package/archive/InformationIcon/style.module.css +71 -0
  110. package/archive/InformationIconBlock/InformationIconBlock.stories.tsx +32 -0
  111. package/archive/InformationIconBlock/index.tsx +63 -0
  112. package/archive/InformationIconBlock/style.module.css +7 -0
  113. package/archive/Input/Input.stories.tsx +84 -0
  114. package/archive/Input/index.tsx +131 -0
  115. package/archive/Input/style.module.css +60 -0
  116. package/archive/Jumbotron/Jumbotron.stories.tsx +21 -0
  117. package/archive/Jumbotron/index.tsx +31 -0
  118. package/archive/Jumbotron/style.module.css +8 -0
  119. package/archive/MenuButton/MenuButton.stories.tsx +46 -0
  120. package/archive/MenuButton/index.tsx +82 -0
  121. package/archive/MenuButton/style.module.css +45 -0
  122. package/archive/Modal/Modal.stories.tsx +86 -0
  123. package/archive/Modal/index.tsx +74 -0
  124. package/archive/Modal/style.module.css +35 -0
  125. package/archive/NavItem/NavItem.stories.tsx +90 -0
  126. package/archive/NavItem/index.tsx +65 -0
  127. package/archive/NavItem/style.module.css +71 -0
  128. package/archive/NavOld/NavOld.stories.tsx +193 -0
  129. package/archive/NavOld/StickyNav.tsx +191 -0
  130. package/archive/NavOld/index.tsx +273 -0
  131. package/archive/NavOld/style.module.css +156 -0
  132. package/archive/NavTwo/Dropdown.tsx +35 -0
  133. package/archive/NavTwo/Nav.stories.tsx +38 -0
  134. package/archive/NavTwo/Sidebar.tsx +34 -0
  135. package/archive/NavTwo/StickyNav.tsx +34 -0
  136. package/archive/NavTwo/index.tsx +45 -0
  137. package/archive/NavTwo/style.module.css +35 -0
  138. package/archive/NewsCard/NewsCard.stories.tsx +72 -0
  139. package/archive/NewsCard/index.tsx +57 -0
  140. package/archive/NewsCard/style.module.css +15 -0
  141. package/archive/Pill/Pill.stories.tsx +44 -0
  142. package/archive/Pill/index.tsx +64 -0
  143. package/archive/Pill/style.module.css +32 -0
  144. package/archive/ProductCard/ProductCard.stories.tsx +61 -0
  145. package/archive/ProductCard/index.tsx +111 -0
  146. package/archive/ProductCard/style.module.css +53 -0
  147. package/archive/ProductCardV2/ProductCardV2.stories.tsx +50 -0
  148. package/archive/ProductCardV2/index.tsx +119 -0
  149. package/archive/ProductCardV2/style.module.css +59 -0
  150. package/archive/Proficiencies/Proficiencies.stories.tsx +50 -0
  151. package/archive/Proficiencies/index.tsx +63 -0
  152. package/archive/Proficiencies/style.module.css +31 -0
  153. package/archive/Profile/Profile.stories.tsx +49 -0
  154. package/archive/Profile/index.tsx +103 -0
  155. package/archive/Profile/style.module.css +47 -0
  156. package/archive/Row/Row.stories.tsx +53 -0
  157. package/archive/Row/index.tsx +23 -0
  158. package/archive/Row/style.module.css +3 -0
  159. package/archive/Search/Search.stories.tsx +63 -0
  160. package/archive/Search/index.tsx +68 -0
  161. package/archive/Search/style.module.css +23 -0
  162. package/archive/Select/Select.stories.tsx +56 -0
  163. package/archive/Select/index.tsx +106 -0
  164. package/archive/Select/style.module.css +52 -0
  165. package/archive/Showcase/Showcase.stories.tsx +30 -0
  166. package/archive/Showcase/index.tsx +75 -0
  167. package/archive/Showcase/style.module.css +47 -0
  168. package/archive/SideNav/SideNav.stories.tsx +50 -0
  169. package/archive/SideNav/index.tsx +46 -0
  170. package/archive/SideNav/style.module.css +43 -0
  171. package/archive/SocialBlock/SocialBlock.stories.tsx +58 -0
  172. package/archive/SocialBlock/index.tsx +63 -0
  173. package/archive/SocialButton/SocialButton.stories.tsx +88 -0
  174. package/archive/SocialButton/index.tsx +71 -0
  175. package/archive/SocialButton/style.module.css +77 -0
  176. package/archive/StarRating/StarRating.stories.tsx +23 -0
  177. package/archive/StarRating/index.tsx +71 -0
  178. package/archive/Testimonial/Testimonial.stories.tsx +110 -0
  179. package/archive/Testimonial/index.tsx +61 -0
  180. package/archive/Testimonial/style.module.css +27 -0
  181. package/archive/TextAndTitle/TextAndTitle.stories.tsx +70 -0
  182. package/archive/TextAndTitle/index.tsx +123 -0
  183. package/archive/TextAndTitle/style.module.css +75 -0
  184. package/archive/TextArea/TextArea.stories.tsx +55 -0
  185. package/archive/TextArea/index.tsx +125 -0
  186. package/archive/TextArea/style.module.css +60 -0
  187. package/archive/Timeline/Timeline.stories.tsx +92 -0
  188. package/archive/Timeline/index.tsx +254 -0
  189. package/archive/Timeline/style.module.css +134 -0
  190. package/archive/TimelineV2/TimelineV2.stories.tsx +95 -0
  191. package/archive/TimelineV2/index.tsx +70 -0
  192. package/archive/TimelineV2/style.module.css +28 -0
  193. package/archive/Tubestops/Tubestops.stories.tsx +42 -0
  194. package/archive/Tubestops/index.tsx +58 -0
  195. package/archive/Tubestops/style.module.css +54 -0
  196. package/archive/UserIcon/UserIcon.stories.tsx +52 -0
  197. package/archive/UserIcon/index.tsx +46 -0
  198. package/archive/UserIcon/style.module.css +19 -0
  199. package/archive/Video/Video.stories.tsx +23 -0
  200. package/archive/Video/index.tsx +47 -0
  201. package/archive/fonts/Sora/OFL.txt +93 -0
  202. package/archive/fonts/Sora/README.txt +70 -0
  203. package/archive/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
  204. package/archive/fonts/Sora/static/Sora-Bold.ttf +0 -0
  205. package/archive/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
  206. package/archive/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
  207. package/archive/fonts/Sora/static/Sora-Light.ttf +0 -0
  208. package/archive/fonts/Sora/static/Sora-Medium.ttf +0 -0
  209. package/archive/fonts/Sora/static/Sora-Regular.ttf +0 -0
  210. package/archive/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
  211. package/archive/fonts/Sora/static/Sora-Thin.ttf +0 -0
  212. package/archive/theme.ts +39 -0
  213. package/archive/typography/Fonts/Fonts.stories.tsx +14 -0
  214. package/archive/typography/Fonts/Fonts.tsx +181 -0
  215. package/lib/components/Accordion/Accordion.stories.d.ts +94 -0
  216. package/lib/components/Accordion/index.d.ts +9 -0
  217. package/lib/components/Accordion/index.js +15 -0
  218. package/lib/components/AlertBar/AlertBar.stories.d.ts +162 -0
  219. package/lib/components/AlertBar/index.d.ts +13 -0
  220. package/lib/components/AlertBar/index.js +49 -0
  221. package/lib/components/Avatar/Avatar.stories.d.ts +44 -0
  222. package/lib/components/Avatar/index.d.ts +4 -0
  223. package/lib/components/index.d.ts +4 -0
  224. package/lib/index.d.ts +1 -0
  225. package/lib/index.js +6 -0
  226. package/lib/styles/base.css +116 -0
  227. package/lib/utils/controls.d.ts +36 -0
  228. package/lib/utils/matchMedia.d.ts +2 -0
  229. package/lib/utils/screens.d.ts +7 -0
  230. package/package.json +8 -9
  231. package/src/components/Accordion/Accordion.stories.tsx +116 -0
  232. package/src/components/Accordion/index.tsx +30 -0
  233. package/src/components/AlertBar/AlertBar.stories.tsx +95 -0
  234. package/src/components/AlertBar/index.tsx +115 -0
  235. package/src/components/Avatar/Avatar.stories.tsx +19 -0
  236. package/src/components/Avatar/index.tsx +495 -0
  237. package/src/components/index.ts +119 -0
  238. package/src/documentation/Colours.mdx +192 -0
  239. package/src/documentation/Introduction.mdx +9 -0
  240. package/src/index.ts +1 -0
  241. package/src/styles/base.css +116 -0
  242. package/src/utils/controls.ts +44 -0
  243. package/src/utils/matchMedia.ts +9 -0
  244. package/src/utils/screens.ts +7 -0
  245. package/storybook-build/assets/Accordion.stories-Cn994N1H.js +103 -0
  246. package/storybook-build/assets/AlertBar.stories-BkzNXFBh.js +202 -0
  247. package/storybook-build/assets/Avatar.stories-CpH6xVwM.js +418 -0
  248. package/storybook-build/assets/Color-6VNJS4EI-DQV2onvt.js +1378 -0
  249. package/storybook-build/assets/Colours-r29qjFlW.js +324 -0
  250. package/storybook-build/assets/DocsRenderer-NNNQARDV-OgWasCIs.js +44 -0
  251. package/storybook-build/assets/Introduction-Bs1PgnBZ.js +40 -0
  252. package/storybook-build/assets/WithTooltip-V3YHNWJZ-vi2V5TOO.js +15 -0
  253. package/storybook-build/assets/_commonjsHelpers-LQfde5yM.js +35 -0
  254. package/storybook-build/assets/axe-DnFZVv9V.js +32561 -0
  255. package/storybook-build/assets/chunk-EIRT5I3Z-DFD8udmD.js +480 -0
  256. package/storybook-build/assets/context-CIRBAiUz.js +20 -0
  257. package/storybook-build/assets/controls-DJSGrQKd.js +23 -0
  258. package/storybook-build/assets/entry-preview-DmlPV4-3.js +41 -0
  259. package/storybook-build/assets/entry-preview-docs-D46Drugi.js +11861 -0
  260. package/storybook-build/assets/formatter-SWP5E3XI-BWIasvKP.js +14427 -0
  261. package/storybook-build/assets/iframe-Dzzzanqi.js +144 -0
  262. package/storybook-build/assets/index-0FT4HXk-.js +7222 -0
  263. package/storybook-build/assets/index-B9Tccxv4.js +107 -0
  264. package/storybook-build/assets/index-BdOSk9or.js +41 -0
  265. package/storybook-build/assets/index-CU7cYjZD.js +9604 -0
  266. package/storybook-build/assets/index-Clz-aGG3.js +39 -0
  267. package/storybook-build/assets/index-CpyNLP69.js +63 -0
  268. package/storybook-build/assets/index-DM9bPmif.js +319 -0
  269. package/storybook-build/assets/index-ex9_VrIg.js +3734 -0
  270. package/storybook-build/assets/jsx-runtime-D2-sc1j1.js +35 -0
  271. package/storybook-build/assets/preview-3kSipVgK.js +430 -0
  272. package/storybook-build/assets/preview-B4rAxPmB.js +27 -0
  273. package/storybook-build/assets/preview-BMkwWyrh.js +2920 -0
  274. package/storybook-build/assets/preview-BeQelhbu.js +204 -0
  275. package/storybook-build/assets/preview-BiG-rflf.js +2444 -0
  276. package/storybook-build/assets/preview-BiYUJ7TP.js +22 -0
  277. package/storybook-build/assets/preview-C4ItOQzM.js +34 -0
  278. package/storybook-build/assets/preview-CWyhKACi.css +886 -0
  279. package/storybook-build/assets/preview-CtOV68TG.js +10 -0
  280. package/storybook-build/assets/preview-De9E9xaR.js +140 -0
  281. package/storybook-build/assets/preview-bL4x2zrN.js +99 -0
  282. package/storybook-build/assets/preview-gxqyGMHu.js +323 -0
  283. package/storybook-build/assets/react-18-B-gfo82w.js +29 -0
  284. package/storybook-build/assets/syntaxhighlighter-B5GMVT5T-DrY_Dc6-.js +15 -0
  285. package/storybook-build/favicon.svg +7 -0
  286. package/storybook-build/iframe.html +458 -0
  287. package/storybook-build/index.html +163 -0
  288. package/storybook-build/index.json +1 -0
  289. package/storybook-build/preview-stats.json +172 -0
  290. package/storybook-build/project.json +1 -0
  291. package/storybook-build/sb-addons/a11y-9/manager-bundle.js +3 -0
  292. package/storybook-build/sb-addons/a11y-9/manager-bundle.js.LEGAL.txt +0 -0
  293. package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  294. package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  295. package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js +12 -0
  296. package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  297. package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js +63 -0
  298. package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
  299. package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js +3 -0
  300. package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  301. package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js +3 -0
  302. package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  303. package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js +3 -0
  304. package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  305. package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js +3 -0
  306. package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  307. package/storybook-build/sb-addons/interactions-8/manager-bundle.js +12 -0
  308. package/storybook-build/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
  309. package/storybook-build/sb-addons/links-0/manager-bundle.js +3 -0
  310. package/storybook-build/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
  311. package/storybook-build/sb-addons/storybook-12/manager-bundle.js +151 -0
  312. package/storybook-build/sb-addons/storybook-12/manager-bundle.js.LEGAL.txt +0 -0
  313. package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js +3 -0
  314. package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js.LEGAL.txt +0 -0
  315. package/storybook-build/sb-addons/themes-10/register-bundle.js +5 -0
  316. package/storybook-build/sb-addons/themes-10/register-bundle.js.LEGAL.txt +0 -0
  317. package/storybook-build/sb-common-assets/fonts.css +31 -0
  318. package/storybook-build/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  319. package/storybook-build/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  320. package/storybook-build/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  321. package/storybook-build/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  322. package/storybook-build/sb-manager/WithTooltip-V3YHNWJZ-TRLNWEGW.js +1 -0
  323. package/storybook-build/sb-manager/chunk-4IYAVH3S.js +348 -0
  324. package/storybook-build/sb-manager/chunk-CXYKRFSY.js +9 -0
  325. package/storybook-build/sb-manager/chunk-KZYAAUOR.js +406 -0
  326. package/storybook-build/sb-manager/chunk-LVLAH4SI.js +7 -0
  327. package/storybook-build/sb-manager/chunk-ZEU7PDD3.js +1 -0
  328. package/storybook-build/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +156 -0
  329. package/storybook-build/sb-manager/globals-module-info.js +1 -0
  330. package/storybook-build/sb-manager/globals.js +1 -0
  331. package/storybook-build/sb-manager/index.js +1 -0
  332. package/storybook-build/sb-manager/runtime.js +1 -0
  333. package/storybook-build/sb-manager/syntaxhighlighter-B5GMVT5T-EA5ASEYD.js +1 -0
  334. package/storybook-build/sb-preview/globals.js +1 -0
  335. package/storybook-build/sb-preview/runtime.js +112 -0
  336. package/storybook-build/src/components/Accordion/Accordion.stories.d.ts +94 -0
  337. package/storybook-build/src/components/Accordion/index.d.ts +9 -0
  338. package/storybook-build/src/components/AlertBar/AlertBar.stories.d.ts +162 -0
  339. package/storybook-build/src/components/AlertBar/index.d.ts +13 -0
  340. package/storybook-build/src/components/Avatar/Avatar.stories.d.ts +44 -0
  341. package/storybook-build/src/components/Avatar/index.d.ts +4 -0
  342. package/storybook-build/src/components/index.d.ts +7 -0
  343. package/storybook-build/src/index.d.ts +1 -0
  344. package/storybook-build/src/utils/controls.d.ts +36 -0
  345. package/storybook-build/src/utils/matchMedia.d.ts +2 -0
  346. package/storybook-build/src/utils/screens.d.ts +7 -0
  347. package/storybook-build/src/utils/theme.d.ts +3 -0
  348. package/storybook-build/stories.json +1 -0
  349. package/storybook-build/styles/base.css +116 -0
  350. package/svg.d.ts +4 -0
  351. package/tailwind.config.ts +81 -0
  352. package/tsconfig.json +43 -0
  353. package/tsconfig.node.json +12 -0
  354. package/vite.config.mjs +64 -0
@@ -0,0 +1,253 @@
1
+ .classList {
2
+ @apply mx-auto my-auto;
3
+ }
4
+
5
+ .sizeOne {
6
+ @apply h-6 w-6;
7
+ }
8
+
9
+ .sizeTwo {
10
+ @apply h-8 w-8;
11
+ }
12
+
13
+ .sizeThree {
14
+ @apply h-16 w-16;
15
+ }
16
+
17
+ .sizeFour {
18
+ @apply h-20 w-20;
19
+ }
20
+
21
+ .sizeFive {
22
+ @apply h-24 w-24;
23
+ }
24
+
25
+ .sizeSix {
26
+ @apply h-28 w-28;
27
+ }
28
+
29
+ .sizeSeven {
30
+ @apply h-32 w-32;
31
+ }
32
+
33
+ .sizeEight {
34
+ @apply h-36 w-36;
35
+ }
36
+
37
+ .sizeNine {
38
+ @apply h-40 w-40;
39
+ }
40
+
41
+ .sizeTen {
42
+ @apply h-44 w-44;
43
+ }
44
+
45
+ /* .sizeTen {
46
+ @apply w-48 h-48;
47
+ } */
48
+
49
+ .rounded {
50
+ @apply rounded-full;
51
+ }
52
+
53
+ .wrapperClassList {
54
+ @apply flex transform duration-500;
55
+ }
56
+
57
+ .textTransparent {
58
+ @apply text-transparent;
59
+ }
60
+ .textPrimary {
61
+ @apply text-primary;
62
+ }
63
+ .textSecondary {
64
+ @apply text-secondary;
65
+ }
66
+ .textWhite {
67
+ @apply text-white;
68
+ }
69
+ .textBlack {
70
+ @apply text-black;
71
+ }
72
+ .textGold {
73
+ @apply text-gold;
74
+ }
75
+ .textGrey {
76
+ @apply text-light-grey;
77
+ }
78
+ .textFacebook {
79
+ @apply text-facebook;
80
+ }
81
+ .textInteractive-facebook {
82
+ @apply text-interactive-facebook;
83
+ }
84
+ .textSuccess {
85
+ @apply text-success;
86
+ }
87
+ .textError {
88
+ @apply text-error;
89
+ }
90
+
91
+ .bgTransparent {
92
+ @apply bg-transparent;
93
+ }
94
+ .bgPrimary {
95
+ @apply bg-primary;
96
+ }
97
+ .bgSecondary {
98
+ @apply bg-secondary;
99
+ }
100
+ .bgWhite {
101
+ @apply bg-white;
102
+ }
103
+ .bglack {
104
+ @apply bg-black;
105
+ }
106
+ .bgGold {
107
+ @apply bg-gold;
108
+ }
109
+ .bgGrey {
110
+ @apply bg-light-grey;
111
+ }
112
+ .bgFacebook {
113
+ @apply bg-facebook;
114
+ }
115
+ .bgInteractive-facebook {
116
+ @apply bg-interactive-facebook;
117
+ }
118
+ .bgSuccess {
119
+ @apply bg-success;
120
+ }
121
+ .bgError {
122
+ @apply bg-error;
123
+ }
124
+
125
+ .hoverTextTransparent {
126
+ @apply hover:text-transparent;
127
+ }
128
+ .hoverTextPrimary {
129
+ @apply hover:text-primary;
130
+ }
131
+ .hoverTextSecondary {
132
+ @apply hover:text-secondary;
133
+ }
134
+ .hoverTextWhite {
135
+ @apply hover:text-white;
136
+ }
137
+ .hoverTextlack {
138
+ @apply hover:text-black;
139
+ }
140
+ .hoverTextGold {
141
+ @apply hover:text-gold;
142
+ }
143
+ .hoverTextGrey {
144
+ @apply hover:text-light-grey;
145
+ }
146
+ .hoverTextFacebook {
147
+ @apply hover:text-facebook;
148
+ }
149
+ .hoverTextInteractive-facebook {
150
+ @apply hover:text-interactive-facebook;
151
+ }
152
+ .hoverTextSuccess {
153
+ @apply hover:text-success;
154
+ }
155
+ .hoverTextError {
156
+ @apply hover:text-error;
157
+ }
158
+
159
+ .hoverBgTransparent {
160
+ @apply hover:bg-transparent;
161
+ }
162
+ .hoverBgPrimary {
163
+ @apply hover:bg-primary;
164
+ }
165
+ .hoverBgSecondary {
166
+ @apply hover:bg-secondary;
167
+ }
168
+ .hoverBgWhite {
169
+ @apply hover:bg-white;
170
+ }
171
+ .hoverBglack {
172
+ @apply hover:bg-black;
173
+ }
174
+ .hoverBgGold {
175
+ @apply hover:bg-gold;
176
+ }
177
+ .hoverBgGrey {
178
+ @apply hover:bg-light-grey;
179
+ }
180
+ .hoverBgFacebook {
181
+ @apply hover:bg-facebook;
182
+ }
183
+ .hoverBgInteractive-facebook {
184
+ @apply hover:bg-interactive-facebook;
185
+ }
186
+ .hoverBgSuccess {
187
+ @apply hover:bg-success;
188
+ }
189
+ .hoverBgError {
190
+ @apply hover:bg-error;
191
+ }
192
+
193
+ .focusTextPrimary {
194
+ @apply focus:text-primary;
195
+ }
196
+ .focusTextSecondary {
197
+ @apply focus:text-secondary;
198
+ }
199
+ .focusTextWhite {
200
+ @apply focus:text-white;
201
+ }
202
+ .focusTextlack {
203
+ @apply focus:text-black;
204
+ }
205
+ .focusTextGold {
206
+ @apply focus:text-gold;
207
+ }
208
+ .focusTextGrey {
209
+ @apply focus:text-light-grey;
210
+ }
211
+ .focusTextFacebook {
212
+ @apply focus:text-facebook;
213
+ }
214
+ .focusTextInteractive-facebook {
215
+ @apply focus:text-interactive-facebook;
216
+ }
217
+ .focusTextSuccess {
218
+ @apply focus:text-success;
219
+ }
220
+ .focusTextError {
221
+ @apply focus:text-error;
222
+ }
223
+
224
+ .focusBgPrimary {
225
+ @apply focus:bg-primary;
226
+ }
227
+ .focusBgSecondary {
228
+ @apply focus:bg-secondary;
229
+ }
230
+ .focusBgWhite {
231
+ @apply focus:bg-white;
232
+ }
233
+ .focusBglack {
234
+ @apply focus:bg-black;
235
+ }
236
+ .focusBgGold {
237
+ @apply focus:bg-gold;
238
+ }
239
+ .focusBgGrey {
240
+ @apply focus:bg-light-grey;
241
+ }
242
+ .focusBgFacebook {
243
+ @apply focus:bg-facebook;
244
+ }
245
+ .focusBgInteractive-facebook {
246
+ @apply focus:bg-interactive-facebook;
247
+ }
248
+ .focusBgSuccess {
249
+ @apply focus:bg-success;
250
+ }
251
+ .focusBgError {
252
+ @apply focus:bg-error;
253
+ }
@@ -0,0 +1,46 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { idAndClassName } from '@utils/controls';
3
+
4
+ import IconCard from '.';
5
+
6
+ const meta = {
7
+ title: 'Components/IconCard',
8
+ component: IconCard,
9
+ argTypes: {
10
+ ...idAndClassName,
11
+ title: {
12
+ description: '',
13
+ table: {},
14
+ },
15
+ description: {
16
+ description: '',
17
+ table: {},
18
+ },
19
+ href: {
20
+ description: '',
21
+ table: {},
22
+ },
23
+ target: {
24
+ description: '',
25
+ table: {},
26
+ },
27
+ iconProps: {
28
+ description: '',
29
+ table: {},
30
+ },
31
+ },
32
+ args: {
33
+ title: 'This is a title',
34
+ description:
35
+ 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fuga excepturi itaque in. Debitis et velit explicabo id quo repellendus architecto hic quis repellat corporis cumque dolorem officiis animi, dicta praesentium.',
36
+ iconProps: {
37
+ size: 2,
38
+ type: 'unlock-keyhole',
39
+ },
40
+ },
41
+ };
42
+ export default meta;
43
+
44
+ type Story = StoryObj<typeof meta>;
45
+
46
+ export const Default: Story = {};
@@ -0,0 +1,57 @@
1
+ import React from 'react';
2
+
3
+ import Icon, { type Props as IconProps } from '@components/Icon';
4
+ import classNames from 'classnames';
5
+
6
+
7
+
8
+ interface AnchorAttributes
9
+ extends Partial<
10
+ Pick<JSX.IntrinsicElements['a'], 'href' | 'title' | 'target'>
11
+ > {}
12
+
13
+ export interface Props {
14
+ id?: string;
15
+ className?: string;
16
+ title: string;
17
+ description: string;
18
+ iconProps: IconProps;
19
+
20
+ href?: string;
21
+ target?: string;
22
+ onClick?: () => void;
23
+ }
24
+
25
+ const IconCard: React.FC<Props> = ({
26
+ id,
27
+ className,
28
+ title,
29
+ description,
30
+ iconProps,
31
+
32
+ href,
33
+ target,
34
+ onClick,
35
+ }: Props): JSX.Element => {
36
+ const classList = classNames(style.wrapper, className, 'theme-local');
37
+
38
+ let Tag: keyof Pick<JSX.IntrinsicElements, 'a' | 'div'> = 'div';
39
+ let attributes: AnchorAttributes = {};
40
+
41
+ if (Boolean(href) || Boolean(target)) {
42
+ Tag = 'a';
43
+ attributes = { href, title, target };
44
+ }
45
+
46
+ return (
47
+ <Tag id={id} className={classList} onClick={onClick} {...attributes}>
48
+ <div className={style.iconWrapper}>
49
+ <Icon {...iconProps} size={2} />
50
+ </div>
51
+ <p className={style.title}>{title}</p>
52
+ <p className={style.description}>{description}</p>
53
+ </Tag>
54
+ );
55
+ };
56
+
57
+ export default IconCard;
@@ -0,0 +1,18 @@
1
+ .wrapper {
2
+ @apply flex flex-col;
3
+ @apply bg-white hover:bg-lightest-grey;
4
+ @apply cursor-pointer shadow-xl drop-shadow;
5
+ @apply mx-auto my-auto w-full rounded-2xl p-4;
6
+ }
7
+
8
+ .iconWrapper {
9
+ @apply py-2;
10
+ }
11
+
12
+ .title {
13
+ @apply pt-6 text-md font-semiBold text-ink;
14
+ }
15
+
16
+ .description {
17
+ @apply text-light-grey;
18
+ }
@@ -0,0 +1,87 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { idAndClassName } from '@utils/controls';
3
+
4
+ import Image from '.';
5
+
6
+ const meta = {
7
+ title: 'Components/Image',
8
+ component: Image,
9
+ argTypes: {
10
+ ...idAndClassName,
11
+ image: {
12
+ type: { name: 'string', required: false },
13
+ description: 'The image to display on the component',
14
+ table: {
15
+ type: { summary: 'default' },
16
+ },
17
+ },
18
+ altText: {
19
+ type: { name: 'string', required: false },
20
+ description: 'The accessibility alt text for the image on the component',
21
+ table: {
22
+ type: { summary: 'default' },
23
+ },
24
+ },
25
+ title: {
26
+ type: { name: 'string', required: false },
27
+ description: 'The accessibility title for the image on the component',
28
+ table: {
29
+ type: { summary: 'default' },
30
+ },
31
+ },
32
+ rounded: {
33
+ type: { name: 'boolean', required: false },
34
+ description: 'Sets the corners of the component to rounded',
35
+ table: {
36
+ type: { summary: 'boolean' },
37
+ },
38
+ },
39
+ roundedFull: {
40
+ type: { name: 'boolean', required: false },
41
+ description: 'Sets the component to a circle shape',
42
+ table: {
43
+ type: { summary: 'boolean' },
44
+ },
45
+ },
46
+ height: {
47
+ type: { name: 'number', required: false },
48
+ description: 'Defines the height of the component',
49
+ table: {
50
+ type: { summary: 'number' },
51
+ },
52
+ },
53
+ width: {
54
+ type: { name: 'number', required: false },
55
+ description: 'Defines the width of the component',
56
+ table: {
57
+ type: { summary: 'number' },
58
+ },
59
+ },
60
+ overlayText: {
61
+ type: { name: 'string', required: false },
62
+ description: 'The text to show when hovering over the component',
63
+ table: {
64
+ type: { summary: 'default' },
65
+ },
66
+ },
67
+ centerAligned: {
68
+ type: { name: 'boolean', required: false },
69
+ description: 'Sets the component to the center',
70
+ table: {
71
+ type: { summary: 'boolean' },
72
+ },
73
+ },
74
+ },
75
+ args: {
76
+ src: 'https://picsum.photos/200/200',
77
+ height: 8,
78
+ width: 8,
79
+ overlayText: 'logo',
80
+ },
81
+ };
82
+
83
+ export default meta;
84
+
85
+ type Story = StoryObj<typeof meta>;
86
+
87
+ export const Default: Story = {};
@@ -0,0 +1,132 @@
1
+ import React, { useState } from 'react';
2
+
3
+ import classNames from 'classnames';
4
+
5
+
6
+
7
+ export interface Props {
8
+ id?: string;
9
+ className?: string;
10
+ src: string;
11
+ altText?: string;
12
+ title?: string;
13
+ rounded?: boolean;
14
+ roundedFull?: boolean;
15
+ height?: number;
16
+ width?: number;
17
+ overlayText?: string;
18
+ centerAligned?: boolean;
19
+ bordered?: boolean;
20
+ }
21
+
22
+ const Image = ({
23
+ id,
24
+ className,
25
+ src,
26
+ altText,
27
+ title,
28
+ rounded = false,
29
+ roundedFull = false,
30
+ height = 8,
31
+ width = 8,
32
+ overlayText,
33
+ centerAligned = false,
34
+ bordered = false,
35
+ }: Props): JSX.Element => {
36
+ const [isHovering, setIsHovering] = useState(false);
37
+ const opacity = classNames({
38
+ [style.visible]: isHovering,
39
+ [style.invisible]: !isHovering,
40
+ });
41
+
42
+ const widthClassList = classNames({
43
+ [style.width1]: width === 1,
44
+ [style.width2]: width === 2,
45
+ [style.width3]: width === 3,
46
+ [style.width4]: width === 4,
47
+ [style.width5]: width === 5,
48
+ [style.width6]: width === 6,
49
+ [style.width7]: width === 7,
50
+ [style.width8]: width === 8,
51
+ [style.width9]: width === 9,
52
+ [style.width10]: width === 10,
53
+ [style.width11]: width === 11,
54
+ [style.width12]:
55
+ width === undefined ||
56
+ ![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(width),
57
+ });
58
+
59
+ const heightClassList = classNames({
60
+ [style.height1]: height === 1,
61
+ [style.height2]: height === 2,
62
+ [style.height3]: height === 3,
63
+ [style.height4]: height === 4,
64
+ [style.height5]: height === 5,
65
+ [style.height6]: height === 6,
66
+ [style.height7]: height === 7,
67
+ [style.height8]: height === 8,
68
+ [style.height9]: height === 9,
69
+ [style.height10]: height === 10,
70
+ [style.height11]: height === 11,
71
+ [style.height12]:
72
+ height === undefined ||
73
+ ![1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].includes(height),
74
+ });
75
+
76
+ const imageClassList = classNames(
77
+ {
78
+ [style.rounded]: rounded,
79
+ [style.roundedFull]: roundedFull,
80
+ [style.centerAligned]: centerAligned,
81
+ [style.bordered]: bordered,
82
+ },
83
+ className,
84
+ widthClassList,
85
+ heightClassList,
86
+ 'theme-local',
87
+ );
88
+
89
+ const overlayClassList = classNames(
90
+ widthClassList,
91
+ heightClassList,
92
+ opacity,
93
+ style.overlayClassList,
94
+ );
95
+
96
+ const overlayTextWrapperClassList = classNames(
97
+ widthClassList,
98
+ heightClassList,
99
+ opacity,
100
+ style.overlayTextWrapperClassList,
101
+ );
102
+
103
+ return (
104
+ <div className={imageClassList}>
105
+ {overlayText !== undefined && (
106
+ <>
107
+ <div className={overlayClassList} />
108
+ <div
109
+ className={overlayTextWrapperClassList}
110
+ onMouseEnter={() => {
111
+ setIsHovering(true);
112
+ }}
113
+ onMouseLeave={() => {
114
+ setIsHovering(false);
115
+ }}
116
+ >
117
+ <p className={style.overlayTextClassList}>{overlayText}</p>
118
+ </div>
119
+ </>
120
+ )}
121
+ <img
122
+ id={id}
123
+ className={imageClassList}
124
+ src={src}
125
+ alt={altText ?? overlayText}
126
+ title={title ?? overlayText}
127
+ />
128
+ </div>
129
+ );
130
+ };
131
+
132
+ export default Image;
@@ -0,0 +1,109 @@
1
+ .overlayTextClassList {
2
+ @apply m-auto text-center text-primary;
3
+ }
4
+
5
+ .overlayTextWrapperClassList {
6
+ @apply absolute z-20 flex transition-opacity duration-700;
7
+ }
8
+
9
+ .overlayClassList {
10
+ @apply absolute z-10 bg-white transition-opacity duration-700;
11
+ }
12
+
13
+ .rounded {
14
+ @apply rounded-2xl;
15
+ }
16
+
17
+ .roundedFull {
18
+ @apply rounded-full;
19
+ }
20
+
21
+ .bordered {
22
+ @apply border-4 border-primary;
23
+ }
24
+
25
+ .centerAligned {
26
+ @apply mx-auto;
27
+ }
28
+
29
+ .visible {
30
+ @apply opacity-80;
31
+ }
32
+
33
+ .invisible {
34
+ @apply opacity-0;
35
+ }
36
+
37
+ .width1 {
38
+ @apply w-6;
39
+ }
40
+ .width2 {
41
+ @apply w-10;
42
+ }
43
+ .width3 {
44
+ @apply w-14;
45
+ }
46
+ .width4 {
47
+ @apply w-16;
48
+ }
49
+ .width5 {
50
+ @apply w-20;
51
+ }
52
+ .width6 {
53
+ @apply w-24;
54
+ }
55
+ .width7 {
56
+ @apply w-28;
57
+ }
58
+ .width8 {
59
+ @apply w-32;
60
+ }
61
+ .width9 {
62
+ @apply w-36;
63
+ }
64
+ .width10 {
65
+ @apply w-40;
66
+ }
67
+ .width11 {
68
+ @apply w-44;
69
+ }
70
+ .width12 {
71
+ @apply w-full;
72
+ }
73
+
74
+ .height1 {
75
+ @apply h-6;
76
+ }
77
+ .height2 {
78
+ @apply h-10;
79
+ }
80
+ .height3 {
81
+ @apply h-14;
82
+ }
83
+ .height4 {
84
+ @apply h-16;
85
+ }
86
+ .height5 {
87
+ @apply h-20;
88
+ }
89
+ .height6 {
90
+ @apply h-24;
91
+ }
92
+ .height7 {
93
+ @apply h-28;
94
+ }
95
+ .height8 {
96
+ @apply h-32;
97
+ }
98
+ .height9 {
99
+ @apply h-36;
100
+ }
101
+ .height10 {
102
+ @apply h-40;
103
+ }
104
+ .height11 {
105
+ @apply h-44;
106
+ }
107
+ .height12 {
108
+ @apply h-full;
109
+ }