@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
@@ -10,9 +10,10 @@ export interface TextInputProps extends InputElementAttributes {
10
10
  */
11
11
  characterWidth?: 2 | 3 | 4 | 5 | 10 | 20;
12
12
  /**
13
- * width is optional.
13
+ * cellWidth is optional.
14
+ * Use cellWidth prop to define a custom width for a specific reference number in your components.
14
15
  */
15
- width?: 'one-quarter' | 'one-third' | 'one-half' | 'two-thirds' | 'three-quarters' | 'full';
16
+ cellWidth?: 'one-quarter' | 'one-third' | 'one-half' | 'two-thirds' | 'three-quarters' | 'full';
16
17
  /**
17
18
  * error is optional. The default value is false.
18
19
  * Use this prop when there is an error at the input.
@@ -23,5 +24,5 @@ export interface TextInputProps extends InputElementAttributes {
23
24
  * TextInput component when you need to let users enter text that’s no
24
25
  * longer than a single line, such as their name or phone number.
25
26
  */
26
- export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "type" | "value" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "alt" | "crossOrigin" | "height" | "src" | "width" | "error" | "autoComplete" | "multiple" | "required" | "maxLength" | "minLength" | "readOnly" | "characterWidth" | "accept" | "capture" | "checked" | "max" | "min"> & React.RefAttributes<HTMLInputElement>>;
27
+ export declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "pattern" | "list" | "step" | "type" | "value" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "alt" | "crossOrigin" | "height" | "src" | "width" | "error" | "autoComplete" | "multiple" | "required" | "cellWidth" | "maxLength" | "minLength" | "readOnly" | "characterWidth" | "accept" | "capture" | "checked" | "max" | "min"> & React.RefAttributes<HTMLInputElement>>;
27
28
  export default TextInput;
@@ -15,7 +15,7 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  var _clsx = _interopRequireDefault(require("clsx"));
17
17
 
18
- var _excluded = ["type", "name", "characterWidth", "width", "error", "className", "children"];
18
+ var _excluded = ["type", "name", "characterWidth", "cellWidth", "error", "className", "children"];
19
19
 
20
20
  /**
21
21
  * TextInput component when you need to let users enter text that’s no
@@ -26,7 +26,7 @@ var TextInput = /*#__PURE__*/_react["default"].forwardRef(function TextInput(_re
26
26
  type = _ref$type === void 0 ? 'text' : _ref$type,
27
27
  name = _ref.name,
28
28
  characterWidth = _ref.characterWidth,
29
- width = _ref.width,
29
+ cellWidth = _ref.cellWidth,
30
30
  error = _ref.error,
31
31
  className = _ref.className,
32
32
  children = _ref.children,
@@ -35,7 +35,7 @@ var TextInput = /*#__PURE__*/_react["default"].forwardRef(function TextInput(_re
35
35
  type: type,
36
36
  name: name,
37
37
  ref: ref,
38
- className: (0, _clsx["default"])(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')
38
+ className: (0, _clsx["default"])(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')
39
39
  }, props), children);
40
40
  });
41
41
 
@@ -63,319 +63,319 @@ it('renders the TextInput with characterWidth=20', function () {
63
63
  });
64
64
 
65
65
  var _ref8 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
66
- width: 'one-quarter'
66
+ cellWidth: 'one-quarter'
67
67
  });
68
68
 
69
- it('renders the TextInput with width=one-quarter', function () {
69
+ it('renders the TextInput with cellWidth=one-quarter', function () {
70
70
  expect((0, _enzyme.mount)(_ref8)).toMatchSnapshot();
71
71
  });
72
72
 
73
73
  var _ref9 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
74
- width: 'one-third'
74
+ cellWidth: 'one-third'
75
75
  });
76
76
 
77
- it('renders the TextInput with width=one-third', function () {
77
+ it('renders the TextInput with cellWidth=one-third', function () {
78
78
  expect((0, _enzyme.mount)(_ref9)).toMatchSnapshot();
79
79
  });
80
80
 
81
81
  var _ref10 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
82
- width: 'one-half'
82
+ cellWidth: 'one-half'
83
83
  });
84
84
 
85
- it('renders the TextInput with width=one-half', function () {
85
+ it('renders the TextInput with cellWidth=one-half', function () {
86
86
  expect((0, _enzyme.mount)(_ref10)).toMatchSnapshot();
87
87
  });
88
88
 
89
89
  var _ref11 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
90
- width: 'two-thirds'
90
+ cellWidth: 'two-thirds'
91
91
  });
92
92
 
93
- it('renders the TextInput with width=two-thirds', function () {
93
+ it('renders the TextInput with cellWidth=two-thirds', function () {
94
94
  expect((0, _enzyme.mount)(_ref11)).toMatchSnapshot();
95
95
  });
96
96
 
97
97
  var _ref12 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
98
- width: 'three-quarters'
98
+ cellWidth: 'three-quarters'
99
99
  });
100
100
 
101
- it('renders the TextInput with width=three-quarters', function () {
101
+ it('renders the TextInput with cellWidth=three-quarters', function () {
102
102
  expect((0, _enzyme.mount)(_ref12)).toMatchSnapshot();
103
103
  });
104
104
 
105
105
  var _ref13 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
106
- width: 'full'
106
+ cellWidth: 'full'
107
107
  });
108
108
 
109
- it('renders the TextInput with width=full', function () {
109
+ it('renders the TextInput with cellWidth=full', function () {
110
110
  expect((0, _enzyme.mount)(_ref13)).toMatchSnapshot();
111
111
  });
112
112
 
113
113
  var _ref14 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
114
114
  characterWidth: 2,
115
- width: 'one-quarter'
115
+ cellWidth: 'one-quarter'
116
116
  });
117
117
 
118
- it('renders the TextInput with characterWidth=2 and with width=one-quarter', function () {
118
+ it('renders the TextInput with characterWidth=2 and with cellWidth=one-quarter', function () {
119
119
  expect((0, _enzyme.mount)(_ref14)).toMatchSnapshot();
120
120
  });
121
121
 
122
122
  var _ref15 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
123
123
  characterWidth: 3,
124
- width: 'one-quarter'
124
+ cellWidth: 'one-quarter'
125
125
  });
126
126
 
127
- it('renders the TextInput with characterWidth=3 and with width=one-quarter', function () {
127
+ it('renders the TextInput with characterWidth=3 and with cellWidth=one-quarter', function () {
128
128
  expect((0, _enzyme.mount)(_ref15)).toMatchSnapshot();
129
129
  });
130
130
 
131
131
  var _ref16 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
132
132
  characterWidth: 4,
133
- width: 'one-quarter'
133
+ cellWidth: 'one-quarter'
134
134
  });
135
135
 
136
- it('renders the TextInput with characterWidth=4 and with width=one-quarter', function () {
136
+ it('renders the TextInput with characterWidth=4 and with cellWidth=one-quarter', function () {
137
137
  expect((0, _enzyme.mount)(_ref16)).toMatchSnapshot();
138
138
  });
139
139
 
140
140
  var _ref17 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
141
141
  characterWidth: 5,
142
- width: 'one-quarter'
142
+ cellWidth: 'one-quarter'
143
143
  });
144
144
 
145
- it('renders the TextInput with with characterWidth=5 with width=one-quarter', function () {
145
+ it('renders the TextInput with with characterWidth=5 with cellWidth=one-quarter', function () {
146
146
  expect((0, _enzyme.mount)(_ref17)).toMatchSnapshot();
147
147
  });
148
148
 
149
149
  var _ref18 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
150
150
  characterWidth: 20,
151
- width: 'one-quarter'
151
+ cellWidth: 'one-quarter'
152
152
  });
153
153
 
154
- it('renders the TextInput with characterWidth=20 and with width=one-quarter', function () {
154
+ it('renders the TextInput with characterWidth=20 and with cellWidth=one-quarter', function () {
155
155
  expect((0, _enzyme.mount)(_ref18)).toMatchSnapshot();
156
156
  });
157
157
 
158
158
  var _ref19 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
159
159
  characterWidth: 2,
160
- width: 'one-third'
160
+ cellWidth: 'one-third'
161
161
  });
162
162
 
163
- it('renders the TextInput with characterWidth=2 and with width=one-third', function () {
163
+ it('renders the TextInput with characterWidth=2 and with cellWidth=one-third', function () {
164
164
  expect((0, _enzyme.mount)(_ref19)).toMatchSnapshot();
165
165
  });
166
166
 
167
167
  var _ref20 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
168
168
  characterWidth: 3,
169
- width: 'one-third'
169
+ cellWidth: 'one-third'
170
170
  });
171
171
 
172
- it('renders the TextInput with characterWidth=3 and with width=one-third', function () {
172
+ it('renders the TextInput with characterWidth=3 and with cellWidth=one-third', function () {
173
173
  expect((0, _enzyme.mount)(_ref20)).toMatchSnapshot();
174
174
  });
175
175
 
176
176
  var _ref21 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
177
177
  characterWidth: 4,
178
- width: 'one-third'
178
+ cellWidth: 'one-third'
179
179
  });
180
180
 
181
- it('renders the TextInput with characterWidth=4 and with width=one-third', function () {
181
+ it('renders the TextInput with characterWidth=4 and with cellWidth=one-third', function () {
182
182
  expect((0, _enzyme.mount)(_ref21)).toMatchSnapshot();
183
183
  });
184
184
 
185
185
  var _ref22 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
186
186
  characterWidth: 5,
187
- width: 'one-third'
187
+ cellWidth: 'one-third'
188
188
  });
189
189
 
190
- it('renders the TextInput with with characterWidth=5 with width=one-third', function () {
190
+ it('renders the TextInput with with characterWidth=5 with cellWidth=one-third', function () {
191
191
  expect((0, _enzyme.mount)(_ref22)).toMatchSnapshot();
192
192
  });
193
193
 
194
194
  var _ref23 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
195
195
  characterWidth: 20,
196
- width: 'one-third'
196
+ cellWidth: 'one-third'
197
197
  });
198
198
 
199
- it('renders the TextInput with characterWidth=20 and with width=one-third', function () {
199
+ it('renders the TextInput with characterWidth=20 and with cellWidth=one-third', function () {
200
200
  expect((0, _enzyme.mount)(_ref23)).toMatchSnapshot();
201
201
  });
202
202
 
203
203
  var _ref24 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
204
204
  characterWidth: 2,
205
- width: 'one-half'
205
+ cellWidth: 'one-half'
206
206
  });
207
207
 
208
- it('renders the TextInput with characterWidth=2 and with width=one-half', function () {
208
+ it('renders the TextInput with characterWidth=2 and with cellWidth=one-half', function () {
209
209
  expect((0, _enzyme.mount)(_ref24)).toMatchSnapshot();
210
210
  });
211
211
 
212
212
  var _ref25 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
213
213
  characterWidth: 3,
214
- width: 'one-half'
214
+ cellWidth: 'one-half'
215
215
  });
216
216
 
217
- it('renders the TextInput with characterWidth=3 and with width=one-half', function () {
217
+ it('renders the TextInput with characterWidth=3 and with cellWidth=one-half', function () {
218
218
  expect((0, _enzyme.mount)(_ref25)).toMatchSnapshot();
219
219
  });
220
220
 
221
221
  var _ref26 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
222
222
  characterWidth: 4,
223
- width: 'one-half'
223
+ cellWidth: 'one-half'
224
224
  });
225
225
 
226
- it('renders the TextInput with characterWidth=4 and with width=one-half', function () {
226
+ it('renders the TextInput with characterWidth=4 and with cellWidth=one-half', function () {
227
227
  expect((0, _enzyme.mount)(_ref26)).toMatchSnapshot();
228
228
  });
229
229
 
230
230
  var _ref27 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
231
231
  characterWidth: 5,
232
- width: 'one-half'
232
+ cellWidth: 'one-half'
233
233
  });
234
234
 
235
- it('renders the TextInput with with characterWidth=5 with width=one-half', function () {
235
+ it('renders the TextInput with with characterWidth=5 with cellWidth=one-half', function () {
236
236
  expect((0, _enzyme.mount)(_ref27)).toMatchSnapshot();
237
237
  });
238
238
 
239
239
  var _ref28 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
240
240
  characterWidth: 20,
241
- width: 'one-half'
241
+ cellWidth: 'one-half'
242
242
  });
243
243
 
244
- it('renders the TextInput with characterWidth=20 and with width=one-half', function () {
244
+ it('renders the TextInput with characterWidth=20 and with cellWidth=one-half', function () {
245
245
  expect((0, _enzyme.mount)(_ref28)).toMatchSnapshot();
246
246
  });
247
247
 
248
248
  var _ref29 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
249
249
  characterWidth: 2,
250
- width: 'two-thirds'
250
+ cellWidth: 'two-thirds'
251
251
  });
252
252
 
253
- it('renders the TextInput with characterWidth=2 and with width=two-thirds', function () {
253
+ it('renders the TextInput with characterWidth=2 and with cellWidth=two-thirds', function () {
254
254
  expect((0, _enzyme.mount)(_ref29)).toMatchSnapshot();
255
255
  });
256
256
 
257
257
  var _ref30 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
258
258
  characterWidth: 3,
259
- width: 'two-thirds'
259
+ cellWidth: 'two-thirds'
260
260
  });
261
261
 
262
- it('renders the TextInput with characterWidth=3 and with width=two-thirds', function () {
262
+ it('renders the TextInput with characterWidth=3 and with cellWidth=two-thirds', function () {
263
263
  expect((0, _enzyme.mount)(_ref30)).toMatchSnapshot();
264
264
  });
265
265
 
266
266
  var _ref31 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
267
267
  characterWidth: 4,
268
- width: 'two-thirds'
268
+ cellWidth: 'two-thirds'
269
269
  });
270
270
 
271
- it('renders the TextInput with characterWidth=4 and with width=two-thirds', function () {
271
+ it('renders the TextInput with characterWidth=4 and with cellWidth=two-thirds', function () {
272
272
  expect((0, _enzyme.mount)(_ref31)).toMatchSnapshot();
273
273
  });
274
274
 
275
275
  var _ref32 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
276
276
  characterWidth: 5,
277
- width: 'two-thirds'
277
+ cellWidth: 'two-thirds'
278
278
  });
279
279
 
280
- it('renders the TextInput with with characterWidth=5 with width=two-thirds', function () {
280
+ it('renders the TextInput with with characterWidth=5 with cellWidth=two-thirds', function () {
281
281
  expect((0, _enzyme.mount)(_ref32)).toMatchSnapshot();
282
282
  });
283
283
 
284
284
  var _ref33 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
285
285
  characterWidth: 20,
286
- width: 'two-thirds'
286
+ cellWidth: 'two-thirds'
287
287
  });
288
288
 
289
- it('renders the TextInput with characterWidth=20 and with width=two-thirds', function () {
289
+ it('renders the TextInput with characterWidth=20 and with cellWidth=two-thirds', function () {
290
290
  expect((0, _enzyme.mount)(_ref33)).toMatchSnapshot();
291
291
  });
292
292
 
293
293
  var _ref34 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
294
294
  characterWidth: 2,
295
- width: 'three-quarters'
295
+ cellWidth: 'three-quarters'
296
296
  });
297
297
 
298
- it('renders the TextInput with characterWidth=2 and with width=three-quarters', function () {
298
+ it('renders the TextInput with characterWidth=2 and with cellWidth=three-quarters', function () {
299
299
  expect((0, _enzyme.mount)(_ref34)).toMatchSnapshot();
300
300
  });
301
301
 
302
302
  var _ref35 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
303
303
  characterWidth: 3,
304
- width: 'three-quarters'
304
+ cellWidth: 'three-quarters'
305
305
  });
306
306
 
307
- it('renders the TextInput with characterWidth=3 and with width=three-quarters', function () {
307
+ it('renders the TextInput with characterWidth=3 and with cellWidth=three-quarters', function () {
308
308
  expect((0, _enzyme.mount)(_ref35)).toMatchSnapshot();
309
309
  });
310
310
 
311
311
  var _ref36 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
312
312
  characterWidth: 4,
313
- width: 'three-quarters'
313
+ cellWidth: 'three-quarters'
314
314
  });
315
315
 
316
- it('renders the TextInput with characterWidth=4 and with width=three-quarters', function () {
316
+ it('renders the TextInput with characterWidth=4 and with cellWidth=three-quarters', function () {
317
317
  expect((0, _enzyme.mount)(_ref36)).toMatchSnapshot();
318
318
  });
319
319
 
320
320
  var _ref37 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
321
321
  characterWidth: 5,
322
- width: 'three-quarters'
322
+ cellWidth: 'three-quarters'
323
323
  });
324
324
 
325
- it('renders the TextInput with with characterWidth=5 with width=three-quarters', function () {
325
+ it('renders the TextInput with with characterWidth=5 with cellWidth=three-quarters', function () {
326
326
  expect((0, _enzyme.mount)(_ref37)).toMatchSnapshot();
327
327
  });
328
328
 
329
329
  var _ref38 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
330
330
  characterWidth: 20,
331
- width: 'three-quarters'
331
+ cellWidth: 'three-quarters'
332
332
  });
333
333
 
334
- it('renders the TextInput with characterWidth=20 and with width=three-quarters', function () {
334
+ it('renders the TextInput with characterWidth=20 and with cellWidth=three-quarters', function () {
335
335
  expect((0, _enzyme.mount)(_ref38)).toMatchSnapshot();
336
336
  });
337
337
 
338
338
  var _ref39 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
339
339
  characterWidth: 2,
340
- width: 'full'
340
+ cellWidth: 'full'
341
341
  });
342
342
 
343
- it('renders the TextInput with characterWidth=2 and with width=full', function () {
343
+ it('renders the TextInput with characterWidth=2 and with cellWidth=full', function () {
344
344
  expect((0, _enzyme.mount)(_ref39)).toMatchSnapshot();
345
345
  });
346
346
 
347
347
  var _ref40 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
348
348
  characterWidth: 3,
349
- width: 'full'
349
+ cellWidth: 'full'
350
350
  });
351
351
 
352
- it('renders the TextInput with characterWidth=3 and with width=full', function () {
352
+ it('renders the TextInput with characterWidth=3 and with cellWidth=full', function () {
353
353
  expect((0, _enzyme.mount)(_ref40)).toMatchSnapshot();
354
354
  });
355
355
 
356
356
  var _ref41 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
357
357
  characterWidth: 4,
358
- width: 'full'
358
+ cellWidth: 'full'
359
359
  });
360
360
 
361
- it('renders the TextInput with characterWidth=4 and with width=full', function () {
361
+ it('renders the TextInput with characterWidth=4 and with cellWidth=full', function () {
362
362
  expect((0, _enzyme.mount)(_ref41)).toMatchSnapshot();
363
363
  });
364
364
 
365
365
  var _ref42 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
366
366
  characterWidth: 5,
367
- width: 'full'
367
+ cellWidth: 'full'
368
368
  });
369
369
 
370
- it('renders the TextInput with with characterWidth=5 with width=full', function () {
370
+ it('renders the TextInput with with characterWidth=5 with cellWidth=full', function () {
371
371
  expect((0, _enzyme.mount)(_ref42)).toMatchSnapshot();
372
372
  });
373
373
 
374
374
  var _ref43 = /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
375
375
  characterWidth: 20,
376
- width: 'full'
376
+ cellWidth: 'full'
377
377
  });
378
378
 
379
- it('renders the TextInput with characterWidth=20 and with width=full', function () {
379
+ it('renders the TextInput with characterWidth=20 and with cellWidth=full', function () {
380
380
  expect((0, _enzyme.mount)(_ref43)).toMatchSnapshot();
381
381
  });
@@ -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
+ });