jamespot-react-components 1.0.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 (997) hide show
  1. package/.eslintignore +80 -0
  2. package/.eslintrc.js +15 -0
  3. package/.github/pull_request_template.md +22 -0
  4. package/.github/workflows/ci.yml +62 -0
  5. package/.github/workflows/create-stable-branch.yml +80 -0
  6. package/.github/workflows/deploy-dev-branches.yml +40 -0
  7. package/.history/.eslintignore_20211116140451 +13 -0
  8. package/.history/.eslintignore_20211116140517 +80 -0
  9. package/.history/.github/workflows/ci_20211103152807.yml +50 -0
  10. package/.history/.github/workflows/ci_20211117114643.yml +50 -0
  11. package/.history/.github/workflows/ci_20211117114650.yml +55 -0
  12. package/.history/.github/workflows/ci_20211117152126.yml +55 -0
  13. package/.history/.github/workflows/ci_20211117153805.yml +58 -0
  14. package/.history/.github/workflows/ci_20211117153810.yml +58 -0
  15. package/.history/.github/workflows/ci_20211117154145.yml +59 -0
  16. package/.history/.github/workflows/ci_20211117154153.yml +59 -0
  17. package/.history/.github/workflows/ci_20211117155208.yml +58 -0
  18. package/.history/.github/workflows/ci_20211117155212.yml +59 -0
  19. package/.history/.github/workflows/ci_20211117155228.yml +59 -0
  20. package/.history/.github/workflows/ci_20211117155451.yml +59 -0
  21. package/.history/.github/workflows/ci_20211117155505.yml +59 -0
  22. package/.history/.github/workflows/ci_20211117155509.yml +59 -0
  23. package/.history/.github/workflows/ci_20211117160304.yml +59 -0
  24. package/.history/.github/workflows/ci_20211117161702.yml +59 -0
  25. package/.history/.github/workflows/ci_20211117162805.yml +59 -0
  26. package/.history/.github/workflows/ci_20211117164809.yml +60 -0
  27. package/.history/.github/workflows/ci_20211117170417.yml +60 -0
  28. package/.history/.gitignore_20211117155121 +82 -0
  29. package/.history/.husky/pre-commit_20211116154612 +4 -0
  30. package/.history/.husky/pre-commit_20211116155720 +4 -0
  31. package/.history/.prettierignore_20211103152807 +84 -0
  32. package/.history/.prettierignore_20211116140533 +80 -0
  33. package/.history/.prettierrc_20211103143655.json +11 -0
  34. package/.history/.prettierrc_20211103144104.json +10 -0
  35. package/.history/.prettierrc_20211116140542.json +11 -0
  36. package/.history/.prettierrc_20211116173732.json +10 -0
  37. package/.history/.storybook/main_20211109144835.js +22 -0
  38. package/.history/babel.config_20211116141826.js +14 -0
  39. package/.history/babel.config_20211117104141.js +15 -0
  40. package/.history/babel.config_20211117164455.js +15 -0
  41. package/.history/build/src/components/JRCHref/JRCHref.d_20211109164627.ts +20 -0
  42. package/.history/build/src/components/JRCHref/JRCHref.d_20211125144654.ts +20 -0
  43. package/.history/build/src/components/JRCHref/JRCHref.d_20211125144702.ts +20 -0
  44. package/.history/build/src/components/JRCHref/JRCHref.d_20211125144724.ts +20 -0
  45. package/.history/build/src/components/JRCHref/JRCHref.d_20211125144732.ts +20 -0
  46. package/.history/build/src/components/JRCHref/JRCHref.d_20211125144754.ts +20 -0
  47. package/.history/externals.d_20211108160127.ts +5 -0
  48. package/.history/externals.d_20211108160133.ts +5 -0
  49. package/.history/externals.d_20211108160237.ts +5 -0
  50. package/.history/externals.d_20211108160252.ts +6 -0
  51. package/.history/externals.d_20211108160343.ts +6 -0
  52. package/.history/externals.d_20211108163234.ts +5 -0
  53. package/.history/index.d_20210119091943.ts +0 -0
  54. package/.history/index.d_20210119092051.ts +4 -0
  55. package/.history/jest.config_20211112091917.js +15 -0
  56. package/.history/jest.config_20211117164520.js +16 -0
  57. package/.history/jest.setup_20210114075959.ts +3 -0
  58. package/.history/jest.setup_20210429114103.ts +1 -0
  59. package/.history/package-lock_20211109153645.json +73806 -0
  60. package/.history/package_20211103143741.json +117 -0
  61. package/.history/package_20211108155048.json +117 -0
  62. package/.history/package_20211108160557.json +117 -0
  63. package/.history/package_20211109113710.json +116 -0
  64. package/.history/package_20211109113749.json +114 -0
  65. package/.history/package_20211109113753.json +113 -0
  66. package/.history/package_20211109113758.json +111 -0
  67. package/.history/package_20211109142830.json +111 -0
  68. package/.history/package_20211109142919.json +111 -0
  69. package/.history/package_20211109145908.json +111 -0
  70. package/.history/package_20211109145937.json +111 -0
  71. package/.history/package_20211109150036.json +109 -0
  72. package/.history/package_20211109151446.json +112 -0
  73. package/.history/package_20211109151756.json +112 -0
  74. package/.history/package_20211109151802.json +112 -0
  75. package/.history/package_20211109151807.json +112 -0
  76. package/.history/package_20211109151838.json +112 -0
  77. package/.history/package_20211109153435.json +117 -0
  78. package/.history/package_20211109160825.json +117 -0
  79. package/.history/package_20211109161532.json +118 -0
  80. package/.history/package_20211109161554.json +118 -0
  81. package/.history/package_20211109161940.json +117 -0
  82. package/.history/package_20211109162020.json +118 -0
  83. package/.history/package_20211109162510.json +118 -0
  84. package/.history/package_20211109162529.json +118 -0
  85. package/.history/package_20211109162543.json +118 -0
  86. package/.history/package_20211116140927.json +115 -0
  87. package/.history/package_20211116140929.json +115 -0
  88. package/.history/package_20211116140948.json +117 -0
  89. package/.history/package_20211116140951.json +117 -0
  90. package/.history/package_20211116141010.json +117 -0
  91. package/.history/package_20211116141729.json +119 -0
  92. package/.history/package_20211116143239.json +119 -0
  93. package/.history/package_20211116155648.json +131 -0
  94. package/.history/package_20211117114725.json +132 -0
  95. package/.history/package_20211117164402.json +132 -0
  96. package/.history/package_20211117164404.json +132 -0
  97. package/.history/package_20211117164407.json +132 -0
  98. package/.history/src/assets/check_20210114075959.svg +4 -0
  99. package/.history/src/assets/check_20210511153044.svg +4 -0
  100. package/.history/src/assets/check_20210601141216.svg +4 -0
  101. package/.history/src/assets/check_20210601141237.svg +4 -0
  102. package/.history/src/assets/loader_20210114075959.svg +32 -0
  103. package/.history/src/assets/loader_20210511153051.svg +32 -0
  104. package/.history/src/assets/loader_20210511153109.svg +32 -0
  105. package/.history/src/components/Common/DashedFocusBorder_20211103152807.tsx +20 -0
  106. package/.history/src/components/Common/DashedFocusBorder_20211116141741.tsx +20 -0
  107. package/.history/src/components/Form/Input/Demo/Demo_20210427112859.tsx +0 -0
  108. package/.history/src/components/Form/Input/Demo/Demo_20210427112927.tsx +38 -0
  109. package/.history/src/components/Form/Input/Demo/Demo_20210427113127.tsx +65 -0
  110. package/.history/src/components/Form/Input/Demo/Demo_20210427113139.tsx +56 -0
  111. package/.history/src/components/Form/Input/Demo/Demo_20210427113151.tsx +55 -0
  112. package/.history/src/components/Form/Input/Demo/Demo_20210427113152.tsx +55 -0
  113. package/.history/src/components/Form/Input/Demo/Demo_20210427113157.tsx +55 -0
  114. package/.history/src/components/Form/Input/Demo/Demo_20210427113206.tsx +55 -0
  115. package/.history/src/components/Form/Input/Demo/Demo_20210427113223.tsx +54 -0
  116. package/.history/src/components/Form/Input/Demo/Demo_20210427113224.tsx +54 -0
  117. package/.history/src/components/Form/Input/Demo/Demo_20210427113228.tsx +54 -0
  118. package/.history/src/components/Form/Input/Demo/Demo_20210427113235.tsx +54 -0
  119. package/.history/src/components/Form/Input/Demo/Demo_20210427113311.tsx +54 -0
  120. package/.history/src/components/Form/Input/Demo/Demo_20210427113341.tsx +54 -0
  121. package/.history/src/components/Form/Input/Demo/Demo_20210427113735.tsx +57 -0
  122. package/.history/src/components/Form/Input/Demo/Demo_20210427113751.tsx +58 -0
  123. package/.history/src/components/Form/Input/Demo/Demo_20210427113812.tsx +60 -0
  124. package/.history/src/components/Form/Input/Demo/Demo_20210427114028.tsx +69 -0
  125. package/.history/src/components/Form/Input/Demo/Demo_20210427114251.tsx +71 -0
  126. package/.history/src/components/Form/Input/Demo/Demo_20210427114321.tsx +73 -0
  127. package/.history/src/components/Form/Input/Demo/Demo_20210427114332.tsx +73 -0
  128. package/.history/src/components/Form/Input/Demo/Demo_20210427114504.tsx +77 -0
  129. package/.history/src/components/Form/Input/Demo/Demo_20210427114532.tsx +83 -0
  130. package/.history/src/components/Form/Input/Demo/Demo_20210427114603.tsx +90 -0
  131. package/.history/src/components/Form/Input/Demo/Demo_20210427114621.tsx +89 -0
  132. package/.history/src/components/Form/Input/Demo/Demo_20210427114633.tsx +89 -0
  133. package/.history/src/components/Form/Input/Demo/Demo_20210427114646.tsx +89 -0
  134. package/.history/src/components/Form/Input/Demo/Demo_20210427114759.tsx +98 -0
  135. package/.history/src/components/Form/Input/Demo/Demo_20210427114838.tsx +98 -0
  136. package/.history/src/components/Form/Input/Demo/Demo_20210427114841.tsx +98 -0
  137. package/.history/src/components/Form/Input/Demo/Demo_20210427115036.tsx +99 -0
  138. package/.history/src/components/Form/Input/Demo/Demo_20210427115156.tsx +90 -0
  139. package/.history/src/components/Form/Input/Demo/Demo_20210427115329.tsx +99 -0
  140. package/.history/src/components/Form/Input/Demo/Demo_20210427115339.tsx +99 -0
  141. package/.history/src/components/Form/Input/Demo/Demo_20210427115443.tsx +101 -0
  142. package/.history/src/components/Form/Input/Demo/Demo_20210427115633.tsx +102 -0
  143. package/.history/src/components/Form/Input/Demo/Demo_20210427115821.tsx +102 -0
  144. package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity_20210909111158.tsx +25 -0
  145. package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity_20210909112623.tsx +27 -0
  146. package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocomplete_20210426165817.tsx +72 -0
  147. package/.history/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocomplete_20210429114237.tsx +71 -0
  148. package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160603.tsx +253 -0
  149. package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160617.tsx +253 -0
  150. package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160632.tsx +307 -0
  151. package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211019160746.tsx +307 -0
  152. package/.history/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox_20211116142837.tsx +263 -0
  153. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210309111210.tsx +86 -0
  154. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210405114706.tsx +81 -0
  155. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429114357.tsx +81 -0
  156. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429114358.tsx +81 -0
  157. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154857.tsx +81 -0
  158. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154904.tsx +97 -0
  159. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154910.tsx +97 -0
  160. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154918.tsx +99 -0
  161. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154929.tsx +103 -0
  162. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429154941.tsx +99 -0
  163. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429155002.tsx +98 -0
  164. package/.history/src/components/Form/Input/JRCFormColor/JRCFormColor_20210429155402.tsx +99 -0
  165. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210415092917.tsx +43 -0
  166. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429114401.tsx +43 -0
  167. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154559.tsx +43 -0
  168. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154606.tsx +59 -0
  169. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154624.tsx +54 -0
  170. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154643.tsx +56 -0
  171. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154717.tsx +56 -0
  172. package/.history/src/components/Form/Input/JRCFormDate/JRCFormDate_20210429154755.tsx +59 -0
  173. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210415092917.tsx +42 -0
  174. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429114419.tsx +42 -0
  175. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429114440.tsx +42 -0
  176. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429114446.tsx +42 -0
  177. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154420.tsx +42 -0
  178. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154430.tsx +58 -0
  179. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154442.tsx +60 -0
  180. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154459.tsx +55 -0
  181. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154521.tsx +57 -0
  182. package/.history/src/components/Form/Input/JRCFormDateTime/JRCDateTime_20210429154736.tsx +58 -0
  183. package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211116142816.tsx +1095 -0
  184. package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211116142819.tsx +1095 -0
  185. package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211116142825.tsx +1095 -0
  186. package/.history/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime_20211117094739.tsx +1095 -0
  187. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210114075959.tsx +40 -0
  188. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429114458.tsx +40 -0
  189. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154308.tsx +33 -0
  190. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154318.tsx +51 -0
  191. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154329.tsx +53 -0
  192. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154337.tsx +56 -0
  193. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154348.tsx +56 -0
  194. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154359.tsx +56 -0
  195. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154401.tsx +56 -0
  196. package/.history/src/components/Form/Input/JRCFormEmail/JRCFormEmail_20210429154403.tsx +56 -0
  197. package/.history/src/components/Form/Input/JRCFormFieldRender_20210114075959.tsx +97 -0
  198. package/.history/src/components/Form/Input/JRCFormFieldRender_20210405114648.tsx +97 -0
  199. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210114075959.tsx +11 -0
  200. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429114512.tsx +11 -0
  201. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154111.tsx +13 -0
  202. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154126.tsx +13 -0
  203. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154142.tsx +14 -0
  204. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154146.tsx +15 -0
  205. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154155.tsx +15 -0
  206. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154158.tsx +20 -0
  207. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile.stories_20210429154225.tsx +20 -0
  208. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211116141848.tsx +149 -0
  209. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211116141920.tsx +148 -0
  210. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211116141935.tsx +148 -0
  211. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211117094122.tsx +148 -0
  212. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211117094131.tsx +148 -0
  213. package/.history/src/components/Form/Input/JRCFormFile/JRCFormFile_20211117094147.tsx +149 -0
  214. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210114075959.tsx +42 -0
  215. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429114516.tsx +42 -0
  216. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429153918.tsx +35 -0
  217. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429153924.tsx +53 -0
  218. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429153959.tsx +55 -0
  219. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429154029.tsx +58 -0
  220. package/.history/src/components/Form/Input/JRCFormNumber/JRCFormNumber_20210429154035.tsx +58 -0
  221. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio.stories_20210114075959.tsx +31 -0
  222. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio.stories_20210412103504.tsx +45 -0
  223. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429114520.tsx +124 -0
  224. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153726.tsx +124 -0
  225. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153733.tsx +124 -0
  226. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153800.tsx +136 -0
  227. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153834.tsx +138 -0
  228. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153837.tsx +137 -0
  229. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210429153848.tsx +137 -0
  230. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210511171834.tsx +124 -0
  231. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210511171842.tsx +124 -0
  232. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150404.tsx +124 -0
  233. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150412.tsx +124 -0
  234. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150815.tsx +125 -0
  235. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150824.tsx +125 -0
  236. package/.history/src/components/Form/Input/JRCFormRadio/JRCFormRadio_20210518150834.tsx +125 -0
  237. package/.history/src/components/Form/Input/JRCFormRange/JRCFormRange_20211116141948.tsx +106 -0
  238. package/.history/src/components/Form/Input/JRCFormRange/JRCFormRange_20211116141950.tsx +106 -0
  239. package/.history/src/components/Form/Input/JRCFormSelect/JRCFormSelect_20211116142012.tsx +350 -0
  240. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210114075959.tsx +38 -0
  241. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429114541.tsx +38 -0
  242. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152714.tsx +38 -0
  243. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152735.tsx +53 -0
  244. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152747.tsx +48 -0
  245. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152757.tsx +49 -0
  246. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152806.tsx +51 -0
  247. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152816.tsx +54 -0
  248. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152834.tsx +54 -0
  249. package/.history/src/components/Form/Input/JRCFormText/JRCFormText_20210429152841.tsx +54 -0
  250. package/.history/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor_20211116142024.tsx +35 -0
  251. package/.history/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea_20211116142028.tsx +65 -0
  252. package/.history/src/components/Form/Input/JRCStyledInput_20210309111210.tsx +94 -0
  253. package/.history/src/components/Form/Input/JRCStyledInput_20210412103822.tsx +98 -0
  254. package/.history/src/components/Form/Input/JRCStyledInput_20210412103824.tsx +97 -0
  255. package/.history/src/components/Form/Input/ReduxFormControls_20211116142058.ts +141 -0
  256. package/.history/src/components/Form/Input/ReduxFormControls_20211116142800.ts +141 -0
  257. package/.history/src/components/JRCAlert/JRCArlert.stories_20211103152807.tsx +60 -0
  258. package/.history/src/components/JRCAlert/JRCArlert.stories_20211116142119.tsx +61 -0
  259. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211103152807.tsx +28 -0
  260. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211109115138.tsx +27 -0
  261. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211109115145.tsx +26 -0
  262. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211109115204.tsx +28 -0
  263. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142132.tsx +27 -0
  264. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142134.tsx +26 -0
  265. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142151.tsx +28 -0
  266. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142200.tsx +29 -0
  267. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142204.tsx +28 -0
  268. package/.history/src/components/JRCAvatar/JRCAvatar.stories_20211116142212.tsx +29 -0
  269. package/.history/src/components/JRCAvatar/JRCAvatar.test_20211103152807.tsx +21 -0
  270. package/.history/src/components/JRCAvatar/JRCAvatar.test_20211116142226.tsx +22 -0
  271. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104018.tsx +59 -0
  272. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104101.tsx +60 -0
  273. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104122.tsx +60 -0
  274. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104143.tsx +60 -0
  275. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104218.tsx +62 -0
  276. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104246.tsx +62 -0
  277. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104354.tsx +60 -0
  278. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104416.tsx +60 -0
  279. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104419.tsx +60 -0
  280. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104701.tsx +62 -0
  281. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104713.tsx +63 -0
  282. package/.history/src/components/JRCAvatar/JRCAvatar_20211215104957.tsx +66 -0
  283. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105005.tsx +66 -0
  284. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105009.tsx +65 -0
  285. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105026.tsx +65 -0
  286. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105309.tsx +61 -0
  287. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105312.tsx +64 -0
  288. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105315.tsx +64 -0
  289. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105433.tsx +64 -0
  290. package/.history/src/components/JRCAvatar/JRCAvatar_20211215105442.tsx +62 -0
  291. package/.history/src/components/JRCAvatar/JRCAvatar_20211215110444.tsx +63 -0
  292. package/.history/src/components/JRCAvatar/JRCAvatar_20211215111145.tsx +64 -0
  293. package/.history/src/components/JRCAvatar/JRCAvatar_20211215111233.tsx +65 -0
  294. package/.history/src/components/JRCAvatar/JRCAvatar_20211215111240.tsx +64 -0
  295. package/.history/src/components/JRCAvatar/JRCAvatar_20211220162840.tsx +62 -0
  296. package/.history/src/components/JRCAvatar/JRCAvatar_20211220162848.tsx +62 -0
  297. package/.history/src/components/JRCAvatar/JRCAvatar_20211220164211.tsx +62 -0
  298. package/.history/src/components/JRCAvatar/JRCAvatar_20211220164215.tsx +62 -0
  299. package/.history/src/components/JRCAvatar/JRCAvatar_20211221115746.tsx +64 -0
  300. package/.history/src/components/JRCAvatar/JRCAvatar_20211221115750.tsx +64 -0
  301. package/.history/src/components/JRCAvatar/JRCAvatar_20211221120044.tsx +64 -0
  302. package/.history/src/components/JRCAvatar/JRCAvatar_20211221120047.tsx +64 -0
  303. package/.history/src/components/JRCAvatar/JRCAvatar_20211221120048.tsx +63 -0
  304. package/.history/src/components/JRCAvatar/JRCAvatar_20211221120052.tsx +63 -0
  305. package/.history/src/components/JRCAvatar/JRCAvatar_20211221120055.tsx +62 -0
  306. package/.history/src/components/JRCAvatar/JRCAvatar_20211221120153.tsx +62 -0
  307. package/.history/src/components/JRCButton/JRCButton.stories_20210114075959.tsx +65 -0
  308. package/.history/src/components/JRCButton/JRCButton.stories_20210324153346.tsx +78 -0
  309. package/.history/src/components/JRCButton/JRCButton_20211103141623.tsx +135 -0
  310. package/.history/src/components/JRCButton/JRCButton_20211116142244.tsx +117 -0
  311. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155338.tsx +36 -0
  312. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155438.tsx +36 -0
  313. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155441.tsx +37 -0
  314. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155446.tsx +37 -0
  315. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155459.tsx +19 -0
  316. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412155511.tsx +17 -0
  317. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161017.tsx +18 -0
  318. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161020.tsx +16 -0
  319. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161032.tsx +16 -0
  320. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161148.tsx +16 -0
  321. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161438.tsx +37 -0
  322. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161447.tsx +37 -0
  323. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161456.tsx +41 -0
  324. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161507.tsx +42 -0
  325. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161516.tsx +43 -0
  326. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412161820.tsx +43 -0
  327. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164337.tsx +45 -0
  328. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164427.tsx +45 -0
  329. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164441.tsx +45 -0
  330. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164446.tsx +45 -0
  331. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164501.tsx +47 -0
  332. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164510.tsx +52 -0
  333. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164528.tsx +76 -0
  334. package/.history/src/components/JRCCarousel/JRCCarousel.stories_20210412164607.tsx +77 -0
  335. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155318.tsx +0 -0
  336. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155347.tsx +0 -0
  337. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155413.tsx +6 -0
  338. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155414.tsx +6 -0
  339. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155428.tsx +4 -0
  340. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155603.tsx +7 -0
  341. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155631.tsx +9 -0
  342. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155633.tsx +16 -0
  343. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155635.tsx +17 -0
  344. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155649.tsx +41 -0
  345. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155703.tsx +42 -0
  346. package/.history/src/components/JRCCarousel/JRCCarousel_20210412155728.tsx +42 -0
  347. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160204.tsx +42 -0
  348. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160431.tsx +42 -0
  349. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160437.tsx +42 -0
  350. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160801.tsx +46 -0
  351. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160814.tsx +46 -0
  352. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160938.tsx +46 -0
  353. package/.history/src/components/JRCCarousel/JRCCarousel_20210412160947.tsx +47 -0
  354. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161128.tsx +47 -0
  355. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161130.tsx +47 -0
  356. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161135.tsx +47 -0
  357. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161208.tsx +48 -0
  358. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161228.tsx +49 -0
  359. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161331.tsx +55 -0
  360. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161347.tsx +55 -0
  361. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161407.tsx +55 -0
  362. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161410.tsx +55 -0
  363. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161418.tsx +55 -0
  364. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161426.tsx +36 -0
  365. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161539.tsx +30 -0
  366. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161544.tsx +29 -0
  367. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161848.tsx +41 -0
  368. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161859.tsx +50 -0
  369. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161913.tsx +50 -0
  370. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161916.tsx +52 -0
  371. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161938.tsx +53 -0
  372. package/.history/src/components/JRCCarousel/JRCCarousel_20210412161947.tsx +42 -0
  373. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162119.tsx +39 -0
  374. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162128.tsx +40 -0
  375. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162141.tsx +42 -0
  376. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162145.tsx +42 -0
  377. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162154.tsx +42 -0
  378. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162238.tsx +42 -0
  379. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162406.tsx +42 -0
  380. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162457.tsx +43 -0
  381. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162500.tsx +43 -0
  382. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162504.tsx +43 -0
  383. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162612.tsx +43 -0
  384. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162650.tsx +54 -0
  385. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162705.tsx +54 -0
  386. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162819.tsx +55 -0
  387. package/.history/src/components/JRCCarousel/JRCCarousel_20210412162845.tsx +55 -0
  388. package/.history/src/components/JRCCarousel/JRCCarousel_20210412163202.tsx +57 -0
  389. package/.history/src/components/JRCCarousel/JRCCarousel_20210412163241.tsx +55 -0
  390. package/.history/src/components/JRCDropDown/JRCDropDown.stories_20211103152807.tsx +28 -0
  391. package/.history/src/components/JRCDropDown/JRCDropDown.stories_20211116142250.tsx +26 -0
  392. package/.history/src/components/JRCDropDown/JRCDropDown.stories_20211116142251.tsx +25 -0
  393. package/.history/src/components/JRCDropDown/JRCDropDown_20210629085002.tsx +155 -0
  394. package/.history/src/components/JRCDropDown/JRCDropDown_20211103142200.tsx +157 -0
  395. package/.history/src/components/JRCDropDown/JRCDropDown_20211103142204.tsx +157 -0
  396. package/.history/src/components/JRCDropDown/JRCDropDown_20211103142213.tsx +157 -0
  397. package/.history/src/components/JRCDropDown/JRCDropDown_20211103142216.tsx +157 -0
  398. package/.history/src/components/JRCError/JRCError.stories_20210406110213.tsx +0 -0
  399. package/.history/src/components/JRCError/JRCError.stories_20210406110227.tsx +18 -0
  400. package/.history/src/components/JRCError/JRCError.stories_20210406110234.tsx +16 -0
  401. package/.history/src/components/JRCError/JRCError.stories_20210406110245.tsx +16 -0
  402. package/.history/src/components/JRCError/JRCError.stories_20210406110305.tsx +18 -0
  403. package/.history/src/components/JRCError/JRCError.stories_20210406110310.tsx +15 -0
  404. package/.history/src/components/JRCError/JRCError.stories_20210406110337.tsx +15 -0
  405. package/.history/src/components/JRCError/JRCError.stories_20210406110354.tsx +15 -0
  406. package/.history/src/components/JRCError/JRCError.stories_20210406110413.tsx +13 -0
  407. package/.history/src/components/JRCError/JRCError.stories_20210406110418.tsx +13 -0
  408. package/.history/src/components/JRCError/JRCError.stories_20210406110708.tsx +14 -0
  409. package/.history/src/components/JRCError/JRCError.stories_20210406110715.tsx +13 -0
  410. package/.history/src/components/JRCError/JRCError.stories_20210406110722.tsx +13 -0
  411. package/.history/src/components/JRCError/JRCError.stories_20210406110736.tsx +13 -0
  412. package/.history/src/components/JRCError/JRCError.stories_20210406110740.tsx +13 -0
  413. package/.history/src/components/JRCError/JRCError.stories_20210406110753.tsx +15 -0
  414. package/.history/src/components/JRCError/JRCError.stories_20210406110757.tsx +16 -0
  415. package/.history/src/components/JRCError/JRCError.stories_20210406110813.tsx +16 -0
  416. package/.history/src/components/JRCError/JRCError.stories_20210406110818.tsx +15 -0
  417. package/.history/src/components/JRCError/JRCError_20210406110115.tsx +0 -0
  418. package/.history/src/components/JRCError/JRCError_20210406110136.tsx +3 -0
  419. package/.history/src/components/JRCError/JRCError_20210406110148.tsx +5 -0
  420. package/.history/src/components/JRCError/JRCError_20210406110154.tsx +5 -0
  421. package/.history/src/components/JRCError/JRCError_20210406110322.tsx +5 -0
  422. package/.history/src/components/JRCError/JRCError_20210406110459.tsx +5 -0
  423. package/.history/src/components/JRCError/JRCError_20210406110521.tsx +9 -0
  424. package/.history/src/components/JRCError/JRCError_20210406110526.tsx +8 -0
  425. package/.history/src/components/JRCError/JRCError_20210406110540.tsx +10 -0
  426. package/.history/src/components/JRCError/JRCError_20210406110544.tsx +10 -0
  427. package/.history/src/components/JRCError/JRCError_20210406110610.tsx +14 -0
  428. package/.history/src/components/JRCError/JRCError_20210406110613.tsx +14 -0
  429. package/.history/src/components/JRCError/JRCError_20210406110624.tsx +15 -0
  430. package/.history/src/components/JRCError/JRCError_20210406110731.tsx +15 -0
  431. package/.history/src/components/JRCHref/JRCHref.stories_20211116142303.tsx +29 -0
  432. package/.history/src/components/JRCHref/JRCHref_20210630101506.tsx +32 -0
  433. package/.history/src/components/JRCHref/JRCHref_20210630101558.tsx +32 -0
  434. package/.history/src/components/JRCHref/JRCHref_20210630101601.tsx +32 -0
  435. package/.history/src/components/JRCHref/JRCHref_20210630101616.tsx +32 -0
  436. package/.history/src/components/JRCHref/JRCHref_20210630101625.tsx +31 -0
  437. package/.history/src/components/JRCHref/JRCHref_20210630101634.tsx +31 -0
  438. package/.history/src/components/JRCHref/JRCHref_20210630101645.tsx +30 -0
  439. package/.history/src/components/JRCHref/JRCHref_20210630101738.tsx +29 -0
  440. package/.history/src/components/JRCHref/JRCHref_20210630101742.tsx +28 -0
  441. package/.history/src/components/JRCIcon/JRCIcon.stories_20210114075959.tsx +1045 -0
  442. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330160522.tsx +1049 -0
  443. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330160557.tsx +1049 -0
  444. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165104.tsx +1000 -0
  445. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165154.tsx +1002 -0
  446. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165225.tsx +1167 -0
  447. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165243.tsx +1167 -0
  448. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165244.tsx +1167 -0
  449. package/.history/src/components/JRCIcon/JRCIcon.stories_20210330165340.tsx +1020 -0
  450. package/.history/src/components/JRCIconButton/JRCIconButton_20211102105335.tsx +86 -0
  451. package/.history/src/components/JRCIconButton/JRCIconButton_20211103141204.tsx +97 -0
  452. package/.history/src/components/JRCIconButton/JRCIconButton_20211103141514.tsx +97 -0
  453. package/.history/src/components/JRCIconButton/JRCIconButton_20211103141535.tsx +97 -0
  454. package/.history/src/components/JRCIconButton/JRCIconButton_20211103141607.tsx +97 -0
  455. package/.history/src/components/JRCImg/JRCImg_20211103152807.tsx +57 -0
  456. package/.history/src/components/JRCImg/JRCImg_20211215104339.tsx +58 -0
  457. package/.history/src/components/JRCImg/JRCImg_20211215104433.tsx +58 -0
  458. package/.history/src/components/JRCList/JRCListMockData.stories_20211116141848.tsx +118 -0
  459. package/.history/src/components/JRCList/JRCListMockData.stories_20211116142710.tsx +119 -0
  460. package/.history/src/components/JRCList/JRCList_20211116141848.tsx +180 -0
  461. package/.history/src/components/JRCList/JRCList_20211116142725.tsx +172 -0
  462. package/.history/src/components/JRCList/JRCList_20211116142728.tsx +172 -0
  463. package/.history/src/components/JRCList/JRCList_20211116142730.tsx +171 -0
  464. package/.history/src/components/JRCList/JRCList_20211116142734.tsx +171 -0
  465. package/.history/src/components/JRCList/JRCList_20211116142738.tsx +171 -0
  466. package/.history/src/components/JRCList/JRCList_20211116142744.tsx +171 -0
  467. package/.history/src/components/JRCList/JRCList_20211116142747.tsx +172 -0
  468. package/.history/src/components/JRCList/JRCList_20211116142748.tsx +171 -0
  469. package/.history/src/components/JRCMenu/JRCMenu.stories_20211103152807.tsx +28 -0
  470. package/.history/src/components/JRCMenu/JRCMenu.stories_20211116142657.tsx +29 -0
  471. package/.history/src/components/JRCMenu/JRCMenu_20211103142113.tsx +88 -0
  472. package/.history/src/components/JRCMenu/JRCMenu_20211103142232.tsx +88 -0
  473. package/.history/src/components/JRCModal/JRCModal_20211103142136.tsx +142 -0
  474. package/.history/src/components/JRCModal/JRCModal_20211103142246.tsx +142 -0
  475. package/.history/src/components/JRCModalImg/JRCModalImg_20210824103034.tsx +148 -0
  476. package/.history/src/components/JRCModalImg/JRCModalImg_20211103142306.tsx +159 -0
  477. package/.history/src/components/JRCPagination/JRCPagination.stories_20211116142641.tsx +65 -0
  478. package/.history/src/components/JRCPagination/JRCPagination.stories_20211116142646.tsx +66 -0
  479. package/.history/src/components/JRCPagination/JRCPagination_20211103142342.tsx +219 -0
  480. package/.history/src/components/JRCTag/JRCTag_20211116142631.tsx +149 -0
  481. package/.history/src/components/JRCThemeProvider/theme-reset_20210615082115.css +254 -0
  482. package/.history/src/components/JRCThemeProvider/theme-reset_20210615143930.css +253 -0
  483. package/.history/src/components/JRCTooltip/JRCTooltip.stories_20211103143919.tsx +85 -0
  484. package/.history/src/components/JRCTooltip/JRCTooltip.stories_20211103144205.tsx +85 -0
  485. package/.history/src/components/JRCTooltip/JRCTooltip.stories_20211116142619.tsx +86 -0
  486. package/.history/src/components/JRCTypography/JRCTypography.test_20211103152807.tsx +43 -0
  487. package/.history/src/components/JRCTypography/JRCTypography.test_20211116142608.tsx +43 -0
  488. package/.history/src/hooks/UseDidMountEffect_20211103152807.tsx +12 -0
  489. package/.history/src/hooks/UseDidMountEffect_20211116142601.tsx +12 -0
  490. package/.history/src/index_20210330171346.tsx +145 -0
  491. package/.history/src/index_20210330171430.tsx +150 -0
  492. package/.history/src/index_20210406174244.tsx +151 -0
  493. package/.history/src/index_20210406174248.tsx +151 -0
  494. package/.history/src/index_20210406174255.tsx +152 -0
  495. package/.history/src/index_20210406174317.tsx +152 -0
  496. package/.history/src/index_20210406174329.tsx +153 -0
  497. package/.history/src/index_20210412153458.tsx +155 -0
  498. package/.history/src/index_20210412153503.tsx +155 -0
  499. package/.history/src/index_20210427113335.tsx +162 -0
  500. package/.history/src/index_20210427113346.tsx +162 -0
  501. package/.history/src/index_20210427113356.tsx +163 -0
  502. package/.history/src/jest/svgTransform_20211103152807.js +9 -0
  503. package/.history/src/jest/svgTransform_20211117164503.js +10 -0
  504. package/.history/src/storybook/StorybookContainer/StorybookContainer_20210114075959.scss +22 -0
  505. package/.history/src/storybook/StorybookContainer/StorybookContainer_20210330170040.scss +23 -0
  506. package/.history/src/storybook/decorators_20210114075959.tsx +17 -0
  507. package/.history/src/storybook/decorators_20210430082612.tsx +17 -0
  508. package/.history/src/storybook/decorators_20210430082629.tsx +13 -0
  509. package/.history/src/storybook/decorators_20210430082644.tsx +13 -0
  510. package/.history/src/styles/theme_20211123150650.tsx +167 -0
  511. package/.history/src/styles/theme_20211123150708.tsx +168 -0
  512. package/.history/src/styles/theme_20211123150807.tsx +168 -0
  513. package/.history/src/styles/theme_20211123150905.tsx +180 -0
  514. package/.history/src/styles/theme_20211123150921.tsx +175 -0
  515. package/.history/src/styles/theme_20211123150928.tsx +179 -0
  516. package/.history/src/styles/theme_20211123151003.tsx +178 -0
  517. package/.history/src/styles/theme_20211123151005.tsx +178 -0
  518. package/.history/src/styles/theme_20211123151037.tsx +177 -0
  519. package/.history/src/styles/theme_20211123151145.tsx +179 -0
  520. package/.history/src/styles/theme_20211123151303.tsx +179 -0
  521. package/.history/src/styles/theme_20211123151327.tsx +179 -0
  522. package/.history/src/styles/theme_20211123151413.tsx +170 -0
  523. package/.history/src/styles/theme_20211123151416.tsx +169 -0
  524. package/.history/src/styles/theme_20211123151438.tsx +178 -0
  525. package/.history/src/styles/theme_20211123151505.tsx +169 -0
  526. package/.history/src/styles/theme_20211123151654.tsx +179 -0
  527. package/.history/src/styles/theme_20211123151847.tsx +177 -0
  528. package/.history/src/styles/theme_20211123151924.tsx +173 -0
  529. package/.history/src/styles/theme_20211123151946.tsx +173 -0
  530. package/.history/src/styles/theme_20211123151951.tsx +175 -0
  531. package/.history/src/styles/theme_20211123151959.tsx +175 -0
  532. package/.history/src/styles/theme_20211123153945.tsx +173 -0
  533. package/.history/src/styles/theme_20211123153953.tsx +175 -0
  534. package/.history/src/styles/theme_20211123154113.tsx +175 -0
  535. package/.history/src/styles/theme_20211125142741.tsx +166 -0
  536. package/.history/src/styles/utils_20211116141848.tsx +220 -0
  537. package/.history/src/styles/utils_20211116142330.tsx +220 -0
  538. package/.history/src/styles/utils_20211116142340.tsx +220 -0
  539. package/.history/src/styles/utils_20211116142354.tsx +221 -0
  540. package/.history/src/styles/utils_20211116142407.tsx +222 -0
  541. package/.history/src/types/react-table-config.d_20211103152807.ts +128 -0
  542. package/.history/src/types/react-table-config.d_20211116142449.ts +129 -0
  543. package/.history/src/types/react-table-config.d_20211116142537.ts +127 -0
  544. package/.history/src/types/react-table-config.d_20211116142544.ts +124 -0
  545. package/.history/src/types/react-table-config.d_20211116142551.ts +122 -0
  546. package/.history/src/types/react-table-config.d_20211116142914.ts +123 -0
  547. package/.history/src/types/react-table-config.d_20211116142918.ts +122 -0
  548. package/.history/src/types/react-table-config.d_20211116142923.ts +121 -0
  549. package/.history/src/types/react-table-config.d_20211116142926.ts +120 -0
  550. package/.history/src/types/react-table-config.d_20211116142929.ts +119 -0
  551. package/.history/src/types/react-table-config.d_20211116142931.ts +118 -0
  552. package/.history/src/types/react-table-config.d_20211116142934.ts +117 -0
  553. package/.history/src/types/react-table-config.d_20211116142935.ts +116 -0
  554. package/.history/src/types/react-table-config.d_20211116142938.ts +115 -0
  555. package/.history/src/types/react-table-config.d_20211116142943.ts +114 -0
  556. package/.history/src/types/react-table-config.d_20211116143050.ts +123 -0
  557. package/.history/src/utils/test-utils_20211103152807.tsx +40 -0
  558. package/.history/src/utils/test-utils_20211116142526.tsx +40 -0
  559. package/.history/src/utils/test-utils_20211116143351.tsx +40 -0
  560. package/.history/src/utils/test-utils_20211117095711.tsx +40 -0
  561. package/.history/src/utils/test-utils_20211117095720.tsx +41 -0
  562. package/.history/tsconfig_20210929171235.json +16 -0
  563. package/.history/tsconfig_20210929171551.json +16 -0
  564. package/.history/tsconfig_20210929171715.json +17 -0
  565. package/.history/tsconfig_20210929171832.json +17 -0
  566. package/.history/webpack.config_20211109143806.js +70 -0
  567. package/.history/webpack.config_20211109144159.js +66 -0
  568. package/.history/webpack.config_20211109144211.js +67 -0
  569. package/.history/webpack.config_20211109144446.js +67 -0
  570. package/.history/webpack.config_20211109144537.js +70 -0
  571. package/.history/webpack.config_20211109144549.js +70 -0
  572. package/.history/webpack.config_20211109153132.js +69 -0
  573. package/.history/webpack.config_20211109153209.js +71 -0
  574. package/.history/webpack.config_20211109153224.js +72 -0
  575. package/.history/webpack.config_20211109162125.js +72 -0
  576. package/.history/webpack.config_20211117164435.js +69 -0
  577. package/.history/webpack.config_20211117164440.js +70 -0
  578. package/.husky/pre-commit +4 -0
  579. package/.prettierignore +80 -0
  580. package/.prettierrc.json +11 -0
  581. package/.storybook/StorybookContainer/StorybookContainer.css +9 -0
  582. package/.storybook/StorybookContainer/StorybookContainer.tsx +39 -0
  583. package/.storybook/assets/css/font-awesome/fonts/FontAwesome.otf +0 -0
  584. package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  585. package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
  586. package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  587. package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  588. package/.storybook/assets/css/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  589. package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.eot +0 -0
  590. package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.json +4629 -0
  591. package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.svg +216 -0
  592. package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.ttf +0 -0
  593. package/.storybook/assets/css/fonts/fontSpot/fonts/fontSpot.woff +0 -0
  594. package/.storybook/assets/imagecache/120x120/user/1234.png +0 -0
  595. package/.storybook/assets/imagecache/160x160/user/1234.png +0 -0
  596. package/.storybook/assets/imagecache/200x200/user/1234.png +0 -0
  597. package/.storybook/assets/imagecache/24x24/user/1234.png +0 -0
  598. package/.storybook/assets/imagecache/32x32/user/1234.png +0 -0
  599. package/.storybook/assets/imagecache/40x40/user/1234.png +0 -0
  600. package/.storybook/assets/imagecache/48x48/user/11.png +0 -0
  601. package/.storybook/assets/imagecache/48x48/user/12.png +0 -0
  602. package/.storybook/assets/imagecache/48x48/user/1234.png +0 -0
  603. package/.storybook/assets/imagecache/48x48/user/2.png +0 -0
  604. package/.storybook/assets/imagecache/48x48/user/20.png +0 -0
  605. package/.storybook/assets/imagecache/48x48/user/23.png +0 -0
  606. package/.storybook/assets/imagecache/48x48/user/25.png +0 -0
  607. package/.storybook/assets/imagecache/48x48/user/8.png +0 -0
  608. package/.storybook/assets/imagecache/64x64/user/1234.png +0 -0
  609. package/.storybook/assets/imagecache/80x80/user/1234.png +0 -0
  610. package/.storybook/assets/imagecache/fitx700/fileArticle/245.png +0 -0
  611. package/.storybook/main.js +9 -0
  612. package/.storybook/preview-head.html +8 -0
  613. package/.storybook/preview.js +21 -0
  614. package/.storybook/webpack.config.js +25 -0
  615. package/.vscode/settings.json +9 -0
  616. package/README.md +58 -0
  617. package/babel.config.js +15 -0
  618. package/build/assets/check.e04c3374d2c43bd03d5c52b37639d90c.svg +4 -0
  619. package/build/assets/x.609ccec1e6c6c10c412a1ab325258b42.svg +1 -0
  620. package/build/jamespot-react-components.js +1385 -0
  621. package/build/jamespot-react-components.js.LICENSE.txt +81 -0
  622. package/build/jamespot-react-components.js.map +1 -0
  623. package/build/jest.setup.d.ts +1 -0
  624. package/build/src/components/Common/DashedFocusBorder.d.ts +7 -0
  625. package/build/src/components/Common/JRCConditionalWrapper.d.ts +8 -0
  626. package/build/src/components/Form/Common/ClickAwayListener.d.ts +14 -0
  627. package/build/src/components/Form/Common/FormDescription.d.ts +6 -0
  628. package/build/src/components/Form/Common/FormHelper.d.ts +13 -0
  629. package/build/src/components/Form/Common/FormLabel.d.ts +16 -0
  630. package/build/src/components/Form/Common/FormMessageFeedback.d.ts +17 -0
  631. package/build/src/components/Form/Common/types.d.ts +28 -0
  632. package/build/src/components/Form/Input/Common/JRCFormErrors.d.ts +10 -0
  633. package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +3 -0
  634. package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +44 -0
  635. package/build/src/components/Form/Input/Common/useFormControls.d.ts +42 -0
  636. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.d.ts +13 -0
  637. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.stories.d.ts +4 -0
  638. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.d.ts +9 -0
  639. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.stories.d.ts +4 -0
  640. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.d.ts +12 -0
  641. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.stories.d.ts +4 -0
  642. package/build/src/components/Form/Input/JRCFormCheckbox/JRCCheckbox.d.ts +4 -0
  643. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.d.ts +17 -0
  644. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.stories.d.ts +6 -0
  645. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +13 -0
  646. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +55 -0
  647. package/build/src/components/Form/Input/JRCFormCheckbox/JRCInputCheckbox.d.ts +36 -0
  648. package/build/src/components/Form/Input/JRCFormCheckbox/JRCInputCheckbox.stories.d.ts +6 -0
  649. package/build/src/components/Form/Input/JRCFormCheckbox/JRCRadio.d.ts +4 -0
  650. package/build/src/components/Form/Input/JRCFormCheckbox/JRCToggle.d.ts +2 -0
  651. package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.d.ts +8 -0
  652. package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.stories.d.ts +5 -0
  653. package/build/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.d.ts +35 -0
  654. package/build/src/components/Form/Input/JRCFormDateTime/JRCFormInputDateTime.stories.d.ts +5 -0
  655. package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.d.ts +8 -0
  656. package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.stories.d.ts +5 -0
  657. package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.d.ts +10 -0
  658. package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.stories.d.ts +7 -0
  659. package/build/src/components/Form/Input/JRCFormFieldRender.d.ts +69 -0
  660. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +23 -0
  661. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.stories.d.ts +6 -0
  662. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.d.ts +7 -0
  663. package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.d.ts +8 -0
  664. package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.stories.d.ts +5 -0
  665. package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.d.ts +14 -0
  666. package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.stories.d.ts +5 -0
  667. package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.d.ts +5 -0
  668. package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.d.ts +7 -0
  669. package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +20 -0
  670. package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.stories.d.ts +5 -0
  671. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.d.ts +73 -0
  672. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.stories.d.ts +18 -0
  673. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.d.ts +10 -0
  674. package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.d.ts +5 -0
  675. package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.d.ts +7 -0
  676. package/build/src/components/Form/Input/JRCFormText/JRCFormText.d.ts +8 -0
  677. package/build/src/components/Form/Input/JRCFormText/JRCFormText.stories.d.ts +5 -0
  678. package/build/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.d.ts +10 -0
  679. package/build/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.stories.d.ts +5 -0
  680. package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.d.ts +24 -0
  681. package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.stories.d.ts +5 -0
  682. package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.d.ts +8 -0
  683. package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.stories.d.ts +5 -0
  684. package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +11 -0
  685. package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +5 -0
  686. package/build/src/components/Form/Input/JRCSelect/JRCAutocomplete.stories.d.ts +10 -0
  687. package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +6 -0
  688. package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +13 -0
  689. package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +10 -0
  690. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +4 -0
  691. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +12 -0
  692. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +21 -0
  693. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +44 -0
  694. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.utils.d.ts +47 -0
  695. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +11 -0
  696. package/build/src/components/Form/Input/JRCStyledInput.d.ts +26 -0
  697. package/build/src/components/Form/Input/ReduxFormControls.d.ts +18 -0
  698. package/build/src/components/Form/Input/temporary.types.d.ts +20 -0
  699. package/build/src/components/JRCAlert/JRCAlert.d.ts +19 -0
  700. package/build/src/components/JRCAlert/JRCAlert.stories.d.ts +8 -0
  701. package/build/src/components/JRCAppHeader/JRCAppHeader.d.ts +3 -0
  702. package/build/src/components/JRCAppHeader/JRCAppHeader.stories.d.ts +5 -0
  703. package/build/src/components/JRCAppHeader/JRCAppHeader.styles.d.ts +1 -0
  704. package/build/src/components/JRCAppHeader/JRCAppHeader.types.d.ts +6 -0
  705. package/build/src/components/JRCAvatar/JRCAvatar.d.ts +29 -0
  706. package/build/src/components/JRCAvatar/JRCAvatar.stories.d.ts +5 -0
  707. package/build/src/components/JRCAvatar/JRCAvatar.test.d.ts +1 -0
  708. package/build/src/components/JRCButton/JRCButton.d.ts +41 -0
  709. package/build/src/components/JRCButton/JRCButton.stories.d.ts +9 -0
  710. package/build/src/components/JRCButton/JRCButton.test.d.ts +1 -0
  711. package/build/src/components/JRCButton/JRCButtonConfig.d.ts +150 -0
  712. package/build/src/components/JRCButton/JRCValidationButton.d.ts +12 -0
  713. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.d.ts +32 -0
  714. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.stories.d.ts +8 -0
  715. package/build/src/components/JRCCard/JRCCard.d.ts +9 -0
  716. package/build/src/components/JRCCard/JRCCard.stories.d.ts +5 -0
  717. package/build/src/components/JRCColumnCenter/JRCColumnCenter.d.ts +10 -0
  718. package/build/src/components/JRCColumnCenterTitle/JRCColumnCenterTitle.d.ts +12 -0
  719. package/build/src/components/JRCColumnLeft/JRCColumnLeft.d.ts +10 -0
  720. package/build/src/components/JRCColumnRight/JRCColumnRight.d.ts +10 -0
  721. package/build/src/components/JRCDate/JRCDate.d.ts +5 -0
  722. package/build/src/components/JRCDate/JRCDate.stories.d.ts +9 -0
  723. package/build/src/components/JRCDropDown/JRCDropDown.d.ts +7 -0
  724. package/build/src/components/JRCDropDown/JRCDropDown.stories.d.ts +5 -0
  725. package/build/src/components/JRCGrid/JRCGrid.d.ts +12 -0
  726. package/build/src/components/JRCGrid/JRCGrid.stories.d.ts +9 -0
  727. package/build/src/components/JRCHref/JRCHref.d.ts +21 -0
  728. package/build/src/components/JRCHref/JRCHref.stories.d.ts +7 -0
  729. package/build/src/components/JRCIcon/JRCIcon.d.ts +22 -0
  730. package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +7 -0
  731. package/build/src/components/JRCIconButton/JRCIconButton.d.ts +39 -0
  732. package/build/src/components/JRCIconButton/JRCIconButton.stories.d.ts +5 -0
  733. package/build/src/components/JRCImg/JRCImg.d.ts +34 -0
  734. package/build/src/components/JRCImg/JRCImg.stories.d.ts +5 -0
  735. package/build/src/components/JRCImg/JRCImg.test.d.ts +1 -0
  736. package/build/src/components/JRCImg/url.util.d.ts +62 -0
  737. package/build/src/components/JRCImg/url.utils.test.d.ts +1 -0
  738. package/build/src/components/JRCList/JRCList.d.ts +25 -0
  739. package/build/src/components/JRCList/JRCList.stories.d.ts +11 -0
  740. package/build/src/components/JRCList/JRCList.styles.d.ts +25 -0
  741. package/build/src/components/JRCList/JRCListMockData.stories.d.ts +4 -0
  742. package/build/src/components/JRCLoader/JRCLoader.d.ts +12 -0
  743. package/build/src/components/JRCLoader/JRCLoader.stories.d.ts +5 -0
  744. package/build/src/components/JRCMenu/JRCMenu.d.ts +33 -0
  745. package/build/src/components/JRCMenu/JRCMenu.stories.d.ts +7 -0
  746. package/build/src/components/JRCModal/JRCModal.d.ts +38 -0
  747. package/build/src/components/JRCModal/JRCModal.stories.d.ts +8 -0
  748. package/build/src/components/JRCModal/JRCModal.styles.d.ts +15 -0
  749. package/build/src/components/JRCModalImg/JRCModalImg.d.ts +40 -0
  750. package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +7 -0
  751. package/build/src/components/JRCModalImg/JRCModalImg.styles.d.ts +15 -0
  752. package/build/src/components/JRCPagination/JRCPagination.d.ts +20 -0
  753. package/build/src/components/JRCPagination/JRCPagination.stories.d.ts +8 -0
  754. package/build/src/components/JRCPagination/JRCPagination.test.d.ts +1 -0
  755. package/build/src/components/JRCTabs/JRCTabs.d.ts +44 -0
  756. package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +9 -0
  757. package/build/src/components/JRCTag/JRCTag.d.ts +29 -0
  758. package/build/src/components/JRCTag/JRCTag.stories.d.ts +5 -0
  759. package/build/src/components/JRCThemeProvider/JRCThemeProvider.d.ts +17 -0
  760. package/build/src/components/JRCTooltip/JRCTooltip.d.ts +26 -0
  761. package/build/src/components/JRCTooltip/JRCTooltip.stories.d.ts +9 -0
  762. package/build/src/components/JRCTypo/JRCTypo.d.ts +48 -0
  763. package/build/src/components/JRCTypo/JRCTypo.stories.d.ts +12 -0
  764. package/build/src/components/JRCTypography/JRCTypography.d.d.ts +27 -0
  765. package/build/src/components/JRCTypography/JRCTypography.d.ts +2 -0
  766. package/build/src/components/JRCTypography/JRCTypography.stories.d.ts +5 -0
  767. package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +10 -0
  768. package/build/src/components/JRCTypography/JRCTypography.test.d.ts +1 -0
  769. package/build/src/hooks/UseDebounce.d.ts +8 -0
  770. package/build/src/hooks/UseDidMountEffect.d.ts +3 -0
  771. package/build/src/index.d.ts +110 -0
  772. package/build/src/storybook/decorators.d.ts +2 -0
  773. package/build/src/styles/Theme.stories.d.ts +6 -0
  774. package/build/src/styles/theme.d.ts +45 -0
  775. package/build/src/styles/utils.d.ts +8 -0
  776. package/build/src/translation/index.d.ts +2 -0
  777. package/build/src/types/dataAttributes.d.ts +7 -0
  778. package/build/src/types.d.ts +87 -0
  779. package/build/src/utils/const.d.ts +8 -0
  780. package/build/src/utils/test-utils.d.ts +7 -0
  781. package/build/src/utils/types.d.ts +32 -0
  782. package/build/src/utils/utils.date.d.ts +9 -0
  783. package/build/src/utils/utils.date.test.d.ts +1 -0
  784. package/build/src/utils/utils.document.d.ts +4 -0
  785. package/build/src/utils/utils.object.d.ts +1 -0
  786. package/build/src/utils/utils.object.test.d.ts +1 -0
  787. package/build/src/utils/utils.regexp.d.ts +6 -0
  788. package/build/src/utils/utils.regexp.test.d.ts +1 -0
  789. package/build/src/utils/utils.string.d.ts +2 -0
  790. package/build/src/utils/utils.string.test.d.ts +1 -0
  791. package/eslint_report.json +1312 -0
  792. package/externals.d.ts +5 -0
  793. package/externals.json +15 -0
  794. package/favicon.ico +0 -0
  795. package/jest.config.js +16 -0
  796. package/jest.setup.ts +1 -0
  797. package/package.json +133 -0
  798. package/src/assets/check.svg +4 -0
  799. package/src/assets/error.svg +3 -0
  800. package/src/assets/x.svg +1 -0
  801. package/src/components/Common/DashedFocusBorder.tsx +20 -0
  802. package/src/components/Common/JRCConditionalWrapper.tsx +19 -0
  803. package/src/components/Form/Common/ClickAwayListener.tsx +41 -0
  804. package/src/components/Form/Common/FormDescription.tsx +9 -0
  805. package/src/components/Form/Common/FormHelper.tsx +30 -0
  806. package/src/components/Form/Common/FormLabel.tsx +38 -0
  807. package/src/components/Form/Common/FormMessageFeedback.tsx +52 -0
  808. package/src/components/Form/Common/types.ts +31 -0
  809. package/src/components/Form/Input/Common/JRCFormErrors.tsx +40 -0
  810. package/src/components/Form/Input/Common/JRCFormFieldRenderer.tsx +85 -0
  811. package/src/components/Form/Input/Common/JRCFormFieldRenderer.types.tsx +51 -0
  812. package/src/components/Form/Input/Common/useFormControls.tsx +108 -0
  813. package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.stories.tsx +38 -0
  814. package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.tsx +47 -0
  815. package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.stories.tsx +37 -0
  816. package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.tsx +25 -0
  817. package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.stories.tsx +39 -0
  818. package/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.tsx +33 -0
  819. package/src/components/Form/Input/JRCFormCheckbox/JRCCheckbox.tsx +46 -0
  820. package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.stories.tsx +61 -0
  821. package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.tsx +101 -0
  822. package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.tsx +116 -0
  823. package/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.tsx +58 -0
  824. package/src/components/Form/Input/JRCFormCheckbox/JRCRadio.tsx +27 -0
  825. package/src/components/Form/Input/JRCFormCheckbox/JRCToggle.tsx +75 -0
  826. package/src/components/Form/Input/JRCFormColor/JRCFormColor.stories.tsx +26 -0
  827. package/src/components/Form/Input/JRCFormColor/JRCFormColor.tsx +418 -0
  828. package/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.tsx +1079 -0
  829. package/src/components/Form/Input/JRCFormDateTime/JRCFormInputDateTime.stories.tsx +71 -0
  830. package/src/components/Form/Input/JRCFormEmail/JRCFormEmail.stories.tsx +22 -0
  831. package/src/components/Form/Input/JRCFormEmail/JRCFormEmail.tsx +36 -0
  832. package/src/components/Form/Input/JRCFormEmail/JRCInputEmail.stories.tsx +48 -0
  833. package/src/components/Form/Input/JRCFormEmail/JRCInputEmail.tsx +30 -0
  834. package/src/components/Form/Input/JRCFormFieldRender.tsx +115 -0
  835. package/src/components/Form/Input/JRCFormFile/JRCFormFile.stories.tsx +37 -0
  836. package/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.tsx +75 -0
  837. package/src/components/Form/Input/JRCFormFile/JRCFormFile.tsx +169 -0
  838. package/src/components/Form/Input/JRCFormNumber/JRCFormNumber.stories.tsx +24 -0
  839. package/src/components/Form/Input/JRCFormNumber/JRCFormNumber.tsx +37 -0
  840. package/src/components/Form/Input/JRCFormRange/JRCFormRange.stories.tsx +48 -0
  841. package/src/components/Form/Input/JRCFormRange/JRCFormRange.tsx +106 -0
  842. package/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.tsx +10 -0
  843. package/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.tsx +22 -0
  844. package/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.stories.tsx +23 -0
  845. package/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.tsx +272 -0
  846. package/src/components/Form/Input/JRCFormSelect/JRCFormSelect.stories.tsx +104 -0
  847. package/src/components/Form/Input/JRCFormSelect/JRCFormSelect.tsx +395 -0
  848. package/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.tsx +132 -0
  849. package/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.tsx +10 -0
  850. package/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.tsx +22 -0
  851. package/src/components/Form/Input/JRCFormText/JRCFormText.stories.tsx +26 -0
  852. package/src/components/Form/Input/JRCFormText/JRCFormText.tsx +47 -0
  853. package/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.stories.tsx +30 -0
  854. package/src/components/Form/Input/JRCFormTextEditor/JRCFormTextEditor.tsx +36 -0
  855. package/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.stories.tsx +28 -0
  856. package/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.tsx +71 -0
  857. package/src/components/Form/Input/JRCFormURL/JRCFormUrl.stories.tsx +26 -0
  858. package/src/components/Form/Input/JRCFormURL/JRCFormUrl.tsx +35 -0
  859. package/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.stories.tsx +84 -0
  860. package/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.tsx +193 -0
  861. package/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.ts +27 -0
  862. package/src/components/Form/Input/JRCInputText/JRCInputText.stories.tsx +52 -0
  863. package/src/components/Form/Input/JRCInputText/JRCInputText.tsx +26 -0
  864. package/src/components/Form/Input/JRCSelect/JRCAutocomplete.stories.tsx +62 -0
  865. package/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.tsx +55 -0
  866. package/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.tsx +34 -0
  867. package/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.tsx +63 -0
  868. package/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.tsx +66 -0
  869. package/src/components/Form/Input/JRCSelect/JRCInputSelect.style.tsx +94 -0
  870. package/src/components/Form/Input/JRCSelect/JRCInputSelect.tsx +231 -0
  871. package/src/components/Form/Input/JRCSelect/JRCInputSelect.types.ts +51 -0
  872. package/src/components/Form/Input/JRCSelect/JRCInputSelect.utils.ts +92 -0
  873. package/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.tsx +83 -0
  874. package/src/components/Form/Input/JRCStyledInput.tsx +102 -0
  875. package/src/components/Form/Input/ReduxFormControls.ts +135 -0
  876. package/src/components/Form/Input/temporary.types.tsx +22 -0
  877. package/src/components/JRCAlert/JRCAlert.stories.tsx +62 -0
  878. package/src/components/JRCAlert/JRCAlert.tsx +147 -0
  879. package/src/components/JRCAppContainer/JRCAppContainer.tsx +19 -0
  880. package/src/components/JRCAppHeader/JRCAppHeader.stories.tsx +25 -0
  881. package/src/components/JRCAppHeader/JRCAppHeader.styles.tsx +23 -0
  882. package/src/components/JRCAppHeader/JRCAppHeader.tsx +26 -0
  883. package/src/components/JRCAppHeader/JRCAppHeader.types.tsx +6 -0
  884. package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.tsx +125 -0
  885. package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.tsx +122 -0
  886. package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.tsx +129 -0
  887. package/src/components/JRCAppLeftColumn/JRCAppLeftColumn.types.tsx +61 -0
  888. package/src/components/JRCAppLeftColumn/JRCDefaultMenu.tsx +34 -0
  889. package/src/components/JRCAvatar/JRCAvatar.stories.tsx +30 -0
  890. package/src/components/JRCAvatar/JRCAvatar.test.tsx +22 -0
  891. package/src/components/JRCAvatar/JRCAvatar.tsx +91 -0
  892. package/src/components/JRCButton/JRCButton.stories.tsx +311 -0
  893. package/src/components/JRCButton/JRCButton.test.tsx +34 -0
  894. package/src/components/JRCButton/JRCButton.tsx +120 -0
  895. package/src/components/JRCButton/JRCButtonConfig.tsx +150 -0
  896. package/src/components/JRCButton/JRCValidationButton.tsx +85 -0
  897. package/src/components/JRCButton/__snapshots__/JRCButton.test.tsx.snap +13 -0
  898. package/src/components/JRCButtonDropdown/JRCButtonDropdown.stories.tsx +289 -0
  899. package/src/components/JRCButtonDropdown/JRCButtonDropdown.tsx +170 -0
  900. package/src/components/JRCCard/JRCCard.stories.tsx +17 -0
  901. package/src/components/JRCCard/JRCCard.tsx +27 -0
  902. package/src/components/JRCColumnCenter/JRCColumnCenter.tsx +13 -0
  903. package/src/components/JRCColumnCenterTitle/JRCColumnCenterTitle.tsx +26 -0
  904. package/src/components/JRCColumnLeft/JRCColumnLeft.tsx +17 -0
  905. package/src/components/JRCColumnRight/JRCColumnRight.tsx +17 -0
  906. package/src/components/JRCDate/JRCDate.stories.tsx +11 -0
  907. package/src/components/JRCDate/JRCDate.tsx +32 -0
  908. package/src/components/JRCDropDown/JRCDropDown.stories.tsx +16 -0
  909. package/src/components/JRCDropDown/JRCDropDown.tsx +75 -0
  910. package/src/components/JRCFileOpen/JRCFileOpen.tsx +195 -0
  911. package/src/components/JRCFileOpen/extensions.tsx +14 -0
  912. package/src/components/JRCGrid/JRCGrid.stories.tsx +45 -0
  913. package/src/components/JRCGrid/JRCGrid.tsx +15 -0
  914. package/src/components/JRCHref/JRCHref.stories.tsx +33 -0
  915. package/src/components/JRCHref/JRCHref.tsx +40 -0
  916. package/src/components/JRCIcon/JRCIcon.stories.tsx +1040 -0
  917. package/src/components/JRCIcon/JRCIcon.tsx +51 -0
  918. package/src/components/JRCIcon/fonts.d.ts +5 -0
  919. package/src/components/JRCIconButton/JRCIconButton.stories.tsx +33 -0
  920. package/src/components/JRCIconButton/JRCIconButton.tsx +100 -0
  921. package/src/components/JRCImg/JRCImg.stories.tsx +18 -0
  922. package/src/components/JRCImg/JRCImg.test.tsx +13 -0
  923. package/src/components/JRCImg/JRCImg.tsx +58 -0
  924. package/src/components/JRCImg/url.util.ts +108 -0
  925. package/src/components/JRCImg/url.utils.test.ts +74 -0
  926. package/src/components/JRCList/JRCList.stories.tsx +98 -0
  927. package/src/components/JRCList/JRCList.styles.tsx +213 -0
  928. package/src/components/JRCList/JRCList.tsx +217 -0
  929. package/src/components/JRCList/JRCListMockData.stories.tsx +105 -0
  930. package/src/components/JRCLoader/JRCLoader.stories.tsx +12 -0
  931. package/src/components/JRCLoader/JRCLoader.tsx +43 -0
  932. package/src/components/JRCMenu/JRCMenu.stories.tsx +29 -0
  933. package/src/components/JRCMenu/JRCMenu.tsx +80 -0
  934. package/src/components/JRCMenuItem/JRCMenuItem.tsx +51 -0
  935. package/src/components/JRCModal/JRCModal.stories.tsx +206 -0
  936. package/src/components/JRCModal/JRCModal.styles.tsx +78 -0
  937. package/src/components/JRCModal/JRCModal.tsx +189 -0
  938. package/src/components/JRCModalImg/JRCModalImg.stories.tsx +119 -0
  939. package/src/components/JRCModalImg/JRCModalImg.styles.tsx +83 -0
  940. package/src/components/JRCModalImg/JRCModalImg.tsx +140 -0
  941. package/src/components/JRCPagination/JRCPagination.stories.tsx +42 -0
  942. package/src/components/JRCPagination/JRCPagination.test.tsx +79 -0
  943. package/src/components/JRCPagination/JRCPagination.tsx +194 -0
  944. package/src/components/JRCTabs/JRCTabItem +0 -0
  945. package/src/components/JRCTabs/JRCTabs.stories.tsx +121 -0
  946. package/src/components/JRCTabs/JRCTabs.tsx +165 -0
  947. package/src/components/JRCTag/JRCTag.stories.tsx +26 -0
  948. package/src/components/JRCTag/JRCTag.tsx +120 -0
  949. package/src/components/JRCThemeProvider/JRCThemeProvider.tsx +26 -0
  950. package/src/components/JRCThemeProvider/animation.css +27 -0
  951. package/src/components/JRCThemeProvider/font.css +12 -0
  952. package/src/components/JRCThemeProvider/fontawesome-icons.css +10 -0
  953. package/src/components/JRCThemeProvider/fontspot-icons.css +10 -0
  954. package/src/components/JRCThemeProvider/gabarit.css +92 -0
  955. package/src/components/JRCThemeProvider/scrollbar.css +18 -0
  956. package/src/components/JRCThemeProvider/theme-reset.css +246 -0
  957. package/src/components/JRCTooltip/JRCTooltip.stories.tsx +87 -0
  958. package/src/components/JRCTooltip/JRCTooltip.tsx +145 -0
  959. package/src/components/JRCTypo/JRCTypo.stories.tsx +42 -0
  960. package/src/components/JRCTypo/JRCTypo.tsx +91 -0
  961. package/src/components/JRCTypography/JRCTypography.d.tsx +29 -0
  962. package/src/components/JRCTypography/JRCTypography.stories.tsx +18 -0
  963. package/src/components/JRCTypography/JRCTypography.styles.tsx +18 -0
  964. package/src/components/JRCTypography/JRCTypography.test.tsx +38 -0
  965. package/src/components/JRCTypography/JRCTypography.tsx +5 -0
  966. package/src/components/JRCTypography/__snapshots__/JRCTypography.test.tsx.snap +11 -0
  967. package/src/hooks/UseDebounce.ts +25 -0
  968. package/src/hooks/UseDidMountEffect.tsx +12 -0
  969. package/src/hooks/UseTimeout.ts +24 -0
  970. package/src/index.tsx +205 -0
  971. package/src/jest/EmptyModule.js +0 -0
  972. package/src/jest/svgTransform.js +10 -0
  973. package/src/storybook/decorators.tsx +17 -0
  974. package/src/styles/Theme.stories.tsx +265 -0
  975. package/src/styles/theme.d.ts +6 -0
  976. package/src/styles/theme.tsx +201 -0
  977. package/src/styles/utils.tsx +221 -0
  978. package/src/translation/index.tsx +2 -0
  979. package/src/translation/lang.json +28 -0
  980. package/src/types/dataAttributes.ts +7 -0
  981. package/src/types/react-table-config.d.ts +123 -0
  982. package/src/types.ts +94 -0
  983. package/src/utils/const.ts +9 -0
  984. package/src/utils/test-utils.tsx +41 -0
  985. package/src/utils/types.tsx +35 -0
  986. package/src/utils/utils.date.test.tsx +14 -0
  987. package/src/utils/utils.date.tsx +20 -0
  988. package/src/utils/utils.document.tsx +54 -0
  989. package/src/utils/utils.object.test.tsx +38 -0
  990. package/src/utils/utils.object.tsx +71 -0
  991. package/src/utils/utils.regexp.test.ts +11 -0
  992. package/src/utils/utils.regexp.tsx +8 -0
  993. package/src/utils/utils.string.test.ts +18 -0
  994. package/src/utils/utils.string.ts +7 -0
  995. package/src/variables.scss +67 -0
  996. package/tsconfig.json +17 -0
  997. package/webpack.config.js +70 -0
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import { Field, WrappedFieldInputProps } from 'redux-form';
3
+ import JRCFormFieldRender, { JRCWritableFormInputProps } from '../JRCFormFieldRender';
4
+ import { useControls } from '../ReduxFormControls';
5
+ import ReactQuill from 'react-quill';
6
+ import 'react-quill/dist/quill.snow.css';
7
+ import { useIntl } from 'react-intl';
8
+
9
+ const renderInput = (input: WrappedFieldInputProps) => {
10
+ return <ReactQuill theme="snow" value={input.value} onChange={input.onChange} />;
11
+ };
12
+
13
+ /**
14
+ * @deprecated The component @link JRCFormRichTextField must be used to replace JRCFormTextEditorField
15
+ * Component used as a rich text editor
16
+ * @param props JRCWritableFormInputProps
17
+ * validation props: minValue, maxValue, required
18
+ * @returns JSX.Element
19
+ */
20
+ export const JRCFormTextEditorField = (props: JRCWritableFormInputProps) => {
21
+ const validate = useControls({
22
+ intl: useIntl(),
23
+ minLength: props.minLength,
24
+ maxLength: props.maxLength,
25
+ required: props.required,
26
+ });
27
+ return (
28
+ <Field
29
+ component={JRCFormFieldRender}
30
+ renderInputFct={(input: WrappedFieldInputProps) => renderInput(input)}
31
+ validate={validate}
32
+ htmlFor={props.name}
33
+ {...props}
34
+ />
35
+ );
36
+ };
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { withReduxForm } from '../../../../storybook/decorators';
3
+ import { JRCFormTextareaField, TextareaFormInputProps } from './JRCFormTextarea';
4
+ import { Meta, Story } from '@storybook/react';
5
+
6
+ export default {
7
+ title: 'Inputs/old',
8
+ component: JRCFormTextareaField,
9
+ decorators: [withReduxForm],
10
+ } as Meta;
11
+
12
+ const Template: Story<TextareaFormInputProps> = (args) => <JRCFormTextareaField {...args} />;
13
+ export const Textarea = Template.bind({});
14
+ Textarea.args = {
15
+ name: 'name-storybook',
16
+ label: 'Description du groupe',
17
+ description:
18
+ 'La description du groupe doit permettre à un utilisateur de déterminer les informations qui y sont partagées',
19
+ placeholder:
20
+ "Le groupe RSE est un groupe relatif à l'échange d'information sur la responsabilité sociétale de notre entreprise",
21
+ helper: {
22
+ description: 'Vous pouvez indiquer les sujets, la fréquence des communications, etc.',
23
+ title: 'Indication',
24
+ },
25
+ minLength: 3,
26
+ maxLength: 100,
27
+ selected: false,
28
+ };
@@ -0,0 +1,71 @@
1
+ import * as React from 'react';
2
+ import { Field, WrappedFieldInputProps } from 'redux-form';
3
+ import JRCFormFieldRender, { ExternalFormFieldRenderProps, InputState } from '../JRCFormFieldRender';
4
+ import { useControls } from '../ReduxFormControls';
5
+ import { cssStyledInput, MaxLengthIndicator } from '../JRCStyledInput';
6
+ import styled from 'styled-components';
7
+ import { useIntl } from 'react-intl';
8
+
9
+ /**
10
+ * Props used for all inputs
11
+ *
12
+ * @extends Omit<React.ComponentPropsWithoutRef<'input'>, "type"> @see React.ComponentPropsWithoutRef
13
+ * @extends ExternalFormFieldRenderProps @see ExternalFormFieldRenderProps
14
+ *
15
+ * @name redux form name
16
+ */
17
+ export interface TextareaFormInputProps
18
+ extends Omit<React.ComponentPropsWithoutRef<'textarea'>, 'type'>,
19
+ ExternalFormFieldRenderProps {
20
+ name: string;
21
+ }
22
+
23
+ export const JRCFormTextarea = styled.textarea`
24
+ ${cssStyledInput}
25
+ &&&& {
26
+ padding-top: 10px;
27
+ height: 140px;
28
+ }
29
+ `;
30
+
31
+ const renderInput = (props: TextareaFormInputProps, input: WrappedFieldInputProps, inputState: InputState) => {
32
+ const inputRef = React.useRef<HTMLTextAreaElement>(null);
33
+ React.useEffect(() => {
34
+ if (props.selected) {
35
+ inputRef && inputRef.current && inputRef.current.select();
36
+ }
37
+ }, [inputRef]);
38
+ return (
39
+ <>
40
+ <MaxLengthIndicator maxLength={props.maxLength} actualLength={input.value.length} />
41
+ <JRCFormTextarea ref={inputRef} id={props.name} {...props} {...input} {...inputState} />
42
+ </>
43
+ );
44
+ };
45
+
46
+ /**
47
+ * Component used as a textarea
48
+ * @param props TextareaFormInputProps
49
+ * validation props: minLength, maxLength, required
50
+ * @returns JSX.Element
51
+ */
52
+ export const JRCFormTextareaField = (props: TextareaFormInputProps) => {
53
+ const validate = useControls({
54
+ intl: useIntl(),
55
+ minLength: props.minLength,
56
+ maxLength: props.maxLength,
57
+ required: props.required,
58
+ });
59
+
60
+ return (
61
+ <Field
62
+ component={JRCFormFieldRender}
63
+ renderInputFct={(input: WrappedFieldInputProps, inputState: InputState) =>
64
+ renderInput(props, input, inputState)
65
+ }
66
+ validate={validate}
67
+ htmlFor={props.name}
68
+ {...props}
69
+ />
70
+ );
71
+ };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { withReduxForm } from '../../../../storybook/decorators';
3
+ import { JRCWritableFormInputProps } from '../JRCFormFieldRender';
4
+ import { JRCFormUrlField } from './JRCFormUrl';
5
+ import { Meta, Story } from '@storybook/react';
6
+
7
+ export default {
8
+ title: 'Inputs/old',
9
+ component: JRCFormUrlField,
10
+ decorators: [withReduxForm],
11
+ } as Meta;
12
+
13
+ const Template: Story<JRCWritableFormInputProps> = (args) => <JRCFormUrlField {...args} />;
14
+
15
+ export const InputUrl = Template.bind({});
16
+ InputUrl.args = {
17
+ name: 'name-storybook',
18
+ label: 'URL du widget externe',
19
+ description: "L'url sera utilisé pour ouvrir une nouvelle page lorsque l'utilisateur cliquera sur le widget",
20
+ placeholder: 'https://monsite.com/mapage',
21
+ helper: {
22
+ description: 'Nous vous conseillons de rediriger vos utilisateurs vers une page https',
23
+ title: 'Indication',
24
+ },
25
+ required: false,
26
+ };
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ import { Field, WrappedFieldInputProps } from 'redux-form';
3
+ import JRCFormFieldRender, { InputState, JRCWritableFormInputProps } from '../JRCFormFieldRender';
4
+ import { useControls } from '../ReduxFormControls';
5
+ import { StyledInput } from '../JRCStyledInput';
6
+ import { useIntl } from 'react-intl';
7
+
8
+ const renderInput = (props: JRCWritableFormInputProps, input: WrappedFieldInputProps, inputState: InputState) => {
9
+ return <StyledInput id={props.name} type="url" {...props} {...input} {...inputState} />;
10
+ };
11
+
12
+ /**
13
+ * Component used as a <input type="url"/> with a url validation
14
+ * @param props JRCWritableFormInputProps
15
+ * validation props: required
16
+ * @returns JSX.Element
17
+ */
18
+ export const JRCFormUrlField = (props: JRCWritableFormInputProps) => {
19
+ const validate = useControls({
20
+ intl: useIntl(),
21
+ url: true,
22
+ required: props.required,
23
+ });
24
+ return (
25
+ <Field
26
+ component={JRCFormFieldRender}
27
+ renderInputFct={(input: WrappedFieldInputProps, inputState: InputState) =>
28
+ renderInput(props, input, inputState)
29
+ }
30
+ validate={validate}
31
+ htmlFor={props.name}
32
+ {...props}
33
+ />
34
+ );
35
+ };
@@ -0,0 +1,84 @@
1
+ import * as React from 'react';
2
+ import { useForm } from 'react-hook-form';
3
+ import { JRCInputCheckbox } from './JRCInputCheckbox';
4
+ import { JRCInputCheckboxProps } from './JRCInputCheckbox.types';
5
+ import { SubmitHandler } from 'react-hook-form/dist/types/form';
6
+ import { Meta, Story } from '@storybook/react';
7
+
8
+ export default {
9
+ title: 'Inputs/new',
10
+ component: JRCInputCheckbox,
11
+ } as Meta;
12
+
13
+ const Template: Story<JRCInputCheckboxProps<any>> = (args) => {
14
+ const { handleSubmit, control } = useForm({
15
+ defaultValues: {
16
+ [args.name]: [],
17
+ },
18
+ criteriaMode: 'all',
19
+ });
20
+
21
+ const onSubmit: SubmitHandler<{ checkbox: Array<string> }> = (data) => {
22
+ alert(JSON.stringify(data, null, 2));
23
+ };
24
+
25
+ return (
26
+ // FIXME TYPESCRIPT-STRICT
27
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
28
+ // @ts-ignore
29
+ <form onSubmit={handleSubmit(onSubmit)}>
30
+ <JRCInputCheckbox {...args} control={control as any} />
31
+ <input type="submit" />
32
+ </form>
33
+ );
34
+ };
35
+
36
+ export const InputCheckbox = Template.bind({});
37
+ InputCheckbox.args = {
38
+ label: 'Quel fruit ou légume preférez-vous ?',
39
+ name: 'checkbox',
40
+ description: 'Nous pourrons faire la salade composée du pique-nique en fonction ;)',
41
+ helper: { description: 'Vous pouvez sélectionner plusieurs choix', title: 'Indication' },
42
+ rules: {
43
+ required: true,
44
+ },
45
+ options: [
46
+ { label: 'Pomme', value: 'apple' },
47
+ { label: 'Poire', value: 'pear' },
48
+ { label: 'Ananas', value: 'pineapple', disabled: true },
49
+ { label: 'Carotte', value: 'carrot' },
50
+ { label: 'Tomate', value: { vegetable: 'tomato' } },
51
+ ],
52
+ direction: 'column',
53
+ labelPosition: 'before',
54
+ checkboxMode: 'checkbox',
55
+ variant: 'outlined',
56
+ backgroundOnHover: true,
57
+ valueTypeIsBoolean: false,
58
+ SortByChecked: false,
59
+ };
60
+
61
+ export const InputRadio = Template.bind({});
62
+ InputRadio.args = {
63
+ label: 'Quel fruit ou légume preférez-vous ?',
64
+ name: 'radio',
65
+ description: 'Nous pourrons faire la salade composée du pique-nique en fonction ;)',
66
+ helper: { description: 'Vous pouvez sélectionner plusieurs choix', title: 'Indication' },
67
+ rules: {
68
+ required: true,
69
+ },
70
+ options: [
71
+ { label: 'Pomme', value: 'apple' },
72
+ { label: 'Poire', value: 'pear' },
73
+ { label: 'Ananas', value: 'pineapple', disabled: true },
74
+ { label: 'Carotte', value: 'carrot' },
75
+ { label: 'Tomate', value: { vegetable: 'tomato' } },
76
+ ],
77
+ direction: 'column',
78
+ labelPosition: 'before',
79
+ checkboxMode: 'radio',
80
+ variant: 'outlined',
81
+ backgroundOnHover: true,
82
+ valueTypeIsBoolean: false,
83
+ SortByChecked: false,
84
+ };
@@ -0,0 +1,193 @@
1
+ import { JRCFormFieldRenderer } from '../Common/JRCFormFieldRenderer';
2
+ import * as React from 'react';
3
+ import {
4
+ CheckboxLabel,
5
+ CheckboxOrToggle,
6
+ DirectionContainer,
7
+ FocusBackground,
8
+ } from '../JRCFormCheckbox/JRCFormCheckbox.style';
9
+ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
10
+ import { JRCRadio } from '../JRCFormCheckbox/JRCRadio';
11
+ import { deepEqual } from '../../../../utils/utils.object';
12
+ import { DataCy } from '../../../../types/dataAttributes';
13
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
14
+ import { CheckboxValue } from './JRCInputCheckbox.types';
15
+
16
+ type Value<T> = string | number | T;
17
+
18
+ type CheckboxOption<TFieldValues> = {
19
+ label: string | JSX.Element;
20
+ value: Value<TFieldValues>;
21
+ disabled?: boolean;
22
+ };
23
+
24
+ export type CheckboxProps<TFieldValues> = DataCy & {
25
+ disabled?: boolean;
26
+ checkboxMode?: 'checkbox' | 'toggle' | 'radio';
27
+ options: CheckboxOption<TFieldValues>[];
28
+ direction?: 'row' | 'column' | 'two-columns';
29
+ variant?: 'default' | 'outlined';
30
+ labelPosition?: 'before' | 'after';
31
+ SortByChecked?: boolean;
32
+ backgroundOnHover?: boolean;
33
+ backgroundOnSelect?: boolean;
34
+ valueTypeIsBoolean?: boolean;
35
+ };
36
+
37
+ export type JRCInputCheckboxProps<TFieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
38
+
39
+ function RenderInput<TFieldValues>({
40
+ variant = 'default',
41
+ ...props
42
+ }: CheckboxProps<TFieldValues> &
43
+ Omit<ControllerRenderProps<TFieldValues>, 'value'> & { value: TFieldValues | TFieldValues[] }) {
44
+ const field = {
45
+ onChange: props.onChange,
46
+ onBlur: props.onBlur,
47
+ value: props.value,
48
+ name: props.name,
49
+ ref: props.ref,
50
+ };
51
+
52
+ const [valueTypeIsBoolean, setValueTypeIsBoolean] = React.useState(
53
+ props.options.length === 1 && props.valueTypeIsBoolean,
54
+ );
55
+
56
+ React.useEffect(() => {
57
+ setValueTypeIsBoolean(props.options.length === 1 && props.valueTypeIsBoolean);
58
+ }, [props.options.length, props.valueTypeIsBoolean]);
59
+
60
+ const isChecked = (
61
+ field: Omit<ControllerRenderProps<TFieldValues>, 'value'> & { value: TFieldValues | TFieldValues[] },
62
+ option: CheckboxOption<TFieldValues>,
63
+ ): boolean =>
64
+ field &&
65
+ (valueTypeIsBoolean
66
+ ? !!field.value
67
+ : props.checkboxMode === 'radio'
68
+ ? deepEqual(field.value, option.value)
69
+ : (field?.value as CheckboxValue<TFieldValues>[])?.some((v) => deepEqual(v, option.value)));
70
+
71
+ const sortByCheck = () => props.options.sort((a, b) => (isChecked(field, b) && isChecked(field, a) ? 1 : -1));
72
+ const [options, setOptions] = React.useState(props.SortByChecked ? sortByCheck() : props.options);
73
+
74
+ React.useEffect(() => {
75
+ if (props.SortByChecked) setOptions(sortByCheck());
76
+ }, [field && field.value]);
77
+
78
+ return (
79
+ // FIXME TYPESCRIPT-STRICT
80
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
81
+ // @ts-ignore
82
+ <DirectionContainer direction={props.direction} variant={props.variant}>
83
+ {options.map((option, index) => {
84
+ const checked = isChecked(field, option);
85
+ return (
86
+ // FIXME TYPESCRIPT-STRICT
87
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
88
+ // @ts-ignore
89
+ <CheckboxLabel
90
+ key={index}
91
+ direction={props.direction}
92
+ labelPosition={props.labelPosition}
93
+ variant={variant}
94
+ disabled={props.disabled || option.disabled}
95
+ checked={checked}
96
+ backgroundOnHover={props.backgroundOnHover}
97
+ backgroundOnSelect={props.backgroundOnSelect}>
98
+ {props.checkboxMode === 'radio' ? (
99
+ <JRCRadio
100
+ name={props.name}
101
+ data-cy={props.dataCy && `${props.dataCy}-option-${index}`}
102
+ disabled={props.disabled || option.disabled}
103
+ checked={checked}
104
+ onChange={() => field.onChange(option.value || undefined)}
105
+ />
106
+ ) : (
107
+ <CheckboxOrToggle
108
+ // FIXME TYPESCRIPT-STRICT
109
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
110
+ // @ts-ignore
111
+ checkboxMode={props.checkboxMode}
112
+ name={props.name}
113
+ data-cy={props.dataCy && `${props.dataCy}-option-${index}`}
114
+ disabled={props.disabled || option.disabled}
115
+ checked={checked}
116
+ onChange={(event) => {
117
+ if (valueTypeIsBoolean) {
118
+ return field.onChange(event.target.checked || undefined);
119
+ } else {
120
+ let newValue = [...((field?.value as TFieldValues[]) || [])] as
121
+ | Array<string | number | TFieldValues>
122
+ | undefined;
123
+ if (event.target.checked) {
124
+ // FIXME TYPESCRIPT-STRICT
125
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
126
+ // @ts-ignore
127
+ newValue.push(option.value);
128
+ } else {
129
+ // FIXME TYPESCRIPT-STRICT
130
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
131
+ // @ts-ignore
132
+ newValue.splice(newValue.indexOf(option.value), 1);
133
+ // FIXME TYPESCRIPT-STRICT
134
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
135
+ // @ts-ignore
136
+ if (!newValue.length) newValue = undefined;
137
+ }
138
+ return field.onChange(newValue);
139
+ }
140
+ }}
141
+ />
142
+ )}
143
+ <FocusBackground variant={variant} />
144
+ {option.label}
145
+ </CheckboxLabel>
146
+ );
147
+ })}
148
+ </DirectionContainer>
149
+ );
150
+ }
151
+
152
+ export function JRCInputCheckbox<TFieldValues>({
153
+ name,
154
+ control,
155
+ rules,
156
+ label,
157
+ htmlFor,
158
+ labelIsLegend,
159
+ description,
160
+ helper,
161
+ ...props
162
+ }: JRCInputCheckboxProps<TFieldValues>) {
163
+ return (
164
+ <JRCFormFieldRenderer
165
+ name={name}
166
+ control={control}
167
+ rules={rules}
168
+ label={label}
169
+ htmlFor={htmlFor}
170
+ labelIsLegend={labelIsLegend || true}
171
+ description={description}
172
+ helper={helper}
173
+ renderFunction={({ value, ...field }) => (
174
+ <RenderInput
175
+ {...props}
176
+ {...field}
177
+ value={value as CheckboxValue<TFieldValues> | Array<CheckboxValue<TFieldValues>>}
178
+ />
179
+ )}
180
+ />
181
+ );
182
+ }
183
+
184
+ JRCInputCheckbox.defaultProps = {
185
+ direction: 'column',
186
+ labelPosition: 'before',
187
+ checkboxMode: 'checkbox',
188
+ label: '',
189
+ backgroundOnHover: false,
190
+ backgroundOnSelect: false,
191
+ SortByChecked: false,
192
+ valueTypeIsBoolean: false,
193
+ };
@@ -0,0 +1,27 @@
1
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
2
+ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
3
+
4
+ export type CheckboxValue<T> = string | number | T;
5
+
6
+ export type CheckboxOption<TFieldValues> = {
7
+ label: string | JSX.Element;
8
+ value: CheckboxValue<TFieldValues>;
9
+ disabled?: boolean;
10
+ };
11
+
12
+ export type InnerProps<TFieldValues> = {
13
+ disabled?: boolean;
14
+ checkboxMode?: 'checkbox' | 'toggle' | 'radio';
15
+ options: CheckboxOption<TFieldValues>[];
16
+ direction?: 'row' | 'column' | 'two-columns';
17
+ variant?: 'default' | 'outlined';
18
+ labelPosition?: 'before' | 'after';
19
+ SortByChecked?: boolean;
20
+ backgroundOnHover?: boolean;
21
+ backgroundOnSelect?: boolean;
22
+ valueTypeIsBoolean?: boolean;
23
+ };
24
+
25
+ export type JRCInputCheckboxProps<TFieldValues> = InnerProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
26
+ export type InputCheckboxProps<TFieldValues> = InnerProps<TFieldValues> &
27
+ Omit<ControllerRenderProps<TFieldValues>, 'value'> & { value: TFieldValues | TFieldValues[] };
@@ -0,0 +1,52 @@
1
+ import * as React from 'react';
2
+ import { JRCInputText } from './JRCInputText';
3
+ import { useForm } from 'react-hook-form';
4
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
5
+ import { SubmitHandler } from 'react-hook-form/dist/types/form';
6
+ import { Meta, Story } from '@storybook/react';
7
+
8
+ export default {
9
+ title: 'Inputs/new',
10
+ component: JRCInputText,
11
+ } as Meta;
12
+
13
+ const Template: Story<JRCInputFieldProps<'text'>> = (args) => {
14
+ const { handleSubmit, control, reset } = useForm({
15
+ defaultValues: {
16
+ text: '',
17
+ },
18
+ criteriaMode: 'all',
19
+ });
20
+
21
+ const onSubmit: SubmitHandler<{ text: string }> = (data) => {
22
+ alert(JSON.stringify(data, null, 2));
23
+ };
24
+
25
+ return (
26
+ <form onSubmit={handleSubmit(onSubmit)}>
27
+ <JRCInputText {...args} name="text" control={control} />
28
+ <input type="submit" />
29
+ <input type="reset" />
30
+ <button type="button" onClick={() => reset()}>
31
+ Custom Reset
32
+ </button>
33
+ </form>
34
+ );
35
+ };
36
+
37
+ export const InputText = Template.bind({});
38
+ InputText.args = {
39
+ label: 'Nom de groupe',
40
+ description: "Le nom du groupe doit permettre en un clin d'oeil de connaitre le sujet du groupe",
41
+ placeholder: 'Présentations',
42
+ helper: { description: 'Ne faites pas commencer votre groupe par "Groupe de"', title: 'Indication' },
43
+ rules: {
44
+ maxLength: {
45
+ value: 25,
46
+ message:
47
+ 'This is an example error. For instance, the text should not be written with more than 25 characters. This message is not the default one.',
48
+ },
49
+ minLength: 3,
50
+ required: true,
51
+ },
52
+ };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { StyledInput } from '../JRCStyledInput';
3
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
4
+ import { JRCFormFieldRenderer } from '../Common/JRCFormFieldRenderer';
5
+ import { DataCy } from '../../../../types/dataAttributes';
6
+
7
+ export type InputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
8
+
9
+ const RenderInput = React.forwardRef((props: InputTextProps, ref: React.ForwardedRef<HTMLInputElement>) => {
10
+ return <StyledInput type="text" id={props.name} {...props} ref={ref} />;
11
+ });
12
+
13
+ /**
14
+ * Component used as a <input type="text"/>
15
+ * @param props JRCInputFieldProps
16
+ * validation props: required
17
+ * @returns JSX.Element
18
+ */
19
+ export function JRCInputText<T>(props: JRCInputFieldProps<T>) {
20
+ return (
21
+ <JRCFormFieldRenderer
22
+ {...props}
23
+ renderFunction={({ value, ...field }) => <RenderInput {...props} {...field} value={value as string} />}
24
+ />
25
+ );
26
+ }
@@ -0,0 +1,62 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { useForm } from 'react-hook-form';
3
+ import { SubmitHandler } from 'react-hook-form/dist/types/form';
4
+ import * as React from 'react';
5
+ import { JRCInputAutocomplete } from './JRCInputAutocomplete';
6
+ import { JRCAutocompleteProps } from './JRCInputSelect.types';
7
+
8
+ export default {
9
+ title: 'Inputs/new',
10
+ component: JRCInputAutocomplete,
11
+ } as Meta;
12
+
13
+ const Template: Story<JRCAutocompleteProps<{ select: Array<{ uri?: string; title: string }> }>> = (args) => {
14
+ const { handleSubmit, control, reset } = useForm({
15
+ defaultValues: {
16
+ select: [{ title: 'elephant' }],
17
+ },
18
+ criteriaMode: 'all',
19
+ });
20
+
21
+ const onSubmit: SubmitHandler<{ select: Array<{ uri?: string; title: string }> }> = (data) => {
22
+ alert(JSON.stringify(data, null, 2));
23
+ };
24
+
25
+ return (
26
+ <form onSubmit={handleSubmit(onSubmit)}>
27
+ <p>-.-</p>
28
+ <JRCInputAutocomplete {...args} name="select" control={control} />
29
+ <p>-.-</p>
30
+ <input type="submit" />
31
+ <input type="reset" />
32
+ <button type="button" onClick={() => reset()}>
33
+ Custom Reset
34
+ </button>
35
+ </form>
36
+ );
37
+ };
38
+
39
+ export const Autocomplete = Template.bind({});
40
+ Autocomplete.args = {
41
+ label: 'label',
42
+ htmlFor: 'htmlFor',
43
+ placeholder: 'placeholder',
44
+ labelIsLegend: false,
45
+ description: 'description',
46
+
47
+ asyncPromise: (input: any) =>
48
+ Promise.resolve(
49
+ [
50
+ { uri: 'user/1234', title: 'elephant', type: 'user' },
51
+ { uri: 'user/1234', title: 'girage', type: 'user' },
52
+ { uri: 'user/1234', title: 'mouse', type: 'spot' },
53
+ ].filter((option) => new RegExp(input).test(option.title)),
54
+ ),
55
+
56
+ multiple: true,
57
+
58
+ searchable: true,
59
+
60
+ group: true,
61
+ getGroup: 'type',
62
+ };