@eturnity/eturnity_reusable_components 1.1.68 → 1.1.71

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.71",
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>
@@ -43,7 +43,7 @@ const Container = styled.div`
43
43
  const labelAttrs = { fontSize: String }
44
44
  const InputLabel = styled("div", labelAttrs)`
45
45
  font-weight: bold;
46
- font-size: ${(props) => (props.fontSize ? props.fontSize : "16px")};
46
+ font-size: ${(props) => (props.fontSize ? props.fontSize : "13px")};
47
47
  `
48
48
 
49
49
  const LabelWrapper = styled.div`
@@ -56,7 +56,6 @@ const LabelWrapper = styled.div`
56
56
  grid-template-columns: auto 1fr;
57
57
  grid-gap: 12px;
58
58
  align-items: center;
59
- margin-bottom: 12px;
60
59
  `
61
60
 
62
61
  const inputProps = {
@@ -294,7 +294,7 @@ const OptionsWrapper = styled.div`
294
294
  position: relative;
295
295
  padding: 12px;
296
296
  grid-gap: 4px;
297
- font-size: 14px;
297
+ font-size: 13px;
298
298
  grid-template-rows: max-content;
299
299
  height: max-content;
300
300
  min-width: 400px; // kind of an arbitrary number until we know all use cases