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,55 @@
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 { JRCAutocompleteCommunityProps, JRCInputCommunity } from './JRCAutocompleteCommunity';
6
+
7
+ export default {
8
+ title: 'Inputs/new',
9
+ component: JRCInputCommunity,
10
+ } as Meta;
11
+
12
+ type Community = { uri: string; title: string };
13
+
14
+ type FormData = {
15
+ selectSimple: Community;
16
+ selectMultiple: Array<Community>;
17
+ };
18
+
19
+ const Template: Story<JRCAutocompleteCommunityProps<FormData>> = (args) => {
20
+ const { handleSubmit, control, reset } = useForm({
21
+ defaultValues: {
22
+ selectSimple: {} as Community,
23
+ selectMultiple: [] as Array<Community>,
24
+ },
25
+ criteriaMode: 'all',
26
+ });
27
+
28
+ const onSubmit: SubmitHandler<FormData> = (data) => {
29
+ alert(JSON.stringify(data, null, 2));
30
+ };
31
+
32
+ return (
33
+ <form onSubmit={handleSubmit(onSubmit)}>
34
+ <p>-.-</p>
35
+ <JRCInputCommunity {...args} name="selectSimple" control={control} multiple={false} />
36
+ <p>-.-</p>
37
+ <JRCInputCommunity {...args} name="selectMultiple" control={control} multiple={true} />
38
+ <p>-.-</p>
39
+ <input type="submit" />
40
+ <input type="reset" />
41
+ <button type="button" onClick={() => reset()}>
42
+ Custom Reset
43
+ </button>
44
+ </form>
45
+ );
46
+ };
47
+
48
+ export const Community = Template.bind({});
49
+ Community.args = {
50
+ label: 'label',
51
+ htmlFor: 'htmlFor',
52
+ placeholder: 'placeholder',
53
+ labelIsLegend: false,
54
+ description: 'description',
55
+ };
@@ -0,0 +1,34 @@
1
+ import { JRCFormFieldRenderer } from '../Common/JRCFormFieldRenderer';
2
+ import * as React from 'react';
3
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
4
+ import jamespot from 'jamespot-user-api';
5
+ import { NativeAutocomplete } from './JRCInputAutocomplete';
6
+
7
+ const autocompleteCommunity = (inputValue: string) => jamespot.community.autocomplete(inputValue);
8
+
9
+ export type JRCAutocompleteCommunityProps<T> = JRCInputFieldProps<T> & {
10
+ multiple?: boolean;
11
+ };
12
+
13
+ export function JRCInputCommunity<T>(
14
+ props: JRCAutocompleteCommunityProps<T>,
15
+ ref: React.ForwardedRef<HTMLInputElement>,
16
+ ) {
17
+ const { name, control, rules, label, htmlFor, labelIsLegend, description, helper } = props;
18
+
19
+ return (
20
+ <JRCFormFieldRenderer
21
+ name={name}
22
+ control={control}
23
+ rules={rules}
24
+ label={label}
25
+ htmlFor={htmlFor}
26
+ labelIsLegend={labelIsLegend}
27
+ description={description}
28
+ helper={helper}
29
+ renderFunction={(field) => (
30
+ <NativeAutocomplete {...props} {...field} asyncPromise={autocompleteCommunity} getSearch="title" />
31
+ )}
32
+ />
33
+ );
34
+ }
@@ -0,0 +1,63 @@
1
+ import * as React from 'react';
2
+ import { JRCFormFieldRenderer } from '../Common/JRCFormFieldRenderer';
3
+ import { Select } from './JRCInputSelect';
4
+ import styled from 'styled-components';
5
+ import JRCAvatar from '../../../JRCAvatar/JRCAvatar';
6
+ import { JRCTag } from '../../../JRCTag/JRCTag';
7
+ import { AutocompleteLittle, JRCAutocompleteProps, NativeAutocompleteProps } from './JRCInputSelect.types';
8
+
9
+ const Flex = styled.div`
10
+ display: flex;
11
+ align-items: center;
12
+ min-height: 40px;
13
+ gap: 10px;
14
+ `;
15
+
16
+ export function CustomOption({ option }: { option: AutocompleteLittle }) {
17
+ return (
18
+ <Flex>
19
+ <JRCAvatar alt="tag" uri={option.uri} focusable={true} />
20
+ <div>{option.title}</div>
21
+ </Flex>
22
+ );
23
+ }
24
+
25
+ export function CustomSelectedOption({ option }: { option: AutocompleteLittle }) {
26
+ return <JRCTag focusable={true} uri={option.uri} label={option.title} tooltipDescription={option.title} />;
27
+ }
28
+
29
+ export const NativeAutocomplete = React.forwardRef(function <T>(
30
+ props: NativeAutocompleteProps<T>,
31
+ ref: React.ForwardedRef<HTMLInputElement>,
32
+ ) {
33
+ return (
34
+ <>
35
+ <Select
36
+ getSearch="title"
37
+ components={{
38
+ Option: CustomOption,
39
+ SelectedOption: CustomSelectedOption,
40
+ }}
41
+ {...props}
42
+ />
43
+ </>
44
+ );
45
+ }) as unknown as <T>(props: NativeAutocompleteProps<T>) => JSX.Element;
46
+
47
+ export function JRCInputAutocomplete<T>(props: JRCAutocompleteProps<T>) {
48
+ const { name, control, rules, label, htmlFor, labelIsLegend, description, helper } = props;
49
+
50
+ return (
51
+ <JRCFormFieldRenderer
52
+ name={name}
53
+ control={control}
54
+ rules={rules}
55
+ label={label}
56
+ htmlFor={htmlFor}
57
+ labelIsLegend={labelIsLegend}
58
+ description={description}
59
+ helper={helper}
60
+ renderFunction={(field) => <NativeAutocomplete {...props} {...field} />}
61
+ />
62
+ );
63
+ }
@@ -0,0 +1,66 @@
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 { JRCInputSelect } from './JRCInputSelect';
6
+ import { JRCInputSelectProps } from './JRCInputSelect.types';
7
+
8
+ export default {
9
+ title: 'Inputs/new',
10
+ component: JRCInputSelect,
11
+ } as Meta;
12
+
13
+ type Data = {
14
+ animal: string;
15
+ cat: string;
16
+ };
17
+
18
+ const Template: Story<JRCInputSelectProps<{ select: Data; select2: Array<Data> }>> = (args) => {
19
+ const { handleSubmit, control, reset } = useForm({
20
+ defaultValues: {
21
+ select: { animal: 'elephant', cat: 'cat2' },
22
+ select2: [] as Array<Data>,
23
+ },
24
+ criteriaMode: 'all',
25
+ });
26
+
27
+ const onSubmit: SubmitHandler<{ select: Data; select2: Array<Data> }> = (data) => {
28
+ alert(JSON.stringify(data, null, 2));
29
+ };
30
+
31
+ return (
32
+ <form onSubmit={handleSubmit(onSubmit)}>
33
+ <p>-.-</p>
34
+ <JRCInputSelect {...args} name="select" control={control} />
35
+ <p>-.-</p>
36
+ <JRCInputSelect {...args} name="select2" control={control} group={false} multiple={true} />
37
+ <p>-.-</p>
38
+ <input type="submit" />
39
+ <input type="reset" />
40
+ <button type="button" onClick={() => reset()}>
41
+ Custom Reset
42
+ </button>
43
+ </form>
44
+ );
45
+ };
46
+
47
+ export const InputSelect = Template.bind({});
48
+ InputSelect.args = {
49
+ label: 'label',
50
+ htmlFor: 'htmlFor',
51
+ placeholder: 'placeholder',
52
+ labelIsLegend: false,
53
+ description: 'description',
54
+
55
+ options: [...Array(100).keys()].map((i) => ({ animal: `elephant-${i}`, cat: `cat-${i % 3}` })),
56
+
57
+ multiple: false,
58
+ getLabel: (option: any) => `~${option.animal}~`,
59
+ getValue: (option: any) => `~${option.animal}~`,
60
+
61
+ searchable: true,
62
+ getSearch: (option: any) => `${option.animal}`,
63
+
64
+ group: true,
65
+ getGroup: 'cat',
66
+ };
@@ -0,0 +1,94 @@
1
+ import styled from 'styled-components';
2
+ import { ClickAwayListener } from '../../Common/ClickAwayListener';
3
+ import * as React from 'react';
4
+ import JRCIcon from '../../../JRCIcon/JRCIcon';
5
+
6
+ export const RelativeClickAwayListener = styled(ClickAwayListener)`
7
+ position: relative;
8
+ `;
9
+ export const OptionWrapper = styled.div<{ isSelected?: boolean; isFocused?: boolean }>`
10
+ ${(props) => props.isSelected && 'font-weight: bolder'};
11
+ ${(props) => props.isFocused && 'background-color: #F8F8FF'};
12
+ min-height: 32px;
13
+ line-height: 32px;
14
+ padding: 0 16px;
15
+ cursor: pointer;
16
+ transition: all 0.2s;
17
+
18
+ :hover {
19
+ background-color: #f8f8ff;
20
+ }
21
+ `;
22
+ export const OptionGroup = styled.div``;
23
+
24
+ export const OptionGroupHeader = styled.div`
25
+ min-height: 32px;
26
+ line-height: 32px;
27
+ padding: 0 8px;
28
+ background-color: #efefff;
29
+ `;
30
+ export const OptionGroupValues = styled.div``;
31
+ export const OptionMenu = styled.div`
32
+ max-height: max(200px, 40vh);
33
+ min-width: 250px;
34
+ background-color: white;
35
+ overflow: auto;
36
+ position: absolute;
37
+ width: 100%;
38
+ z-index: 1;
39
+ border: 1px solid #dadaf0;
40
+ border-radius: 8px;
41
+ margin-top: 4px;
42
+ `;
43
+ export const SelectedOptionWrapper = styled.div``;
44
+ export const SelectedOption = styled.button.attrs(() => ({ type: 'button' }))`
45
+ display: inline-block;
46
+ border: none;
47
+ vertical-align: middle;
48
+
49
+ margin: 0 4px 4px 0;
50
+
51
+ :hover,
52
+ :focus-visible {
53
+ div {
54
+ background-color: ${(props) => props.theme.color.orangeL80};
55
+
56
+ i {
57
+ color: ${(props) => props.theme.color.orange};
58
+ }
59
+ }
60
+ }
61
+ `;
62
+ export const JRCDefaultSelectedOption = styled.div`
63
+ min-height: 24px;
64
+ line-height: 24px;
65
+
66
+ display: flex;
67
+ align-items: center;
68
+
69
+ padding: 4px 16px 4px 12px;
70
+ border-radius: 4px;
71
+ background-color: #f8f8ff;
72
+ transition: all 0.2s;
73
+ `;
74
+
75
+ export const TimesIcon = styled.i.attrs(() => ({ className: 'react-icon icon-times' }))`
76
+ margin: 0 8px;
77
+ color: ${(props) => props.theme.color.grey2};
78
+ transition: all 0.2s;
79
+ `;
80
+
81
+ const AbsoluteIcon = styled(JRCIcon)`
82
+ position: absolute;
83
+ top: 10px;
84
+ right: 10px;
85
+ pointer-events: none;
86
+ `;
87
+
88
+ export const DropdownIndicator = ({ open }: { open: boolean }) => {
89
+ if (open) {
90
+ return <AbsoluteIcon name="icon-angle-up" color="grey2" />;
91
+ } else {
92
+ return <AbsoluteIcon name="icon-angle-down" color="grey2" />;
93
+ }
94
+ };
@@ -0,0 +1,231 @@
1
+ import * as React from 'react';
2
+ import { JRCFormFieldRenderer } from '../Common/JRCFormFieldRenderer';
3
+ import { StyledSelect } from '../JRCStyledInput';
4
+ import { scrollIntoView } from '../../../../utils/utils.document';
5
+ import { deepEqual } from '../../../../utils/utils.object';
6
+ import * as Components from './JRCInputSelect.style';
7
+ import * as utils from './JRCInputSelect.utils';
8
+ import { JRCInputSelectProps, NativeSelectProps } from './JRCInputSelect.types';
9
+
10
+ export const Select = React.forwardRef(function <T>(
11
+ props: NativeSelectProps<T>,
12
+ ref: React.ForwardedRef<HTMLInputElement>,
13
+ ) {
14
+ const getLabel = (option: any) => utils.get(option, props.getLabel);
15
+ const getValue = (option: any) => utils.get(option, props.getValue);
16
+ const getSearch = (option: any) => utils.get(option, props.getSearch);
17
+ const getGroup = (option: any) => utils.get(option, props.getGroup);
18
+
19
+ const [search, setSearch] = React.useState<string>('');
20
+ const [open, setOpen] = React.useState(false);
21
+ const [focusIndex, setFocusIndex] = React.useState(0);
22
+
23
+ const inputRef = React.useRef<HTMLInputElement>(null);
24
+ const menuRef = React.useRef<HTMLDivElement>(null);
25
+
26
+ const [options, setOptions] = React.useState<Array<any>>(props.options || []);
27
+
28
+ const [isSearched, setIsSearched] = React.useState(false);
29
+
30
+ React.useEffect(() => {
31
+ if (props.options) setOptions(props.options);
32
+ }, [props.options]);
33
+
34
+ React.useEffect(() => {
35
+ if (!props.multiple) {
36
+ setSearch(utils.isNullOrEmpty(props.value) ? '' : (getSearch(props.value) as string));
37
+ }
38
+ }, [props.value]);
39
+
40
+ React.useEffect(() => {
41
+ if (!props.searchable && isSearched) return;
42
+
43
+ props.asyncPromise &&
44
+ props.asyncPromise(search).then((res) => {
45
+ setOptions(res);
46
+ setIsSearched(true);
47
+ });
48
+ }, [props.asyncPromise, search]);
49
+
50
+ /*
51
+ * Ref of the selected option
52
+ */
53
+ let selectedOptionRef: HTMLDivElement | null = null;
54
+ function selectedOptionRefCallback(ref: HTMLDivElement) {
55
+ selectedOptionRef = ref;
56
+ if (menuRef.current && selectedOptionRef) scrollIntoView(menuRef.current, selectedOptionRef);
57
+ }
58
+
59
+ // Hack to use .focus() outside of this component while beeing able to access the ref within this component
60
+ React.useImperativeHandle(
61
+ ref,
62
+ () =>
63
+ ({
64
+ focus: () => {
65
+ inputRef?.current?.focus();
66
+ },
67
+ } as any),
68
+ );
69
+
70
+ function onClick(e: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLInputElement>, option: any) {
71
+ if (props.multiple) {
72
+ props.onChange(
73
+ props.value && Array.isArray(props.value) && utils.getIndex(props.value, option) >= 0
74
+ ? utils.removeItem(props.value, option)
75
+ : utils.addItem(props.value, option),
76
+ );
77
+ } else {
78
+ if (deepEqual(props.value, option)) {
79
+ props.onChange('');
80
+ } else {
81
+ props.onChange(option);
82
+ setOpen(false);
83
+ }
84
+ }
85
+
86
+ // keep focus inside the input
87
+ inputRef?.current?.focus();
88
+ // when pressing enter to select an option, prevent form submission
89
+ e.preventDefault();
90
+ }
91
+
92
+ const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
93
+ if (props.searchable) {
94
+ setSearch(e.target.value || '');
95
+ }
96
+ };
97
+
98
+ const memoizedOptions = React.useMemo(
99
+ () =>
100
+ props.searchable
101
+ ? options.filter((option) => !search || new RegExp(search, 'i').test(getSearch(option)))
102
+ : options,
103
+ [options, search],
104
+ );
105
+
106
+ const handleKey = (e: React.KeyboardEvent<HTMLInputElement>) => {
107
+ if (e.key === 'ArrowDown') {
108
+ setFocusIndex(open ? (focusIndex + 1) % memoizedOptions.length : 0);
109
+ setOpen(true);
110
+ } else if (e.key === 'ArrowUp') {
111
+ setFocusIndex(open && focusIndex > 0 ? focusIndex - 1 : memoizedOptions.length - 1);
112
+ setOpen(true);
113
+ } else if (e.key === 'Enter' && focusIndex !== undefined) {
114
+ if (!props.multiple) setOpen(false);
115
+ const focusedOption = memoizedOptions
116
+ .map((el) => ({ el, group: getGroup(el) }))
117
+ .sort((el1, el2) => (el1.group === el2.group ? 0 : el1.group < el2.group ? -1 : 1))
118
+ .map((v) => v.el)[focusIndex];
119
+ onClick(e, focusedOption);
120
+ } else if (e.key === 'Tab' || e.key === 'Escape') {
121
+ setOpen(false);
122
+ } else if (!props.multiple && props.value) {
123
+ props.onChange('');
124
+ }
125
+ };
126
+
127
+ return (
128
+ <>
129
+ {props.multiple && (
130
+ <Components.SelectedOptionWrapper>
131
+ {(props.value as Array<any>).map((v, index) => (
132
+ <Components.SelectedOption
133
+ key={index}
134
+ onClick={() => {
135
+ props.onChange(utils.removeItem(props.value as any[], v));
136
+ }}>
137
+ {props?.components?.SelectedOption ? (
138
+ <props.components.SelectedOption option={v} />
139
+ ) : (
140
+ <Components.JRCDefaultSelectedOption>
141
+ <Components.TimesIcon />
142
+ {getValue(v)}
143
+ </Components.JRCDefaultSelectedOption>
144
+ )}
145
+ </Components.SelectedOption>
146
+ ))}
147
+ </Components.SelectedOptionWrapper>
148
+ )}
149
+ <Components.RelativeClickAwayListener onClickAway={() => setOpen(false)}>
150
+ <StyledSelect
151
+ ref={inputRef}
152
+ disabled={props.disabled}
153
+ placeholder={props.placeholder}
154
+ searchable={props.searchable}
155
+ value={search}
156
+ dataCy={props.dataCy}
157
+ onChange={handleChange}
158
+ onKeyDown={handleKey}
159
+ onClick={() => setOpen(true)}
160
+ />
161
+ <Components.DropdownIndicator open={open} />
162
+ {open && (
163
+ <Components.OptionMenu ref={menuRef}>
164
+ {!props.group &&
165
+ memoizedOptions.map((option, index) => (
166
+ <Components.OptionWrapper
167
+ key={index}
168
+ ref={index === focusIndex ? selectedOptionRefCallback : undefined}
169
+ onClick={(e) => onClick(e, option)}
170
+ isFocused={index === focusIndex}
171
+ data-cy={props.dataCy && `${props.dataCy}-option-${index}`}
172
+ isSelected={utils.isOrIncludes(props.value, option)}>
173
+ {props?.components?.Option ? (
174
+ <props.components.Option option={option} />
175
+ ) : (
176
+ getLabel(option).toString()
177
+ )}
178
+ </Components.OptionWrapper>
179
+ ))}
180
+ {props.group &&
181
+ utils.group(memoizedOptions, getGroup).map((group, groupIndex) => (
182
+ <Components.OptionGroup key={group.label}>
183
+ <Components.OptionGroupHeader>{group.label}</Components.OptionGroupHeader>
184
+ <Components.OptionGroupValues>
185
+ {group.options.map((option, optionIndex) => (
186
+ <Components.OptionWrapper
187
+ onClick={(e) => onClick(e, option)}
188
+ data-cy={
189
+ props.dataCy &&
190
+ `${props.dataCy}-group-${groupIndex}-option-${optionIndex}`
191
+ }
192
+ key={option._index}
193
+ ref={
194
+ option._index === focusIndex ? selectedOptionRefCallback : undefined
195
+ }
196
+ isFocused={option._index === focusIndex}
197
+ isSelected={utils.isOrIncludes(props.value, option)}>
198
+ {props?.components?.Option ? (
199
+ <props.components.Option option={option} />
200
+ ) : (
201
+ getLabel(option).toString()
202
+ )}
203
+ </Components.OptionWrapper>
204
+ ))}
205
+ </Components.OptionGroupValues>
206
+ </Components.OptionGroup>
207
+ ))}
208
+ </Components.OptionMenu>
209
+ )}
210
+ </Components.RelativeClickAwayListener>
211
+ </>
212
+ );
213
+ }) as unknown as <T>(props: NativeSelectProps<T>) => JSX.Element;
214
+
215
+ export function JRCInputSelect<T>(props: JRCInputSelectProps<T>) {
216
+ const { name, control, rules, label, htmlFor, labelIsLegend, description, helper } = props;
217
+
218
+ return (
219
+ <JRCFormFieldRenderer
220
+ name={name}
221
+ control={control}
222
+ rules={rules}
223
+ label={label}
224
+ htmlFor={htmlFor}
225
+ labelIsLegend={labelIsLegend}
226
+ description={description}
227
+ helper={helper}
228
+ renderFunction={(field) => <Select {...props} {...field} />}
229
+ />
230
+ );
231
+ }
@@ -0,0 +1,51 @@
1
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
2
+ import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
3
+ import { DataCy } from '../../../../types/dataAttributes';
4
+
5
+ /**
6
+ * Select
7
+ */
8
+ export type NativeSelectProps<T> = ControllerRenderProps<T> & SelectProps;
9
+ export type JRCInputSelectProps<T> = JRCInputFieldProps<T> & SelectProps;
10
+
11
+ export type Getter = ((option: any) => any) | string;
12
+
13
+ export type SelectProps = DataCy & {
14
+ options?: Array<any>;
15
+ asyncPromise?: (inputValue: string) => Promise<any[]>;
16
+
17
+ multiple?: boolean;
18
+
19
+ getLabel?: ((option: any) => any) | string;
20
+ getValue?: ((option: any) => any) | string;
21
+
22
+ disabled?: boolean;
23
+ placeholder?: string;
24
+
25
+ searchable?: boolean;
26
+ getSearch?: ((option: any) => any) | string;
27
+
28
+ group?: boolean;
29
+ getGroup?: ((option: any) => any) | string;
30
+
31
+ components?: {
32
+ // Receive a full option object
33
+ Option?: React.ComponentType<{ option: any }>;
34
+ // Receive an option if getValue is not provided, getValue(option) otherwise
35
+ SelectedOption?: React.ComponentType<{ option: any }>;
36
+ };
37
+ };
38
+
39
+ /**
40
+ * Autocomplete
41
+ */
42
+ export type NativeAutocompleteProps<T> = ControllerRenderProps<T> & AutocompleteInnerProps;
43
+ export type JRCAutocompleteProps<T> = JRCInputFieldProps<T> & AutocompleteInnerProps;
44
+
45
+ export type AutocompleteLittle = { uri: string; title: string };
46
+
47
+ export type AutocompleteInnerProps = Omit<SelectProps, 'options'> &
48
+ DataCy & {
49
+ options?: Array<AutocompleteLittle>;
50
+ asyncPromise?: (inputValue: string) => Promise<Array<AutocompleteLittle>>;
51
+ };
@@ -0,0 +1,92 @@
1
+ import { deepEqual } from '../../../../utils/utils.object';
2
+
3
+ /**
4
+ * Get index of an object within an array (works with objects)
5
+ * @param arr
6
+ * @param element
7
+ */
8
+ export function getIndex(arr: Array<any>, element: any): number {
9
+ return arr.findIndex((v) => deepEqual(v, element));
10
+ }
11
+
12
+ /**
13
+ * Remove an object within an array (works with objects)
14
+ * @param arr
15
+ * @param value
16
+ */
17
+ export function removeItem<T>(arr: Array<T>, value: T): Array<T> {
18
+ const index = getIndex(arr, value);
19
+ if (index >= 0) {
20
+ arr.splice(index, 1);
21
+ }
22
+ return arr;
23
+ }
24
+
25
+ /**
26
+ * Adds an object within an array. Instantiate it if the arr is neither an array nor defined
27
+ * @param arr
28
+ * @param value
29
+ */
30
+ export function addItem<T>(arr: Array<T> | any, value: T): Array<T> {
31
+ if (Array.isArray(arr)) {
32
+ arr.push(value);
33
+ return arr;
34
+ } else {
35
+ return [value];
36
+ }
37
+ }
38
+
39
+ /**
40
+ * Sorts, Adds an index then groups an array with a grouping function
41
+ * @param arr
42
+ * @param getGroup
43
+ */
44
+ export function group<T>(
45
+ arr: Array<T>,
46
+ getGroup: (v: T) => string,
47
+ ): { label: string; options: (T & { _index: number })[] }[] {
48
+ const mappedArr = arr
49
+ // add group value once for future use
50
+ .map((el) => ({ el, group: getGroup(el) }))
51
+ // sort alphabetically in order for the indexes to be in the right order
52
+ .sort((el1, el2) => (el1.group === el2.group ? 0 : el1.group < el2.group ? -1 : 1))
53
+ // group options by their grouping property
54
+ .reduce((acc, { el, group }, index) => {
55
+ if (acc.get(group)) acc.set(group, [...acc.get(group), { ...el, _index: index }]);
56
+ else acc.set(group, [{ ...el, _index: index }]);
57
+ return acc;
58
+ }, new Map());
59
+ // Convert map to array of array
60
+ return Array.from(mappedArr).map(([k, v]) => ({ label: k, options: v }));
61
+ }
62
+
63
+ /**
64
+ * Returns the attribute of an object according to a getter
65
+ * If the return value is falsy, always return an empty string to avoid warning: "A component is changing a controlled input to be uncontrolled"
66
+ * @param obj
67
+ * @param getter
68
+ */
69
+ export function get(obj: any, getter: any): any {
70
+ if (getter && typeof getter === 'function') return getter(obj) || '';
71
+ else if (getter && typeof getter === 'string') return obj[getter] || '';
72
+ return obj || '';
73
+ }
74
+
75
+ /**
76
+ * If the obj is an array, check if the search is in it. Otherwise, checks if the search is the object
77
+ * @param obj
78
+ * @param search
79
+ */
80
+ export function isOrIncludes<T>(obj: T | Array<T>, search: T) {
81
+ if (Array.isArray(obj)) {
82
+ return getIndex(obj, search) >= 0;
83
+ } else {
84
+ return deepEqual(obj, search);
85
+ }
86
+ }
87
+
88
+ /**
89
+ * Returns true if it is falsy, an empty array or an empty object
90
+ * @param v
91
+ */
92
+ export const isNullOrEmpty = (v: any | undefined) => !v || (Array.isArray(v) && !v.length) || v == {};