@appquality/unguess-design-system 2.9.0 → 2.10.2

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,9 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from "../../../cards/_types";
3
+ import { CheckboxArgs } from "../_types";
4
+ export interface CheckboxCardArgs extends CheckboxArgs {
5
+ card?: CardProps;
6
+ label: string;
7
+ icon: React.ReactNode;
8
+ iconActive?: React.ReactNode;
9
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { CheckboxCardArgs } from "./_types";
3
+ declare const CheckboxCard: (props: CheckboxCardArgs) => JSX.Element;
4
+ export { CheckboxCard };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { CheckboxCardArgs } from "./_types";
4
+ interface FormProps {
5
+ cards: CheckboxCardArgs[];
6
+ form: {
7
+ onSubmit: (e: any) => void;
8
+ };
9
+ }
10
+ export declare const SingleCard: Story<CheckboxCardArgs>;
11
+ export declare const MultipleCards: Story<FormProps>;
12
+ declare const _default: ComponentMeta<(props: CheckboxCardArgs) => JSX.Element>;
13
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from "../../../cards/_types";
3
+ import { RadioArgs } from "../_types";
4
+ export interface RadioCardArgs extends RadioArgs {
5
+ card?: CardProps;
6
+ label: string;
7
+ icon: React.ReactNode;
8
+ iconActive?: React.ReactNode;
9
+ value: string;
10
+ onChecked?: (value: string) => void;
11
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { RadioCardArgs } from "./_types";
3
+ declare const RadioCard: ({ card, icon, iconActive, ...props }: RadioCardArgs) => JSX.Element;
4
+ export { RadioCard };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { RadioCardArgs } from "./_types";
4
+ interface FormProps {
5
+ cards: RadioCardArgs[];
6
+ form: {
7
+ onSubmit: (e: any) => void;
8
+ };
9
+ }
10
+ export declare const SingleCard: Story<RadioCardArgs>;
11
+ export declare const MultipleCards: Story<FormProps>;
12
+ declare const _default: ComponentMeta<({ card, icon, iconActive, ...props }: RadioCardArgs) => JSX.Element>;
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { IStepperProps, IStepperLabelProps } from "@zendeskgarden/react-accordions";
3
+ export interface StepperArgs extends IStepperProps {
4
+ /** Defines the currently active step, starting at 0 */
5
+ activeIndex?: number;
6
+ /** Applies horizontal layout styling */
7
+ isHorizontal?: boolean;
8
+ }
9
+ export interface StepperLabelArgs extends IStepperLabelProps {
10
+ /** Replaces the label number with an icon */
11
+ icon?: React.ReactNode;
12
+ /** Hides the label text */
13
+ isHidden?: boolean;
14
+ }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { StepperArgs } from "./_types";
3
+ /**
4
+ * A Stepper guides users through steps of a task in sequential order.
5
+
6
+ * Used for this:
7
+ - For multi-step flows that must be completed in order
8
+ */
9
+ declare const Stepper: {
10
+ (props: StepperArgs): JSX.Element;
11
+ Step: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>, any, {}, never>;
12
+ Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-accordions").IStepperLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
13
+ Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
14
+ };
15
+ export { Stepper };
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { StepperArgs } from "./_types";
4
+ interface StepperStoryProps extends StepperArgs {
5
+ currentStep: number;
6
+ }
7
+ export declare const Default: Story<StepperStoryProps>;
8
+ export declare const SeparateContent: Story<StepperStoryProps>;
9
+ declare const _default: ComponentMeta<{
10
+ (props: StepperArgs): JSX.Element;
11
+ Step: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>, any, {}, never>;
12
+ Label: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-accordions").IStepperLabelProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
13
+ Content: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
14
+ }>;
15
+ export default _default;
@@ -1,3 +1,4 @@
1
1
  export declare const flexCenter: import("styled-components").FlattenSimpleInterpolation;
2
2
  export declare const flexColumnCenter: import("styled-components").FlattenSimpleInterpolation;
3
3
  export declare const flexStart: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
4
+ export declare const cardStyle: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.9.0",
3
+ "version": "2.10.2",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/css-bedrock": "^9.0.0",
6
6
  "@zendeskgarden/react-accordions": "^8.49.0",