@jobber/design 0.29.5 → 0.29.6-pre.35
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/dist/icons/getIcon.d.ts +3 -3
- package/dist/index.js +55 -85
- package/foundation.css.d.ts +0 -0
- package/package.json +7 -9
package/dist/icons/getIcon.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import { iconMap } from "./iconMap";
|
|
|
4
4
|
export declare const iconClassMap: {};
|
|
5
5
|
export declare const sizesClassMap: {};
|
|
6
6
|
export declare const colorsClassMap: {};
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
7
|
+
export type IconNames = keyof typeof iconMap.icons | "longArrowUp" | "longArrowDown" | "remove" | "thumbsDown" | "truck";
|
|
8
|
+
export type IconColorNames = keyof typeof colors;
|
|
9
|
+
export type IconSizes = keyof typeof sizes;
|
|
10
10
|
interface IconProps {
|
|
11
11
|
/** The icon to show. */
|
|
12
12
|
readonly name: IconNames;
|
package/dist/index.js
CHANGED
|
@@ -2,35 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
var classnames = require('classnames');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
Copyright (c) Microsoft Corporation.
|
|
11
|
-
|
|
12
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
13
|
-
purpose with or without fee is hereby granted.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
16
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
17
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
18
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
19
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
20
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
21
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
-
***************************************************************************** */
|
|
23
|
-
|
|
24
|
-
var __assign = function() {
|
|
25
|
-
__assign = Object.assign || function __assign(t) {
|
|
26
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
|
-
s = arguments[i];
|
|
28
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
31
|
-
};
|
|
32
|
-
return __assign.apply(this, arguments);
|
|
33
|
-
};
|
|
9
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
34
10
|
|
|
35
11
|
function styleInject(css, ref) {
|
|
36
12
|
if ( ref === void 0 ) ref = {};
|
|
@@ -59,22 +35,22 @@ function styleInject(css, ref) {
|
|
|
59
35
|
}
|
|
60
36
|
}
|
|
61
37
|
|
|
62
|
-
var css_248z = ".ZDlJU6tECg7ouG-b27gya {\n fill: var(--color-greyBlue);\n display: inline-block;\n vertical-align: middle;\n}\n\n._2azt9Jt0fRUQn8YEtWXIl3 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n._2OdINXelxFp3p7rxzdXAsi {\n -webkit-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n._3F7n5ToMv0htmhmS_dNhjQ {\n -webkit-transform: scaleY(-1);\n transform: scaleY(-1);\n}\n\n._29W47x5R7CHDPdmq99tUBc,\n._2Nh371UPo_GfyCeqMqwCsV,\n._33VR7mjmJ-eZ2x4Zb5KwRp,\n._35gHCudpO36maz6yBIS9hG {\n fill: var(--color-teal);\n}\n\n._2AsZsCnv8jY7bjbnXxovAZ,\n._37pYyp2fnxbNTQFRJQ-xzh {\n fill: var(--color-job);\n}\n\n._3xbzI80H4DwLBIE4qd8z0o,\n.Z8O8gzZTvEK6xX-CpO3Jc {\n fill: var(--color-lime);\n}\n\n._12EQ5VPmFFQmZF_lO8hbYu {\n fill: var(--color-yellow);\n}\n\n._2eXuXJ2BydGI2eeh4gknZT {\n fill: var(--color-quote);\n}\n\n.KhekINEl_x_sko8PgERf0 {\n fill: var(--color-request);\n}\n\n.rcs4bT0JqdzYpjGnkyEnH {\n fill: var(--color-navy);\n}\n\n.B6i-xSwS7zkMHnd7XBEPX,\n._2wzmr87z_SNfrth0ahpG7c,\n._1fbz56arQt3_OOO8zZg33p {\n fill: var(--color-destructive);\n}\n\n.k-yTz4leACw0mElhFmX3p {\n fill: var(--color-success);\n}\n\n._1ANbiqwd8qgeLaumvLs27n {\n fill: var(--color-lightBlue);\n}\n\n.g9p8B6JcwYGNc1VVKSAod,\n._3bk6hx_7Eq0deQRvkkHP2s,\n._1NpZCETHEsxF7m5-vwKGgy,\n._1_Znzx1cuZF--oS60cGWsf {\n fill: var(--color-invoice);\n}\n\n.Qz2uB9Zg2rRL3AtTi8DaU {\n fill: var(--color-critical);\n}\n\n._3Bvwx5XtHaBDiWE_BLHULH,\n._3adzZMLKo6Fvk-YmG9j0aA {\n fill: var(--color-orange);\n}\n\n._2NHMoD69qNtaT3C3vJ-KeH {\n fill: var(--color-blue);\n}\n\n._3U8Jjii2OgUrnU5w9Tz8he {\n fill: var(--color-lightBlue);\n}\n\n/* non-Atlantis colors to match brand colors of these file-types */\n\n._2HvZ7Ah_FhbtZ9QNG3qhao {\n fill: rgb(31, 115, 71);\n}\n\n._14SULxU6aQ9-isMBbAGtZ {\n fill: rgb(195, 27, 0);\n}\n\n.ExUqs2sYkwDZNobmsfS8a {\n fill: rgb(41, 86, 154);\n}\n";
|
|
38
|
+
var css_248z$2 = ".ZDlJU6tECg7ouG-b27gya {\n fill: var(--color-greyBlue);\n display: inline-block;\n vertical-align: middle;\n}\n\n._2azt9Jt0fRUQn8YEtWXIl3 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n._2OdINXelxFp3p7rxzdXAsi {\n -webkit-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n._3F7n5ToMv0htmhmS_dNhjQ {\n -webkit-transform: scaleY(-1);\n transform: scaleY(-1);\n}\n\n._29W47x5R7CHDPdmq99tUBc,\n._2Nh371UPo_GfyCeqMqwCsV,\n._33VR7mjmJ-eZ2x4Zb5KwRp,\n._35gHCudpO36maz6yBIS9hG {\n fill: var(--color-teal);\n}\n\n._2AsZsCnv8jY7bjbnXxovAZ,\n._37pYyp2fnxbNTQFRJQ-xzh {\n fill: var(--color-job);\n}\n\n._3xbzI80H4DwLBIE4qd8z0o,\n.Z8O8gzZTvEK6xX-CpO3Jc {\n fill: var(--color-lime);\n}\n\n._12EQ5VPmFFQmZF_lO8hbYu {\n fill: var(--color-yellow);\n}\n\n._2eXuXJ2BydGI2eeh4gknZT {\n fill: var(--color-quote);\n}\n\n.KhekINEl_x_sko8PgERf0 {\n fill: var(--color-request);\n}\n\n.rcs4bT0JqdzYpjGnkyEnH {\n fill: var(--color-navy);\n}\n\n.B6i-xSwS7zkMHnd7XBEPX,\n._2wzmr87z_SNfrth0ahpG7c,\n._1fbz56arQt3_OOO8zZg33p {\n fill: var(--color-destructive);\n}\n\n.k-yTz4leACw0mElhFmX3p {\n fill: var(--color-success);\n}\n\n._1ANbiqwd8qgeLaumvLs27n {\n fill: var(--color-lightBlue);\n}\n\n.g9p8B6JcwYGNc1VVKSAod,\n._3bk6hx_7Eq0deQRvkkHP2s,\n._1NpZCETHEsxF7m5-vwKGgy,\n._1_Znzx1cuZF--oS60cGWsf {\n fill: var(--color-invoice);\n}\n\n.Qz2uB9Zg2rRL3AtTi8DaU {\n fill: var(--color-critical);\n}\n\n._3Bvwx5XtHaBDiWE_BLHULH,\n._3adzZMLKo6Fvk-YmG9j0aA {\n fill: var(--color-orange);\n}\n\n._2NHMoD69qNtaT3C3vJ-KeH {\n fill: var(--color-blue);\n}\n\n._3U8Jjii2OgUrnU5w9Tz8he {\n fill: var(--color-lightBlue);\n}\n\n/* non-Atlantis colors to match brand colors of these file-types */\n\n._2HvZ7Ah_FhbtZ9QNG3qhao {\n fill: rgb(31, 115, 71);\n}\n\n._14SULxU6aQ9-isMBbAGtZ {\n fill: rgb(195, 27, 0);\n}\n\n.ExUqs2sYkwDZNobmsfS8a {\n fill: rgb(41, 86, 154);\n}\n";
|
|
63
39
|
var styles = {"icon":"ZDlJU6tECg7ouG-b27gya","longArrowUp":"_2azt9Jt0fRUQn8YEtWXIl3","longArrowDown":"_2OdINXelxFp3p7rxzdXAsi","thumbsDown":"_3F7n5ToMv0htmhmS_dNhjQ","person":"_29W47x5R7CHDPdmq99tUBc","clients":"_2Nh371UPo_GfyCeqMqwCsV","company":"_33VR7mjmJ-eZ2x4Zb5KwRp","property":"_35gHCudpO36maz6yBIS9hG","job":"_2AsZsCnv8jY7bjbnXxovAZ","jobOnHold":"_37pYyp2fnxbNTQFRJQ-xzh","visit":"_3xbzI80H4DwLBIE4qd8z0o","moveVisits":"Z8O8gzZTvEK6xX-CpO3Jc","event":"_12EQ5VPmFFQmZF_lO8hbYu","quote":"_2eXuXJ2BydGI2eeh4gknZT","request":"KhekINEl_x_sko8PgERf0","task":"rcs4bT0JqdzYpjGnkyEnH","userUnassigned":"B6i-xSwS7zkMHnd7XBEPX","reminder":"_2wzmr87z_SNfrth0ahpG7c","trash":"_1fbz56arQt3_OOO8zZg33p","checkmark":"k-yTz4leACw0mElhFmX3p","timer":"_1ANbiqwd8qgeLaumvLs27n","invoice":"g9p8B6JcwYGNc1VVKSAod","invoiceLater":"_3bk6hx_7Eq0deQRvkkHP2s","sendInvoice":"_1NpZCETHEsxF7m5-vwKGgy","paidInvoice":"_1_Znzx1cuZF--oS60cGWsf","badInvoice":"Qz2uB9Zg2rRL3AtTi8DaU","payment":"_3Bvwx5XtHaBDiWE_BLHULH","expense":"_3adzZMLKo6Fvk-YmG9j0aA","archive":"_2NHMoD69qNtaT3C3vJ-KeH","video":"_3U8Jjii2OgUrnU5w9Tz8he","excel":"_2HvZ7Ah_FhbtZ9QNG3qhao","pdf":"_14SULxU6aQ9-isMBbAGtZ","word":"ExUqs2sYkwDZNobmsfS8a"};
|
|
64
|
-
styleInject(css_248z);
|
|
40
|
+
styleInject(css_248z$2);
|
|
65
41
|
|
|
66
42
|
var css_248z$1 = "._isfJqqskSRqop8TStvGA {\n width: var(--base-unit);\n height: var(--base-unit);\n}\n\n._3ctOeOMP7zLhU37n25xoZC {\n width: calc(var(--base-unit) * 1.5);\n height: calc(var(--base-unit) * 1.5);\n}\n\n._2SoAwA0A8G1BGDNjtkt-lt {\n width: calc(var(--base-unit) * 2);\n height: calc(var(--base-unit) * 2);\n}\n";
|
|
67
43
|
var sizes = {"small":"_isfJqqskSRqop8TStvGA","base":"_3ctOeOMP7zLhU37n25xoZC","large":"_2SoAwA0A8G1BGDNjtkt-lt"};
|
|
68
44
|
styleInject(css_248z$1);
|
|
69
45
|
|
|
70
|
-
var css_248z
|
|
46
|
+
var css_248z = "._2GsLyQLHv8yNULHeXGdver {\n fill: var(--color-white);\n}\n\n._1YELv8nmPPlX0Pzu_QGOMG {\n fill: var(--color-grey);\n}\n\n._2e1AAW5-LqZd1rLcmAUuzN {\n fill: var(--color-greyBlue);\n}\n\n._8bWF3AeRyRyMzB0iH9M6y {\n fill: var(--color-greyBlue--dark);\n}\n\n.n2jBqFmFzNTdsaFLYln27 {\n fill: var(--color-blue);\n}\n\n._1Fz3GVTXQVAtpcbXjBZ1DQ {\n fill: var(--color-lightBlue);\n}\n\n._1R4_alABGZICCj4KPfBOIa {\n fill: var(--color-green);\n}\n\n._2QH3YFqLKdR7aDlgrj2Hh6 {\n fill: var(--color-yellow);\n}\n\n._3kicqC60DO19i9GJUdTy7F {\n fill: var(--color-red);\n}\n\n._3JP83AjCT81W_LPJGSnPD5 {\n fill: var(--color-navy);\n}\n\n._1ILoHD9okwFJq74eTNjP6t {\n fill: var(--color-orange);\n}\n\n._12VR_QdnOrr0uYfnGulvso {\n fill: var(--color-interactive);\n}\n\n._3gJhqOTdPZ3q8_riR5EOkY {\n fill: var(--color-interactive--hover);\n}\n\n._2XvATj2yLi5bRnIRtXmlCo {\n fill: var(--color-destructive);\n}\n\n._1P43A7mjvke3cHU15BQjuy {\n fill: var(--color-destructive--hover);\n}\n\n._2LOjniuiJ7S7KXYPneZh83 {\n fill: var(--color-interactive--subtle);\n}\n\n._3U-nuJ3AJ6bMh3Q_uS1oSJ {\n fill: var(--color-interactive--subtle--hover);\n}\n\n._3d_mPRCA6Acd1Cw7tkKfyA {\n fill: var(--color-disabled);\n}\n\n._1uxUG7mKqo7DTmB7pPTjMn {\n fill: var(--color-disabled--secondary);\n}\n\n._3S0ta0xTE6TKBo2TkRmwLv {\n fill: var(--color-focus);\n}\n\n._3_XuN5pkvTDnwUYEFefKiC {\n fill: var(--color-critical);\n}\n\n._1uxtNh577qTf7gZQ9sE2PB {\n fill: var(--color-critical--surface);\n}\n\n._1k7fQnz_5GJTDeyWn7Irqy {\n fill: var(--color-critical--onSurface);\n}\n\n._3Py1RaPZa3--eqJSDrJN6W {\n fill: var(--color-warning);\n}\n\n._22dsEAHHeZPVmojNi9QBjd {\n fill: var(--color-warning--surface);\n}\n\n.sdUqeV1jSaiEx3iiK7tqk {\n fill: var(--color-warning--onSurface);\n}\n\n._2xDMAaDywcy-N6CPPXGFor {\n fill: var(--color-success);\n}\n\n._1mtGQX90W-EecWtg-LA1g7 {\n fill: var(--color-success--surface);\n}\n\n._3u4hTypURa6CdwkE_uVI6b {\n fill: var(--color-success--onSurface);\n}\n\n._25Xt7gN6lfWaeSVU0XpRMb {\n fill: var(--color-informative);\n}\n\n._3y4ypbzLxkZRebphV4-au6 {\n fill: var(--color-informative--surface);\n}\n\n._2Z7rds-RtfQI8AYuQBJQOZ {\n fill: var(--color-informative--onSurface);\n}\n\n._1hhlT0_4ggzO_f2Qxup6ls {\n fill: var(--color-inactive);\n}\n\n._23PS9wPasMNF1-vmjoVf4o {\n fill: var(--color-inactive--surface);\n}\n\n._3PfcZIjtGdLlI1QYNN-PNr {\n fill: var(--color-inactive--onSurface);\n}\n\n._3fT3DM-w1gpl8ca5PrBiEP {\n fill: var(--color-heading);\n}\n\n._2tTQJ-gNaSMzqehI5agQSU {\n fill: var(--color-text);\n}\n\n._25qKLrxSYW1hXWswuA9GZI {\n fill: var(--color-text--secondary);\n}\n\n._3fgaPbh4JKfC65cAEi8GOQ {\n fill: var(--color-text--reverse);\n}\n\n._1ahShcIkV2CxLZQdOybgd7 {\n fill: var(--color-text--reverse--secondary);\n}\n\n._qoc5K-dxGZQcWrGy_UhJ {\n fill: var(--color-surface);\n}\n\n._103fXl0BTXIMr-bd0pSRk1 {\n fill: var(--color-surface--hover);\n}\n\n.S8EGNj0npcZP2BpoMIzkL {\n fill: var(--color-surface--active);\n}\n\n.Qapc7a_-VAoOsDM0oop-d {\n fill: var(--color-surface--background);\n}\n\n._3gEznmn4DvQu9B2SHDM-8U {\n fill: var(--color-surface--reverse);\n}\n\n._2NbShAfreAiEv494xM6yfV {\n fill: var(--color-brand);\n}\n\n.GlvyXGSUMJB6P5Y3PdhgJ {\n fill: var(--color-brand--highlight);\n}\n";
|
|
71
47
|
var colors = {"white":"_2GsLyQLHv8yNULHeXGdver","grey":"_1YELv8nmPPlX0Pzu_QGOMG","greyBlue":"_2e1AAW5-LqZd1rLcmAUuzN","greyBlueDark":"_8bWF3AeRyRyMzB0iH9M6y","blue":"n2jBqFmFzNTdsaFLYln27","lightBlue":"_1Fz3GVTXQVAtpcbXjBZ1DQ","green":"_1R4_alABGZICCj4KPfBOIa","yellow":"_2QH3YFqLKdR7aDlgrj2Hh6","red":"_3kicqC60DO19i9GJUdTy7F","navy":"_3JP83AjCT81W_LPJGSnPD5","orange":"_1ILoHD9okwFJq74eTNjP6t","interactive":"_12VR_QdnOrr0uYfnGulvso","interactiveHover":"_3gJhqOTdPZ3q8_riR5EOkY","destructive":"_2XvATj2yLi5bRnIRtXmlCo","destructiveHover":"_1P43A7mjvke3cHU15BQjuy","interactiveSubtle":"_2LOjniuiJ7S7KXYPneZh83","interactiveSubtleHover":"_3U-nuJ3AJ6bMh3Q_uS1oSJ","disabled":"_3d_mPRCA6Acd1Cw7tkKfyA","disabledSecondary":"_1uxUG7mKqo7DTmB7pPTjMn","focus":"_3S0ta0xTE6TKBo2TkRmwLv","critical":"_3_XuN5pkvTDnwUYEFefKiC","criticalSurface":"_1uxtNh577qTf7gZQ9sE2PB","criticalOnSurface":"_1k7fQnz_5GJTDeyWn7Irqy","warning":"_3Py1RaPZa3--eqJSDrJN6W","warningSurface":"_22dsEAHHeZPVmojNi9QBjd","warningOnSurface":"sdUqeV1jSaiEx3iiK7tqk","success":"_2xDMAaDywcy-N6CPPXGFor","successSurface":"_1mtGQX90W-EecWtg-LA1g7","successOnSurface":"_3u4hTypURa6CdwkE_uVI6b","informative":"_25Xt7gN6lfWaeSVU0XpRMb","informativeSurface":"_3y4ypbzLxkZRebphV4-au6","informativeOnSurface":"_2Z7rds-RtfQI8AYuQBJQOZ","inactive":"_1hhlT0_4ggzO_f2Qxup6ls","inactiveSurface":"_23PS9wPasMNF1-vmjoVf4o","inactiveOnSurface":"_3PfcZIjtGdLlI1QYNN-PNr","heading":"_3fT3DM-w1gpl8ca5PrBiEP","text":"_2tTQJ-gNaSMzqehI5agQSU","textSecondary":"_25qKLrxSYW1hXWswuA9GZI","textReverse":"_3fgaPbh4JKfC65cAEi8GOQ","textReverseSecondary":"_1ahShcIkV2CxLZQdOybgd7","surface":"_qoc5K-dxGZQcWrGy_UhJ","surfaceHover":"_103fXl0BTXIMr-bd0pSRk1","surfaceActive":"S8EGNj0npcZP2BpoMIzkL","surfaceBackground":"Qapc7a_-VAoOsDM0oop-d","surfaceReverse":"_3gEznmn4DvQu9B2SHDM-8U","brand":"_2NbShAfreAiEv494xM6yfV","brandHighlight":"GlvyXGSUMJB6P5Y3PdhgJ"};
|
|
72
|
-
styleInject(css_248z
|
|
48
|
+
styleInject(css_248z);
|
|
73
49
|
|
|
74
50
|
/* tslint:disable */
|
|
75
51
|
/* eslint-disable */
|
|
76
52
|
/* This file is automatically generated and should not be edited. */
|
|
77
|
-
|
|
53
|
+
const iconMap = {
|
|
78
54
|
"height": 1024,
|
|
79
55
|
"icons": {
|
|
80
56
|
"sliderStart": [
|
|
@@ -511,30 +487,25 @@ var iconMap = {
|
|
|
511
487
|
}
|
|
512
488
|
};
|
|
513
489
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
490
|
+
const iconClassMap = getInvertedClassMap(styles);
|
|
491
|
+
const sizesClassMap = getInvertedClassMap(sizes);
|
|
492
|
+
const colorsClassMap = getInvertedClassMap(colors);
|
|
517
493
|
function getInvertedClassMap(classMap) {
|
|
518
|
-
return Object.keys(classMap).reduce(
|
|
519
|
-
var _a;
|
|
520
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[classMap[value]] = value, _a)));
|
|
521
|
-
}, {});
|
|
494
|
+
return Object.keys(classMap).reduce((acc, value) => (Object.assign(Object.assign({}, acc), { [classMap[value]]: value })), {});
|
|
522
495
|
}
|
|
523
|
-
function getIcon(
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
var viewBox = "0 0 " + iconMap.height + " " + iconMap.height;
|
|
534
|
-
return { svgClassNames: svgClassNames, pathClassNames: pathClassNames, paths: paths, viewBox: viewBox };
|
|
496
|
+
function getIcon({ name, color, size = "base" }) {
|
|
497
|
+
const svgClassNames = classnames__default["default"](styles.icon, sizes[size], {
|
|
498
|
+
[styles.longArrowUp]: name === "longArrowUp",
|
|
499
|
+
[styles.longArrowDown]: name === "longArrowDown",
|
|
500
|
+
[styles.thumbsDown]: name === "thumbsDown",
|
|
501
|
+
});
|
|
502
|
+
const pathClassNames = getPathClassNames(name, color);
|
|
503
|
+
const paths = getPaths(name);
|
|
504
|
+
const viewBox = `0 0 ${iconMap.height} ${iconMap.height}`;
|
|
505
|
+
return { svgClassNames, pathClassNames, paths, viewBox };
|
|
535
506
|
}
|
|
536
507
|
function getPaths(name) {
|
|
537
|
-
|
|
508
|
+
const iconName = mapToCorrectIcon(name);
|
|
538
509
|
if (iconName === "truck") {
|
|
539
510
|
return [];
|
|
540
511
|
}
|
|
@@ -557,42 +528,41 @@ function mapToCorrectIcon(name) {
|
|
|
557
528
|
}
|
|
558
529
|
}
|
|
559
530
|
function getPathClassNames(name, color) {
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
_a));
|
|
531
|
+
return classnames__default["default"](color && colors[color], {
|
|
532
|
+
[styles.person]: name === "person",
|
|
533
|
+
[styles.clients]: name === "clients",
|
|
534
|
+
[styles.company]: name === "company",
|
|
535
|
+
[styles.property]: name === "property",
|
|
536
|
+
[styles.userUnassigned]: name === "userUnassigned",
|
|
537
|
+
[styles.job]: name === "job",
|
|
538
|
+
[styles.jobOnHold]: name === "jobOnHold",
|
|
539
|
+
[styles.visit]: name === "visit",
|
|
540
|
+
[styles.moveVisits]: name === "moveVisits",
|
|
541
|
+
[styles.event]: name === "event",
|
|
542
|
+
[styles.request]: name === "request",
|
|
543
|
+
[styles.reminder]: name === "reminder",
|
|
544
|
+
[styles.trash]: name === "trash",
|
|
545
|
+
[styles.task]: name === "task",
|
|
546
|
+
[styles.timer]: name === "timer",
|
|
547
|
+
[styles.quote]: name === "quote",
|
|
548
|
+
[styles.invoice]: name === "invoice",
|
|
549
|
+
[styles.checkmark]: name === "checkmark",
|
|
550
|
+
[styles.invoiceLater]: name === "invoiceLater",
|
|
551
|
+
[styles.badInvoice]: name === "badInvoice",
|
|
552
|
+
[styles.sendInvoice]: name === "sendInvoice",
|
|
553
|
+
[styles.paidInvoice]: name === "paidInvoice",
|
|
554
|
+
[styles.payment]: name === "payment",
|
|
555
|
+
[styles.expense]: name === "expense",
|
|
556
|
+
[styles.archive]: name === "archive",
|
|
557
|
+
[styles.excel]: name === "excel",
|
|
558
|
+
[styles.pdf]: name === "pdf",
|
|
559
|
+
[styles.word]: name === "word",
|
|
560
|
+
[styles.video]: name === "video",
|
|
561
|
+
});
|
|
592
562
|
}
|
|
593
563
|
|
|
594
564
|
/* This file is automatically generated by buildIconStyle.js and should not be edited. */
|
|
595
|
-
|
|
565
|
+
const iconStyles = {
|
|
596
566
|
"icon": {
|
|
597
567
|
"fill": "rgba(101, 120, 132, 1)",
|
|
598
568
|
"display": "inline-block",
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/design",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.6-pre.35+3d589ee2",
|
|
4
4
|
"description": "Design foundation for the Jobber Atlantis Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,22 +20,20 @@
|
|
|
20
20
|
"build:cssTypes": "tcm src/icons",
|
|
21
21
|
"build:colors": "node buildColors.js",
|
|
22
22
|
"build:foundation": "node buildFoundation.js && node jobberStyle.js && npm run build:foundationTypes && npm run build:addTypeLinterExceptions && npm run build:addFoundationLinterExceptions && npm run build:removeTempFiles",
|
|
23
|
-
"build:foundationTypes": "tsc --declaration --emitDeclarationOnly --allowJs foundation.js --outDir .",
|
|
23
|
+
"build:foundationTypes": "tsc --declaration --emitDeclarationOnly --allowJs foundation.js --outDir . --skipLibCheck",
|
|
24
24
|
"build:addTypeLinterExceptions": "(printf '/* tslint:disable */\n/* eslint-disable */\n/* This file is automatically generated and should not be edited. */\n'; cat foundation.d.ts) > foundation.d.ts.temp",
|
|
25
25
|
"build:addFoundationLinterExceptions": "(printf '/* tslint:disable */\n/* eslint-disable */\n/* This file is automatically generated and should not be edited. */\n'; cat foundation.js) > foundation.js.temp",
|
|
26
26
|
"build:removeTempFiles": "rm -f src/foundation.js && mv foundation.d.ts.temp foundation.d.ts && mv foundation.js.temp foundation.js",
|
|
27
27
|
"build:iconCssStyle": "node buildIconStyles.js && npm run build:iconCssStyleTypes",
|
|
28
|
-
"build:iconCssStyleTypes": "tsc --declaration --emitDeclarationOnly --allowJs src/icons/iconStyles.ts --outDir ./src/icons",
|
|
28
|
+
"build:iconCssStyleTypes": "tsc --declaration --emitDeclarationOnly --allowJs src/icons/iconStyles.ts --outDir ./src/icons --skipLibCheck",
|
|
29
29
|
"clean": "rm -rf dist/* icons/* colors.js foundation.* iconStyles.* tsconfig.tsbuildinfo",
|
|
30
|
-
"
|
|
30
|
+
"bootstrap": "npm run clean && npm run build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"classnames": "^2.2
|
|
33
|
+
"classnames": "^2.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/classnames": "^2.2.10",
|
|
37
36
|
"autoprefixer": "^9.5.1",
|
|
38
|
-
"classnames": "^2.2.6",
|
|
39
37
|
"css-to-react-native-transform": "^2.0.0",
|
|
40
38
|
"postcss": "^7.0.36",
|
|
41
39
|
"postcss-calc": "7.0.2",
|
|
@@ -53,7 +51,7 @@
|
|
|
53
51
|
"rollup-plugin-typescript": "^1.0.1",
|
|
54
52
|
"rollup-plugin-typescript2": "^0.31.2",
|
|
55
53
|
"typed-css-modules": "^0.7.0",
|
|
56
|
-
"typescript": "^
|
|
54
|
+
"typescript": "^4.9.5"
|
|
57
55
|
},
|
|
58
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "3d589ee2f7c9c319ee0e32e3bbf88e795ff290e8"
|
|
59
57
|
}
|