@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.
@@ -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 = 'tip' | 'warning' | 'danger' | 'info';
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 {};