@appquality/unguess-design-system 2.11.4 → 2.11.7
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/CHANGELOG.md +36 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +219 -137
- package/build/stories/buttons/anchor/index.d.ts +2 -1
- package/build/stories/buttons/anchor/index.stories.d.ts +2 -1
- package/build/stories/buttons/button/_types.d.ts +1 -1
- package/build/stories/buttons/button/index.d.ts +9 -13
- package/build/stories/buttons/button/index.stories.d.ts +4 -4
- package/build/stories/buttons/button-group/index.d.ts +2 -1
- package/build/stories/buttons/button-group/index.stories.d.ts +2 -1
- package/build/stories/buttons/icon-button/index.d.ts +2 -1
- package/build/stories/buttons/icon-button/index.stories.d.ts +2 -1
- package/build/stories/buttons/split-button/index.d.ts +2 -1
- package/build/stories/buttons/split-button/index.stories.d.ts +2 -1
- package/build/stories/forms/input/index.d.ts +1 -1
- package/build/stories/forms/input/index.stories.d.ts +2 -1
- package/build/stories/forms/input-toggle/_types.d.ts +15 -0
- package/build/stories/forms/input-toggle/index.d.ts +10 -0
- package/build/stories/forms/input-toggle/index.stories.d.ts +8 -0
- package/build/stories/tooltip-modal/_types.d.ts +21 -0
- package/build/stories/tooltip-modal/index.d.ts +18 -0
- package/build/stories/tooltip-modal/index.stories.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AnchorArgs } from "./_types";
|
|
2
3
|
/**
|
|
3
4
|
* The Anchor is a link that helps users navigate from one location to another.
|
|
@@ -7,5 +8,5 @@ import { AnchorArgs } from "./_types";
|
|
|
7
8
|
- To navigate within a page
|
|
8
9
|
- To display links alongside text
|
|
9
10
|
*/
|
|
10
|
-
declare const Anchor: (
|
|
11
|
+
declare const Anchor: import("react").ForwardRefExoticComponent<AnchorArgs & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
11
12
|
export { Anchor };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { AnchorArgs } from "./_types";
|
|
3
4
|
export declare const Basic: Story<AnchorArgs>;
|
|
4
5
|
export declare const Danger: Story<AnchorArgs>;
|
|
5
6
|
export declare const External: Story<AnchorArgs>;
|
|
6
|
-
declare const _default: ComponentMeta<(
|
|
7
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<AnchorArgs & import("react").RefAttributes<HTMLAnchorElement>>>;
|
|
7
8
|
export default _default;
|
|
@@ -15,7 +15,7 @@ export interface ButtonArgs extends IButtonProps {
|
|
|
15
15
|
/** Applies danger styling */
|
|
16
16
|
isDanger?: boolean;
|
|
17
17
|
/** Specifies the buton size */
|
|
18
|
-
size?:
|
|
18
|
+
size?: "small" | "medium" | "large";
|
|
19
19
|
/** Stretches the button fill to its container width */
|
|
20
20
|
isStretched?: boolean;
|
|
21
21
|
/** Applies neutral button styling */
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonArgs } from "./_types";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Use a Button to enable actions or decisions that are important to a user’s workflow.
|
|
5
|
-
* <hr>
|
|
6
|
-
* Used for this:
|
|
7
|
-
- To enable user action
|
|
8
|
-
- To draw attention to relevant actions in a user's workflow
|
|
9
|
-
*/
|
|
10
|
-
declare const Button: {
|
|
11
|
-
(props: ButtonArgs): JSX.Element;
|
|
12
|
-
StartIcon: {
|
|
3
|
+
declare const UgButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
4
|
+
EndIcon: {
|
|
13
5
|
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): JSX.Element;
|
|
14
6
|
displayName: string;
|
|
15
7
|
};
|
|
16
|
-
|
|
8
|
+
StartIcon: {
|
|
17
9
|
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): JSX.Element;
|
|
18
10
|
displayName: string;
|
|
19
11
|
};
|
|
12
|
+
}, any, {}, never>;
|
|
13
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonArgs & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
14
|
+
EndIcon: typeof UgButton.EndIcon;
|
|
15
|
+
StartIcon: typeof UgButton.StartIcon;
|
|
20
16
|
};
|
|
21
|
-
export {
|
|
17
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { ButtonArgs } from "./_types";
|
|
3
4
|
export declare const Default: Story<ButtonArgs>;
|
|
4
5
|
export declare const Basic: Story<ButtonArgs>;
|
|
5
6
|
export declare const Primary: Story<ButtonArgs>;
|
|
6
7
|
export declare const WithIcon: Story<ButtonArgs>;
|
|
7
|
-
declare const _default: ComponentMeta<{
|
|
8
|
-
|
|
9
|
-
StartIcon: {
|
|
8
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<ButtonArgs & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
9
|
+
EndIcon: {
|
|
10
10
|
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
StartIcon: {
|
|
14
14
|
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonGroupArgs } from "./_types";
|
|
2
3
|
/**
|
|
3
4
|
A Button group lets users make a selection from a set of options.
|
|
4
5
|
|
|
5
6
|
This is a legacy component and may be deprecated in the future. UNGUESS does not presently recommend the use of Button groups.
|
|
6
7
|
**/
|
|
7
|
-
declare const ButtonGroup: (
|
|
8
|
+
declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupArgs & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export { ButtonGroup };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { ButtonGroupArgs } from "./_types";
|
|
3
4
|
interface ButtonGroupProps extends ButtonGroupArgs {
|
|
@@ -10,5 +11,5 @@ interface ButtonGroupProps extends ButtonGroupArgs {
|
|
|
10
11
|
export declare const TwoItems: Story<ButtonGroupProps>;
|
|
11
12
|
export declare const WithBorders: Story<ButtonGroupProps>;
|
|
12
13
|
export declare const RoundedItems: Story<ButtonGroupProps>;
|
|
13
|
-
declare const _default: ComponentMeta<(
|
|
14
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<ButtonGroupArgs & import("react").RefAttributes<HTMLDivElement>>>;
|
|
14
15
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IconButtonArgs } from "./_types";
|
|
2
3
|
/**
|
|
3
4
|
Icon buttons (like Buttons) let users take action.
|
|
@@ -9,5 +10,5 @@ Used for this
|
|
|
9
10
|
- To simplify the appearance of repeated or persistent actions on a page
|
|
10
11
|
- To enable action in a toolbar
|
|
11
12
|
**/
|
|
12
|
-
declare const IconButton: (
|
|
13
|
+
declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonArgs & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
14
|
export { IconButton };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { IconButtonArgs } from "./_types";
|
|
3
4
|
export declare const Default: Story<IconButtonArgs>;
|
|
4
5
|
export declare const Danger: Story<IconButtonArgs>;
|
|
5
6
|
export declare const Disabled: Story<IconButtonArgs>;
|
|
6
7
|
export declare const Shape: Story<IconButtonArgs>;
|
|
7
|
-
declare const _default: ComponentMeta<(
|
|
8
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<IconButtonArgs & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
8
9
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { SplitButtonArgs } from "./_types";
|
|
2
3
|
/**
|
|
3
4
|
A Split button is a hybrid between a Dropdown Menu and a Button. It lets users choose from parallel actions and take action on their choice.
|
|
@@ -6,5 +7,5 @@ Used for this:
|
|
|
6
7
|
- To let users select from multiple parallel actions. Actions are parallel when each represents a path forward for the user and none cancel the action.
|
|
7
8
|
- To reduce visual complexity when there are multiple actions a user can take
|
|
8
9
|
**/
|
|
9
|
-
declare const SplitButton: (
|
|
10
|
+
declare const SplitButton: import("react").ForwardRefExoticComponent<SplitButtonArgs & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
11
|
export { SplitButton };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { SplitButtonArgs } from "./_types";
|
|
3
4
|
export declare const Default: Story<SplitButtonArgs>;
|
|
4
|
-
declare const _default: ComponentMeta<(
|
|
5
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<import("../icon-button/_types").IconButtonArgs & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
5
6
|
export default _default;
|
|
@@ -8,5 +8,5 @@ declare const Hint: import("styled-components").StyledComponent<import("react").
|
|
|
8
8
|
* - To let the user enter data into a field
|
|
9
9
|
* - To enter multiline text, use a Textarea
|
|
10
10
|
**/
|
|
11
|
-
declare const Input: (
|
|
11
|
+
declare const Input: import("react").ForwardRefExoticComponent<InputArgs & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
12
|
export { Input, Hint };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
3
|
import { InputArgs } from "./_types";
|
|
3
4
|
export declare const Default: Story<InputArgs>;
|
|
4
5
|
export declare const Success: Story<InputArgs>;
|
|
5
6
|
export declare const Warning: Story<InputArgs>;
|
|
6
7
|
export declare const Error: Story<InputArgs>;
|
|
7
|
-
declare const _default: ComponentMeta<(
|
|
8
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<InputArgs & import("react").RefAttributes<HTMLInputElement>>>;
|
|
8
9
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IInputProps } from "@zendeskgarden/react-forms";
|
|
2
|
+
export interface InputToggleArgs extends IInputProps {
|
|
3
|
+
/** Removes borders and padding */
|
|
4
|
+
isBare?: boolean;
|
|
5
|
+
/** Applies validation state styling */
|
|
6
|
+
validation?: 'success' | 'warning' | 'error';
|
|
7
|
+
/** Sets input size */
|
|
8
|
+
size?: number;
|
|
9
|
+
/** Sets the input label */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Sets the input message */
|
|
12
|
+
message?: string;
|
|
13
|
+
/** Sets the asterisk if required */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputToggleArgs } from "./_types";
|
|
2
|
+
/**
|
|
3
|
+
* An Input Toggle lets users use the input by activating it pressing the edit button.
|
|
4
|
+
* <hr>
|
|
5
|
+
* Used for this:
|
|
6
|
+
* - To let the user enter data into a field
|
|
7
|
+
* - To enter multiline text, use a Textarea
|
|
8
|
+
**/
|
|
9
|
+
declare const InputToggle: (props: InputToggleArgs) => JSX.Element;
|
|
10
|
+
export { InputToggle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
|
+
import { InputToggleArgs } from "./_types";
|
|
3
|
+
export declare const Default: Story<InputToggleArgs>;
|
|
4
|
+
export declare const Success: Story<InputToggleArgs>;
|
|
5
|
+
export declare const Warning: Story<InputToggleArgs>;
|
|
6
|
+
export declare const Error: Story<InputToggleArgs>;
|
|
7
|
+
declare const _default: ComponentMeta<(props: InputToggleArgs) => JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ITooltipModalProps } from "@zendeskgarden/react-modals";
|
|
2
|
+
declare type Placement = "auto" | "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "end" | "end-top" | "end-bottom" | "start" | "start-top" | "start-bottom";
|
|
3
|
+
export interface TooltipModalArgs extends ITooltipModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* Positions the modal relative to the provided `HTMLElement`
|
|
6
|
+
*/
|
|
7
|
+
referenceElement?: HTMLElement | null;
|
|
8
|
+
/**
|
|
9
|
+
* Adjusts the placement of the tooltip
|
|
10
|
+
**/
|
|
11
|
+
placement?: Placement;
|
|
12
|
+
/**
|
|
13
|
+
* Adds an arrow to the tooltop
|
|
14
|
+
*/
|
|
15
|
+
hasArrow?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Sets the `z-index` of the tooltip
|
|
18
|
+
*/
|
|
19
|
+
zIndex?: number;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TooltipModalArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* A Tooltip modal provides contextual information about a paired element. It either opens automatically or through user action.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Used for this:
|
|
7
|
+
- To enable user action within a tooltip
|
|
8
|
+
- To provide a focus loop when actions need to be inside a tooltip
|
|
9
|
+
*/
|
|
10
|
+
declare const TooltipModal: {
|
|
11
|
+
(props: TooltipModalArgs): JSX.Element;
|
|
12
|
+
Title: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
};
|
|
18
|
+
export { TooltipModal };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { TooltipModalArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<TooltipModalArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<{
|
|
6
|
+
(props: TooltipModalArgs): JSX.Element;
|
|
7
|
+
Title: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
+
FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|