@appquality/unguess-design-system 0.3.4 → 2.1.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/.github/workflows/storybook.yml +37 -0
- package/CHANGELOG.md +134 -0
- package/README.md +53 -26
- package/build/index.d.ts +10 -1
- package/build/index.js +99 -6
- package/build/stories/accordions/_types.d.ts +25 -0
- package/build/stories/accordions/index.d.ts +17 -0
- package/build/stories/accordions/index.stories.d.ts +20 -0
- package/build/stories/avatar/_types.d.ts +17 -0
- package/build/stories/avatar/index.d.ts +13 -0
- package/build/stories/avatar/index.stories.d.ts +13 -0
- package/build/stories/breadcrumbs/_types.d.ts +5 -0
- package/build/stories/breadcrumbs/index.d.ts +11 -0
- package/build/stories/breadcrumbs/index.stories.d.ts +6 -0
- package/build/stories/buttons/anchor/_types.d.ts +11 -0
- package/build/stories/buttons/anchor/index.d.ts +12 -0
- package/build/stories/buttons/anchor/index.stories.d.ts +8 -0
- package/build/stories/buttons/button/_types.d.ts +30 -0
- package/build/stories/buttons/button/index.d.ts +22 -0
- package/build/stories/buttons/button/index.stories.d.ts +19 -0
- package/build/stories/buttons/button-group/_types.d.ts +5 -0
- package/build/stories/buttons/button-group/index.d.ts +9 -0
- package/build/stories/buttons/button-group/index.stories.d.ts +15 -0
- package/build/stories/buttons/icon-button/_types.d.ts +19 -0
- package/build/stories/buttons/icon-button/index.d.ts +14 -0
- package/build/stories/buttons/icon-button/index.stories.d.ts +9 -0
- package/build/stories/buttons/shared/_shared.d.ts +2 -0
- package/build/stories/buttons/split-button/_types.d.ts +2 -0
- package/build/stories/buttons/split-button/index.d.ts +11 -0
- package/build/stories/buttons/split-button/index.stories.d.ts +6 -0
- package/build/stories/buttons/utils/useButtonVariant.d.ts +5 -0
- package/build/stories/cards/_types.d.ts +7 -0
- package/build/stories/cards/index.d.ts +10 -0
- package/build/stories/cards/index.stories.d.ts +11 -0
- package/build/stories/close/_types.d.ts +3 -0
- package/build/stories/close/index.d.ts +7 -0
- package/build/stories/close/index.stories.d.ts +6 -0
- package/build/stories/dropdowns/select/_types.d.ts +27 -0
- package/build/stories/dropdowns/select/index.d.ts +0 -0
- package/build/stories/dropdowns/select/index.stories.d.ts +0 -0
- package/build/stories/field/_types.d.ts +3 -0
- package/build/stories/field/index.d.ts +7 -0
- package/build/stories/field/index.stories.d.ts +6 -0
- package/build/stories/forms/checkbox/_types.d.ts +8 -0
- package/build/stories/forms/checkbox/index.d.ts +14 -0
- package/build/stories/forms/checkbox/index.stories.d.ts +6 -0
- package/build/stories/forms/input/_types.d.ts +9 -0
- package/build/stories/forms/input/index.d.ts +11 -0
- package/build/stories/forms/input/index.stories.d.ts +9 -0
- package/build/stories/grid/col/_types.d.ts +77 -0
- package/build/stories/grid/col/index.d.ts +4 -0
- package/build/stories/grid/col/index.stories.d.ts +8 -0
- package/build/stories/grid/grid/_types.d.ts +9 -0
- package/build/stories/grid/grid/index.d.ts +10 -0
- package/build/stories/grid/grid/index.stories.d.ts +12 -0
- package/build/stories/grid/row/_types.d.ts +48 -0
- package/build/stories/grid/row/index.d.ts +4 -0
- package/build/stories/grid/row/index.stories.d.ts +10 -0
- package/build/stories/label/_types.d.ts +5 -0
- package/build/stories/label/index.d.ts +8 -0
- package/build/stories/label/index.stories.d.ts +7 -0
- package/build/stories/loaders/progress/_types.d.ts +12 -0
- package/build/stories/loaders/progress/index.d.ts +14 -0
- package/build/stories/loaders/progress/index.stories.d.ts +6 -0
- package/build/stories/loaders/skeleton/_types.d.ts +9 -0
- package/build/stories/loaders/skeleton/index.d.ts +17 -0
- package/build/stories/loaders/skeleton/index.stories.d.ts +7 -0
- package/build/stories/loaders/spinner/_types.d.ts +19 -0
- package/build/stories/loaders/spinner/index.d.ts +11 -0
- package/build/stories/loaders/spinner/index.stories.d.ts +6 -0
- package/build/stories/notifications/_types.d.ts +9 -0
- package/build/stories/notifications/index.d.ts +20 -0
- package/build/stories/notifications/index.stories.d.ts +10 -0
- package/build/stories/shared/globalStyle.d.ts +1 -1
- package/build/stories/theme/index.d.ts +1 -1
- package/build/stories/title/_types.d.ts +5 -0
- package/build/stories/title/index.d.ts +7 -0
- package/build/stories/title/index.stories.d.ts +6 -0
- package/build/stories/typography/block-quote/_types.d.ts +5 -0
- package/build/stories/typography/block-quote/index.d.ts +7 -0
- package/build/stories/typography/block-quote/index.stories.d.ts +5 -0
- package/build/stories/typography/code/_types.d.ts +7 -0
- package/build/stories/typography/code/index.d.ts +7 -0
- package/build/stories/typography/code/index.stories.d.ts +8 -0
- package/build/stories/typography/ellipsis/_types.d.ts +9 -0
- package/build/stories/typography/ellipsis/index.d.ts +7 -0
- package/build/stories/typography/ellipsis/index.stories.d.ts +5 -0
- package/build/stories/typography/lists/_types.d.ts +17 -0
- package/build/stories/typography/lists/index.d.ts +16 -0
- package/build/stories/typography/lists/ordered.stories.d.ts +9 -0
- package/build/stories/typography/lists/unordered.stories.d.ts +9 -0
- package/build/stories/typography/paragraph/_types.d.ts +5 -0
- package/build/stories/typography/paragraph/index.d.ts +7 -0
- package/build/stories/typography/paragraph/ordered.stories.d.ts +6 -0
- package/build/stories/typography/typescale/_types.d.ts +43 -0
- package/build/stories/typography/typescale/index.d.ts +12 -0
- package/build/stories/typography/typescale/index.stories.d.ts +5 -0
- package/generate-story.sh +61 -0
- package/package.json +30 -13
- package/build/stories/button/index.d.ts +0 -3
- package/build/stories/button/index.stories.d.ts +0 -13
- package/rollup.config.js +0 -28
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SpinnerArgs } from './_types';
|
|
3
|
+
/**
|
|
4
|
+
* Breadcrumbs mark and communicate a user’s location in the product.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Used for this:
|
|
7
|
+
- To show the user where they are in a nested navigation
|
|
8
|
+
- To provide a quick way to navigate to ancestor pages
|
|
9
|
+
*/
|
|
10
|
+
declare const Spinner: (props: SpinnerArgs) => JSX.Element;
|
|
11
|
+
export { Spinner };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { SpinnerArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<SpinnerArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<(props: SpinnerArgs) => JSX.Element>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { INotificationProps, IToastProviderProps } from "@zendeskgarden/react-notifications";
|
|
2
|
+
export interface NotificationArgs extends INotificationProps {
|
|
3
|
+
/** Applies notification type styles */
|
|
4
|
+
type?: "success" | "warning" | "error" | "info";
|
|
5
|
+
}
|
|
6
|
+
export interface ToastProviderArgs extends IToastProviderProps {
|
|
7
|
+
/** Applies regular (non-bold) font weight */
|
|
8
|
+
isRegular?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NotificationArgs, ToastProviderArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* A Notification is a passive status update that keeps users informed of system progress.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Used for this:
|
|
7
|
+
- For a passive status update about user or system activity
|
|
8
|
+
*/
|
|
9
|
+
declare const Notification: (props: NotificationArgs) => JSX.Element;
|
|
10
|
+
declare const ToastProvider: (props: ToastProviderArgs) => JSX.Element;
|
|
11
|
+
declare const useToast: () => {
|
|
12
|
+
addToast: (content: import("@zendeskgarden/react-notifications").ToastContent, options?: Partial<import("@zendeskgarden/react-notifications").IToastOptions<any>> | undefined) => string;
|
|
13
|
+
removeToast: (id: string) => void;
|
|
14
|
+
updateToast: (id: string, options: {
|
|
15
|
+
content?: import("@zendeskgarden/react-notifications").ToastContent | undefined;
|
|
16
|
+
} & Partial<import("@zendeskgarden/react-notifications").IToastOptions<any>>) => void;
|
|
17
|
+
removeAllToasts: () => void;
|
|
18
|
+
toasts: import("@zendeskgarden/react-notifications").IToast[];
|
|
19
|
+
};
|
|
20
|
+
export { Notification, ToastProvider, useToast };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { NotificationArgs } from "./_types";
|
|
4
|
+
interface NotificationStoryProps extends NotificationArgs {
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Default: Story<NotificationStoryProps>;
|
|
9
|
+
declare const _default: ComponentMeta<(props: NotificationArgs) => JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
2
|
-
export
|
|
2
|
+
export { GlobalStyle };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { TitleArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<TitleArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<(props: TitleArgs) => JSX.Element>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ICodeProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
export interface CodeArgs extends ICodeProps {
|
|
3
|
+
/** Applies color to the background and the text */
|
|
4
|
+
hue?: "grey" | "red" | "green" | "yellow";
|
|
5
|
+
/** Adjusts the font size. By default font size is inherited from the surrounding text. */
|
|
6
|
+
size?: "small" | "medium" | "large" | "inherit";
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { CodeArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<CodeArgs>;
|
|
5
|
+
export declare const Color: Story<CodeArgs>;
|
|
6
|
+
export declare const Size: Story<CodeArgs>;
|
|
7
|
+
declare const _default: ComponentMeta<(props: CodeArgs) => JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEllipsisProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
export interface EllipsisArgs extends IEllipsisProps {
|
|
3
|
+
/** Overrides the auto-generated `title` attribute */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Updates the element's HTML tag */
|
|
6
|
+
tag?: any;
|
|
7
|
+
/** Controls the element width */
|
|
8
|
+
width?: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EllipsisArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Use Ellipsis to automatically provide text content with a native title attribute and text-overflow styling.
|
|
5
|
+
*/
|
|
6
|
+
declare const Ellipsis: (props: EllipsisArgs) => JSX.Element;
|
|
7
|
+
export { Ellipsis };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IOrderedListProps, IUnorderedListProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
export interface OrderedListArgs extends IOrderedListProps {
|
|
3
|
+
/** Adjusts the vertical spacing between list items */
|
|
4
|
+
size?: "small" | "medium" | "large";
|
|
5
|
+
/** Sets the marker style */
|
|
6
|
+
type?: "decimal" | "decimal-leading-zero" | "lower-alpha" | "lower-roman" | "upper-alpha" | "upper-roman";
|
|
7
|
+
/** Sets list items */
|
|
8
|
+
items?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface UnorderedListArgs extends IUnorderedListProps {
|
|
11
|
+
/** Adjusts the vertical spacing between list items */
|
|
12
|
+
size?: "small" | "medium" | "large";
|
|
13
|
+
/** Sets the marker style */
|
|
14
|
+
type?: "circle" | "disc" | "square";
|
|
15
|
+
/** Sets list items (just for stories) */
|
|
16
|
+
items?: string[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OrderedListArgs, UnorderedListArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Use Lists to style and format ordered and unordered lists.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Use Lists to style and format ordered (`<ol>`) and unordered (`<ul>`) lists.
|
|
7
|
+
*/
|
|
8
|
+
declare const OrderedList: {
|
|
9
|
+
(props: OrderedListArgs): JSX.Element;
|
|
10
|
+
Item: import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>;
|
|
11
|
+
};
|
|
12
|
+
declare const UnorderedList: {
|
|
13
|
+
(props: UnorderedListArgs): JSX.Element;
|
|
14
|
+
Item: import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>;
|
|
15
|
+
};
|
|
16
|
+
export { OrderedList, UnorderedList };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { OrderedListArgs } from "./_types";
|
|
4
|
+
export declare const Ordered: Story<OrderedListArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<{
|
|
6
|
+
(props: OrderedListArgs): JSX.Element;
|
|
7
|
+
Item: import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { UnorderedListArgs } from "./_types";
|
|
4
|
+
export declare const Unordered: Story<UnorderedListArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<{
|
|
6
|
+
(props: UnorderedListArgs): JSX.Element;
|
|
7
|
+
Item: import("react").ForwardRefExoticComponent<import("react").LiHTMLAttributes<HTMLLIElement> & import("react").RefAttributes<HTMLLIElement>>;
|
|
8
|
+
}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { ParagraphArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<ParagraphArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<(props: ParagraphArgs) => JSX.Element>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ISMProps, IMDProps, ILGProps, IXLProps, IXXLProps, IXXXLProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
export interface SMArgs extends ISMProps {
|
|
3
|
+
/** Updates the element's HTML tag */
|
|
4
|
+
tag?: any;
|
|
5
|
+
/** Applies bold font style */
|
|
6
|
+
isBold?: boolean;
|
|
7
|
+
/** Renders with monospace font */
|
|
8
|
+
isMonospace?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface MDArgs extends IMDProps {
|
|
11
|
+
/** Updates the element's HTML tag */
|
|
12
|
+
tag?: any;
|
|
13
|
+
/** Applies bold font style */
|
|
14
|
+
isBold?: boolean;
|
|
15
|
+
/** Renders with monospace font */
|
|
16
|
+
isMonospace?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface LGArgs extends ILGProps {
|
|
19
|
+
/** Updates the element's HTML tag */
|
|
20
|
+
tag?: any;
|
|
21
|
+
/** Applies bold font style */
|
|
22
|
+
isBold?: boolean;
|
|
23
|
+
/** Renders with monospace font */
|
|
24
|
+
isMonospace?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface XLArgs extends IXLProps {
|
|
27
|
+
/** Updates the element's HTML tag */
|
|
28
|
+
tag?: any;
|
|
29
|
+
/** Applies bold font style */
|
|
30
|
+
isBold?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface XXLArgs extends IXXLProps {
|
|
33
|
+
/** Updates the element's HTML tag */
|
|
34
|
+
tag?: any;
|
|
35
|
+
/** Applies bold font style */
|
|
36
|
+
isBold?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface XXXLArgs extends IXXXLProps {
|
|
39
|
+
/** Updates the element's HTML tag */
|
|
40
|
+
tag?: any;
|
|
41
|
+
/** Applies bold font style */
|
|
42
|
+
isBold?: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SMArgs, MDArgs, LGArgs, XLArgs, XXLArgs, XXXLArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
|
|
5
|
+
*/
|
|
6
|
+
declare const SM: (props: SMArgs) => JSX.Element;
|
|
7
|
+
declare const MD: (props: MDArgs) => JSX.Element;
|
|
8
|
+
declare const LG: (props: LGArgs) => JSX.Element;
|
|
9
|
+
declare const XL: (props: XLArgs) => JSX.Element;
|
|
10
|
+
declare const XXL: (props: XXLArgs) => JSX.Element;
|
|
11
|
+
declare const XXXL: (props: XXXLArgs) => JSX.Element;
|
|
12
|
+
export { SM, MD, LG, XL, XXL, XXXL };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
print_help () {
|
|
3
|
+
echo "Usage"
|
|
4
|
+
echo " $0 new-story-name"
|
|
5
|
+
exit
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
if [ $# -lt 1 ]; then
|
|
9
|
+
print_help
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
STORY_NAME="${1}"
|
|
13
|
+
STORY_NAME_LOWER="$(tr '[:upper:]' '[:lower:]' <<< "${STORY_NAME}")"
|
|
14
|
+
generate_component() {
|
|
15
|
+
cat << EOF
|
|
16
|
+
import { ${STORY_NAME}Props } from "./_types";
|
|
17
|
+
|
|
18
|
+
export const Basic${STORY_NAME} = ({}: ${STORY_NAME}Props) => {};
|
|
19
|
+
EOF
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
generate_types() {
|
|
23
|
+
cat << EOF
|
|
24
|
+
import { BaseProps } from "../../shared/_types";
|
|
25
|
+
export interface ${STORY_NAME}Props extends BaseProps {};
|
|
26
|
+
|
|
27
|
+
EOF
|
|
28
|
+
}
|
|
29
|
+
generate_styled_component() {
|
|
30
|
+
cat << EOF
|
|
31
|
+
import styled from "styled-components";
|
|
32
|
+
import { Basic${STORY_NAME} } from "./_component";
|
|
33
|
+
|
|
34
|
+
export const ${STORY_NAME} = styled(Basic${STORY_NAME})\`\`;
|
|
35
|
+
EOF
|
|
36
|
+
}
|
|
37
|
+
generate_stories() {
|
|
38
|
+
cat << EOF
|
|
39
|
+
import { Story, Meta } from "@storybook/react";
|
|
40
|
+
import { ${STORY_NAME}Props } from "./_types";
|
|
41
|
+
import { ${STORY_NAME} } from "./${STORY_NAME}";
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
title: "${STORY_NAME}",
|
|
45
|
+
component: ${STORY_NAME},
|
|
46
|
+
} as Meta;
|
|
47
|
+
|
|
48
|
+
const Template: Story<${STORY_NAME}Props> = (args) => <${STORY_NAME} {...args} />;
|
|
49
|
+
|
|
50
|
+
export const ${STORY_NAME}Base = Template.bind({});
|
|
51
|
+
${STORY_NAME}Base.args = {};
|
|
52
|
+
EOF
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
mkdir "src/test-stories/$STORY_NAME_LOWER"
|
|
56
|
+
|
|
57
|
+
generate_component > "src/test-stories/$STORY_NAME_LOWER/_component.tsx"
|
|
58
|
+
generate_types > "src/test-stories/$STORY_NAME_LOWER/_types.ts"
|
|
59
|
+
generate_styled_component > "src/test-stories/$STORY_NAME_LOWER/$STORY_NAME.tsx"
|
|
60
|
+
generate_stories > "src/test-stories/$STORY_NAME_LOWER/$STORY_NAME.stories.tsx"
|
|
61
|
+
2606:50c0:8003::154
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"@zendeskgarden/react-accordions": "^8.49.0",
|
|
6
|
+
"@zendeskgarden/react-avatars": "^8.49.0",
|
|
7
|
+
"@zendeskgarden/react-breadcrumbs": "^8.49.0",
|
|
5
8
|
"@zendeskgarden/react-buttons": "^8.48.2",
|
|
6
9
|
"@zendeskgarden/react-chrome": "^8.48.2",
|
|
7
|
-
"@zendeskgarden/react-
|
|
10
|
+
"@zendeskgarden/react-dropdowns": "^8.49.0",
|
|
11
|
+
"@zendeskgarden/react-grid": "^8.49.0",
|
|
12
|
+
"@zendeskgarden/react-loaders": "^8.49.0",
|
|
13
|
+
"@zendeskgarden/react-notifications": "^8.49.0",
|
|
14
|
+
"@zendeskgarden/react-tags": "^8.49.0",
|
|
15
|
+
"@zendeskgarden/react-tooltips": "^8.49.0",
|
|
16
|
+
"@zendeskgarden/react-typography": "^8.49.0",
|
|
17
|
+
"@zendeskgarden/svg-icons": "^6.31.1"
|
|
8
18
|
},
|
|
9
19
|
"scripts": {
|
|
10
20
|
"start": "react-scripts start",
|
|
11
21
|
"build": "yarn run clean && rollup -c",
|
|
12
|
-
"build-storybook": "build-storybook
|
|
13
|
-
"storybook": "start-storybook -p 6006
|
|
22
|
+
"build-storybook": "build-storybook",
|
|
23
|
+
"storybook": "start-storybook -p 6006",
|
|
14
24
|
"clean": "rimraf build",
|
|
15
25
|
"release": "npx auto shipit --base-branch=master",
|
|
16
26
|
"test": "react-scripts test"
|
|
@@ -44,20 +54,19 @@
|
|
|
44
54
|
]
|
|
45
55
|
},
|
|
46
56
|
"peerDependencies": {
|
|
57
|
+
"@zendeskgarden/react-theming": "^8.48.2",
|
|
47
58
|
"react": "^17.0.2",
|
|
48
59
|
"react-dom": "^17.0.2",
|
|
49
60
|
"styled-components": "^5.3.3"
|
|
50
61
|
},
|
|
51
62
|
"devDependencies": {
|
|
63
|
+
"@babel/core": "^7.17.5",
|
|
52
64
|
"@rollup/plugin-image": "^2.1.1",
|
|
53
65
|
"@storybook/addon-actions": "^6.4.19",
|
|
54
66
|
"@storybook/addon-essentials": "^6.4.19",
|
|
55
67
|
"@storybook/addon-interactions": "^6.4.19",
|
|
56
68
|
"@storybook/addon-links": "^6.4.19",
|
|
57
|
-
"@storybook/
|
|
58
|
-
"@storybook/manager-webpack5": "^6.4.19",
|
|
59
|
-
"@storybook/node-logger": "^6.4.19",
|
|
60
|
-
"@storybook/preset-create-react-app": "^4.0.1",
|
|
69
|
+
"@storybook/preset-create-react-app": "^3.1.7",
|
|
61
70
|
"@storybook/react": "^6.4.19",
|
|
62
71
|
"@storybook/testing-library": "^0.0.9",
|
|
63
72
|
"@svgr/rollup": "^6.2.1",
|
|
@@ -69,17 +78,20 @@
|
|
|
69
78
|
"@types/react": "^17.0.39",
|
|
70
79
|
"@types/react-dom": "^17.0.11",
|
|
71
80
|
"@types/styled-components": "^5.1.23",
|
|
81
|
+
"@zendeskgarden/react-theming": "^8.48.2",
|
|
72
82
|
"auto": "^10.32.6",
|
|
83
|
+
"babel-loader": "^8.2.3",
|
|
84
|
+
"commitizen": "^4.2.4",
|
|
85
|
+
"cz-conventional-changelog": "3.3.0",
|
|
73
86
|
"react": "^17.0.2",
|
|
74
87
|
"react-dom": "^17.0.2",
|
|
75
|
-
"react-scripts": "
|
|
88
|
+
"react-scripts": "4.0.3",
|
|
76
89
|
"rimraf": "^3.0.2",
|
|
77
90
|
"rollup": "^2.68.0",
|
|
78
91
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
79
92
|
"styled-components": "^5.3.3",
|
|
80
|
-
"typescript": "^4.
|
|
81
|
-
"web-vitals": "^2.1.4"
|
|
82
|
-
"webpack": "^5.69.1"
|
|
93
|
+
"typescript": "^4.5.0",
|
|
94
|
+
"web-vitals": "^2.1.4"
|
|
83
95
|
},
|
|
84
96
|
"description": "Unguess design system",
|
|
85
97
|
"author": "Luca Cannarozzo (@cannarocks)",
|
|
@@ -89,5 +101,10 @@
|
|
|
89
101
|
"type": "git",
|
|
90
102
|
"url": "git+https://github.com/AppQuality/unguess-design-system.git"
|
|
91
103
|
},
|
|
92
|
-
"license": "ISC"
|
|
104
|
+
"license": "ISC",
|
|
105
|
+
"config": {
|
|
106
|
+
"commitizen": {
|
|
107
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
93
110
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
-
import { IButtonProps } from "@zendeskgarden/react-buttons";
|
|
4
|
-
interface IArgs extends IButtonProps {
|
|
5
|
-
hasStartIcon?: boolean;
|
|
6
|
-
hasEndIcon?: boolean;
|
|
7
|
-
isStartIconRotated?: boolean;
|
|
8
|
-
isEndIconRotated?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const Basic: Story<IArgs>;
|
|
11
|
-
export declare const Primary: Story<IArgs>;
|
|
12
|
-
declare const _default: ComponentMeta<(props: IButtonProps) => JSX.Element>;
|
|
13
|
-
export default _default;
|
package/rollup.config.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// rollup.config.js
|
|
2
|
-
import image from "@rollup/plugin-image";
|
|
3
|
-
import svgr from "@svgr/rollup";
|
|
4
|
-
import typescript from "rollup-plugin-typescript2";
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line import/no-anonymous-default-export
|
|
7
|
-
export default {
|
|
8
|
-
input: "src/index.tsx",
|
|
9
|
-
output: {
|
|
10
|
-
dir: "build",
|
|
11
|
-
format: "cjs",
|
|
12
|
-
},
|
|
13
|
-
plugins: [
|
|
14
|
-
image(),
|
|
15
|
-
svgr({
|
|
16
|
-
svgoConfig: {
|
|
17
|
-
plugins: [
|
|
18
|
-
{
|
|
19
|
-
active: false,
|
|
20
|
-
name: "removeDimensions",
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
}),
|
|
25
|
-
typescript(),
|
|
26
|
-
],
|
|
27
|
-
external: ["react", "react-dom", "styled-components"],
|
|
28
|
-
};
|