@appquality/unguess-design-system 2.0.0 → 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 +68 -0
- package/README.md +53 -26
- package/build/index.d.ts +6 -0
- package/build/index.js +86 -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 +8 -0
- package/build/stories/buttons/anchor/index.d.ts +8 -0
- package/build/stories/buttons/button/_types.d.ts +17 -3
- package/build/stories/buttons/button/index.d.ts +6 -2
- package/build/stories/buttons/button-group/_types.d.ts +2 -0
- package/build/stories/buttons/button-group/index.d.ts +1 -1
- package/build/stories/buttons/button-group/index.stories.d.ts +4 -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/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/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/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/package.json +17 -3
|
@@ -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 };
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"@zendeskgarden/react-accordions": "^8.49.0",
|
|
6
|
+
"@zendeskgarden/react-avatars": "^8.49.0",
|
|
5
7
|
"@zendeskgarden/react-breadcrumbs": "^8.49.0",
|
|
6
8
|
"@zendeskgarden/react-buttons": "^8.48.2",
|
|
7
9
|
"@zendeskgarden/react-chrome": "^8.48.2",
|
|
8
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",
|
|
9
15
|
"@zendeskgarden/react-tooltips": "^8.49.0",
|
|
10
16
|
"@zendeskgarden/react-typography": "^8.49.0",
|
|
11
17
|
"@zendeskgarden/svg-icons": "^6.31.1"
|
|
@@ -60,6 +66,7 @@
|
|
|
60
66
|
"@storybook/addon-essentials": "^6.4.19",
|
|
61
67
|
"@storybook/addon-interactions": "^6.4.19",
|
|
62
68
|
"@storybook/addon-links": "^6.4.19",
|
|
69
|
+
"@storybook/preset-create-react-app": "^3.1.7",
|
|
63
70
|
"@storybook/react": "^6.4.19",
|
|
64
71
|
"@storybook/testing-library": "^0.0.9",
|
|
65
72
|
"@svgr/rollup": "^6.2.1",
|
|
@@ -74,6 +81,8 @@
|
|
|
74
81
|
"@zendeskgarden/react-theming": "^8.48.2",
|
|
75
82
|
"auto": "^10.32.6",
|
|
76
83
|
"babel-loader": "^8.2.3",
|
|
84
|
+
"commitizen": "^4.2.4",
|
|
85
|
+
"cz-conventional-changelog": "3.3.0",
|
|
77
86
|
"react": "^17.0.2",
|
|
78
87
|
"react-dom": "^17.0.2",
|
|
79
88
|
"react-scripts": "4.0.3",
|
|
@@ -81,7 +90,7 @@
|
|
|
81
90
|
"rollup": "^2.68.0",
|
|
82
91
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
83
92
|
"styled-components": "^5.3.3",
|
|
84
|
-
"typescript": "^4.
|
|
93
|
+
"typescript": "^4.5.0",
|
|
85
94
|
"web-vitals": "^2.1.4"
|
|
86
95
|
},
|
|
87
96
|
"description": "Unguess design system",
|
|
@@ -92,5 +101,10 @@
|
|
|
92
101
|
"type": "git",
|
|
93
102
|
"url": "git+https://github.com/AppQuality/unguess-design-system.git"
|
|
94
103
|
},
|
|
95
|
-
"license": "ISC"
|
|
104
|
+
"license": "ISC",
|
|
105
|
+
"config": {
|
|
106
|
+
"commitizen": {
|
|
107
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
96
110
|
}
|