trepur_components 1.0.5 → 1.0.7

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 (249) hide show
  1. package/dist/src/lib/components/Accordion/Accordion.js +2 -3
  2. package/dist/src/lib/components/Accordion/Accordion.js.map +1 -1
  3. package/dist/src/lib/components/AlertBar/{index.d.ts → AlertBar.d.ts} +1 -1
  4. package/dist/src/lib/components/AlertBar/{index.js → AlertBar.js} +12 -12
  5. package/dist/src/lib/components/AlertBar/AlertBar.js.map +1 -0
  6. package/dist/src/lib/components/AlertBar/style.module.css +65 -0
  7. package/dist/src/lib/components/AlertBar/style.module.css.map +1 -0
  8. package/dist/src/lib/components/Breadcrumbs/{index.d.ts → Breadcrumbs.d.ts} +0 -0
  9. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.js +21 -0
  10. package/dist/src/lib/components/Breadcrumbs/Breadcrumbs.js.map +1 -0
  11. package/dist/src/lib/components/Breadcrumbs/style.module.css +53 -0
  12. package/dist/src/lib/components/Breadcrumbs/style.module.css.map +1 -0
  13. package/dist/src/lib/components/BreadcrumbsBordered/{index.d.ts → BreadcrumbsBordered.d.ts} +1 -1
  14. package/dist/src/lib/components/BreadcrumbsBordered/{index.js → BreadcrumbsBordered.js} +5 -4
  15. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.js.map +1 -0
  16. package/dist/src/lib/components/BreadcrumbsBordered/style.module.css +17 -0
  17. package/dist/src/lib/components/BreadcrumbsBordered/style.module.css.map +1 -0
  18. package/dist/src/lib/components/BreadcrumbsItem/{index.d.ts → BreadcrumbsItem.d.ts} +0 -0
  19. package/dist/src/lib/components/BreadcrumbsItem/{index.js → BreadcrumbsItem.js} +11 -16
  20. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.js.map +1 -0
  21. package/dist/src/lib/components/BreadcrumbsItem/style.module.css +48 -0
  22. package/dist/src/lib/components/BreadcrumbsItem/style.module.css.map +1 -0
  23. package/dist/src/lib/components/Button/{index.d.ts → Button.d.ts} +0 -0
  24. package/dist/src/lib/components/Button/{index.js → Button.js} +17 -16
  25. package/dist/src/lib/components/Button/Button.js.map +1 -0
  26. package/dist/src/lib/components/Button/style.module.css +127 -0
  27. package/dist/src/lib/components/Button/style.module.css.map +1 -0
  28. package/dist/src/lib/components/Card/{index.d.ts → Card.d.ts} +2 -2
  29. package/dist/src/lib/components/Card/{index.js → Card.js} +31 -31
  30. package/dist/src/lib/components/Card/Card.js.map +1 -0
  31. package/dist/src/lib/components/Card/style.module.css +184 -0
  32. package/dist/src/lib/components/Card/style.module.css.map +1 -0
  33. package/dist/src/lib/components/CardWithTopImage/{index.d.ts → CardWithTopImage.d.ts} +1 -1
  34. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.js +13 -0
  35. package/dist/src/lib/components/CardWithTopImage/CardWithTopImage.js.map +1 -0
  36. package/dist/src/lib/components/CardWithTopImage/style.module.css +36 -0
  37. package/dist/src/lib/components/CardWithTopImage/style.module.css.map +1 -0
  38. package/dist/src/lib/components/Carousel/{index.d.ts → Carousel.d.ts} +1 -0
  39. package/dist/src/lib/components/Carousel/{index.js → Carousel.js} +12 -11
  40. package/dist/src/lib/components/Carousel/Carousel.js.map +1 -0
  41. package/dist/src/lib/components/Carousel/style.module.css +59 -0
  42. package/dist/src/lib/components/Carousel/style.module.css.map +1 -0
  43. package/dist/src/lib/components/Collapsible/{index.d.ts → Collapsible.d.ts} +1 -1
  44. package/dist/src/lib/components/Collapsible/{index.js → Collapsible.js} +16 -15
  45. package/dist/src/lib/components/Collapsible/Collapsible.js.map +1 -0
  46. package/dist/src/lib/components/Collapsible/style.module.css +122 -0
  47. package/dist/src/lib/components/Collapsible/style.module.css.map +1 -0
  48. package/dist/src/lib/components/Column/{index.d.ts → Column.d.ts} +0 -0
  49. package/dist/src/lib/components/Column/Column.js +84 -0
  50. package/dist/src/lib/components/Column/Column.js.map +1 -0
  51. package/dist/src/lib/components/Column/style.module.css +244 -0
  52. package/dist/src/lib/components/Column/style.module.css.map +1 -0
  53. package/dist/src/lib/components/Container/{index.d.ts → Container.d.ts} +0 -0
  54. package/dist/src/lib/components/Container/{index.js → Container.js} +3 -2
  55. package/dist/src/lib/components/Container/Container.js.map +1 -0
  56. package/dist/src/lib/components/Container/style.module.css +5 -0
  57. package/dist/src/lib/components/Container/style.module.css.map +1 -0
  58. package/dist/src/lib/components/{FooterBar/index.d.ts → Footer/Footer.d.ts} +3 -3
  59. package/dist/src/lib/components/Footer/Footer.js +14 -0
  60. package/dist/src/lib/components/Footer/Footer.js.map +1 -0
  61. package/dist/src/lib/components/Footer/style.module.css +89 -0
  62. package/dist/src/lib/components/Footer/style.module.css.map +1 -0
  63. package/dist/src/lib/components/Form/{index.d.ts → Form.d.ts} +3 -4
  64. package/dist/src/lib/components/Form/{index.js → Form.js} +6 -5
  65. package/dist/src/lib/components/Form/Form.js.map +1 -0
  66. package/dist/src/lib/components/Form/style.module.css +4 -0
  67. package/dist/src/lib/components/Form/style.module.css.map +1 -0
  68. package/dist/src/lib/components/FyreCard/{index.d.ts → FyreCard.d.ts} +1 -1
  69. package/dist/src/lib/components/FyreCard/{index.js → FyreCard.js} +8 -7
  70. package/dist/src/lib/components/FyreCard/FyreCard.js.map +1 -0
  71. package/dist/src/lib/components/FyreCard/style.module.css +37 -0
  72. package/dist/src/lib/components/FyreCard/style.module.css.map +1 -0
  73. package/dist/src/lib/components/Greeting/{index.d.ts → Greeting.d.ts} +0 -0
  74. package/dist/src/lib/components/Greeting/{index.js → Greeting.js} +2 -4
  75. package/dist/src/lib/components/Greeting/Greeting.js.map +1 -0
  76. package/dist/src/lib/components/HamburgerIcon/{index.d.ts → HamburgerIcon.d.ts} +0 -1
  77. package/dist/src/lib/components/HamburgerIcon/{index.js → HamburgerIcon.js} +13 -10
  78. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.js.map +1 -0
  79. package/dist/src/lib/components/HamburgerIcon/style.module.css +90 -0
  80. package/dist/src/lib/components/HamburgerIcon/style.module.css.map +1 -0
  81. package/dist/src/lib/components/Icon/{index.d.ts → Icon.d.ts} +0 -0
  82. package/dist/src/lib/components/Icon/Icon.js +37 -0
  83. package/dist/src/lib/components/Icon/Icon.js.map +1 -0
  84. package/dist/src/lib/components/Icon/style.module.css +219 -0
  85. package/dist/src/lib/components/Icon/style.module.css.map +1 -0
  86. package/dist/src/lib/components/Image/{index.d.ts → Image.d.ts} +0 -0
  87. package/dist/src/lib/components/Image/{index.js → Image.js} +10 -10
  88. package/dist/src/lib/components/Image/Image.js.map +1 -0
  89. package/dist/src/lib/components/Image/style.module.css +70 -0
  90. package/dist/src/lib/components/Image/style.module.css.map +1 -0
  91. package/dist/src/lib/components/ImageLink/{index.d.ts → ImageLink.d.ts} +1 -1
  92. package/dist/src/lib/components/ImageLink/ImageLink.js +19 -0
  93. package/dist/src/lib/components/ImageLink/ImageLink.js.map +1 -0
  94. package/dist/src/lib/components/ImageLink/style.module.css +111 -0
  95. package/dist/src/lib/components/ImageLink/style.module.css.map +1 -0
  96. package/dist/src/lib/components/ImageLinkList/{index.d.ts → ImageLinkList.d.ts} +1 -1
  97. package/dist/src/lib/components/ImageLinkList/{index.js → ImageLinkList.js} +5 -4
  98. package/dist/src/lib/components/ImageLinkList/ImageLinkList.js.map +1 -0
  99. package/dist/src/lib/components/ImageLinkList/style.module.css +14 -0
  100. package/dist/src/lib/components/ImageLinkList/style.module.css.map +1 -0
  101. package/dist/src/lib/components/InformationIcon/{index.d.ts → InformationIcon.d.ts} +1 -1
  102. package/dist/src/lib/components/InformationIcon/{index.js → InformationIcon.js} +7 -7
  103. package/dist/src/lib/components/InformationIcon/InformationIcon.js.map +1 -0
  104. package/dist/src/lib/components/InformationIcon/style.module.css +90 -0
  105. package/dist/src/lib/components/InformationIcon/style.module.css.map +1 -0
  106. package/dist/src/lib/components/Input/{index.d.ts → Input.d.ts} +0 -0
  107. package/dist/src/lib/components/Input/{index.js → Input.js} +9 -8
  108. package/dist/src/lib/components/Input/Input.js.map +1 -0
  109. package/dist/src/lib/components/Input/style.module.css +88 -0
  110. package/dist/src/lib/components/Input/style.module.css.map +1 -0
  111. package/dist/src/lib/components/Jumbotron/{index.d.ts → Jumbotron.d.ts} +0 -0
  112. package/dist/src/lib/components/Jumbotron/{index.js → Jumbotron.js} +3 -2
  113. package/dist/src/lib/components/Jumbotron/Jumbotron.js.map +1 -0
  114. package/dist/src/lib/components/Jumbotron/style.module.css +5 -0
  115. package/dist/src/lib/components/Jumbotron/style.module.css.map +1 -0
  116. package/dist/src/lib/components/Nav/{index.d.ts → Nav.d.ts} +1 -1
  117. package/dist/src/lib/components/Nav/Nav.js +62 -0
  118. package/dist/src/lib/components/Nav/Nav.js.map +1 -0
  119. package/dist/src/lib/components/Nav/style.module.css +299 -0
  120. package/dist/src/lib/components/Nav/style.module.css.map +1 -0
  121. package/dist/src/lib/components/NavItem/{index.d.ts → NavItem.d.ts} +0 -0
  122. package/dist/src/lib/components/NavItem/NavItem.js +22 -0
  123. package/dist/src/lib/components/NavItem/NavItem.js.map +1 -0
  124. package/dist/src/lib/components/NavItem/style.module.css +133 -0
  125. package/dist/src/lib/components/NavItem/style.module.css.map +1 -0
  126. package/dist/src/lib/components/NewsCard/{index.d.ts → NewsCard.d.ts} +2 -2
  127. package/dist/src/lib/components/NewsCard/{index.js → NewsCard.js} +9 -8
  128. package/dist/src/lib/components/NewsCard/NewsCard.js.map +1 -0
  129. package/dist/src/lib/components/NewsCard/style.module.css +34 -0
  130. package/dist/src/lib/components/NewsCard/style.module.css.map +1 -0
  131. package/dist/src/lib/components/Profile/{index.d.ts → Profile.d.ts} +1 -1
  132. package/dist/src/lib/components/Profile/Profile.js +36 -0
  133. package/dist/src/lib/components/Profile/Profile.js.map +1 -0
  134. package/dist/src/lib/components/Profile/style.module.css +110 -0
  135. package/dist/src/lib/components/Profile/style.module.css.map +1 -0
  136. package/dist/src/lib/components/Row/{index.d.ts → Row.d.ts} +0 -0
  137. package/dist/src/lib/components/Row/{index.js → Row.js} +3 -2
  138. package/dist/src/lib/components/Row/Row.js.map +1 -0
  139. package/dist/src/lib/components/Row/style.module.css +5 -0
  140. package/dist/src/lib/components/Row/style.module.css.map +1 -0
  141. package/dist/src/lib/components/Search/{index.d.ts → Search.d.ts} +1 -1
  142. package/dist/src/lib/components/Search/{index.js → Search.js} +11 -10
  143. package/dist/src/lib/components/Search/Search.js.map +1 -0
  144. package/dist/src/lib/components/Search/style.module.css +48 -0
  145. package/dist/src/lib/components/Search/style.module.css.map +1 -0
  146. package/dist/src/lib/components/SocialBlock/{index.d.ts → SocialBlock.d.ts} +1 -1
  147. package/dist/src/lib/components/SocialBlock/{index.js → SocialBlock.js} +14 -15
  148. package/dist/src/lib/components/SocialBlock/SocialBlock.js.map +1 -0
  149. package/dist/src/lib/components/SocialBlock/style.module.css +88 -0
  150. package/dist/src/lib/components/SocialBlock/style.module.css.map +1 -0
  151. package/dist/src/lib/components/StarRating/{index.d.ts → StarRating.d.ts} +0 -0
  152. package/dist/src/lib/components/StarRating/{index.js → StarRating.js} +6 -5
  153. package/dist/src/lib/components/StarRating/StarRating.js.map +1 -0
  154. package/dist/src/lib/components/StarRating/style.module.css +10 -0
  155. package/dist/src/lib/components/StarRating/style.module.css.map +1 -0
  156. package/dist/src/lib/components/Testimonial/{index.d.ts → Testimonial.d.ts} +1 -1
  157. package/dist/src/lib/components/Testimonial/{index.js → Testimonial.js} +7 -6
  158. package/dist/src/lib/components/Testimonial/Testimonial.js.map +1 -0
  159. package/dist/src/lib/components/Testimonial/style.module.css +38 -0
  160. package/dist/src/lib/components/Testimonial/style.module.css.map +1 -0
  161. package/dist/src/lib/components/TextAndTitle/{index.d.ts → TextAndTitle.d.ts} +1 -1
  162. package/dist/src/lib/components/TextAndTitle/{index.js → TextAndTitle.js} +20 -19
  163. package/dist/src/lib/components/TextAndTitle/TextAndTitle.js.map +1 -0
  164. package/dist/src/lib/components/TextAndTitle/style.module.css +106 -0
  165. package/dist/src/lib/components/TextAndTitle/style.module.css.map +1 -0
  166. package/dist/src/lib/components/TextArea/{index.d.ts → TextArea.d.ts} +0 -0
  167. package/dist/src/lib/components/TextArea/{index.js → TextArea.js} +8 -7
  168. package/dist/src/lib/components/TextArea/TextArea.js.map +1 -0
  169. package/dist/src/lib/components/TextArea/style.module.css +73 -0
  170. package/dist/src/lib/components/TextArea/style.module.css.map +1 -0
  171. package/dist/src/lib/components/Timeline/{index.d.ts → Timeline.d.ts} +0 -0
  172. package/dist/src/lib/components/Timeline/Timeline.js +127 -0
  173. package/dist/src/lib/components/Timeline/Timeline.js.map +1 -0
  174. package/dist/src/lib/components/Timeline/style.module.css +249 -0
  175. package/dist/src/lib/components/Timeline/style.module.css.map +1 -0
  176. package/dist/src/lib/components/Tubestops/{index.d.ts → Tubestops.d.ts} +0 -1
  177. package/dist/src/lib/components/Tubestops/Tubestops.js +38 -0
  178. package/dist/src/lib/components/Tubestops/Tubestops.js.map +1 -0
  179. package/dist/src/lib/components/Tubestops/style.module.css +952 -0
  180. package/dist/src/lib/components/Tubestops/style.module.css.map +1 -0
  181. package/dist/src/lib/components/UserIcon/{index.d.ts → UserIcon.d.ts} +1 -1
  182. package/dist/src/lib/components/UserIcon/{index.js → UserIcon.js} +8 -7
  183. package/dist/src/lib/components/UserIcon/UserIcon.js.map +1 -0
  184. package/dist/src/lib/components/UserIcon/style.module.css +42 -0
  185. package/dist/src/lib/components/UserIcon/style.module.css.map +1 -0
  186. package/dist/src/lib/components/Video/{index.d.ts → Video.d.ts} +0 -0
  187. package/dist/src/lib/components/Video/{index.js → Video.js} +1 -1
  188. package/dist/src/lib/components/Video/{index.js.map → Video.js.map} +1 -1
  189. package/dist/src/lib/index.d.ts +38 -38
  190. package/dist/src/lib/index.js +39 -41
  191. package/dist/src/lib/index.js.map +1 -1
  192. package/package.json +2 -6
  193. package/dist/src/lib/components/Accordion/style.module.css +0 -4
  194. package/dist/src/lib/components/Accordion/style.module.css.map +0 -1
  195. package/dist/src/lib/components/AlertBar/index.js.map +0 -1
  196. package/dist/src/lib/components/Breadcrumbs/index.js +0 -20
  197. package/dist/src/lib/components/Breadcrumbs/index.js.map +0 -1
  198. package/dist/src/lib/components/BreadcrumbsBordered/index.js.map +0 -1
  199. package/dist/src/lib/components/BreadcrumbsItem/index.js.map +0 -1
  200. package/dist/src/lib/components/Button/index.js.map +0 -1
  201. package/dist/src/lib/components/Card/index.js.map +0 -1
  202. package/dist/src/lib/components/CardWithTopImage/index.js +0 -15
  203. package/dist/src/lib/components/CardWithTopImage/index.js.map +0 -1
  204. package/dist/src/lib/components/Carousel/index.js.map +0 -1
  205. package/dist/src/lib/components/ChevronCard/index.d.ts +0 -7
  206. package/dist/src/lib/components/ChevronCard/index.js +0 -20
  207. package/dist/src/lib/components/ChevronCard/index.js.map +0 -1
  208. package/dist/src/lib/components/Collapsible/index.js.map +0 -1
  209. package/dist/src/lib/components/Column/index.js +0 -83
  210. package/dist/src/lib/components/Column/index.js.map +0 -1
  211. package/dist/src/lib/components/Container/index.js.map +0 -1
  212. package/dist/src/lib/components/FooterBar/index.js +0 -15
  213. package/dist/src/lib/components/FooterBar/index.js.map +0 -1
  214. package/dist/src/lib/components/Form/index.js.map +0 -1
  215. package/dist/src/lib/components/FyreCard/index.js.map +0 -1
  216. package/dist/src/lib/components/Greeting/index.js.map +0 -1
  217. package/dist/src/lib/components/HamburgerIcon/index.js.map +0 -1
  218. package/dist/src/lib/components/Icon/index.js +0 -56
  219. package/dist/src/lib/components/Icon/index.js.map +0 -1
  220. package/dist/src/lib/components/Image/index.js.map +0 -1
  221. package/dist/src/lib/components/ImageLink/index.js +0 -18
  222. package/dist/src/lib/components/ImageLink/index.js.map +0 -1
  223. package/dist/src/lib/components/ImageLinkList/index.js.map +0 -1
  224. package/dist/src/lib/components/InformationIcon/index.js.map +0 -1
  225. package/dist/src/lib/components/Input/index.js.map +0 -1
  226. package/dist/src/lib/components/Jumbotron/index.js.map +0 -1
  227. package/dist/src/lib/components/Nav/index.js +0 -65
  228. package/dist/src/lib/components/Nav/index.js.map +0 -1
  229. package/dist/src/lib/components/NavItem/index.js +0 -24
  230. package/dist/src/lib/components/NavItem/index.js.map +0 -1
  231. package/dist/src/lib/components/NewsCard/index.js.map +0 -1
  232. package/dist/src/lib/components/Profile/index.js +0 -36
  233. package/dist/src/lib/components/Profile/index.js.map +0 -1
  234. package/dist/src/lib/components/Row/index.js.map +0 -1
  235. package/dist/src/lib/components/Search/index.js.map +0 -1
  236. package/dist/src/lib/components/SocialBlock/index.js.map +0 -1
  237. package/dist/src/lib/components/StarRating/index.js.map +0 -1
  238. package/dist/src/lib/components/Testimonial/index.js.map +0 -1
  239. package/dist/src/lib/components/TextAndTitle/index.js.map +0 -1
  240. package/dist/src/lib/components/TextArea/index.js.map +0 -1
  241. package/dist/src/lib/components/Timeline/index.css +0 -135
  242. package/dist/src/lib/components/Timeline/index.css.map +0 -1
  243. package/dist/src/lib/components/Timeline/index.js +0 -208
  244. package/dist/src/lib/components/Timeline/index.js.map +0 -1
  245. package/dist/src/lib/components/Tubestops/index.css +0 -97
  246. package/dist/src/lib/components/Tubestops/index.css.map +0 -1
  247. package/dist/src/lib/components/Tubestops/index.js +0 -44
  248. package/dist/src/lib/components/Tubestops/index.js.map +0 -1
  249. package/dist/src/lib/components/UserIcon/index.js.map +0 -1
@@ -0,0 +1,299 @@
1
+ .nav {
2
+
3
+ height: 4rem
4
+ }
5
+
6
+ .fixedTopNav {
7
+
8
+ position: fixed;
9
+
10
+ top: 0px;
11
+
12
+ z-index: 50;
13
+
14
+ margin-top: 0px;
15
+
16
+ width: 100%
17
+ }
18
+
19
+ .collapseBtnWrapper {
20
+
21
+ position: absolute;
22
+
23
+ top: 0px;
24
+
25
+ bottom: 0px;
26
+
27
+ left: 2rem;
28
+
29
+ top: 1.25rem
30
+ }
31
+
32
+ .collapseBtnWrapper:hover>button {
33
+
34
+ --tw-text-opacity: 1;
35
+
36
+ color: rgb(0 54 160 / var(--tw-text-opacity))
37
+ }
38
+
39
+ .navItemsClassList {
40
+
41
+ margin-top: auto;
42
+
43
+ margin-bottom: auto;
44
+
45
+ display: flex;
46
+
47
+ justify-content: center;
48
+
49
+ padding-left: 1rem;
50
+
51
+ padding-right: 1rem
52
+ }
53
+
54
+ @media (min-width: 1024px) {
55
+
56
+ .navItemsClassList {
57
+
58
+ padding-left: 2rem;
59
+
60
+ padding-right: 2rem
61
+ }
62
+ }
63
+
64
+ .navItemPadding {
65
+
66
+ padding-left: 2rem
67
+ }
68
+
69
+ .logoImageClassList {
70
+
71
+ height: 4rem;
72
+
73
+ width: auto
74
+ }
75
+
76
+ .desktopLogo {
77
+
78
+ margin-left: auto;
79
+
80
+ margin-right: auto
81
+ }
82
+
83
+ .logoClassList {
84
+
85
+ margin-top: auto;
86
+
87
+ margin-bottom: auto;
88
+
89
+ display: flex;
90
+
91
+ justify-content: center;
92
+
93
+ padding-left: 4rem
94
+ }
95
+
96
+ @media (min-width: 1024px) {
97
+
98
+ .logoClassList {
99
+
100
+ padding-left: 6rem
101
+ }
102
+ }
103
+
104
+ .desktopClassList {
105
+
106
+ display: flex;
107
+
108
+ display: none;
109
+
110
+ width: 100%;
111
+
112
+ align-items: center;
113
+
114
+ justify-content: space-between;
115
+
116
+ --tw-bg-opacity: 1;
117
+
118
+ background-color: rgb(0 54 160 / var(--tw-bg-opacity));
119
+
120
+ text-align: center
121
+ }
122
+
123
+ @media (min-width: 640px) {
124
+
125
+ .desktopClassList {
126
+
127
+ align-items: stretch
128
+ }
129
+ }
130
+
131
+ @media (min-width: 768px) {
132
+
133
+ .desktopClassList {
134
+
135
+ display: flex
136
+ }
137
+ }
138
+
139
+ .text {
140
+
141
+ display: none
142
+ }
143
+
144
+ @media (min-width: 1024px) {
145
+
146
+ .text {
147
+
148
+ display: inline-block
149
+ }
150
+ }
151
+
152
+ .textClassList {
153
+
154
+ margin-top: auto;
155
+
156
+ margin-bottom: auto;
157
+
158
+ display: flex;
159
+
160
+ justify-content: center;
161
+
162
+ padding-right: 6rem
163
+ }
164
+
165
+ .mobileLogo {
166
+
167
+ margin-left: auto;
168
+
169
+ margin-right: auto
170
+ }
171
+
172
+ .mobileClassList {
173
+
174
+ display: flex;
175
+
176
+ align-items: center;
177
+
178
+ padding-top: 0.5rem;
179
+
180
+ padding-bottom: 0.5rem
181
+ }
182
+
183
+ @media (min-width: 768px) {
184
+
185
+ .mobileClassList {
186
+
187
+ display: none
188
+ }
189
+ }
190
+
191
+ .mobileDropDownMenu > :not([hidden]) ~ :not([hidden]) {
192
+
193
+ --tw-space-y-reverse: 0;
194
+
195
+ margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
196
+
197
+ margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))
198
+ }
199
+
200
+ .mobileDropDownMenu {
201
+
202
+ padding-top: 0.5rem;
203
+
204
+ padding-bottom: 0.75rem
205
+ }
206
+
207
+ .dropDownNavClassList {
208
+
209
+ z-index: 50;
210
+
211
+ overflow: hidden;
212
+
213
+ padding-top: 5rem
214
+ }
215
+
216
+ @media (min-width: 768px) {
217
+
218
+ .dropDownNavClassList {
219
+
220
+ display: none
221
+ }
222
+ }
223
+
224
+ .mobileDropDownMenuNavItems {
225
+
226
+ padding-left: 2rem;
227
+
228
+ padding-top: 0.5rem
229
+ }
230
+
231
+ .deropDownCollapsed {
232
+
233
+ height: 0px
234
+ }
235
+
236
+ .sideNavClassList {
237
+
238
+ position: fixed;
239
+
240
+ z-index: 50;
241
+
242
+ margin-top: 5rem;
243
+
244
+ height: 100%;
245
+
246
+ overflow: hidden;
247
+
248
+ transition-duration: 700ms
249
+ }
250
+
251
+ @media (min-width: 768px) {
252
+
253
+ .sideNavClassList {
254
+
255
+ display: none
256
+ }
257
+ }
258
+
259
+ .mobileSideBarMenu > :not([hidden]) ~ :not([hidden]) {
260
+
261
+ --tw-space-y-reverse: 0;
262
+
263
+ margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
264
+
265
+ margin-bottom: calc(0.25rem * var(--tw-space-y-reverse))
266
+ }
267
+
268
+ .mobileSideBarMenu {
269
+
270
+ padding-top: 0.5rem;
271
+
272
+ padding-bottom: 0.75rem
273
+ }
274
+
275
+ .mobileSideBarMenuNavItems {
276
+
277
+ padding-left: 2rem;
278
+
279
+ padding-top: 1rem
280
+ }
281
+
282
+ .sideBarCollapsed {
283
+
284
+ width: 0px
285
+ }
286
+
287
+ .sideBarExpanded {
288
+
289
+ width: 100%
290
+ }
291
+
292
+ @media (min-width: 640px) {
293
+
294
+ .sideBarExpanded {
295
+
296
+ width: 33.333333%
297
+ }
298
+ }
299
+ /*# sourceMappingURL=style.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/lib/components/Nav/style.module.css"],"names":[],"mappings":"AACI;;IAAA;AAAW;;AAIX;;IAAA,eAAmC;;IAAnC,QAAmC;;IAAnC,WAAmC;;IAAnC,eAAmC;;IAAnC;AAAmC;;AAInC;;IAAA,kBAAsC;;IAAtC,QAAsC;;IAAtC,WAAsC;;IAAtC,UAAsC;;IAAtC;AAAsC;;AAItC;;IAAA,oBAAmB;;IAAnB;AAAmB;;AAInB;;IAAA,gBAA+C;;IAA/C,mBAA+C;;IAA/C,aAA+C;;IAA/C,uBAA+C;;IAA/C,kBAA+C;;IAA/C;AAA+C;;AAA/C;;IAAA;;QAAA,kBAA+C;;QAA/C;IAA+C;AAAA;;AAI/C;;IAAA;AAAW;;AAIX;;IAAA,YAAkB;;IAAlB;AAAkB;;AAIlB;;IAAA,iBAAc;;IAAd;AAAc;;AAId;;IAAA,gBAAiD;;IAAjD,mBAAiD;;IAAjD,aAAiD;;IAAjD,uBAAiD;;IAAjD;AAAiD;;AAAjD;;IAAA;;QAAA;IAAiD;AAAA;;AAIjD;;IAAA,aAAsH;;IAAtH,aAAsH;;IAAtH,WAAsH;;IAAtH,mBAAsH;;IAAtH,8BAAsH;;IAAtH,kBAAsH;;IAAtH,sDAAsH;;IAAtH;AAAsH;;AAAtH;;IAAA;;QAAA;IAAsH;AAAA;;AAAtH;;IAAA;;QAAA;IAAsH;AAAA;;AAItH;;IAAA;AAA6B;;AAA7B;;IAAA;;QAAA;IAA6B;AAAA;;AAI7B;;IAAA,gBAAwC;;IAAxC,mBAAwC;;IAAxC,aAAwC;;IAAxC,uBAAwC;;IAAxC;AAAwC;;AAIxC;;IAAA,iBAAc;;IAAd;AAAc;;AAId;;IAAA,aAAuC;;IAAvC,mBAAuC;;IAAvC,mBAAuC;;IAAvC;AAAuC;;AAAvC;;IAAA;;QAAA;IAAuC;AAAA;;AAIvC;;IAAA,uBAA0B;;IAA1B,+DAA0B;;IAA1B;AAA0B;;AAA1B;;IAAA,mBAA0B;;IAA1B;AAA0B;;AAI1B;;IAAA,WAA2C;;IAA3C,gBAA2C;;IAA3C;AAA2C;;AAA3C;;IAAA;;QAAA;IAA2C;AAAA;;AAI3C;;IAAA,kBAAgB;;IAAhB;AAAgB;;AAIhB;;IAAA;AAAU;;AAIV;;IAAA,eAAqE;;IAArE,WAAqE;;IAArE,gBAAqE;;IAArE,YAAqE;;IAArE,gBAAqE;;IAArE;AAAqE;;AAArE;;IAAA;;QAAA;IAAqE;AAAA;;AAIrE;;IAAA,uBAA0B;;IAA1B,+DAA0B;;IAA1B;AAA0B;;AAA1B;;IAAA,mBAA0B;;IAA1B;AAA0B;;AAI1B;;IAAA,kBAAgB;;IAAhB;AAAgB;;AAIhB;;IAAA;AAAU;;AAIV;;IAAA;AAAsB;;AAAtB;;IAAA;;QAAA;IAAsB;AAAA","file":"style.module.css","sourcesContent":[".nav {\n @apply h-16;\n}\n\n.fixedTopNav {\n @apply fixed w-full z-50 top-0 mt-0;\n}\n\n.collapseBtnWrapper {\n @apply absolute inset-y-0 left-8 top-5;\n}\n\n.collapseBtnWrapper:hover>button {\n @apply text-primary;\n}\n\n.navItemsClassList {\n @apply flex justify-center my-auto px-4 lg:px-8;\n}\n\n.navItemPadding {\n @apply pl-8;\n}\n\n.logoImageClassList {\n @apply h-16 w-auto;\n}\n\n.desktopLogo {\n @apply mx-auto;\n}\n\n.logoClassList {\n @apply flex justify-center my-auto pl-16 lg:pl-24;\n}\n\n.desktopClassList {\n @apply w-full justify-between hidden md:flex items-center justify-between sm:items-stretch text-center flex bg-primary;\n}\n\n.text {\n @apply hidden lg:inline-block;\n}\n\n.textClassList {\n @apply flex justify-center my-auto pr-24;\n}\n\n.mobileLogo {\n @apply mx-auto;\n}\n\n.mobileClassList {\n @apply flex items-center md:hidden py-2;\n}\n\n.mobileDropDownMenu {\n @apply pt-2 pb-3 space-y-1;\n}\n\n.dropDownNavClassList {\n @apply z-50 md:hidden overflow-hidden pt-20;\n}\n\n.mobileDropDownMenuNavItems {\n @apply pl-8 pt-2;\n}\n\n.deropDownCollapsed {\n @apply h-0;\n}\n\n.sideNavClassList {\n @apply z-50 md:hidden mt-20 fixed overflow-hidden h-full duration-700;\n}\n\n.mobileSideBarMenu {\n @apply pt-2 pb-3 space-y-1;\n}\n\n.mobileSideBarMenuNavItems {\n @apply pl-8 pt-4;\n}\n\n.sideBarCollapsed {\n @apply w-0;\n}\n\n.sideBarExpanded {\n @apply w-full sm:w-1/3;\n}"]}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import style from './style.module.css';
4
+ const NavItem = ({ id, className, title, href = '/', onClick, bordered = false, rounded = true, underlineOnHover = true, isActive = false, variant = 'primary' }) => {
5
+ const classList = classNames(className, style.navItem);
6
+ const anchorClassList = classNames({
7
+ [style.underlineOnHover]: underlineOnHover,
8
+ [style.underline]: underlineOnHover,
9
+ [style.active]: isActive,
10
+ [style.inactive]: !isActive,
11
+ [style.bordered]: bordered,
12
+ [style.rounded]: rounded,
13
+ [style.primary]: variant === 'primary',
14
+ [style.secondary]: variant === 'secondary'
15
+ }, [style.anchorClassList]);
16
+ const spanClassList = classNames({}, style.spanClassList);
17
+ return (React.createElement("div", { id: id, className: classList },
18
+ React.createElement("a", { href: href, onClick: onClick, className: anchorClassList },
19
+ React.createElement("span", { className: spanClassList }, title))));
20
+ };
21
+ export default NavItem;
22
+ //# sourceMappingURL=NavItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavItem.js","sourceRoot":"","sources":["../../../../../src/lib/components/NavItem/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAetC,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,SAAS,EACT,KAAK,EACL,IAAI,GAAG,GAAG,EACV,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,gBAAgB,GAAG,IAAI,EACvB,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,SAAS,EACb,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IAEtD,MAAM,eAAe,GAAG,UAAU,CAAC;QACjC,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,gBAAgB;QAC1C,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,gBAAgB;QACnC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ;QACxB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ;QAC3B,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ;QAC1B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO;QACxB,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,SAAS;QACtC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,WAAW;KAC3C,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAA;IAE3B,MAAM,aAAa,GAAG,UAAU,CAAC,EAChC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAA;IAEvB,OAAO,CACL,6BACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS;QAEpB,2BACE,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,eAAe;YAE1B,8BAAM,SAAS,EAAE,aAAa,IAC3B,KAAK,CACD,CACL,CACA,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
@@ -0,0 +1,133 @@
1
+ .bordered {
2
+
3
+ border-width: 2px;
4
+
5
+ padding-left: 0.5rem;
6
+
7
+ padding-right: 0.5rem;
8
+
9
+ padding-top: 0.5rem;
10
+
11
+ padding-bottom: 0.5rem
12
+ }
13
+
14
+ .rounded {
15
+
16
+ border-radius: 0.375rem
17
+ }
18
+
19
+ .navItem {
20
+
21
+ width: auto;
22
+
23
+ list-style-type: none
24
+ }
25
+
26
+ .underline > span {
27
+
28
+ position: relative;
29
+
30
+ transition-timing-function: linear
31
+ }
32
+
33
+ .underline > span:before {
34
+
35
+ position: absolute;
36
+
37
+ bottom: -0.25rem;
38
+
39
+ left: 0px;
40
+
41
+ height: 0.25rem;
42
+
43
+ transition-property: all;
44
+
45
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
46
+
47
+ transition-duration: 150ms
48
+ }
49
+
50
+ .underline:hover > span:before {
51
+
52
+ width: 100%
53
+ }
54
+
55
+ .active > span::before {
56
+
57
+ content: var(--tw-content);
58
+
59
+ width: 100%
60
+ }
61
+
62
+ .inactive > span::before {
63
+
64
+ content: var(--tw-content);
65
+
66
+ width: 0px
67
+ }
68
+
69
+ .anchorClassList {
70
+
71
+ outline: 2px solid transparent;
72
+
73
+ outline-offset: 2px
74
+ }
75
+
76
+ .anchorClassList:focus > span:before {
77
+
78
+ width: 100%
79
+ }
80
+
81
+ .spanClassList {
82
+
83
+ white-space: nowrap;
84
+
85
+ text-align: center
86
+ }
87
+
88
+ .secondary {
89
+
90
+ --tw-bg-opacity: 1;
91
+
92
+ background-color: rgb(0 54 160 / var(--tw-bg-opacity));
93
+
94
+ --tw-text-opacity: 1;
95
+
96
+ color: rgb(255 255 255 / var(--tw-text-opacity))
97
+ }
98
+
99
+ .secondary > span:before {
100
+
101
+ --tw-bg-opacity: 1;
102
+
103
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
104
+
105
+ --tw-text-opacity: 1;
106
+
107
+ color: rgb(255 255 255 / var(--tw-text-opacity))
108
+ }
109
+
110
+ .primary {
111
+
112
+ --tw-bg-opacity: 1;
113
+
114
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
115
+
116
+ --tw-text-opacity: 1;
117
+
118
+ color: rgb(0 54 160 / var(--tw-text-opacity))
119
+ }
120
+
121
+ .primary > span:before {
122
+
123
+ --tw-bg-opacity: 1;
124
+
125
+ background-color: rgb(0 54 160 / var(--tw-bg-opacity));
126
+
127
+ --tw-text-opacity: 1;
128
+
129
+ color: rgb(0 54 160 / var(--tw-text-opacity))
130
+ }
131
+
132
+
133
+ /*# sourceMappingURL=style.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/lib/components/NavItem/style.module.css"],"names":[],"mappings":"AACI;;IAAA,iBAAyB;;IAAzB,oBAAyB;;IAAzB,qBAAyB;;IAAzB,mBAAyB;;IAAzB;AAAyB;;AAIzB;;IAAA;AAAiB;;AAIjB;;IAAA,WAAuB;;IAAvB;AAAuB;;AAIvB;;IAAA,kBAA2B;;IAA3B;AAA2B;;AAI3B;;IAAA,kBAAmD;;IAAnD,gBAAmD;;IAAnD,SAAmD;;IAAnD,eAAmD;;IAAnD,wBAAmD;;IAAnD,wDAAmD;;IAAnD;AAAmD;;AAInD;;IAAA;AAAa;;AAIb;;IAAA,0BAAoB;;IAApB;AAAoB;;AAIpB;;IAAA,0BAAiB;;IAAjB;AAAiB;;AAIjB;;IAAA,8BAAmB;;IAAnB;AAAmB;;AAInB;;IAAA;AAAa;;AAIb;;IAAA,mBAAoC;;IAApC;AAAoC;;AAIpC;;IAAA,kBAA4B;;IAA5B,sDAA4B;;IAA5B,oBAA4B;;IAA5B;AAA4B;;AAI5B;;IAAA,kBAA0B;;IAA1B,yDAA0B;;IAA1B,oBAA0B;;IAA1B;AAA0B;;AAI1B;;IAAA,kBAA4B;;IAA5B,yDAA4B;;IAA5B,oBAA4B;;IAA5B;AAA4B;;AAI5B;;IAAA,kBAA8B;;IAA9B,sDAA8B;;IAA9B,oBAA8B;;IAA9B;AAA8B","file":"style.module.css","sourcesContent":[".bordered {\n @apply border-2 px-2 py-2;\n}\n\n.rounded {\n @apply rounded-md;\n}\n\n.navItem {\n @apply w-auto list-none;\n}\n\n.underline > span {\n @apply relative ease-linear;\n}\n\n.underline > span:before {\n @apply absolute -bottom-1 left-0 h-1 transition-all;\n}\n\n.underline:hover > span:before {\n @apply w-full;\n}\n\n.active > span {\n @apply before:w-full;\n}\n\n.inactive > span {\n @apply before:w-0;\n}\n\n.anchorClassList {\n @apply outline-none;\n}\n\n.anchorClassList:focus > span:before {\n @apply w-full;\n}\n\n.spanClassList {\n @apply text-center whitespace-nowrap;\n}\n\n.secondary {\n @apply text-white bg-primary;\n}\n\n.secondary > span:before {\n @apply text-white bg-white;\n}\n\n.primary {\n @apply text-primary bg-white;\n}\n\n.primary > span:before{\n @apply text-primary bg-primary;\n}\n\n"]}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { Props as buttonProps } from '../Button';
3
- import { Props as imageProps } from '../Image';
2
+ import { Props as buttonProps } from '../Button/Button';
3
+ import { Props as imageProps } from '../Image/Image';
4
4
  export interface Props {
5
5
  id?: string;
6
6
  className?: string;
@@ -1,20 +1,21 @@
1
1
  import React from 'react';
2
- import Button from '../Button';
3
- import Image from '../Image';
2
+ import Button from '../Button/Button';
3
+ import Image from '../Image/Image';
4
4
  import classNames from 'classnames';
5
+ import style from './style.module.css';
5
6
  const NewsCard = ({ id, className, title, content, imageProps, buttonProps, rounded }) => {
6
7
  const classList = classNames({
7
- 'rounded-lg': rounded
8
- }, className, 'border flex p-2');
8
+ [style.rounded]: rounded
9
+ }, className, style.classList);
9
10
  return (React.createElement("div", { id: id, className: classList },
10
11
  React.createElement("div", null,
11
12
  React.createElement(Image, Object.assign({}, imageProps))),
12
- React.createElement("div", { className: 'flex flex-col justify-between expandable w-auto text-center' },
13
+ React.createElement("div", { className: classNames(style.contentWrapper, 'expandable') },
13
14
  React.createElement("p", null, title),
14
15
  React.createElement("p", null, content),
15
- (buttonProps != null) &&
16
- React.createElement("div", { className: 'px-8' },
16
+ (buttonProps !== undefined) &&
17
+ React.createElement("div", { className: style.buttonWrapper },
17
18
  React.createElement(Button, Object.assign({}, buttonProps), buttonProps.children)))));
18
19
  };
19
20
  export default NewsCard;
20
- //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=NewsCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewsCard.js","sourceRoot":"","sources":["../../../../../src/lib/components/NewsCard/NewsCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAgC,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAA8B,MAAM,yBAAyB,CAAA;AACpE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAYtC,MAAM,QAAQ,GAAG,CAAC,EAChB,EAAE,EACF,SAAS,EACT,KAAK,EACL,OAAO,EACP,UAAU,EACV,WAAW,EACX,OAAO,EACD,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO;KACzB,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAE9B,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS;QAC/B;YACE,oBAAC,KAAK,oBAAK,UAAU,EAAI,CACrB;QACN,6BAAK,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,cAAc,EAAE,YAAY,CAAC;YAC5D,+BAAI,KAAK,CAAK;YACd,+BAAI,OAAO,CAAK;YACf,CAAC,WAAW,KAAK,SAAS,CAAC;gBAC1B,6BAAK,SAAS,EAAE,KAAK,CAAC,aAAa;oBACjC,oBAAC,MAAM,oBAAK,WAAW,GACpB,WAAW,CAAC,QAAQ,CACd,CACL,CACJ,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,34 @@
1
+ .rounded {
2
+
3
+ border-radius: 0.5rem
4
+ }
5
+
6
+ .classList {
7
+
8
+ display: flex;
9
+
10
+ border-width: 1px;
11
+
12
+ padding: 0.5rem
13
+ }
14
+
15
+ .contentWrapper {
16
+
17
+ display: flex;
18
+
19
+ width: auto;
20
+
21
+ flex-direction: column;
22
+
23
+ justify-content: space-between;
24
+
25
+ text-align: center
26
+ }
27
+
28
+ .buttonWrapper {
29
+
30
+ padding-left: 2rem;
31
+
32
+ padding-right: 2rem
33
+ }
34
+ /*# sourceMappingURL=style.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/lib/components/NewsCard/style.module.css"],"names":[],"mappings":"AACI;;IAAA;AAAiB;;AAIjB;;IAAA,aAAsB;;IAAtB,iBAAsB;;IAAtB;AAAsB;;AAItB;;IAAA,aAAuD;;IAAvD,WAAuD;;IAAvD,sBAAuD;;IAAvD,8BAAuD;;IAAvD;AAAuD;;AAIvD;;IAAA,kBAAW;;IAAX;AAAW","file":"style.module.css","sourcesContent":[".rounded {\n @apply rounded-lg;\n}\n\n.classList {\n @apply border flex p-2;\n}\n\n.contentWrapper {\n @apply flex flex-col justify-between w-auto text-center;\n}\n\n.buttonWrapper {\n @apply px-8;\n}"]}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Props as imageProps } from '../Image';
2
+ import { Props as imageProps } from '../Image/Image';
3
3
  export interface Props {
4
4
  id?: string;
5
5
  className?: string;
@@ -0,0 +1,36 @@
1
+ import React, { useState } from 'react';
2
+ import Image from '../Image/Image';
3
+ import classNames from 'classnames';
4
+ import style from './style.module.css';
5
+ const Profile = ({ id, className, profileLinks, alignment, imageHeight = 0, imageWidth = 0, rounded, bordered, imageProps }) => {
6
+ const [profileState, setProfileState] = useState(false);
7
+ const profileAlignment = classNames({
8
+ [style.floatRight]: alignment === 'right',
9
+ [style.floatLeft]: alignment === 'left'
10
+ });
11
+ const dropdownAlignement = classNames({
12
+ [style.dropdownRight]: alignment === 'right',
13
+ [style.dropdownLeft]: alignment === 'left'
14
+ });
15
+ const dropdownTextAlignement = classNames({
16
+ [style.center]: alignment !== 'right' && alignment !== 'left'
17
+ });
18
+ const classList = classNames({
19
+ [style.rounded]: rounded === true,
20
+ [style.bordered]: bordered === true
21
+ }, className, style.classList, `h-${imageHeight} w-${imageWidth}`);
22
+ return (React.createElement(React.Fragment, null,
23
+ React.createElement("div", { id: id, className: classList },
24
+ React.createElement("div", { className: classNames(style.buttonWrapper, profileAlignment) },
25
+ React.createElement("button", { className: style.buttonClassList, onClick: () => setProfileState(!profileState) },
26
+ React.createElement(Image, Object.assign({}, imageProps))))),
27
+ profileState &&
28
+ React.createElement("div", { className: dropdownTextAlignement },
29
+ React.createElement("div", { className: classNames(style.linksWrapper, profileAlignment, dropdownAlignement) }, profileLinks === null || profileLinks === void 0 ? void 0 : profileLinks.map((link, i) => {
30
+ return (React.createElement("a", { key: `profile_link_${i + 1}`, href: link.link, className: style.linkClassList, role: 'menuitem',
31
+ // tabindex="-1"
32
+ id: `user-menu-item-${i + 1}` }, link.name));
33
+ })))));
34
+ };
35
+ export default Profile;
36
+ //# sourceMappingURL=Profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Profile.js","sourceRoot":"","sources":["../../../../../src/lib/components/Profile/Profile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAA8B,MAAM,yBAAyB,CAAA;AACpE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AActC,MAAM,OAAO,GAAG,CAAC,EACf,EAAE,EACF,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,GAAG,CAAC,EACf,UAAU,GAAG,CAAC,EACd,OAAO,EACP,QAAQ,EACR,UAAU,EACJ,EAAe,EAAE;IACvB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEvD,MAAM,gBAAgB,GAAG,UAAU,CAAC;QAClC,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,SAAS,KAAK,OAAO;QACzC,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,SAAS,KAAK,MAAM;KACxC,CAAC,CAAA;IAEF,MAAM,kBAAkB,GAAG,UAAU,CAAC;QACpC,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE,SAAS,KAAK,OAAO;QAC5C,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,SAAS,KAAK,MAAM;KAC3C,CAAC,CAAA;IAEF,MAAM,sBAAsB,GAAG,UAAU,CAAC;QACxC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,MAAM;KAC9D,CAAC,CAAA;IAEF,MAAM,SAAS,GAAG,UAAU,CAAC;QAC3B,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI;QACjC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI;KACpC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,WAAW,MAAM,UAAU,EAAE,CAAC,CAAA;IAElE,OAAO,CACL;QACE,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS;YAC/B,6BAAK,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,aAAa,EAAE,gBAAgB,CAAC;gBAC/D,gCACE,SAAS,EAAE,KAAK,CAAC,eAAe,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC;oBAE7C,oBAAC,KAAK,oBAAK,UAAU,EAAI,CAClB,CACL,CACF;QACL,YAAY;YACX,6BAAK,SAAS,EAAE,sBAAsB;gBACpC,6BAAK,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,IACjF,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;oBAC7B,OAAO,CACL,2BACE,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,EAC5B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,SAAS,EAAE,KAAK,CAAC,aAAa,EAC9B,IAAI,EAAC,UAAU;wBACG,gBAAgB;wBAClC,EAAE,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,IAE5B,IAAI,CAAC,IAAI,CACR,CACL,CAAA;gBACH,CAAC,CAAC,CACE,CACF,CACP,CACJ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}