@thinkpixellab-public/px-vue 3.0.35 → 3.0.37

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.
@@ -85,6 +85,12 @@ export default {
85
85
  }
86
86
  return null;
87
87
  },
88
+ isSafari() {
89
+ if (isServer()) {
90
+ return false;
91
+ }
92
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
93
+ },
88
94
  },
89
95
  watch: {
90
96
  enabled() {
@@ -104,6 +110,11 @@ export default {
104
110
  return;
105
111
  }
106
112
 
113
+ if (this.isSafari) {
114
+ this.balanced = true;
115
+ return;
116
+ }
117
+
107
118
  if (this.enabled) {
108
119
  try {
109
120
  this.balanceFailed = false;
@@ -18,7 +18,7 @@ export default {
18
18
  variantValue() {
19
19
  return (
20
20
  (this.variantBase ? `${this.variantBase} ` : '') +
21
- (this.variantDefault ? this.variantDefault : this.variant)
21
+ (this.variant ?? this.variantDefault)
22
22
  );
23
23
  },
24
24
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "3.0.35",
3
+ "version": "3.0.37",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": "Pixel Lab",
6
6
  "license": "MIT",