@eturnity/eturnity_reusable_components 8.26.11--EPDM-16005.1 → 8.26.11-EPDM-11600.15

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.
@@ -16,12 +16,9 @@ export const GraphSection = styled('div', { width: String, height: String })`
16
16
  display: flex;
17
17
  `
18
18
 
19
- export const YAxis = styled('div', { width: String, height: String })`
19
+ export const YAxis = styled('div', { width: String })`
20
20
  width: ${(props) => props.width};
21
- display: flex;
22
- flex-direction: column;
23
21
  position: relative;
24
- height: ${(props) => props.height};
25
22
  `
26
23
 
27
24
  export const YAxisRow = styled('div', { percentage: Number })`
@@ -29,10 +26,13 @@ export const YAxisRow = styled('div', { percentage: Number })`
29
26
  align-items: center;
30
27
  width: 100%;
31
28
  position: absolute;
32
- height: 0;
29
+ height: 1px;
33
30
  bottom: ${(props) =>
34
31
  Number.isFinite(props.percentage) ? `${props.percentage}%` : '0'};
35
- transform: translateY(50%);
32
+ ${(props) =>
33
+ Number.isFinite(props.percentage) && props.percentage === 100
34
+ ? 'transform: translateY(1px)'
35
+ : ''};
36
36
  `
37
37
 
38
38
  export const YAxisLabel = styled.div`
@@ -50,25 +50,24 @@ export const YAxisLine = styled('div', { yAxisWidth: String })`
50
50
  right: -10px;
51
51
  left: calc(${(props) => props.yAxisWidth} - 10px);
52
52
  height: 1px;
53
- background-color: rgba(0, 0, 0, 0.1);
53
+ background-color: ${(props) => props.theme.semanticColors.grey[400]};
54
54
  width: 12px;
55
55
  z-index: 0;
56
- top: 50%;
57
- transform: translateY(-50%);
58
56
  `
59
57
 
60
- export const YAxisTitleWrapper = styled('div', { height: String })`
61
- position: absolute;
62
- left: -66px;
63
- top: ${(props) => props.height};
64
- transform: rotate(-90deg) translateX(50%);
65
- transform-origin: right;
58
+ export const YAxisTitleWrapper = styled('div')`
66
59
  font-size: 12px;
67
- color: ${(props) => props.theme.semanticColors.teal[600]};
68
- display: flex;
69
- align-items: center;
60
+ font-weight: 500;
61
+ color: ${(props) => props.theme.semanticColors.grey[700]};
70
62
  white-space: nowrap;
71
- font-family: ${(props) => props.theme.fonts.mainFont};
63
+ height: 0;
64
+ width: 0;
65
+ display: flex;
66
+ align-items: flex-start;
67
+ justify-content: center;
68
+ position: absolute;
69
+ top: 50%;
70
+ transform: rotate(-90deg);
72
71
  `
73
72
 
74
73
  export const ScrollContainer = styled('div', {
@@ -90,6 +89,8 @@ export const ChartContent = styled('div', {
90
89
  height: ${(props) => props.height};
91
90
  position: relative;
92
91
  background: ${(props) => props.theme.semanticColors.grey[100]};
92
+ border-bottom: ${(props) =>
93
+ `1px solid ${props.theme.semanticColors.grey[400]}`};
93
94
  ${(props) =>
94
95
  props.isScrollable
95
96
  ? ` min-width: ${props.totalBars * (props.barWidth + 8) + 24}px;`
@@ -179,7 +180,7 @@ export const XAxisLabelHighlight = styled.div`
179
180
  export const XAxisLine = styled.div`
180
181
  width: 1px;
181
182
  height: 6px;
182
- background-color: rgba(0, 0, 0, 0.1);
183
+ background-color: ${(props) => props.theme.semanticColors.grey[400]};
183
184
  position: absolute;
184
185
  bottom: -6px;
185
186
  left: 50%;
@@ -271,3 +272,13 @@ export const LoadingOverlay = styled('div')`
271
272
  align-items: center;
272
273
  z-index: 2;
273
274
  `
275
+
276
+ export const InfoCardContainer = styled('div')`
277
+ position: absolute;
278
+ top: 50%;
279
+ left: 50%;
280
+ transform: translate(-50%, -50%);
281
+ width: 500px;
282
+ max-width: 500px;
283
+ z-index: 2;
284
+ `
@@ -3,15 +3,15 @@ import InputNumber from './index.vue'
3
3
  export default {
4
4
  title: 'InputNumber',
5
5
  component: InputNumber,
6
- // argTypes: {},
7
6
  }
8
7
 
9
- const Template = (args, { argTypes }) => ({
8
+ const Template = (args) => ({
10
9
  // Components used in your story `template` are defined in the `components` object
11
10
  components: { InputNumber },
12
- // The story's `args` need to be mapped into the template through the `setup()` method
13
- props: Object.keys(argTypes),
14
- template: '<input-number v-bind="$props" />',
11
+ setup() {
12
+ return { args: args }
13
+ },
14
+ template: `<InputNumber v-bind="args" />`,
15
15
 
16
16
  // import InputNumber from "@eturnity/eturnity_reusable_components/src/components/inputs/inputNumber"
17
17
  // How to use:
@@ -50,7 +50,6 @@
50
50
  :color-mode="colorMode"
51
51
  :data-id="inputDataId"
52
52
  :data-qa-id="dataQaId"
53
- :disabled="disabled && !isDisabledStyledOnly"
54
53
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
55
54
  :font-size="fontSize"
56
55
  :has-label-slot="hasLabelSlot"
@@ -58,7 +57,7 @@
58
57
  :has-unit="unitName && !!unitName.length"
59
58
  :input-height="inputHeight"
60
59
  :is-border-error-only="isBorderErrorOnly"
61
- :is-disabled="disabled"
60
+ :is-disabled="disabled && !isDisabledStyledOnly"
62
61
  :is-error="isError"
63
62
  :is-info-border="isInfoBorder"
64
63
  :is-interactive="isInteractive"
@@ -96,7 +95,6 @@
96
95
  :color-mode="colorMode"
97
96
  :data-id="inputDataId"
98
97
  :data-qa-id="dataQaId"
99
- :disabled="disabled && !isDisabledStyledOnly"
100
98
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
101
99
  :font-size="fontSize"
102
100
  :has-label-slot="hasLabelSlot"
@@ -104,7 +102,7 @@
104
102
  :has-unit="unitName && !!unitName.length"
105
103
  :input-height="inputHeight"
106
104
  :is-border-error-only="isBorderErrorOnly"
107
- :is-disabled="disabled"
105
+ :is-disabled="disabled && !isDisabledStyledOnly"
108
106
  :is-error="isError"
109
107
  :is-info-border="isInfoBorder"
110
108
  :is-interactive="isInteractive"
@@ -748,6 +746,7 @@
748
746
  default: '',
749
747
  },
750
748
  dataQaId: {
749
+ type: String,
751
750
  required: false,
752
751
  default: '',
753
752
  },
@@ -5,7 +5,8 @@
5
5
  :has-info-text="!!infoText"
6
6
  :margin-bottom="marginBottom"
7
7
  >
8
- <span data-test-id="page_subtitle_text">
8
+ <span v-if="containsHtml" data-test-id="page_subtitle_text" v-html="text"></span>
9
+ <span v-else data-test-id="page_subtitle_text">
9
10
  {{ text }}
10
11
  </span>
11
12
  <InfoText
@@ -58,6 +59,11 @@
58
59
  required: true,
59
60
  type: String,
60
61
  },
62
+ containsHtml: {
63
+ required: false,
64
+ type: Boolean,
65
+ default: false,
66
+ },
61
67
  color: {
62
68
  required: false,
63
69
  type: String,
@@ -16,11 +16,7 @@
16
16
  :is-nested="isNested"
17
17
  :show-archived="showArchived"
18
18
  >
19
- <NestedContainer
20
- :data-id="getRowDataId({ inputType: item.inputType })"
21
- :data-qa-id="getRowDataId({ inputType: item.inputType })"
22
- :is-nested="isNested"
23
- >
19
+ <NestedContainer :is-nested="isNested">
24
20
  <NestedIcon
25
21
  v-if="
26
22
  isNested &&
@@ -552,11 +548,6 @@
552
548
  required: false,
553
549
  default: '',
554
550
  },
555
- rowDataId: {
556
- required: false,
557
- default: null,
558
- type: [Array],
559
- },
560
551
  },
561
552
  data() {
562
553
  return {
@@ -598,17 +589,6 @@
598
589
  },
599
590
  },
600
591
  methods: {
601
- getRowDataId({ inputType }) {
602
- if (!this.rowDataId) {
603
- return null
604
- }
605
-
606
- const rowDataId = this.rowDataId.find(
607
- (item) => item.inputType === inputType
608
- )
609
-
610
- return rowDataId ? rowDataId.dataId : null
611
- },
612
592
  toggleOpen(event) {
613
593
  if (
614
594
  this.disabled ||