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,101 @@
1
+ body.theme-penrithmrt {
2
+ --color-ink: #495863;
3
+ --color-transparent: transparent;
4
+ --color-white: #ffffff;
5
+ --color-black: #000000;
6
+ --color-red: #bb0a1e;
7
+ --color-grey: #2c373b;
8
+ --color-light-grey: #495c63;
9
+ --color-lightest-grey: #f5f5f5;
10
+ --color-primary-strict: #ff007d;
11
+ --color-border: #d0d0d0;
12
+ --color-border-lightest: #eeeeee;
13
+ --color-border-light: #d8d8d8;
14
+ --color-border-dark: #616161;
15
+ --color-facebook: #3b5999;
16
+ --color-whatsapp: #25d366;
17
+ --color-twitter: #55acee;
18
+ --color-linkedin: #0a66c2;
19
+ --color-email: #c71610;
20
+ --color-github: #171515;
21
+ --color-instagram: #8a3ab9;
22
+ --color-interactive-facebook: #2d4474;
23
+ --color-interactive-whatsapp: #25d566;
24
+ --color-interactive-twitter: #55acee;
25
+ --color-interactive-linkedin: #0a66c2;
26
+ --color-interactive-instagram: #6d2e92;
27
+ --color-interactive-email: #9f110c;
28
+ --color-interactive-github: #000000;
29
+ --color-gold: #e2b13c;
30
+ --color-linkedin: #0e76a8;
31
+
32
+ --color-primary: #3C2F71;
33
+ --color-secondary: #c71f1f;
34
+ --color-tertiary: #921457;
35
+
36
+ --color-loading: #a3a3a3;
37
+
38
+ /* pill */
39
+ --color-error-default: #b91c1c;
40
+ --color-warning-default: #a16207;
41
+ --color-success-default: #047857;
42
+ --color-info-default: #0369a1;
43
+
44
+ --color-error-light: #fca5a5;
45
+ --color-warning-light: #fde047;
46
+ --color-success-light: #6ee7b7;
47
+ --color-info-light: #7dd3fc;
48
+
49
+ /* Button */
50
+ --color-button-primary-active: #3C2F71;
51
+ --color-button-primary-border: #3C2F71;
52
+ --color-button-primary-bg: #3C2F71;
53
+ --color-button-primary-text: #ffffff;
54
+ --color-button-primary-hover: #3C2F71;
55
+
56
+ --color-button-secondary-active: #c71f1f;
57
+ --color-button-secondary-border: #c71f1f;
58
+ --color-button-secondary-bg: #c71f1f;
59
+ --color-button-secondary-text: #ffffff;
60
+ --color-button-secondary-hover: #c71f1f;
61
+
62
+ --color-button-ghost-active: #242424;
63
+ --color-button-ghost-border: #ffffff00;
64
+ --color-button-ghost-bg: #0055ff00;
65
+ --color-button-ghost-text: #3C2F71;
66
+ --color-button-ghost-hover: #bdbdbd;
67
+
68
+ --color-button-bordered-active: #242424;
69
+ --color-button-bordered-border: #9d9d9d;
70
+ --color-button-bordered-bg: #0055ff00;
71
+ --color-button-bordered-text: #000000;
72
+ --color-button-bordered-hover: #5f5f5f;
73
+
74
+ /* Footer */
75
+ --color-footer-bg: #1b54c6;
76
+ --color-footer-text: #ffffff;
77
+
78
+ /* Star */
79
+ --color-star: #f5bf1f;
80
+
81
+ /* Tubestops */
82
+ --color-tubestop-station-active: #57e31b;
83
+ --color-tubestop-station-complete: #c9c8c8;
84
+ --color-tubestop-station-future: #5a4f45;
85
+ --color-tubestop-line-complete: #c9c8c8;
86
+ --color-tubestop-line-future: #707070;
87
+ --color-tubestop-text-active: #000000;
88
+ --color-tubestop-text-complete: #c9c8c8;
89
+ --color-tubestop-text-future: #5b5b5b;
90
+
91
+ /* Carousel */
92
+ --color-carousel-dots-active: #1a1dd9;
93
+ --color-carousel-dots-default: #2c2525;
94
+ --color-carousel-dots-hover: #1a1dd9;
95
+ --color-carousel-arrow-default: #31a3dd;
96
+ --color-carousel-arrow-hover: #ae127a;
97
+
98
+ /* Nav */
99
+ --color-nav-bg: #c8c6c6;
100
+ --color-nav-text: #3C2F71;
101
+ }
@@ -4,7 +4,11 @@ export default {
4
4
  secondary: 'var(--color-secondary)',
5
5
  tertiary: 'var(--color-tertiary)',
6
6
  star: 'var(--color-star)',
7
- nav: 'var(--color-nav)',
7
+ nav: {
8
+ bg: 'var(--color-nav-bg)',
9
+ text: 'var(--color-nav-text)',
10
+ },
11
+ loading: 'var(--color-loading)',
8
12
  footer: {
9
13
  bg: 'var(--color-footer-bg)',
10
14
  text: 'var(--color-footer-text)',
@@ -47,6 +51,13 @@ export default {
47
51
  text: 'var(--color-button-ghost-text)',
48
52
  hover: 'var(--color-button-ghost-hover)',
49
53
  },
54
+ bordered: {
55
+ active: 'var(--color-button-bordered-active)',
56
+ border: 'var(--color-button-bordered-border)',
57
+ bg: 'var(--color-button-bordered-bg)',
58
+ text: 'var(--color-button-bordered-text)',
59
+ hover: 'var(--color-button-bordered-hover)',
60
+ },
50
61
  },
51
62
  tubestop: {
52
63
  station: {
@@ -0,0 +1,36 @@
1
+ export type Colours = 'primary' | 'secondary' | 'white' | 'black' | 'grey' | 'gold' | 'facebook' | 'linkedin' | 'email' | 'instagram' | 'github' | 'interactive-facebook' | 'interactive-email' | 'interactive-linkedin' | 'interactive-instagram' | 'interactive-github' | 'success' | 'error' | 'ink' | 'transparent';
2
+ export type SocialTypes = 'facebook' | 'instagram' | 'github' | 'linkedin';
3
+ export declare const idAndClassName: {
4
+ id: {
5
+ description: string;
6
+ control: {
7
+ type: string;
8
+ default: boolean;
9
+ };
10
+ table: {
11
+ category: string;
12
+ type: {
13
+ summary: string;
14
+ };
15
+ defaultValue: {
16
+ summary: string;
17
+ };
18
+ };
19
+ };
20
+ className: {
21
+ description: string;
22
+ control: {
23
+ type: string;
24
+ default: boolean;
25
+ };
26
+ table: {
27
+ category: string;
28
+ type: {
29
+ summary: string;
30
+ };
31
+ defaultValue: {
32
+ summary: string;
33
+ };
34
+ };
35
+ };
36
+ };
@@ -0,0 +1,2 @@
1
+ declare const MatchMedia: (query: string) => boolean;
2
+ export default MatchMedia;
@@ -0,0 +1,7 @@
1
+ export declare const Screens: {
2
+ xs: string;
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.3.9",
3
+ "version": "2.3.11",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,
@@ -9,6 +9,9 @@
9
9
  "components",
10
10
  "ui"
11
11
  ],
12
+ "files": [
13
+ "lib/**/*"
14
+ ],
12
15
  "license": "UNLICENSED",
13
16
  ".": {
14
17
  "import": "./lib/index.js"
package/.eslintrc.cjs DELETED
@@ -1,72 +0,0 @@
1
- module.exports = {
2
- env: {
3
- browser: true,
4
- es2021: true,
5
- },
6
- settings: {
7
- 'import/resolver': {
8
- typescript: {},
9
- },
10
- },
11
- extends: ['plugin:storybook/recommended'],
12
- parserOptions: {
13
- project: ['tsconfig.eslint.json'],
14
- ecmaVersion: 'latest',
15
- sourceType: 'module',
16
- },
17
- plugins: ['react', 'prettier'],
18
- ignorePatterns: [
19
- 'archive',
20
- '.eslintrc.cjs',
21
- 'tailwind.config.js',
22
- 'webpack.config.js',
23
- 'tailwind/*.js',
24
- 'vite.config.mjs',
25
- 'lib/*',
26
- 'postcss.config.js',
27
- ],
28
- rules: {
29
- 'react/jsx-no-bind': 'off',
30
- 'sort-keys': [
31
- 'error',
32
- 'asc',
33
- { caseSensitive: true, natural: false, minKeys: 2 },
34
- ],
35
- 'import/no-extraneous-dependencies': [
36
- 'error',
37
- {
38
- devDependencies: ['**/*.stories.*', '**/*.test.*', '**/story-utils/*'],
39
- peerDependencies: true,
40
- },
41
- ],
42
- },
43
- overrides: [
44
- {
45
- files: ['*.tsx', '*.jsx'],
46
- rules: {
47
- '@typescript-eslint/ban-types': [
48
- 'error',
49
- {
50
- extendDefaults: true,
51
- types: {
52
- '{}': false,
53
- },
54
- },
55
- ],
56
- },
57
- extends: 'love',
58
- },
59
- ],
60
- ignorePatterns: ['.eslintrc.js', 'tailwind.config.js'],
61
- rules: {
62
- '@typescript-eslint/consistent-type-imports': 'off',
63
- '@typescript-eslint/strict-boolean-expressions': 'off',
64
- 'no-empty-pattern': 'off',
65
- 'prettier/prettier': [
66
- 'error',
67
- {
68
- singleQuote: true,
69
- },
70
- ],
71
- },
72
- };
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npm run lint
package/.prettierignore DELETED
@@ -1,10 +0,0 @@
1
- .github/
2
- .husky/
3
- .prettierignore
4
- .storybook/tailwind/
5
- coverage/
6
- deployment/
7
- lib/
8
- node_modules/
9
- storybook-build/
10
- **/*.svg
package/.prettierrc.json DELETED
@@ -1,22 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "trailingComma": "all",
4
- "importOrder": [
5
- "^react$",
6
- "<THIRD_PARTY_MODULES>",
7
- "^effects(/.+)?$",
8
- "^@(/.+)?$",
9
- "^hooks(/.+)?$",
10
- "^layout(/.+)?$",
11
- "^next(/.+)?$",
12
- "^styles(/.+)?$",
13
- "^types(/.+)?$",
14
- "^utils(/.+)?$",
15
- "^\\.?\\.(/.+)?$"
16
- ],
17
- "importOrderSeparation": true,
18
- "plugins": [
19
- "@trivago/prettier-plugin-sort-imports",
20
- "prettier-plugin-tailwindcss"
21
- ]
22
- }
package/postcss.config.js DELETED
@@ -1,8 +0,0 @@
1
- const config = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
7
-
8
- export default config;
@@ -1,39 +0,0 @@
1
- import { Collapsible } from '@components/Collapsible';
2
- import { Meta, StoryObj } from '@storybook/react';
3
- import { idAndClassName } from '@utils/controls';
4
-
5
- import { Accordion } from '.';
6
- import { items } from './const';
7
-
8
- const meta = {
9
- title: 'V2Components/Accordion',
10
- component: Accordion,
11
- argTypes: {
12
- ...idAndClassName,
13
- },
14
- args: {
15
- children: items.map((item) => {
16
- return (
17
- <Collapsible>
18
- <Collapsible.Header>
19
- {item.image && <Collapsible.Image src={item.image} />}
20
- <Collapsible.HeaderContent>
21
- <Collapsible.Label>{item.label}</Collapsible.Label>
22
- <Collapsible.Title>{item.title}</Collapsible.Title>
23
- <Collapsible.Subtitle>{item.subtitle}</Collapsible.Subtitle>
24
- </Collapsible.HeaderContent>
25
- </Collapsible.Header>
26
- <Collapsible.Content>
27
- <Collapsible.Text>{item.content}</Collapsible.Text>
28
- </Collapsible.Content>
29
- </Collapsible>
30
- );
31
- }),
32
- },
33
- } satisfies Meta<typeof Accordion>;
34
-
35
- export default meta;
36
-
37
- type Story = StoryObj<typeof Accordion>;
38
-
39
- export const Default: Story = {};
@@ -1,34 +0,0 @@
1
- export const items = [
2
- {
3
- label: 'This is some text',
4
- title: 'This is a title',
5
- subtitle: 'This is a subtitle',
6
- image: 'https://picsum.photos/100/100',
7
- content:
8
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
9
- },
10
- {
11
- title: 'This is a title',
12
- content:
13
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
14
- },
15
- {
16
- label:
17
- 'Lorem, ipsum dolor sit amet consectetur adipisicing elit. Repellendus nihil, molestias amet sed, corrupti debitis odit doloribus perspiciatis est, quasi illum culpa iusto. Molestias, ducimus. Provident, quibusdam fuga. Voluptatem, saepe.',
18
- title: 'This is a title',
19
- image: 'https://picsum.photos/101/100',
20
- content:
21
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
22
- },
23
- {
24
- subtitle: 'This is a subtitle',
25
- image: 'https://picsum.photos/100/101',
26
- content:
27
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
28
- },
29
- {
30
- image: 'https://picsum.photos/102/100',
31
- content:
32
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu.',
33
- },
34
- ];
@@ -1,22 +0,0 @@
1
- import { forwardRef, HTMLAttributes } from 'react';
2
-
3
- import clsx from 'clsx';
4
-
5
- export interface AccordionProps {
6
- loading?: boolean;
7
- }
8
-
9
- const AccordionComponent = forwardRef<
10
- HTMLDivElement,
11
- HTMLAttributes<HTMLDivElement> & AccordionProps
12
- >(({ id, className, children, loading = false, ...props }, ref) => (
13
- <div id={id} className={clsx('', className)} ref={ref} {...props}>
14
- {children}
15
- </div>
16
- ));
17
-
18
- AccordionComponent.displayName = 'Accordion';
19
-
20
- const Accordion = Object.assign(AccordionComponent);
21
-
22
- export { Accordion };
@@ -1,89 +0,0 @@
1
- import { AlertBar } from './';
2
- import {
3
- faCheckCircle,
4
- faExclamationCircle,
5
- faHeart,
6
- faQuestionCircle,
7
- faStopCircle,
8
- } from '@fortawesome/fontawesome-free-solid';
9
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
10
- import { action } from '@storybook/addon-actions';
11
- import { Meta, StoryObj } from '@storybook/react';
12
-
13
- const meta = {
14
- title: 'V2Components/Alert Bar',
15
- component: AlertBar,
16
-
17
- args: {
18
- children: [
19
- <AlertBar.Icon icon={faHeart} />,
20
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
21
- ],
22
- },
23
- } satisfies Meta<typeof AlertBar>;
24
- export default meta;
25
-
26
- type Story = StoryObj<typeof AlertBar>;
27
-
28
- export const Default: Story = {};
29
-
30
- export const Error: Story = {
31
- ...Default,
32
- args: {
33
- ...Default.args,
34
- children: [
35
- <AlertBar.Icon icon={faStopCircle} />,
36
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
37
- ],
38
- variant: 'error',
39
- },
40
- };
41
-
42
- export const Success: Story = {
43
- ...Default,
44
- args: {
45
- ...Default.args,
46
- children: [
47
- <AlertBar.Icon icon={faCheckCircle} />,
48
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
49
- ],
50
- variant: 'success',
51
- },
52
- };
53
-
54
- export const Warning: Story = {
55
- ...Default,
56
- args: {
57
- ...Default.args,
58
- children: [
59
- <AlertBar.Icon icon={faExclamationCircle} />,
60
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
61
- ],
62
- variant: 'warning',
63
- },
64
- };
65
-
66
- export const Info: Story = {
67
- ...Default,
68
- args: {
69
- ...Default.args,
70
- children: [
71
- <AlertBar.Icon icon={faQuestionCircle} />,
72
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
73
- ],
74
- variant: 'info',
75
- },
76
- };
77
-
78
- export const Dismiss: Story = {
79
- ...Default,
80
- args: {
81
- ...Default.args,
82
- children: [
83
- <AlertBar.Icon icon={faQuestionCircle} />,
84
- <AlertBar.Label>This is an alert bar</AlertBar.Label>,
85
- <AlertBar.Dismiss onClick={action('clicked')} />,
86
- ],
87
- variant: 'info',
88
- },
89
- };
@@ -1,82 +0,0 @@
1
- import { ComponentPropsWithoutRef, forwardRef, HTMLAttributes } from 'react';
2
-
3
- import { PickU } from '@components/Pill';
4
- import { faExclamation } from '@fortawesome/fontawesome-free-solid';
5
- import { IconProp } from '@fortawesome/fontawesome-svg-core';
6
- import clsx from 'clsx';
7
-
8
- import { Button } from '..';
9
- import { Icon } from '../Icon';
10
-
11
- export interface AlertBarProps {
12
- id?: string;
13
- className?: string;
14
- variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
15
- loading?: boolean;
16
- }
17
-
18
- const AlertBarComponent = forwardRef<
19
- HTMLDivElement,
20
- HTMLAttributes<HTMLDivElement> & AlertBarProps
21
- >(
22
- (
23
- { id, className, children, variant = 'default', loading, ...props },
24
- ref,
25
- ) => {
26
- return (
27
- <div
28
- id={id}
29
- className={clsx('flex w-full items-center gap-x-4 px-8 py-2', {
30
- '': variant === 'default',
31
- 'border-error-default bg-error-light text-error-default':
32
- variant === 'error',
33
- 'border-info-default bg-info-light text-info-default':
34
- variant === 'info',
35
- 'border-success-default bg-success-light text-success-default':
36
- variant === 'success',
37
- 'border-warning-default bg-warning-light text-warning-default':
38
- variant === 'warning',
39
- })}
40
- ref={ref}
41
- {...props}
42
- >
43
- {children}
44
- </div>
45
- );
46
- },
47
- );
48
-
49
- const AlertBarLabel = forwardRef<
50
- HTMLParagraphElement,
51
- HTMLAttributes<HTMLParagraphElement>
52
- >(({ ...props }, ref) => (
53
- <p className="text-md text-light-grey flex-1 truncate" ref={ref} {...props} />
54
- ));
55
-
56
- const AlertBarIcon = forwardRef<
57
- SVGSVGElement,
58
- PickU<ComponentPropsWithoutRef<typeof Icon>, 'icon'>
59
- >(({ icon }, ref) => <Icon ref={ref} icon={icon} />);
60
-
61
- const AlertBarDismiss = forwardRef<
62
- HTMLButtonElement,
63
- Omit<HTMLAttributes<HTMLButtonElement>, 'icon'>
64
- >(({ ...props }) => (
65
- <Button variant="ghost" {...props}>
66
- <Icon icon={faExclamation} />
67
- </Button>
68
- ));
69
-
70
- AlertBarComponent.displayName = 'AlertBar';
71
-
72
- AlertBarLabel.displayName = 'AlertBar.Label';
73
- AlertBarIcon.displayName = 'AlertBar.Icon';
74
- AlertBarDismiss.displayName = 'AlertBar.Dismiss';
75
-
76
- const AlertBar = Object.assign(AlertBarComponent, {
77
- Label: AlertBarLabel,
78
- Icon: AlertBarIcon,
79
- Dismiss: AlertBarDismiss,
80
- });
81
-
82
- export { AlertBar };
@@ -1,14 +0,0 @@
1
- import { Avatar } from './';
2
- import { Meta, StoryObj } from '@storybook/react';
3
-
4
- const meta = {
5
- title: 'Components/Avatar',
6
- component: Avatar,
7
- args: {},
8
- } satisfies Meta<typeof Avatar>;
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<typeof meta>;
13
-
14
- export const Default: Story = {};