@abi-software/map-utilities 1.0.1-beta.0 → 1.0.1-beta.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-utilities",
3
- "version": "1.0.1-beta.0",
3
+ "version": "1.0.1-beta.1",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -33,12 +33,13 @@ export default {
33
33
  default: '',
34
34
  },
35
35
  /**
36
- * Theme 'primary' or 'dark' or any name not 'light'
37
- * will show primary button color.
36
+ * `theme: light` will show white button,
37
+ * to use when the button is over other readable text content.
38
+ * Default button is transparent.
38
39
  */
39
40
  theme: {
40
41
  type: String,
41
- default: 'light',
42
+ default: '',
42
43
  },
43
44
  },
44
45
  data: function () {
@@ -48,11 +49,6 @@ export default {
48
49
  iconColor: appPrimaryColor,
49
50
  };
50
51
  },
51
- mounted: function () {
52
- if (this.theme !== 'light') {
53
- this.iconColor = 'white';
54
- }
55
- },
56
52
  methods: {
57
53
  copyToClipboard: async function () {
58
54
  let copiedSuccessfully = true;
@@ -93,29 +89,23 @@ export default {
93
89
  &,
94
90
  &:focus,
95
91
  &:active {
96
- color: #fff !important;
97
- background: $app-primary-color;
98
- border-color: $app-primary-color !important;
99
- }
100
-
101
- &:hover {
102
- background: #ac76c5 !important;
103
- border-color: #ac76c5 !important;
92
+ color: $app-primary-color !important;
93
+ background: transparent;
94
+ border-color: transparent !important;
104
95
  }
105
96
 
106
97
  &.light {
107
98
  &,
108
99
  &:focus,
109
100
  &:active {
110
- color: $app-primary-color !important;
111
- background: transparent;
112
- border-color: transparent !important;
101
+ background: #fff;
102
+ border-color: #fff !important;
113
103
  }
104
+ }
114
105
 
115
- &:hover {
116
- background: #f3e6f9 !important;
117
- border-color: #f3e6f9 !important;
118
- }
106
+ &:hover {
107
+ background: #f3e6f9 !important;
108
+ border-color: #f3e6f9 !important;
119
109
  }
120
110
  }
121
111