@appquality/unguess-design-system 2.5.7 → 2.6.2
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 +42 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +638 -117
- package/build/stories/campaignCards/_types.d.ts +39 -0
- package/build/stories/campaignCards/index.d.ts +4 -0
- package/build/stories/campaignCards/index.stories.d.ts +7 -0
- package/build/stories/forms/field/index.d.ts +2 -1
- package/build/stories/login-form/_types.d.ts +6 -0
- package/build/stories/logo/index.d.ts +1 -1
- package/build/stories/theme/index.d.ts +11 -9
- package/build/stories/theme/utils.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CardProps } from "../cards/_types";
|
|
2
|
+
export interface CampaignCardsProps extends CardProps {
|
|
3
|
+
/**
|
|
4
|
+
* displays a new tag in the top right
|
|
5
|
+
*/
|
|
6
|
+
isNew?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* displays the date, if is the current day, the word "Today" will be shown instead
|
|
9
|
+
* use this format DD/MM/YYYY
|
|
10
|
+
*/
|
|
11
|
+
date: string;
|
|
12
|
+
/**
|
|
13
|
+
* the main topic of the card
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* a specification to the topic of the card
|
|
18
|
+
*/
|
|
19
|
+
subTitle: string;
|
|
20
|
+
/**
|
|
21
|
+
* the status of the card,
|
|
22
|
+
* can be only
|
|
23
|
+
* "COMPLETED" or "PROGRESS" or "INCOMING"
|
|
24
|
+
* default is "INCOMING"
|
|
25
|
+
*/
|
|
26
|
+
status?: 'COMPLETED' | 'PROGRESS' | 'INCOMING';
|
|
27
|
+
/**
|
|
28
|
+
* this renders the pill of the card,
|
|
29
|
+
* can be only
|
|
30
|
+
* "FUNCTIONAL" or "EXPERIENTIAL"
|
|
31
|
+
* if nothing of that is chosen the pill will not be shown
|
|
32
|
+
*/
|
|
33
|
+
type?: 'FUNCTIONAL' | 'EXPERIENTIAL';
|
|
34
|
+
/**
|
|
35
|
+
* this renders the pill text
|
|
36
|
+
* if the value is not defined the pill text will not be shown
|
|
37
|
+
*/
|
|
38
|
+
pillText?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CampaignCardsProps } from "./_types";
|
|
3
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
4
|
+
export declare const SingleCard: Story<CampaignCardsProps>;
|
|
5
|
+
export declare const Grid: Story<CampaignCardsProps>;
|
|
6
|
+
declare const _default: ComponentMeta<(props: CampaignCardsProps) => JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { Hint as ZendeskHint } from "@zendeskgarden/react-forms";
|
|
2
3
|
import { FieldArgs } from "./_types";
|
|
3
4
|
/**
|
|
4
5
|
* A Field is a wrapper for input elements
|
|
5
6
|
**/
|
|
6
7
|
declare const Field: (props: FieldArgs) => JSX.Element;
|
|
7
|
-
export { Field };
|
|
8
|
+
export { Field, ZendeskHint as Hint };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FormikTouched, FormikErrors, FormikValues } from "formik";
|
|
2
|
+
import { CardProps } from "../cards/_types";
|
|
2
3
|
export interface LoginFormArgs {
|
|
3
4
|
/**
|
|
4
5
|
* Handles accordion expansion changes
|
|
@@ -16,6 +17,11 @@ export interface LoginFormArgs {
|
|
|
16
17
|
buttonText: string;
|
|
17
18
|
placeholderEmail: string;
|
|
18
19
|
placeholderPassword: string;
|
|
20
|
+
card?: CardProps;
|
|
21
|
+
onBackClick?: () => void;
|
|
22
|
+
passwordForgotLabel?: string;
|
|
23
|
+
passwordForgotLink?: string;
|
|
24
|
+
backToLabel?: string;
|
|
19
25
|
}
|
|
20
26
|
export interface LoginFields {
|
|
21
27
|
email: string;
|
|
@@ -148,19 +148,26 @@ declare const theme: {
|
|
|
148
148
|
horizontal: string;
|
|
149
149
|
dark: string;
|
|
150
150
|
};
|
|
151
|
+
borderRadii: {
|
|
152
|
+
lg: string;
|
|
153
|
+
sm: string;
|
|
154
|
+
md: string;
|
|
155
|
+
};
|
|
151
156
|
components: {
|
|
152
157
|
Headers: any;
|
|
153
158
|
};
|
|
159
|
+
shadows: {
|
|
160
|
+
boxShadow: (theme: import("@zendeskgarden/react-theming").IGardenTheme) => string;
|
|
161
|
+
sm: (color: string) => string;
|
|
162
|
+
md: (color: string) => string;
|
|
163
|
+
lg: (offsetY: string, blurRadius: string, color: string) => string;
|
|
164
|
+
};
|
|
154
165
|
rtl: boolean;
|
|
155
166
|
document?: any;
|
|
156
167
|
borders: {
|
|
157
168
|
sm: string;
|
|
158
169
|
md: string;
|
|
159
170
|
};
|
|
160
|
-
borderRadii: {
|
|
161
|
-
sm: string;
|
|
162
|
-
md: string;
|
|
163
|
-
};
|
|
164
171
|
borderStyles: {
|
|
165
172
|
solid: string;
|
|
166
173
|
};
|
|
@@ -223,11 +230,6 @@ declare const theme: {
|
|
|
223
230
|
sm: string;
|
|
224
231
|
md: string;
|
|
225
232
|
};
|
|
226
|
-
shadows: {
|
|
227
|
-
sm: (color: string) => string;
|
|
228
|
-
md: (color: string) => string;
|
|
229
|
-
lg: (offsetY: string, blurRadius: string, color: string) => string;
|
|
230
|
-
};
|
|
231
233
|
space: {
|
|
232
234
|
base: number;
|
|
233
235
|
xxs: string;
|