@appquality/unguess-design-system 2.8.26 → 2.8.28

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 (31) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/build/index.d.ts +4 -1
  3. package/build/index.js +327 -183
  4. package/build/stories/{campaignCards → campaign-cards}/_types.d.ts +1 -0
  5. package/build/stories/campaign-cards/index.d.ts +9 -0
  6. package/build/stories/{campaignCards → campaign-cards}/index.stories.d.ts +0 -0
  7. package/build/stories/campaign-cards/skeleton.d.ts +2 -0
  8. package/build/stories/drawer/_types.d.ts +30 -0
  9. package/build/stories/drawer/index.d.ts +11 -0
  10. package/build/stories/drawer/index.stories.d.ts +13 -0
  11. package/build/stories/drawer/loremIpsum.d.ts +2 -0
  12. package/build/stories/drawers/_types.d.ts +30 -0
  13. package/build/stories/drawers/index.d.ts +11 -0
  14. package/build/stories/drawers/index.stories.d.ts +13 -0
  15. package/build/stories/drawers/loremIpsum.d.ts +2 -0
  16. package/build/stories/navigation/app-header/_types.d.ts +1 -0
  17. package/build/stories/navigation/app-header/index.d.ts +1 -1
  18. package/build/stories/navigation/app-header/index.stories.d.ts +1 -1
  19. package/build/stories/navigation/app-header/skeleton.d.ts +2 -0
  20. package/build/stories/navigation/header/header-item/brandItem.d.ts +1 -0
  21. package/build/stories/navigation/sidebar/_types.d.ts +1 -0
  22. package/build/stories/navigation/sidebar/skeleton.d.ts +2 -0
  23. package/build/stories/page/index.d.ts +1 -0
  24. package/build/stories/page/pageLoader.d.ts +2 -0
  25. package/build/stories/product-cards/_types.d.ts +36 -0
  26. package/build/stories/product-cards/index.d.ts +4 -0
  27. package/build/stories/product-cards/index.stories.d.ts +7 -0
  28. package/build/stories/theme/components.d.ts +4 -0
  29. package/build/stories/theme/index.d.ts +15 -12
  30. package/package.json +1 -1
  31. package/build/stories/campaignCards/index.d.ts +0 -4
@@ -40,4 +40,5 @@ export interface CampaignCardsProps extends CardProps {
40
40
  * this renders the new flag label
41
41
  */
42
42
  labelNew?: string;
43
+ isLoading?: boolean;
43
44
  }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { CampaignCardsProps } from "./_types";
3
+ export declare const Wrapper: import("styled-components").StyledComponent<(props: import("../cards/_types").CardProps) => JSX.Element, any, {}, never>;
4
+ export declare const Divider: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const CardHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const CardBody: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const CardFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ declare const CampaignCard: (props: CampaignCardsProps) => JSX.Element;
9
+ export { CampaignCard };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CampaignCardSkeleton: () => JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { IDrawerModalProps } from "@zendeskgarden/react-modals";
2
+ import { KeyboardEvent, MouseEvent } from "react";
3
+ export interface DrawerArgs extends IDrawerModalProps {
4
+ /**
5
+ * Opens the modal
6
+ */
7
+ isOpen?: boolean;
8
+ /**
9
+ * Passes HTML attributes to the backdrop element
10
+ */
11
+ backdropProps?: any;
12
+ /**
13
+ * Handles close actions. Can be triggered from the backdrop and from the close icon.
14
+ *
15
+ * @param {Object} event The DOM event that triggered the close action
16
+ */
17
+ onClose?: (event: KeyboardEvent | MouseEvent) => void;
18
+ /**
19
+ * Defines the DOM element that the modal will attatch to
20
+ */
21
+ appendToNode?: Element;
22
+ /**
23
+ * Directs keyboard focus to the modal on mount
24
+ */
25
+ focusOnMount?: boolean;
26
+ /**
27
+ * Returns keyboard focus to the element that triggered the modal
28
+ */
29
+ restoreFocus?: boolean;
30
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { DrawerArgs } from "./_types";
3
+ declare const Drawer: {
4
+ (props: DrawerArgs): JSX.Element;
5
+ Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
6
+ Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
8
+ FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
9
+ Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
10
+ };
11
+ export { Drawer };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { DrawerArgs } from "./_types";
3
+ import { ComponentMeta, Story } from "@storybook/react";
4
+ export declare const Default: Story<DrawerArgs>;
5
+ declare const _default: ComponentMeta<{
6
+ (props: DrawerArgs): JSX.Element;
7
+ Header: 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
+ Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
10
+ FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
11
+ Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ }>;
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoremIpsum: () => JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { IDrawerModalProps } from "@zendeskgarden/react-modals";
2
+ import { KeyboardEvent, MouseEvent } from "react";
3
+ export interface DrawerArgs extends IDrawerModalProps {
4
+ /**
5
+ * Opens the modal
6
+ */
7
+ isOpen?: boolean;
8
+ /**
9
+ * Passes HTML attributes to the backdrop element
10
+ */
11
+ backdropProps?: any;
12
+ /**
13
+ * Handles close actions. Can be triggered from the backdrop and from the close icon.
14
+ *
15
+ * @param {Object} event The DOM event that triggered the close action
16
+ */
17
+ onClose?: (event: KeyboardEvent | MouseEvent) => void;
18
+ /**
19
+ * Defines the DOM element that the modal will attatch to
20
+ */
21
+ appendToNode?: Element;
22
+ /**
23
+ * Directs keyboard focus to the modal on mount
24
+ */
25
+ focusOnMount?: boolean;
26
+ /**
27
+ * Returns keyboard focus to the element that triggered the modal
28
+ */
29
+ restoreFocus?: boolean;
30
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { DrawerArgs } from "./_types";
3
+ declare const Drawer: {
4
+ (props: DrawerArgs): JSX.Element;
5
+ Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
6
+ Body: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
7
+ Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
8
+ FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
9
+ Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
10
+ };
11
+ export { Drawer };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { DrawerArgs } from "./_types";
3
+ import { ComponentMeta, Story } from "@storybook/react";
4
+ export declare const Default: Story<DrawerArgs>;
5
+ declare const _default: ComponentMeta<{
6
+ (props: DrawerArgs): JSX.Element;
7
+ Header: 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
+ Footer: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
10
+ FooterItem: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
11
+ Close: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ }>;
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoremIpsum: () => JSX.Element;
@@ -19,4 +19,5 @@ export interface AppHeaderArgs extends HeaderArgs {
19
19
  onSidebarMenuToggle?: () => void;
20
20
  /** Callback when the Logo Item is clicked */
21
21
  onLogoItemClick?: () => void;
22
+ isLoading?: boolean;
22
23
  }
@@ -4,5 +4,5 @@ import { AppHeaderArgs } from "./_types";
4
4
  * An Header is a visual way to display general information.
5
5
  * This can include navList Items, modal, profile settings.
6
6
  */
7
- declare const AppHeader: ({ brand, avatar, ...args }: AppHeaderArgs) => JSX.Element;
7
+ declare const AppHeader: ({ brand, avatar, isLoading, ...args }: AppHeaderArgs) => JSX.Element;
8
8
  export { AppHeader };
@@ -2,5 +2,5 @@
2
2
  import { ComponentMeta, Story } from "@storybook/react";
3
3
  import { AppHeaderArgs } from "./_types";
4
4
  export declare const Default: Story<AppHeaderArgs>;
5
- declare const _default: ComponentMeta<({ brand, avatar, ...args }: AppHeaderArgs) => JSX.Element>;
5
+ declare const _default: ComponentMeta<({ brand, avatar, isLoading, ...args }: AppHeaderArgs) => JSX.Element>;
6
6
  export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const HeaderSkeleton: () => JSX.Element;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { BrandItemArgs } from "./_types";
3
+ export declare const LogoIconContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-chrome").IHeaderItemProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
3
4
  declare const BrandItem: (props: BrandItemArgs) => JSX.Element;
4
5
  export { BrandItem };
@@ -9,6 +9,7 @@ export interface SidebarArgs extends NavArgs {
9
9
  isExpanded?: boolean;
10
10
  onToggleMenu?: () => void;
11
11
  onNavToggle?: (route: string) => void;
12
+ isLoading?: boolean;
12
13
  }
13
14
  export interface ProjectItem {
14
15
  id: string;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LoadingSidebar: () => JSX.Element;
@@ -4,5 +4,6 @@ import { AppHeaderArgs } from "../navigation/app-header/_types";
4
4
  export interface PageTemplatesArgs {
5
5
  sidebar?: SidebarArgs;
6
6
  header?: AppHeaderArgs;
7
+ isLoading?: boolean;
7
8
  }
8
9
  export declare const PageTemplate: ({ sidebar, header, ...args }: PageTemplatesArgs) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const PageLoader: () => JSX.Element;
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from "../cards/_types";
3
+ export interface ProductCardProps extends CardProps {
4
+ /**
5
+ * displays a new tag in the top right
6
+ */
7
+ isNew?: boolean;
8
+ /**
9
+ * this renders the new flag label
10
+ */
11
+ labelNew?: string;
12
+ /**
13
+ * displays product icon
14
+ */
15
+ icon?: React.ReactElement;
16
+ /**
17
+ * Category, pre-header or any other useful information
18
+ */
19
+ preTitle?: string;
20
+ /**
21
+ * Card Title
22
+ */
23
+ productTitle: string;
24
+ /**
25
+ * Display the skeleton
26
+ */
27
+ isLoading?: boolean;
28
+ /**
29
+ * Text inside the cta button
30
+ */
31
+ ctaLabel: string;
32
+ /**
33
+ * On Cta click
34
+ */
35
+ onCtaClick: () => void;
36
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ProductCardProps } from "./_types";
3
+ declare const ProductCard: (props: ProductCardProps) => JSX.Element;
4
+ export { ProductCard };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ProductCardProps } from "./_types";
3
+ import { ComponentMeta, Story } from "@storybook/react";
4
+ export declare const SingleCard: Story<ProductCardProps>;
5
+ export declare const Grid: Story<ProductCardProps>;
6
+ declare const _default: ComponentMeta<(props: ProductCardProps) => JSX.Element>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const components: {
2
+ chrome: any;
3
+ notification: any;
4
+ };
@@ -1,4 +1,15 @@
1
1
  declare const theme: {
2
+ colors: {
3
+ primaryHue: string;
4
+ base: "light" | "dark";
5
+ background: string;
6
+ foreground: string;
7
+ dangerHue: string;
8
+ warningHue: string;
9
+ successHue: string;
10
+ neutralHue: string;
11
+ chromeHue: string;
12
+ };
2
13
  palette: {
3
14
  black: string;
4
15
  white: string;
@@ -150,11 +161,14 @@ declare const theme: {
150
161
  };
151
162
  borderRadii: {
152
163
  lg: string;
164
+ xl: string;
165
+ xxl: string;
153
166
  sm: string;
154
167
  md: string;
155
168
  };
156
169
  components: {
157
- Headers: any;
170
+ chrome: any;
171
+ notification: any;
158
172
  };
159
173
  shadows: {
160
174
  boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
@@ -182,17 +196,6 @@ declare const theme: {
182
196
  lg: string;
183
197
  xl: string;
184
198
  };
185
- colors: {
186
- base: "light" | "dark";
187
- background: string;
188
- foreground: string;
189
- primaryHue: string;
190
- dangerHue: string;
191
- warningHue: string;
192
- successHue: string;
193
- neutralHue: string;
194
- chromeHue: string;
195
- };
196
199
  fontSizes: {
197
200
  xs: string;
198
201
  sm: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appquality/unguess-design-system",
3
- "version": "2.8.26",
3
+ "version": "2.8.28",
4
4
  "dependencies": {
5
5
  "@zendeskgarden/react-accordions": "^8.49.0",
6
6
  "@zendeskgarden/react-avatars": "^8.49.0",
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { CampaignCardsProps } from "./_types";
3
- declare const CampaignCard: (props: CampaignCardsProps) => JSX.Element;
4
- export { CampaignCard };