jamespot-react-components 1.0.145 → 1.0.147

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 (237) hide show
  1. package/build/assets/gif.605d1d151a01356b376d5c4ac2f40d19.png +0 -0
  2. package/build/jamespot-react-components.js +540 -570
  3. package/build/jamespot-react-components.js.LICENSE.txt +26 -5
  4. package/build/jamespot-react-components.js.map +1 -1
  5. package/build/src/components/404/index.d.ts +2 -1
  6. package/build/src/components/Beta/BETA_JRCColorPicker/BETA_JRCColorPicker.d.ts +2 -1
  7. package/build/src/components/Beta/BETA_JRCColorPicker/ColorInput.d.ts +2 -1
  8. package/build/src/components/Beta/BETA_JRCColorPicker/ColorPalette.d.ts +3 -2
  9. package/build/src/components/Beta/BETA_JRCColorPicker/ColorPicker.d.ts +4 -3
  10. package/build/src/components/Beta/BETA_JRCColorPicker/ColorRange.d.ts +2 -1
  11. package/build/src/components/Beta/BETA_JRCColorPicker/DragArea.d.ts +2 -2
  12. package/build/src/components/Beta/BETA_JRCColorPicker/JRCColorPicker.types.d.ts +4 -4
  13. package/build/src/components/Beta/BETA_JRCDoubleClick/BETA_JRCDoubleClick.d.ts +2 -2
  14. package/build/src/components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop.d.ts +2 -2
  15. package/build/src/components/Common/DashedFocusBorder.d.ts +1 -1
  16. package/build/src/components/Common/FastCss.d.ts +2 -1
  17. package/build/src/components/Common/JRCConditionalWrapper.d.ts +2 -2
  18. package/build/src/components/Common/LimitLines.d.ts +1 -1
  19. package/build/src/components/Common/util/getColor.util.d.ts +1 -1
  20. package/build/src/components/Editors/components/EditorCheckbox.d.ts +2 -1
  21. package/build/src/components/Editors/components/EditorColorPicker.d.ts +2 -1
  22. package/build/src/components/Editors/components/EditorInput.d.ts +4 -2
  23. package/build/src/components/Editors/components/EditorSelect.d.ts +6 -4
  24. package/build/src/components/Editors/components/EditorUploader.d.ts +5 -4
  25. package/build/src/components/Form/Common/ClickAwayListener.d.ts +4 -4
  26. package/build/src/components/Form/Common/FormDescription.d.ts +2 -2
  27. package/build/src/components/Form/Common/FormHelper.d.ts +3 -2
  28. package/build/src/components/Form/Common/FormLabel.d.ts +1 -1
  29. package/build/src/components/Form/Common/FormMessageFeedback.d.ts +2 -1
  30. package/build/src/components/Form/Common/types.d.ts +1 -1
  31. package/build/src/components/Form/Input/Common/JRCFormErrors.d.ts +2 -1
  32. package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +2 -2
  33. package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +3 -3
  34. package/build/src/components/Form/Input/Common/useFormControls.d.ts +5 -5
  35. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteAudience.d.ts +2 -1
  36. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteCommunity.d.ts +2 -1
  37. package/build/src/components/Form/Input/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.d.ts +2 -1
  38. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.d.ts +2 -1
  39. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +2 -2
  40. package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +2 -2
  41. package/build/src/components/Form/Input/JRCFormColor/JRCFormColor.d.ts +2 -1
  42. package/build/src/components/Form/Input/JRCFormDateTime/JRCFormDateTime.d.ts +5 -5
  43. package/build/src/components/Form/Input/JRCFormEmail/JRCFormEmail.d.ts +2 -1
  44. package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.d.ts +2 -2
  45. package/build/src/components/Form/Input/JRCFormFieldRender.d.ts +2 -2
  46. package/build/src/components/Form/Input/JRCFormFile/File.d.ts +4 -3
  47. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.d.ts +5 -5
  48. package/build/src/components/Form/Input/JRCFormFile/JRCFormFile.styles.d.ts +1 -1
  49. package/build/src/components/Form/Input/JRCFormFile/file.api.d.ts +15 -2
  50. package/build/src/components/Form/Input/JRCFormImage/JRCFormImage.d.ts +3 -3
  51. package/build/src/components/Form/Input/JRCFormNumber/JRCFormNumber.d.ts +2 -1
  52. package/build/src/components/Form/Input/JRCFormRange/JRCFormRange.d.ts +2 -1
  53. package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.d.ts +2 -2
  54. package/build/src/components/Form/Input/JRCFormReceiveACopy/JRCFormReceiveACopy.stories.d.ts +1 -1
  55. package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichEditorField.styles.d.ts +3 -3
  56. package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +4 -4
  57. package/build/src/components/Form/Input/JRCFormRichText/extensions/mentions/MentionList.d.ts +2 -2
  58. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.d.ts +4 -4
  59. package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.d.ts +2 -1
  60. package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.d.ts +2 -2
  61. package/build/src/components/Form/Input/JRCFormSendAlert/JRCFormSendAlert.stories.d.ts +1 -1
  62. package/build/src/components/Form/Input/JRCFormText/JRCFormText.d.ts +2 -1
  63. package/build/src/components/Form/Input/JRCFormTextarea/JRCFormTextarea.d.ts +1 -1
  64. package/build/src/components/Form/Input/JRCFormURL/JRCFormUrl.d.ts +2 -1
  65. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +5 -5
  66. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +5 -5
  67. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputReorderCheckbox.d.ts +5 -5
  68. package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.d.ts +3 -3
  69. package/build/src/components/Form/Input/JRCInputFile/JRCInputFile.d.ts +9 -9
  70. package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +6 -8
  71. package/build/src/components/Form/Input/JRCInputRange/JRCInputRange.d.ts +3 -3
  72. package/build/src/components/Form/Input/JRCInputRichText/JRCInputRichText.d.ts +4 -4
  73. package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +3 -3
  74. package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +2 -2
  75. package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +4 -4
  76. package/build/src/components/Form/Input/JRCInputText/JRCInputTextIconButton.d.ts +3 -3
  77. package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.d.ts +2 -2
  78. package/build/src/components/Form/Input/JRCInputTime/JRCInputTime.d.ts +2 -2
  79. package/build/src/components/Form/Input/JRCInputUrl/JRCInputUrl.d.ts +3 -3
  80. package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +2 -2
  81. package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +2 -2
  82. package/build/src/components/Form/Input/JRCSelect/JRCInputAudience.d.ts +3 -3
  83. package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +4 -4
  84. package/build/src/components/Form/Input/JRCSelect/JRCInputAutocompleteViews.d.ts +3 -2
  85. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +2 -2
  86. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.defaults.d.ts +2 -1
  87. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +1 -1
  88. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +9 -9
  89. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +1 -1
  90. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.d.ts +2 -2
  91. package/build/src/components/Form/Input/JRCSelect/JRCInputSelectList.d.ts +3 -2
  92. package/build/src/components/Form/Input/JRCSelect/JRCInputTaxonomy.d.ts +3 -3
  93. package/build/src/components/Form/Input/JRCSelect/SelectHierarchicalTreeModal.d.ts +2 -2
  94. package/build/src/components/Form/Input/JRCStyledInput.d.ts +4 -3
  95. package/build/src/components/Form/Input/ReduxFormControls.d.ts +1 -1
  96. package/build/src/components/JRCAlert/JRCAlert.d.ts +1 -1
  97. package/build/src/components/JRCAppContainer/JRCAppContainer.d.ts +1 -1
  98. package/build/src/components/JRCAppHeader/JRCAppHeader.d.ts +2 -1
  99. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.d.ts +2 -1
  100. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.d.ts +3 -3
  101. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +4 -4
  102. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.types.d.ts +1 -1
  103. package/build/src/components/JRCAppLeftColumn/JRCDefaultMenu.d.ts +2 -1
  104. package/build/src/components/JRCAvatar/JRCAvatar.d.ts +3 -2
  105. package/build/src/components/JRCButton/JRCButton.d.ts +5 -5
  106. package/build/src/components/JRCButton/JRCButton.stories.d.ts +2 -2
  107. package/build/src/components/JRCButton/JRCButtonConfig.d.ts +1 -1
  108. package/build/src/components/JRCButton/JRCValidationButton.d.ts +2 -2
  109. package/build/src/components/JRCButtonDownload/JRCButtonDownload.d.ts +2 -1
  110. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.d.ts +2 -1
  111. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +2 -2
  112. package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +6 -6
  113. package/build/src/components/JRCButtonFile/JRCButtonFile.d.ts +2 -1
  114. package/build/src/components/JRCCard/JRCCard.d.ts +5 -5
  115. package/build/src/components/JRCCard/JRCCardImg.d.ts +3 -3
  116. package/build/src/components/JRCColumnCenter/JRCColumnCenter.d.ts +1 -1
  117. package/build/src/components/JRCColumnLeft/JRCColumnLeft.d.ts +1 -1
  118. package/build/src/components/JRCColumnRight/JRCColumnRight.d.ts +1 -1
  119. package/build/src/components/JRCCropImage/JRCCropImage.d.ts +6 -6
  120. package/build/src/components/JRCDate/JRCDate.d.ts +2 -1
  121. package/build/src/components/JRCDate/JRCDate.stories.d.ts +2 -2
  122. package/build/src/components/JRCDropDown/JRCDropDown.d.ts +1 -1
  123. package/build/src/components/JRCEllipsis/JRCEllipsis.d.ts +3 -2
  124. package/build/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +12 -0
  125. package/build/src/components/JRCEmptySpace/JRCEmptySpace.stories.d.ts +4 -0
  126. package/build/src/components/JRCFile/JRCFile.d.ts +2 -1
  127. package/build/src/components/JRCFile/JRCFileApplication.d.ts +2 -1
  128. package/build/src/components/JRCFile/JRCFileAudio.d.ts +2 -1
  129. package/build/src/components/JRCFile/JRCFileAvatar.d.ts +2 -1
  130. package/build/src/components/JRCFile/JRCFileImage.d.ts +6 -2
  131. package/build/src/components/JRCFile/JRCFileVideo.d.ts +2 -1
  132. package/build/src/components/JRCFile/types.d.ts +1 -1
  133. package/build/src/components/JRCFileOpen/JRCFileOpen.d.ts +1 -1
  134. package/build/src/components/JRCFileViewer/JRCFileViewer.d.ts +14 -2
  135. package/build/src/components/JRCFileViewer/JRCFileViewer.styles.d.ts +1 -0
  136. package/build/src/components/JRCFileViewer/JRCFileViewerArrows.d.ts +7 -2
  137. package/build/src/components/JRCFileViewer/JRCFileViewerContent.d.ts +7 -5
  138. package/build/src/components/JRCFileViewer/JRCFileViewerContentApplication.d.ts +5 -4
  139. package/build/src/components/JRCFileViewer/JRCFileViewerContentAudio.d.ts +1 -1
  140. package/build/src/components/JRCFileViewer/JRCFileViewerContentImage.d.ts +1 -1
  141. package/build/src/components/JRCFileViewer/JRCFileViewerContentVideo.d.ts +1 -1
  142. package/build/src/components/JRCFileViewer/JRCFileViewerOpenWithOptions.d.ts +6 -4
  143. package/build/src/components/JRCFileViewer/types.d.ts +6 -12
  144. package/build/src/components/JRCFileViewer/utils.d.ts +4 -4
  145. package/build/src/components/JRCFlex/JRCFlexBox.d.ts +5 -5
  146. package/build/src/components/JRCFolders/JRCFolder.d.ts +2 -1
  147. package/build/src/components/JRCFolders/JRCFolderBreadcrumb.d.ts +2 -1
  148. package/build/src/components/JRCFolders/JRCFolders.d.ts +2 -1
  149. package/build/src/components/JRCFolders/JRCFolders.stories.d.ts +2 -2
  150. package/build/src/components/JRCFolders/types.d.ts +2 -2
  151. package/build/src/components/JRCGrid/JRCGrid.d.ts +1 -1
  152. package/build/src/components/JRCGrid/JRCGrid.stories.d.ts +5 -5
  153. package/build/src/components/JRCHref/JRCHref.d.ts +8 -7
  154. package/build/src/components/JRCHtml/JRCHtml.d.ts +2 -2
  155. package/build/src/components/JRCIcon/JRCIcon.d.ts +2 -1
  156. package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +2 -2
  157. package/build/src/components/JRCIconButton/JRCIconButton.d.ts +2 -2
  158. package/build/src/components/JRCImg/JRCImg.d.ts +3 -2
  159. package/build/src/components/JRCList/JRCList.d.ts +5 -4
  160. package/build/src/components/JRCList/JRCList.stories.d.ts +1 -1
  161. package/build/src/components/JRCList/JRCList.styles.d.ts +5 -5
  162. package/build/src/components/JRCLoader/JRCLoader.d.ts +3 -2
  163. package/build/src/components/JRCLoader/JRCSkeleton.d.ts +2 -1
  164. package/build/src/components/JRCMenu/JRCMenu.stories.d.ts +2 -2
  165. package/build/src/components/JRCMenuItem/JRCMenuItem.d.ts +1 -1
  166. package/build/src/components/JRCModal/JRCModal.styles.d.ts +1 -1
  167. package/build/src/components/JRCModalImg/JRCModalImg.d.ts +2 -2
  168. package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +2 -2
  169. package/build/src/components/JRCPagination/JRCPagination.d.ts +5 -4
  170. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.d.ts +1 -1
  171. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +1 -1
  172. package/build/src/components/JRCSkeleton/JRCSkeletonLine.d.ts +3 -2
  173. package/build/src/components/JRCSkeleton/JRCSkeletonList.d.ts +1 -1
  174. package/build/src/components/JRCSkeleton/JRCSkeletonSquare.d.ts +1 -1
  175. package/build/src/components/JRCTabs/JRCTabs.d.ts +3 -3
  176. package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +2 -2
  177. package/build/src/components/JRCTag/JRCTag.d.ts +2 -2
  178. package/build/src/components/JRCThemeProvider/JRCThemeProvider.d.ts +1 -1
  179. package/build/src/components/JRCTooltip/JRCBaseTooltip.d.ts +4 -3
  180. package/build/src/components/JRCTooltip/JRCTooltip.d.ts +1 -1
  181. package/build/src/components/JRCTypo/JRCTypo.d.ts +10 -10
  182. package/build/src/components/JRCTypo/JRCTypo.stories.d.ts +7 -7
  183. package/build/src/components/JRCTypography/JRCTypography.d.d.ts +4 -4
  184. package/build/src/components/JRCTypography/JRCTypography.d.ts +2 -1
  185. package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +6 -6
  186. package/build/src/components/Stepper/JRCFadeStepper.d.ts +2 -2
  187. package/build/src/components/Stepper/JRCImageStepper.d.ts +3 -3
  188. package/build/src/components/Stepper/JRCStepper.d.ts +3 -3
  189. package/build/src/components/Stepper/JRCStepper.stories.d.ts +2 -2
  190. package/build/src/components/Templates/JRCAppColumn.d.ts +2 -2
  191. package/build/src/components/Templates/JRCAppTab.d.ts +3 -3
  192. package/build/src/components/Templates/JRCBase.template.d.ts +2 -2
  193. package/build/src/components/Templates/JRCColumn.d.ts +2 -2
  194. package/build/src/components/Templates/JRCMainColumn.d.ts +2 -2
  195. package/build/src/components/Templates/JRCPanel.d.ts +2 -2
  196. package/build/src/components/Templates/JRCStepperPage.d.ts +2 -2
  197. package/build/src/components/Templates/JRCTwoColumns.template.d.ts +1 -1
  198. package/build/src/components/Templates/template.type.d.ts +13 -13
  199. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.d.ts +6 -5
  200. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachment.stories.d.ts +7 -0
  201. package/build/src/components/Widgets/JRCWidgetArticleAttachment/JRCWidgetArticleAttachmentEditor.d.ts +2 -2
  202. package/build/src/components/Widgets/JRCWidgetArticleButton/JRCWidgetArticleButton.d.ts +2 -1
  203. package/build/src/components/Widgets/JRCWidgetArticleButton/JRCWidgetArticleButtonEditor.d.ts +3 -2
  204. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.d.ts +6 -16
  205. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +8 -0
  206. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGalleryEditor.d.ts +3 -2
  207. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.d.ts +6 -5
  208. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImage.stories.d.ts +8 -0
  209. package/build/src/components/Widgets/JRCWidgetArticleImage/JRCWidgetArticleImageEditor.d.ts +3 -2
  210. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.d.ts +2 -1
  211. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +7 -0
  212. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleTextEditor.d.ts +3 -2
  213. package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.d.ts +8 -4
  214. package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitleEditor.d.ts +2 -2
  215. package/build/src/components/Widgets/JRCWidgetEmptyInplace.d.ts +3 -2
  216. package/build/src/components/Widgets/components/WidgetMissingToken.d.ts +2 -1
  217. package/build/src/components/Widgets/const.d.ts +0 -4
  218. package/build/src/components/Widgets/utils.d.ts +3 -3
  219. package/build/src/hooks/UseImageLoader.d.ts +1 -1
  220. package/build/src/hooks/useRefSize.d.ts +6 -0
  221. package/build/src/index.d.ts +3 -0
  222. package/build/src/storybook/decorators.d.ts +2 -2
  223. package/build/src/styles/Theme.stories.d.ts +2 -2
  224. package/build/src/styles/theme.d.ts +9 -9
  225. package/build/src/types.d.ts +1 -0
  226. package/build/src/utils/index.d.ts +4 -2
  227. package/build/src/utils/test-utils.d.ts +1 -1
  228. package/build/src/utils/utils.array.d.ts +1 -1
  229. package/build/src/utils/utils.color.d.ts +3 -1
  230. package/build/src/utils/utils.date.d.ts +1 -1
  231. package/build/src/utils/utils.files.d.ts +113 -2
  232. package/package.json +145 -146
  233. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +0 -320
  234. package/build/src/components/Templates/template.styles.d.ts +0 -323
  235. package/build/src/components/Widgets/components/Attachment.d.ts +0 -33
  236. package/build/src/components/Widgets/components/Image.d.ts +0 -9
  237. package/pnpm-lock.yaml +0 -20909
@@ -2,10 +2,10 @@ import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { FieldValues } from 'react-hook-form/dist/types';
5
- export declare type JRCInputUrlProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
5
+ export type JRCInputUrlProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
6
6
  width?: string;
7
7
  };
8
- export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
8
+ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
9
9
  width?: string | undefined;
10
10
  } & React.RefAttributes<HTMLInputElement>>;
11
11
  /**
@@ -16,4 +16,4 @@ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Pick<
16
16
  */
17
17
  export declare function JRCInputUrl<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
18
18
  width?: string;
19
- }): JSX.Element;
19
+ }): React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
3
  import { FieldValues } from 'react-hook-form/dist/types';
4
- export declare type JRCAutocompleteCommunityProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & {
4
+ export type JRCAutocompleteCommunityProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & {
5
5
  multiple?: boolean;
6
6
  searchable?: boolean;
7
7
  };
8
- export declare function JRCInputCommunity<T extends FieldValues = FieldValues>(props: JRCAutocompleteCommunityProps<T>, _ref: React.ForwardedRef<HTMLInputElement>): JSX.Element;
8
+ export declare function JRCInputCommunity<T extends FieldValues = FieldValues>(props: JRCAutocompleteCommunityProps<T>, _ref: React.ForwardedRef<HTMLInputElement>): React.JSX.Element;
@@ -2,11 +2,11 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { JRCAutocompleteCommunityProps } from './JRCAutocompleteCommunity';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- declare type Community = {
5
+ type Community = {
6
6
  uri: string;
7
7
  title: string;
8
8
  };
9
- declare type FormData = {
9
+ type FormData = {
10
10
  selectSimple: Community;
11
11
  selectMultiple: Array<Community>;
12
12
  };
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { FieldValues } from 'react-hook-form/dist/types';
3
3
  import { JRCAutocompleteProps } from './JRCInputSelect.types';
4
- export declare type JRCInputAudienceProps<T extends FieldValues = FieldValues> = JRCAutocompleteProps<T> & {
4
+ export type JRCInputAudienceProps<T extends FieldValues = FieldValues> = JRCAutocompleteProps<T> & {
5
5
  multiple?: boolean;
6
6
  searchable?: boolean;
7
7
  };
8
- export declare function JRCInputAudience<T extends FieldValues = FieldValues>(props: JRCInputAudienceProps<T>): JSX.Element;
8
+ export declare function JRCInputAudience<T extends FieldValues = FieldValues>(props: JRCInputAudienceProps<T>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { AutocompleteLittle, JRCAutocompleteProps, NativeAutocompleteProps } from './JRCInputSelect.types';
3
3
  import { FieldValues } from 'react-hook-form/dist/types';
4
4
  export declare function CustomOption({ option, }: {
@@ -7,11 +7,11 @@ export declare function CustomOption({ option, }: {
7
7
  custom?: boolean;
8
8
  icon?: string;
9
9
  };
10
- }): JSX.Element;
10
+ }): React.JSX.Element;
11
11
  export declare function CustomSelectedOption({ option }: {
12
12
  option: AutocompleteLittle & {
13
13
  icon?: string;
14
14
  };
15
- }): JSX.Element;
15
+ }): React.JSX.Element;
16
16
  export declare const NativeAutocomplete: <T extends FieldValues = FieldValues>(props: NativeAutocompleteProps<T>) => JSX.Element;
17
- export declare function JRCInputAutocomplete<T extends FieldValues = FieldValues>(props: JRCAutocompleteProps<T>): JSX.Element;
17
+ export declare function JRCInputAutocomplete<T extends FieldValues = FieldValues>(props: JRCAutocompleteProps<T>): React.JSX.Element;
@@ -1,9 +1,10 @@
1
+ import React from 'react';
1
2
  import { AudienceAutocomplete } from 'jamespot-user-api';
2
3
  export declare const CSSViewsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare type AVProps = {
4
+ export type AVProps = {
4
5
  views: Array<'folder' | 'user' | 'group' | 'community'>;
5
6
  initialValues: AudienceAutocomplete[];
6
7
  onConfirm: (values: any) => void;
7
8
  };
8
- declare const JRCInputAutocompleteViews: ({ views, initialValues, onConfirm }: AVProps) => JSX.Element;
9
+ declare const JRCInputAutocompleteViews: ({ views, initialValues, onConfirm }: AVProps) => React.JSX.Element;
9
10
  export { JRCInputAutocompleteViews };
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { JRCInputSelectProps, NativeSelectProps } from './JRCInputSelect.types';
3
3
  import type { FieldValues } from 'react-hook-form';
4
4
  export declare const Select: <T extends FieldValues = FieldValues>(props: NativeSelectProps<T>) => JSX.Element;
5
- export declare function JRCInputSelect<T extends FieldValues = FieldValues>(props: JRCInputSelectProps<T>): JSX.Element;
5
+ export declare function JRCInputSelect<T extends FieldValues = FieldValues>(props: JRCInputSelectProps<T>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  export declare const LabelDescriptionOption: {
2
3
  Option: ({ option }: {
3
4
  option: {
@@ -5,5 +6,5 @@ export declare const LabelDescriptionOption: {
5
6
  description: string;
6
7
  recommended?: boolean;
7
8
  };
8
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
9
10
  };
@@ -2,7 +2,7 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { JRCInputSelectProps } from './JRCInputSelect.types';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- declare type Data = {
5
+ type Data = {
6
6
  animal: string;
7
7
  cat: string;
8
8
  };
@@ -7,17 +7,17 @@ import React from 'react';
7
7
  /**
8
8
  * Select
9
9
  */
10
- export declare type NativeSelectProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & SelectProps & IconsProp;
11
- export declare type JRCInputSelectProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & SelectProps & IconsProp;
12
- export declare type Getter = ((option: any) => any) | string;
13
- export declare type IconsProp = {
10
+ export type NativeSelectProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & SelectProps & IconsProp;
11
+ export type JRCInputSelectProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & SelectProps & IconsProp;
12
+ export type Getter = ((option: any) => any) | string;
13
+ export type IconsProp = {
14
14
  iconBefore?: {
15
15
  icon: string;
16
16
  color?: Colors | Shades | 'inherit';
17
17
  onClick?: () => void;
18
18
  };
19
19
  };
20
- export declare type SelectProps = DataCy & {
20
+ export type SelectProps = DataCy & {
21
21
  options?: Array<any>;
22
22
  asyncPromise?: (inputValue: string, page?: number) => Promise<any[]>;
23
23
  multiple?: boolean;
@@ -59,13 +59,13 @@ export declare type SelectProps = DataCy & {
59
59
  /**
60
60
  * Autocomplete
61
61
  */
62
- export declare type NativeAutocompleteProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & AutocompleteInnerProps;
63
- export declare type JRCAutocompleteProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & AutocompleteInnerProps;
64
- export declare type AutocompleteLittle = {
62
+ export type NativeAutocompleteProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & AutocompleteInnerProps;
63
+ export type JRCAutocompleteProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & AutocompleteInnerProps;
64
+ export type AutocompleteLittle = {
65
65
  uri: string;
66
66
  title: string;
67
67
  };
68
- export declare type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & {
68
+ export type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & {
69
69
  options?: Array<AutocompleteLittle>;
70
70
  asyncPromise?: (inputValue: string) => Promise<Array<AutocompleteLittle>>;
71
71
  allowCustomOption?: boolean;
@@ -2,7 +2,7 @@ import { Meta, Story } from '@storybook/react';
2
2
  import { JRCInputSelectProps } from './JRCInputSelect.types';
3
3
  declare const _default: Meta<import("@storybook/react").Args>;
4
4
  export default _default;
5
- declare type Data = {
5
+ type Data = {
6
6
  animal: string;
7
7
  cat: string;
8
8
  };
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { JRCInputSelectProps } from './JRCInputSelect.types';
3
3
  import { JRCModalProps } from 'components/JRCModal/JRCModal';
4
4
  import { AutoCompleteConcept, PagingResults } from 'jamespot-user-api';
5
- export declare type JRCInputSelectHierarchicalTreeProps = Omit<JRCInputSelectProps, 'asyncPromise'> & JRCModalProps & {
5
+ export type JRCInputSelectHierarchicalTreeProps = Omit<JRCInputSelectProps, 'asyncPromise'> & JRCModalProps & {
6
6
  asyncPromise?: (inputValue: string, page?: number) => Promise<PagingResults<any>>;
7
7
  hierarchicalTaxonomyPromise: (uriConcept: string) => Promise<PagingResults<AutoCompleteConcept>>;
8
8
  displayModal?: boolean;
@@ -12,7 +12,7 @@ export declare type JRCInputSelectHierarchicalTreeProps = Omit<JRCInputSelectPro
12
12
  }>;
13
13
  };
14
14
  export declare const JRCInputSelectHierarchicalTree: React.ForwardRefExoticComponent<Omit<JRCInputSelectProps<import("react-hook-form").FieldValues>, "asyncPromise"> & JRCModalProps & {
15
- asyncPromise?: ((inputValue: string, page?: number | undefined) => Promise<PagingResults<any>>) | undefined;
15
+ asyncPromise?: ((inputValue: string, page?: number) => Promise<PagingResults<any>>) | undefined;
16
16
  hierarchicalTaxonomyPromise: (uriConcept: string) => Promise<PagingResults<AutoCompleteConcept>>;
17
17
  displayModal?: boolean | undefined;
18
18
  checkboxOptions: Array<{
@@ -1,9 +1,10 @@
1
+ import * as React from 'react';
1
2
  import { JRCInputSelectProps } from './JRCInputSelect.types';
2
3
  import { JRCModalProps } from 'components/JRCModal/JRCModal';
3
4
  import { BaseAutocomplete, PagingResults } from 'jamespot-user-api';
4
- export declare type JRCInputSelectListProps = Omit<JRCInputSelectProps, 'asyncPromise'> & JRCModalProps & {
5
+ export type JRCInputSelectListProps = Omit<JRCInputSelectProps, 'asyncPromise'> & JRCModalProps & {
5
6
  asyncPromise?: (inputValue: string, page?: number) => Promise<PagingResults<any>>;
6
7
  displayModal?: boolean;
7
8
  setValues: (name: string, values: BaseAutocomplete[]) => void;
8
9
  };
9
- export declare const JRCInputSelectList: ({ asyncPromise, displayModal, inPlace, width, placeholder, setValues, control, name, ...props }: JRCInputSelectListProps) => JSX.Element;
10
+ export declare const JRCInputSelectList: ({ asyncPromise, displayModal, inPlace, width, placeholder, setValues, control, name, ...props }: JRCInputSelectListProps) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { FieldValues } from 'react-hook-form/dist/types';
3
3
  import { JRCAutocompleteProps } from './JRCInputSelect.types';
4
- export declare type JRCInputTaxonomyProps<T extends FieldValues = FieldValues> = JRCAutocompleteProps<T> & {
4
+ export type JRCInputTaxonomyProps<T extends FieldValues = FieldValues> = JRCAutocompleteProps<T> & {
5
5
  type: string;
6
6
  taxonomyId: string;
7
7
  asyncPromise?: (inputValue: string) => Promise<any[]>;
8
8
  };
9
- export declare function JRCInputTaxonomy<T extends FieldValues = FieldValues>({ taxonomyId, type, asyncPromise, ...props }: JRCInputTaxonomyProps<T>): JSX.Element;
9
+ export declare function JRCInputTaxonomy<T extends FieldValues = FieldValues>({ taxonomyId, type, asyncPromise, ...props }: JRCInputTaxonomyProps<T>): React.JSX.Element;
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import { AutoCompleteConcept, PagingResults } from 'jamespot-user-api';
3
- declare type SelectHierarchicalTreeModalProps = {
3
+ type SelectHierarchicalTreeModalProps = {
4
4
  hierarchicalTaxonomyPromise: (uriConcept: string) => Promise<PagingResults<AutoCompleteConcept>>;
5
5
  close: () => void;
6
6
  inPlace: boolean;
7
7
  options: any[];
8
8
  updateOptions: (options: any[]) => void;
9
9
  };
10
- export declare type SKOSTree = {
10
+ export type SKOSTree = {
11
11
  title: string;
12
12
  uri: string;
13
13
  };
@@ -1,10 +1,11 @@
1
+ import * as React from 'react';
1
2
  import { InputState } from './JRCFormFieldRender';
2
3
  import { DataCy } from '../../../types/dataAttributes';
3
4
  /**
4
5
  * Input styles are &&& encapsulated in order to go over the reset styles
5
6
  * and the not-resseted legacy style set with input[type="toto"]
6
7
  */
7
- export declare type IconsProps = {
8
+ export type IconsProps = {
8
9
  hasIconBefore?: boolean;
9
10
  hasIconAfter?: boolean;
10
11
  };
@@ -19,7 +20,7 @@ export declare const StyledInput: import("styled-components").StyledComponent<"i
19
20
  valid?: boolean | undefined;
20
21
  readOnly?: boolean | undefined;
21
22
  }, never>;
22
- export declare type StyledSelectProps = DataCy & IconsProps & {
23
+ export type StyledSelectProps = DataCy & IconsProps & {
23
24
  searchable?: boolean;
24
25
  };
25
26
  export declare const StyledSelect: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, DataCy & {
@@ -33,4 +34,4 @@ export declare const MaxLengthIndicatorContainer: import("styled-components").St
33
34
  export declare const MaxLengthIndicator: ({ maxLength, actualLength }: {
34
35
  maxLength?: number | undefined;
35
36
  actualLength: number;
36
- }) => JSX.Element;
37
+ }) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { IntlShape } from 'react-intl';
2
- export declare type ControlsProps = {
2
+ export type ControlsProps = {
3
3
  required?: boolean;
4
4
  minLength?: number;
5
5
  maxLength?: number;
@@ -15,4 +15,4 @@ export interface JRCAlertProps extends React.ComponentPropsWithoutRef<'div'> {
15
15
  /** Add buttons on the alert */
16
16
  buttons?: JRCButtonProps[];
17
17
  }
18
- export declare const JRCAlert: ({ label, description, hasLoader, buttons, type, timeout, }: JRCAlertProps) => JSX.Element | null;
18
+ export declare const JRCAlert: ({ label, description, hasLoader, buttons, type, timeout, }: JRCAlertProps) => React.JSX.Element | null;
@@ -3,5 +3,5 @@ export declare const CONTAINER_PADDING = 32;
3
3
  export interface JRCAppContainerProps {
4
4
  children: React.ReactNode;
5
5
  }
6
- declare const JRCAppContainer: (props: JRCAppContainerProps) => JSX.Element;
6
+ declare const JRCAppContainer: (props: JRCAppContainerProps) => React.JSX.Element;
7
7
  export { JRCAppContainer };
@@ -1,6 +1,7 @@
1
+ import * as React from 'react';
1
2
  import { JRCAppHeaderProps } from './JRCAppHeader.types';
2
3
  declare const JRCAppHeader: {
3
- (props: JRCAppHeaderProps): JSX.Element;
4
+ (props: JRCAppHeaderProps): React.JSX.Element;
4
5
  defaultProps: {};
5
6
  };
6
7
  export { JRCAppHeader };
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCAppLeftColumnProps, SectionEntry } from './JRCAppLeftColumn.types';
2
3
  /**
3
4
  * @deprecated
@@ -6,5 +7,5 @@ import { JRCAppLeftColumnProps, SectionEntry } from './JRCAppLeftColumn.types';
6
7
  * @param {sections, icon, color, title, description, activeItem, callback} props, @see JRCAppLeftColumnProps interface
7
8
  * @returns JSX.Element
8
9
  */
9
- declare const JRCAppLeftColumn: <T extends SectionEntry = SectionEntry>({ Component, ...props }: JRCAppLeftColumnProps<T>) => JSX.Element;
10
+ declare const JRCAppLeftColumn: <T extends SectionEntry = SectionEntry>({ Component, ...props }: JRCAppLeftColumnProps<T>) => React.JSX.Element;
10
11
  export { JRCAppLeftColumn };
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: <T extends import("./JRCAppLeftColumn.types").SectionEntry = import("./JRCAppLeftColumn.types").SectionEntry>({ Component, ...props }: import("./JRCAppLeftColumn.types").JRCAppLeftColumnProps<T>) => JSX.Element;
4
+ component: <T extends import("./JRCAppLeftColumn.types").SectionEntry = import("./JRCAppLeftColumn.types").SectionEntry>({ Component, ...props }: import("./JRCAppLeftColumn.types").JRCAppLeftColumnProps<T>) => React.JSX.Element;
5
5
  };
6
6
  export default _default;
7
- export declare const Simple: () => JSX.Element;
7
+ export declare const Simple: () => React.JSX.Element;
@@ -19,16 +19,16 @@ export declare const MenuWrapper: import("styled-components").StyledComponent<"d
19
19
  isMinimized: boolean;
20
20
  }, never>;
21
21
  export declare const ItemsIcon: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, import("../JRCTabs/JRCTabs").ItemProps, never>;
22
- export declare const TitleMenu: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>>, never>;
22
+ export declare const TitleMenu: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>;
23
23
  export declare const JRCIconButtonAppLeftColumn: import("styled-components").StyledComponent<{
24
- ({ hasLicense, ...props }: Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>>, "onClick"> & import("../../types/dataAttributes").DataCy & {
24
+ ({ hasLicense, ...props }: Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick"> & import("../../types/dataAttributes").DataCy & {
25
25
  icon: string;
26
26
  size?: "small" | "medium" | undefined;
27
27
  onClick?: ((event?: import("react").MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void) | undefined;
28
28
  name?: string | undefined;
29
29
  value?: string | undefined;
30
30
  disabled?: boolean | undefined;
31
- type?: "button" | "reset" | "submit" | undefined;
31
+ type?: "button" | "submit" | "reset" | undefined;
32
32
  bgBaseGrey?: 0 | 1 | 2 | undefined;
33
33
  color?: import("../../styles/theme").Colors | import("../../styles/theme").Shades | "inherit" | undefined;
34
34
  tooltip?: Omit<import("../..").JRCTooltipProps, "children"> | undefined;
@@ -38,7 +38,7 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
38
38
  type: string;
39
39
  variant: string;
40
40
  size: string;
41
- }): JSX.Element;
41
+ }): import("react").JSX.Element;
42
42
  defaultProps: {
43
43
  type: string;
44
44
  variant: string;
@@ -46,7 +46,7 @@ export interface MenuComponentProps<T> {
46
46
  * @member callback tab selection handler
47
47
  * @member Component element of each items menu.
48
48
  */
49
- export declare type JRCAppLeftColumnProps<T extends SectionEntry = SectionEntry> = {
49
+ export type JRCAppLeftColumnProps<T extends SectionEntry = SectionEntry> = {
50
50
  icon: string;
51
51
  color: string;
52
52
  title: string;
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  import { SectionEntry, MenuComponentProps } from './JRCAppLeftColumn.types';
2
- export declare const JRCDefaultMenu: <T extends SectionEntry>(props: MenuComponentProps<T>) => JSX.Element;
3
+ export declare const JRCDefaultMenu: <T extends SectionEntry>(props: MenuComponentProps<T>) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from 'react';
1
2
  import { JRCImgProps } from '../JRCImg/JRCImg';
2
3
  /**
3
4
  * Props type for JRCAvatar
@@ -16,7 +17,7 @@ import { JRCImgProps } from '../JRCImg/JRCImg';
16
17
  * @property iconWhite - Toggle default icon color white/black
17
18
  * @property from - image base url (imagestatic | imagecache)
18
19
  */
19
- export declare type JRCAvatarProps = Omit<JRCImgProps, 'size' | 'width' | 'height' | 'alt'> & {
20
+ export type JRCAvatarProps = Omit<JRCImgProps, 'size' | 'width' | 'height' | 'alt'> & {
20
21
  uri?: string;
21
22
  size?: number;
22
23
  variant?: 'circle' | 'square';
@@ -28,4 +29,4 @@ export declare type JRCAvatarProps = Omit<JRCImgProps, 'size' | 'width' | 'heigh
28
29
  alt?: string;
29
30
  onLoad?: () => void;
30
31
  };
31
- export declare const JRCAvatar: (props: JRCAvatarProps) => JSX.Element;
32
+ export declare const JRCAvatar: (props: JRCAvatarProps) => React.JSX.Element;
@@ -4,8 +4,8 @@ import { ButtonType } from './JRCButtonConfig';
4
4
  import { DataCy } from '../../types/dataAttributes';
5
5
  import { DashedFocusBorderProps } from '../Common/DashedFocusBorder';
6
6
  import { JRCTooltipProps } from '../JRCTooltip/JRCTooltip';
7
- export declare type ButtonColors = 'primary' | 'valid' | 'danger' | 'secondary' | 'cancel';
8
- export declare type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy & {
7
+ export type ButtonColors = 'primary' | 'valid' | 'danger' | 'secondary' | 'cancel';
8
+ export type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> & DataCy & {
9
9
  /** Color of the background of the button */
10
10
  color?: ButtonColors;
11
11
  /** Indicates loading of content on the button */
@@ -31,14 +31,14 @@ export declare type JRCButtonProps = React.ComponentPropsWithoutRef<'button'> &
31
31
  /** label, optional, replaces children */
32
32
  label?: string;
33
33
  };
34
- export declare const transformColor: (color?: string | undefined) => JRCIconProps['color'];
34
+ export declare const transformColor: (color?: string) => JRCIconProps['color'];
35
35
  /**
36
36
  * Button styling. May be used as a <a> tag
37
37
  */
38
38
  export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
39
39
  themeButton: ButtonType;
40
40
  hasLabel: boolean;
41
- } & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & DataCy & {
41
+ } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataCy & {
42
42
  /** Color of the background of the button */
43
43
  color?: ButtonColors | undefined;
44
44
  /** Indicates loading of content on the button */
@@ -64,7 +64,7 @@ export declare const Button: import("styled-components").StyledComponent<"button
64
64
  /** label, optional, replaces children */
65
65
  label?: string | undefined;
66
66
  } & DashedFocusBorderProps, never>;
67
- export declare const JRCButton: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & DataCy & {
67
+ export declare const JRCButton: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataCy & {
68
68
  /** Color of the background of the button */
69
69
  color?: ButtonColors | undefined;
70
70
  /** Indicates loading of content on the button */
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { JRCButtonProps } from './JRCButton';
3
3
  import { JRCValidationButtonProps } from './JRCValidationButton';
4
4
  import { Meta, Story } from '@storybook/react';
5
5
  declare const _default: Meta<import("@storybook/react").Args>;
6
6
  export default _default;
7
7
  export declare const CustomButton: Story<JRCButtonProps>;
8
- export declare const AllButtons: () => JSX.Element;
8
+ export declare const AllButtons: () => React.JSX.Element;
9
9
  export declare const ValidationButton: Story<JRCValidationButtonProps>;
@@ -252,7 +252,7 @@ export declare const BUTTON_CONFIG: {
252
252
  };
253
253
  };
254
254
  };
255
- export declare type ButtonType = {
255
+ export type ButtonType = {
256
256
  color: string;
257
257
  background: string;
258
258
  border: string;
@@ -5,8 +5,8 @@ import { JRCButtonProps } from './JRCButton';
5
5
  * @member onValidationClick, optional callback called when the first click is made
6
6
  * @member validationMessage, optional validation message, default to "Confirm / Valider"
7
7
  */
8
- export declare type JRCValidationButtonProps = JRCButtonProps & {
8
+ export type JRCValidationButtonProps = JRCButtonProps & {
9
9
  onValidationClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
10
10
  validationMessage?: string;
11
11
  };
12
- export declare const JRCValidationButton: ({ onClick, onValidationClick, children, color, variant, icon, ...props }: JRCValidationButtonProps) => JSX.Element;
12
+ export declare const JRCValidationButton: ({ onClick, onValidationClick, children, color, variant, icon, ...props }: JRCValidationButtonProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { JRCButtonProps } from '../JRCButton/JRCButton';
2
3
  import { Colors, Shades } from 'styles/theme';
3
4
  /**
@@ -17,4 +18,4 @@ export interface JRCButtonDownloadProps extends JRCButtonProps {
17
18
  * @param {label, action?, color?, variant?} props, @see JRCButtonDropdownProps
18
19
  * @returns JSX.Element
19
20
  */
20
- export declare const JRCButtonDownload: ({ icon, iconColor, isIconButton, data, fileName, ...props }: JRCButtonDownloadProps) => JSX.Element;
21
+ export declare const JRCButtonDownload: ({ icon, iconColor, isIconButton, data, fileName, ...props }: JRCButtonDownloadProps) => React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from 'react';
1
2
  import type { JRCButtonDropdownProps } from './JRCButtonDropdown.types';
2
- export declare const JRCButtonDropdown: (props: JRCButtonDropdownProps) => JSX.Element;
3
+ export declare const JRCButtonDropdown: (props: JRCButtonDropdownProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ButtonProps, MenuWithTitleProps, DropdownOptionProps } from './JRCButtonDropdown.types';
3
- export declare const MarginLessJRCButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & import("../../types/dataAttributes").DataCy & {
3
+ export declare const MarginLessJRCButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("../../types/dataAttributes").DataCy & {
4
4
  color?: import("../JRCButton/JRCButton").ButtonColors | undefined;
5
5
  loader?: boolean | undefined;
6
6
  autofocus?: boolean | undefined;
@@ -15,5 +15,5 @@ export declare const MarginLessJRCButton: import("styled-components").StyledComp
15
15
  label?: string | undefined;
16
16
  } & React.RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, ButtonProps, never>;
17
17
  export declare const MenuWithoutTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
18
- export declare const MenuWithTitle: ({ direction, label, themeButton, children }: MenuWithTitleProps) => JSX.Element;
18
+ export declare const MenuWithTitle: ({ direction, label, themeButton, children }: MenuWithTitleProps) => React.JSX.Element;
19
19
  export declare const DropdownOption: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, DropdownOptionProps, never>;
@@ -2,7 +2,7 @@ import { JRCButtonProps } from '../JRCButton/JRCButton';
2
2
  import React from 'react';
3
3
  import { JRCIconProps } from '../JRCIcon/JRCIcon';
4
4
  import { ButtonType } from '../JRCButton/JRCButtonConfig';
5
- export declare type JRCButtonDropdownOptionProps = {
5
+ export type JRCButtonDropdownOptionProps = {
6
6
  icon?: Pick<JRCIconProps, 'name' | 'color' | 'variant'>;
7
7
  label: string | React.ReactElement<string>;
8
8
  onClick?: () => void;
@@ -10,7 +10,7 @@ export declare type JRCButtonDropdownOptionProps = {
10
10
  target?: '_blank';
11
11
  disabled?: boolean;
12
12
  };
13
- export declare type JRCButtonDropdownProps = {
13
+ export type JRCButtonDropdownProps = {
14
14
  color?: JRCButtonProps['color'];
15
15
  icon?: string;
16
16
  iconOpen?: string;
@@ -23,22 +23,22 @@ export declare type JRCButtonDropdownProps = {
23
23
  options: Array<JRCButtonDropdownOptionProps>;
24
24
  semiTransparentClosed?: boolean;
25
25
  };
26
- export declare type ButtonProps = {
26
+ export type ButtonProps = {
27
27
  borderLeft?: boolean;
28
28
  borderRight?: boolean;
29
29
  themeButton: ButtonType;
30
30
  open?: boolean;
31
31
  darker?: boolean;
32
32
  };
33
- export declare type OpenDirection = {
33
+ export type OpenDirection = {
34
34
  direction: JRCButtonDropdownProps['smallOpenDirection'];
35
35
  };
36
- export declare type MenuWithTitleProps = OpenDirection & {
36
+ export type MenuWithTitleProps = OpenDirection & {
37
37
  label: string;
38
38
  themeButton: ButtonProps['themeButton'];
39
39
  children: React.ReactNode;
40
40
  };
41
- export declare type DropdownOptionProps = {
41
+ export type DropdownOptionProps = {
42
42
  optionSelected?: boolean;
43
43
  disabled?: boolean;
44
44
  };
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { JRCButtonProps } from '../JRCButton/JRCButton';
2
3
  /**
3
4
  * Interface to provide JRCMenu props
@@ -14,4 +15,4 @@ export interface JRCButtonFileProps extends JRCButtonProps {
14
15
  * @param {label, action?, color?, variant?} props, @see JRCButtonDropdownProps
15
16
  * @returns JSX.Element
16
17
  */
17
- export declare const JRCButtonFile: ({ icon, multiple, getContent, ...props }: JRCButtonFileProps) => JSX.Element;
18
+ export declare const JRCButtonFile: ({ icon, multiple, getContent, ...props }: JRCButtonFileProps) => React.JSX.Element;
@@ -1,12 +1,12 @@
1
1
  import { MessageType } from 'components/Common/util/getColor.util';
2
2
  import * as React from 'react';
3
- export declare type TVariants = 'span' | 'div';
4
- export declare type JRCCardProps = React.ComponentPropsWithoutRef<'div'> & {
3
+ export type TVariants = 'span' | 'div';
4
+ export type JRCCardProps = React.ComponentPropsWithoutRef<'div'> & {
5
5
  variant?: TVariants;
6
6
  type?: MessageType;
7
7
  padding?: PaddingValues;
8
8
  };
9
- export declare type PaddingValues = keyof typeof PADDING;
9
+ export type PaddingValues = keyof typeof PADDING;
10
10
  export declare const PADDING: {
11
11
  mini: string;
12
12
  small: string;
@@ -16,6 +16,6 @@ export declare const PADDING: {
16
16
  };
17
17
  export declare const Card: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
18
18
  type?: MessageType | undefined;
19
- padding?: "small" | "base" | "medium" | "large" | "mini" | undefined;
19
+ padding?: "base" | "small" | "medium" | "large" | "mini" | undefined;
20
20
  }, never>;
21
- export declare const JRCCard: (props: JRCCardProps) => JSX.Element;
21
+ export declare const JRCCard: (props: JRCCardProps) => React.JSX.Element;
@@ -9,11 +9,11 @@ declare const ASPECTS: {
9
9
  '4:5': number;
10
10
  '9:16': number;
11
11
  };
12
- export declare type ActionsPosition = {
12
+ export type ActionsPosition = {
13
13
  x?: 'left' | 'right';
14
14
  y?: 'top' | 'bottom' | 'under';
15
15
  };
16
- export declare type JRCCardImgProps = {
16
+ export type JRCCardImgProps = {
17
17
  color?: string;
18
18
  icon?: boolean;
19
19
  img?: string;
@@ -31,5 +31,5 @@ export declare type JRCCardImgProps = {
31
31
  export declare const Actions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
32
32
  position?: ActionsPosition | undefined;
33
33
  }, never>;
34
- export declare const JRCCardImg: (props: JRCCardImgProps) => JSX.Element;
34
+ export declare const JRCCardImg: (props: JRCCardImgProps) => React.JSX.Element;
35
35
  export {};
@@ -6,4 +6,4 @@ import * as React from 'react';
6
6
  export interface JRCColumnCenterProps {
7
7
  children: React.ReactNode;
8
8
  }
9
- export declare const JRCColumnCenter: (props: JRCColumnCenterProps) => JSX.Element;
9
+ export declare const JRCColumnCenter: (props: JRCColumnCenterProps) => React.JSX.Element;