@eturnity/eturnity_reusable_components 1.1.68 → 1.1.69

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": "@eturnity/eturnity_reusable_components",
3
- "version": "1.1.68",
3
+ "version": "1.1.69",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -1,6 +1,10 @@
1
1
  <template>
2
2
  <page-container>
3
- <button-wrapper :isDisabled="isDisabled" :minWidth="minWidth">
3
+ <button-wrapper
4
+ :isDisabled="isDisabled"
5
+ :minWidth="minWidth"
6
+ :customColor="customColor"
7
+ >
4
8
  <icon-container>
5
9
  <icon-element
6
10
  :src="require('../../../assets/icons/external_icon.svg')"
@@ -17,18 +21,27 @@
17
21
  // :isDisabled="true"
18
22
  // text="Click Me"
19
23
  // minWidth="300px"
24
+ // customColor="#000"
20
25
  // />
21
26
 
22
27
  import styled from "vue-styled-components"
23
28
 
24
29
  const PageContainer = styled.div``
25
30
 
26
- const ButtonAttrs = { isDisabled: Boolean, minWidth: String }
31
+ const ButtonAttrs = {
32
+ isDisabled: Boolean,
33
+ minWidth: String,
34
+ customColor: String,
35
+ }
27
36
  const ButtonWrapper = styled("div", ButtonAttrs)`
28
37
  display: grid;
29
38
  grid-template-columns: auto 1fr;
30
39
  background-color: ${(props) =>
31
- props.isDisabled ? props.theme.colors.disabled : props.theme.colors.yellow};
40
+ props.isDisabled
41
+ ? props.theme.colors.disabled
42
+ : props.customColor
43
+ ? props.customColor
44
+ : props.theme.colors.yellow};
32
45
  cursor: ${(props) => (props.isDisabled ? "not-allowed" : "pointer")};
33
46
  user-select: none;
34
47
  border-radius: 4px;
@@ -79,6 +92,10 @@ export default {
79
92
  required: false,
80
93
  default: null,
81
94
  },
95
+ customColor: {
96
+ required: false,
97
+ default: null,
98
+ },
82
99
  },
83
100
  }
84
101
  </script>