@appquality/unguess-design-system 2.3.0 → 2.4.1
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 +24 -0
- package/build/index.d.ts +31 -1
- package/build/index.js +486 -19
- package/build/stories/accordions/index.stories.d.ts +1 -0
- package/build/stories/avatar/index.d.ts +1 -1
- package/build/stories/dropdowns/field/_types.d.ts +2 -0
- package/build/stories/dropdowns/field/index.d.ts +4 -0
- package/build/stories/dropdowns/item/_types.d.ts +9 -0
- package/build/stories/dropdowns/item/index.d.ts +4 -0
- package/build/stories/dropdowns/menu/_types.d.ts +31 -0
- package/build/stories/dropdowns/menu/index.d.ts +7 -0
- package/build/stories/dropdowns/multiselect/_types.d.ts +17 -0
- package/build/stories/dropdowns/multiselect/index.d.ts +11 -0
- package/build/stories/dropdowns/multiselect/index.stories.d.ts +21 -0
- package/build/stories/dropdowns/select/_types.d.ts +5 -1
- package/build/stories/dropdowns/select/index.d.ts +16 -0
- package/build/stories/dropdowns/select/index.stories.d.ts +20 -0
- package/build/stories/{field → forms/field}/_types.d.ts +0 -0
- package/build/stories/{field → forms/field}/index.d.ts +0 -0
- package/build/stories/{field → forms/field}/index.stories.d.ts +0 -0
- package/build/stories/forms/radio/_types.d.ts +3 -0
- package/build/stories/forms/radio/index.d.ts +14 -0
- package/build/stories/forms/radio/index.stories.d.ts +7 -0
- package/build/stories/forms/textarea/_types.d.ts +15 -0
- package/build/stories/forms/textarea/index.d.ts +10 -0
- package/build/stories/forms/textarea/index.stories.d.ts +8 -0
- package/build/stories/forms/toggle/_types.d.ts +3 -0
- package/build/stories/forms/toggle/index.d.ts +13 -0
- package/build/stories/forms/toggle/index.stories.d.ts +10 -0
- package/build/stories/login-form/_types.d.ts +23 -0
- package/build/stories/login-form/index.d.ts +10 -0
- package/build/stories/login-form/index.stories.d.ts +7 -0
- package/build/stories/logo/_types.d.ts +14 -0
- package/build/stories/logo/index.d.ts +27 -0
- package/build/stories/logo/index.stories.d.ts +19 -0
- package/build/stories/pagination/_types.d.ts +34 -0
- package/build/stories/pagination/index.d.ts +17 -0
- package/build/stories/pagination/index.stories.d.ts +7 -0
- package/build/stories/table/_types.d.ts +54 -0
- package/build/stories/table/index.d.ts +21 -0
- package/build/stories/table/index.stories.d.ts +32 -0
- package/build/stories/tags/_types.d.ts +17 -0
- package/build/stories/tags/index.d.ts +22 -0
- package/build/stories/tags/index.stories.d.ts +19 -0
- package/build/stories/theme/gradients.d.ts +4 -0
- package/build/stories/theme/index.d.ts +155 -11
- package/build/stories/theme/palette.d.ts +141 -0
- package/build/stories/theme/palette.stories.d.ts +15 -0
- package/build/stories/theme/utils.d.ts +1 -0
- package/build/stories/tiles/_types.d.ts +12 -0
- package/build/stories/tiles/index.d.ts +22 -0
- package/build/stories/tiles/index.stories.d.ts +25 -0
- package/build/stories/trigger/_types.d.ts +3 -0
- package/build/stories/trigger/index.d.ts +7 -0
- package/build/stories/typography/paragraph/{ordered.stories.d.ts → index.stories.d.ts} +0 -0
- package/build/stories/typography/span/_types.d.ts +13 -0
- package/build/stories/typography/span/index.d.ts +13 -0
- package/build/stories/typography/span/index.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,19 +1,153 @@
|
|
|
1
1
|
declare const theme: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
palette: {
|
|
3
|
+
black: string;
|
|
4
|
+
white: string;
|
|
5
|
+
product: {
|
|
6
|
+
support: string;
|
|
7
|
+
message: string;
|
|
8
|
+
explore: string;
|
|
9
|
+
gather: string;
|
|
10
|
+
guide: string;
|
|
11
|
+
connect: string;
|
|
12
|
+
chat: string;
|
|
13
|
+
talk: string;
|
|
14
|
+
sell: string;
|
|
15
|
+
};
|
|
16
|
+
grey: {
|
|
17
|
+
"100": string;
|
|
18
|
+
"200": string;
|
|
19
|
+
"300": string;
|
|
20
|
+
"400": string;
|
|
21
|
+
"500": string;
|
|
22
|
+
"600": string;
|
|
23
|
+
"700": string;
|
|
24
|
+
"800": string;
|
|
25
|
+
};
|
|
26
|
+
blue: {
|
|
27
|
+
"100": string;
|
|
28
|
+
"200": string;
|
|
29
|
+
"300": string;
|
|
30
|
+
"400": string;
|
|
31
|
+
"500": string;
|
|
32
|
+
"600": string;
|
|
33
|
+
"700": string;
|
|
34
|
+
"800": string;
|
|
35
|
+
};
|
|
36
|
+
red: {
|
|
37
|
+
"100": string;
|
|
38
|
+
"200": string;
|
|
39
|
+
"300": string;
|
|
40
|
+
"400": string;
|
|
41
|
+
"500": string;
|
|
42
|
+
"600": string;
|
|
43
|
+
"700": string;
|
|
44
|
+
"800": string;
|
|
45
|
+
};
|
|
46
|
+
yellow: {
|
|
47
|
+
"100": string;
|
|
48
|
+
"200": string;
|
|
49
|
+
"300": string;
|
|
50
|
+
"400": string;
|
|
51
|
+
"500": string;
|
|
52
|
+
"600": string;
|
|
53
|
+
"700": string;
|
|
54
|
+
"800": string;
|
|
55
|
+
};
|
|
56
|
+
green: {
|
|
57
|
+
"100": string;
|
|
58
|
+
"200": string;
|
|
59
|
+
"300": string;
|
|
60
|
+
"400": string;
|
|
61
|
+
"500": string;
|
|
62
|
+
"600": string;
|
|
63
|
+
"700": string;
|
|
64
|
+
"800": string;
|
|
65
|
+
};
|
|
66
|
+
kale: {
|
|
67
|
+
"100": string;
|
|
68
|
+
"200": string;
|
|
69
|
+
"300": string;
|
|
70
|
+
"400": string;
|
|
71
|
+
"500": string;
|
|
72
|
+
"600": string;
|
|
73
|
+
"700": string;
|
|
74
|
+
"800": string;
|
|
75
|
+
};
|
|
76
|
+
fuschia: {
|
|
77
|
+
"400": string;
|
|
78
|
+
"600": string;
|
|
79
|
+
M400: string;
|
|
80
|
+
M600: string;
|
|
81
|
+
};
|
|
82
|
+
pink: {
|
|
83
|
+
"400": string;
|
|
84
|
+
"600": string;
|
|
85
|
+
M400: string;
|
|
86
|
+
M600: string;
|
|
87
|
+
};
|
|
88
|
+
crimson: {
|
|
89
|
+
"400": string;
|
|
90
|
+
"600": string;
|
|
91
|
+
M400: string;
|
|
92
|
+
M600: string;
|
|
93
|
+
};
|
|
94
|
+
orange: {
|
|
95
|
+
"400": string;
|
|
96
|
+
"600": string;
|
|
97
|
+
M400: string;
|
|
98
|
+
M600: string;
|
|
99
|
+
};
|
|
100
|
+
lemon: {
|
|
101
|
+
"400": string;
|
|
102
|
+
"600": string;
|
|
103
|
+
M400: string;
|
|
104
|
+
M600: string;
|
|
105
|
+
};
|
|
106
|
+
lime: {
|
|
107
|
+
"400": string;
|
|
108
|
+
"600": string;
|
|
109
|
+
M400: string;
|
|
110
|
+
M600: string;
|
|
111
|
+
};
|
|
112
|
+
mint: {
|
|
113
|
+
"400": string;
|
|
114
|
+
"600": string;
|
|
115
|
+
M400: string;
|
|
116
|
+
M600: string;
|
|
117
|
+
};
|
|
118
|
+
teal: {
|
|
119
|
+
"400": string;
|
|
120
|
+
"600": string;
|
|
121
|
+
M400: string;
|
|
122
|
+
M600: string;
|
|
123
|
+
};
|
|
124
|
+
azure: {
|
|
125
|
+
"400": string;
|
|
126
|
+
"600": string;
|
|
127
|
+
M400: string;
|
|
128
|
+
M600: string;
|
|
129
|
+
};
|
|
130
|
+
royal: {
|
|
131
|
+
"400": string;
|
|
132
|
+
"600": string;
|
|
133
|
+
M400: string;
|
|
134
|
+
M600: string;
|
|
135
|
+
};
|
|
136
|
+
purple: {
|
|
137
|
+
"400": string;
|
|
138
|
+
"600": string;
|
|
139
|
+
M400: string;
|
|
140
|
+
M600: string;
|
|
141
|
+
};
|
|
12
142
|
};
|
|
13
143
|
fonts: {
|
|
14
144
|
system: string;
|
|
15
145
|
mono: string;
|
|
16
146
|
};
|
|
147
|
+
gradients: {
|
|
148
|
+
horizontal: string;
|
|
149
|
+
dark: string;
|
|
150
|
+
};
|
|
17
151
|
rtl: boolean;
|
|
18
152
|
document?: any;
|
|
19
153
|
borders: {
|
|
@@ -38,6 +172,17 @@ declare const theme: {
|
|
|
38
172
|
lg: string;
|
|
39
173
|
xl: string;
|
|
40
174
|
};
|
|
175
|
+
colors: {
|
|
176
|
+
base: "light" | "dark";
|
|
177
|
+
background: string;
|
|
178
|
+
foreground: string;
|
|
179
|
+
primaryHue: string;
|
|
180
|
+
dangerHue: string;
|
|
181
|
+
warningHue: string;
|
|
182
|
+
successHue: string;
|
|
183
|
+
neutralHue: string;
|
|
184
|
+
chromeHue: string;
|
|
185
|
+
};
|
|
41
186
|
components: Record<string, any>;
|
|
42
187
|
fontSizes: {
|
|
43
188
|
xs: string;
|
|
@@ -91,6 +236,5 @@ declare const theme: {
|
|
|
91
236
|
xl: string;
|
|
92
237
|
xxl: string;
|
|
93
238
|
};
|
|
94
|
-
palette: Record<string, string | Record<string | number, string>>;
|
|
95
239
|
};
|
|
96
240
|
export { theme };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
export declare const palette: {
|
|
2
|
+
black: string;
|
|
3
|
+
white: string;
|
|
4
|
+
product: {
|
|
5
|
+
support: string;
|
|
6
|
+
message: string;
|
|
7
|
+
explore: string;
|
|
8
|
+
gather: string;
|
|
9
|
+
guide: string;
|
|
10
|
+
connect: string;
|
|
11
|
+
chat: string;
|
|
12
|
+
talk: string;
|
|
13
|
+
sell: string;
|
|
14
|
+
};
|
|
15
|
+
grey: {
|
|
16
|
+
"100": string;
|
|
17
|
+
"200": string;
|
|
18
|
+
"300": string;
|
|
19
|
+
"400": string;
|
|
20
|
+
"500": string;
|
|
21
|
+
"600": string;
|
|
22
|
+
"700": string;
|
|
23
|
+
"800": string;
|
|
24
|
+
};
|
|
25
|
+
blue: {
|
|
26
|
+
"100": string;
|
|
27
|
+
"200": string;
|
|
28
|
+
"300": string;
|
|
29
|
+
"400": string;
|
|
30
|
+
"500": string;
|
|
31
|
+
"600": string;
|
|
32
|
+
"700": string;
|
|
33
|
+
"800": string;
|
|
34
|
+
};
|
|
35
|
+
red: {
|
|
36
|
+
"100": string;
|
|
37
|
+
"200": string;
|
|
38
|
+
"300": string;
|
|
39
|
+
"400": string;
|
|
40
|
+
"500": string;
|
|
41
|
+
"600": string;
|
|
42
|
+
"700": string;
|
|
43
|
+
"800": string;
|
|
44
|
+
};
|
|
45
|
+
yellow: {
|
|
46
|
+
"100": string;
|
|
47
|
+
"200": string;
|
|
48
|
+
"300": string;
|
|
49
|
+
"400": string;
|
|
50
|
+
"500": string;
|
|
51
|
+
"600": string;
|
|
52
|
+
"700": string;
|
|
53
|
+
"800": string;
|
|
54
|
+
};
|
|
55
|
+
green: {
|
|
56
|
+
"100": string;
|
|
57
|
+
"200": string;
|
|
58
|
+
"300": string;
|
|
59
|
+
"400": string;
|
|
60
|
+
"500": string;
|
|
61
|
+
"600": string;
|
|
62
|
+
"700": string;
|
|
63
|
+
"800": string;
|
|
64
|
+
};
|
|
65
|
+
kale: {
|
|
66
|
+
"100": string;
|
|
67
|
+
"200": string;
|
|
68
|
+
"300": string;
|
|
69
|
+
"400": string;
|
|
70
|
+
"500": string;
|
|
71
|
+
"600": string;
|
|
72
|
+
"700": string;
|
|
73
|
+
"800": string;
|
|
74
|
+
};
|
|
75
|
+
fuschia: {
|
|
76
|
+
"400": string;
|
|
77
|
+
"600": string;
|
|
78
|
+
M400: string;
|
|
79
|
+
M600: string;
|
|
80
|
+
};
|
|
81
|
+
pink: {
|
|
82
|
+
"400": string;
|
|
83
|
+
"600": string;
|
|
84
|
+
M400: string;
|
|
85
|
+
M600: string;
|
|
86
|
+
};
|
|
87
|
+
crimson: {
|
|
88
|
+
"400": string;
|
|
89
|
+
"600": string;
|
|
90
|
+
M400: string;
|
|
91
|
+
M600: string;
|
|
92
|
+
};
|
|
93
|
+
orange: {
|
|
94
|
+
"400": string;
|
|
95
|
+
"600": string;
|
|
96
|
+
M400: string;
|
|
97
|
+
M600: string;
|
|
98
|
+
};
|
|
99
|
+
lemon: {
|
|
100
|
+
"400": string;
|
|
101
|
+
"600": string;
|
|
102
|
+
M400: string;
|
|
103
|
+
M600: string;
|
|
104
|
+
};
|
|
105
|
+
lime: {
|
|
106
|
+
"400": string;
|
|
107
|
+
"600": string;
|
|
108
|
+
M400: string;
|
|
109
|
+
M600: string;
|
|
110
|
+
};
|
|
111
|
+
mint: {
|
|
112
|
+
"400": string;
|
|
113
|
+
"600": string;
|
|
114
|
+
M400: string;
|
|
115
|
+
M600: string;
|
|
116
|
+
};
|
|
117
|
+
teal: {
|
|
118
|
+
"400": string;
|
|
119
|
+
"600": string;
|
|
120
|
+
M400: string;
|
|
121
|
+
M600: string;
|
|
122
|
+
};
|
|
123
|
+
azure: {
|
|
124
|
+
"400": string;
|
|
125
|
+
"600": string;
|
|
126
|
+
M400: string;
|
|
127
|
+
M600: string;
|
|
128
|
+
};
|
|
129
|
+
royal: {
|
|
130
|
+
"400": string;
|
|
131
|
+
"600": string;
|
|
132
|
+
M400: string;
|
|
133
|
+
M600: string;
|
|
134
|
+
};
|
|
135
|
+
purple: {
|
|
136
|
+
"400": string;
|
|
137
|
+
"600": string;
|
|
138
|
+
M400: string;
|
|
139
|
+
M600: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
3
|
+
interface Variant {
|
|
4
|
+
colorName: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}
|
|
7
|
+
interface PaletteProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
cards: Array<{
|
|
9
|
+
title: string;
|
|
10
|
+
colors: Array<Variant>;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export declare const Default: Story<PaletteProps>;
|
|
14
|
+
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-typography").IParagraphProps & import("react").RefAttributes<HTMLParagraphElement>>>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hex2rgba: (hex: string, alpha?: number) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChangeEventHandler } from "react";
|
|
2
|
+
import { ITilesProps } from "@zendeskgarden/react-forms";
|
|
3
|
+
export interface TilesArgs extends ITilesProps {
|
|
4
|
+
/** Sets the value of the selected radio button */
|
|
5
|
+
value?: string;
|
|
6
|
+
/** Handles radio selection */
|
|
7
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
8
|
+
/** Sets the name used to reference the value of the control */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Centers tile content */
|
|
11
|
+
isCentered?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TilesArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Tiles are Radio buttons styled with icons or images.
|
|
5
|
+
|
|
6
|
+
* Used for this:
|
|
7
|
+
- Like Radios, Tiles are for choices that can't occur at the same time
|
|
8
|
+
|
|
9
|
+
* Not for this:
|
|
10
|
+
- To choose more than one option at once, use a Checkbox instead
|
|
11
|
+
- To select from a long list of options, use a Select
|
|
12
|
+
- To define an action, use a Button instead
|
|
13
|
+
- For navigation, use an Anchor instead
|
|
14
|
+
*/
|
|
15
|
+
declare const Tiles: {
|
|
16
|
+
(props: TilesArgs): JSX.Element;
|
|
17
|
+
Description: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
Icon: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
19
|
+
Label: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
Tile: import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-forms").ITilesTileProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
21
|
+
};
|
|
22
|
+
export { Tiles };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { TilesArgs } from "./_types";
|
|
4
|
+
interface Tile {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: React.FC;
|
|
8
|
+
description: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface TilesStoryProps extends TilesArgs {
|
|
12
|
+
tiles: Array<Tile>;
|
|
13
|
+
hasDescription: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const Default: Story<TilesStoryProps>;
|
|
16
|
+
export declare const Description: Story<TilesStoryProps>;
|
|
17
|
+
export declare const Disabled: Story<TilesStoryProps>;
|
|
18
|
+
declare const _default: ComponentMeta<{
|
|
19
|
+
(props: TilesArgs): JSX.Element;
|
|
20
|
+
Description: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
Icon: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
22
|
+
Label: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
Tile: import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-forms").ITilesTileProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ISpanProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
export interface SpanArgs extends ISpanProps {
|
|
3
|
+
/** Applies bold font style. Font weight is inherited by default. */
|
|
4
|
+
isBold?: boolean;
|
|
5
|
+
/** Renders with monospace font */
|
|
6
|
+
isMonospace?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Applies a font color. Use
|
|
9
|
+
* [PALETTE](/components/palette#palette)
|
|
10
|
+
* colors when possible. Accepts all hex values.
|
|
11
|
+
*/
|
|
12
|
+
hue?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SpanArgs } from "./_types";
|
|
3
|
+
/**
|
|
4
|
+
* Use Span to style and format inline text elements.
|
|
5
|
+
* <hr>
|
|
6
|
+
* Used for this:
|
|
7
|
+
- To apply styles to short strings of text
|
|
8
|
+
- To include icons inline with text
|
|
9
|
+
* Not for this:
|
|
10
|
+
- To style an entire block of text, use Paragraph instead
|
|
11
|
+
*/
|
|
12
|
+
declare const Span: (props: SpanArgs) => JSX.Element;
|
|
13
|
+
export { Span };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentMeta, Story } from "@storybook/react";
|
|
3
|
+
import { SpanArgs } from "./_types";
|
|
4
|
+
export declare const Default: Story<SpanArgs>;
|
|
5
|
+
declare const _default: ComponentMeta<(props: SpanArgs) => JSX.Element>;
|
|
6
|
+
export default _default;
|