@eturnity/eturnity_reusable_components 8.10.3-EPDM-11600.4 → 8.10.3-EPDM-14533.1

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.10.3-EPDM-11600.4",
3
+ "version": "8.10.3-EPDM-14533.1",
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>
@@ -12,7 +12,7 @@
12
12
  <RCIcon
13
13
  :color="iconColor ? iconColor : presetStyles.iconColor"
14
14
  data-test-id="info_card_icon"
15
- :name="isErrorMinor ? 'erase' : 'info'"
15
+ name="info"
16
16
  size="24px"
17
17
  />
18
18
  <TextContainer data-test-id="info_card_text_container">
@@ -138,8 +138,8 @@
138
138
  stylesCollection.iconColor = theme.colors.white
139
139
  } else if (this.isErrorMinor) {
140
140
  stylesCollection.borderStyle = 'dashed'
141
- stylesCollection.borderColor = theme.colors.grey4
142
- stylesCollection.iconColor = theme.colors.red
141
+ stylesCollection.borderColor = theme.colors.pureRed
142
+ stylesCollection.iconColor = theme.colors.pureRed
143
143
  } else {
144
144
  stylesCollection.borderStyle = 'dashed'
145
145
  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',
@@ -42,6 +42,7 @@
42
42
  :color-mode="colorMode"
43
43
  :data-id="inputDataId"
44
44
  :data-qa-id="dataQaId"
45
+ :disabled="disabled"
45
46
  :font-color="colorMode === 'transparent' ? 'white' : fontColor"
46
47
  :font-size="fontSize"
47
48
  :has-label-slot="hasLabelSlot"
@@ -51,7 +52,6 @@
51
52
  :is-disabled="disabled"
52
53
  :is-error="isError"
53
54
  :is-interactive="isInteractive"
54
- :is-pre-defined="isPreDefined"
55
55
  :min-width="minWidth"
56
56
  :no-border="noBorder"
57
57
  :placeholder="displayedPlaceholder"
@@ -132,7 +132,7 @@
132
132
  </ArrowButton>
133
133
  </ArrowControls>
134
134
  </InputWrapper>
135
- <ErrorMessage v-if="isError && errorMessage">{{ errorMessage }}</ErrorMessage>
135
+ <ErrorMessage v-if="isError">{{ errorMessage }}</ErrorMessage>
136
136
  </Container>
137
137
  </template>
138
138
 
@@ -194,7 +194,6 @@
194
194
  slotSize: String,
195
195
  inputHeight: String,
196
196
  isInteractive: Boolean,
197
- isPreDefined: Boolean,
198
197
  alignItems: String,
199
198
  labelFontColor: String,
200
199
  labelFontWeight: String,
@@ -255,7 +254,7 @@
255
254
  color: ${(props) =>
256
255
  props.isError
257
256
  ? props.theme.colors.grey6
258
- : props.isDisabled && !props.isPreDefined
257
+ : props.isDisabled
259
258
  ? props.colorMode === 'transparent'
260
259
  ? props.theme.colors.white
261
260
  : props.theme.colors.grey2
@@ -525,11 +524,6 @@
525
524
  required: false,
526
525
  default: 0,
527
526
  },
528
- isPreDefined: {
529
- type: Boolean,
530
- required: false,
531
- default: false,
532
- },
533
527
  minDecimals: {
534
528
  type: Number,
535
529
  required: false,
@@ -650,18 +644,12 @@
650
644
  required: false,
651
645
  default: '',
652
646
  },
653
- labelDataTestId: {
654
- type: String,
655
- required: false,
656
- default: '',
657
- },
658
647
  inputDataId: {
659
648
  type: String,
660
649
  required: false,
661
650
  default: '',
662
651
  },
663
652
  dataQaId: {
664
- type: String,
665
653
  required: false,
666
654
  default: '',
667
655
  },
@@ -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