@eturnity/eturnity_reusable_components 1.0.86 → 1.0.90

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.0.86",
3
+ "version": "1.0.90",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
package/src/App.vue CHANGED
@@ -21,6 +21,9 @@
21
21
  :optionItems="itemOptions"
22
22
  :optionsDisplay="['display_name', 'company_item_number', 'model']"
23
23
  /> -->
24
+ <td>
25
+ <search-input />
26
+ </td>
24
27
  <div class="icons-container">
25
28
  <three-dots :options="listOptions" :isLoading="false" />
26
29
  </div>
@@ -47,6 +50,7 @@ import styled from "vue-styled-components"
47
50
  import MainTable from "@/components/tables/mainTable"
48
51
  import ThreeDots from "@/components/threeDots"
49
52
  import Toggle from "@/components/inputs/toggle"
53
+ import SearchInput from "@/components/inputs/searchInput"
50
54
  // import TableDropdown from "@/components/tableDropdown"
51
55
 
52
56
  const PageContainer = styled.div`
@@ -61,6 +65,7 @@ export default {
61
65
  MainTable,
62
66
  ThreeDots,
63
67
  Toggle,
68
+ SearchInput,
64
69
  // TableDropdown,
65
70
  },
66
71
  data() {
@@ -73,13 +73,13 @@ const Container = styled("label", containerAttrs)`
73
73
  ? "16px"
74
74
  : "25px"};
75
75
  background-color: ${(props) =>
76
- props.isDisabled
77
- ? props.theme.colors.lightGray
78
- : !props.isChecked
79
- ? "#fff"
80
- : props.backgroundColor
76
+ props.isChecked
81
77
  ? props.backgroundColor
82
- : props.theme.colors.green};
78
+ ? props.backgroundColor
79
+ : props.theme.colors.green
80
+ : props.isDisabled
81
+ ? props.theme.colors.lightGray
82
+ : "#fff"};
83
83
  border-radius: 4px;
84
84
  border: 1px solid
85
85
  ${(props) =>
@@ -1,24 +1,24 @@
1
1
  <template>
2
- <container>
3
- <input-wrapper>
4
- <input-container
5
- :placeholder="placeholder"
6
- :value="value"
7
- @input="onChangeHandler($event)"
8
- :disabled="disabled"
9
- :isDisabled="disabled"
10
- />
11
- <img
12
- class="search-icn"
13
- :src="require('../../../assets/icons/search_icon_black.svg')"
14
- />
15
- </input-wrapper>
16
- </container>
2
+ <container>
3
+ <input-wrapper>
4
+ <input-container
5
+ :placeholder="placeholder"
6
+ :value="value"
7
+ @input="onChangeHandler($event)"
8
+ :disabled="disabled"
9
+ :isDisabled="disabled"
10
+ />
11
+ <img
12
+ class="search-icn"
13
+ :src="require('../../../assets/icons/search_icon_black.svg')"
14
+ />
15
+ </input-wrapper>
16
+ </container>
17
17
  </template>
18
18
 
19
19
  <script>
20
20
  // import SearchInput from "@eturnity/eturnity_reusable_components/src/components/inputs/searchInput"
21
- import styled from 'vue-styled-components'
21
+ import styled from "vue-styled-components"
22
22
 
23
23
  const Container = styled.div`
24
24
  width: 100%;
@@ -26,7 +26,7 @@ const Container = styled.div`
26
26
  `
27
27
 
28
28
  const inputAttrs = { isDisabled: Boolean }
29
- const InputContainer = styled('input', inputAttrs)`
29
+ const InputContainer = styled("input", inputAttrs)`
30
30
  border: 1px solid ${(props) => props.theme.colors.mediumGray};
31
31
  padding: 11px 30px 11px 10px;
32
32
  border-radius: 4px;
@@ -34,8 +34,8 @@ const InputContainer = styled('input', inputAttrs)`
34
34
  color: ${(props) => props.theme.colors.black};
35
35
  width: 100%;
36
36
  box-sizing: border-box;
37
- cursor: ${props => props.isDisabled ? 'not-allowed' : 'auto'};
38
-
37
+ cursor: ${(props) => (props.isDisabled ? "not-allowed" : "auto")};
38
+ background: ${(props) => props.theme.colors.white} !important;
39
39
  &::placeholder {
40
40
  color: ${(props) => props.theme.colors.darkGray};
41
41
  }
@@ -60,25 +60,25 @@ export default {
60
60
  components: {
61
61
  InputContainer,
62
62
  InputWrapper,
63
- Container
63
+ Container,
64
64
  },
65
65
  props: {
66
66
  value: {
67
- required: true
67
+ required: true,
68
68
  },
69
69
  disabled: {
70
70
  required: false,
71
- default: false
71
+ default: false,
72
72
  },
73
73
  placeholder: {
74
74
  required: false,
75
- default: ''
76
- }
75
+ default: "",
76
+ },
77
77
  },
78
78
  methods: {
79
79
  onChangeHandler(event) {
80
- this.$emit('on-change', event)
81
- }
82
- }
80
+ this.$emit("on-change", event)
81
+ },
82
+ },
83
83
  }
84
84
  </script>
@@ -197,6 +197,7 @@ const TableContainer = styled.table`
197
197
  .text {
198
198
  padding: 10px 15px 10px 15px;
199
199
  color: ${(props) => props.theme.colors.black};
200
+ cursor: auto;
200
201
  }
201
202
 
202
203
  .bold {