@reapit/elements 2.3.1 → 2.4.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 (178) hide show
  1. package/README.md +2 -10
  2. package/README_INTERNAL.md +15 -0
  3. package/dist/cjs/components/Button/index.d.ts +2 -2
  4. package/dist/cjs/components/CameraImageInput/camera-image-input.stories.d.ts +1 -0
  5. package/dist/cjs/components/CameraImageInput/index.d.ts +1 -0
  6. package/dist/cjs/components/CardInputGroup/card-expires-input.d.ts +1 -0
  7. package/dist/cjs/components/Checkbox/checkbox.stories.d.ts +1 -0
  8. package/dist/cjs/components/Checkbox/index.d.ts +1 -0
  9. package/dist/cjs/components/DatePicker/date-picker.stories.d.ts +1 -0
  10. package/dist/cjs/components/DynamicLinks/index.d.ts +2 -2
  11. package/dist/cjs/components/Editor/editor.stories.d.ts +1 -0
  12. package/dist/cjs/components/Editor/index.d.ts +1 -0
  13. package/dist/cjs/components/FileInput/file-input.stories.d.ts +1 -0
  14. package/dist/cjs/components/HelpGuide/help-guide.stories.d.ts +1 -0
  15. package/dist/cjs/components/HtmlRender/utils.d.ts +1 -0
  16. package/dist/cjs/components/IconList/__tests__/index.d.ts +1 -0
  17. package/dist/cjs/components/ImageInput/image-input.stories.d.ts +1 -0
  18. package/dist/cjs/components/ImageInput/index.d.ts +1 -0
  19. package/dist/cjs/components/Info/index.d.ts +1 -1
  20. package/dist/cjs/components/Input/input.stories.d.ts +1 -0
  21. package/dist/cjs/components/Layout/index.d.ts +1 -1
  22. package/dist/cjs/components/Menu/Menu.d.ts +2 -2
  23. package/dist/cjs/components/Pagination/index.d.ts +1 -0
  24. package/dist/cjs/components/Pagination/pagination.stories.d.ts +1 -0
  25. package/dist/cjs/components/SelectBox/index.d.ts +1 -0
  26. package/dist/cjs/components/SelectBox/select-box.stories.d.ts +1 -0
  27. package/dist/cjs/components/Spreadsheet/__stubs__/index.d.ts +1 -0
  28. package/dist/cjs/components/TextArea/index.d.ts +1 -0
  29. package/dist/cjs/components/TextArea/text-area.stories.d.ts +1 -0
  30. package/dist/cjs/components/TextAreaEditor/index.d.ts +1 -0
  31. package/dist/cjs/components/TextAreaEditor/text-area-editor.stories.d.ts +1 -0
  32. package/dist/cjs/components/Tile/__styles__/index.d.ts +5 -5
  33. package/dist/cjs/components/Tile/index.d.ts +1 -1
  34. package/dist/cjs/components/Typography/index.d.ts +1 -1
  35. package/dist/cjs/components/Wizard/context.d.ts +1 -1
  36. package/dist/cjs/components/Wizard/index.d.ts +6 -6
  37. package/dist/cjs/components/Wizard/wizard.stories.d.ts +1 -0
  38. package/dist/cjs/helpers/fade-in.d.ts +1 -1
  39. package/dist/cjs/helpers/mock-router.d.ts +1 -2
  40. package/dist/cjs/hooks/UsePortal/use-portal.stories.d.ts +1 -0
  41. package/dist/cjs/index.d.ts +1 -1
  42. package/dist/cjs/index.js +11 -26
  43. package/dist/cjs/index.js.map +1 -1
  44. package/dist/cjs/utils/combine-address/combine-address.stories.d.ts +1 -0
  45. package/dist/cjs/utils/completed-section/completed-section.stories.d.ts +1 -0
  46. package/dist/cjs/utils/datetime/datetime.stories.d.ts +1 -0
  47. package/dist/cjs/utils/device-detection/device-detection.stories.d.ts +1 -0
  48. package/dist/cjs/utils/fetcher/fetcher.stories.d.ts +1 -0
  49. package/dist/cjs/utils/is-base64/is-base64.stories.d.ts +1 -0
  50. package/dist/cjs/utils/query-params/query-params.stories.d.ts +1 -0
  51. package/dist/cjs/utils/validators/validate-base.d.ts +1 -1
  52. package/dist/cjs/utils/validators/validators.stories.d.ts +1 -0
  53. package/dist/esm/components/Button/index.d.ts +2 -2
  54. package/dist/esm/components/CameraImageInput/camera-image-input.stories.d.ts +1 -0
  55. package/dist/esm/components/CameraImageInput/index.d.ts +1 -0
  56. package/dist/esm/components/CardInputGroup/card-expires-input.d.ts +1 -0
  57. package/dist/esm/components/Checkbox/checkbox.stories.d.ts +1 -0
  58. package/dist/esm/components/Checkbox/index.d.ts +1 -0
  59. package/dist/esm/components/DatePicker/date-picker.stories.d.ts +1 -0
  60. package/dist/esm/components/DynamicLinks/index.d.ts +2 -2
  61. package/dist/esm/components/Editor/editor.stories.d.ts +1 -0
  62. package/dist/esm/components/Editor/index.d.ts +1 -0
  63. package/dist/esm/components/FileInput/file-input.stories.d.ts +1 -0
  64. package/dist/esm/components/HelpGuide/help-guide.stories.d.ts +1 -0
  65. package/dist/esm/components/HtmlRender/utils.d.ts +1 -0
  66. package/dist/esm/components/IconList/__tests__/index.d.ts +1 -0
  67. package/dist/esm/components/ImageInput/image-input.stories.d.ts +1 -0
  68. package/dist/esm/components/ImageInput/index.d.ts +1 -0
  69. package/dist/esm/components/Info/index.d.ts +1 -1
  70. package/dist/esm/components/Input/input.stories.d.ts +1 -0
  71. package/dist/esm/components/Layout/index.d.ts +1 -1
  72. package/dist/esm/components/Menu/Menu.d.ts +2 -2
  73. package/dist/esm/components/Pagination/index.d.ts +1 -0
  74. package/dist/esm/components/Pagination/pagination.stories.d.ts +1 -0
  75. package/dist/esm/components/SelectBox/index.d.ts +1 -0
  76. package/dist/esm/components/SelectBox/select-box.stories.d.ts +1 -0
  77. package/dist/esm/components/Spreadsheet/__stubs__/index.d.ts +1 -0
  78. package/dist/esm/components/TextArea/index.d.ts +1 -0
  79. package/dist/esm/components/TextArea/text-area.stories.d.ts +1 -0
  80. package/dist/esm/components/TextAreaEditor/index.d.ts +1 -0
  81. package/dist/esm/components/TextAreaEditor/text-area-editor.stories.d.ts +1 -0
  82. package/dist/esm/components/Tile/__styles__/index.d.ts +5 -5
  83. package/dist/esm/components/Tile/index.d.ts +1 -1
  84. package/dist/esm/components/Typography/index.d.ts +1 -1
  85. package/dist/esm/components/Wizard/context.d.ts +1 -1
  86. package/dist/esm/components/Wizard/index.d.ts +6 -6
  87. package/dist/esm/components/Wizard/wizard.stories.d.ts +1 -0
  88. package/dist/esm/helpers/fade-in.d.ts +1 -1
  89. package/dist/esm/helpers/mock-router.d.ts +1 -2
  90. package/dist/esm/hooks/UsePortal/use-portal.stories.d.ts +1 -0
  91. package/dist/esm/index.d.ts +1 -1
  92. package/dist/esm/index.js +11 -26
  93. package/dist/esm/index.js.map +1 -1
  94. package/dist/esm/utils/combine-address/combine-address.stories.d.ts +1 -0
  95. package/dist/esm/utils/completed-section/completed-section.stories.d.ts +1 -0
  96. package/dist/esm/utils/datetime/datetime.stories.d.ts +1 -0
  97. package/dist/esm/utils/device-detection/device-detection.stories.d.ts +1 -0
  98. package/dist/esm/utils/fetcher/fetcher.stories.d.ts +1 -0
  99. package/dist/esm/utils/is-base64/is-base64.stories.d.ts +1 -0
  100. package/dist/esm/utils/query-params/query-params.stories.d.ts +1 -0
  101. package/dist/esm/utils/validators/validate-base.d.ts +1 -1
  102. package/dist/esm/utils/validators/validators.stories.d.ts +1 -0
  103. package/dist/index.css +1263 -11232
  104. package/package.json +74 -52
  105. package/src/tests/badges/badge-branches.svg +1 -1
  106. package/src/tests/badges/badge-functions.svg +1 -1
  107. package/src/tests/badges/badge-lines.svg +1 -1
  108. package/src/tests/badges/badge-statements.svg +1 -1
  109. package/v3/components/button/__styles__/index.d.ts +1 -0
  110. package/v3/components/button/button.d.ts +1 -0
  111. package/v3/components/card/card-components.d.ts +15 -14
  112. package/v3/components/file-input/__styles__/index.d.ts +13 -0
  113. package/{dist/cjs/components/Notification/__tests__/index.d.ts → v3/components/file-input/__tests__/file-input.test.d.ts} +0 -0
  114. package/v3/components/file-input/file-input.d.ts +21 -0
  115. package/v3/components/file-input/index.d.ts +2 -0
  116. package/v3/components/form-layout/__styles__/index.d.ts +1 -0
  117. package/v3/components/form-layout/form-layout.d.ts +3 -1
  118. package/v3/components/icon/icons/index.d.ts +24 -0
  119. package/v3/components/icon/icons/infographic-icons/appCategoryInfographic.d.ts +3 -0
  120. package/v3/components/icon/icons/infographic-icons/appMarketInfographic.d.ts +3 -0
  121. package/v3/components/icon/icons/infographic-icons/appTypeInfographic.d.ts +3 -0
  122. package/v3/components/icon/icons/infographic-icons/authenticatedInfographic.d.ts +3 -0
  123. package/v3/components/icon/icons/infographic-icons/codeInfographic.d.ts +3 -0
  124. package/v3/components/icon/icons/infographic-icons/developerAppsInfographic.d.ts +3 -0
  125. package/v3/components/icon/icons/infographic-icons/editAppInfographic.d.ts +3 -0
  126. package/v3/components/icon/icons/infographic-icons/listInfographic.d.ts +3 -0
  127. package/v3/components/icon/icons/infographic-icons/lockedInfographic.d.ts +3 -0
  128. package/v3/components/icon/icons/infographic-icons/mailInfographic.d.ts +3 -0
  129. package/v3/components/icon/icons/infographic-icons/phoneInfographic.d.ts +3 -0
  130. package/v3/components/icon/icons/infographic-icons/platformApiInfographic.d.ts +3 -0
  131. package/v3/components/icon/icons/infographic-icons/reapitConnectInfographic.d.ts +3 -0
  132. package/v3/components/icon/icons/infographic-icons/reapitLogoInfographic.d.ts +3 -0
  133. package/v3/components/icon/icons/infographic-icons/sharedEntitiesInfographic.d.ts +3 -0
  134. package/v3/components/icon/icons/infographic-icons/shieldInfographic.d.ts +3 -0
  135. package/v3/components/icon/icons/infographic-icons/webInfographic.d.ts +3 -0
  136. package/v3/components/icon/icons/infographic-icons/welcomeInfographic.d.ts +3 -0
  137. package/v3/components/icon/icons/menu-icons/supportMenu.d.ts +3 -0
  138. package/v3/components/icon/icons/system-icons/bulletListSystem.d.ts +3 -0
  139. package/v3/components/icon/icons/system-icons/dollarSystem.d.ts +3 -0
  140. package/v3/components/icon/icons/system-icons/euroSystem.d.ts +3 -0
  141. package/v3/components/icon/icons/system-icons/poundSystem.d.ts +3 -0
  142. package/v3/components/icon/icons/system-icons/videoSystem.d.ts +3 -0
  143. package/v3/components/input-group/input-group.d.ts +1 -1
  144. package/v3/components/multi-select/multi-select.d.ts +1 -1
  145. package/v3/components/nav/__styles__/index.d.ts +1 -1
  146. package/v3/components/nav/use-nav.stories.d.ts +1 -0
  147. package/v3/components/pagination/__styles__/index.d.ts +3 -0
  148. package/v3/components/pagination/pagination.d.ts +7 -2
  149. package/v3/components/persistant-notification/__styles__/index.d.ts +0 -5
  150. package/v3/components/persistent-notification/__styles__/index.d.ts +9 -0
  151. package/{dist/cjs/components/Notification/__tests__/useNotification.d.ts → v3/components/persistent-notification/__tests__/persistent-notification.test.d.ts} +0 -0
  152. package/v3/components/persistent-notification/index.d.ts +2 -0
  153. package/v3/components/persistent-notification/persistent-notification.d.ts +14 -0
  154. package/v3/components/placeholder-image/__styles__/index.d.ts +7 -0
  155. package/{dist/cjs/components/Wizard → v3/components/placeholder-image}/__tests__/index.d.ts +0 -0
  156. package/v3/components/placeholder-image/images/index.d.ts +5 -0
  157. package/v3/components/placeholder-image/images/placeholder-images/placeholderLarge.d.ts +3 -0
  158. package/v3/components/placeholder-image/images/placeholder-images/placeholderSmall.d.ts +3 -0
  159. package/v3/components/placeholder-image/index.d.ts +3 -0
  160. package/v3/components/placeholder-image/placeholder-image.d.ts +9 -0
  161. package/v3/components/progress-bar/progress-bar.d.ts +2 -0
  162. package/v3/components/table/__styles__/index.d.ts +6 -3
  163. package/v3/components/table/molecules.d.ts +4 -0
  164. package/v3/components/table/table.d.ts +3 -1
  165. package/v3/components/typography/__styles__/index.d.ts +3 -0
  166. package/v3/components/typography/typography.d.ts +3 -0
  167. package/{dist/cjs/hooks/UsePortal/__tests__/use-portal.d.ts → v3/hooks/use-theme/__tests__/use-theme.test.d.ts} +0 -0
  168. package/v3/hooks/use-theme/index.d.ts +16 -0
  169. package/v3/index.css +207 -193
  170. package/v3/index.d.ts +6 -0
  171. package/v3/index.js +1 -16
  172. package/v3/index.js.map +1 -1
  173. package/dist/cjs/hooks/UsePortal/__tests__/portal-provider.d.ts +0 -1
  174. package/dist/esm/components/Notification/__tests__/index.d.ts +0 -1
  175. package/dist/esm/components/Notification/__tests__/useNotification.d.ts +0 -1
  176. package/dist/esm/components/Wizard/__tests__/index.d.ts +0 -1
  177. package/dist/esm/hooks/UsePortal/__tests__/portal-provider.d.ts +0 -1
  178. package/dist/esm/hooks/UsePortal/__tests__/use-portal.d.ts +0 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -11,5 +11,5 @@ export interface ValidateCustomParams<ValuesType, ErrorKeys extends string> {
11
11
  keys: ErrorKeys[];
12
12
  currentErrors: PartialRecord<ErrorKeys, string>;
13
13
  }
14
- export declare const validateBase: <ValuesType extends Object, ErrorKeys extends string>({ values, keys, validator, errMessage, currentErrors, }: ValidateBaseProps<ValuesType, ErrorKeys>) => PartialRecord<ErrorKeys, string>;
14
+ export declare const validateBase: <ValuesType, ErrorKeys extends string>({ values, keys, validator, errMessage, currentErrors, }: ValidateBaseProps<ValuesType, ErrorKeys>) => PartialRecord<ErrorKeys, string>;
15
15
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface ButtonProps {
2
+ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
3
3
  type?: 'submit' | 'reset' | 'button';
4
4
  variant?: 'primary' | 'secondary' | 'danger' | 'info' | 'success';
5
5
  onClick?: () => void;
@@ -10,7 +10,7 @@ export interface ButtonProps {
10
10
  dataTest?: string;
11
11
  }
12
12
  export declare const Button: React.FC<ButtonProps>;
13
- export interface ButtonGroupProps {
13
+ export interface ButtonGroupProps extends React.HTMLAttributes<HTMLElement> {
14
14
  className?: string;
15
15
  hasSpacing?: boolean;
16
16
  isCentered?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { FileInputProps } from '../FileInput';
3
4
  declare const _default: {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { FileInputProps } from '../FileInput';
2
3
  export declare const CameraImageInput: (props: FileInputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { InputProps } from '../Input';
2
3
  export declare type CardExpiresInputProps = Pick<InputProps, 'name' | 'labelText' | 'id' | 'dataTest' | 'required' | 'disabled' | 'className'>;
3
4
  export declare const CardExpiresInput: ({ name, labelText, id, dataTest, required, disabled, className, }: CardExpiresInputProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { CheckboxProps } from '.';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldInputProps } from 'formik';
2
3
  export interface CheckboxProps {
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react';
2
3
  import { DatePickerProps } from '.';
3
4
  declare const _default: {
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import { ButtonProps } from '../Button/index';
3
3
  import { DynamicLinkParams } from './dynamic-link-gen';
4
- export interface AcLinkParams {
4
+ export interface AcLinkParams extends React.HTMLAttributes<HTMLElement> {
5
5
  dynamicLinkParams: DynamicLinkParams;
6
6
  navigateParentWindow?: Window;
7
7
  }
8
- export interface AcButtonParams {
8
+ export interface AcButtonParams extends React.HTMLAttributes<HTMLElement> {
9
9
  dynamicLinkParams: DynamicLinkParams;
10
10
  buttonProps: ButtonProps;
11
11
  navigateParentWindow?: Window;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { EditorProps } from './index';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface EditorProps {
2
3
  onChange?: (html: string) => void;
3
4
  hasError?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { FileInputProps } from '.';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Element {
2
3
  type: string;
3
4
  tagName?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const items: {
2
3
  icon: JSX.Element;
3
4
  text: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { ImageInputProps } from '.';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FileInputProps } from '../FileInput';
2
3
  export declare const isImageType: (type: string) => boolean;
3
4
  export declare const getTypeFromBase64: (base64: string) => string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export declare type InfoType = '404' | 'CLIENT_APPS_EMPTY' | 'INSTALLED_APPS_EMPTY' | 'DEVELOPER_APPS_EMPTY' | 'ADMIN_APPROVALS_EMPTY' | 'DEVELOPER_EMPTY' | '';
3
- export interface InfoProps {
3
+ export interface InfoProps extends React.HTMLAttributes<HTMLElement> {
4
4
  infoType: InfoType;
5
5
  }
6
6
  export declare const infoText: (infoType: InfoType) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { InputProps } from '.';
3
4
  declare const _default: {
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface LayoutProps {
2
+ export interface LayoutProps extends React.HTMLAttributes<HTMLElement> {
3
3
  id?: string;
4
4
  className?: string;
5
5
  dataTest?: string;
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { RouteProps } from 'react-router';
3
3
  import { Link } from 'react-router-dom';
4
- import { Location } from 'history';
5
4
  export interface MenuConfig extends RouteProps {
6
5
  defaultActiveKey: string;
7
6
  currentActiveKey?: string;
8
7
  mode?: 'DESKTOP' | 'WEB';
9
8
  menu: MenuItem[];
9
+ location: any;
10
10
  }
11
11
  export interface MenuItem {
12
12
  type: 'PRIMARY' | 'SECONDARY' | 'LOGO';
@@ -17,7 +17,7 @@ export interface MenuItem {
17
17
  callback?: () => void;
18
18
  disabled?: boolean;
19
19
  }
20
- export declare const getActiveItemKey: (menu?: MenuItem[], location?: Location<any> | undefined) => string | null;
20
+ export declare const getActiveItemKey: (menu?: MenuItem[], location?: any) => string | null;
21
21
  export declare const LinkItem: React.FC<{
22
22
  item: MenuItem;
23
23
  children: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface PaginationProps {
2
3
  pageNumber?: number;
3
4
  pageSize?: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { PaginationProps } from '.';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface SelectBoxOptions {
2
3
  label: string;
3
4
  value: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { SelectBoxProps } from '.';
3
4
  declare const _default: {
@@ -1,4 +1,5 @@
1
1
  /// <reference types="jest" />
2
+ /// <reference types="react" />
2
3
  import { Cell, SetData, SetSelected, SetUploadData, SetContextMenuProp, AfterCellsChanged } from '../types';
3
4
  export declare const parseResult: {
4
5
  data: string[][];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface TextAreaProps {
2
3
  placeholder?: string;
3
4
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { TextAreaProps } from '.';
3
4
  declare const _default: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FieldInputProps, FieldHelperProps } from 'formik';
2
3
  import { EditorProps } from '../Editor';
3
4
  export interface TextAreaEditorProps extends EditorProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { TextAreaEditorProps } from '.';
3
4
  declare const _default: {
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
- export declare const CardHeading: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & {
2
+ export declare const CardHeading: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<string, unknown> & {
3
3
  as?: import("react").ElementType<any> | undefined;
4
4
  }>;
5
- export declare const CardSubHeading: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & {
5
+ export declare const CardSubHeading: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<string, unknown> & {
6
6
  as?: import("react").ElementType<any> | undefined;
7
7
  }>;
8
- export declare const CardSubHeadingAdditional: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & {
8
+ export declare const CardSubHeadingAdditional: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLHeadingElement> & import("react").HTMLAttributes<HTMLHeadingElement> & Record<string, unknown> & {
9
9
  as?: import("react").ElementType<any> | undefined;
10
10
  }>;
11
- export declare const CardBodyWrap: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
11
+ export declare const CardBodyWrap: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<string, unknown> & {
12
12
  as?: import("react").ElementType<any> | undefined;
13
13
  }>;
14
- export declare const CardImageWrap: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
14
+ export declare const CardImageWrap: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<string, unknown> & {
15
15
  as?: import("react").ElementType<any> | undefined;
16
16
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface TileProps {
2
+ export interface TileProps extends React.HTMLAttributes<HTMLElement> {
3
3
  heading: React.ReactNode;
4
4
  subHeading?: React.ReactNode;
5
5
  subHeadingAdditional?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface HeadingProps {
2
+ export interface HeadingProps extends React.HTMLAttributes<HTMLElement> {
3
3
  className?: string;
4
4
  isCentered?: boolean;
5
5
  id?: string;
@@ -15,7 +15,7 @@ export declare type WizardContextValues = {
15
15
  };
16
16
  export declare const WizardContextProvider: React.FC<{
17
17
  value: WizardContextValues;
18
- }>;
18
+ } & React.HTMLAttributes<HTMLElement>>;
19
19
  export declare const useWizardContext: () => WizardContextValues;
20
20
  export declare type WizardRenderCallbackParams = {
21
21
  context: WizardContextValues;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WizardContextValues, WizardRenderCallbackParams } from './context';
3
- import { FormikProps } from 'formik';
3
+ import { FormikValues, FormikHelpers } from 'formik';
4
4
  export interface WizardProps {
5
5
  children: React.ReactElement<WizardStepProps<any>> | React.ReactElement<WizardStepProps<any>>[];
6
6
  current?: string;
@@ -18,19 +18,19 @@ export declare type WizardActionType = 'next' | 'prev';
18
18
  export interface WizardStepProps<T> {
19
19
  id: string;
20
20
  Component: React.FC<any>;
21
- validate?: (value: T) => {
21
+ validate?: (value: FormikValues) => {
22
22
  [k in keyof T]: string;
23
23
  };
24
- initialValue?: T;
24
+ initialValue?: FormikValues;
25
25
  onNavigate?: (params: {
26
- form: FormikProps<T>;
26
+ form: FormikHelpers<FormikValues>;
27
27
  type: WizardActionType;
28
28
  context: WizardContextValues;
29
29
  }) => Promise<boolean>;
30
30
  onSubmit?: (params: {
31
- values: T;
31
+ values: FormikValues;
32
32
  context: WizardContextValues;
33
- form: FormikProps<T>;
33
+ form: FormikHelpers<FormikValues>;
34
34
  }) => void;
35
35
  }
36
36
  declare function WizardStep<T>({ Component, initialValue, onNavigate, validate, onSubmit }: WizardStepProps<T>): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  import { WizardProps } from '.';
3
4
  declare const _default: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const FadeIn: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
2
+ export declare const FadeIn: import("@linaria/core").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<string, unknown> & {
3
3
  as?: import("react").ElementType<any> | undefined;
4
4
  }>;
5
5
  export default FadeIn;
@@ -1,2 +1 @@
1
- import { RouteComponentProps } from 'react-router';
2
- export declare function getMockRouterProps<P>(data: P | {}): RouteComponentProps<{} | P, import("react-router").StaticContext, import("history").History.PoorMansUnknown>;
1
+ export declare function getMockRouterProps<P>(data: P | {}): any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Story } from '@storybook/react/types-6-0';
2
3
  declare const _default: {
3
4
  title: string;
@@ -1,5 +1,5 @@
1
1
  import './styles/index.scss';
2
- import '../../../node_modules/rc-dialog/assets/index.css';
2
+ import '../node_modules/rc-dialog/assets/index.css';
3
3
  export * from './hooks/UsePortal';
4
4
  export * from 'formik';
5
5
  export * from './components/Pagination';