@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.
- package/CHANGELOG.md +31 -0
- package/build/index.d.ts +4 -1
- package/build/index.js +327 -183
- package/build/stories/{campaignCards → campaign-cards}/_types.d.ts +1 -0
- package/build/stories/campaign-cards/index.d.ts +9 -0
- package/build/stories/{campaignCards → campaign-cards}/index.stories.d.ts +0 -0
- package/build/stories/campaign-cards/skeleton.d.ts +2 -0
- package/build/stories/drawer/_types.d.ts +30 -0
- package/build/stories/drawer/index.d.ts +11 -0
- package/build/stories/drawer/index.stories.d.ts +13 -0
- package/build/stories/drawer/loremIpsum.d.ts +2 -0
- package/build/stories/drawers/_types.d.ts +30 -0
- package/build/stories/drawers/index.d.ts +11 -0
- package/build/stories/drawers/index.stories.d.ts +13 -0
- package/build/stories/drawers/loremIpsum.d.ts +2 -0
- package/build/stories/navigation/app-header/_types.d.ts +1 -0
- package/build/stories/navigation/app-header/index.d.ts +1 -1
- package/build/stories/navigation/app-header/index.stories.d.ts +1 -1
- package/build/stories/navigation/app-header/skeleton.d.ts +2 -0
- package/build/stories/navigation/header/header-item/brandItem.d.ts +1 -0
- package/build/stories/navigation/sidebar/_types.d.ts +1 -0
- package/build/stories/navigation/sidebar/skeleton.d.ts +2 -0
- package/build/stories/page/index.d.ts +1 -0
- package/build/stories/page/pageLoader.d.ts +2 -0
- package/build/stories/product-cards/_types.d.ts +36 -0
- package/build/stories/product-cards/index.d.ts +4 -0
- package/build/stories/product-cards/index.stories.d.ts +7 -0
- package/build/stories/theme/components.d.ts +4 -0
- package/build/stories/theme/index.d.ts +15 -12
- package/package.json +1 -1
- package/build/stories/campaignCards/index.d.ts +0 -4
|
@@ -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 };
|
|
File without changes
|
|
@@ -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,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;
|
|
@@ -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;
|
|
@@ -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 };
|
|
@@ -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,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,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;
|
|
@@ -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
|
-
|
|
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