@digigov/react-core 0.2.0 → 0.3.0

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 (490) hide show
  1. package/CHANGELOG.json +34 -0
  2. package/CHANGELOG.md +15 -1
  3. package/dist/AccordionControls/index.d.ts +9 -0
  4. package/dist/AccordionControls/index.js +35 -0
  5. package/dist/AccordionControls/index.test.d.ts +1 -0
  6. package/dist/AccordionControls/index.test.js +15 -0
  7. package/dist/AccordionSection/index.js +5 -5
  8. package/dist/AccordionSectionHeader/index.js +1 -1
  9. package/dist/BackLink/index.js +3 -0
  10. package/dist/ButtonLink/index.d.ts +17 -0
  11. package/dist/ButtonLink/index.js +37 -0
  12. package/dist/ButtonLink/index.test.d.ts +1 -0
  13. package/dist/ButtonLink/index.test.js +80 -0
  14. package/dist/CHANGELOG.md +15 -1
  15. package/dist/CallToAction/index.d.ts +4 -7
  16. package/dist/CallToAction/index.js +6 -7
  17. package/dist/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
  18. package/dist/Container/index.js +0 -1
  19. package/dist/GovGRLogo/index.d.ts +1 -5
  20. package/dist/Grid/__snapshots__/index.test.tsx.snap +105 -0
  21. package/dist/Grid/index.d.ts +20 -0
  22. package/dist/Grid/index.js +46 -0
  23. package/dist/Grid/index.test.d.ts +1 -0
  24. package/dist/Grid/index.test.js +71 -0
  25. package/dist/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
  26. package/dist/HeaderLogo/index.d.ts +10 -2
  27. package/dist/HeaderLogo/index.js +8 -6
  28. package/dist/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
  29. package/dist/HeaderSecondaryLogo/index.js +1 -1
  30. package/dist/Heading/index.d.ts +2 -1
  31. package/dist/Heading/index.js +22 -3
  32. package/dist/HellenicRepublicLogo/index.d.ts +5 -0
  33. package/dist/HellenicRepublicLogo/index.js +8 -4
  34. package/dist/HellenicRepublicLogo/logo-el.d.ts +2 -0
  35. package/dist/HellenicRepublicLogo/logo-el.js +8 -0
  36. package/dist/HellenicRepublicLogo/logo-en.d.ts +2 -0
  37. package/dist/HellenicRepublicLogo/logo-en.js +8 -0
  38. package/dist/Layout/index.d.ts +2 -1
  39. package/dist/Layout/index.js +4 -2
  40. package/dist/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
  41. package/dist/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
  42. package/dist/PhaseBanner/index.d.ts +6 -1
  43. package/dist/PhaseBanner/index.js +4 -2
  44. package/dist/PhaseBanner/index.test.js +8 -0
  45. package/dist/Table/__snapshots__/index.test.tsx.snap +59 -0
  46. package/dist/Table/index.d.ts +34 -0
  47. package/dist/Table/index.js +42 -0
  48. package/dist/Table/index.test.d.ts +1 -0
  49. package/dist/Table/index.test.js +47 -0
  50. package/dist/TableBody/__snapshots__/index.test.tsx.snap +11 -0
  51. package/dist/TableBody/index.d.ts +9 -0
  52. package/dist/TableBody/index.js +35 -0
  53. package/dist/TableBody/index.test.d.ts +1 -0
  54. package/dist/TableBody/index.test.js +15 -0
  55. package/dist/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
  56. package/dist/TableCaption/index.d.ts +15 -0
  57. package/dist/TableCaption/index.js +37 -0
  58. package/dist/TableCaption/index.test.d.ts +1 -0
  59. package/dist/TableCaption/index.test.js +47 -0
  60. package/dist/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
  61. package/dist/TableDataCell/index.d.ts +15 -0
  62. package/dist/TableDataCell/index.js +37 -0
  63. package/dist/TableDataCell/index.test.d.ts +1 -0
  64. package/dist/TableDataCell/index.test.js +23 -0
  65. package/dist/TableHead/__snapshots__/index.test.tsx.snap +11 -0
  66. package/dist/TableHead/index.d.ts +9 -0
  67. package/dist/TableHead/index.js +35 -0
  68. package/dist/TableHead/index.test.d.ts +1 -0
  69. package/dist/TableHead/index.test.js +15 -0
  70. package/dist/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
  71. package/dist/TableHeaderCell/index.d.ts +21 -0
  72. package/dist/TableHeaderCell/index.js +38 -0
  73. package/dist/TableHeaderCell/index.test.d.ts +1 -0
  74. package/dist/TableHeaderCell/index.test.js +125 -0
  75. package/dist/TableRow/__snapshots__/index.test.tsx.snap +11 -0
  76. package/dist/TableRow/index.d.ts +9 -0
  77. package/dist/TableRow/index.js +35 -0
  78. package/dist/TableRow/index.test.d.ts +1 -0
  79. package/dist/TableRow/index.test.js +15 -0
  80. package/dist/TabsListItem/index.d.ts +3 -3
  81. package/dist/TabsListItem/index.js +8 -7
  82. package/dist/TabsPanel/index.js +2 -0
  83. package/dist/TextInput/__snapshots__/index.test.tsx.snap +161 -161
  84. package/dist/TextInput/index.d.ts +4 -3
  85. package/dist/TextInput/index.js +3 -3
  86. package/dist/TextInput/index.test.js +72 -72
  87. package/dist/es/AccordionControls/index.js +20 -0
  88. package/dist/es/AccordionControls/index.test.js +9 -0
  89. package/dist/es/AccordionSection/index.js +5 -5
  90. package/dist/es/AccordionSectionHeader/index.js +1 -1
  91. package/dist/es/BackLink/index.js +3 -0
  92. package/dist/es/ButtonLink/index.js +22 -0
  93. package/dist/es/ButtonLink/index.test.js +74 -0
  94. package/dist/es/CallToAction/index.js +5 -7
  95. package/dist/es/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
  96. package/dist/es/Container/index.js +0 -1
  97. package/dist/es/Grid/__snapshots__/index.test.tsx.snap +105 -0
  98. package/dist/es/Grid/index.js +31 -0
  99. package/dist/es/Grid/index.test.js +65 -0
  100. package/dist/es/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
  101. package/dist/es/HeaderLogo/index.js +8 -6
  102. package/dist/es/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
  103. package/dist/es/HeaderSecondaryLogo/index.js +1 -1
  104. package/dist/es/Heading/index.js +22 -3
  105. package/dist/es/HellenicRepublicLogo/index.js +6 -4
  106. package/dist/es/HellenicRepublicLogo/logo-el.js +1 -0
  107. package/dist/es/HellenicRepublicLogo/logo-en.js +1 -0
  108. package/dist/es/Layout/index.js +4 -2
  109. package/dist/es/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
  110. package/dist/es/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
  111. package/dist/es/PhaseBanner/index.js +4 -2
  112. package/dist/es/PhaseBanner/index.test.js +8 -0
  113. package/dist/es/Table/__snapshots__/index.test.tsx.snap +59 -0
  114. package/dist/es/Table/index.js +27 -0
  115. package/dist/es/Table/index.test.js +41 -0
  116. package/dist/es/TableBody/__snapshots__/index.test.tsx.snap +11 -0
  117. package/dist/es/TableBody/index.js +20 -0
  118. package/dist/es/TableBody/index.test.js +9 -0
  119. package/dist/es/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
  120. package/dist/es/TableCaption/index.js +22 -0
  121. package/dist/es/TableCaption/index.test.js +41 -0
  122. package/dist/es/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
  123. package/dist/es/TableDataCell/index.js +22 -0
  124. package/dist/es/TableDataCell/index.test.js +17 -0
  125. package/dist/es/TableHead/__snapshots__/index.test.tsx.snap +11 -0
  126. package/dist/es/TableHead/index.js +20 -0
  127. package/dist/es/TableHead/index.test.js +9 -0
  128. package/dist/es/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
  129. package/dist/es/TableHeaderCell/index.js +23 -0
  130. package/dist/es/TableHeaderCell/index.test.js +119 -0
  131. package/dist/es/TableRow/__snapshots__/index.test.tsx.snap +11 -0
  132. package/dist/es/TableRow/index.js +20 -0
  133. package/dist/es/TableRow/index.test.js +9 -0
  134. package/dist/es/TabsListItem/index.js +8 -7
  135. package/dist/es/TabsPanel/index.js +2 -0
  136. package/dist/es/TextInput/__snapshots__/index.test.tsx.snap +161 -161
  137. package/dist/es/TextInput/index.js +3 -3
  138. package/dist/es/TextInput/index.test.js +72 -72
  139. package/dist/es/index.js +7 -0
  140. package/dist/esm/AccordionControls/index.js +20 -0
  141. package/dist/esm/AccordionControls/index.test.js +9 -0
  142. package/dist/esm/AccordionSection/index.js +5 -5
  143. package/dist/esm/AccordionSectionHeader/index.js +1 -1
  144. package/dist/esm/BackLink/index.js +3 -0
  145. package/dist/esm/ButtonLink/index.js +22 -0
  146. package/dist/esm/ButtonLink/index.test.js +74 -0
  147. package/dist/esm/CallToAction/index.js +5 -7
  148. package/dist/esm/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
  149. package/dist/esm/Container/index.js +0 -1
  150. package/dist/esm/Grid/__snapshots__/index.test.tsx.snap +105 -0
  151. package/dist/esm/Grid/index.js +31 -0
  152. package/dist/esm/Grid/index.test.js +65 -0
  153. package/dist/esm/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
  154. package/dist/esm/HeaderLogo/index.js +8 -6
  155. package/dist/esm/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
  156. package/dist/esm/HeaderSecondaryLogo/index.js +1 -1
  157. package/dist/esm/Heading/index.js +22 -3
  158. package/dist/esm/HellenicRepublicLogo/index.js +6 -4
  159. package/dist/esm/HellenicRepublicLogo/logo-el.js +1 -0
  160. package/dist/esm/HellenicRepublicLogo/logo-en.js +1 -0
  161. package/dist/esm/Layout/index.js +4 -2
  162. package/dist/esm/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
  163. package/dist/esm/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
  164. package/dist/esm/PhaseBanner/index.js +4 -2
  165. package/dist/esm/PhaseBanner/index.test.js +8 -0
  166. package/dist/esm/Table/__snapshots__/index.test.tsx.snap +59 -0
  167. package/dist/esm/Table/index.js +27 -0
  168. package/dist/esm/Table/index.test.js +41 -0
  169. package/dist/esm/TableBody/__snapshots__/index.test.tsx.snap +11 -0
  170. package/dist/esm/TableBody/index.js +20 -0
  171. package/dist/esm/TableBody/index.test.js +9 -0
  172. package/dist/esm/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
  173. package/dist/esm/TableCaption/index.js +22 -0
  174. package/dist/esm/TableCaption/index.test.js +41 -0
  175. package/dist/esm/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
  176. package/dist/esm/TableDataCell/index.js +22 -0
  177. package/dist/esm/TableDataCell/index.test.js +17 -0
  178. package/dist/esm/TableHead/__snapshots__/index.test.tsx.snap +11 -0
  179. package/dist/esm/TableHead/index.js +20 -0
  180. package/dist/esm/TableHead/index.test.js +9 -0
  181. package/dist/esm/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
  182. package/dist/esm/TableHeaderCell/index.js +23 -0
  183. package/dist/esm/TableHeaderCell/index.test.js +119 -0
  184. package/dist/esm/TableRow/__snapshots__/index.test.tsx.snap +11 -0
  185. package/dist/esm/TableRow/index.js +20 -0
  186. package/dist/esm/TableRow/index.test.js +9 -0
  187. package/dist/esm/TabsListItem/index.js +8 -7
  188. package/dist/esm/TabsPanel/index.js +2 -0
  189. package/dist/esm/TextInput/__snapshots__/index.test.tsx.snap +161 -161
  190. package/dist/esm/TextInput/index.js +3 -3
  191. package/dist/esm/TextInput/index.test.js +72 -72
  192. package/dist/esm/index.js +8 -1
  193. package/dist/index.d.ts +7 -0
  194. package/dist/index.js +56 -0
  195. package/dist/package.json +2 -2
  196. package/package.json +3 -3
  197. package/react-core.build.log +15 -13
  198. package/src/AccordionControls/index.test.tsx +14 -0
  199. package/src/AccordionControls/index.tsx +24 -0
  200. package/src/AccordionSection/index.tsx +4 -5
  201. package/src/AccordionSectionHeader/index.tsx +2 -2
  202. package/src/BackLink/index.tsx +3 -0
  203. package/src/ButtonLink/index.test.tsx +56 -0
  204. package/src/ButtonLink/index.tsx +40 -0
  205. package/src/CallToAction/index.tsx +7 -13
  206. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +42 -0
  207. package/src/Container/index.tsx +0 -1
  208. package/src/GovGRLogo/index.tsx +1 -6
  209. package/src/Grid/__snapshots__/index.test.tsx.snap +105 -0
  210. package/src/Grid/index.test.tsx +29 -0
  211. package/src/Grid/index.tsx +121 -0
  212. package/src/HeaderLogo/__snapshots__/index.test.tsx.snap +1 -1
  213. package/src/HeaderLogo/index.tsx +15 -6
  214. package/src/HeaderSecondaryLogo/__snapshots__/index.test.tsx.snap +2 -2
  215. package/src/HeaderSecondaryLogo/index.tsx +1 -1
  216. package/src/Heading/index.tsx +22 -3
  217. package/src/HellenicRepublicLogo/index.tsx +10 -10
  218. package/src/HellenicRepublicLogo/logo-el.ts +1 -0
  219. package/src/HellenicRepublicLogo/logo-en.ts +1 -0
  220. package/src/Layout/index.tsx +5 -2
  221. package/src/NavHorizontal/__snapshots__/index.test.tsx.snap +24 -0
  222. package/src/PhaseBanner/__snapshots__/index.test.tsx.snap +16 -0
  223. package/src/PhaseBanner/index.test.tsx +4 -0
  224. package/src/PhaseBanner/index.tsx +9 -2
  225. package/src/Table/__snapshots__/index.test.tsx.snap +59 -0
  226. package/src/Table/index.test.tsx +24 -0
  227. package/src/Table/index.tsx +68 -0
  228. package/src/TableBody/__snapshots__/index.test.tsx.snap +11 -0
  229. package/src/TableBody/index.test.tsx +8 -0
  230. package/src/TableBody/index.tsx +26 -0
  231. package/src/TableCaption/__snapshots__/index.test.tsx.snap +59 -0
  232. package/src/TableCaption/index.test.tsx +32 -0
  233. package/src/TableCaption/index.tsx +36 -0
  234. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +23 -0
  235. package/src/TableDataCell/index.test.tsx +14 -0
  236. package/src/TableDataCell/index.tsx +37 -0
  237. package/src/TableHead/__snapshots__/index.test.tsx.snap +11 -0
  238. package/src/TableHead/index.test.tsx +8 -0
  239. package/src/TableHead/index.tsx +26 -0
  240. package/src/TableHeaderCell/__snapshots__/index.test.tsx.snap +182 -0
  241. package/src/TableHeaderCell/index.test.tsx +113 -0
  242. package/src/TableHeaderCell/index.tsx +55 -0
  243. package/src/TableRow/__snapshots__/index.test.tsx.snap +11 -0
  244. package/src/TableRow/index.test.tsx +8 -0
  245. package/src/TableRow/index.tsx +25 -0
  246. package/src/TabsListItem/index.tsx +24 -24
  247. package/src/TabsPanel/index.tsx +2 -0
  248. package/src/TextInput/__snapshots__/index.test.tsx.snap +161 -161
  249. package/src/TextInput/index.test.tsx +88 -72
  250. package/src/TextInput/index.tsx +10 -9
  251. package/src/index.ts +7 -0
  252. package/coverage/clover.xml +0 -919
  253. package/coverage/coverage-final.json +0 -115
  254. package/coverage/lcov-report/Accordion/index.html +0 -111
  255. package/coverage/lcov-report/Accordion/index.tsx.html +0 -158
  256. package/coverage/lcov-report/AccordionSection/index.html +0 -111
  257. package/coverage/lcov-report/AccordionSection/index.tsx.html +0 -182
  258. package/coverage/lcov-report/AccordionSectionContent/index.html +0 -111
  259. package/coverage/lcov-report/AccordionSectionContent/index.tsx.html +0 -161
  260. package/coverage/lcov-report/AccordionSectionHeader/index.html +0 -111
  261. package/coverage/lcov-report/AccordionSectionHeader/index.tsx.html +0 -194
  262. package/coverage/lcov-report/Aside/index.html +0 -111
  263. package/coverage/lcov-report/Aside/index.tsx.html +0 -161
  264. package/coverage/lcov-report/BackLink/index.html +0 -111
  265. package/coverage/lcov-report/BackLink/index.tsx.html +0 -188
  266. package/coverage/lcov-report/Blockquote/index.html +0 -111
  267. package/coverage/lcov-report/Blockquote/index.tsx.html +0 -155
  268. package/coverage/lcov-report/Bottom/index.html +0 -111
  269. package/coverage/lcov-report/Bottom/index.tsx.html +0 -149
  270. package/coverage/lcov-report/Breadcrumbs/index.html +0 -111
  271. package/coverage/lcov-report/Breadcrumbs/index.tsx.html +0 -158
  272. package/coverage/lcov-report/BreadcrumbsList/index.html +0 -111
  273. package/coverage/lcov-report/BreadcrumbsList/index.tsx.html +0 -158
  274. package/coverage/lcov-report/BreadcrumbsListItem/index.html +0 -111
  275. package/coverage/lcov-report/BreadcrumbsListItem/index.tsx.html +0 -197
  276. package/coverage/lcov-report/BurgerIcon/index.html +0 -111
  277. package/coverage/lcov-report/BurgerIcon/index.tsx.html +0 -227
  278. package/coverage/lcov-report/Button/index.html +0 -111
  279. package/coverage/lcov-report/Button/index.tsx.html +0 -221
  280. package/coverage/lcov-report/ButtonGroup/index.html +0 -111
  281. package/coverage/lcov-report/ButtonGroup/index.tsx.html +0 -155
  282. package/coverage/lcov-report/CallToAction/index.html +0 -111
  283. package/coverage/lcov-report/CallToAction/index.tsx.html +0 -203
  284. package/coverage/lcov-report/Card/index.html +0 -111
  285. package/coverage/lcov-report/Card/index.tsx.html +0 -203
  286. package/coverage/lcov-report/CardAction/index.html +0 -111
  287. package/coverage/lcov-report/CardAction/index.tsx.html +0 -164
  288. package/coverage/lcov-report/CardHeading/index.html +0 -111
  289. package/coverage/lcov-report/CardHeading/index.tsx.html +0 -167
  290. package/coverage/lcov-report/CardText/index.html +0 -111
  291. package/coverage/lcov-report/CardText/index.tsx.html +0 -161
  292. package/coverage/lcov-report/Checkbox/index.html +0 -111
  293. package/coverage/lcov-report/Checkbox/index.tsx.html +0 -161
  294. package/coverage/lcov-report/CheckboxConditional/index.html +0 -111
  295. package/coverage/lcov-report/CheckboxConditional/index.tsx.html +0 -236
  296. package/coverage/lcov-report/CheckboxItem/index.html +0 -111
  297. package/coverage/lcov-report/CheckboxItem/index.tsx.html +0 -233
  298. package/coverage/lcov-report/Confirmation/index.html +0 -111
  299. package/coverage/lcov-report/Confirmation/index.tsx.html +0 -158
  300. package/coverage/lcov-report/ConfirmationBody/index.html +0 -111
  301. package/coverage/lcov-report/ConfirmationBody/index.tsx.html +0 -158
  302. package/coverage/lcov-report/ConfirmationTitle/index.html +0 -111
  303. package/coverage/lcov-report/ConfirmationTitle/index.tsx.html +0 -158
  304. package/coverage/lcov-report/Container/index.html +0 -111
  305. package/coverage/lcov-report/Container/index.tsx.html +0 -179
  306. package/coverage/lcov-report/Copyright/index.html +0 -111
  307. package/coverage/lcov-report/Copyright/index.tsx.html +0 -158
  308. package/coverage/lcov-report/DateInput/index.html +0 -111
  309. package/coverage/lcov-report/DateInput/index.tsx.html +0 -164
  310. package/coverage/lcov-report/DateInputItem/index.html +0 -111
  311. package/coverage/lcov-report/DateInputItem/index.tsx.html +0 -227
  312. package/coverage/lcov-report/Details/index.html +0 -111
  313. package/coverage/lcov-report/Details/index.tsx.html +0 -158
  314. package/coverage/lcov-report/DetailsContent/index.html +0 -111
  315. package/coverage/lcov-report/DetailsContent/index.tsx.html +0 -161
  316. package/coverage/lcov-report/DetailsSummary/index.html +0 -111
  317. package/coverage/lcov-report/DetailsSummary/index.tsx.html +0 -158
  318. package/coverage/lcov-report/ErrorMessage/index.html +0 -111
  319. package/coverage/lcov-report/ErrorMessage/index.tsx.html +0 -164
  320. package/coverage/lcov-report/ErrorSummary/index.html +0 -111
  321. package/coverage/lcov-report/ErrorSummary/index.tsx.html +0 -155
  322. package/coverage/lcov-report/Fieldset/index.html +0 -111
  323. package/coverage/lcov-report/Fieldset/index.tsx.html +0 -158
  324. package/coverage/lcov-report/FieldsetLegend/index.html +0 -111
  325. package/coverage/lcov-report/FieldsetLegend/index.tsx.html +0 -233
  326. package/coverage/lcov-report/FileUpload/index.html +0 -111
  327. package/coverage/lcov-report/FileUpload/index.tsx.html +0 -197
  328. package/coverage/lcov-report/Footer/index.html +0 -111
  329. package/coverage/lcov-report/Footer/index.tsx.html +0 -155
  330. package/coverage/lcov-report/FooterContainer/index.html +0 -111
  331. package/coverage/lcov-report/FooterContainer/index.tsx.html +0 -158
  332. package/coverage/lcov-report/FooterContent/index.html +0 -111
  333. package/coverage/lcov-report/FooterContent/index.tsx.html +0 -161
  334. package/coverage/lcov-report/FooterContentLogos/index.html +0 -111
  335. package/coverage/lcov-report/FooterContentLogos/index.tsx.html +0 -164
  336. package/coverage/lcov-report/FooterHeading/index.html +0 -111
  337. package/coverage/lcov-report/FooterHeading/index.tsx.html +0 -185
  338. package/coverage/lcov-report/FooterImage/index.html +0 -111
  339. package/coverage/lcov-report/FooterImage/index.tsx.html +0 -161
  340. package/coverage/lcov-report/FooterInlineList/index.html +0 -111
  341. package/coverage/lcov-report/FooterInlineList/index.tsx.html +0 -164
  342. package/coverage/lcov-report/FooterInlineListItem/index.html +0 -111
  343. package/coverage/lcov-report/FooterInlineListItem/index.tsx.html +0 -158
  344. package/coverage/lcov-report/FooterLink/index.html +0 -111
  345. package/coverage/lcov-report/FooterLink/index.tsx.html +0 -173
  346. package/coverage/lcov-report/FooterList/index.html +0 -111
  347. package/coverage/lcov-report/FooterList/index.tsx.html +0 -179
  348. package/coverage/lcov-report/FooterListItem/index.html +0 -111
  349. package/coverage/lcov-report/FooterListItem/index.tsx.html +0 -161
  350. package/coverage/lcov-report/FooterMeta/index.html +0 -111
  351. package/coverage/lcov-report/FooterMeta/index.tsx.html +0 -161
  352. package/coverage/lcov-report/FooterMetaItem/index.html +0 -111
  353. package/coverage/lcov-report/FooterMetaItem/index.tsx.html +0 -179
  354. package/coverage/lcov-report/FooterNavigation/index.html +0 -111
  355. package/coverage/lcov-report/FooterNavigation/index.tsx.html +0 -164
  356. package/coverage/lcov-report/FooterSection/index.html +0 -111
  357. package/coverage/lcov-report/FooterSection/index.tsx.html +0 -164
  358. package/coverage/lcov-report/FormGroup/index.html +0 -111
  359. package/coverage/lcov-report/FormGroup/index.tsx.html +0 -173
  360. package/coverage/lcov-report/GovGRFooter/index.html +0 -111
  361. package/coverage/lcov-report/GovGRFooter/index.tsx.html +0 -155
  362. package/coverage/lcov-report/GovGRLogo/index.html +0 -111
  363. package/coverage/lcov-report/GovGRLogo/index.tsx.html +0 -176
  364. package/coverage/lcov-report/Header/index.html +0 -111
  365. package/coverage/lcov-report/Header/index.tsx.html +0 -167
  366. package/coverage/lcov-report/HeaderContent/index.html +0 -111
  367. package/coverage/lcov-report/HeaderContent/index.tsx.html +0 -158
  368. package/coverage/lcov-report/HeaderLogo/index.html +0 -111
  369. package/coverage/lcov-report/HeaderLogo/index.tsx.html +0 -164
  370. package/coverage/lcov-report/HeaderSecondaryLogo/index.html +0 -111
  371. package/coverage/lcov-report/HeaderSecondaryLogo/index.tsx.html +0 -185
  372. package/coverage/lcov-report/HeaderSection/index.html +0 -111
  373. package/coverage/lcov-report/HeaderSection/index.tsx.html +0 -158
  374. package/coverage/lcov-report/HeaderSubtitle/index.html +0 -111
  375. package/coverage/lcov-report/HeaderSubtitle/index.tsx.html +0 -140
  376. package/coverage/lcov-report/HeaderTitle/index.html +0 -111
  377. package/coverage/lcov-report/HeaderTitle/index.tsx.html +0 -176
  378. package/coverage/lcov-report/Heading/index.html +0 -111
  379. package/coverage/lcov-report/Heading/index.tsx.html +0 -212
  380. package/coverage/lcov-report/HeadingCaption/index.html +0 -111
  381. package/coverage/lcov-report/HeadingCaption/index.tsx.html +0 -185
  382. package/coverage/lcov-report/HellenicRepublicLogo/index.html +0 -111
  383. package/coverage/lcov-report/HellenicRepublicLogo/index.tsx.html +0 -206
  384. package/coverage/lcov-report/Hint/index.html +0 -111
  385. package/coverage/lcov-report/Hint/index.tsx.html +0 -155
  386. package/coverage/lcov-report/Label/index.html +0 -111
  387. package/coverage/lcov-report/Label/index.tsx.html +0 -176
  388. package/coverage/lcov-report/Layout/index.html +0 -111
  389. package/coverage/lcov-report/Layout/index.tsx.html +0 -155
  390. package/coverage/lcov-report/Link/index.html +0 -111
  391. package/coverage/lcov-report/Link/index.tsx.html +0 -176
  392. package/coverage/lcov-report/List/index.html +0 -111
  393. package/coverage/lcov-report/List/index.tsx.html +0 -197
  394. package/coverage/lcov-report/ListItem/index.html +0 -111
  395. package/coverage/lcov-report/ListItem/index.tsx.html +0 -155
  396. package/coverage/lcov-report/Main/index.html +0 -111
  397. package/coverage/lcov-report/Main/index.tsx.html +0 -158
  398. package/coverage/lcov-report/Masthead/index.html +0 -111
  399. package/coverage/lcov-report/Masthead/index.tsx.html +0 -206
  400. package/coverage/lcov-report/MastheadBody/index.html +0 -111
  401. package/coverage/lcov-report/MastheadBody/index.tsx.html +0 -158
  402. package/coverage/lcov-report/NavHorizontal/index.html +0 -111
  403. package/coverage/lcov-report/NavHorizontal/index.tsx.html +0 -182
  404. package/coverage/lcov-report/NavHorizontalList/index.html +0 -111
  405. package/coverage/lcov-report/NavHorizontalList/index.tsx.html +0 -161
  406. package/coverage/lcov-report/NavHorizontalListItem/index.html +0 -111
  407. package/coverage/lcov-report/NavHorizontalListItem/index.tsx.html +0 -206
  408. package/coverage/lcov-report/NavVertical/index.html +0 -111
  409. package/coverage/lcov-report/NavVertical/index.tsx.html +0 -161
  410. package/coverage/lcov-report/NavVerticalItem/index.html +0 -111
  411. package/coverage/lcov-report/NavVerticalItem/index.tsx.html +0 -182
  412. package/coverage/lcov-report/NormalText/index.html +0 -111
  413. package/coverage/lcov-report/NormalText/index.tsx.html +0 -263
  414. package/coverage/lcov-report/NotificationBanner/index.html +0 -111
  415. package/coverage/lcov-report/NotificationBanner/index.tsx.html +0 -197
  416. package/coverage/lcov-report/NotificationBannerContent/index.html +0 -111
  417. package/coverage/lcov-report/NotificationBannerContent/index.tsx.html +0 -167
  418. package/coverage/lcov-report/NotificationBannerHeader/index.html +0 -111
  419. package/coverage/lcov-report/NotificationBannerHeader/index.tsx.html +0 -182
  420. package/coverage/lcov-report/NotificationBannerHeading/index.html +0 -111
  421. package/coverage/lcov-report/NotificationBannerHeading/index.tsx.html +0 -164
  422. package/coverage/lcov-report/NotificationBannerLink/index.html +0 -111
  423. package/coverage/lcov-report/NotificationBannerLink/index.tsx.html +0 -191
  424. package/coverage/lcov-report/PageTitle/index.html +0 -111
  425. package/coverage/lcov-report/PageTitle/index.tsx.html +0 -137
  426. package/coverage/lcov-report/PageTitleCaption/index.html +0 -111
  427. package/coverage/lcov-report/PageTitleCaption/index.tsx.html +0 -191
  428. package/coverage/lcov-report/PageTitleHeading/index.html +0 -111
  429. package/coverage/lcov-report/PageTitleHeading/index.tsx.html +0 -191
  430. package/coverage/lcov-report/PageTitleSection/index.html +0 -111
  431. package/coverage/lcov-report/PageTitleSection/index.tsx.html +0 -140
  432. package/coverage/lcov-report/Paragraph/index.html +0 -111
  433. package/coverage/lcov-report/Paragraph/index.tsx.html +0 -260
  434. package/coverage/lcov-report/PhaseBanner/index.html +0 -111
  435. package/coverage/lcov-report/PhaseBanner/index.tsx.html +0 -176
  436. package/coverage/lcov-report/PhaseBannerTag/index.html +0 -111
  437. package/coverage/lcov-report/PhaseBannerTag/index.tsx.html +0 -161
  438. package/coverage/lcov-report/PhaseBannerText/index.html +0 -111
  439. package/coverage/lcov-report/PhaseBannerText/index.tsx.html +0 -164
  440. package/coverage/lcov-report/Radio/index.html +0 -111
  441. package/coverage/lcov-report/Radio/index.tsx.html +0 -158
  442. package/coverage/lcov-report/RadioItem/index.html +0 -111
  443. package/coverage/lcov-report/RadioItem/index.tsx.html +0 -230
  444. package/coverage/lcov-report/SectionBreak/index.html +0 -111
  445. package/coverage/lcov-report/SectionBreak/index.tsx.html +0 -194
  446. package/coverage/lcov-report/Select/index.html +0 -111
  447. package/coverage/lcov-report/Select/index.tsx.html +0 -179
  448. package/coverage/lcov-report/SelectOption/index.html +0 -111
  449. package/coverage/lcov-report/SelectOption/index.tsx.html +0 -200
  450. package/coverage/lcov-report/ServiceBadge/index.html +0 -111
  451. package/coverage/lcov-report/ServiceBadge/index.tsx.html +0 -161
  452. package/coverage/lcov-report/SummaryList/index.html +0 -111
  453. package/coverage/lcov-report/SummaryList/index.tsx.html +0 -158
  454. package/coverage/lcov-report/SummaryListItem/index.html +0 -111
  455. package/coverage/lcov-report/SummaryListItem/index.tsx.html +0 -161
  456. package/coverage/lcov-report/SummaryListItemAction/index.html +0 -111
  457. package/coverage/lcov-report/SummaryListItemAction/index.tsx.html +0 -161
  458. package/coverage/lcov-report/SummaryListItemKey/index.html +0 -111
  459. package/coverage/lcov-report/SummaryListItemKey/index.tsx.html +0 -161
  460. package/coverage/lcov-report/SummaryListItemValue/index.html +0 -111
  461. package/coverage/lcov-report/SummaryListItemValue/index.tsx.html +0 -158
  462. package/coverage/lcov-report/Tabs/index.html +0 -111
  463. package/coverage/lcov-report/Tabs/index.tsx.html +0 -161
  464. package/coverage/lcov-report/TabsHeading/index.html +0 -111
  465. package/coverage/lcov-report/TabsHeading/index.tsx.html +0 -185
  466. package/coverage/lcov-report/TabsList/index.html +0 -111
  467. package/coverage/lcov-report/TabsList/index.tsx.html +0 -161
  468. package/coverage/lcov-report/TabsListItem/index.html +0 -111
  469. package/coverage/lcov-report/TabsListItem/index.tsx.html +0 -227
  470. package/coverage/lcov-report/TabsPanel/index.html +0 -111
  471. package/coverage/lcov-report/TabsPanel/index.tsx.html +0 -182
  472. package/coverage/lcov-report/TextArea/index.html +0 -111
  473. package/coverage/lcov-report/TextArea/index.tsx.html +0 -224
  474. package/coverage/lcov-report/TextInput/index.html +0 -111
  475. package/coverage/lcov-report/TextInput/index.tsx.html +0 -320
  476. package/coverage/lcov-report/Top/index.html +0 -111
  477. package/coverage/lcov-report/Top/index.tsx.html +0 -152
  478. package/coverage/lcov-report/VisuallyHidden/index.html +0 -111
  479. package/coverage/lcov-report/VisuallyHidden/index.tsx.html +0 -161
  480. package/coverage/lcov-report/WarningText/index.html +0 -111
  481. package/coverage/lcov-report/WarningText/index.tsx.html +0 -221
  482. package/coverage/lcov-report/base.css +0 -224
  483. package/coverage/lcov-report/block-navigation.js +0 -79
  484. package/coverage/lcov-report/favicon.png +0 -0
  485. package/coverage/lcov-report/index.html +0 -1806
  486. package/coverage/lcov-report/prettify.css +0 -1
  487. package/coverage/lcov-report/prettify.js +0 -2
  488. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  489. package/coverage/lcov-report/sorter.js +0 -170
  490. package/coverage/lcov.info +0 -1508
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["type", "name", "characterWidth", "width", "error", "className", "children"];
3
+ var _excluded = ["type", "name", "characterWidth", "cellWidth", "error", "className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
@@ -13,7 +13,7 @@ export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref, re
13
13
  type = _ref$type === void 0 ? 'text' : _ref$type,
14
14
  name = _ref.name,
15
15
  characterWidth = _ref.characterWidth,
16
- width = _ref.width,
16
+ cellWidth = _ref.cellWidth,
17
17
  error = _ref.error,
18
18
  className = _ref.className,
19
19
  children = _ref.children,
@@ -23,7 +23,7 @@ export var TextInput = /*#__PURE__*/React.forwardRef(function TextInput(_ref, re
23
23
  type: type,
24
24
  name: name,
25
25
  ref: ref,
26
- className: clsx(className, width === 'three-quarters' && 'govgr-!-width-three-quarters', width === 'one-quarter' && 'govgr-!-width-one-quarter', width === 'two-thirds' && 'govgr-!-width-two-thirds', characterWidth === 10 && 'govgr-input--width-10', characterWidth === 20 && 'govgr-input--width-20', width === 'one-third' && 'govgr-!-width-one-third', characterWidth === 2 && 'govgr-input--width-2', characterWidth === 3 && 'govgr-input--width-3', characterWidth === 4 && 'govgr-input--width-4', characterWidth === 5 && 'govgr-input--width-5', width === 'one-half' && 'govgr-!-width-one-half', width === 'full' && 'govgr-!-width-full', error === true && 'govgr-error-input', true && 'govgr-input')
26
+ className: clsx(className, cellWidth === 'three-quarters' && 'govgr-!-width-three-quarters', cellWidth === 'one-quarter' && 'govgr-!-width-one-quarter', cellWidth === 'two-thirds' && 'govgr-!-width-two-thirds', cellWidth === 'one-third' && 'govgr-!-width-one-third', cellWidth === 'one-half' && 'govgr-!-width-one-half', characterWidth === 10 && 'govgr-input--width-10', characterWidth === 20 && 'govgr-input--width-20', characterWidth === 2 && 'govgr-input--width-2', characterWidth === 3 && 'govgr-input--width-3', characterWidth === 4 && 'govgr-input--width-4', characterWidth === 5 && 'govgr-input--width-5', cellWidth === 'full' && 'govgr-!-width-full', error === true && 'govgr-error-input', true && 'govgr-input')
27
27
  }, props), children);
28
28
  });
29
29
  export default TextInput;
@@ -57,319 +57,319 @@ it('renders the TextInput with characterWidth=20', function () {
57
57
  });
58
58
 
59
59
  var _ref8 = /*#__PURE__*/React.createElement(TextInput, {
60
- width: 'one-quarter'
60
+ cellWidth: 'one-quarter'
61
61
  });
62
62
 
63
- it('renders the TextInput with width=one-quarter', function () {
63
+ it('renders the TextInput with cellWidth=one-quarter', function () {
64
64
  expect(mount(_ref8)).toMatchSnapshot();
65
65
  });
66
66
 
67
67
  var _ref9 = /*#__PURE__*/React.createElement(TextInput, {
68
- width: 'one-third'
68
+ cellWidth: 'one-third'
69
69
  });
70
70
 
71
- it('renders the TextInput with width=one-third', function () {
71
+ it('renders the TextInput with cellWidth=one-third', function () {
72
72
  expect(mount(_ref9)).toMatchSnapshot();
73
73
  });
74
74
 
75
75
  var _ref10 = /*#__PURE__*/React.createElement(TextInput, {
76
- width: 'one-half'
76
+ cellWidth: 'one-half'
77
77
  });
78
78
 
79
- it('renders the TextInput with width=one-half', function () {
79
+ it('renders the TextInput with cellWidth=one-half', function () {
80
80
  expect(mount(_ref10)).toMatchSnapshot();
81
81
  });
82
82
 
83
83
  var _ref11 = /*#__PURE__*/React.createElement(TextInput, {
84
- width: 'two-thirds'
84
+ cellWidth: 'two-thirds'
85
85
  });
86
86
 
87
- it('renders the TextInput with width=two-thirds', function () {
87
+ it('renders the TextInput with cellWidth=two-thirds', function () {
88
88
  expect(mount(_ref11)).toMatchSnapshot();
89
89
  });
90
90
 
91
91
  var _ref12 = /*#__PURE__*/React.createElement(TextInput, {
92
- width: 'three-quarters'
92
+ cellWidth: 'three-quarters'
93
93
  });
94
94
 
95
- it('renders the TextInput with width=three-quarters', function () {
95
+ it('renders the TextInput with cellWidth=three-quarters', function () {
96
96
  expect(mount(_ref12)).toMatchSnapshot();
97
97
  });
98
98
 
99
99
  var _ref13 = /*#__PURE__*/React.createElement(TextInput, {
100
- width: 'full'
100
+ cellWidth: 'full'
101
101
  });
102
102
 
103
- it('renders the TextInput with width=full', function () {
103
+ it('renders the TextInput with cellWidth=full', function () {
104
104
  expect(mount(_ref13)).toMatchSnapshot();
105
105
  });
106
106
 
107
107
  var _ref14 = /*#__PURE__*/React.createElement(TextInput, {
108
108
  characterWidth: 2,
109
- width: 'one-quarter'
109
+ cellWidth: 'one-quarter'
110
110
  });
111
111
 
112
- it('renders the TextInput with characterWidth=2 and with width=one-quarter', function () {
112
+ it('renders the TextInput with characterWidth=2 and with cellWidth=one-quarter', function () {
113
113
  expect(mount(_ref14)).toMatchSnapshot();
114
114
  });
115
115
 
116
116
  var _ref15 = /*#__PURE__*/React.createElement(TextInput, {
117
117
  characterWidth: 3,
118
- width: 'one-quarter'
118
+ cellWidth: 'one-quarter'
119
119
  });
120
120
 
121
- it('renders the TextInput with characterWidth=3 and with width=one-quarter', function () {
121
+ it('renders the TextInput with characterWidth=3 and with cellWidth=one-quarter', function () {
122
122
  expect(mount(_ref15)).toMatchSnapshot();
123
123
  });
124
124
 
125
125
  var _ref16 = /*#__PURE__*/React.createElement(TextInput, {
126
126
  characterWidth: 4,
127
- width: 'one-quarter'
127
+ cellWidth: 'one-quarter'
128
128
  });
129
129
 
130
- it('renders the TextInput with characterWidth=4 and with width=one-quarter', function () {
130
+ it('renders the TextInput with characterWidth=4 and with cellWidth=one-quarter', function () {
131
131
  expect(mount(_ref16)).toMatchSnapshot();
132
132
  });
133
133
 
134
134
  var _ref17 = /*#__PURE__*/React.createElement(TextInput, {
135
135
  characterWidth: 5,
136
- width: 'one-quarter'
136
+ cellWidth: 'one-quarter'
137
137
  });
138
138
 
139
- it('renders the TextInput with with characterWidth=5 with width=one-quarter', function () {
139
+ it('renders the TextInput with with characterWidth=5 with cellWidth=one-quarter', function () {
140
140
  expect(mount(_ref17)).toMatchSnapshot();
141
141
  });
142
142
 
143
143
  var _ref18 = /*#__PURE__*/React.createElement(TextInput, {
144
144
  characterWidth: 20,
145
- width: 'one-quarter'
145
+ cellWidth: 'one-quarter'
146
146
  });
147
147
 
148
- it('renders the TextInput with characterWidth=20 and with width=one-quarter', function () {
148
+ it('renders the TextInput with characterWidth=20 and with cellWidth=one-quarter', function () {
149
149
  expect(mount(_ref18)).toMatchSnapshot();
150
150
  });
151
151
 
152
152
  var _ref19 = /*#__PURE__*/React.createElement(TextInput, {
153
153
  characterWidth: 2,
154
- width: 'one-third'
154
+ cellWidth: 'one-third'
155
155
  });
156
156
 
157
- it('renders the TextInput with characterWidth=2 and with width=one-third', function () {
157
+ it('renders the TextInput with characterWidth=2 and with cellWidth=one-third', function () {
158
158
  expect(mount(_ref19)).toMatchSnapshot();
159
159
  });
160
160
 
161
161
  var _ref20 = /*#__PURE__*/React.createElement(TextInput, {
162
162
  characterWidth: 3,
163
- width: 'one-third'
163
+ cellWidth: 'one-third'
164
164
  });
165
165
 
166
- it('renders the TextInput with characterWidth=3 and with width=one-third', function () {
166
+ it('renders the TextInput with characterWidth=3 and with cellWidth=one-third', function () {
167
167
  expect(mount(_ref20)).toMatchSnapshot();
168
168
  });
169
169
 
170
170
  var _ref21 = /*#__PURE__*/React.createElement(TextInput, {
171
171
  characterWidth: 4,
172
- width: 'one-third'
172
+ cellWidth: 'one-third'
173
173
  });
174
174
 
175
- it('renders the TextInput with characterWidth=4 and with width=one-third', function () {
175
+ it('renders the TextInput with characterWidth=4 and with cellWidth=one-third', function () {
176
176
  expect(mount(_ref21)).toMatchSnapshot();
177
177
  });
178
178
 
179
179
  var _ref22 = /*#__PURE__*/React.createElement(TextInput, {
180
180
  characterWidth: 5,
181
- width: 'one-third'
181
+ cellWidth: 'one-third'
182
182
  });
183
183
 
184
- it('renders the TextInput with with characterWidth=5 with width=one-third', function () {
184
+ it('renders the TextInput with with characterWidth=5 with cellWidth=one-third', function () {
185
185
  expect(mount(_ref22)).toMatchSnapshot();
186
186
  });
187
187
 
188
188
  var _ref23 = /*#__PURE__*/React.createElement(TextInput, {
189
189
  characterWidth: 20,
190
- width: 'one-third'
190
+ cellWidth: 'one-third'
191
191
  });
192
192
 
193
- it('renders the TextInput with characterWidth=20 and with width=one-third', function () {
193
+ it('renders the TextInput with characterWidth=20 and with cellWidth=one-third', function () {
194
194
  expect(mount(_ref23)).toMatchSnapshot();
195
195
  });
196
196
 
197
197
  var _ref24 = /*#__PURE__*/React.createElement(TextInput, {
198
198
  characterWidth: 2,
199
- width: 'one-half'
199
+ cellWidth: 'one-half'
200
200
  });
201
201
 
202
- it('renders the TextInput with characterWidth=2 and with width=one-half', function () {
202
+ it('renders the TextInput with characterWidth=2 and with cellWidth=one-half', function () {
203
203
  expect(mount(_ref24)).toMatchSnapshot();
204
204
  });
205
205
 
206
206
  var _ref25 = /*#__PURE__*/React.createElement(TextInput, {
207
207
  characterWidth: 3,
208
- width: 'one-half'
208
+ cellWidth: 'one-half'
209
209
  });
210
210
 
211
- it('renders the TextInput with characterWidth=3 and with width=one-half', function () {
211
+ it('renders the TextInput with characterWidth=3 and with cellWidth=one-half', function () {
212
212
  expect(mount(_ref25)).toMatchSnapshot();
213
213
  });
214
214
 
215
215
  var _ref26 = /*#__PURE__*/React.createElement(TextInput, {
216
216
  characterWidth: 4,
217
- width: 'one-half'
217
+ cellWidth: 'one-half'
218
218
  });
219
219
 
220
- it('renders the TextInput with characterWidth=4 and with width=one-half', function () {
220
+ it('renders the TextInput with characterWidth=4 and with cellWidth=one-half', function () {
221
221
  expect(mount(_ref26)).toMatchSnapshot();
222
222
  });
223
223
 
224
224
  var _ref27 = /*#__PURE__*/React.createElement(TextInput, {
225
225
  characterWidth: 5,
226
- width: 'one-half'
226
+ cellWidth: 'one-half'
227
227
  });
228
228
 
229
- it('renders the TextInput with with characterWidth=5 with width=one-half', function () {
229
+ it('renders the TextInput with with characterWidth=5 with cellWidth=one-half', function () {
230
230
  expect(mount(_ref27)).toMatchSnapshot();
231
231
  });
232
232
 
233
233
  var _ref28 = /*#__PURE__*/React.createElement(TextInput, {
234
234
  characterWidth: 20,
235
- width: 'one-half'
235
+ cellWidth: 'one-half'
236
236
  });
237
237
 
238
- it('renders the TextInput with characterWidth=20 and with width=one-half', function () {
238
+ it('renders the TextInput with characterWidth=20 and with cellWidth=one-half', function () {
239
239
  expect(mount(_ref28)).toMatchSnapshot();
240
240
  });
241
241
 
242
242
  var _ref29 = /*#__PURE__*/React.createElement(TextInput, {
243
243
  characterWidth: 2,
244
- width: 'two-thirds'
244
+ cellWidth: 'two-thirds'
245
245
  });
246
246
 
247
- it('renders the TextInput with characterWidth=2 and with width=two-thirds', function () {
247
+ it('renders the TextInput with characterWidth=2 and with cellWidth=two-thirds', function () {
248
248
  expect(mount(_ref29)).toMatchSnapshot();
249
249
  });
250
250
 
251
251
  var _ref30 = /*#__PURE__*/React.createElement(TextInput, {
252
252
  characterWidth: 3,
253
- width: 'two-thirds'
253
+ cellWidth: 'two-thirds'
254
254
  });
255
255
 
256
- it('renders the TextInput with characterWidth=3 and with width=two-thirds', function () {
256
+ it('renders the TextInput with characterWidth=3 and with cellWidth=two-thirds', function () {
257
257
  expect(mount(_ref30)).toMatchSnapshot();
258
258
  });
259
259
 
260
260
  var _ref31 = /*#__PURE__*/React.createElement(TextInput, {
261
261
  characterWidth: 4,
262
- width: 'two-thirds'
262
+ cellWidth: 'two-thirds'
263
263
  });
264
264
 
265
- it('renders the TextInput with characterWidth=4 and with width=two-thirds', function () {
265
+ it('renders the TextInput with characterWidth=4 and with cellWidth=two-thirds', function () {
266
266
  expect(mount(_ref31)).toMatchSnapshot();
267
267
  });
268
268
 
269
269
  var _ref32 = /*#__PURE__*/React.createElement(TextInput, {
270
270
  characterWidth: 5,
271
- width: 'two-thirds'
271
+ cellWidth: 'two-thirds'
272
272
  });
273
273
 
274
- it('renders the TextInput with with characterWidth=5 with width=two-thirds', function () {
274
+ it('renders the TextInput with with characterWidth=5 with cellWidth=two-thirds', function () {
275
275
  expect(mount(_ref32)).toMatchSnapshot();
276
276
  });
277
277
 
278
278
  var _ref33 = /*#__PURE__*/React.createElement(TextInput, {
279
279
  characterWidth: 20,
280
- width: 'two-thirds'
280
+ cellWidth: 'two-thirds'
281
281
  });
282
282
 
283
- it('renders the TextInput with characterWidth=20 and with width=two-thirds', function () {
283
+ it('renders the TextInput with characterWidth=20 and with cellWidth=two-thirds', function () {
284
284
  expect(mount(_ref33)).toMatchSnapshot();
285
285
  });
286
286
 
287
287
  var _ref34 = /*#__PURE__*/React.createElement(TextInput, {
288
288
  characterWidth: 2,
289
- width: 'three-quarters'
289
+ cellWidth: 'three-quarters'
290
290
  });
291
291
 
292
- it('renders the TextInput with characterWidth=2 and with width=three-quarters', function () {
292
+ it('renders the TextInput with characterWidth=2 and with cellWidth=three-quarters', function () {
293
293
  expect(mount(_ref34)).toMatchSnapshot();
294
294
  });
295
295
 
296
296
  var _ref35 = /*#__PURE__*/React.createElement(TextInput, {
297
297
  characterWidth: 3,
298
- width: 'three-quarters'
298
+ cellWidth: 'three-quarters'
299
299
  });
300
300
 
301
- it('renders the TextInput with characterWidth=3 and with width=three-quarters', function () {
301
+ it('renders the TextInput with characterWidth=3 and with cellWidth=three-quarters', function () {
302
302
  expect(mount(_ref35)).toMatchSnapshot();
303
303
  });
304
304
 
305
305
  var _ref36 = /*#__PURE__*/React.createElement(TextInput, {
306
306
  characterWidth: 4,
307
- width: 'three-quarters'
307
+ cellWidth: 'three-quarters'
308
308
  });
309
309
 
310
- it('renders the TextInput with characterWidth=4 and with width=three-quarters', function () {
310
+ it('renders the TextInput with characterWidth=4 and with cellWidth=three-quarters', function () {
311
311
  expect(mount(_ref36)).toMatchSnapshot();
312
312
  });
313
313
 
314
314
  var _ref37 = /*#__PURE__*/React.createElement(TextInput, {
315
315
  characterWidth: 5,
316
- width: 'three-quarters'
316
+ cellWidth: 'three-quarters'
317
317
  });
318
318
 
319
- it('renders the TextInput with with characterWidth=5 with width=three-quarters', function () {
319
+ it('renders the TextInput with with characterWidth=5 with cellWidth=three-quarters', function () {
320
320
  expect(mount(_ref37)).toMatchSnapshot();
321
321
  });
322
322
 
323
323
  var _ref38 = /*#__PURE__*/React.createElement(TextInput, {
324
324
  characterWidth: 20,
325
- width: 'three-quarters'
325
+ cellWidth: 'three-quarters'
326
326
  });
327
327
 
328
- it('renders the TextInput with characterWidth=20 and with width=three-quarters', function () {
328
+ it('renders the TextInput with characterWidth=20 and with cellWidth=three-quarters', function () {
329
329
  expect(mount(_ref38)).toMatchSnapshot();
330
330
  });
331
331
 
332
332
  var _ref39 = /*#__PURE__*/React.createElement(TextInput, {
333
333
  characterWidth: 2,
334
- width: 'full'
334
+ cellWidth: 'full'
335
335
  });
336
336
 
337
- it('renders the TextInput with characterWidth=2 and with width=full', function () {
337
+ it('renders the TextInput with characterWidth=2 and with cellWidth=full', function () {
338
338
  expect(mount(_ref39)).toMatchSnapshot();
339
339
  });
340
340
 
341
341
  var _ref40 = /*#__PURE__*/React.createElement(TextInput, {
342
342
  characterWidth: 3,
343
- width: 'full'
343
+ cellWidth: 'full'
344
344
  });
345
345
 
346
- it('renders the TextInput with characterWidth=3 and with width=full', function () {
346
+ it('renders the TextInput with characterWidth=3 and with cellWidth=full', function () {
347
347
  expect(mount(_ref40)).toMatchSnapshot();
348
348
  });
349
349
 
350
350
  var _ref41 = /*#__PURE__*/React.createElement(TextInput, {
351
351
  characterWidth: 4,
352
- width: 'full'
352
+ cellWidth: 'full'
353
353
  });
354
354
 
355
- it('renders the TextInput with characterWidth=4 and with width=full', function () {
355
+ it('renders the TextInput with characterWidth=4 and with cellWidth=full', function () {
356
356
  expect(mount(_ref41)).toMatchSnapshot();
357
357
  });
358
358
 
359
359
  var _ref42 = /*#__PURE__*/React.createElement(TextInput, {
360
360
  characterWidth: 5,
361
- width: 'full'
361
+ cellWidth: 'full'
362
362
  });
363
363
 
364
- it('renders the TextInput with with characterWidth=5 with width=full', function () {
364
+ it('renders the TextInput with with characterWidth=5 with cellWidth=full', function () {
365
365
  expect(mount(_ref42)).toMatchSnapshot();
366
366
  });
367
367
 
368
368
  var _ref43 = /*#__PURE__*/React.createElement(TextInput, {
369
369
  characterWidth: 20,
370
- width: 'full'
370
+ cellWidth: 'full'
371
371
  });
372
372
 
373
- it('renders the TextInput with characterWidth=20 and with width=full', function () {
373
+ it('renders the TextInput with characterWidth=20 and with cellWidth=full', function () {
374
374
  expect(mount(_ref43)).toMatchSnapshot();
375
375
  });
package/dist/es/index.js CHANGED
@@ -102,6 +102,13 @@ export { default as SummaryListItem } from '@digigov/react-core/SummaryListItem'
102
102
  export { default as SummaryListItemAction } from '@digigov/react-core/SummaryListItemAction';
103
103
  export { default as SummaryListItemKey } from '@digigov/react-core/SummaryListItemKey';
104
104
  export { default as SummaryListItemValue } from '@digigov/react-core/SummaryListItemValue';
105
+ export { default as Table } from '@digigov/react-core/Table';
106
+ export { default as TableRow } from '@digigov/react-core/TableRow';
107
+ export { default as TableCaption } from '@digigov/react-core/TableCaption';
108
+ export { default as TableHead } from '@digigov/react-core/TableHead';
109
+ export { default as TableBody } from '@digigov/react-core/TableBody';
110
+ export { default as TableDataCell } from '@digigov/react-core/TableDataCell';
111
+ export { default as TableHeaderCell } from '@digigov/react-core/TableHeaderCell';
105
112
  export { default as TabsList } from '@digigov/react-core/TabsList';
106
113
  export { default as TabsListItem } from '@digigov/react-core/TabsListItem';
107
114
  export { default as TabsPanel } from '@digigov/react-core/TabsPanel';
@@ -0,0 +1,20 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["className", "children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+
7
+ /**
8
+ * AccordionControls is a component that provides controls for an accordion.
9
+ */
10
+ export var AccordionControls = /*#__PURE__*/React.forwardRef(function AccordionControls(_ref, ref) {
11
+ var className = _ref.className,
12
+ children = _ref.children,
13
+ props = _objectWithoutProperties(_ref, _excluded);
14
+
15
+ return /*#__PURE__*/React.createElement("div", _extends({
16
+ ref: ref,
17
+ className: clsx(className, true && 'govgr-accordion__controls')
18
+ }, props), children);
19
+ });
20
+ export default AccordionControls;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import AccordionControls from '@digigov/react-core/AccordionControls';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(AccordionControls, null, /*#__PURE__*/React.createElement("button", null, "open all"));
6
+
7
+ it('renders the AccordionControls with button', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["open", "className", "children"];
3
+ var _excluded = ["className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
6
 
@@ -8,15 +8,15 @@ import clsx from 'clsx';
8
8
  * AccordionSection should be inside the Accordion component.
9
9
  * Inside this component must place the AccordionSectionHeader and the AccordionSectionContent components.
10
10
  */
11
+ // eslint-disable-next-line react/display-name
11
12
  export var AccordionSection = /*#__PURE__*/React.forwardRef(function AccordionSection(_ref, ref) {
12
- var open = _ref.open,
13
- className = _ref.className,
13
+ var className = _ref.className,
14
14
  children = _ref.children,
15
15
  props = _objectWithoutProperties(_ref, _excluded);
16
16
 
17
- return /*#__PURE__*/React.createElement("div", _extends({
17
+ return /*#__PURE__*/React.createElement("details", _extends({
18
18
  ref: ref,
19
- className: clsx(className, open === true && 'govgr-accordion__section-open', true && 'govgr-accordion__section')
19
+ className: clsx(className, true && 'govgr-accordion__section')
20
20
  }, props), children);
21
21
  });
22
22
  export default AccordionSection;
@@ -12,7 +12,7 @@ export var AccordionSectionHeader = /*#__PURE__*/React.forwardRef(function Accor
12
12
  children = _ref.children,
13
13
  props = _objectWithoutProperties(_ref, _excluded);
14
14
 
15
- return /*#__PURE__*/React.createElement("div", _extends({
15
+ return /*#__PURE__*/React.createElement("summary", _extends({
16
16
  ref: ref,
17
17
  className: clsx(className, true && 'govgr-accordion__section-header')
18
18
  }, props), /*#__PURE__*/React.createElement("h2", {
@@ -15,6 +15,9 @@ export var BackLink = /*#__PURE__*/React.forwardRef(function BackLink(_ref, ref)
15
15
 
16
16
  return /*#__PURE__*/React.createElement("a", _extends({
17
17
  href: href,
18
+ onClick: function onClick() {
19
+ !href && window.history.back();
20
+ },
18
21
  ref: ref,
19
22
  className: clsx(className, true && 'govgr-back-link')
20
23
  }, props), /*#__PURE__*/React.createElement("span", {
@@ -0,0 +1,22 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
+ var _excluded = ["color", "className", "children"];
4
+ import React from 'react';
5
+ import clsx from 'clsx';
6
+
7
+ /**
8
+ * Use the Button component to help users carry out an action.
9
+ */
10
+ export var ButtonLink = /*#__PURE__*/React.forwardRef(function ButtonLink(_ref, ref) {
11
+ var _ref$color = _ref.color,
12
+ color = _ref$color === void 0 ? 'primary' : _ref$color,
13
+ className = _ref.className,
14
+ children = _ref.children,
15
+ props = _objectWithoutProperties(_ref, _excluded);
16
+
17
+ return /*#__PURE__*/React.createElement("a", _extends({
18
+ ref: ref,
19
+ className: clsx(className, color === 'secondary' && 'govgr-btn-secondary', color === 'primary' && 'govgr-btn-primary', color === 'warning' && 'govgr-btn-warning', true && 'govgr-btn')
20
+ }, props), children);
21
+ });
22
+ export default ButtonLink;
@@ -0,0 +1,74 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import ButtonLink from '@digigov/react-core/ButtonLink';
4
+
5
+ var _ref = /*#__PURE__*/React.createElement(ButtonLink, null, "hello");
6
+
7
+ it('renders the ButtonLink with no props', function () {
8
+ expect(mount(_ref)).toMatchSnapshot();
9
+ });
10
+
11
+ var _ref2 = /*#__PURE__*/React.createElement(ButtonLink, {
12
+ color: 'primary'
13
+ }, "hello");
14
+
15
+ it('renders the ButtonLink with color=primary', function () {
16
+ expect(mount(_ref2)).toMatchSnapshot();
17
+ });
18
+
19
+ var _ref3 = /*#__PURE__*/React.createElement(ButtonLink, {
20
+ color: 'secondary'
21
+ }, "hello");
22
+
23
+ it('renders the ButtonLink with color=secondary', function () {
24
+ expect(mount(_ref3)).toMatchSnapshot();
25
+ });
26
+
27
+ var _ref4 = /*#__PURE__*/React.createElement(ButtonLink, {
28
+ color: 'warning'
29
+ }, "hello");
30
+
31
+ it('renders the ButtonLink with color=warning', function () {
32
+ expect(mount(_ref4)).toMatchSnapshot();
33
+ });
34
+
35
+ var _ref5 = /*#__PURE__*/React.createElement(ButtonLink, {
36
+ href: '#'
37
+ }, "hello");
38
+
39
+ it('renders the ButtonLink with href=#', function () {
40
+ expect(mount(_ref5)).toMatchSnapshot();
41
+ });
42
+
43
+ var _ref6 = /*#__PURE__*/React.createElement(ButtonLink, null, "hello");
44
+
45
+ it('renders the ButtonLink with disabled=false', function () {
46
+ expect(mount(_ref6)).toMatchSnapshot();
47
+ });
48
+
49
+ var _ref7 = /*#__PURE__*/React.createElement(ButtonLink, {
50
+ href: '#',
51
+ color: 'primary'
52
+ }, "hello");
53
+
54
+ it('renders the ButtonLink with color=primary with href=#', function () {
55
+ expect(mount(_ref7)).toMatchSnapshot();
56
+ });
57
+
58
+ var _ref8 = /*#__PURE__*/React.createElement(ButtonLink, {
59
+ href: '#',
60
+ color: 'secondary'
61
+ }, "hello");
62
+
63
+ it('renders the ButtonLink with color=secondary with href=#', function () {
64
+ expect(mount(_ref8)).toMatchSnapshot();
65
+ });
66
+
67
+ var _ref9 = /*#__PURE__*/React.createElement(ButtonLink, {
68
+ href: '#',
69
+ color: 'warning'
70
+ }, "hello");
71
+
72
+ it('renders the ButtonLink with color=warning with href=#', function () {
73
+ expect(mount(_ref9)).toMatchSnapshot();
74
+ });
@@ -1,24 +1,22 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["disabled", "className", "children"];
3
+ var _excluded = ["className", "children"];
4
4
  import React from 'react';
5
5
  import clsx from 'clsx';
6
+ import ButtonLink from '@digigov/react-core/ButtonLink';
6
7
 
7
8
  /**
8
9
  * Use this button for the main call to action on your service’s start page.
9
10
  */
10
11
  export var CallToAction = /*#__PURE__*/React.forwardRef(function CallToAction(_ref, ref) {
11
- var disabled = _ref.disabled,
12
- className = _ref.className,
12
+ var className = _ref.className,
13
13
  children = _ref.children,
14
14
  props = _objectWithoutProperties(_ref, _excluded);
15
15
 
16
- return /*#__PURE__*/React.createElement("button", _extends({
17
- disabled: disabled,
16
+ return /*#__PURE__*/React.createElement(ButtonLink, _extends({
18
17
  ref: ref,
19
- className: clsx(className, disabled === true && 'govgr-btn-disabled', true && ['govgr-btn', 'govgr-btn-primary', 'govgr-btn-cta'])
18
+ className: clsx(className, true && ['govgr-btn', 'govgr-btn-primary', 'govgr-btn-cta'])
20
19
  }, props), children, /*#__PURE__*/React.createElement("span", {
21
- ref: ref,
22
20
  className: clsx(className, true && 'right-arrow')
23
21
  }));
24
22
  });