@dcrackel/meyersquaredui 1.0.240 → 1.0.242

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/meyersquaredui",
3
3
  "private": false,
4
- "version": "1.0.240",
4
+ "version": "1.0.242",
5
5
  "type": "module",
6
6
  "main": "dist/meyersquaredui.cjs.js",
7
7
  "module": "dist/meyersquaredui.esm.js",
@@ -144,7 +144,6 @@ export default {
144
144
  },
145
145
  setTextColor() {
146
146
  this.buttonTextColor = this.color || 'primary';
147
-
148
147
  },
149
148
  }
150
149
  };
@@ -38,10 +38,10 @@
38
38
 
39
39
  <section class="w-full md:w-40 flex justify-end md:pt-3 -mt-2">
40
40
  <BaseButton
41
- :label="data.disabled ? 'Remove' : 'Add to Cart'"
41
+ :label="data && data.disabled ? 'Remove' : 'Add to Cart'"
42
42
  size="sm"
43
- :backgroundColor="data.disabled ? 'primary' : 'secondary'"
44
- color="primary"
43
+ :backgroundColor="data && data.disabled ? 'primary' : 'secondary'"
44
+ :color="data && data.disabled ? 'secondary' : 'primary'"
45
45
  border="primary"
46
46
  class="w-32"
47
47
  @buttonClick="handleAddClick"
@@ -50,9 +50,9 @@
50
50
  <div class="flex-shrink-0">
51
51
  <BaseButton :label="'Add to Cart'"
52
52
  size="sm"
53
- color="primary"
53
+ color="secondary"
54
54
  border="primary"
55
- :backgroundColor="isInCart ? 'primary' : 'secondary'"
55
+ :backgroundColor="'secondary'"
56
56
  class="w-32"
57
57
  @buttonClick="handleAddClick" />
58
58
  </div>