@eturnity/eturnity_reusable_components 7.12.7-EPDM-10606.0 → 7.12.7-EPDM-10528.0

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": "7.12.7-EPDM-10606.0",
3
+ "version": "7.12.7-EPDM-10528.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none">
2
+ <mask id="path-1-inside-1_57915_53334" fill="white">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.0303 2.75757L0 5.30302V11.2424L3.41022 12.4091V8.96996L4.53143 9.41845V12.7926L8.0606 14V8.0606L4.0303 2.75757Z"/>
4
+ </mask>
5
+ <path d="M0 5.30302L-0.694191 4.20389L-1.3 4.5865V5.30302H0ZM4.0303 2.75757L5.06531 1.97096L4.344 1.02187L3.33611 1.65843L4.0303 2.75757ZM0 11.2424H-1.3V12.1716L-0.420794 12.4724L0 11.2424ZM3.41022 12.4091L2.98943 13.6391L4.71022 14.2278V12.4091H3.41022ZM3.41022 8.96996L3.89303 7.76294L2.11022 7.04982V8.96996H3.41022ZM4.53143 9.41845H5.83143V8.5383L5.01424 8.21143L4.53143 9.41845ZM4.53143 12.7926H3.23143V13.7219L4.11064 14.0227L4.53143 12.7926ZM8.0606 14L7.63981 15.23L9.3606 15.8187V14H8.0606ZM8.0606 8.0606H9.3606V7.62266L9.09561 7.27399L8.0606 8.0606ZM0.694191 6.40216L4.72449 3.8567L3.33611 1.65843L-0.694191 4.20389L0.694191 6.40216ZM1.3 11.2424V5.30302H-1.3V11.2424H1.3ZM3.83102 11.1791L0.420794 10.0124L-0.420794 12.4724L2.98943 13.6391L3.83102 11.1791ZM4.71022 12.4091V8.96996H2.11022V12.4091H4.71022ZM2.92741 10.177L4.04862 10.6255L5.01424 8.21143L3.89303 7.76294L2.92741 10.177ZM3.23143 9.41845V12.7926H5.83143V9.41845H3.23143ZM8.48139 12.77L4.95223 11.5626L4.11064 14.0227L7.63981 15.23L8.48139 12.77ZM6.7606 8.0606V14H9.3606V8.0606H6.7606ZM2.99529 3.54418L7.02559 8.8472L9.09561 7.27399L5.06531 1.97096L2.99529 3.54418Z" fill="#0068DE" mask="url(#path-1-inside-1_57915_53334)"/>
6
+ <path d="M8.55859 13.2165V8.37967L13.498 6.08638V10.9232L8.55859 13.2165Z" fill="#0068DE" stroke="#0068DE"/>
7
+ <path d="M8.21608 7.43759L4.80515 2.94953L9.81611 0.623007L13.227 5.11107L8.21608 7.43759Z" fill="#0068DE" stroke="#0068DE"/>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16" fill="none">
2
+ <mask id="path-1-inside-1_57915_3657" fill="white">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4.03081 3.71851L0 6.28736V12.2814L3.41065 13.4587V9.98801L4.532 10.4406V13.8458L8.06161 15.0643V9.07028L4.03081 3.71851Z"/>
4
+ </mask>
5
+ <path d="M0 6.28736L-0.698673 5.19107L-1.3 5.5743V6.28736H0ZM4.03081 3.71851L5.06922 2.9364L4.34595 1.9761L3.33213 2.62221L4.03081 3.71851ZM0 12.2814H-1.3V13.2079L-0.424205 13.5102L0 12.2814ZM3.41065 13.4587L2.98645 14.6876L4.71065 15.2828V13.4587H3.41065ZM3.41065 9.98801L3.89722 8.78251L2.11065 8.0614V9.98801H3.41065ZM4.532 10.4406H5.832V9.56343L5.01858 9.23511L4.532 10.4406ZM4.532 13.8458H3.232V14.7723L4.1078 15.0747L4.532 13.8458ZM8.06161 15.0643L7.63741 16.2931L9.36161 16.8883V15.0643H8.06161ZM8.06161 9.07028H9.36161V8.63549L9.10003 8.28818L8.06161 9.07028ZM0.698673 7.38365L4.72948 4.8148L3.33213 2.62221L-0.698673 5.19107L0.698673 7.38365ZM1.3 12.2814V6.28736H-1.3V12.2814H1.3ZM3.83485 12.2299L0.424205 11.0525L-0.424205 13.5102L2.98645 14.6876L3.83485 12.2299ZM4.71065 13.4587V9.98801H2.11065V13.4587H4.71065ZM2.92408 11.1935L4.04543 11.6461L5.01858 9.23511L3.89722 8.78251L2.92408 11.1935ZM3.232 10.4406V13.8458H5.832V10.4406H3.232ZM8.48582 13.8354L4.95621 12.617L4.1078 15.0747L7.63741 16.2931L8.48582 13.8354ZM6.76161 9.07028V15.0643H9.36161V9.07028H6.76161ZM2.99239 4.50061L7.0232 9.85239L9.10003 8.28818L5.06922 2.9364L2.99239 4.50061Z" fill="white" mask="url(#path-1-inside-1_57915_3657)"/>
6
+ <path d="M8.5625 14.2779V9.38818L13.5026 7.07375V11.9634L8.5625 14.2779Z" fill="white" stroke="white"/>
7
+ <path d="M8.21735 8.44534L4.80134 3.90984L9.81609 1.56045L13.2321 6.09596L8.21735 8.44534Z" fill="white" stroke="white"/>
8
+ </svg>
@@ -7,6 +7,7 @@
7
7
  :customColor="customColor"
8
8
  :noWrap="noWrap"
9
9
  :data-id="dataId"
10
+ :fontColor="fontColor"
10
11
  >
11
12
  {{ text }}
12
13
  </button-container>
@@ -34,12 +35,14 @@ const ButtonAttrs = {
34
35
  isDisabled: Boolean,
35
36
  minWidth: String,
36
37
  customColor: String,
38
+ fontColor: String,
37
39
  noWrap: Boolean
38
40
  }
39
41
  const ButtonContainer = styled('div', ButtonAttrs)`
40
42
  padding: 7px 15px;
41
43
  font-size: 13px;
42
- color: ${(props) => props.theme.colors.white};
44
+ color: ${(props) =>
45
+ props.fontColor ? props.fontColor : props.theme.colors.white};
43
46
  background-color: ${(props) =>
44
47
  props.isDisabled
45
48
  ? props.theme.colors.disabled
@@ -90,6 +93,9 @@ export default {
90
93
  required: false,
91
94
  default: null
92
95
  },
96
+ fontColor: {
97
+ required: false
98
+ },
93
99
  noWrap: {
94
100
  required: false,
95
101
  default: false
@@ -101,6 +101,8 @@
101
101
  <selectDropdown
102
102
  ref="dropdown"
103
103
  v-show="isDropdownOpen"
104
+ :position="dropdownPosition"
105
+ :offset="dropdownOffset"
104
106
  :hoveredIndex="hoveredIndex"
105
107
  :hoveredValue="hoveredValue"
106
108
  :isActive="isActive"
@@ -172,7 +174,10 @@ const selectorProps = {
172
174
  showBorder: Boolean
173
175
  }
174
176
  const Selector = styled('div', selectorProps)`
175
- ${(props) => props.selectWidth === '100%' ? 'width: 100%;' : `width: calc(${props.selectWidth} -
177
+ ${(props) =>
178
+ props.selectWidth === '100%'
179
+ ? 'width: 100%;'
180
+ : `width: calc(${props.selectWidth} -
176
181
  (
177
182
  ${CARET_WIDTH} +
178
183
  ${props.paddingLeft}
@@ -181,8 +186,7 @@ const Selector = styled('div', selectorProps)`
181
186
  );
182
187
  white-space: nowrap;
183
188
  text-overflow: ellipsis;
184
- overflow: hidden;`
185
- }
189
+ overflow: hidden;`}
186
190
  `
187
191
 
188
192
  const labelAttrs = { fontSize: String, fontColor: String }
@@ -280,13 +284,17 @@ const selectDropdownAttrs = {
280
284
  optionWidth: String,
281
285
  hoveredIndex: Number,
282
286
  hoveredValue: Number | String,
283
- selectedValue: Number | String
287
+ selectedValue: Number | String,
288
+ position: String,
289
+ offset: String
284
290
  }
285
291
  const selectDropdown = styled('div', selectDropdownAttrs)`
286
292
  box-sizing: border-box;
287
293
  z-index: ${(props) => (props.isActive ? '2' : '1')};
288
294
  position: absolute;
289
- top: 5px;
295
+ top: ${(props) => (props.position === 'bottom' ? props.offset : 'auto')};
296
+ bottom: ${(props) =>
297
+ props.position === 'top' ? `calc(100% + ${props.offset})` : 'auto'};
290
298
  border: ${BORDER_WIDTH} solid ${(props) => props.theme.colors.grey4};
291
299
  border-radius: 4px;
292
300
  display: flex;
@@ -390,6 +398,14 @@ export default {
390
398
  buttonFontColor: {
391
399
  required: false
392
400
  },
401
+ dropdownPosition: {
402
+ required: false,
403
+ default: 'bottom'
404
+ },
405
+ dropdownOffset: {
406
+ required: false,
407
+ default: '5px'
408
+ },
393
409
  dropdownBgColor: {
394
410
  required: false,
395
411
  default: 'grey5'
@@ -1,20 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
-
4
- <svg
5
- width="16"
6
- height="8"
7
- viewBox="0 0 16 8"
8
- version="1.1"
9
- id="svg5"
10
- xmlns="http://www.w3.org/2000/svg"
11
- xmlns:svg="http://www.w3.org/2000/svg">
12
- <g
13
- transform="translate(-55.350933,-93.588073)">
14
- <path
15
- fill="#000000"
16
- d="m 61.719348,100.39494 1.004406,0.0185 -0.0013,-2.679323 0.88345,-4.27e-4 c -0.0051,-0.01381 -0.01401,2.69128 -0.01401,2.69128 l 1.05348,-0.0159 -1.582401,1.44453 z m -6.368415,-0.817395 7.856738,-5.989472 7.616581,6.321372 -1.240034,1.266145 -6.409573,-5.185912 -6.581971,5.125212 z"
17
- id="path874"
18
- />
19
- </g>
20
- </svg>