@reapit/elements 2.3.0 → 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 (173) hide show
  1. package/README.md +2 -10
  2. package/README_INTERNAL.md +15 -0
  3. package/dist/cjs/components/Alert/Alert.stories.d.ts +6 -5
  4. package/dist/cjs/components/BreadcrumbV2/__styles__/styles.d.ts +4 -4
  5. package/dist/cjs/components/Button/button-group.stories.d.ts +3 -2
  6. package/dist/cjs/components/Button/index.d.ts +2 -2
  7. package/dist/cjs/components/DynamicLinks/index.d.ts +2 -2
  8. package/dist/cjs/components/HelpGuide/__styles__/styles.d.ts +3 -3
  9. package/dist/cjs/components/ImageCropperV2/__styles__/styles.d.ts +9 -9
  10. package/dist/cjs/components/Info/index.d.ts +1 -1
  11. package/dist/cjs/components/Info/info.stories.d.ts +4 -3
  12. package/dist/cjs/components/Layout/index.d.ts +1 -1
  13. package/dist/cjs/components/Menu/Menu.d.ts +2 -2
  14. package/dist/cjs/components/ModalV2/__styles__/index.d.ts +5 -5
  15. package/dist/cjs/components/ProgressBar/index.stories.d.ts +5 -4
  16. package/dist/cjs/components/Tile/__styles__/index.d.ts +5 -5
  17. package/dist/cjs/components/Tile/index.d.ts +1 -1
  18. package/dist/cjs/components/Typography/index.d.ts +1 -1
  19. package/dist/cjs/components/Wizard/context.d.ts +1 -1
  20. package/dist/cjs/components/Wizard/index.d.ts +6 -6
  21. package/dist/cjs/helpers/fade-in.d.ts +1 -1
  22. package/dist/cjs/helpers/mock-router.d.ts +1 -2
  23. package/dist/cjs/index.d.ts +1 -1
  24. package/dist/cjs/index.js +11 -34
  25. package/dist/cjs/index.js.map +1 -1
  26. package/dist/cjs/utils/validators/validate-base.d.ts +1 -1
  27. package/dist/esm/components/Alert/Alert.stories.d.ts +6 -5
  28. package/dist/esm/components/BreadcrumbV2/__styles__/styles.d.ts +4 -4
  29. package/dist/esm/components/Button/button-group.stories.d.ts +3 -2
  30. package/dist/esm/components/Button/index.d.ts +2 -2
  31. package/dist/esm/components/DynamicLinks/index.d.ts +2 -2
  32. package/dist/esm/components/HelpGuide/__styles__/styles.d.ts +3 -3
  33. package/dist/esm/components/ImageCropperV2/__styles__/styles.d.ts +9 -9
  34. package/dist/esm/components/Info/index.d.ts +1 -1
  35. package/dist/esm/components/Info/info.stories.d.ts +4 -3
  36. package/dist/esm/components/Layout/index.d.ts +1 -1
  37. package/dist/esm/components/Menu/Menu.d.ts +2 -2
  38. package/dist/esm/components/ModalV2/__styles__/index.d.ts +5 -5
  39. package/dist/esm/components/ProgressBar/index.stories.d.ts +5 -4
  40. package/dist/esm/components/Tile/__styles__/index.d.ts +5 -5
  41. package/dist/esm/components/Tile/index.d.ts +1 -1
  42. package/dist/esm/components/Typography/index.d.ts +1 -1
  43. package/dist/esm/components/Wizard/context.d.ts +1 -1
  44. package/dist/esm/components/Wizard/index.d.ts +6 -6
  45. package/dist/esm/helpers/fade-in.d.ts +1 -1
  46. package/dist/esm/helpers/mock-router.d.ts +1 -2
  47. package/dist/esm/index.d.ts +1 -1
  48. package/dist/esm/index.js +11 -34
  49. package/dist/esm/index.js.map +1 -1
  50. package/dist/esm/utils/validators/validate-base.d.ts +1 -1
  51. package/dist/index.css +1267 -10703
  52. package/package.json +81 -59
  53. package/src/tests/badges/badge-branches.svg +1 -1
  54. package/src/tests/badges/badge-functions.svg +1 -1
  55. package/src/tests/badges/badge-lines.svg +1 -1
  56. package/src/tests/badges/badge-statements.svg +1 -1
  57. package/v3/components/button/__styles__/index.d.ts +10 -9
  58. package/v3/components/button/button.d.ts +1 -0
  59. package/v3/components/card/__styles__/index.d.ts +7 -7
  60. package/v3/components/card/card-components.d.ts +15 -14
  61. package/v3/components/file-input/__styles__/index.d.ts +13 -0
  62. package/{dist/cjs/components/Notification/__tests__/index.d.ts → v3/components/file-input/__tests__/file-input.test.d.ts} +0 -0
  63. package/v3/components/file-input/file-input.d.ts +21 -0
  64. package/v3/components/file-input/index.d.ts +2 -0
  65. package/v3/components/form-layout/__styles__/index.d.ts +1 -0
  66. package/v3/components/form-layout/form-layout.d.ts +3 -1
  67. package/v3/components/grid/__styles__/units.d.ts +58 -58
  68. package/v3/components/icon/__styles__/index.d.ts +6 -6
  69. package/v3/components/icon/icons/index.d.ts +43 -0
  70. package/v3/components/icon/icons/infographic-icons/appCategoryInfographic.d.ts +3 -0
  71. package/v3/components/icon/icons/infographic-icons/appMarketInfographic.d.ts +3 -0
  72. package/v3/components/icon/icons/infographic-icons/appTypeInfographic.d.ts +3 -0
  73. package/v3/components/icon/icons/infographic-icons/authenticatedInfographic.d.ts +3 -0
  74. package/v3/components/icon/icons/infographic-icons/codeInfographic.d.ts +3 -0
  75. package/v3/components/icon/icons/infographic-icons/developerAppsInfographic.d.ts +3 -0
  76. package/v3/components/icon/icons/infographic-icons/devicesInfographic.d.ts +3 -0
  77. package/v3/components/icon/icons/infographic-icons/doorLockInfographic.d.ts +3 -0
  78. package/v3/components/icon/icons/infographic-icons/editAppInfographic.d.ts +3 -0
  79. package/v3/components/icon/icons/infographic-icons/feedAltInfographic.d.ts +3 -0
  80. package/v3/components/icon/icons/infographic-icons/feedInfographic.d.ts +3 -0
  81. package/v3/components/icon/icons/infographic-icons/foundationsCustomerInfographic.d.ts +3 -0
  82. package/v3/components/icon/icons/infographic-icons/globeInfographic.d.ts +3 -0
  83. package/v3/components/icon/icons/infographic-icons/htmlInfographic.d.ts +3 -0
  84. package/v3/components/icon/icons/infographic-icons/listInfographic.d.ts +3 -0
  85. package/v3/components/icon/icons/infographic-icons/lockedInfographic.d.ts +3 -0
  86. package/v3/components/icon/icons/infographic-icons/logoKeyInfographic.d.ts +3 -0
  87. package/v3/components/icon/icons/infographic-icons/logoSettingsInfographic.d.ts +3 -0
  88. package/v3/components/icon/icons/infographic-icons/mailInfographic.d.ts +3 -0
  89. package/v3/components/icon/icons/infographic-icons/newCustomerInfographic.d.ts +3 -0
  90. package/v3/components/icon/icons/infographic-icons/phoneInfographic.d.ts +3 -0
  91. package/v3/components/icon/icons/infographic-icons/platformApiInfographic.d.ts +3 -0
  92. package/v3/components/icon/icons/infographic-icons/propTechInfographic.d.ts +3 -0
  93. package/v3/components/icon/icons/infographic-icons/reapitConnectInfographic.d.ts +3 -0
  94. package/v3/components/icon/icons/infographic-icons/reapitLogoInfographic.d.ts +3 -0
  95. package/v3/components/icon/icons/infographic-icons/refreshInfographic.d.ts +3 -0
  96. package/v3/components/icon/icons/infographic-icons/reportingInfographic.d.ts +3 -0
  97. package/v3/components/icon/icons/infographic-icons/serverInfographic.d.ts +3 -0
  98. package/v3/components/icon/icons/infographic-icons/sharedEntitiesInfographic.d.ts +3 -0
  99. package/v3/components/icon/icons/infographic-icons/shieldInfographic.d.ts +3 -0
  100. package/v3/components/icon/icons/infographic-icons/userAuthInfographic.d.ts +3 -0
  101. package/v3/components/icon/icons/infographic-icons/userDeviceInfographic.d.ts +3 -0
  102. package/v3/components/icon/icons/infographic-icons/userHouseInfographic.d.ts +3 -0
  103. package/v3/components/icon/icons/infographic-icons/userInfographic.d.ts +3 -0
  104. package/v3/components/icon/icons/infographic-icons/webDeveloperInfographic.d.ts +3 -0
  105. package/v3/components/icon/icons/infographic-icons/webInfographic.d.ts +3 -0
  106. package/v3/components/icon/icons/infographic-icons/welcomeInfographic.d.ts +3 -0
  107. package/v3/components/icon/icons/menu-icons/supportMenu.d.ts +3 -0
  108. package/v3/components/icon/icons/system-icons/bulletListSystem.d.ts +3 -0
  109. package/v3/components/icon/icons/system-icons/dollarSystem.d.ts +3 -0
  110. package/v3/components/icon/icons/system-icons/euroSystem.d.ts +3 -0
  111. package/v3/components/icon/icons/system-icons/poundSystem.d.ts +3 -0
  112. package/v3/components/icon/icons/system-icons/videoSystem.d.ts +3 -0
  113. package/v3/components/input-error/__styles__/index.d.ts +4 -0
  114. package/v3/components/input-error/index.d.ts +1 -0
  115. package/v3/components/input-error/input-error.d.ts +4 -0
  116. package/v3/components/input-group/input-group.d.ts +2 -1
  117. package/v3/components/multi-select/__styles__/index.d.ts +1 -1
  118. package/v3/components/multi-select/multi-select.d.ts +1 -1
  119. package/v3/components/nav/__styles__/index.d.ts +8 -8
  120. package/v3/components/nav/use-nav.stories.d.ts +1 -1
  121. package/v3/components/pagination/__styles__/index.d.ts +4 -1
  122. package/v3/components/pagination/pagination.d.ts +7 -2
  123. package/v3/components/persistant-notification/__styles__/index.d.ts +0 -5
  124. package/v3/components/persistent-notification/__styles__/index.d.ts +9 -0
  125. package/{dist/cjs/components/Notification/__tests__/useNotification.d.ts → v3/components/persistent-notification/__tests__/persistent-notification.test.d.ts} +0 -0
  126. package/v3/components/persistent-notification/index.d.ts +2 -0
  127. package/v3/components/persistent-notification/persistent-notification.d.ts +14 -0
  128. package/v3/components/placeholder-image/__styles__/index.d.ts +7 -0
  129. package/{dist/cjs/components/Wizard → v3/components/placeholder-image}/__tests__/index.d.ts +0 -0
  130. package/v3/components/placeholder-image/images/index.d.ts +5 -0
  131. package/v3/components/placeholder-image/images/placeholder-images/placeholderLarge.d.ts +3 -0
  132. package/v3/components/placeholder-image/images/placeholder-images/placeholderSmall.d.ts +3 -0
  133. package/v3/components/placeholder-image/index.d.ts +3 -0
  134. package/v3/components/placeholder-image/placeholder-image.d.ts +9 -0
  135. package/v3/components/progress-bar/__styles__/index.d.ts +7 -7
  136. package/v3/components/progress-bar/progress-bar.d.ts +2 -0
  137. package/v3/components/searchable-dropdown/searchable-dropdown.d.ts +3 -2
  138. package/v3/components/snack/__styles__/index.d.ts +2 -2
  139. package/v3/components/snack/use-snack-hook.stories.d.ts +0 -1
  140. package/v3/components/status-indicator/__styles__/index.d.ts +1 -1
  141. package/v3/components/table/__styles__/index.d.ts +21 -18
  142. package/v3/components/table/molecules.d.ts +6 -2
  143. package/v3/components/table/table.d.ts +3 -1
  144. package/v3/components/tabs/__styles__/index.d.ts +2 -2
  145. package/v3/components/toggle/__styles__/index.d.ts +2 -2
  146. package/v3/components/tool-tip/__styles__/index.d.ts +8 -0
  147. package/{dist/cjs/hooks/UsePortal/__tests__/use-portal.d.ts → v3/components/tool-tip/__tests__/tool-tip.test.d.ts} +0 -0
  148. package/v3/components/tool-tip/index.d.ts +9 -0
  149. package/v3/components/tool-tip/tool-tip-story-component.d.ts +1 -0
  150. package/v3/components/typography/__styles__/index.d.ts +9 -6
  151. package/v3/components/typography/typography.d.ts +3 -0
  152. package/v3/hooks/use-media-query/media.stories.d.ts +0 -1
  153. package/{dist/esm/components/Notification/__tests__/index.d.ts → v3/hooks/use-theme/__tests__/use-theme.test.d.ts} +0 -0
  154. package/v3/hooks/use-theme/index.d.ts +16 -0
  155. package/v3/index.css +260 -242
  156. package/v3/index.d.ts +7 -0
  157. package/v3/index.js +1 -16
  158. package/v3/index.js.map +1 -1
  159. package/v3/storybook/render-html-markup.d.ts +0 -1
  160. package/v3/styles/borders.d.ts +24 -24
  161. package/v3/styles/flexbox.d.ts +29 -29
  162. package/v3/styles/globals.d.ts +1 -1
  163. package/v3/styles/helpers.d.ts +1 -1
  164. package/v3/styles/intent.d.ts +7 -7
  165. package/v3/styles/sizing.d.ts +31 -31
  166. package/v3/styles/spacing.d.ts +189 -189
  167. package/v3/styles/states.d.ts +4 -4
  168. package/v3/styles/typography.d.ts +7 -7
  169. package/dist/cjs/hooks/UsePortal/__tests__/portal-provider.d.ts +0 -2
  170. package/dist/esm/components/Notification/__tests__/useNotification.d.ts +0 -1
  171. package/dist/esm/components/Wizard/__tests__/index.d.ts +0 -1
  172. package/dist/esm/hooks/UsePortal/__tests__/portal-provider.d.ts +0 -2
  173. package/dist/esm/hooks/UsePortal/__tests__/use-portal.d.ts +0 -1
package/README.md CHANGED
@@ -1,13 +1,5 @@
1
- # Reapit Elements Legacy - v2.*
1
+ # Reapit Elements Legacy - v2.
2
2
 
3
3
  ![lines](/packages/elements/src/tests/badges/badge-lines.svg) ![functions](/packages/elements/src/tests/badges/badge-functions.svg) ![branches](/packages/elements/src/tests/badges/badge-branches.svg) ![statements](/packages/elements/src/tests/badges/badge-statements.svg)
4
4
 
5
- This project exists so we can offer LTS on our v2 of Elements. The package will work with the normal pipleines however, it has to be deployed manually so it can be released to NPM in the `@reapit/elements` namespace rather than `@reapit/elements-legacy`.
6
-
7
- To release perform the following steps;
8
-
9
- 1. Bump version number, v2.*.*
10
- 2. Raise PR, ensure tests pass and new version deploys to dev.
11
- 3. Return to repo, run `yarn build:all` - this will build the main v2 dist, plus storybook and the latest v3 components (we export v3 from the `/v3` of v2 to allow easy migration).
12
- 4. **Temporarily** change the package name to `@reapit/elements` in the `package.json`
13
- 5. With the **prod** AWS creds in scope, run `yarn release && yarn publish --stage prod` - this will update the prod legacy storybook and release a v2 patch of Elements to NPM.
5
+ This is the LTS branch of Reapit Elements. This version will be eventually deprecated and you should try to migrate to version 3 as soon as possible. See https://foundations-documentation.reapit.cloud/app-development/elements for documentation and migration using the v3 export from this version.
@@ -0,0 +1,15 @@
1
+ # Reapit Elements Legacy - v2.
2
+
3
+ The main Reapit Elements styleguide is in the Foundations core monorepo and is actively maintained. This is the legacy v2 version, solely to allow patching of the v2.x version.
4
+
5
+ To perform dev tasks;
6
+
7
+ 1. Git clone the repository
8
+ 2. `yarn install`
9
+ 3. `yarn start`
10
+ 4. Ensure the tests, linting and typechecks pass using `yarn lint`, `yarn check` and `yarn test`
11
+
12
+ To release, you will need an NPM token and production AWS credentials in your bash profile. Then;
13
+
14
+ 1. `yarn build`
15
+ 2. `yarn release`
@@ -1,12 +1,13 @@
1
1
  import * as React from 'react';
2
+ import { Story } from '@storybook/react/types-6-0';
2
3
  import { AlertProps } from './index';
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: React.FC<AlertProps>;
6
7
  };
7
8
  export default _default;
8
- export declare const Primary: ((args: AlertProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
- export declare const Danger: ((args: AlertProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
10
- export declare const Info: ((args: AlertProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
11
- export declare const Warning: ((args: AlertProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
12
- export declare const Success: ((args: AlertProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<AlertProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
+ export declare const Primary: Story<AlertProps>;
10
+ export declare const Danger: Story<AlertProps>;
11
+ export declare const Info: Story<AlertProps>;
12
+ export declare const Warning: Story<AlertProps>;
13
+ export declare const Success: Story<AlertProps>;
@@ -1,4 +1,4 @@
1
- export declare const breadcrumbItem: string;
2
- export declare const breadcrumbBold: string;
3
- export declare const breadcrumbLastItem: string;
4
- export declare const breadcrumbSeparator: string;
1
+ export declare const breadcrumbItem: import("@linaria/core").LinariaClassName;
2
+ export declare const breadcrumbBold: import("@linaria/core").LinariaClassName;
3
+ export declare const breadcrumbLastItem: import("@linaria/core").LinariaClassName;
4
+ export declare const breadcrumbSeparator: import("@linaria/core").LinariaClassName;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
+ import { Story } from '@storybook/react/types-6-0';
2
3
  import { ButtonGroupProps } from './index';
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: React.FC<ButtonGroupProps>;
6
7
  };
7
8
  export default _default;
8
- export declare const Default: ((args: ButtonGroupProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<ButtonGroupProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<ButtonGroupProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
- export declare const HasSpacing: ((args: ButtonGroupProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<ButtonGroupProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<ButtonGroupProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
+ export declare const Default: Story<ButtonGroupProps>;
10
+ export declare const HasSpacing: Story<ButtonGroupProps>;
@@ -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,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,3 @@
1
- export declare const helpGuideContent: string;
2
- export declare const helpGuideImage: string;
3
- export declare const helpGuide: string;
1
+ export declare const helpGuideContent: import("@linaria/core").LinariaClassName;
2
+ export declare const helpGuideImage: import("@linaria/core").LinariaClassName;
3
+ export declare const helpGuide: import("@linaria/core").LinariaClassName;
@@ -1,9 +1,9 @@
1
- export declare const reactImageCropGlobalStyles: string;
2
- export declare const imageCropperOuter: string;
3
- export declare const imageCropperInner: string;
4
- export declare const imageCropperContent: string;
5
- export declare const imageCropperCropPanelWrapper: string;
6
- export declare const imageCropperCropPanel: string;
7
- export declare const imageCropperPreviewWrapper: string;
8
- export declare const imageCropperPreview: string;
9
- export declare const imageCropperActionWrapper: string;
1
+ export declare const reactImageCropGlobalStyles: import("@linaria/core").LinariaClassName;
2
+ export declare const imageCropperOuter: import("@linaria/core").LinariaClassName;
3
+ export declare const imageCropperInner: import("@linaria/core").LinariaClassName;
4
+ export declare const imageCropperContent: import("@linaria/core").LinariaClassName;
5
+ export declare const imageCropperCropPanelWrapper: import("@linaria/core").LinariaClassName;
6
+ export declare const imageCropperCropPanel: import("@linaria/core").LinariaClassName;
7
+ export declare const imageCropperPreviewWrapper: import("@linaria/core").LinariaClassName;
8
+ export declare const imageCropperPreview: import("@linaria/core").LinariaClassName;
9
+ export declare const imageCropperActionWrapper: import("@linaria/core").LinariaClassName;
@@ -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,10 +1,11 @@
1
1
  import * as React from 'react';
2
+ import { Story } from '@storybook/react/types-6-0';
2
3
  import { InfoProps } from '.';
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: React.FC<InfoProps>;
6
7
  };
7
8
  export default _default;
8
- export declare const Four04: ((args: InfoProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<InfoProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<InfoProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
- export declare const NoAppsInstalled: ((args: InfoProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<InfoProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<InfoProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
10
- export declare const DeveloperAppsEmpty: ((args: InfoProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<InfoProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<InfoProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
+ export declare const Four04: Story<InfoProps>;
10
+ export declare const NoAppsInstalled: Story<InfoProps>;
11
+ export declare const DeveloperAppsEmpty: Story<InfoProps>;
@@ -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,5 +1,5 @@
1
- export declare const modalContainer: string;
2
- export declare const modalCentered: string;
3
- export declare const modalResponsiveContainer: string;
4
- export declare const modalNoPadding: string;
5
- export declare const modalNoHeader: string;
1
+ export declare const modalContainer: import("@linaria/core").LinariaClassName;
2
+ export declare const modalCentered: import("@linaria/core").LinariaClassName;
3
+ export declare const modalResponsiveContainer: import("@linaria/core").LinariaClassName;
4
+ export declare const modalNoPadding: import("@linaria/core").LinariaClassName;
5
+ export declare const modalNoHeader: import("@linaria/core").LinariaClassName;
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
+ import { Story } from '@storybook/react/types-6-0';
2
3
  import { ProgressBarProps } from '.';
3
4
  declare const _default: {
4
5
  title: string;
5
6
  component: React.FC<ProgressBarProps>;
6
7
  };
7
8
  export default _default;
8
- export declare const Zero: ((args: ProgressBarProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
- export declare const Fifty: ((args: ProgressBarProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
10
- export declare const Seventy: ((args: ProgressBarProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
11
- export declare const Hundred: ((args: ProgressBarProps, context: import("@storybook/react/types-6-0").StoryContext) => import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType) & import("@storybook/addons").BaseStoryObject<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType> & import("@storybook/addons").Annotations<ProgressBarProps, import("@storybook/react/dist/ts3.9/client/preview/types").StoryFnReactReturnType>;
9
+ export declare const Zero: Story<ProgressBarProps>;
10
+ export declare const Fifty: Story<ProgressBarProps>;
11
+ export declare const Seventy: Story<ProgressBarProps>;
12
+ export declare const Hundred: Story<ProgressBarProps>;
@@ -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,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,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';