trepur_components 1.0.5 → 1.0.6

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 (192) 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/AlertBar.d.ts +16 -0
  4. package/dist/src/lib/components/AlertBar/AlertBar.js +64 -0
  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/Breadcrumbs.d.ts +11 -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/BreadcrumbsBordered.d.ts +9 -0
  14. package/dist/src/lib/components/BreadcrumbsBordered/BreadcrumbsBordered.js +19 -0
  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/BreadcrumbsItem.d.ts +12 -0
  19. package/dist/src/lib/components/BreadcrumbsItem/BreadcrumbsItem.js +52 -0
  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/Button.d.ts +17 -0
  24. package/dist/src/lib/components/Button/Button.js +33 -0
  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/Card.d.ts +31 -0
  29. package/dist/src/lib/components/Card/Card.js +66 -0
  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/CardWithTopImage.d.ts +10 -0
  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/Carousel.d.ts +59 -0
  39. package/dist/src/lib/components/Carousel/Carousel.js +123 -0
  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/Collapsible.d.ts +16 -0
  44. package/dist/src/lib/components/Collapsible/Collapsible.js +68 -0
  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/Column.d.ts +12 -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/Container.d.ts +9 -0
  54. package/dist/src/lib/components/Container/Container.js +9 -0
  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/Footer/Footer.d.ts +11 -0
  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/Form.d.ts +15 -0
  64. package/dist/src/lib/components/Form/Form.js +20 -0
  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/FyreCard.d.ts +13 -0
  69. package/dist/src/lib/components/FyreCard/FyreCard.js +18 -0
  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/Greeting.d.ts +10 -0
  74. package/dist/src/lib/components/Greeting/Greeting.js +21 -0
  75. package/dist/src/lib/components/Greeting/Greeting.js.map +1 -0
  76. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.d.ts +6 -0
  77. package/dist/src/lib/components/HamburgerIcon/HamburgerIcon.js +29 -0
  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/Icon.d.ts +19 -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/Image.d.ts +16 -0
  87. package/dist/src/lib/components/Image/Image.js +54 -0
  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/ImageLink.d.ts +15 -0
  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/ImageLinkList.d.ts +9 -0
  97. package/dist/src/lib/components/ImageLinkList/ImageLinkList.js +12 -0
  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/InformationIcon.d.ts +15 -0
  102. package/dist/src/lib/components/InformationIcon/InformationIcon.js +45 -0
  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/Input.d.ts +31 -0
  107. package/dist/src/lib/components/Input/Input.js +26 -0
  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/Jumbotron.d.ts +9 -0
  112. package/dist/src/lib/components/Jumbotron/Jumbotron.js +10 -0
  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/Nav.d.ts +22 -0
  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/NavItem.d.ts +15 -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/NewsCard.d.ts +14 -0
  127. package/dist/src/lib/components/NewsCard/NewsCard.js +21 -0
  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/Profile.d.ts +18 -0
  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/Row.d.ts +8 -0
  137. package/dist/src/lib/components/Row/Row.js +9 -0
  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/Search.d.ts +13 -0
  142. package/dist/src/lib/components/Search/Search.js +24 -0
  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/SocialBlock.d.ts +21 -0
  147. package/dist/src/lib/components/SocialBlock/SocialBlock.js +64 -0
  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/StarRating.d.ts +9 -0
  152. package/dist/src/lib/components/StarRating/StarRating.js +28 -0
  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/Testimonial.d.ts +17 -0
  157. package/dist/src/lib/components/Testimonial/Testimonial.js +28 -0
  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/TextAndTitle.d.ts +26 -0
  162. package/dist/src/lib/components/TextAndTitle/TextAndTitle.js +105 -0
  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/TextArea.d.ts +27 -0
  167. package/dist/src/lib/components/TextArea/TextArea.js +20 -0
  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/Timeline.d.ts +14 -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/Tubestops.d.ts +12 -0
  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/UserIcon.d.ts +11 -0
  182. package/dist/src/lib/components/UserIcon/UserIcon.js +17 -0
  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/Video.d.ts +17 -0
  187. package/dist/src/lib/components/Video/Video.js +9 -0
  188. package/dist/src/lib/components/Video/Video.js.map +1 -0
  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
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ title: string;
6
+ href?: string;
7
+ onClick?: React.MouseEventHandler;
8
+ bordered?: boolean;
9
+ rounded?: boolean;
10
+ underlineOnHover?: boolean;
11
+ isActive?: boolean;
12
+ variant?: 'primary' | 'secondary';
13
+ }
14
+ declare const NavItem: ({ id, className, title, href, onClick, bordered, rounded, underlineOnHover, isActive, variant }: Props) => JSX.Element;
15
+ export default NavItem;
@@ -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"]}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button/Button';
3
+ import { Props as imageProps } from '../Image/Image';
4
+ export interface Props {
5
+ id?: string;
6
+ className?: string;
7
+ title?: string;
8
+ content?: string;
9
+ imageProps?: imageProps;
10
+ buttonProps?: buttonProps;
11
+ rounded?: boolean;
12
+ }
13
+ declare const NewsCard: ({ id, className, title, content, imageProps, buttonProps, rounded }: Props) => JSX.Element;
14
+ export default NewsCard;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import Button from '../Button/Button';
3
+ import Image from '../Image/Image';
4
+ import classNames from 'classnames';
5
+ import style from './style.module.css';
6
+ const NewsCard = ({ id, className, title, content, imageProps, buttonProps, rounded }) => {
7
+ const classList = classNames({
8
+ [style.rounded]: rounded
9
+ }, className, style.classList);
10
+ return (React.createElement("div", { id: id, className: classList },
11
+ React.createElement("div", null,
12
+ React.createElement(Image, Object.assign({}, imageProps))),
13
+ React.createElement("div", { className: classNames(style.contentWrapper, 'expandable') },
14
+ React.createElement("p", null, title),
15
+ React.createElement("p", null, content),
16
+ (buttonProps !== undefined) &&
17
+ React.createElement("div", { className: style.buttonWrapper },
18
+ React.createElement(Button, Object.assign({}, buttonProps), buttonProps.children)))));
19
+ };
20
+ export default NewsCard;
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}"]}
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ import { Props as imageProps } from '../Image/Image';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ profileLinks?: Array<{
7
+ name: string;
8
+ link: string;
9
+ }>;
10
+ alignment?: 'left' | 'right';
11
+ imageHeight?: number;
12
+ imageWidth?: number;
13
+ rounded?: boolean;
14
+ bordered?: boolean;
15
+ imageProps?: imageProps;
16
+ }
17
+ declare const Profile: ({ id, className, profileLinks, alignment, imageHeight, imageWidth, rounded, bordered, imageProps }: Props) => JSX.Element;
18
+ export default Profile;
@@ -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"}
@@ -0,0 +1,110 @@
1
+ .classList {
2
+
3
+ object-fit: cover;
4
+
5
+ text-align: center
6
+ }
7
+
8
+ .floatRight {
9
+
10
+ float: right
11
+ }
12
+
13
+ .floatLeft {
14
+
15
+ float: left
16
+ }
17
+
18
+ .dropdownRight {
19
+
20
+ margin-top: 4rem;
21
+
22
+ margin-right: -4rem
23
+ }
24
+
25
+ .dropdownLeft {
26
+
27
+ margin-top: 4rem;
28
+
29
+ margin-left: -4rem
30
+ }
31
+
32
+ .center {
33
+
34
+ text-align: center
35
+ }
36
+
37
+ .rouned {
38
+
39
+ border-radius: 9999px
40
+ }
41
+
42
+ .bordered {
43
+
44
+ border-width: 1px
45
+ }
46
+
47
+ .buttonClassList {
48
+
49
+ display: flex;
50
+
51
+ border-radius: 9999px
52
+ }
53
+
54
+ .linksWrapper {
55
+
56
+ z-index: 10;
57
+
58
+ width: 12rem;
59
+
60
+ --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
61
+
62
+ --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
63
+
64
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
65
+ }
66
+
67
+ @media (min-width: 640px) {
68
+
69
+ .linksWrapper {
70
+
71
+ display: inline-block
72
+ }
73
+ }
74
+
75
+ .linkClassList {
76
+
77
+ display: block;
78
+
79
+ border-bottom-width: 1px;
80
+
81
+ padding-left: 1rem;
82
+
83
+ padding-right: 1rem;
84
+
85
+ padding-top: 0.5rem;
86
+
87
+ padding-bottom: 0.5rem;
88
+
89
+ font-size: 24px;
90
+
91
+ font-weight: 700
92
+ }
93
+
94
+ .buttonWrapper {
95
+
96
+ top: 0px;
97
+
98
+ bottom: 0px;
99
+
100
+ display: none
101
+ }
102
+
103
+ @media (min-width: 640px) {
104
+
105
+ .buttonWrapper {
106
+
107
+ display: inline-flex
108
+ }
109
+ }
110
+ /*# sourceMappingURL=style.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/lib/components/Profile/style.module.css"],"names":[],"mappings":"AACI;;IAAA,iBAA+B;;IAA/B;AAA+B;;AAI/B;;IAAA;AAAkB;;AAIlB;;IAAA;AAAiB;;AAIjB;;IAAA,gBAAmB;;IAAnB;AAAmB;;AAInB;;IAAA,gBAAmB;;IAAnB;AAAmB;;AAInB;;IAAA;AAAkB;;AAIlB;;IAAA;AAAmB;;AAInB;;IAAA;AAAa;;AAIb;;IAAA,aAAwB;;IAAxB;AAAwB;;AAIxB;;IAAA,WAA0C;;IAA1C,YAA0C;;IAA1C,+EAA0C;;IAA1C,mGAA0C;;IAA1C;AAA0C;;AAA1C;;IAAA;;QAAA;IAA0C;AAAA;;AAI1C;;IAAA,cAAiD;;IAAjD,wBAAiD;;IAAjD,kBAAiD;;IAAjD,mBAAiD;;IAAjD,mBAAiD;;IAAjD,sBAAiD;;IAAjD,eAAiD;;IAAjD;AAAiD;;AAIjD;;IAAA,QAAuC;;IAAvC,WAAuC;;IAAvC;AAAuC;;AAAvC;;IAAA;;QAAA;IAAuC;AAAA","file":"style.module.css","sourcesContent":[".classList {\n @apply object-cover text-center;\n}\n\n.floatRight {\n @apply float-right;\n}\n\n.floatLeft {\n @apply float-left;\n}\n\n.dropdownRight {\n @apply mt-16 -mr-16;\n}\n\n.dropdownLeft {\n @apply mt-16 -ml-16;\n}\n\n.center {\n @apply text-center;\n}\n\n.rouned {\n @apply rounded-full;\n}\n\n.bordered {\n @apply border;\n}\n\n.buttonClassList {\n @apply flex rounded-full;\n}\n\n.linksWrapper {\n @apply w-48 sm:inline-block shadow-lg z-10;\n}\n\n.linkClassList {\n @apply border-b font-bold block px-4 py-2 text-sm;\n}\n\n.buttonWrapper {\n @apply hidden sm:inline-flex inset-y-0;\n}"]}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface Props {
3
+ id?: string;
4
+ className?: string;
5
+ children: any;
6
+ }
7
+ declare const Row: ({ id, className, children }: Props) => JSX.Element;
8
+ export default Row;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import classNames from 'classnames';
3
+ import style from './style.module.css';
4
+ const Row = ({ id, className, children }) => {
5
+ const classList = classNames(className, style.classList);
6
+ return (React.createElement("div", { id: id, className: classList }, children));
7
+ };
8
+ export default Row;
9
+ //# sourceMappingURL=Row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Row.js","sourceRoot":"","sources":["../../../../../src/lib/components/Row/Row.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAQtC,MAAM,GAAG,GAAG,CAAC,EACX,EAAE,EACF,SAAS,EACT,QAAQ,EACF,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAExD,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,IAC9B,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,GAAG,CAAA"}
@@ -0,0 +1,5 @@
1
+ .classList {
2
+ display: flex;
3
+ flex-wrap: wrap
4
+ }
5
+ /*# sourceMappingURL=style.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/lib/components/Row/style.module.css"],"names":[],"mappings":"AACI;IAAA,aAAqB;IAArB;AAAqB","file":"style.module.css","sourcesContent":[".classList {\n @apply flex flex-wrap;\n}"]}
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { Props as iconProps } from '../Icon/Icon';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ onChange?: (val: string | number) => void;
7
+ placeholder?: string;
8
+ text?: string;
9
+ leftIconProps?: iconProps;
10
+ rightIconProps?: iconProps;
11
+ }
12
+ declare const Search: ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps }: Props) => JSX.Element;
13
+ export default Search;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import Icon from '../Icon/Icon';
3
+ import classNames from 'classnames';
4
+ import style from './style.module.css';
5
+ const Search = ({ id, className, onChange, placeholder, text, leftIconProps, rightIconProps }) => {
6
+ const classList = classNames(className, style.classList);
7
+ const inputClasses = classNames({
8
+ [style.leftIcon]: leftIconProps !== undefined,
9
+ [style.noLeftIcon]: leftIconProps === undefined
10
+ }, style.inputClassList);
11
+ const onChangeFunc = (onChange != null) ? (e) => onChange(e.target.value) : undefined;
12
+ return (React.createElement("div", { id: id, className: classList },
13
+ React.createElement("div", null, text !== undefined &&
14
+ React.createElement("h2", { className: classNames(style.text, 'font-base-lg') }, text)),
15
+ React.createElement("div", null,
16
+ React.createElement("div", { className: style.inputWrapper },
17
+ (leftIconProps !== undefined) &&
18
+ React.createElement(Icon, Object.assign({}, leftIconProps)),
19
+ React.createElement("input", { className: inputClasses, onChange: onChangeFunc, placeholder: placeholder, type: 'text', name: 'search' }),
20
+ (rightIconProps !== undefined) &&
21
+ React.createElement(Icon, Object.assign({}, rightIconProps))))));
22
+ };
23
+ export default Search;
24
+ //# sourceMappingURL=Search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../../../src/lib/components/Search/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAA;AACjD,OAAO,IAA4B,MAAM,uBAAuB,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,oBAAoB,CAAA;AAYtC,MAAM,MAAM,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,aAAa,EACb,cAAc,EACR,EAAe,EAAE;IACvB,MAAM,SAAS,GAAG,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IAExD,MAAM,YAAY,GAAG,UAAU,CAAC;QAC9B,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,aAAa,KAAK,SAAS;QAC7C,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,aAAa,KAAK,SAAS;KAChD,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAExB,MAAM,YAAY,GAAqD,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAE5I,OAAO,CACL,6BAAK,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS;QAC/B,iCACG,IAAI,KAAK,SAAS;YACjB,4BAAI,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,IAAG,IAAI,CAAM,CAChE;QACN;YACE,6BAAK,SAAS,EAAE,KAAK,CAAC,YAAY;gBAC/B,CAAC,aAAa,KAAK,SAAS,CAAC;oBAC5B,oBAAC,IAAI,oBAAK,aAAa,EAAI;gBAC7B,+BACE,SAAS,EAAE,YAAY,EACvB,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,WAAW,EACxB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,QAAQ,GACb;gBACD,CAAC,cAAc,KAAK,SAAS,CAAC;oBAC7B,oBAAC,IAAI,oBAAK,cAAc,EAAI,CAC1B,CACF,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
@@ -0,0 +1,48 @@
1
+ .classList {
2
+
3
+ display: flex
4
+ }
5
+
6
+ .inputClassList {
7
+
8
+ width: 100%;
9
+
10
+ border-radius: 0.375rem;
11
+
12
+ border-width: 2px;
13
+
14
+ padding-top: 0.5rem;
15
+
16
+ padding-bottom: 0.5rem;
17
+
18
+ padding-right: 2.25rem
19
+ }
20
+
21
+ .leftIcon {
22
+
23
+ padding-left: 2.25rem
24
+ }
25
+
26
+ .noLeftIcon {
27
+
28
+ padding-left: 0.5rem
29
+ }
30
+
31
+ .text {
32
+
33
+ padding-top: 0.5rem;
34
+
35
+ padding-bottom: 0.5rem;
36
+
37
+ padding-right: 1rem
38
+ }
39
+
40
+ .inputWrapper {
41
+
42
+ position: relative;
43
+
44
+ display: flex;
45
+
46
+ width: 100%
47
+ }
48
+ /*# sourceMappingURL=style.module.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/lib/components/Search/style.module.css"],"names":[],"mappings":"AACI;;IAAA;AAAW;;AAIX;;IAAA,WAA2C;;IAA3C,uBAA2C;;IAA3C,iBAA2C;;IAA3C,mBAA2C;;IAA3C,sBAA2C;;IAA3C;AAA2C;;AAI3C;;IAAA;AAAW;;AAIX;;IAAA;AAAW;;AAIX;;IAAA,mBAAgB;;IAAhB,sBAAgB;;IAAhB;AAAgB;;AAIhB;;IAAA,kBAA2B;;IAA3B,aAA2B;;IAA3B;AAA2B","file":"style.module.css","sourcesContent":[".classList {\n @apply flex;\n}\n\n.inputClassList {\n @apply w-full border-2 rounded-md py-2 pr-9;\n}\n\n.leftIcon {\n @apply pl-9;\n}\n\n.noLeftIcon {\n @apply pl-2;\n}\n\n.text {\n @apply py-2 pr-4;\n}\n\n.inputWrapper {\n @apply relative w-full flex;\n}"]}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { Props as buttonProps } from '../Button/Button';
3
+ export interface Props {
4
+ id?: string;
5
+ className?: string;
6
+ title?: string;
7
+ text?: string;
8
+ withLiveUpdates?: boolean;
9
+ onSave?: (arr: any[], id: string | undefined) => void;
10
+ saveButtonProps?: buttonProps;
11
+ cancelButtonProps?: buttonProps;
12
+ editTitleClasses?: string;
13
+ editTextClasses?: string;
14
+ editInputClasses?: string;
15
+ buttonWrapperClasses?: string;
16
+ textWrapperClasses?: string;
17
+ socialButtons?: buttonProps[];
18
+ theme: 'light' | 'dark';
19
+ }
20
+ declare const SocialBlock: ({ id, className, title, text, withLiveUpdates, onSave, saveButtonProps, cancelButtonProps, editTitleClasses, editTextClasses, editInputClasses, buttonWrapperClasses, textWrapperClasses, socialButtons, theme }: Props) => JSX.Element;
21
+ export default SocialBlock;
@@ -0,0 +1,64 @@
1
+ import React, { useState } from 'react';
2
+ import Input from '../Input/Input';
3
+ import Button from '../Button/Button';
4
+ import classNames from 'classnames';
5
+ import style from './style.module.css';
6
+ const SocialBlock = ({ id, className, title, text, withLiveUpdates, onSave, saveButtonProps, cancelButtonProps, editTitleClasses, editTextClasses, editInputClasses, buttonWrapperClasses, textWrapperClasses, socialButtons, theme = 'light' }) => {
7
+ const colours = theme === 'dark' ? style.dark : style.light;
8
+ const defaultComponentData = {
9
+ title: {
10
+ text: title
11
+ },
12
+ text: {
13
+ text
14
+ }
15
+ };
16
+ const [isInEditingMode, setIsInEditingMode] = useState(false);
17
+ const [isHovering, setIsHovering] = useState(false);
18
+ const [componentData, setComponentData] = useState(defaultComponentData);
19
+ const classList = classNames(className, colours);
20
+ const buttonWrapperClasslist = classNames(buttonWrapperClasses, style.buttonWrapperClassList);
21
+ const hoverClassList = classNames({
22
+ [style.hoverClassList]: withLiveUpdates !== undefined && !isInEditingMode && isHovering
23
+ }, textWrapperClasses);
24
+ const toggleEditState = () => {
25
+ withLiveUpdates === true && setIsInEditingMode(!isInEditingMode);
26
+ };
27
+ const handleButtonSave = () => {
28
+ const arr = [];
29
+ arr.push({ key: 'title', value: componentData.title.text });
30
+ arr.push({ key: 'text', value: componentData.text.text });
31
+ toggleEditState();
32
+ onSave === null || onSave === void 0 ? void 0 : onSave(arr, id);
33
+ setIsHovering(false);
34
+ };
35
+ const handleButtonCancel = () => {
36
+ toggleEditState();
37
+ setIsHovering(false);
38
+ };
39
+ const handleChange = (e) => {
40
+ let id = e.target.id;
41
+ id = id.split('-')[id.split('-').length - 1];
42
+ setComponentData(Object.assign(Object.assign({}, componentData), { [id]: {
43
+ text: e.target.value
44
+ } }));
45
+ };
46
+ const toggleHoverState = () => {
47
+ withLiveUpdates === true && setIsHovering(!isHovering);
48
+ };
49
+ return (React.createElement("div", { id: id, className: classList }, withLiveUpdates === true && isInEditingMode
50
+ ? (React.createElement("div", { className: colours },
51
+ React.createElement(Input, { className: editTitleClasses, inputClasses: editInputClasses, autoFocus: true, value: componentData.title.text, onChange: (e) => handleChange(e), type: 'text', theme: theme }),
52
+ React.createElement(Input, { className: editTextClasses, inputClasses: editInputClasses, value: componentData.text.text, onChange: (e) => handleChange(e), type: 'text', theme: theme }),
53
+ React.createElement(Button, { className: style.saveButton, onClick: handleButtonSave }, "Save"),
54
+ React.createElement(Button, { className: style.cancelButton, onClick: handleButtonCancel }, "Cancel")))
55
+ : (React.createElement(React.Fragment, null,
56
+ React.createElement("div", { onMouseOver: () => toggleHoverState(), onMouseOut: () => toggleHoverState(), onClick: toggleEditState, className: hoverClassList },
57
+ React.createElement("h2", { className: style.title }, componentData.title.text),
58
+ React.createElement("p", { className: style.text }, componentData.text.text)),
59
+ React.createElement("div", { className: buttonWrapperClasslist }, socialButtons === null || socialButtons === void 0 ? void 0 : socialButtons.map((button, i) => {
60
+ return React.createElement("div", { key: `social_btn_${i + 1}` }, button);
61
+ }))))));
62
+ };
63
+ export default SocialBlock;
64
+ //# sourceMappingURL=SocialBlock.js.map