@eturnity/eturnity_reusable_components 8.10.1 → 8.10.3

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": "8.10.1",
3
+ "version": "8.10.3",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -5,7 +5,7 @@ import theme from '@/assets/theme'
5
5
 
6
6
  jest.mock('@/components/icon/iconCache.mjs', () => ({
7
7
  // need to mock this due to how jest handles import.meta
8
- fetchIcon: jest.fn(() => Promise.resolve('close_for_modals,_tool_tips.svg')),
8
+ fetchIcon: jest.fn(() => Promise.resolve('close.svg')),
9
9
  }))
10
10
 
11
11
  describe('InfoText Component', () => {
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <PageWrapper
3
3
  v-if="isOpen"
4
+ :add-padding-top="addPaddingTop"
4
5
  :backdrop="backdrop"
5
6
  :is-open="isOpen"
6
7
  :position="position"
@@ -36,7 +37,11 @@
36
37
 
37
38
  const ContentContainer = styled.div``
38
39
 
39
- const pageAttrs = { backdrop: String, position: String }
40
+ const pageAttrs = {
41
+ backdrop: String,
42
+ position: String,
43
+ addPaddingTop: Boolean,
44
+ }
40
45
  const PageWrapper = styled('div', pageAttrs)`
41
46
  position: ${(props) => props.position}
42
47
  display: grid;
@@ -50,7 +55,7 @@
50
55
  : 'rgba(255, 255, 255, 0.9)'};
51
56
  z-index: 99999;
52
57
  overflow: auto;
53
- padding-top: 80px;
58
+ padding-top: ${(props) => (props.addPaddingTop ? '80px' : '0')};
54
59
 
55
60
  @media (max-width: 425px) {
56
61
  background: white;
@@ -148,6 +153,10 @@
148
153
  type: String,
149
154
  default: 'auto',
150
155
  },
156
+ addPaddingTop: {
157
+ type: Boolean,
158
+ default: false,
159
+ },
151
160
  },
152
161
  watch: {
153
162
  isOpen: {
@@ -5,12 +5,7 @@
5
5
  <TitleContainer>
6
6
  <BoxTitle> {{ numberSelected }} {{ selectedText }} </BoxTitle>
7
7
  <IconContainer @click="$emit('on-close')">
8
- <Icon
9
- color="white"
10
- cursor="pointer"
11
- name="close_for_modals,_tool_tips"
12
- size="14px"
13
- />
8
+ <Icon color="white" cursor="pointer" name="close" size="14px" />
14
9
  </IconContainer>
15
10
  </TitleContainer>
16
11
  <DividerContainer>
@@ -91,12 +86,7 @@
91
86
  </EmptyText>
92
87
  <CloseContainer>
93
88
  <IconContainer @click="$emit('on-close')">
94
- <Icon
95
- color="white"
96
- cursor="pointer"
97
- name="close_for_modals,_tool_tips"
98
- size="14px"
99
- />
89
+ <Icon color="white" cursor="pointer" name="close" size="14px" />
100
90
  </IconContainer>
101
91
  </CloseContainer>
102
92
  </BoxContainer>
@@ -5,7 +5,7 @@ import theme from '@/assets/theme'
5
5
 
6
6
  jest.mock('@/components/icon/iconCache.mjs', () => ({
7
7
  // need to mock this due to how jest handles import.meta
8
- fetchIcon: jest.fn(() => Promise.resolve('close_for_modals,_tool_tips.svg')),
8
+ fetchIcon: jest.fn(() => Promise.resolve('close.svg')),
9
9
  }))
10
10
 
11
11
  describe('RCSelectedOptions.vue', () => {