@loja-integrada/admin-components 0.18.34 → 0.19.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/dist/Components/HelpLink/HelpLink.spec.d.ts +1 -0
- package/dist/Components/HelpLink/HelpLink.stories.d.ts +6 -0
- package/dist/Components/HelpLink/index.d.ts +28 -0
- package/dist/Indicators/InformationBox/InformationBox.d.ts +1 -1
- package/dist/Navigation/Stepper/Stepper.spec.d.ts +1 -0
- package/dist/Navigation/Stepper/Stepper.stories.d.ts +8 -0
- package/dist/Navigation/Stepper/index.d.ts +29 -0
- package/dist/admin-components.cjs.development.js +657 -268
- package/dist/admin-components.cjs.development.js.map +1 -1
- package/dist/admin-components.cjs.production.min.js +1 -1
- package/dist/admin-components.cjs.production.min.js.map +1 -1
- package/dist/admin-components.esm.js +657 -268
- package/dist/admin-components.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/Components/HelpLink/HelpLink.spec.tsx +33 -0
- package/src/Components/HelpLink/HelpLink.stories.tsx +39 -0
- package/src/Components/HelpLink/index.tsx +80 -0
- package/src/Indicators/InformationBox/InformationBox.spec.tsx +11 -12
- package/src/Indicators/InformationBox/InformationBox.tsx +13 -13
- package/src/Indicators/InformationBox/InformationBoxt.stories.tsx +7 -2
- package/src/Navigation/Breadcrumb/index.tsx +6 -21
- package/src/Navigation/Stepper/Stepper.spec.tsx +68 -0
- package/src/Navigation/Stepper/Stepper.stories.tsx +68 -0
- package/src/Navigation/Stepper/index.tsx +97 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HelpLinkProps } from '.';
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, HelpLinkProps>;
|
|
5
|
+
export declare const Button: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, HelpLinkProps>;
|
|
6
|
+
export declare const NoTextOnMobile: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, HelpLinkProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const HelpLink: React.FC<HelpLinkProps>;
|
|
3
|
+
export interface HelpLinkProps {
|
|
4
|
+
/**
|
|
5
|
+
* Custom class name
|
|
6
|
+
* */
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Text to be displayed
|
|
10
|
+
* */
|
|
11
|
+
text?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Text will appear on mobile or not
|
|
14
|
+
* */
|
|
15
|
+
mobileText?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Component behaviour as hyper link or button
|
|
18
|
+
* */
|
|
19
|
+
as: 'hyperLink' | 'button';
|
|
20
|
+
/**
|
|
21
|
+
* Href to the link where component redirects
|
|
22
|
+
* */
|
|
23
|
+
href?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Button action when clicked
|
|
26
|
+
* */
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProps } from '../../Icons';
|
|
3
|
-
declare type InformationBoxTypesOptions = '
|
|
3
|
+
declare type InformationBoxTypesOptions = 'success' | 'warning' | 'danger' | 'info';
|
|
4
4
|
declare const InformationBoxTypes: Record<InformationBoxTypesOptions, {
|
|
5
5
|
title: string;
|
|
6
6
|
class: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StepperProps } from '.';
|
|
2
|
+
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, StepperProps>;
|
|
5
|
+
export declare const NoText: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, StepperProps>;
|
|
6
|
+
export declare const WithText: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, StepperProps>;
|
|
7
|
+
export declare const HandleClick: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, StepperProps>;
|
|
8
|
+
export declare const CustomStepClassName: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, StepperProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Stepper: React.FC<StepperProps>;
|
|
3
|
+
declare type StepType = {
|
|
4
|
+
step: number;
|
|
5
|
+
text?: string;
|
|
6
|
+
handleClick?: Function;
|
|
7
|
+
customClassName?: string;
|
|
8
|
+
};
|
|
9
|
+
export interface StepperProps {
|
|
10
|
+
/**
|
|
11
|
+
* Custom class name
|
|
12
|
+
* */
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Current page step
|
|
16
|
+
* */
|
|
17
|
+
currentStep: number;
|
|
18
|
+
/**
|
|
19
|
+
* Array of steps containing the step number (1, 2, 3, ..., n),
|
|
20
|
+
* text with step's title (optional) and a handler for the
|
|
21
|
+
* step's click (optional)
|
|
22
|
+
* */
|
|
23
|
+
steps: StepType[];
|
|
24
|
+
/**
|
|
25
|
+
* Shows step text instead of linking lines
|
|
26
|
+
* */
|
|
27
|
+
showText?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export {};
|