@jobber/design 0.27.9 → 0.28.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 (46) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/buildColors.js +15 -0
  3. package/buildFoundation.js +15 -0
  4. package/buildIconStyles.js +44 -0
  5. package/colors.js +138 -0
  6. package/foundation.css +33 -26
  7. package/foundation.js +7 -7
  8. package/foundation.scss +6 -6
  9. package/foundation_config/postcss-filter-rules/index.js +17 -0
  10. package/foundation_config/postcss.config.js +58 -0
  11. package/jobberStyle.js +244 -0
  12. package/npm-shrinkwrap.json +8594 -0
  13. package/package.json +18 -11
  14. package/rollup.config.js +41 -0
  15. package/src/Borders.mdx +65 -0
  16. package/src/Colors.mdx +295 -0
  17. package/src/Elevations.mdx +107 -0
  18. package/src/Radii.mdx +40 -0
  19. package/src/ResponsiveBreakpoints.mdx +48 -0
  20. package/src/Spacing.mdx +121 -0
  21. package/src/Typography.mdx +191 -0
  22. package/src/animation.mdx +82 -0
  23. package/src/borders.css +6 -0
  24. package/src/colors.css +178 -0
  25. package/src/elevations.css +12 -0
  26. package/src/foundation.css +11 -0
  27. package/src/icons/Colors.css +187 -0
  28. package/src/icons/Colors.css.d.ts +51 -0
  29. package/src/icons/Icon.css +102 -0
  30. package/src/icons/Icon.css.d.ts +37 -0
  31. package/src/icons/Sizes.css +14 -0
  32. package/src/icons/Sizes.css.d.ts +7 -0
  33. package/src/icons/getIcon.test.ts +73 -0
  34. package/src/icons/getIcon.ts +116 -0
  35. package/src/icons/iconMap.ts +430 -0
  36. package/src/icons/iconStyles.d.ts +262 -0
  37. package/src/icons/iconStyles.ts +269 -0
  38. package/src/index.ts +10 -0
  39. package/src/radii.css +6 -0
  40. package/src/responsiveBreakpoints.css +3 -0
  41. package/src/shadows.css +13 -0
  42. package/src/spacing.css +13 -0
  43. package/src/styles.css +9 -0
  44. package/src/timings.css +7 -0
  45. package/src/typography.css +53 -0
  46. package/tsconfig.json +70 -0
@@ -0,0 +1,262 @@
1
+ export declare const iconStyles: {
2
+ icon: {
3
+ fill: string;
4
+ display: string;
5
+ verticalAlign: string;
6
+ };
7
+ longArrowUp: {
8
+ transform: {
9
+ rotate: string;
10
+ }[];
11
+ };
12
+ longArrowDown: {
13
+ transform: {
14
+ rotate: string;
15
+ }[];
16
+ };
17
+ thumbsDown: {
18
+ transform: {
19
+ scaleY: number;
20
+ }[];
21
+ };
22
+ person: {
23
+ fill: string;
24
+ };
25
+ clients: {
26
+ fill: string;
27
+ };
28
+ company: {
29
+ fill: string;
30
+ };
31
+ property: {
32
+ fill: string;
33
+ };
34
+ job: {
35
+ fill: string;
36
+ };
37
+ jobOnHold: {
38
+ fill: string;
39
+ };
40
+ visit: {
41
+ fill: string;
42
+ };
43
+ moveVisits: {
44
+ fill: string;
45
+ };
46
+ event: {
47
+ fill: string;
48
+ };
49
+ quote: {
50
+ fill: string;
51
+ };
52
+ request: {
53
+ fill: string;
54
+ };
55
+ task: {
56
+ fill: string;
57
+ };
58
+ userUnassigned: {
59
+ fill: string;
60
+ };
61
+ reminder: {
62
+ fill: string;
63
+ };
64
+ trash: {
65
+ fill: string;
66
+ };
67
+ checkmark: {
68
+ fill: string;
69
+ };
70
+ timer: {
71
+ fill: string;
72
+ };
73
+ invoice: {
74
+ fill: string;
75
+ };
76
+ invoiceLater: {
77
+ fill: string;
78
+ };
79
+ sendInvoice: {
80
+ fill: string;
81
+ };
82
+ paidInvoice: {
83
+ fill: string;
84
+ };
85
+ badInvoice: {
86
+ fill: string;
87
+ };
88
+ payment: {
89
+ fill: string;
90
+ };
91
+ expense: {
92
+ fill: string;
93
+ };
94
+ archive: {
95
+ fill: string;
96
+ };
97
+ video: {
98
+ fill: string;
99
+ };
100
+ excel: {
101
+ fill: string;
102
+ };
103
+ pdf: {
104
+ fill: string;
105
+ };
106
+ word: {
107
+ fill: string;
108
+ };
109
+ small: {
110
+ width: number;
111
+ height: number;
112
+ };
113
+ base: {
114
+ width: number;
115
+ height: number;
116
+ };
117
+ large: {
118
+ width: number;
119
+ height: number;
120
+ };
121
+ white: {
122
+ fill: string;
123
+ };
124
+ grey: {
125
+ fill: string;
126
+ };
127
+ greyBlue: {
128
+ fill: string;
129
+ };
130
+ greyBlueDark: {
131
+ fill: string;
132
+ };
133
+ blue: {
134
+ fill: string;
135
+ };
136
+ lightBlue: {
137
+ fill: string;
138
+ };
139
+ green: {
140
+ fill: string;
141
+ };
142
+ yellow: {
143
+ fill: string;
144
+ };
145
+ red: {
146
+ fill: string;
147
+ };
148
+ navy: {
149
+ fill: string;
150
+ };
151
+ orange: {
152
+ fill: string;
153
+ };
154
+ interactive: {
155
+ fill: string;
156
+ };
157
+ interactiveHover: {
158
+ fill: string;
159
+ };
160
+ destructive: {
161
+ fill: string;
162
+ };
163
+ destructiveHover: {
164
+ fill: string;
165
+ };
166
+ interactiveSubtle: {
167
+ fill: string;
168
+ };
169
+ interactiveSubtleHover: {
170
+ fill: string;
171
+ };
172
+ disabled: {
173
+ fill: string;
174
+ };
175
+ disabledSecondary: {
176
+ fill: string;
177
+ };
178
+ focus: {
179
+ fill: string;
180
+ };
181
+ critical: {
182
+ fill: string;
183
+ };
184
+ criticalSurface: {
185
+ fill: string;
186
+ };
187
+ criticalOnSurface: {
188
+ fill: string;
189
+ };
190
+ warning: {
191
+ fill: string;
192
+ };
193
+ warningSurface: {
194
+ fill: string;
195
+ };
196
+ warningOnSurface: {
197
+ fill: string;
198
+ };
199
+ success: {
200
+ fill: string;
201
+ };
202
+ successSurface: {
203
+ fill: string;
204
+ };
205
+ successOnSurface: {
206
+ fill: string;
207
+ };
208
+ informative: {
209
+ fill: string;
210
+ };
211
+ informativeSurface: {
212
+ fill: string;
213
+ };
214
+ informativeOnSurface: {
215
+ fill: string;
216
+ };
217
+ inactive: {
218
+ fill: string;
219
+ };
220
+ inactiveSurface: {
221
+ fill: string;
222
+ };
223
+ inactiveOnSurface: {
224
+ fill: string;
225
+ };
226
+ heading: {
227
+ fill: string;
228
+ };
229
+ text: {
230
+ fill: string;
231
+ };
232
+ textSecondary: {
233
+ fill: string;
234
+ };
235
+ textReverse: {
236
+ fill: string;
237
+ };
238
+ textReverseSecondary: {
239
+ fill: string;
240
+ };
241
+ surface: {
242
+ fill: string;
243
+ };
244
+ surfaceHover: {
245
+ fill: string;
246
+ };
247
+ surfaceActive: {
248
+ fill: string;
249
+ };
250
+ surfaceBackground: {
251
+ fill: string;
252
+ };
253
+ surfaceReverse: {
254
+ fill: string;
255
+ };
256
+ brand: {
257
+ fill: string;
258
+ };
259
+ brandHighlight: {
260
+ fill: string;
261
+ };
262
+ };
@@ -0,0 +1,269 @@
1
+ /* This file is automatically generated by buildIconStyle.js and should not be edited. */
2
+ export const iconStyles = {
3
+ "icon": {
4
+ "fill": "rgba(101, 120, 132, 1)",
5
+ "display": "inline-block",
6
+ "verticalAlign": "middle"
7
+ },
8
+ "longArrowUp": {
9
+ "transform": [
10
+ {
11
+ "rotate": "90deg"
12
+ }
13
+ ]
14
+ },
15
+ "longArrowDown": {
16
+ "transform": [
17
+ {
18
+ "rotate": "-90deg"
19
+ }
20
+ ]
21
+ },
22
+ "thumbsDown": {
23
+ "transform": [
24
+ {
25
+ "scaleY": -1
26
+ }
27
+ ]
28
+ },
29
+ "person": {
30
+ "fill": "rgb(62, 173, 146)"
31
+ },
32
+ "clients": {
33
+ "fill": "rgb(62, 173, 146)"
34
+ },
35
+ "company": {
36
+ "fill": "rgb(62, 173, 146)"
37
+ },
38
+ "property": {
39
+ "fill": "rgb(62, 173, 146)"
40
+ },
41
+ "job": {
42
+ "fill": "rgb(187, 197, 32)"
43
+ },
44
+ "jobOnHold": {
45
+ "fill": "rgb(187, 197, 32)"
46
+ },
47
+ "visit": {
48
+ "fill": "rgb(153, 193, 70)"
49
+ },
50
+ "moveVisits": {
51
+ "fill": "rgb(153, 193, 70)"
52
+ },
53
+ "event": {
54
+ "fill": "rgb(221, 195, 15)"
55
+ },
56
+ "quote": {
57
+ "fill": "rgb(179, 96, 150)"
58
+ },
59
+ "request": {
60
+ "fill": "rgb(85, 106, 203)"
61
+ },
62
+ "task": {
63
+ "fill": "rgb(75, 106, 150)"
64
+ },
65
+ "userUnassigned": {
66
+ "fill": "rgb(201, 66, 33)"
67
+ },
68
+ "reminder": {
69
+ "fill": "rgb(201, 66, 33)"
70
+ },
71
+ "trash": {
72
+ "fill": "rgb(201, 66, 33)"
73
+ },
74
+ "checkmark": {
75
+ "fill": "rgb(125, 176, 14)"
76
+ },
77
+ "timer": {
78
+ "fill": "rgb(60, 162, 224)"
79
+ },
80
+ "invoice": {
81
+ "fill": "rgb(136, 112, 196)"
82
+ },
83
+ "invoiceLater": {
84
+ "fill": "rgb(136, 112, 196)"
85
+ },
86
+ "sendInvoice": {
87
+ "fill": "rgb(136, 112, 196)"
88
+ },
89
+ "paidInvoice": {
90
+ "fill": "rgb(136, 112, 196)"
91
+ },
92
+ "badInvoice": {
93
+ "fill": "rgb(201, 66, 33)"
94
+ },
95
+ "payment": {
96
+ "fill": "rgb(243, 150, 36)"
97
+ },
98
+ "expense": {
99
+ "fill": "rgb(243, 150, 36)"
100
+ },
101
+ "archive": {
102
+ "fill": "rgb(1, 41, 57)"
103
+ },
104
+ "video": {
105
+ "fill": "rgb(60, 162, 224)"
106
+ },
107
+ "excel": {
108
+ "fill": "rgb(31, 115, 71)"
109
+ },
110
+ "pdf": {
111
+ "fill": "rgb(195, 27, 0)"
112
+ },
113
+ "word": {
114
+ "fill": "rgb(41, 86, 154)"
115
+ },
116
+ "small": {
117
+ "width": 16,
118
+ "height": 16
119
+ },
120
+ "base": {
121
+ "width": 24,
122
+ "height": 24
123
+ },
124
+ "large": {
125
+ "width": 32,
126
+ "height": 32
127
+ },
128
+ "white": {
129
+ "fill": "rgba(255, 255, 255, 1)"
130
+ },
131
+ "grey": {
132
+ "fill": "rgb(181, 181, 181)"
133
+ },
134
+ "greyBlue": {
135
+ "fill": "rgba(101, 120, 132, 1)"
136
+ },
137
+ "greyBlueDark": {
138
+ "fill": "rgb(66, 78, 86)"
139
+ },
140
+ "blue": {
141
+ "fill": "rgb(1, 41, 57)"
142
+ },
143
+ "lightBlue": {
144
+ "fill": "rgb(60, 162, 224)"
145
+ },
146
+ "green": {
147
+ "fill": "rgb(125, 176, 14)"
148
+ },
149
+ "yellow": {
150
+ "fill": "rgb(221, 195, 15)"
151
+ },
152
+ "red": {
153
+ "fill": "rgb(201, 66, 33)"
154
+ },
155
+ "navy": {
156
+ "fill": "rgb(75, 106, 150)"
157
+ },
158
+ "orange": {
159
+ "fill": "rgb(243, 150, 36)"
160
+ },
161
+ "interactive": {
162
+ "fill": "rgb(125, 176, 14)"
163
+ },
164
+ "interactiveHover": {
165
+ "fill": "rgb(81, 114, 9)"
166
+ },
167
+ "destructive": {
168
+ "fill": "rgb(201, 66, 33)"
169
+ },
170
+ "destructiveHover": {
171
+ "fill": "rgb(128, 25, 0)"
172
+ },
173
+ "interactiveSubtle": {
174
+ "fill": "rgba(101, 120, 132, 1)"
175
+ },
176
+ "interactiveSubtleHover": {
177
+ "fill": "rgb(66, 78, 86)"
178
+ },
179
+ "disabled": {
180
+ "fill": "rgb(181, 181, 181)"
181
+ },
182
+ "disabledSecondary": {
183
+ "fill": "rgb(225, 225, 225)"
184
+ },
185
+ "focus": {
186
+ "fill": "rgb(231, 213, 87)"
187
+ },
188
+ "critical": {
189
+ "fill": "rgb(201, 66, 33)"
190
+ },
191
+ "criticalSurface": {
192
+ "fill": "rgb(255, 226, 219)"
193
+ },
194
+ "criticalOnSurface": {
195
+ "fill": "rgb(128, 25, 0)"
196
+ },
197
+ "warning": {
198
+ "fill": "rgb(221, 195, 15)"
199
+ },
200
+ "warningSurface": {
201
+ "fill": "rgb(250, 246, 219)"
202
+ },
203
+ "warningOnSurface": {
204
+ "fill": "rgb(144, 127, 10)"
205
+ },
206
+ "success": {
207
+ "fill": "rgb(125, 176, 14)"
208
+ },
209
+ "successSurface": {
210
+ "fill": "rgb(236, 243, 219)"
211
+ },
212
+ "successOnSurface": {
213
+ "fill": "rgb(81, 114, 9)"
214
+ },
215
+ "informative": {
216
+ "fill": "rgb(60, 162, 224)"
217
+ },
218
+ "informativeSurface": {
219
+ "fill": "rgb(226, 241, 250)"
220
+ },
221
+ "informativeOnSurface": {
222
+ "fill": "rgb(39, 105, 146)"
223
+ },
224
+ "inactive": {
225
+ "fill": "rgb(77, 105, 116)"
226
+ },
227
+ "inactiveSurface": {
228
+ "fill": "rgb(217, 223, 225)"
229
+ },
230
+ "inactiveOnSurface": {
231
+ "fill": "rgb(1, 27, 37)"
232
+ },
233
+ "heading": {
234
+ "fill": "rgb(1, 41, 57)"
235
+ },
236
+ "text": {
237
+ "fill": "rgb(66, 78, 86)"
238
+ },
239
+ "textSecondary": {
240
+ "fill": "rgba(101, 120, 132, 1)"
241
+ },
242
+ "textReverse": {
243
+ "fill": "rgba(255, 255, 255, 1)"
244
+ },
245
+ "textReverseSecondary": {
246
+ "fill": "rgb(193, 201, 206)"
247
+ },
248
+ "surface": {
249
+ "fill": "rgba(255, 255, 255, 1)"
250
+ },
251
+ "surfaceHover": {
252
+ "fill": "rgb(250, 246, 219)"
253
+ },
254
+ "surfaceActive": {
255
+ "fill": "rgb(236, 243, 219)"
256
+ },
257
+ "surfaceBackground": {
258
+ "fill": "rgb(244, 244, 244)"
259
+ },
260
+ "surfaceReverse": {
261
+ "fill": "rgb(1, 41, 57)"
262
+ },
263
+ "brand": {
264
+ "fill": "rgb(125, 176, 14)"
265
+ },
266
+ "brandHighlight": {
267
+ "fill": "rgb(160, 215, 42)"
268
+ }
269
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ export {
2
+ getIcon,
3
+ IconNames,
4
+ IconColorNames,
5
+ IconSizes,
6
+ iconClassMap,
7
+ sizesClassMap,
8
+ colorsClassMap,
9
+ } from "./icons/getIcon";
10
+ export { iconStyles } from "./icons/iconStyles";
package/src/radii.css ADDED
@@ -0,0 +1,6 @@
1
+ :root {
2
+ --radius-base: var(--space-smallest);
3
+ --radius-large: var(--space-smaller);
4
+ --radius-larger: var(--space-small);
5
+ --radius-circle: 100%;
6
+ }
@@ -0,0 +1,3 @@
1
+ @custom-media --handhelds (width < 640px);
2
+ @custom-media --medium-screens (width >= 640px);
3
+ @custom-media --wide-screens (width >= 1024px);
@@ -0,0 +1,13 @@
1
+ :root {
2
+ --shadow-low: 0px var(--space-minuscule) var(--space-smallest)
3
+ rgba(0, 0, 0, 0.25),
4
+ 0px 0px var(--space-smallest) rgba(0, 0, 0, 0.1);
5
+ --shadow-base: 0px var(--space-minuscule) var(--space-smaller) 0px
6
+ rgba(0, 0, 0, 0.1),
7
+ 0px var(--space-smaller) 12px 0px rgba(0, 0, 0, 0.05);
8
+ --shadow-high: 0px var(--space-base) var(--space-base) 0px
9
+ rgba(0, 0, 0, 0.075),
10
+ 0px 0px var(--space-small) 0px rgba(0, 0, 0, 0.05);
11
+ --shadow-focus: 0px 0px var(--space-smaller) var(--space-smallest)
12
+ var(--color-focus);
13
+ }
@@ -0,0 +1,13 @@
1
+ :root {
2
+ --base-unit: 16px;
3
+
4
+ --space-minuscule: calc(var(--base-unit) / 16);
5
+ --space-smallest: calc(var(--base-unit) / 8);
6
+ --space-smaller: calc(var(--base-unit) / 4);
7
+ --space-small: calc(var(--base-unit) / 2);
8
+ --space-base: calc(var(--base-unit) * 1);
9
+ --space-large: calc(var(--base-unit) * 1.5);
10
+ --space-larger: calc(var(--base-unit) * 2);
11
+ --space-largest: calc(var(--base-unit) * 3);
12
+ --space-extravagant: calc(var(--base-unit) * 4);
13
+ }
package/src/styles.css ADDED
@@ -0,0 +1,9 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@700;900&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
2
+
3
+ body {
4
+ color: var(--color-text);
5
+ font-family: var(--typography--fontFamily-normal);
6
+ font-size: var(--typography--fontSize-base);
7
+ line-height: var(--typography--lineHeight-larger, 1.5);
8
+ background-color: var(--color-surface);
9
+ }
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --timing-quick: 100ms;
3
+ --timing-base: 200ms;
4
+ --timing-slow: 300ms;
5
+ --timing-slower: 400ms;
6
+ --timing-slowest: 500ms;
7
+ }
@@ -0,0 +1,53 @@
1
+ :root {
2
+ --typography--letterSpacing-base: 0;
3
+ --typography--letterSpacing-loose: calc(var(--base-unit) / 40);
4
+
5
+ --typography--fontFamily-normal: "Inter", Helvetica, Arial, sans-serif;
6
+ --typography--fontFamily-display: "Jobber Pro", "Poppins", Helvetica, Arial,
7
+ sans-serif;
8
+
9
+ --typography--fontSize-extravagant: calc(
10
+ var(--typography--fontSize-large) * 3
11
+ );
12
+ /* 48 */
13
+ --typography--fontSize-jumbo: calc(var(--typography--fontSize-large) * 2.25);
14
+ /* 36 */
15
+ --typography--fontSize-largest: calc(var(--typography--fontSize-large) * 1.5);
16
+ /* 24 */
17
+ --typography--fontSize-larger: calc(var(--typography--fontSize-large) * 1.25);
18
+ /* 20 */
19
+ --typography--fontSize-large: calc(var(--base-unit) * 1);
20
+ /* 16 */
21
+ --typography--fontSize-base: calc(var(--typography--fontSize-large) * 0.875);
22
+ /* 14 */
23
+ --typography--fontSize-small: calc(var(--typography--fontSize-large) * 0.75);
24
+ /* 12 */
25
+ --typography--fontSize-smaller: calc(
26
+ var(--typography--fontSize-large) * 0.625
27
+ );
28
+ /* 10 */
29
+
30
+ --typography--lineHeight-large: 1.34;
31
+ --typography--lineHeight-base: 1.25;
32
+ --typography--lineHeight-tight: 1.2;
33
+ --typography--lineHeight-tighter: 1.143;
34
+ --typography--lineHeight-tightest: 1.12;
35
+ --typography--lineHeight-miniscule: 1.08;
36
+ }
37
+
38
+ @media (--handhelds) {
39
+ :root {
40
+ --typography--fontSize-extravagant: calc(
41
+ var(--typography--fontSize-large) * 2.5
42
+ );
43
+ /* 40 */
44
+ --typography--fontSize-jumbo: calc(
45
+ var(--typography--fontSize-large) * 1.75
46
+ );
47
+ /* 28 */
48
+ --typography--fontSize-largest: calc(
49
+ var(--typography--fontSize-large) * 1.375
50
+ );
51
+ /* 22 */
52
+ }
53
+ }