@appquality/unguess-design-system 0.3.5 → 2.2.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.
Files changed (101) hide show
  1. package/.github/workflows/storybook.yml +37 -0
  2. package/CHANGELOG.md +143 -0
  3. package/README.md +53 -26
  4. package/build/index.d.ts +8 -1
  5. package/build/index.js +93 -4
  6. package/build/stories/accordions/_types.d.ts +25 -0
  7. package/build/stories/accordions/index.d.ts +17 -0
  8. package/build/stories/accordions/index.stories.d.ts +20 -0
  9. package/build/stories/avatar/_types.d.ts +17 -0
  10. package/build/stories/avatar/index.d.ts +13 -0
  11. package/build/stories/avatar/index.stories.d.ts +13 -0
  12. package/build/stories/breadcrumbs/_types.d.ts +5 -0
  13. package/build/stories/breadcrumbs/index.d.ts +11 -0
  14. package/build/stories/breadcrumbs/index.stories.d.ts +6 -0
  15. package/build/stories/buttons/anchor/_types.d.ts +11 -0
  16. package/build/stories/buttons/anchor/index.d.ts +12 -0
  17. package/build/stories/buttons/anchor/index.stories.d.ts +8 -0
  18. package/build/stories/buttons/button/_types.d.ts +30 -0
  19. package/build/stories/buttons/button/index.d.ts +22 -0
  20. package/build/stories/buttons/button/index.stories.d.ts +19 -0
  21. package/build/stories/buttons/button-group/_types.d.ts +5 -0
  22. package/build/stories/buttons/button-group/index.d.ts +9 -0
  23. package/build/stories/buttons/button-group/index.stories.d.ts +15 -0
  24. package/build/stories/buttons/icon-button/_types.d.ts +19 -0
  25. package/build/stories/buttons/icon-button/index.d.ts +14 -0
  26. package/build/stories/buttons/icon-button/index.stories.d.ts +9 -0
  27. package/build/stories/buttons/shared/_shared.d.ts +2 -0
  28. package/build/stories/buttons/split-button/_types.d.ts +2 -0
  29. package/build/stories/buttons/split-button/index.d.ts +11 -0
  30. package/build/stories/buttons/split-button/index.stories.d.ts +6 -0
  31. package/build/stories/buttons/utils/useButtonVariant.d.ts +5 -0
  32. package/build/stories/cards/_types.d.ts +7 -0
  33. package/build/stories/cards/index.d.ts +10 -0
  34. package/build/stories/cards/index.stories.d.ts +11 -0
  35. package/build/stories/close/_types.d.ts +3 -0
  36. package/build/stories/close/index.d.ts +7 -0
  37. package/build/stories/close/index.stories.d.ts +6 -0
  38. package/build/stories/dropdowns/select/_types.d.ts +27 -0
  39. package/build/stories/dropdowns/select/index.d.ts +0 -0
  40. package/build/stories/dropdowns/select/index.stories.d.ts +0 -0
  41. package/build/stories/field/_types.d.ts +3 -0
  42. package/build/stories/field/index.d.ts +7 -0
  43. package/build/stories/field/index.stories.d.ts +6 -0
  44. package/build/stories/forms/checkbox/_types.d.ts +8 -0
  45. package/build/stories/forms/checkbox/index.d.ts +14 -0
  46. package/build/stories/forms/checkbox/index.stories.d.ts +6 -0
  47. package/build/stories/forms/input/_types.d.ts +9 -0
  48. package/build/stories/forms/input/index.d.ts +11 -0
  49. package/build/stories/forms/input/index.stories.d.ts +9 -0
  50. package/build/stories/grid/col/_types.d.ts +77 -0
  51. package/build/stories/grid/col/index.d.ts +4 -0
  52. package/build/stories/grid/col/index.stories.d.ts +8 -0
  53. package/build/stories/grid/grid/_types.d.ts +9 -0
  54. package/build/stories/grid/grid/index.d.ts +10 -0
  55. package/build/stories/grid/grid/index.stories.d.ts +12 -0
  56. package/build/stories/grid/row/_types.d.ts +48 -0
  57. package/build/stories/grid/row/index.d.ts +4 -0
  58. package/build/stories/grid/row/index.stories.d.ts +10 -0
  59. package/build/stories/label/_types.d.ts +5 -0
  60. package/build/stories/label/index.d.ts +8 -0
  61. package/build/stories/label/index.stories.d.ts +7 -0
  62. package/build/stories/loaders/progress/_types.d.ts +12 -0
  63. package/build/stories/loaders/progress/index.d.ts +14 -0
  64. package/build/stories/loaders/progress/index.stories.d.ts +6 -0
  65. package/build/stories/loaders/skeleton/_types.d.ts +9 -0
  66. package/build/stories/loaders/skeleton/index.d.ts +17 -0
  67. package/build/stories/loaders/skeleton/index.stories.d.ts +7 -0
  68. package/build/stories/loaders/spinner/_types.d.ts +19 -0
  69. package/build/stories/loaders/spinner/index.d.ts +11 -0
  70. package/build/stories/loaders/spinner/index.stories.d.ts +6 -0
  71. package/build/stories/notifications/_types.d.ts +9 -0
  72. package/build/stories/notifications/index.d.ts +20 -0
  73. package/build/stories/notifications/index.stories.d.ts +10 -0
  74. package/build/stories/theme/index.d.ts +1 -1
  75. package/build/stories/title/_types.d.ts +5 -0
  76. package/build/stories/title/index.d.ts +7 -0
  77. package/build/stories/title/index.stories.d.ts +6 -0
  78. package/build/stories/typography/block-quote/_types.d.ts +5 -0
  79. package/build/stories/typography/block-quote/index.d.ts +7 -0
  80. package/build/stories/typography/block-quote/index.stories.d.ts +5 -0
  81. package/build/stories/typography/code/_types.d.ts +7 -0
  82. package/build/stories/typography/code/index.d.ts +7 -0
  83. package/build/stories/typography/code/index.stories.d.ts +8 -0
  84. package/build/stories/typography/ellipsis/_types.d.ts +9 -0
  85. package/build/stories/typography/ellipsis/index.d.ts +7 -0
  86. package/build/stories/typography/ellipsis/index.stories.d.ts +5 -0
  87. package/build/stories/typography/lists/_types.d.ts +17 -0
  88. package/build/stories/typography/lists/index.d.ts +16 -0
  89. package/build/stories/typography/lists/ordered.stories.d.ts +9 -0
  90. package/build/stories/typography/lists/unordered.stories.d.ts +9 -0
  91. package/build/stories/typography/paragraph/_types.d.ts +5 -0
  92. package/build/stories/typography/paragraph/index.d.ts +7 -0
  93. package/build/stories/typography/paragraph/ordered.stories.d.ts +6 -0
  94. package/build/stories/typography/typescale/_types.d.ts +43 -0
  95. package/build/stories/typography/typescale/index.d.ts +12 -0
  96. package/build/stories/typography/typescale/index.stories.d.ts +5 -0
  97. package/generate-story.sh +61 -0
  98. package/package.json +37 -13
  99. package/build/stories/button/index.d.ts +0 -3
  100. package/build/stories/button/index.stories.d.ts +0 -13
  101. package/rollup.config.js +0 -28
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { SkeletonArgs } from "./_types";
4
+ export declare const Default: Story<SkeletonArgs>;
5
+ export declare const Light: Story<SkeletonArgs>;
6
+ declare const _default: ComponentMeta<(props: SkeletonArgs) => JSX.Element>;
7
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { ISpinnerProps } from '@zendeskgarden/react-loaders';
2
+ export interface SpinnerArgs extends ISpinnerProps {
3
+ /**
4
+ * Sets the height and width in pixels. Inherits the parent's font size by default.
5
+ **/
6
+ size?: string;
7
+ /**
8
+ * Sets the length of the animation cycle in milliseconds
9
+ **/
10
+ duration?: number;
11
+ /**
12
+ * Sets the fill color. Inherits the parent's `color` by default.
13
+ **/
14
+ color?: string;
15
+ /**
16
+ * Delays displaying the loader to prevent a render flash during normal loading times
17
+ **/
18
+ delayMS?: number;
19
+ }
@@ -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,9 +1,9 @@
1
1
  declare const theme: {
2
2
  colors: {
3
3
  primaryHue: string;
4
- foreground: string;
5
4
  base: "light" | "dark";
6
5
  background: string;
6
+ foreground: string;
7
7
  dangerHue: string;
8
8
  warningHue: string;
9
9
  successHue: string;
@@ -0,0 +1,5 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface TitleArgs extends HTMLAttributes<HTMLDivElement> {
3
+ /** Applies regular (non-bold) font weight */
4
+ isRegular?: boolean;
5
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { TitleArgs } from "./_types";
3
+ /**
4
+ * Title is a basic component used to display a title. Often used in card headers.
5
+ */
6
+ declare const Title: (props: TitleArgs) => JSX.Element;
7
+ export { Title };
@@ -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,5 @@
1
+ import { IBlockquoteProps } from "@zendeskgarden/react-typography";
2
+ export interface BlockquoteArgs extends IBlockquoteProps {
3
+ /** Controls the spacing between sibling blockquotes */
4
+ size?: 'small' | 'medium' | 'large';
5
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { BlockquoteArgs } from "./_types";
3
+ /**
4
+ * Use Blockquote to represent a body of text that is from another source.
5
+ */
6
+ declare const Blockquote: (props: BlockquoteArgs) => JSX.Element;
7
+ export { Blockquote };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ export declare const Default: Story<any>;
4
+ declare const _default: ComponentMeta<(props: import("./_types").BlockquoteArgs) => JSX.Element>;
5
+ 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,7 @@
1
+ /// <reference types="react" />
2
+ import { CodeArgs } from "./_types";
3
+ /**
4
+ * Use Code to style and format inline fragments of computer code.
5
+ */
6
+ declare const Code: (props: CodeArgs) => JSX.Element;
7
+ export { Code };
@@ -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,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ export declare const Default: Story<any>;
4
+ declare const _default: ComponentMeta<(props: import("./_types").EllipsisArgs) => JSX.Element>;
5
+ export default _default;
@@ -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,5 @@
1
+ import { IParagraphProps } from "@zendeskgarden/react-typography";
2
+ export interface ParagraphArgs extends IParagraphProps {
3
+ /** Controls the spacing between sibling paragraphs */
4
+ size?: "small" | "medium" | "large";
5
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ParagraphArgs } from "./_types";
3
+ /**
4
+ * Use Paragraph to render blocks of text with Garden styling.
5
+ */
6
+ declare const Paragraph: (props: ParagraphArgs) => JSX.Element;
7
+ export { Paragraph };
@@ -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,5 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ export declare const Default: Story<any>;
4
+ declare const _default: ComponentMeta<(props: import("./_types").MDArgs) => JSX.Element>;
5
+ export default _default;
@@ -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,29 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "0.3.5",
3
+ "version": "2.2.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-theming": "^8.48.2"
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-pagination": "^8.49.0",
15
+ "@zendeskgarden/react-tables": "^8.49.0",
16
+ "@zendeskgarden/react-tags": "^8.49.0",
17
+ "@zendeskgarden/react-tooltips": "^8.49.0",
18
+ "@zendeskgarden/react-typography": "^8.49.0",
19
+ "@zendeskgarden/svg-icons": "^6.31.1",
20
+ "react-window": "^1.8.6"
8
21
  },
9
22
  "scripts": {
10
23
  "start": "react-scripts start",
11
24
  "build": "yarn run clean && rollup -c",
12
- "build-storybook": "build-storybook -s public",
13
- "storybook": "start-storybook -p 6006 -s public",
25
+ "build-storybook": "build-storybook",
26
+ "storybook": "start-storybook -p 6006",
14
27
  "clean": "rimraf build",
15
28
  "release": "npx auto shipit --base-branch=master",
16
29
  "test": "react-scripts test"
@@ -44,20 +57,20 @@
44
57
  ]
45
58
  },
46
59
  "peerDependencies": {
60
+ "@zendeskgarden/react-theming": "^8.48.2",
61
+ "formik": "^2.2.9",
47
62
  "react": "^17.0.2",
48
63
  "react-dom": "^17.0.2",
49
64
  "styled-components": "^5.3.3"
50
65
  },
51
66
  "devDependencies": {
67
+ "@babel/core": "^7.17.5",
52
68
  "@rollup/plugin-image": "^2.1.1",
53
69
  "@storybook/addon-actions": "^6.4.19",
54
70
  "@storybook/addon-essentials": "^6.4.19",
55
71
  "@storybook/addon-interactions": "^6.4.19",
56
72
  "@storybook/addon-links": "^6.4.19",
57
- "@storybook/builder-webpack5": "^6.4.19",
58
- "@storybook/manager-webpack5": "^6.4.19",
59
- "@storybook/node-logger": "^6.4.19",
60
- "@storybook/preset-create-react-app": "^4.0.1",
73
+ "@storybook/preset-create-react-app": "^3.1.7",
61
74
  "@storybook/react": "^6.4.19",
62
75
  "@storybook/testing-library": "^0.0.9",
63
76
  "@svgr/rollup": "^6.2.1",
@@ -68,18 +81,24 @@
68
81
  "@types/node": "^16.11.26",
69
82
  "@types/react": "^17.0.39",
70
83
  "@types/react-dom": "^17.0.11",
84
+ "@types/react-window": "^1.8.5",
71
85
  "@types/styled-components": "^5.1.23",
86
+ "@zendeskgarden/react-theming": "^8.48.2",
72
87
  "auto": "^10.32.6",
88
+ "babel-loader": "^8.2.3",
89
+ "commitizen": "^4.2.4",
90
+ "cz-conventional-changelog": "3.3.0",
91
+ "formik": "^2.2.9",
73
92
  "react": "^17.0.2",
74
93
  "react-dom": "^17.0.2",
75
- "react-scripts": "5.0.0",
94
+ "react-scripts": "4.0.3",
76
95
  "rimraf": "^3.0.2",
77
96
  "rollup": "^2.68.0",
78
97
  "rollup-plugin-typescript2": "^0.31.2",
98
+ "storybook-addon-designs": "^6.2.1",
79
99
  "styled-components": "^5.3.3",
80
- "typescript": "^4.6.2",
81
- "web-vitals": "^2.1.4",
82
- "webpack": "^5.69.1"
100
+ "typescript": "^4.5.0",
101
+ "web-vitals": "^2.1.4"
83
102
  },
84
103
  "description": "Unguess design system",
85
104
  "author": "Luca Cannarozzo (@cannarocks)",
@@ -89,5 +108,10 @@
89
108
  "type": "git",
90
109
  "url": "git+https://github.com/AppQuality/unguess-design-system.git"
91
110
  },
92
- "license": "ISC"
111
+ "license": "ISC",
112
+ "config": {
113
+ "commitizen": {
114
+ "path": "./node_modules/cz-conventional-changelog"
115
+ }
116
+ }
93
117
  }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IButtonProps } from '@zendeskgarden/react-buttons';
3
- export declare const Button: (props: IButtonProps) => JSX.Element;
@@ -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
- };