@orioro/react-ui-core 0.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 (287) hide show
  1. package/README.md +1 -0
  2. package/dist/AppHeader/AppHeaderContext.d.ts +5 -0
  3. package/dist/AppHeader/Logo.d.ts +2 -0
  4. package/dist/AppHeader/Main.d.ts +2 -0
  5. package/dist/AppHeader/OverlayMenu.d.ts +13 -0
  6. package/dist/AppHeader/Root.d.ts +9 -0
  7. package/dist/AppHeader/index.d.ts +9 -0
  8. package/dist/AspectRatio/index.d.ts +10 -0
  9. package/dist/Box/Box.d.ts +27 -0
  10. package/dist/Box/index.d.ts +1 -0
  11. package/dist/Box/spacing.d.ts +23 -0
  12. package/dist/Button/Button.d.ts +302 -0
  13. package/dist/Button/ButtonList.d.ts +13 -0
  14. package/dist/Button/LinkButton.d.ts +309 -0
  15. package/dist/Button/index.d.ts +3 -0
  16. package/dist/CSSReset/index.d.ts +2 -0
  17. package/dist/ClickTarget/ClickTarget.d.ts +2 -0
  18. package/dist/ClickTarget/index.d.ts +2 -0
  19. package/dist/ClickTarget/makeClickTarget.d.ts +15 -0
  20. package/dist/Collapsible/index.d.ts +7 -0
  21. package/dist/Container/index.d.ts +12 -0
  22. package/dist/DataList/index.d.ts +12 -0
  23. package/dist/Debug/LabeledBox.d.ts +4 -0
  24. package/dist/Debug/RandomIcon.d.ts +2 -0
  25. package/dist/Debug/index.d.ts +9 -0
  26. package/dist/Debug/randomText.d.ts +1 -0
  27. package/dist/Debug/wait.d.ts +1 -0
  28. package/dist/Dialog/AuthDialog/AccountRecoveryForm.d.ts +9 -0
  29. package/dist/Dialog/AuthDialog/AuthDialog.d.ts +51 -0
  30. package/dist/Dialog/AuthDialog/LoginForm.d.ts +11 -0
  31. package/dist/Dialog/AuthDialog/SignUpForm.d.ts +14 -0
  32. package/dist/Dialog/AuthDialog/constants.d.ts +36 -0
  33. package/dist/Dialog/AuthDialog/index.d.ts +3 -0
  34. package/dist/Dialog/AuthDialog/useAuthDialog.d.ts +4 -0
  35. package/dist/Dialog/ConfirmDialog/ConfirmDialog.d.ts +10 -0
  36. package/dist/Dialog/ConfirmDialog/index.d.ts +2 -0
  37. package/dist/Dialog/ConfirmDialog/types.d.ts +14 -0
  38. package/dist/Dialog/ConfirmDialog/useConfirmDialog.d.ts +3 -0
  39. package/dist/Dialog/DialogSystem/DialogSystem.d.ts +11 -0
  40. package/dist/Dialog/DialogSystem/DialogSystemContext.d.ts +4 -0
  41. package/dist/Dialog/DialogSystem/_DialogSystemContext.d.ts +3 -0
  42. package/dist/Dialog/DialogSystem/index.d.ts +2 -0
  43. package/dist/Dialog/DialogSystem/tmpDialogSystem.d.ts +3 -0
  44. package/dist/Dialog/DialogSystem/types.d.ts +25 -0
  45. package/dist/Dialog/InfoDialog/InfoDialog.d.ts +9 -0
  46. package/dist/Dialog/InfoDialog/index.d.ts +3 -0
  47. package/dist/Dialog/InfoDialog/types.d.ts +18 -0
  48. package/dist/Dialog/InfoDialog/useInfoDialog.d.ts +4 -0
  49. package/dist/Dialog/LoadingDialog/LoadingDialog.d.ts +3 -0
  50. package/dist/Dialog/LoadingDialog/index.d.ts +3 -0
  51. package/dist/Dialog/LoadingDialog/types.d.ts +4 -0
  52. package/dist/Dialog/LoadingDialog/useLoadingDialog.d.ts +5 -0
  53. package/dist/Dialog/OptionsDialog/OptionsDialog.d.ts +3 -0
  54. package/dist/Dialog/OptionsDialog/index.d.ts +2 -0
  55. package/dist/Dialog/OptionsDialog/types.d.ts +24 -0
  56. package/dist/Dialog/OptionsDialog/useOptionsDialog.d.ts +3 -0
  57. package/dist/Dialog/PromptDialog/PromptDialog.d.ts +47 -0
  58. package/dist/Dialog/PromptDialog/index.d.ts +3 -0
  59. package/dist/Dialog/PromptDialog/isEqual.d.ts +1 -0
  60. package/dist/Dialog/PromptDialog/types.d.ts +22 -0
  61. package/dist/Dialog/PromptDialog/usePromptDialog.d.ts +4 -0
  62. package/dist/Dialog/constants.d.ts +1 -0
  63. package/dist/Dialog/createDialogSystem/createDialogSystem.d.ts +13 -0
  64. package/dist/Dialog/createDialogSystem/index.d.ts +2 -0
  65. package/dist/Dialog/createDialogSystem/proxyRef.d.ts +2 -0
  66. package/dist/Dialog/createDialogSystem/useDialog.d.ts +18 -0
  67. package/dist/Dialog/index.d.ts +8 -0
  68. package/dist/Dialog/useDialog/index.d.ts +6 -0
  69. package/dist/DotDotDot/index.d.ts +3 -0
  70. package/dist/Editable/EditableContext.d.ts +3 -0
  71. package/dist/Editable/EditableField.d.ts +3 -0
  72. package/dist/Editable/EditableRoot.d.ts +3 -0
  73. package/dist/Editable/index.d.ts +10 -0
  74. package/dist/Editable/types.d.ts +26 -0
  75. package/dist/ErrorDisplay/ErrorDisplay.d.ts +3 -0
  76. package/dist/ErrorDisplay/ErrorHandlingContext.d.ts +27 -0
  77. package/dist/ErrorDisplay/index.d.ts +3 -0
  78. package/dist/ErrorDisplay/types.d.ts +34 -0
  79. package/dist/EvenSpacedList/EvenSpacedList.d.ts +46 -0
  80. package/dist/EvenSpacedList/evenSpacedListStyles.d.ts +11 -0
  81. package/dist/EvenSpacedList/index.d.ts +1 -0
  82. package/dist/FileDropzone/index.d.ts +18 -0
  83. package/dist/FileIcon/index.d.ts +8 -0
  84. package/dist/FilePreview/FileThumb.d.ts +7 -0
  85. package/dist/FilePreview/index.d.ts +9 -0
  86. package/dist/Flex/Flex.d.ts +46 -0
  87. package/dist/Flex/flexBaseStyles.d.ts +13 -0
  88. package/dist/Flex/flexGapStyles.d.ts +11 -0
  89. package/dist/Flex/index.d.ts +4 -0
  90. package/dist/Flex/types.d.ts +8 -0
  91. package/dist/FlexGrid/FlexGrid.d.ts +21 -0
  92. package/dist/FlexGrid/index.d.ts +1 -0
  93. package/dist/HoverElement/Container.d.ts +7 -0
  94. package/dist/HoverElement/Element.d.ts +3 -0
  95. package/dist/HoverElement/index.d.ts +10 -0
  96. package/dist/HoverElement/types.d.ts +7 -0
  97. package/dist/Image/Image.d.ts +12 -0
  98. package/dist/Image/ImageWithFallback.d.ts +8 -0
  99. package/dist/Image/index.d.ts +2 -0
  100. package/dist/Input/ArrayInput/ArrayInputContext.d.ts +19 -0
  101. package/dist/Input/ArrayInput/DefaultItemComponent.d.ts +3 -0
  102. package/dist/Input/ArrayInput/FloatingControls.d.ts +6 -0
  103. package/dist/Input/ArrayInput/ValueList.d.ts +5 -0
  104. package/dist/Input/ArrayInput/ValueList_Virtualized_POC.d.ts +5 -0
  105. package/dist/Input/ArrayInput/index.d.ts +3 -0
  106. package/dist/Input/ArrayInput/types.d.ts +41 -0
  107. package/dist/Input/BooleanCheckboxInput/index.d.ts +8 -0
  108. package/dist/Input/CheckboxSelectInput/index.d.ts +12 -0
  109. package/dist/Input/DateTimeInput/index.d.ts +12 -0
  110. package/dist/Input/ErrorDisplay/index.d.ts +2 -0
  111. package/dist/Input/INPUTS.d.ts +1 -0
  112. package/dist/Input/Input/Input.d.ts +4 -0
  113. package/dist/Input/Input/index.d.ts +2 -0
  114. package/dist/Input/Input/types.d.ts +2 -0
  115. package/dist/Input/InputGrid/index.d.ts +19 -0
  116. package/dist/Input/InputLayout/index.d.ts +11 -0
  117. package/dist/Input/MarkdownInput/index.d.ts +2 -0
  118. package/dist/Input/MultiFileInput/index.d.ts +16 -0
  119. package/dist/Input/ObjectInput/index.d.ts +21 -0
  120. package/dist/Input/RadioSelectInput/index.d.ts +13 -0
  121. package/dist/Input/RichTextInput/RichTextInput.d.ts +543 -0
  122. package/dist/Input/RichTextInput/RichTextInput_20240730_backup_NO_MARKDOWN.d.ts +543 -0
  123. package/dist/Input/RichTextInput/index.d.ts +2 -0
  124. package/dist/Input/RichTextInput/types.d.ts +13 -0
  125. package/dist/Input/SingleFileInput/index.d.ts +7 -0
  126. package/dist/Input/TextInput/index.d.ts +39 -0
  127. package/dist/Input/TextInput/parseValidator.d.ts +3 -0
  128. package/dist/Input/TextInput/types.d.ts +16 -0
  129. package/dist/Input/TextInput/useTextInput.d.ts +32 -0
  130. package/dist/Input/TextareaInput/index.d.ts +36 -0
  131. package/dist/Input/index.d.ts +16 -0
  132. package/dist/Input/types.d.ts +28 -0
  133. package/dist/Input/useValidation/index.d.ts +1 -0
  134. package/dist/Input/useValidation/useValidation.d.ts +13 -0
  135. package/dist/Input/util/index.d.ts +12 -0
  136. package/dist/Input/util/omitInputProps.d.ts +8 -0
  137. package/dist/Input/valueUtil/diff.d.ts +9 -0
  138. package/dist/Input/valueUtil/index.d.ts +2 -0
  139. package/dist/Input/valueUtil/strValue.d.ts +1 -0
  140. package/dist/LanguageSelector/index.d.ts +11 -0
  141. package/dist/LoadingIndicator/LoadingIndicator.d.ts +7 -0
  142. package/dist/LoadingIndicator/LoadingOverlay.d.ts +6 -0
  143. package/dist/LoadingIndicator/index.d.ts +2 -0
  144. package/dist/LocalImagePreview/index.d.ts +6 -0
  145. package/dist/Markdown/index.d.ts +4 -0
  146. package/dist/Menu/ButtonBarMenu/MenuItem.d.ts +9 -0
  147. package/dist/Menu/ButtonBarMenu/index.d.ts +13 -0
  148. package/dist/Menu/ButtonBarMenu/types.d.ts +8 -0
  149. package/dist/Menu/DropdownMenu/MenuItem.d.ts +9 -0
  150. package/dist/Menu/DropdownMenu/index.d.ts +16 -0
  151. package/dist/Menu/DropdownMenu/types.d.ts +6 -0
  152. package/dist/Menu/constants.d.ts +1 -0
  153. package/dist/Menu/index.d.ts +4 -0
  154. package/dist/Menu/parseMenuItems.d.ts +2 -0
  155. package/dist/Menu/resolveOptions.d.ts +8 -0
  156. package/dist/Menu/types.d.ts +31 -0
  157. package/dist/Output/ArrayOutput/index.d.ts +5 -0
  158. package/dist/Output/BooleanCheckboxOutput/index.d.ts +4 -0
  159. package/dist/Output/CheckboxSelectOutput/index.d.ts +2 -0
  160. package/dist/Output/DateTimeOutput/index.d.ts +7 -0
  161. package/dist/Output/EmailOutput/index.d.ts +4 -0
  162. package/dist/Output/FileOutput/index.d.ts +2 -0
  163. package/dist/Output/LabeledLayout/index.d.ts +10 -0
  164. package/dist/Output/MarkdownOutput/index.d.ts +4 -0
  165. package/dist/Output/MultiFileOutput/index.d.ts +2 -0
  166. package/dist/Output/OUTPUTS.d.ts +1 -0
  167. package/dist/Output/ObjectOutput/index.d.ts +12 -0
  168. package/dist/Output/Output/Output.d.ts +3 -0
  169. package/dist/Output/Output/index.d.ts +1 -0
  170. package/dist/Output/RichTextOutput/index.d.ts +2 -0
  171. package/dist/Output/SelectOutput/index.d.ts +2 -0
  172. package/dist/Output/TextOutput/index.d.ts +4 -0
  173. package/dist/Output/TextareaOutput/index.d.ts +4 -0
  174. package/dist/Output/UrlOutput/index.d.ts +4 -0
  175. package/dist/Output/index.d.ts +14 -0
  176. package/dist/Output/types.d.ts +6 -0
  177. package/dist/Output/withPlaceholder/index.d.ts +8 -0
  178. package/dist/PromptPopover/PromptPopover.d.ts +11 -0
  179. package/dist/PromptPopover/index.d.ts +1 -0
  180. package/dist/PromptPopover/types.d.ts +9 -0
  181. package/dist/Responsive/Responsive.d.ts +5 -0
  182. package/dist/Responsive/index.d.ts +4 -0
  183. package/dist/Responsive/responsiveStyles.d.ts +2 -0
  184. package/dist/Responsive/transformResponsiveValue.d.ts +2 -0
  185. package/dist/Responsive/types.d.ts +12 -0
  186. package/dist/RichText/index.d.ts +2 -0
  187. package/dist/RichTextRenderer/BlockRenderer.d.ts +10 -0
  188. package/dist/RichTextRenderer/InlineContentRenderer.d.ts +8 -0
  189. package/dist/RichTextRenderer/RendererContext.d.ts +3 -0
  190. package/dist/RichTextRenderer/RichTextRenderer.d.ts +3 -0
  191. package/dist/RichTextRenderer/Unsupported.d.ts +2 -0
  192. package/dist/RichTextRenderer/groupListItems.d.ts +10 -0
  193. package/dist/RichTextRenderer/index.d.ts +4 -0
  194. package/dist/RichTextRenderer/renderers/Block/Heading.d.ts +3 -0
  195. package/dist/RichTextRenderer/renderers/Block/Image.d.ts +3 -0
  196. package/dist/RichTextRenderer/renderers/Block/Table.d.ts +3 -0
  197. package/dist/RichTextRenderer/renderers/InlineContent/Link.d.ts +3 -0
  198. package/dist/RichTextRenderer/renderers/InlineContent/StyledText.d.ts +3 -0
  199. package/dist/RichTextRenderer/renderers/index.d.ts +2 -0
  200. package/dist/RichTextRenderer/types/blocknote.d.ts +74 -0
  201. package/dist/RichTextRenderer/types/index.d.ts +18 -0
  202. package/dist/RichTextRenderer/types/lists.d.ts +13 -0
  203. package/dist/RichTextRenderer/util/index.d.ts +5 -0
  204. package/dist/RichTextRenderer/util/richTextIsEmpty.d.ts +2 -0
  205. package/dist/RichTextRenderer/util/richTextToPlainText.d.ts +2 -0
  206. package/dist/RichTextRenderer/util/richTextTrimEmptyBlocks.d.ts +2 -0
  207. package/dist/RichTextRenderer/util/simpleBlockRenderer.d.ts +10 -0
  208. package/dist/RichTextRenderer/util/toDataProps.d.ts +3 -0
  209. package/dist/SearchForm/index.d.ts +5 -0
  210. package/dist/ShadowExpandable/index.d.ts +19 -0
  211. package/dist/ShadowExpandable/util.d.ts +1 -0
  212. package/dist/Spinner/index.d.ts +9 -0
  213. package/dist/StylableFileInput/index.d.ts +4 -0
  214. package/dist/TextEllipsis/index.d.ts +7 -0
  215. package/dist/Theme/index.d.ts +2 -0
  216. package/dist/Theme/theme.d.ts +29 -0
  217. package/dist/Theme/valueResolver.d.ts +13 -0
  218. package/dist/_switchValue/index.d.ts +1 -0
  219. package/dist/_switchValue/tmpindex.d.ts +9 -0
  220. package/dist/_typeOf/index.d.ts +1 -0
  221. package/dist/_typeOf/tmptypeOf.d.ts +6 -0
  222. package/dist/assets/index-BG8CATwr.css +94 -0
  223. package/dist/createDataContext/index.d.ts +36 -0
  224. package/dist/index.d.ts +59 -0
  225. package/dist/index.mjs +7951 -0
  226. package/dist/makeLink/index.d.ts +1 -0
  227. package/dist/makeLink/locationAwareLink.d.ts +290 -0
  228. package/dist/makeListOf/index.d.ts +13 -0
  229. package/dist/makeListOf/types.d.ts +12 -0
  230. package/dist/mergeable/index.d.ts +9 -0
  231. package/dist/mergeable/types.d.ts +4 -0
  232. package/dist/recursiveRendererSystem/arrayRenderer.d.ts +20 -0
  233. package/dist/recursiveRendererSystem/index.d.ts +5 -0
  234. package/dist/recursiveRendererSystem/objectRenderer.d.ts +31 -0
  235. package/dist/recursiveRendererSystem/recursiveRendererSystem.d.ts +7 -0
  236. package/dist/recursiveRendererSystem/rendererSpecList.d.ts +2 -0
  237. package/dist/recursiveRendererSystem/stories/Output.d.ts +46 -0
  238. package/dist/recursiveRendererSystem/types.d.ts +43 -0
  239. package/dist/replaceable/index.d.ts +13 -0
  240. package/dist/responsiveCss/index.d.ts +15 -0
  241. package/dist/responsiveCss/queryDeclarations.d.ts +8 -0
  242. package/dist/responsiveCss/types.d.ts +4 -0
  243. package/dist/s3Upload/index.d.ts +3 -0
  244. package/dist/styleResolver/index.d.ts +16 -0
  245. package/dist/styles.css +2 -0
  246. package/dist/switchValue/index.d.ts +9 -0
  247. package/dist/typeOf/index.d.ts +1 -0
  248. package/dist/typeOf/typeOf.d.ts +6 -0
  249. package/dist/useClosestBackgroundColor/getClosestBackgroundColor.d.ts +1 -0
  250. package/dist/useClosestBackgroundColor/index.d.ts +3 -0
  251. package/dist/useDefer/index.d.ts +15 -0
  252. package/dist/useFetch/index.d.ts +10 -0
  253. package/dist/useFileReadAs/fileReadAs.d.ts +3 -0
  254. package/dist/useFileReadAs/index.d.ts +3 -0
  255. package/dist/useListMeasures/index.d.ts +2 -0
  256. package/dist/useListMeasures/measureList.d.ts +13 -0
  257. package/dist/useListMeasures/useListMeasures.d.ts +7 -0
  258. package/dist/useListOverflow/computeListOverflow.d.ts +12 -0
  259. package/dist/useListOverflow/index.d.ts +1 -0
  260. package/dist/useListOverflow/useListOverflow.d.ts +9 -0
  261. package/dist/useLocalState/index.d.ts +1 -0
  262. package/dist/useMeasureLayer/index.d.ts +7 -0
  263. package/dist/useMergedContext/index.d.ts +6 -0
  264. package/dist/useObjectURL/index.d.ts +8 -0
  265. package/dist/usePromiseCreator/index.d.ts +1 -0
  266. package/dist/usePromiseCreator/usePromiseCreator.d.ts +4 -0
  267. package/dist/usePromiseState/index.d.ts +1 -0
  268. package/dist/usePromiseState/usePromiseState.d.ts +11 -0
  269. package/dist/usePromptUI/index.d.ts +4 -0
  270. package/dist/usePromptUI/pickPromptUIProps.d.ts +9 -0
  271. package/dist/usePromptUI/renderPromptInput.d.ts +3 -0
  272. package/dist/usePromptUI/types.d.ts +18 -0
  273. package/dist/usePromptUI/usePromptUI.d.ts +34 -0
  274. package/dist/useResolvable/index.d.ts +1 -0
  275. package/dist/useResolvable/useResolvable.d.ts +23 -0
  276. package/dist/util/array.d.ts +5 -0
  277. package/dist/util/cssTypes.d.ts +3 -0
  278. package/dist/util/domProps.d.ts +1 -0
  279. package/dist/util/getClosestBackgroundColor.d.ts +1 -0
  280. package/dist/util/index.d.ts +7 -0
  281. package/dist/util/isInputEqual.d.ts +1 -0
  282. package/dist/util/maybeValue.d.ts +5 -0
  283. package/dist/util/parse.d.ts +2 -0
  284. package/dist/util/propPicker.d.ts +6 -0
  285. package/dist/util/toCss.d.ts +6 -0
  286. package/dist/withDefaults/index.d.ts +3 -0
  287. package/package.json +84 -0
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import { UseTextInputHandle } from '../TextInput/useTextInput';
3
+ export declare const TextareaInput: React.ForwardRefExoticComponent<{
4
+ id?: string | undefined;
5
+ label?: string | undefined;
6
+ onSetValue: (value: any) => void;
7
+ onBlur?: (() => void) | undefined;
8
+ disabled?: boolean | undefined;
9
+ required?: string | boolean | undefined;
10
+ error?: Error | import("..").ErrorLike | undefined;
11
+ errorStyle?: React.CSSProperties | undefined;
12
+ validate?: boolean | (string | ((input: any, context: {
13
+ validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
14
+ }) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | {
15
+ [key: string]: (string | ((input: any, context: {
16
+ validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
17
+ }) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any) | [string | ((input: any, context: {
18
+ validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
19
+ }) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput];
20
+ }) | [string | ((input: any, context: {
21
+ validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
22
+ }) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | {
23
+ [key: string]: (string | ((input: any, context: {
24
+ validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
25
+ }) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any) | [string | ((input: any, context: {
26
+ validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
27
+ }) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput];
28
+ }, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput] | undefined;
29
+ value?: string | undefined;
30
+ valueDebounceMs?: number | undefined;
31
+ validateDebounceMs?: number | undefined;
32
+ mask?: any;
33
+ } & {
34
+ minRows?: number | undefined;
35
+ maxRows?: number | undefined;
36
+ } & React.RefAttributes<UseTextInputHandle>>;
@@ -0,0 +1,16 @@
1
+ export * from './ArrayInput';
2
+ export * from './DateTimeInput';
3
+ export * from './INPUTS';
4
+ export * from './Input';
5
+ export * from './InputGrid';
6
+ export * from './MarkdownInput';
7
+ export * from './MultiFileInput';
8
+ export * from './ObjectInput';
9
+ export * from './RadioSelectInput';
10
+ export * from './RichTextInput';
11
+ export * from './SingleFileInput';
12
+ export * from './TextareaInput';
13
+ export * from './TextInput';
14
+ export * from './types';
15
+ export * from './util';
16
+ export * from './valueUtil';
@@ -0,0 +1,28 @@
1
+ import { AsyncValidatorSystem } from '@orioro/util/dist/validate/types';
2
+ import { CSSProperties } from 'react';
3
+ import { Merge } from 'type-fest';
4
+ export type ErrorLike = {
5
+ message: string;
6
+ };
7
+ /**
8
+ * The base interface upon which all compatible inputs
9
+ * will be constructed
10
+ */
11
+ export type InputProps<ValueType = any> = {
12
+ id?: string;
13
+ label?: string;
14
+ value?: ValueType;
15
+ onSetValue: (value: ValueType) => void;
16
+ onBlur?: () => void;
17
+ disabled?: boolean;
18
+ required?: boolean | string;
19
+ error?: ErrorLike | Error;
20
+ errorStyle?: CSSProperties;
21
+ validate?: AsyncValidatorSystem['ValidatorInput'] | boolean;
22
+ };
23
+ export type InputSchema = Merge<Partial<InputProps>, {
24
+ type: string;
25
+ variant?: string;
26
+ defaultValue?: any;
27
+ [key: string]: any;
28
+ }>;
@@ -0,0 +1 @@
1
+ export * from './useValidation';
@@ -0,0 +1,13 @@
1
+ import { AsyncValidatorSystem, DetailedInvalid } from '@orioro/util/dist/validate/types';
2
+ import { ErrorLike, InputProps } from '../types';
3
+ export type UseValidationProps = {
4
+ value: InputProps['value'];
5
+ error: InputProps['error'];
6
+ validator: AsyncValidatorSystem['ValidatorInput'] | false;
7
+ };
8
+ export declare function useValidation({ value, error, validator }: UseValidationProps): {
9
+ validationState: "loading" | "idle" | ErrorLike | DetailedInvalid | "valid";
10
+ setValidationState: (v: "loading" | "idle" | ErrorLike | DetailedInvalid | "valid" | ((currValue: "loading" | "idle" | ErrorLike | DetailedInvalid | "valid") => "loading" | "idle" | ErrorLike | DetailedInvalid | "valid")) => void;
11
+ validationError: ErrorLike | DetailedInvalid | null;
12
+ runValidation: () => Promise<true | DetailedInvalid>;
13
+ };
@@ -0,0 +1,12 @@
1
+ export type ParsedOption<ValueType = any> = {
2
+ key: string;
3
+ label: string;
4
+ value: ValueType;
5
+ };
6
+ export type Option<ValueType = any> = {
7
+ label: string;
8
+ value: ValueType;
9
+ };
10
+ export type OptionsInput<ValueType = any> = (Option<ValueType> | string | [string, ValueType])[];
11
+ export declare function parseOptions(optionsInput?: OptionsInput): ParsedOption[];
12
+ export * from './omitInputProps';
@@ -0,0 +1,8 @@
1
+ /// <reference types="lodash" />
2
+ import { InputProps } from '../types';
3
+ export declare const INPUT_PROPS: (keyof InputProps)[];
4
+ export declare function omitInputProps(props: {
5
+ [key: string]: any;
6
+ }): import("lodash").Omit<{
7
+ [key: string]: any;
8
+ }, keyof InputProps>;
@@ -0,0 +1,9 @@
1
+ import type { Operation } from 'fast-json-patch';
2
+ export type ValueDiff = boolean | Operation[];
3
+ export declare function diffInputValues<InputType>(valueA: InputType | undefined, valueB: InputType | undefined): ValueDiff;
4
+ export declare function areInputValuesEqual<InputType>(valueA: InputType | undefined, valueB: InputType | undefined): boolean;
5
+ export declare function computeUpdatedKeys(initialValue: {
6
+ [key: string]: any;
7
+ }, updatedValue: {
8
+ [key: string]: any;
9
+ }): string[];
@@ -0,0 +1,2 @@
1
+ export * from './strValue';
2
+ export * from './diff';
@@ -0,0 +1 @@
1
+ export declare function strValue(str: any): string;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type LanguageSelectorProps = {
3
+ value: string;
4
+ onSetValue: (nextValue: string) => any;
5
+ options: {
6
+ label: React.ReactNode;
7
+ value: string;
8
+ }[];
9
+ };
10
+ export declare function LanguageSelector({ value, onSetValue, options, }: LanguageSelectorProps): React.JSX.Element;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { SpinnerProps } from '../Spinner';
3
+ export declare function LoadingIndicator({ message, children, style, ...spinnerProps }: {
4
+ message?: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ style?: React.CSSProperties;
7
+ } & SpinnerProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export function LoadingOverlay({ message, background, style, }: {
2
+ message: any;
3
+ background?: string | undefined;
4
+ style?: {} | undefined;
5
+ }): React.JSX.Element;
6
+ import React from 'react';
@@ -0,0 +1,2 @@
1
+ export * from './LoadingIndicator';
2
+ export * from './LoadingOverlay';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ type LocalImagePreviewProps = {
3
+ file: File;
4
+ } & React.HTMLAttributes<HTMLImageElement>;
5
+ export declare function LocalImagePreview({ file, ...props }: LocalImagePreviewProps): React.JSX.Element | null;
6
+ export {};
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { Options } from 'react-markdown';
3
+ export declare function MarkdownRaw(props: Options): React.JSX.Element;
4
+ export declare function Markdown({ style, ...props }: Options): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ActionItem, LinkItem, MenuItem } from '../types';
3
+ import { Components } from './types';
4
+ export type MenuItemProps = {
5
+ item: MenuItem;
6
+ onSelect: (item: ActionItem | LinkItem) => void;
7
+ components?: Components;
8
+ };
9
+ export declare function MenuItem({ item, onSelect, components: cp, }: MenuItemProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ActionItem, LinkItem, MenuItemInput } from '../types';
3
+ import { Components } from './types';
4
+ type ActionHandler = (item: ActionItem | LinkItem) => void;
5
+ type ButtonBarProps = {
6
+ options: MenuItemInput[];
7
+ onSelect: ActionHandler | {
8
+ [key: string]: ActionHandler;
9
+ };
10
+ components?: Components;
11
+ };
12
+ export declare function ButtonBarMenu({ options, onSelect, components, }: ButtonBarProps): React.JSX.Element;
13
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Button } from '../../Button';
2
+ import { Separator } from '@radix-ui/themes';
3
+ import { DropdownMenu } from '../DropdownMenu';
4
+ export type Components = {
5
+ Button: typeof Button;
6
+ Separator: typeof Separator;
7
+ DropdownMenu: typeof DropdownMenu;
8
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ActionItem, LinkItem, MenuItem as MenuItemType } from '../types';
3
+ import { Components } from './types';
4
+ export type MenuItemProps = {
5
+ item: MenuItemType;
6
+ onSelect: (item: ActionItem | LinkItem) => void;
7
+ components?: Components;
8
+ };
9
+ export declare function MenuItem({ item, onSelect, components: cp, }: MenuItemProps): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { DropdownMenu as RDropdown } from '@radix-ui/themes';
3
+ import { ActionItem, MenuItemInput, LinkItem } from '../types';
4
+ import { Components } from './types';
5
+ type DropdownMenuProps = {
6
+ children: React.ReactElement;
7
+ options: MenuItemInput[];
8
+ onSelect: (item: ActionItem | LinkItem) => void;
9
+ components?: Components;
10
+ };
11
+ export declare function DropdownMenu({ children, options, onSelect, components, }: DropdownMenuProps): React.JSX.Element;
12
+ export declare namespace DropdownMenu {
13
+ var TriggerIcon: React.ForwardRefExoticComponent<RDropdown.TriggerIconProps & React.RefAttributes<SVGSVGElement>>;
14
+ var Item: React.ForwardRefExoticComponent<RDropdown.ItemProps & React.RefAttributes<HTMLDivElement>>;
15
+ }
16
+ export {};
@@ -0,0 +1,6 @@
1
+ import { DropdownMenu as RDropdown } from '@radix-ui/themes';
2
+ export type Components = {
3
+ Separator: typeof RDropdown.Separator;
4
+ ActionItem: typeof RDropdown.Item;
5
+ LinkItem: typeof RDropdown.Item;
6
+ };
@@ -0,0 +1 @@
1
+ export declare const SEPARATOR = "---";
@@ -0,0 +1,4 @@
1
+ export * from './ButtonBarMenu';
2
+ export * from './DropdownMenu';
3
+ export * from './resolveOptions';
4
+ export * from './parseMenuItems';
@@ -0,0 +1,2 @@
1
+ import { MenuItem, MenuItemInput } from './types';
2
+ export declare function parseMenuItems(items: MenuItemInput[]): MenuItem[];
@@ -0,0 +1,8 @@
1
+ import { MenuItemInput } from './types';
2
+ type AnyContext = {
3
+ [key: string]: any;
4
+ };
5
+ type OptionSpec<ContextProps = AnyContext> = MenuItemInput | ((context: ContextProps) => MenuItemInput | MenuItemInput[]);
6
+ export declare function resolveOptions(optionSpecs: OptionSpec[], context: AnyContext): MenuItemInput[];
7
+ export declare function withPermission(permission: string, optionOrOptions: MenuItemInput | MenuItemInput[]): (context: AnyContext) => false | Omit<import("./types").ActionItem, "type"> | import("./types").SeparatorItem | "---" | MenuItemInput[];
8
+ export {};
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ type ItemInput<ItemType> = ItemType | Omit<ItemType, 'type'>;
3
+ export type MenuItemBase = {
4
+ label: React.ReactNode;
5
+ disabled?: boolean;
6
+ [key: string]: any;
7
+ };
8
+ export type ActionItem = MenuItemBase & {
9
+ type: 'action';
10
+ shortcut?: string;
11
+ id: string;
12
+ };
13
+ export type ActionItemInput = ItemInput<ActionItem>;
14
+ export type LinkItem = MenuItemBase & {
15
+ type: 'link';
16
+ href: string;
17
+ target?: '_blank' | '_self';
18
+ };
19
+ export type LinkItemInput = ItemInput<LinkItem>;
20
+ export type SubMenuItem = MenuItemBase & {
21
+ type: 'subMenu';
22
+ options: MenuItem[];
23
+ };
24
+ export type SubMenuItemInput = ItemInput<SubMenuItem>;
25
+ export type SeparatorItem = {
26
+ type: 'separator';
27
+ };
28
+ export type SeparatorItemInput = SeparatorItem | '---';
29
+ export type MenuItem = ActionItem | LinkItem | SubMenuItem | SeparatorItem;
30
+ export type MenuItemInput = ActionItemInput | LinkItemInput | SubMenuItemInput | SeparatorItemInput;
31
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const ArrayOutput: ({ ofType, value: arrayValue, }: {
3
+ ofType?: import("../../recursiveRendererSystem").RendererSchemaInput | undefined;
4
+ value?: any[] | null | undefined;
5
+ }) => false | React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ export function BooleanCheckboxOutput({ value }: {
2
+ value: any;
3
+ }): React.JSX.Element;
4
+ import React from 'react';
@@ -0,0 +1,2 @@
1
+ export const CheckboxSelectOutput: (props: any) => React.JSX.Element | null;
2
+ import React from 'react';
@@ -0,0 +1,7 @@
1
+ export function DateTimeOutputInner({ format, value, ...props }: {
2
+ [x: string]: any;
3
+ format?: string | undefined;
4
+ value: any;
5
+ }): React.JSX.Element;
6
+ export const DateTimeOutput: (props: any) => React.JSX.Element | null;
7
+ import React from 'react';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OutputProps } from '../types';
3
+ export declare function EmailOutputInner({ value }: OutputProps): React.JSX.Element;
4
+ export declare const EmailOutput: (props: any) => React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export const FileOutput: (props: any) => React.JSX.Element | null;
2
+ import React from 'react';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { OutputProps } from '../types';
3
+ export declare function LabeledLayout({ label, helperText, children, }: OutputProps & {
4
+ label?: string;
5
+ helperText?: string;
6
+ children: React.ReactNode;
7
+ }): React.JSX.Element;
8
+ export declare function withLabeledLayout(OutputComponent: React.FC<OutputProps>): ({ label, helperText, ...props }: OutputProps & {
9
+ label?: string | undefined;
10
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OutputProps } from '../types';
3
+ export declare function MarkdownOutputInner({ value }: OutputProps): React.JSX.Element;
4
+ export declare const MarkdownOutput: (props: any) => React.JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export const MultiFileOutput: (props: any) => React.JSX.Element | null;
2
+ import React from 'react';
@@ -0,0 +1 @@
1
+ export declare const OUTPUTS: import("../recursiveRendererSystem").RendererSpecList;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare const ObjectOutput: ({ properties, layout, value: objectValue, gap, direction, ...flexGridProps }: {
3
+ properties: {
4
+ [key: string]: import("../../recursiveRendererSystem").RendererSchemaInput<{
5
+ label?: string | undefined;
6
+ }>;
7
+ };
8
+ layout?: (string | string[])[] | undefined;
9
+ value?: {
10
+ [key: string]: any;
11
+ } | null | undefined;
12
+ } & Omit<import("../..").FlexGridProps, "groups">) => import("react").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const OutputProvider: import("react").FC<import("../../recursiveRendererSystem").RendererContextProviderProps>, Output: import("react").FC<import("../../recursiveRendererSystem").RecursiveRendererProps<import("../../recursiveRendererSystem").AnySchemaProps>>;
3
+ export { Output, OutputProvider };
@@ -0,0 +1 @@
1
+ export * from './Output';
@@ -0,0 +1,2 @@
1
+ export const RichTextOutput: (props: any) => React.JSX.Element | null;
2
+ import React from 'react';
@@ -0,0 +1,2 @@
1
+ export const SelectOutput: (props: any) => React.JSX.Element | null;
2
+ import React from 'react';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OutputProps } from '../types';
3
+ export declare function TextOutputInner({ value, ...props }: OutputProps): React.JSX.Element;
4
+ export declare const TextOutput: (props: any) => React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OutputProps } from '../types';
3
+ export declare function TextareaOutputInner({ value }: OutputProps): React.JSX.Element;
4
+ export declare const TextareaOutput: (props: any) => React.JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { OutputProps } from '../types';
3
+ export declare function UrlOutputInner({ value }: OutputProps): React.JSX.Element;
4
+ export declare const UrlOutput: (props: any) => React.JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ export * from './ArrayOutput';
2
+ export * from './BooleanCheckboxOutput';
3
+ export * from './CheckboxSelectOutput';
4
+ export * from './DateTimeOutput';
5
+ export * from './FileOutput';
6
+ export * from './LabeledLayout';
7
+ export * from './MarkdownOutput';
8
+ export * from './MultiFileOutput';
9
+ export * from './ObjectOutput';
10
+ export * from './Output';
11
+ export * from './RichTextOutput';
12
+ export * from './TextOutput';
13
+ export * from './withPlaceholder';
14
+ export * from './OUTPUTS';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type OutputProps<ValueType = any> = {
3
+ value?: ValueType;
4
+ placeholder?: React.ReactNode;
5
+ [key: string]: any;
6
+ };
@@ -0,0 +1,8 @@
1
+ export function withPlaceholder(Component: any, { notEmpty, placeholder: defaultPlaceholder, PlaceholderComponent, }?: {
2
+ notEmpty?: typeof defaultNotEmpty | undefined;
3
+ placeholder?: null | undefined;
4
+ PlaceholderComponent?: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>> | undefined;
5
+ }): (props: any) => React.JSX.Element | null;
6
+ declare function defaultNotEmpty(value: any): boolean;
7
+ import React from 'react';
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Popover } from '@radix-ui/themes';
3
+ import { PromptPopoverProps } from './types';
4
+ declare function Content({ onConfirmDiscardUnsubmittedChanges, ...props }: PromptPopoverProps): React.JSX.Element;
5
+ export declare const PromptPopover: {
6
+ Root: React.FC<Popover.RootProps>;
7
+ Trigger: React.ForwardRefExoticComponent<Popover.TriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
+ Anchor: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
9
+ Content: typeof Content;
10
+ };
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './PromptPopover';
@@ -0,0 +1,9 @@
1
+ import { FlexProps, Popover } from '@radix-ui/themes';
2
+ import { MergeableComponentInput } from '../mergeable';
3
+ import { PromptUIProps } from '../usePromptUI';
4
+ export type PromptPopoverProps = PromptUIProps & Partial<{
5
+ restore: MergeableComponentInput;
6
+ cancel: MergeableComponentInput;
7
+ submit: MergeableComponentInput;
8
+ buttonBar: FlexProps;
9
+ }> & Parameters<typeof Popover.Content>[0];
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ResponsiveProps } from './types';
3
+ export declare const Responsive: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
5
+ }, ResponsiveProps>>;
@@ -0,0 +1,4 @@
1
+ export * from './Responsive';
2
+ export * from '../responsiveCss';
3
+ export * from './types';
4
+ export * from './transformResponsiveValue';
@@ -0,0 +1,2 @@
1
+ import { ResponsiveProps } from './types';
2
+ export declare function responsiveStyles({ style, theme }: ResponsiveProps): string;
@@ -0,0 +1,2 @@
1
+ import { ResponsiveValueInput } from './types';
2
+ export declare function transformResponsiveValue<T, T2>(input: ResponsiveValueInput<T>, transformer: (input: T) => T2): ResponsiveValueInput<T2>;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Theme } from '../Theme';
3
+ import { ResponsiveValue } from '../responsiveCss';
4
+ export * from '../responsiveCss';
5
+ type PseudoCSSStyleType = {
6
+ [key: string]: string | number | ResponsiveValue<any> | undefined;
7
+ };
8
+ export type ResponsiveProps = {
9
+ style?: PseudoCSSStyleType;
10
+ children?: React.ReactNode;
11
+ theme?: Partial<Theme>;
12
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const RichText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { Block } from '@blocknote/core';
3
+ type BlockRendererProps = {
4
+ block: Block;
5
+ };
6
+ export declare function BlockRenderer({ block }: BlockRendererProps): React.JSX.Element;
7
+ export declare function BlockRendererList({ blocks }: {
8
+ blocks: Block[];
9
+ }): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { InlineContent } from './types';
3
+ export declare function InlineContentRenderer({ inlineContent, }: {
4
+ inlineContent: InlineContent;
5
+ }): React.JSX.Element;
6
+ export declare function InlineContentRendererList({ inlineContents, }: {
7
+ inlineContents: InlineContent[];
8
+ }): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { Renderers } from './types';
3
+ export declare const RendererContext: import("react").Context<Renderers>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { RichTextRendererProps } from './types';
3
+ export declare function RichTextRenderer({ blocks, renderers, trim, }: RichTextRendererProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function Unsupported(props: any): React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * BlockNote represents list items as isolate blocks.
3
+ * - bullteListItem
4
+ * - numberedListItem
5
+ *
6
+ * We must group them into list blocks before rendering
7
+ * in order to facilitate rendering to <ul> and <ol> tags
8
+ */
9
+ import { Block } from '@blocknote/core';
10
+ export declare function groupListItems(blocks: Block[]): Block[];
@@ -0,0 +1,4 @@
1
+ export * from './renderers';
2
+ export * from './RendererContext';
3
+ export * from './RichTextRenderer';
4
+ export * from './util';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { HeadingBlock } from '../../types';
3
+ export declare function Heading({ props, content, children }: HeadingBlock): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ImageBlock } from '../../types';
3
+ export declare function Image({ props }: ImageBlock): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { TableBlock } from '../../types';
3
+ export declare function Table({ content }: TableBlock): React.JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { Link } from '../../types';
3
+ export declare function Link({ href, target, content }: Link): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { StyledText } from '../../types';
3
+ export declare function StyledText({ styles, text }: StyledText): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { Renderers } from '../types';
2
+ export declare const DEFAULT_RENDERERS: Renderers;