@eturnity/eturnity_reusable_components 8.13.13-EPDM-11600.5 → 8.13.13-EPDM-14533.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": "8.13.13-EPDM-11600.5",
3
+ "version": "8.13.13-EPDM-14533.0",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -1,3 +1,4 @@
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"/>
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>
3
4
  </svg>
@@ -123,11 +123,7 @@
123
123
  return this.type === 'error_minor'
124
124
  },
125
125
  iconName() {
126
- return this.type === 'warning'
127
- ? 'warning_triangle'
128
- : this.isErrorMinor
129
- ? 'erase'
130
- : 'info'
126
+ return this.type === 'warning' ? 'warning_triangle' : 'info'
131
127
  },
132
128
  presetStyles() {
133
129
  // the types that doesn't have explicit border anyway have it transparent
@@ -146,8 +142,8 @@
146
142
  stylesCollection.iconColor = theme.semanticColors.teal[800]
147
143
  } else if (this.isErrorMinor) {
148
144
  stylesCollection.borderStyle = 'dashed'
149
- stylesCollection.borderColor = theme.colors.grey4
150
- stylesCollection.iconColor = theme.colors.red
145
+ stylesCollection.borderColor = theme.colors.pureRed
146
+ stylesCollection.iconColor = theme.colors.pureRed
151
147
  } else {
152
148
  stylesCollection.borderStyle = 'dashed'
153
149
  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: {},
6
7
  }
7
8
 
8
- const Template = (args) => ({
9
+ const Template = (args, { argTypes }) => ({
9
10
  // Components used in your story `template` are defined in the `components` object
10
11
  components: { InputNumber },
11
- setup() {
12
- return { args: args }
13
- },
14
- template: `<InputNumber v-bind="args" />`,
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" />',
15
15
 
16
16
  // import InputNumber from "@eturnity/eturnity_reusable_components/src/components/inputs/inputNumber"
17
17
  // How to use:
@@ -73,20 +73,6 @@ 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
-
90
76
  export const LinearUnit = Template.bind({})
91
77
  LinearUnit.args = {
92
78
  placeholder: 'Enter Value',
@@ -43,6 +43,7 @@
43
43
  :color-mode="colorMode"
44
44
  :data-id="inputDataId"
45
45
  :data-qa-id="dataQaId"
46
+ :disabled="disabled"
46
47
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
47
48
  :font-size="fontSize"
48
49
  :has-label-slot="hasLabelSlot"
@@ -52,7 +53,6 @@
52
53
  :is-disabled="disabled"
53
54
  :is-error="isError"
54
55
  :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 }}</ErrorMessage>
136
+ <ErrorMessage v-if="isError">{{ errorMessage }}</ErrorMessage>
137
137
  </Container>
138
138
  </template>
139
139
 
@@ -195,7 +195,6 @@
195
195
  slotSize: String,
196
196
  inputHeight: String,
197
197
  isInteractive: Boolean,
198
- isPreDefined: Boolean,
199
198
  alignItems: String,
200
199
  labelFontColor: String,
201
200
  labelFontWeight: String,
@@ -256,7 +255,7 @@
256
255
  color: ${(props) =>
257
256
  props.isError
258
257
  ? props.theme.colors.grey6
259
- : props.isDisabled && !props.isPreDefined
258
+ : props.isDisabled
260
259
  ? props.colorMode === 'transparent'
261
260
  ? props.theme.colors.white
262
261
  : props.theme.colors.grey2
@@ -530,11 +529,6 @@
530
529
  required: false,
531
530
  default: 0,
532
531
  },
533
- isPreDefined: {
534
- type: Boolean,
535
- required: false,
536
- default: false,
537
- },
538
532
  minDecimals: {
539
533
  type: Number,
540
534
  required: false,
@@ -655,18 +649,12 @@
655
649
  required: false,
656
650
  default: '',
657
651
  },
658
- labelDataTestId: {
659
- type: String,
660
- required: false,
661
- default: '',
662
- },
663
652
  inputDataId: {
664
653
  type: String,
665
654
  required: false,
666
655
  default: '',
667
656
  },
668
657
  dataQaId: {
669
- type: String,
670
658
  required: false,
671
659
  default: '',
672
660
  },
@@ -5,8 +5,7 @@
5
5
  :has-info-text="!!infoText"
6
6
  :margin-bottom="marginBottom"
7
7
  >
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">
8
+ <span data-test-id="page_subtitle_text">
10
9
  {{ text }}
11
10
  </span>
12
11
  <InfoText
@@ -59,11 +58,6 @@
59
58
  required: true,
60
59
  type: String,
61
60
  },
62
- containsHtml: {
63
- required: false,
64
- type: Boolean,
65
- default: false,
66
- },
67
61
  color: {
68
62
  required: false,
69
63
  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">
4
+ <SpinnerWrapper data-test-id="spinner_full_wrapper" :size="size">
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">
19
+ <SpinnerWrapper data-test-id="spinner_wrapper" :size="size">
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`
58
+ const SpinnerWrapper = styled('div', { size: String })`
59
59
  width: ${(props) => (props.size ? props.size : '60px')};
60
60
  height: auto;
61
61