@eturnity/eturnity_reusable_components 8.7.5-EPDM-12618.3 → 8.7.5-EPIC-8593

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.
Files changed (35) hide show
  1. package/package.json +3 -2
  2. package/src/Test.vue +12 -76
  3. package/src/assets/svgIcons/add_plus.svg +4 -0
  4. package/src/assets/svgIcons/checkmark_white.svg +4 -0
  5. package/src/assets/svgIcons/clenergy.svg +4 -0
  6. package/src/assets/svgIcons/clickable_info.svg +2 -2
  7. package/src/assets/svgIcons/clickable_info_white.svg +5 -0
  8. package/src/assets/svgIcons/erase_white.svg +4 -0
  9. package/src/assets/svgIcons/module.svg +2 -2
  10. package/src/assets/svgIcons/optimizer.svg +2 -5
  11. package/src/assets/svgIcons/order.svg +3 -0
  12. package/src/assets/svgIcons/question_mark.svg +3 -0
  13. package/src/assets/svgIcons/question_mark_white.svg +4 -0
  14. package/src/assets/svgIcons/reorder_string.svg +3 -0
  15. package/src/assets/svgIcons/switch_polarity.svg +5 -0
  16. package/src/assets/svgIcons/transparent_warning.svg +4 -0
  17. package/src/assets/svgIcons/warning_triangle.svg +3 -0
  18. package/src/assets/svgIcons/warning_triangle_white.svg +5 -0
  19. package/src/assets/theme.js +13 -1
  20. package/src/components/buttons/buttonIcon/index.vue +31 -6
  21. package/src/components/buttons/mainButton/MainButton.stories.js +13 -0
  22. package/src/components/buttons/mainButton/index.vue +45 -3
  23. package/src/components/infoLabel/index.vue +63 -0
  24. package/src/components/infoText/index.vue +168 -38
  25. package/src/components/infoText/infoText.spec.js +1 -1
  26. package/src/components/inputs/checkbox/index.vue +11 -2
  27. package/src/components/inputs/inputText/index.vue +3 -1
  28. package/src/components/modals/modal/index.vue +11 -1
  29. package/src/components/panelRangeInfo/index.vue +196 -0
  30. package/src/components/selectedOptions/index.vue +2 -12
  31. package/src/components/selectedOptions/selectedOptions.spec.js +1 -1
  32. package/src/components/tableDropdown/index.vue +4 -6
  33. package/src/components/tabsHeader/index.vue +75 -61
  34. package/src/components/stringDesign/DropdownMenu/index.vue +0 -1009
  35. /package/src/assets/svgIcons/{close_for_modals,_tool_tips.svg → close.svg} +0 -0
@@ -4,80 +4,94 @@
4
4
  <TabItem
5
5
  v-for="item in tabsData"
6
6
  :key="item.id"
7
+ :full-size="fullSize"
7
8
  :is-active="activeTab === item.id"
8
9
  @click="onTabClick({ id: item.id })"
9
10
  >
10
- {{ item.text }}
11
+ <div>{{ item.text }}</div>
12
+ <RCIcon v-if="item.hasError" name="warning" size="14px" />
11
13
  </TabItem>
12
14
  </TabsContainer>
13
15
  </PageContainer>
14
16
  </template>
15
17
 
16
18
  <script>
17
- // import RCTabsHeader from "@eturnity/eturnity_reusable_components/src/components/tabsHeader"
18
- // To use:
19
- // <RCTabsHeader
20
- // :activeTab="activeTabIndex" // should match the 'id'
21
- // :tabsData="[
22
- // {
23
- // text: 'Tab 1',
24
- // id: 0
25
- // },
26
- // {
27
- // text: 'Tab 1',
28
- // id: 1
29
- // }
30
- // ]"
31
- // />
32
- import styled from 'vue3-styled-components'
19
+ // import RCTabsHeader from "@eturnity/eturnity_reusable_components/src/components/tabsHeader"
20
+ // To use:
21
+ // <RCTabsHeader
22
+ // :activeTab="activeTabIndex" // should match the 'id'
23
+ // :tabsData="[
24
+ // {
25
+ // text: 'Tab 1',
26
+ // id: 0,
27
+ // hasError: true // optional
28
+ // },
29
+ // {
30
+ // text: 'Tab 1',
31
+ // id: 1,
32
+ // hasError: false // optional
33
+ // }
34
+ // ]"
35
+ // />
36
+ import styled from 'vue3-styled-components'
37
+ import RCIcon from '../icon'
33
38
 
34
- const PageContainer = styled.div``
39
+ const PageContainer = styled.div``
35
40
 
36
- const TabsContainer = styled.div`
37
- display: flex;
38
- cursor: pointer;
39
- width: 100%;
40
- `
41
+ const TabsContainer = styled.div`
42
+ display: flex;
43
+ cursor: pointer;
44
+ width: 100%;
41
45
 
42
- const TabAttrs = { isActive: Boolean }
43
- const TabItem = styled('div', TabAttrs)`
44
- padding: 10px 20px;
45
- font-size: 14px;
46
- font-weight: 700;
47
- background-color: ${(props) =>
48
- props.isActive ? props.theme.colors.grey5 : props.theme.colors.white};
49
- border-top: 3px solid
50
- ${(props) =>
51
- props.isActive
52
- ? props.theme.colors.brightBlue
53
- : props.theme.colors.grey4};
54
- flex-grow: 1;
55
- `
46
+ border-bottom: 1px solid ${(props) => props.theme.colors.purple7};
47
+ `
56
48
 
57
- export default {
58
- name: 'RCTabsHeader',
59
- components: {
60
- PageContainer,
61
- TabsContainer,
62
- TabItem
63
- },
64
- props: {
65
- tabsData: {
66
- required: true,
67
- type: Array
49
+ const TabAttrs = { isActive: Boolean, fullSize: Boolean }
50
+ const TabItem = styled('div', TabAttrs)`
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ gap: 8px;
55
+ padding: 10px 25px;
56
+ font-size: 14px;
57
+ font-weight: 400;
58
+ color: ${(props) =>
59
+ props.isActive ? props.theme.colors.purple6 : props.theme.colors.black};
60
+ border-bottom: ${(props) =>
61
+ props.isActive ? '1px solid' + props.theme.colors.purple6 : 'unset'};
62
+ flex-grow: ${(props) => (props.fullSize ? 1 : 0)};
63
+ `
64
+
65
+ export default {
66
+ name: 'RCTabsHeader',
67
+ components: {
68
+ PageContainer,
69
+ TabsContainer,
70
+ TabItem,
71
+ RCIcon,
72
+ },
73
+ props: {
74
+ tabsData: {
75
+ required: true,
76
+ type: Array,
77
+ },
78
+ activeTab: {
79
+ required: true,
80
+ type: Number,
81
+ },
82
+ fullSize: {
83
+ type: Boolean,
84
+ default: true,
85
+ },
86
+ },
87
+ emits: ['on-tab-change'],
88
+ methods: {
89
+ onTabClick({ id }) {
90
+ if (id === this.activeTab) {
91
+ return
92
+ }
93
+ this.$emit('on-tab-change', id)
94
+ },
68
95
  },
69
- activeTab: {
70
- required: true,
71
- type: Number
72
- }
73
- },
74
- methods: {
75
- onTabClick({ id }) {
76
- if (id === this.activeTab) {
77
- return
78
- }
79
- this.$emit('on-tab-change', id)
80
- }
81
96
  }
82
- }
83
97
  </script>