@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.
- package/README.md +2 -10
- package/README_INTERNAL.md +15 -0
- package/dist/cjs/components/Alert/Alert.stories.d.ts +6 -5
- package/dist/cjs/components/BreadcrumbV2/__styles__/styles.d.ts +4 -4
- package/dist/cjs/components/Button/button-group.stories.d.ts +3 -2
- package/dist/cjs/components/Button/index.d.ts +2 -2
- package/dist/cjs/components/DynamicLinks/index.d.ts +2 -2
- package/dist/cjs/components/HelpGuide/__styles__/styles.d.ts +3 -3
- package/dist/cjs/components/ImageCropperV2/__styles__/styles.d.ts +9 -9
- package/dist/cjs/components/Info/index.d.ts +1 -1
- package/dist/cjs/components/Info/info.stories.d.ts +4 -3
- package/dist/cjs/components/Layout/index.d.ts +1 -1
- package/dist/cjs/components/Menu/Menu.d.ts +2 -2
- package/dist/cjs/components/ModalV2/__styles__/index.d.ts +5 -5
- package/dist/cjs/components/ProgressBar/index.stories.d.ts +5 -4
- package/dist/cjs/components/Tile/__styles__/index.d.ts +5 -5
- package/dist/cjs/components/Tile/index.d.ts +1 -1
- package/dist/cjs/components/Typography/index.d.ts +1 -1
- package/dist/cjs/components/Wizard/context.d.ts +1 -1
- package/dist/cjs/components/Wizard/index.d.ts +6 -6
- package/dist/cjs/helpers/fade-in.d.ts +1 -1
- package/dist/cjs/helpers/mock-router.d.ts +1 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +11 -34
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/validators/validate-base.d.ts +1 -1
- package/dist/esm/components/Alert/Alert.stories.d.ts +6 -5
- package/dist/esm/components/BreadcrumbV2/__styles__/styles.d.ts +4 -4
- package/dist/esm/components/Button/button-group.stories.d.ts +3 -2
- package/dist/esm/components/Button/index.d.ts +2 -2
- package/dist/esm/components/DynamicLinks/index.d.ts +2 -2
- package/dist/esm/components/HelpGuide/__styles__/styles.d.ts +3 -3
- package/dist/esm/components/ImageCropperV2/__styles__/styles.d.ts +9 -9
- package/dist/esm/components/Info/index.d.ts +1 -1
- package/dist/esm/components/Info/info.stories.d.ts +4 -3
- package/dist/esm/components/Layout/index.d.ts +1 -1
- package/dist/esm/components/Menu/Menu.d.ts +2 -2
- package/dist/esm/components/ModalV2/__styles__/index.d.ts +5 -5
- package/dist/esm/components/ProgressBar/index.stories.d.ts +5 -4
- package/dist/esm/components/Tile/__styles__/index.d.ts +5 -5
- package/dist/esm/components/Tile/index.d.ts +1 -1
- package/dist/esm/components/Typography/index.d.ts +1 -1
- package/dist/esm/components/Wizard/context.d.ts +1 -1
- package/dist/esm/components/Wizard/index.d.ts +6 -6
- package/dist/esm/helpers/fade-in.d.ts +1 -1
- package/dist/esm/helpers/mock-router.d.ts +1 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +11 -34
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/validators/validate-base.d.ts +1 -1
- package/dist/index.css +1267 -10703
- package/package.json +81 -59
- package/src/tests/badges/badge-branches.svg +1 -1
- package/src/tests/badges/badge-functions.svg +1 -1
- package/src/tests/badges/badge-lines.svg +1 -1
- package/src/tests/badges/badge-statements.svg +1 -1
- package/v3/components/button/__styles__/index.d.ts +10 -9
- package/v3/components/button/button.d.ts +1 -0
- package/v3/components/card/__styles__/index.d.ts +7 -7
- package/v3/components/card/card-components.d.ts +15 -14
- package/v3/components/file-input/__styles__/index.d.ts +13 -0
- package/{dist/cjs/components/Notification/__tests__/index.d.ts → v3/components/file-input/__tests__/file-input.test.d.ts} +0 -0
- package/v3/components/file-input/file-input.d.ts +21 -0
- package/v3/components/file-input/index.d.ts +2 -0
- package/v3/components/form-layout/__styles__/index.d.ts +1 -0
- package/v3/components/form-layout/form-layout.d.ts +3 -1
- package/v3/components/grid/__styles__/units.d.ts +58 -58
- package/v3/components/icon/__styles__/index.d.ts +6 -6
- package/v3/components/icon/icons/index.d.ts +43 -0
- package/v3/components/icon/icons/infographic-icons/appCategoryInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/appMarketInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/appTypeInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/authenticatedInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/codeInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/developerAppsInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/devicesInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/doorLockInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/editAppInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/feedAltInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/feedInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/foundationsCustomerInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/globeInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/htmlInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/listInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/lockedInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/logoKeyInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/logoSettingsInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/mailInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/newCustomerInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/phoneInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/platformApiInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/propTechInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/reapitConnectInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/reapitLogoInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/refreshInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/reportingInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/serverInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/sharedEntitiesInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/shieldInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/userAuthInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/userDeviceInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/userHouseInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/userInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/webDeveloperInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/webInfographic.d.ts +3 -0
- package/v3/components/icon/icons/infographic-icons/welcomeInfographic.d.ts +3 -0
- package/v3/components/icon/icons/menu-icons/supportMenu.d.ts +3 -0
- package/v3/components/icon/icons/system-icons/bulletListSystem.d.ts +3 -0
- package/v3/components/icon/icons/system-icons/dollarSystem.d.ts +3 -0
- package/v3/components/icon/icons/system-icons/euroSystem.d.ts +3 -0
- package/v3/components/icon/icons/system-icons/poundSystem.d.ts +3 -0
- package/v3/components/icon/icons/system-icons/videoSystem.d.ts +3 -0
- package/v3/components/input-error/__styles__/index.d.ts +4 -0
- package/v3/components/input-error/index.d.ts +1 -0
- package/v3/components/input-error/input-error.d.ts +4 -0
- package/v3/components/input-group/input-group.d.ts +2 -1
- package/v3/components/multi-select/__styles__/index.d.ts +1 -1
- package/v3/components/multi-select/multi-select.d.ts +1 -1
- package/v3/components/nav/__styles__/index.d.ts +8 -8
- package/v3/components/nav/use-nav.stories.d.ts +1 -1
- package/v3/components/pagination/__styles__/index.d.ts +4 -1
- package/v3/components/pagination/pagination.d.ts +7 -2
- package/v3/components/persistant-notification/__styles__/index.d.ts +0 -5
- package/v3/components/persistent-notification/__styles__/index.d.ts +9 -0
- package/{dist/cjs/components/Notification/__tests__/useNotification.d.ts → v3/components/persistent-notification/__tests__/persistent-notification.test.d.ts} +0 -0
- package/v3/components/persistent-notification/index.d.ts +2 -0
- package/v3/components/persistent-notification/persistent-notification.d.ts +14 -0
- package/v3/components/placeholder-image/__styles__/index.d.ts +7 -0
- package/{dist/cjs/components/Wizard → v3/components/placeholder-image}/__tests__/index.d.ts +0 -0
- package/v3/components/placeholder-image/images/index.d.ts +5 -0
- package/v3/components/placeholder-image/images/placeholder-images/placeholderLarge.d.ts +3 -0
- package/v3/components/placeholder-image/images/placeholder-images/placeholderSmall.d.ts +3 -0
- package/v3/components/placeholder-image/index.d.ts +3 -0
- package/v3/components/placeholder-image/placeholder-image.d.ts +9 -0
- package/v3/components/progress-bar/__styles__/index.d.ts +7 -7
- package/v3/components/progress-bar/progress-bar.d.ts +2 -0
- package/v3/components/searchable-dropdown/searchable-dropdown.d.ts +3 -2
- package/v3/components/snack/__styles__/index.d.ts +2 -2
- package/v3/components/snack/use-snack-hook.stories.d.ts +0 -1
- package/v3/components/status-indicator/__styles__/index.d.ts +1 -1
- package/v3/components/table/__styles__/index.d.ts +21 -18
- package/v3/components/table/molecules.d.ts +6 -2
- package/v3/components/table/table.d.ts +3 -1
- package/v3/components/tabs/__styles__/index.d.ts +2 -2
- package/v3/components/toggle/__styles__/index.d.ts +2 -2
- package/v3/components/tool-tip/__styles__/index.d.ts +8 -0
- package/{dist/cjs/hooks/UsePortal/__tests__/use-portal.d.ts → v3/components/tool-tip/__tests__/tool-tip.test.d.ts} +0 -0
- package/v3/components/tool-tip/index.d.ts +9 -0
- package/v3/components/tool-tip/tool-tip-story-component.d.ts +1 -0
- package/v3/components/typography/__styles__/index.d.ts +9 -6
- package/v3/components/typography/typography.d.ts +3 -0
- package/v3/hooks/use-media-query/media.stories.d.ts +0 -1
- package/{dist/esm/components/Notification/__tests__/index.d.ts → v3/hooks/use-theme/__tests__/use-theme.test.d.ts} +0 -0
- package/v3/hooks/use-theme/index.d.ts +16 -0
- package/v3/index.css +260 -242
- package/v3/index.d.ts +7 -0
- package/v3/index.js +1 -16
- package/v3/index.js.map +1 -1
- package/v3/storybook/render-html-markup.d.ts +0 -1
- package/v3/styles/borders.d.ts +24 -24
- package/v3/styles/flexbox.d.ts +29 -29
- package/v3/styles/globals.d.ts +1 -1
- package/v3/styles/helpers.d.ts +1 -1
- package/v3/styles/intent.d.ts +7 -7
- package/v3/styles/sizing.d.ts +31 -31
- package/v3/styles/spacing.d.ts +189 -189
- package/v3/styles/states.d.ts +4 -4
- package/v3/styles/typography.d.ts +7 -7
- package/dist/cjs/hooks/UsePortal/__tests__/portal-provider.d.ts +0 -2
- package/dist/esm/components/Notification/__tests__/useNotification.d.ts +0 -1
- package/dist/esm/components/Wizard/__tests__/index.d.ts +0 -1
- package/dist/esm/hooks/UsePortal/__tests__/portal-provider.d.ts +0 -2
- package/dist/esm/hooks/UsePortal/__tests__/use-portal.d.ts +0 -1
|
@@ -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
|
|
14
|
+
export declare const validateBase: <ValuesType, ErrorKeys extends string>({ values, keys, validator, errMessage, currentErrors, }: ValidateBaseProps<ValuesType, ErrorKeys>) => PartialRecord<ErrorKeys, string>;
|
|
15
15
|
export {};
|
|
@@ -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:
|
|
9
|
-
export declare const Danger:
|
|
10
|
-
export declare const Info:
|
|
11
|
-
export declare const Warning:
|
|
12
|
-
export declare const Success:
|
|
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:
|
|
2
|
-
export declare const breadcrumbBold:
|
|
3
|
-
export declare const breadcrumbLastItem:
|
|
4
|
-
export declare const breadcrumbSeparator:
|
|
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:
|
|
9
|
-
export declare const HasSpacing:
|
|
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:
|
|
2
|
-
export declare const helpGuideImage:
|
|
3
|
-
export declare const helpGuide:
|
|
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:
|
|
2
|
-
export declare const imageCropperOuter:
|
|
3
|
-
export declare const imageCropperInner:
|
|
4
|
-
export declare const imageCropperContent:
|
|
5
|
-
export declare const imageCropperCropPanelWrapper:
|
|
6
|
-
export declare const imageCropperCropPanel:
|
|
7
|
-
export declare const imageCropperPreviewWrapper:
|
|
8
|
-
export declare const imageCropperPreview:
|
|
9
|
-
export declare const imageCropperActionWrapper:
|
|
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:
|
|
9
|
-
export declare const NoAppsInstalled:
|
|
10
|
-
export declare const DeveloperAppsEmpty:
|
|
9
|
+
export declare const Four04: Story<InfoProps>;
|
|
10
|
+
export declare const NoAppsInstalled: Story<InfoProps>;
|
|
11
|
+
export declare const DeveloperAppsEmpty: Story<InfoProps>;
|
|
@@ -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?:
|
|
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:
|
|
2
|
-
export declare const modalCentered:
|
|
3
|
-
export declare const modalResponsiveContainer:
|
|
4
|
-
export declare const modalNoPadding:
|
|
5
|
-
export declare const modalNoHeader:
|
|
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:
|
|
9
|
-
export declare const Fifty:
|
|
10
|
-
export declare const Seventy:
|
|
11
|
-
export declare const Hundred:
|
|
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
|
}>;
|
|
@@ -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 {
|
|
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:
|
|
21
|
+
validate?: (value: FormikValues) => {
|
|
22
22
|
[k in keyof T]: string;
|
|
23
23
|
};
|
|
24
|
-
initialValue?:
|
|
24
|
+
initialValue?: FormikValues;
|
|
25
25
|
onNavigate?: (params: {
|
|
26
|
-
form:
|
|
26
|
+
form: FormikHelpers<FormikValues>;
|
|
27
27
|
type: WizardActionType;
|
|
28
28
|
context: WizardContextValues;
|
|
29
29
|
}) => Promise<boolean>;
|
|
30
30
|
onSubmit?: (params: {
|
|
31
|
-
values:
|
|
31
|
+
values: FormikValues;
|
|
32
32
|
context: WizardContextValues;
|
|
33
|
-
form:
|
|
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
|
-
|
|
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;
|
package/dist/esm/index.d.ts
CHANGED