@eturnity/eturnity_reusable_components 8.13.13-EPDM-14533.0 → 8.13.13-EPDM-11600.6

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.13.13-EPDM-14533.0",
3
+ "version": "8.13.13-EPDM-11600.6",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,4 +1,3 @@
1
- <svg fill="none" height="16" viewbox="12 12 16 16" width="16" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="20" cy="20" r="7"></circle>
3
- <path d="M24.9592 15.0408C22.2382 12.3197 17.7618 12.3197 15.0408 15.0408C12.3197 17.7618 12.3197 22.2382 15.0408 24.9592C17.7618 27.6803 22.2382 27.6803 24.9592 24.9592C27.6803 22.2382 27.6803 17.8495 24.9592 15.0408ZM23.6426 22.5016L22.4138 23.7304L19.9561 21.2727L17.4984 23.7304L16.2696 22.5016L18.7273 20.0439L16.2696 17.5862L17.4984 16.3574L19.9561 18.815L22.4138 16.3574L23.6426 17.5862L21.185 20.0439L23.6426 22.5016Z" fill="#FF5656"></path>
1
+ <svg width="22" height="21" viewBox="0 0 22 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.4389 3.06113C14.3574 -1.02038 7.64263 -1.02038 3.56113 3.06113C-0.520376 7.14263 -0.520376 13.8574 3.56113 17.9389C7.64263 22.0204 14.3574 22.0204 18.4389 17.9389C22.5204 13.8574 22.5204 7.2743 18.4389 3.06113ZM16.464 14.2524L14.6207 16.0956L10.9342 12.4091L7.24765 16.0956L5.40439 14.2524L9.09091 10.5658L5.40439 6.87931L7.24765 5.03605L10.9342 8.72257L14.6207 5.03605L16.464 6.87931L12.7774 10.5658L16.464 14.2524Z" fill="#FF5656"/>
4
3
  </svg>
@@ -311,12 +311,12 @@ const theme = (() => {
311
311
  borderColor: semanticColors.grey[300],
312
312
  },
313
313
  hover: {
314
- backgroundColor: semanticColors.blue[200],
314
+ backgroundColor: semanticColors.purple[100],
315
315
  textColor: semanticColors.purple[700],
316
316
  borderColor: semanticColors.grey[300],
317
317
  },
318
318
  active: {
319
- backgroundColor: semanticColors.blue[100],
319
+ backgroundColor: semanticColors.purple[50],
320
320
  textColor: semanticColors.purple[600],
321
321
  borderColor: semanticColors.grey[600],
322
322
  },
@@ -123,7 +123,11 @@
123
123
  return this.type === 'error_minor'
124
124
  },
125
125
  iconName() {
126
- return this.type === 'warning' ? 'warning_triangle' : 'info'
126
+ return this.type === 'warning'
127
+ ? 'warning_triangle'
128
+ : this.isErrorMinor
129
+ ? 'erase'
130
+ : 'info'
127
131
  },
128
132
  presetStyles() {
129
133
  // the types that doesn't have explicit border anyway have it transparent
@@ -142,8 +146,8 @@
142
146
  stylesCollection.iconColor = theme.semanticColors.teal[800]
143
147
  } else if (this.isErrorMinor) {
144
148
  stylesCollection.borderStyle = 'dashed'
145
- stylesCollection.borderColor = theme.colors.pureRed
146
- stylesCollection.iconColor = theme.colors.pureRed
149
+ stylesCollection.borderColor = theme.colors.grey4
150
+ stylesCollection.iconColor = theme.colors.red
147
151
  } else {
148
152
  stylesCollection.borderStyle = 'dashed'
149
153
  stylesCollection.borderColor = theme.colors.grey4
@@ -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:
@@ -73,6 +73,20 @@ Disabled.args = {
73
73
  showLinearUnitName: false,
74
74
  }
75
75
 
76
+ export const DisabledAndPreDefined = Template.bind({})
77
+ DisabledAndPreDefined.args = {
78
+ placeholder: 'Enter Value',
79
+ disabled: true,
80
+ isPreDefined: true,
81
+ value: '',
82
+ inputWidth: '200px',
83
+ isError: false,
84
+ numberPrecision: 0,
85
+ noBorder: false,
86
+ textAlign: 'left',
87
+ showLinearUnitName: false,
88
+ }
89
+
76
90
  export const LinearUnit = Template.bind({})
77
91
  LinearUnit.args = {
78
92
  placeholder: 'Enter Value',
@@ -43,7 +43,6 @@
43
43
  :color-mode="colorMode"
44
44
  :data-id="inputDataId"
45
45
  :data-qa-id="dataQaId"
46
- :disabled="disabled"
47
46
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
48
47
  :font-size="fontSize"
49
48
  :has-label-slot="hasLabelSlot"
@@ -53,6 +52,7 @@
53
52
  :is-disabled="disabled"
54
53
  :is-error="isError"
55
54
  :is-interactive="isInteractive"
55
+ :is-pre-defined="isPreDefined"
56
56
  :min-width="minWidth"
57
57
  :no-border="noBorder"
58
58
  :placeholder="displayedPlaceholder"
@@ -133,7 +133,7 @@
133
133
  </ArrowButton>
134
134
  </ArrowControls>
135
135
  </InputWrapper>
136
- <ErrorMessage v-if="isError">{{ errorMessage }}</ErrorMessage>
136
+ <ErrorMessage v-if="isError && errorMessage">{{ errorMessage }}</ErrorMessage>
137
137
  </Container>
138
138
  </template>
139
139
 
@@ -195,6 +195,7 @@
195
195
  slotSize: String,
196
196
  inputHeight: String,
197
197
  isInteractive: Boolean,
198
+ isPreDefined: Boolean,
198
199
  alignItems: String,
199
200
  labelFontColor: String,
200
201
  labelFontWeight: String,
@@ -255,7 +256,7 @@
255
256
  color: ${(props) =>
256
257
  props.isError
257
258
  ? props.theme.colors.grey6
258
- : props.isDisabled
259
+ : props.isDisabled && !props.isPreDefined
259
260
  ? props.colorMode === 'transparent'
260
261
  ? props.theme.colors.white
261
262
  : props.theme.colors.grey2
@@ -529,6 +530,11 @@
529
530
  required: false,
530
531
  default: 0,
531
532
  },
533
+ isPreDefined: {
534
+ type: Boolean,
535
+ required: false,
536
+ default: false,
537
+ },
532
538
  minDecimals: {
533
539
  type: Number,
534
540
  required: false,
@@ -649,12 +655,18 @@
649
655
  required: false,
650
656
  default: '',
651
657
  },
658
+ labelDataTestId: {
659
+ type: String,
660
+ required: false,
661
+ default: '',
662
+ },
652
663
  inputDataId: {
653
664
  type: String,
654
665
  required: false,
655
666
  default: '',
656
667
  },
657
668
  dataQaId: {
669
+ type: String,
658
670
  required: false,
659
671
  default: '',
660
672
  },
@@ -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,
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <SpinnerContainer v-if="fullWidth" data-test-id="spinner_full_container">
3
3
  <Container>
4
- <SpinnerWrapper data-test-id="spinner_full_wrapper" :size="size">
4
+ <SpinnerWrapper data-test-id="spinner_full_wrapper">
5
5
  <img
6
6
  :class="{ white: isWhite }"
7
7
  data-test-id="spinner_full_icon"
@@ -16,7 +16,7 @@
16
16
  data-test-id="spinner_container"
17
17
  :limited-to-modal="limitedToModal"
18
18
  >
19
- <SpinnerWrapper data-test-id="spinner_wrapper" :size="size">
19
+ <SpinnerWrapper data-test-id="spinner_wrapper">
20
20
  <img
21
21
  :class="{ white: isWhite }"
22
22
  data-test-id="spinner_full_icon"
@@ -55,7 +55,7 @@
55
55
  width: ${(props) => (props.limitedToModal ? '100%' : 'inherit')};
56
56
  `
57
57
 
58
- const SpinnerWrapper = styled('div', { size: String })`
58
+ const SpinnerWrapper = styled.div`
59
59
  width: ${(props) => (props.size ? props.size : '60px')};
60
60
  height: auto;
61
61