@eturnity/eturnity_reusable_components 7.35.2-EPDM-11226.3 → 7.35.2-EPDM-11386.2

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.35.2-EPDM-11226.3",
3
+ "version": "7.35.2-EPDM-11386.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
package/src/App.vue CHANGED
@@ -1,17 +1,21 @@
1
1
  <template>
2
- <ThemeProvider :style="{ height: '100%' }" :theme="getTheme()">
3
- <RouterView />
4
- </ThemeProvider>
2
+ <div>
3
+ ccninfnci
4
+ <!-- <ThemeProvider :style="{ height: '100%' }" :theme="getTheme()" /> -->
5
+ test
6
+ <IconCollection color="red" />
7
+ </div>
5
8
  </template>
6
9
 
7
10
  <script>
8
- import { ThemeProvider } from 'vue3-styled-components'
11
+ // import { ThemeProvider } from 'vue3-styled-components'
12
+ import IconCollection from './components/icon/iconCollection.vue'
9
13
  import theme from './assets/theme'
10
-
11
14
  export default {
12
15
  name: 'App',
13
16
  components: {
14
- ThemeProvider,
17
+ // ThemeProvider,
18
+ IconCollection,
15
19
  },
16
20
  methods: {
17
21
  getTheme() {
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="29" height="29" fill="#333" viewBox="0 0 29 29"><path d="m10.5 14 4-8 4 8z"/><path class='fix' fill="#ccc" d="m10.5 16 4 8 4-8z"/></svg>
@@ -0,0 +1,6 @@
1
+ <svg fill="#000000" height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
2
+ viewBox="0 0 512 512" xml:space="preserve">
3
+ <path d="M256,0C114.617,0,0,114.615,0,256s114.617,256,256,256s256-114.615,256-256S397.383,0,256,0z M224,320
4
+ c0,8.836-7.164,16-16,16h-32c-8.836,0-16-7.164-16-16V192c0-8.836,7.164-16,16-16h32c8.836,0,16,7.164,16,16V320z M352,320
5
+ c0,8.836-7.164,16-16,16h-32c-8.836,0-16-7.164-16-16V192c0-8.836,7.164-16,16-16h32c8.836,0,16,7.164,16,16V320z"/>
6
+ </svg>
@@ -35,6 +35,9 @@ const theme = {
35
35
  tablet: '768px',
36
36
  tabletLarge: '950px',
37
37
  },
38
+ fonts: {
39
+ mainFont: '"Figtree", sans-serif',
40
+ },
38
41
  borderRadius: '4px',
39
42
  }
40
43
 
@@ -111,10 +111,10 @@
111
111
  props.backgroundColor ? props.backgroundColor : 'transparent'};
112
112
  padding: ${(props) => (props.backgroundColor ? '3px' : '0')};
113
113
  }
114
- svg path {
114
+ svg path:not(.fix) {
115
115
  ${({ theme, color }) => color && `fill: ${theme.colors[color] || color};`}
116
116
  }
117
- &:hover svg path {
117
+ &:hover svg path:not(.fix) {
118
118
  ${({ theme, hoveredColor }) =>
119
119
  hoveredColor && `fill: ${theme.colors[hoveredColor] || hoveredColor};`}
120
120
  }
@@ -18,6 +18,7 @@
18
18
  :align-arrow="alignArrow"
19
19
  :half-computed-text-info-width="halfComputedTextInfoWidth"
20
20
  :icon-size="size"
21
+ :info-position="infoPosition"
21
22
  :max-width="maxWidth"
22
23
  :width="width"
23
24
  ><slot></slot>
@@ -44,10 +45,14 @@
44
45
  alignArrow: String,
45
46
  width: String,
46
47
  halfComputedTextInfoWidth: Number,
48
+ infoPosition: String,
47
49
  }
48
50
  const TextOverlay = styled('div', textAttrs)`
49
51
  position: absolute;
50
- top: ${(props) => 'calc(' + props.iconSize + ' + 15px)'};
52
+ ${(props) =>
53
+ props.infoPosition == 'top'
54
+ ? 'bottom : calc(' + props.iconSize + ' + 15px)'
55
+ : 'top : calc(' + props.iconSize + ' + 15px)'};
51
56
  ${(props) =>
52
57
  props.alignArrow === 'left'
53
58
  ? 'left: calc(' + props.iconSize + ' /2 - 18px)'
@@ -63,14 +68,17 @@
63
68
  font-weight: 400;
64
69
  line-height: normal;
65
70
  border-radius: 4px;
66
- z-index: 99;
71
+ z-index: 999;
67
72
  color: ${(props) => props.theme.colors.white};
68
73
 
69
74
  :before {
70
75
  content: '';
71
76
  background-color: ${(props) => props.theme.colors.black};
72
77
  position: absolute;
73
- top: 2px;
78
+
79
+ ${(props) =>
80
+ props.infoPosition == 'top' ? 'bottom : -10px' : 'top: 2px'};
81
+
74
82
  ${(props) =>
75
83
  props.alignArrow === 'left'
76
84
  ? 'left:40px;'
@@ -119,6 +127,10 @@
119
127
  required: false,
120
128
  default: '14px',
121
129
  },
130
+ infoPosition: {
131
+ required: false,
132
+ default: 'bottom',
133
+ },
122
134
  alignArrow: {
123
135
  required: false,
124
136
  default: 'center',
@@ -129,7 +141,7 @@
129
141
  },
130
142
  width: {
131
143
  required: false,
132
- default: '200px',
144
+ default: '165px',
133
145
  },
134
146
  maxWidth: {
135
147
  type: String,
@@ -0,0 +1,103 @@
1
+ <template>
2
+ <Container>
3
+ <RoundedTabLeft
4
+ :background-color="backgroundColor"
5
+ :border-radius="borderRadius"
6
+ />
7
+ <Tab
8
+ :background-color="backgroundColor"
9
+ :border-radius="borderRadius"
10
+ :height="height"
11
+ :width="width"
12
+ >
13
+ <slot></slot>
14
+ </Tab>
15
+ <RoundedTabRight
16
+ :background-color="backgroundColor"
17
+ :border-radius="borderRadius"
18
+ />
19
+ </Container>
20
+ </template>
21
+ <script>
22
+ import styled from 'vue3-styled-components'
23
+
24
+ const Container = styled.div`
25
+ position: relative;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ `
30
+ const RoundedTabLeft = styled('div', {
31
+ backgroundColor: String,
32
+ borderRadius: String,
33
+ })`
34
+ position:absolute;
35
+ bottom:0;
36
+ left:-${(prop) => prop.borderRadius}
37
+ background-color: ${(prop) => prop.backgroundColor};
38
+ width: ${(prop) => prop.borderRadius};
39
+ height: ${(prop) => prop.borderRadius};
40
+ -webkit-mask-image: radial-gradient(
41
+ circle at top left,
42
+ transparent 71%,
43
+ black 71%
44
+ );
45
+ `
46
+ const RoundedTabRight = styled('div', {
47
+ backgroundColor: String,
48
+ borderRadius: String,
49
+ })`
50
+ position:absolute;
51
+ bottom:0;
52
+ right:-${(prop) => prop.borderRadius}
53
+ background-color: ${(prop) => prop.backgroundColor};
54
+ width: ${(prop) => prop.borderRadius};
55
+ height: ${(prop) => prop.borderRadius};
56
+ -webkit-mask-image: radial-gradient(
57
+ circle at top right,
58
+ transparent 71%,
59
+ black 71%
60
+ );`
61
+ const Tab = styled('div', {
62
+ width: String,
63
+ height: String,
64
+ backgroundColor: String,
65
+ borderRadius: String,
66
+ })`
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: center;
70
+ background-color: ${(prop) => prop.backgroundColor};
71
+ width: ${(prop) => prop.width};
72
+ height: ${(prop) => prop.height};
73
+ border-radius: ${(prop) => prop.borderRadius} ${(prop) => prop.borderRadius}
74
+ 0 0;
75
+ `
76
+ export default {
77
+ name: 'SelectedOptions',
78
+ components: {
79
+ Container,
80
+ Tab,
81
+ RoundedTabLeft,
82
+ RoundedTabRight,
83
+ },
84
+ props: {
85
+ height: {
86
+ required: false,
87
+ default: '40px',
88
+ },
89
+ width: {
90
+ required: false,
91
+ default: '200px',
92
+ },
93
+ backgroundColor: {
94
+ required: false,
95
+ default: 'blue',
96
+ },
97
+ borderRadius: {
98
+ required: false,
99
+ default: '20px',
100
+ },
101
+ },
102
+ }
103
+ </script>