@jobber/design 0.56.2 → 0.56.3
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/index.js +2 -8
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var classnames = require('classnames');
|
|
6
4
|
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
10
|
-
|
|
11
5
|
function styleInject(css, ref) {
|
|
12
6
|
if ( ref === void 0 ) ref = {};
|
|
13
7
|
var insertAt = ref.insertAt;
|
|
@@ -598,7 +592,7 @@ function getInvertedClassMap(classMap) {
|
|
|
598
592
|
return Object.keys(classMap).reduce((acc, value) => (Object.assign(Object.assign({}, acc), { [classMap[value]]: value })), {});
|
|
599
593
|
}
|
|
600
594
|
function getIcon({ name, color, size = "base" }) {
|
|
601
|
-
const svgClassNames =
|
|
595
|
+
const svgClassNames = classnames(styles.icon, sizes[size], {
|
|
602
596
|
[styles.longArrowUp]: name === "longArrowUp",
|
|
603
597
|
[styles.longArrowDown]: name === "longArrowDown",
|
|
604
598
|
[styles.thumbsDown]: name === "thumbsDown",
|
|
@@ -634,7 +628,7 @@ function mapToCorrectIcon(name) {
|
|
|
634
628
|
}
|
|
635
629
|
}
|
|
636
630
|
function getPathClassNames(name, color) {
|
|
637
|
-
return
|
|
631
|
+
return classnames(color && colors[color], {
|
|
638
632
|
[styles.person]: name === "person",
|
|
639
633
|
[styles.clients]: name === "clients",
|
|
640
634
|
[styles.company]: name === "company",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/design",
|
|
3
|
-
"version": "0.56.
|
|
3
|
+
"version": "0.56.3",
|
|
4
4
|
"description": "Design foundation for the Jobber Atlantis Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"postcss-custom-properties": "^13.1.4",
|
|
47
47
|
"postcss-import": "^15.1.0",
|
|
48
48
|
"postcss-preset-env": "^8.3.0",
|
|
49
|
-
"rollup": "^
|
|
50
|
-
"rollup-plugin-copy": "^3.
|
|
49
|
+
"rollup": "^4.13.0",
|
|
50
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
51
51
|
"rollup-plugin-multi-input": "^1.4.1",
|
|
52
52
|
"rollup-plugin-postcss": "^4.0.2",
|
|
53
|
-
"rollup-plugin-typescript2": "^0.
|
|
53
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
54
54
|
"svgo": "^3.0.2",
|
|
55
55
|
"typed-css-modules": "^0.7.0",
|
|
56
56
|
"typescript": "^4.9.5"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "49814f608cafabdde783c712972de4665cc6c10c"
|
|
59
59
|
}
|