@jobber/design 0.56.3 → 0.56.4
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 +8 -2
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var classnames = require('classnames');
|
|
4
6
|
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
10
|
+
|
|
5
11
|
function styleInject(css, ref) {
|
|
6
12
|
if ( ref === void 0 ) ref = {};
|
|
7
13
|
var insertAt = ref.insertAt;
|
|
@@ -592,7 +598,7 @@ function getInvertedClassMap(classMap) {
|
|
|
592
598
|
return Object.keys(classMap).reduce((acc, value) => (Object.assign(Object.assign({}, acc), { [classMap[value]]: value })), {});
|
|
593
599
|
}
|
|
594
600
|
function getIcon({ name, color, size = "base" }) {
|
|
595
|
-
const svgClassNames =
|
|
601
|
+
const svgClassNames = classnames__default["default"](styles.icon, sizes[size], {
|
|
596
602
|
[styles.longArrowUp]: name === "longArrowUp",
|
|
597
603
|
[styles.longArrowDown]: name === "longArrowDown",
|
|
598
604
|
[styles.thumbsDown]: name === "thumbsDown",
|
|
@@ -628,7 +634,7 @@ function mapToCorrectIcon(name) {
|
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
636
|
function getPathClassNames(name, color) {
|
|
631
|
-
return
|
|
637
|
+
return classnames__default["default"](color && colors[color], {
|
|
632
638
|
[styles.person]: name === "person",
|
|
633
639
|
[styles.clients]: name === "clients",
|
|
634
640
|
[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.4",
|
|
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": "^1.11.3",
|
|
50
|
+
"rollup-plugin-copy": "^3.4.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.34.1",
|
|
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": "0dc0797364ba52c044dcafbcf01932fa6c099ed7"
|
|
59
59
|
}
|