@guillotinaweb/react-gmi 0.27.0 → 0.28.1

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 (126) hide show
  1. package/dist/actions/add_item.d.ts +5 -1
  2. package/dist/actions/change_pass.d.ts +1 -1
  3. package/dist/actions/copy_item.d.ts +6 -1
  4. package/dist/actions/copy_items.d.ts +6 -1
  5. package/dist/actions/index.d.ts +2 -2
  6. package/dist/actions/move_item.d.ts +6 -1
  7. package/dist/actions/move_items.d.ts +6 -1
  8. package/dist/actions/remove_item.d.ts +6 -1
  9. package/dist/actions/remove_items.d.ts +6 -1
  10. package/dist/components/Link.d.ts +10 -6
  11. package/dist/components/TdLink.d.ts +10 -5
  12. package/dist/components/behavior_view.d.ts +8 -5
  13. package/dist/components/behaviors/iattachment.d.ts +9 -4
  14. package/dist/components/behaviors/idublincore.d.ts +10 -4
  15. package/dist/components/behaviors/iimageattachment.d.ts +9 -4
  16. package/dist/components/behaviors/imultiattachment.d.ts +11 -4
  17. package/dist/components/behaviors/imultiimageattachment.d.ts +11 -4
  18. package/dist/components/behaviors/imultiimageorderedattachment.d.ts +9 -4
  19. package/dist/components/behaviors/iworkflow.d.ts +1 -1
  20. package/dist/components/context_toolbar.d.ts +7 -5
  21. package/dist/components/error_boundary.d.ts +6 -4
  22. package/dist/components/error_zone.d.ts +16 -13
  23. package/dist/components/fields/downloadField.d.ts +11 -4
  24. package/dist/components/fields/editComponent.d.ts +14 -2
  25. package/dist/components/fields/editableField.d.ts +10 -8
  26. package/dist/components/fields/renderField.d.ts +31 -21
  27. package/dist/components/flash.d.ts +1 -1
  28. package/dist/components/guillotina.d.ts +12 -5
  29. package/dist/components/index.d.ts +54 -54
  30. package/dist/components/input/button.d.ts +12 -10
  31. package/dist/components/input/checkbox.d.ts +18 -17
  32. package/dist/components/input/dropdown.d.ts +15 -10
  33. package/dist/components/input/email.d.ts +9 -5
  34. package/dist/components/input/form.d.ts +13 -20
  35. package/dist/components/input/form_builder.d.ts +15 -12
  36. package/dist/components/input/index.d.ts +11 -1
  37. package/dist/components/input/input.d.ts +26 -1
  38. package/dist/components/input/input_list.d.ts +9 -2
  39. package/dist/components/input/password.d.ts +8 -4
  40. package/dist/components/input/search_input.d.ts +21 -36
  41. package/dist/components/input/search_input_list.d.ts +21 -35
  42. package/dist/components/input/select.d.ts +25 -1
  43. package/dist/components/input/select_vocabulary.d.ts +15 -1
  44. package/dist/components/input/textarea.d.ts +15 -1
  45. package/dist/components/input/upload.d.ts +9 -5
  46. package/dist/components/item.d.ts +23 -13
  47. package/dist/components/layout.d.ts +9 -5
  48. package/dist/components/login.d.ts +10 -7
  49. package/dist/components/modal.d.ts +24 -14
  50. package/dist/components/notallowed.d.ts +1 -1
  51. package/dist/components/notfound.d.ts +1 -1
  52. package/dist/components/pagination.d.ts +8 -6
  53. package/dist/components/panel/actions.d.ts +1 -1
  54. package/dist/components/panel/addons.d.ts +1 -1
  55. package/dist/components/panel/behaviors.d.ts +1 -1
  56. package/dist/components/panel/index.d.ts +4 -1
  57. package/dist/components/panel/items.d.ts +1 -1
  58. package/dist/components/panel/permissions.d.ts +7 -5
  59. package/dist/components/panel/permissions_prinperm.d.ts +17 -6
  60. package/dist/components/panel/permissions_prinrole.d.ts +17 -6
  61. package/dist/components/panel/permissions_roleperm.d.ts +17 -6
  62. package/dist/components/panel/properties.d.ts +1 -1
  63. package/dist/components/path.d.ts +1 -1
  64. package/dist/components/properties_view.d.ts +7 -2
  65. package/dist/components/search_labels.d.ts +5 -1
  66. package/dist/components/search_options_labels.d.ts +9 -1
  67. package/dist/components/search_vocabulary_labels.d.ts +6 -1
  68. package/dist/components/selected_items_actions.d.ts +17 -12
  69. package/dist/components/tabs.d.ts +10 -11
  70. package/dist/components/ui/delete.d.ts +8 -5
  71. package/dist/components/ui/icon.d.ts +7 -5
  72. package/dist/components/ui/index.d.ts +6 -6
  73. package/dist/components/ui/loading.d.ts +6 -3
  74. package/dist/components/ui/notification.d.ts +7 -4
  75. package/dist/components/ui/table.d.ts +8 -5
  76. package/dist/components/ui/tag.d.ts +9 -7
  77. package/dist/components/widgets/index.d.ts +1 -1
  78. package/dist/components/widgets/tags.d.ts +10 -8
  79. package/dist/contexts/index.d.ts +54 -13
  80. package/dist/forms/base.d.ts +12 -7
  81. package/dist/forms/required_fields.d.ts +12 -8
  82. package/dist/forms/users.d.ts +13 -5
  83. package/dist/hooks/useClickAway.d.ts +1 -1
  84. package/dist/hooks/useConfig.d.ts +17 -17
  85. package/dist/hooks/useCrudContext.d.ts +20 -1
  86. package/dist/hooks/useInput.d.ts +10 -7
  87. package/dist/hooks/useLocation.d.ts +2 -1
  88. package/dist/hooks/useMountedState.d.ts +1 -1
  89. package/dist/hooks/useRegistry.d.ts +61 -106
  90. package/dist/hooks/useRemoteField.d.ts +2 -1
  91. package/dist/hooks/useSetState.d.ts +1 -1
  92. package/dist/hooks/useVocabulary.d.ts +8 -1
  93. package/dist/index.d.ts +29 -29
  94. package/dist/lib/auth.d.ts +31 -31
  95. package/dist/lib/client.d.ts +59 -57
  96. package/dist/lib/helpers.d.ts +24 -24
  97. package/dist/lib/rest.d.ts +23 -22
  98. package/dist/lib/search.d.ts +2 -2
  99. package/dist/lib/search.test.d.ts +1 -1
  100. package/dist/lib/utils.d.ts +4 -3
  101. package/dist/lib/validators.d.ts +12 -12
  102. package/dist/locales/generic_messages.d.ts +370 -370
  103. package/dist/models/index.d.ts +17 -17
  104. package/dist/models/sharing.d.ts +12 -9
  105. package/dist/react-gmi.esm.js +3865 -3278
  106. package/dist/react-gmi.esm.js.map +1 -1
  107. package/dist/react-gmi.js +3864 -3276
  108. package/dist/react-gmi.js.map +1 -1
  109. package/dist/react-gmi.modern.js +3627 -3129
  110. package/dist/react-gmi.modern.js.map +1 -1
  111. package/dist/react-gmi.umd.js +3867 -3280
  112. package/dist/react-gmi.umd.js.map +1 -1
  113. package/dist/reducers/guillotina.d.ts +29 -19
  114. package/dist/setupTests.d.ts +1 -1
  115. package/dist/types/global.d.ts +8 -0
  116. package/dist/types/guillotina.d.ts +121 -0
  117. package/dist/views/application.d.ts +13 -17
  118. package/dist/views/base.d.ts +5 -1
  119. package/dist/views/container.d.ts +1 -1
  120. package/dist/views/folder.d.ts +1 -1
  121. package/dist/views/groups.d.ts +3 -3
  122. package/dist/views/item.d.ts +1 -1
  123. package/dist/views/users.d.ts +3 -3
  124. package/package.json +13 -6
  125. package/dist/hooks/useAsync.d.ts +0 -3
  126. package/dist/hooks/useAsyncFn.d.ts +0 -5
@@ -1 +1,5 @@
1
- export function AddItem(props: any): JSX.Element;
1
+ interface Props {
2
+ type: string;
3
+ }
4
+ export declare function AddItem(props: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -1 +1 @@
1
- export function ChangePassword(props: any): JSX.Element;
1
+ export declare function ChangePassword(): import("react/jsx-runtime").JSX.Element;
@@ -1 +1,6 @@
1
- export function CopyItem(props: any): JSX.Element;
1
+ import { ItemModel } from '../models';
2
+ interface Props {
3
+ item: ItemModel;
4
+ }
5
+ export declare function CopyItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export function CopyItems(props: any): JSX.Element;
1
+ import { ItemModel } from '../models';
2
+ interface Props {
3
+ items: Array<ItemModel>;
4
+ }
5
+ export declare function CopyItems(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,2 +1,2 @@
1
- export * from "./add_item";
2
- export * from "./remove_items";
1
+ export * from './add_item';
2
+ export * from './remove_items';
@@ -1 +1,6 @@
1
- export function MoveItem(props: any): JSX.Element;
1
+ import { ItemModel } from '../models';
2
+ interface Props {
3
+ item: ItemModel;
4
+ }
5
+ export declare function MoveItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export function MoveItems(props: any): JSX.Element;
1
+ import { ItemModel } from '../models';
2
+ interface Props {
3
+ items: ItemModel[];
4
+ }
5
+ export declare function MoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export function RemoveItem(props: any): JSX.Element;
1
+ import { ItemModel } from '../models';
2
+ interface Props {
3
+ item: ItemModel;
4
+ }
5
+ export declare function RemoveItem(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1 +1,6 @@
1
- export function RemoveItems(props: any): JSX.Element;
1
+ import { ItemModel } from '../models';
2
+ interface Props {
3
+ items: ItemModel[];
4
+ }
5
+ export declare function RemoveItems(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,6 +1,10 @@
1
- export function Link({ aRef, model, children, ...props }: {
2
- [x: string]: any;
3
- aRef: any;
4
- model: any;
5
- children: any;
6
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { ItemModel } from '../models';
3
+ interface Props {
4
+ aRef?: React.Ref<HTMLAnchorElement>;
5
+ model: ItemModel;
6
+ children: React.ReactNode;
7
+ onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
8
+ }
9
+ export declare function Link({ aRef, model, children, ...props }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,5 +1,10 @@
1
- export function TdLink({ model, children, ...props }: {
2
- [x: string]: any;
3
- model: any;
4
- children: any;
5
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { ItemModel } from '../models';
3
+ import { IndexSignature } from '../types/global';
4
+ interface Props {
5
+ model: ItemModel;
6
+ children: React.ReactNode;
7
+ style?: IndexSignature;
8
+ }
9
+ export declare function TdLink({ model, children, style }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,5 +1,8 @@
1
- export function BehaviorsView({ context, schema }: {
2
- context: any;
3
- schema: any;
4
- }): JSX.Element;
5
- export function BehaviorNotImplemented(): JSX.Element;
1
+ import { GuillotinaCommonObject, GuillotinaSchema } from '../types/guillotina';
2
+ interface Props {
3
+ context: GuillotinaCommonObject;
4
+ schema: GuillotinaSchema;
5
+ }
6
+ export declare function BehaviorsView({ context, schema }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export declare function BehaviorNotImplemented(): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,4 +1,9 @@
1
- export function IAttachment({ properties, values }: {
2
- properties: any;
3
- values: any;
4
- }): JSX.Element;
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ file: GuillotinaFile;
6
+ };
7
+ }
8
+ export declare function IAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,4 +1,10 @@
1
- export function IDublinCore({ properties, values }: {
2
- properties: any;
3
- values: any;
4
- }): JSX.Element;
1
+ interface Props {
2
+ properties: {
3
+ [key: string]: any;
4
+ };
5
+ values: {
6
+ [key: string]: any;
7
+ };
8
+ }
9
+ export declare function IDublinCore({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,4 +1,9 @@
1
- export function IImageAttachment({ properties, values }: {
2
- properties: any;
3
- values: any;
4
- }): JSX.Element;
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ image: GuillotinaFile;
6
+ };
7
+ }
8
+ export declare function IImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,4 +1,11 @@
1
- export function IMultiAttachment({ properties, values }: {
2
- properties: any;
3
- values: any;
4
- }): JSX.Element;
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ files: {
6
+ [key: string]: GuillotinaFile;
7
+ };
8
+ };
9
+ }
10
+ export declare function IMultiAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,4 +1,11 @@
1
- export function IMultiImageAttachment({ properties, values }: {
2
- properties: any;
3
- values: any;
4
- }): JSX.Element;
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ images: {
6
+ [key: string]: GuillotinaFile;
7
+ };
8
+ };
9
+ }
10
+ export declare function IMultiImageAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,4 +1,9 @@
1
- export function IMultiImageOrderedAttachment({ properties, values }: {
2
- properties: any;
3
- values: any;
4
- }): JSX.Element;
1
+ import { GuillotinaFile, GuillotinaSchemaProperties } from '../../types/guillotina';
2
+ interface Props {
3
+ properties: GuillotinaSchemaProperties;
4
+ values: {
5
+ images: GuillotinaFile[];
6
+ };
7
+ }
8
+ export declare function IMultiImageOrderedAttachment({ properties, values }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1 +1 @@
1
- export function IWorkflow(): JSX.Element;
1
+ export declare function IWorkflow(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
- export function CreateButton(): JSX.Element;
2
- export function ContextToolbar({ AddButton, ...props }: {
3
- [x: string]: any;
4
- AddButton: any;
5
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ export declare function CreateButton(): import("react/jsx-runtime").JSX.Element;
3
+ interface Props {
4
+ AddButton?: React.FC;
5
+ }
6
+ export declare function ContextToolbar({ AddButton }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,4 +1,6 @@
1
- declare var _default: import("react-intl/node_modules/@types/react").FC<import("react-intl").WithIntlProps<import("react-intl").WrappedComponentProps<any>>> & {
2
- WrappedComponent: import("react-intl/node_modules/@types/react").ComponentType<import("react-intl").WrappedComponentProps<any>>;
3
- };
4
- export default _default;
1
+ /// <reference types="react" />
2
+ import { IntlShape } from 'react-intl';
3
+ export declare const ErrorBoundary: React.ComponentType<{
4
+ intl: IntlShape;
5
+ children: React.ReactNode;
6
+ }>;
@@ -1,13 +1,16 @@
1
- export default ErrorZone;
2
- declare function ErrorZone({ children, id, className }: {
3
- children: any;
4
- id: any;
5
- className: any;
6
- }): JSX.Element;
7
- declare namespace ErrorZone {
8
- namespace propTypes {
9
- const children: any;
10
- const id: any;
11
- const className: any;
12
- }
13
- }
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ interface Props {
4
+ children: React.ReactNode;
5
+ id?: string;
6
+ className?: string;
7
+ }
8
+ declare const ErrorZone: {
9
+ ({ children, id, className }: Props): import("react/jsx-runtime").JSX.Element;
10
+ propTypes: {
11
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
+ id: PropTypes.Requireable<string>;
13
+ className: PropTypes.Requireable<string>;
14
+ };
15
+ };
16
+ export default ErrorZone;
@@ -1,4 +1,11 @@
1
- export function DownloadField({ value }: {
2
- value: any;
3
- }): React.JSX.Element;
4
- import * as React from "react";
1
+ interface DownloadFieldProps {
2
+ value: {
3
+ data: {
4
+ filename: string;
5
+ content_type: string;
6
+ };
7
+ field: string;
8
+ };
9
+ }
10
+ export declare const DownloadField: ({ value }: DownloadFieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,2 +1,14 @@
1
- export const EditComponent: any;
2
- export default EditComponent;
1
+ /// <reference types="react" />
2
+ import { GuillotinaItemsProperty } from '../../types/guillotina';
3
+ interface Props {
4
+ schema: GuillotinaItemsProperty;
5
+ val: any;
6
+ setValue: (value: any) => void;
7
+ dataTest?: string;
8
+ className?: string;
9
+ placeholder?: string;
10
+ id?: string;
11
+ required?: boolean;
12
+ }
13
+ export declare const EditComponent: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<unknown>>;
14
+ export default EditComponent;
@@ -1,8 +1,10 @@
1
- export function EditableField({ field, value, ns, schema, modifyContent, required, }: {
2
- field: any;
3
- value: any;
4
- ns: any;
5
- schema?: any;
6
- modifyContent: any;
7
- required: any;
8
- }): JSX.Element;
1
+ interface Props {
2
+ field: string;
3
+ value: any;
4
+ ns?: string;
5
+ schema?: any;
6
+ modifyContent?: boolean;
7
+ required?: boolean;
8
+ }
9
+ export declare function EditableField({ field, value, ns, schema, modifyContent, required, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,21 +1,31 @@
1
- export function RenderField({ value, Widget, schema }: {
2
- value: any;
3
- Widget: any;
4
- schema: any;
5
- }): any;
6
- export function RenderFieldComponent({ schema, field, val, modifyContent }: {
7
- schema: any;
8
- field: any;
9
- val: any;
10
- modifyContent: any;
11
- }): JSX.Element;
12
- export function SearchRenderField({ schema, value, modifyContent }: {
13
- schema: any;
14
- value: any;
15
- modifyContent: any;
16
- }): JSX.Element;
17
- export function VocabularyRenderField({ schema, value, modifyContent }: {
18
- schema: any;
19
- value: any;
20
- modifyContent: any;
21
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ import { GuillotinaSchemaProperty } from '../../types/guillotina';
3
+ interface RenderFieldProps {
4
+ value: any;
5
+ Widget?: React.ComponentType<{
6
+ value: any;
7
+ schema: GuillotinaSchemaProperty;
8
+ }>;
9
+ schema?: GuillotinaSchemaProperty;
10
+ }
11
+ export declare function RenderField({ value, Widget, schema }: RenderFieldProps): any;
12
+ interface SearchRenderFieldProps {
13
+ schema: GuillotinaSchemaProperty;
14
+ value: string | string[];
15
+ modifyContent: boolean;
16
+ }
17
+ export declare const SearchRenderField: ({ schema, value, modifyContent, }: SearchRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
18
+ interface VocabularyRenderFieldProps {
19
+ schema: GuillotinaSchemaProperty;
20
+ value: string | string[];
21
+ modifyContent: boolean;
22
+ }
23
+ export declare const VocabularyRenderField: ({ schema, value, modifyContent, }: VocabularyRenderFieldProps) => import("react/jsx-runtime").JSX.Element;
24
+ interface RenderFieldComponentProps {
25
+ schema: GuillotinaSchemaProperty;
26
+ field: string;
27
+ val: any;
28
+ modifyContent?: boolean;
29
+ }
30
+ export declare function RenderFieldComponent({ schema, field, val, modifyContent, }: RenderFieldComponentProps): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -1 +1 @@
1
- export function Flash(): JSX.Element;
1
+ export declare function Flash(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,12 @@
1
- export function Guillotina({ auth, locale, ...props }: {
2
- [x: string]: any;
3
- auth: any;
4
- locale: any;
5
- }): JSX.Element;
1
+ import { IRegistry } from '../hooks/useRegistry';
2
+ import { Auth } from '../lib/auth';
3
+ import { IndexSignature } from '../types/global';
4
+ interface GuillotinaProps {
5
+ auth: Auth;
6
+ locale: string;
7
+ url: string;
8
+ config: IndexSignature;
9
+ registry: IRegistry;
10
+ }
11
+ export declare function Guillotina({ auth, locale, ...props }: GuillotinaProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -1,54 +1,54 @@
1
- export * from "./input/button";
2
- export * from "./input/checkbox";
3
- export * from "./input/email";
4
- export * from "./input/form_builder";
5
- export * from "./input/form";
6
- export * from "./input/input";
7
- export * from "./input/password";
8
- export * from "./input/select";
9
- export * from "./input/upload";
10
- export * from "./input/textarea";
11
- export * from "./input/search_input";
12
- export * from "./input/input_list";
13
- export * from "./input/dropdown";
14
- export * from "./fields/editableField";
15
- export * from "./fields/renderField";
16
- export * from "./fields/downloadField";
17
- export * from "./fields/editComponent";
18
- export * from "./behaviors/iattachment";
19
- export * from "./behaviors/imultiattachment";
20
- export * from "./behaviors/iimageattachment";
21
- export * from "./behaviors/imultiimageattachment";
22
- export * from "./behaviors/imultiimageorderedattachment";
23
- export * from "./behaviors/iworkflow";
24
- export * from "./panel/actions";
25
- export * from "./panel/addons";
26
- export * from "./panel/behaviors";
27
- export * from "./panel/items";
28
- export * from "./panel/properties";
29
- export * from "./panel/permissions";
30
- export * from "./panel/permissions_prinperm";
31
- export * from "./panel/permissions_prinrole";
32
- export * from "./panel/permissions_roleperm";
33
- export * from "./ui";
34
- export * from "./widgets";
35
- export * from "./behavior_view";
36
- export * from "./properties_view";
37
- export * from "./context_toolbar";
38
- export * from "./error_zone";
39
- export * from "./flash";
40
- export * from "./guillotina";
41
- export * from "./item";
42
- export * from "./Link";
43
- export * from "./layout";
44
- export * from "./login";
45
- export * from "./modal";
46
- export * from "./notallowed";
47
- export * from "./pagination";
48
- export * from "./path";
49
- export * from "./search_labels";
50
- export * from "./search_options_labels";
51
- export * from "./search_vocabulary_labels";
52
- export * from "./tabs";
53
- export * from "./selected_items_actions";
54
- export * from "./TdLink";
1
+ export * from './input/button';
2
+ export * from './input/checkbox';
3
+ export * from './input/email';
4
+ export * from './input/form_builder';
5
+ export * from './input/form';
6
+ export * from './input/input';
7
+ export * from './input/password';
8
+ export * from './input/select';
9
+ export * from './input/upload';
10
+ export * from './input/textarea';
11
+ export * from './input/search_input';
12
+ export * from './input/input_list';
13
+ export * from './input/dropdown';
14
+ export * from './fields/editableField';
15
+ export * from './fields/renderField';
16
+ export * from './fields/downloadField';
17
+ export * from './fields/editComponent';
18
+ export * from './behaviors/iattachment';
19
+ export * from './behaviors/imultiattachment';
20
+ export * from './behaviors/iimageattachment';
21
+ export * from './behaviors/imultiimageattachment';
22
+ export * from './behaviors/imultiimageorderedattachment';
23
+ export * from './behaviors/iworkflow';
24
+ export * from './panel/actions';
25
+ export * from './panel/addons';
26
+ export * from './panel/behaviors';
27
+ export * from './panel/items';
28
+ export * from './panel/properties';
29
+ export * from './panel/permissions';
30
+ export * from './panel/permissions_prinperm';
31
+ export * from './panel/permissions_prinrole';
32
+ export * from './panel/permissions_roleperm';
33
+ export * from './ui';
34
+ export * from './widgets';
35
+ export * from './behavior_view';
36
+ export * from './properties_view';
37
+ export * from './context_toolbar';
38
+ export * from './error_zone';
39
+ export * from './flash';
40
+ export * from './guillotina';
41
+ export * from './item';
42
+ export * from './Link';
43
+ export * from './layout';
44
+ export * from './login';
45
+ export * from './modal';
46
+ export * from './notallowed';
47
+ export * from './pagination';
48
+ export * from './path';
49
+ export * from './search_labels';
50
+ export * from './search_options_labels';
51
+ export * from './search_vocabulary_labels';
52
+ export * from './tabs';
53
+ export * from './selected_items_actions';
54
+ export * from './TdLink';
@@ -1,10 +1,12 @@
1
- export function Button({ children, className, onClick, type, loading, disabled, dataTest, ...rest }: {
2
- [x: string]: any;
3
- children: any;
4
- className?: string;
5
- onClick: any;
6
- type?: string;
7
- loading?: boolean;
8
- disabled?: boolean;
9
- dataTest: any;
10
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
6
+ type?: 'submit' | 'reset' | 'button';
7
+ loading?: boolean;
8
+ disabled?: boolean;
9
+ dataTest?: string;
10
+ }
11
+ export declare const Button: ({ children, className, onClick, type, loading, disabled, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -1,17 +1,18 @@
1
- export function Checkbox({ id, className, classNameInput, loading, disabled, indeterminate, value, color, backgroundColor, borderColor, children, placeholder, onChange, dataTest, ...rest }: {
2
- [x: string]: any;
3
- id: any;
4
- className: any;
5
- classNameInput: any;
6
- loading: any;
7
- disabled: any;
8
- indeterminate?: boolean;
9
- value?: boolean;
10
- color: any;
11
- backgroundColor: any;
12
- borderColor: any;
13
- children: any;
14
- placeholder: any;
15
- onChange: any;
16
- dataTest: any;
17
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ className?: string;
4
+ classNameInput?: string;
5
+ loading?: boolean;
6
+ indeterminate?: boolean;
7
+ backgroundColor?: string;
8
+ borderColor?: string;
9
+ dataTest?: string;
10
+ onChange: (value: boolean) => void;
11
+ id?: string;
12
+ disabled?: boolean;
13
+ checked?: boolean;
14
+ children?: React.ReactNode;
15
+ placeholder?: string;
16
+ }
17
+ export declare const Checkbox: ({ id, className, classNameInput, loading, disabled, indeterminate, checked, children, placeholder, onChange, dataTest, }: Props) => import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -1,10 +1,15 @@
1
- export default function Dropdown({ children, disabled, id, isRight, onChange, optionDisabledWhen, options, ...props }: {
2
- [x: string]: any;
3
- children: any;
4
- disabled: any;
5
- id: any;
6
- isRight: any;
7
- onChange: any;
8
- optionDisabledWhen: any;
9
- options: any;
10
- }): JSX.Element;
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ disabled?: boolean;
5
+ id?: string;
6
+ isRight?: boolean;
7
+ onChange: (value: string) => void;
8
+ optionDisabledWhen?: (option: any) => boolean;
9
+ options: {
10
+ text: string;
11
+ value: string;
12
+ }[];
13
+ }
14
+ export default function Dropdown({ children, disabled, id, isRight, onChange, optionDisabledWhen, options, }: Props): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -1,5 +1,9 @@
1
- export function EmailInput({ value, dataTest, ...rest }: {
2
- [x: string]: any;
3
- value?: string;
4
- dataTest: any;
5
- }): JSX.Element;
1
+ interface Props {
2
+ value?: string;
3
+ dataTest?: string;
4
+ onChange?: (value: string) => void;
5
+ placeholder?: string;
6
+ id?: string;
7
+ }
8
+ export declare const EmailInput: ({ value, dataTest, placeholder, id, }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export {};