@eturnity/eturnity_reusable_components 1.1.11 → 1.1.12

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.11",
3
+ "version": "1.1.12",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -1,11 +1,11 @@
1
1
  <template>
2
- <page-container>
3
- <button-container @click="toggleButton()">
2
+ <page-container @click="toggleButton()">
3
+ <button-container>
4
4
  <dot-item />
5
5
  <dot-item />
6
6
  <dot-item />
7
7
  </button-container>
8
- <dropdown-container v-if="isOpen">
8
+ <dropdown-container v-if="isOpen" @click.stop>
9
9
  <loading-container v-if="isLoading">
10
10
  <spinner />
11
11
  </loading-container>
@@ -38,7 +38,7 @@
38
38
  v-for="(item, index) in options"
39
39
  :key="item.value"
40
40
  tabindex="0"
41
- @click="onSelect({ item: item, hasChildren: hasChildren(item) })"
41
+ @click.stop="onSelect({ item: item, hasChildren: hasChildren(item) })"
42
42
  @keyup.enter="
43
43
  onSelect({ item: item, hasChildren: hasChildren(item) })
44
44
  "
@@ -118,6 +118,13 @@ const PageContainer = styled.div`
118
118
  display: grid;
119
119
  align-items: center;
120
120
  justify-items: center;
121
+ width: 30px;
122
+ height: 30px;
123
+
124
+ &:hover {
125
+ background-color: ${(props) => props.theme.colors.grey5};
126
+ border-radius: 4px;
127
+ }
121
128
  `
122
129
 
123
130
  const ButtonContainer = styled.div`
@@ -127,18 +134,11 @@ const ButtonContainer = styled.div`
127
134
  justify-content: center;
128
135
  padding: 5px;
129
136
  cursor: pointer;
130
- width: 20px;
131
- height: 20px;
132
137
 
133
138
  div {
134
139
  // This is the dot color
135
140
  background-color: #263238;
136
141
  }
137
-
138
- &:hover {
139
- background-color: ${(props) => props.theme.colors.grey5};
140
- border-radius: 4px;
141
- }
142
142
  `
143
143
 
144
144
  const DotItem = styled.div`