@eturnity/eturnity_reusable_components 8.49.2-EPDM-16285.0 → 8.49.3
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/dist/main.es24.js +13 -1
- package/dist/main.es9.js +8 -2
- package/package.json +1 -1
- package/src/components/accordion/Accordion.stories.js +0 -4
- package/src/components/buttons/closeButton/index.vue +11 -1
- package/src/components/deleteIcon/index.vue +11 -1
- package/src/components/infoText/index.vue +12 -0
- package/src/components/inputs/select/index.vue +2 -8
- package/src/components/inputs/textAreaInput/index.vue +6 -1
- package/src/components/tag/conversionTag/index.vue +6 -1
- package/src/components/threeDots/index.vue +12 -0
- package/src/components/styledText/index.js +0 -76
package/dist/main.es24.js
CHANGED
|
@@ -214,6 +214,16 @@ const _sfc_main = {
|
|
|
214
214
|
type: Boolean,
|
|
215
215
|
default: false,
|
|
216
216
|
required: false
|
|
217
|
+
},
|
|
218
|
+
dataId: {
|
|
219
|
+
required: false,
|
|
220
|
+
default: "",
|
|
221
|
+
type: String
|
|
222
|
+
},
|
|
223
|
+
dataQaId: {
|
|
224
|
+
required: false,
|
|
225
|
+
default: "",
|
|
226
|
+
type: String
|
|
217
227
|
}
|
|
218
228
|
},
|
|
219
229
|
setup(props) {
|
|
@@ -457,6 +467,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
457
467
|
const _component_PageContainer = resolveComponent("PageContainer");
|
|
458
468
|
return openBlock(), createBlock(_component_PageContainer, {
|
|
459
469
|
ref: "container",
|
|
470
|
+
"data-id": $props.dataId,
|
|
471
|
+
"data-qa-id": $props.dataQaId,
|
|
460
472
|
"data-test-id": "infoText_container",
|
|
461
473
|
type: $props.type,
|
|
462
474
|
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
@@ -535,7 +547,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
535
547
|
_: 3
|
|
536
548
|
}, 8, ["style"])])) : createCommentVNode("", true)]),
|
|
537
549
|
_: 3
|
|
538
|
-
}, 8, ["type"]);
|
|
550
|
+
}, 8, ["data-id", "data-qa-id", "type"]);
|
|
539
551
|
}
|
|
540
552
|
const InfoText = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
541
553
|
export {
|
package/dist/main.es9.js
CHANGED
|
@@ -39,6 +39,11 @@ const _sfc_main = {
|
|
|
39
39
|
dataId: {
|
|
40
40
|
type: String,
|
|
41
41
|
default: ""
|
|
42
|
+
},
|
|
43
|
+
dataQaId: {
|
|
44
|
+
required: false,
|
|
45
|
+
default: "",
|
|
46
|
+
type: String
|
|
42
47
|
}
|
|
43
48
|
},
|
|
44
49
|
computed: {
|
|
@@ -58,7 +63,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
63
|
const _component_TextContainer = resolveComponent("TextContainer");
|
|
59
64
|
const _component_TagContainer = resolveComponent("TagContainer");
|
|
60
65
|
return openBlock(), createBlock(_component_TagContainer, {
|
|
61
|
-
"data-id": $props.dataId
|
|
66
|
+
"data-id": $props.dataId,
|
|
67
|
+
"data-qa-id": $props.dataQaId
|
|
62
68
|
}, {
|
|
63
69
|
default: withCtx(() => [createVNode(_component_RcIcon, {
|
|
64
70
|
color: $options.getIconColor,
|
|
@@ -70,7 +76,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
70
76
|
_: 1
|
|
71
77
|
})]),
|
|
72
78
|
_: 1
|
|
73
|
-
}, 8, ["data-id"]);
|
|
79
|
+
}, 8, ["data-id", "data-qa-id"]);
|
|
74
80
|
}
|
|
75
81
|
const ConversionTag = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
76
82
|
export {
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Accordion from './index.vue'
|
|
2
|
-
import theme from '@/assets/theme'
|
|
3
2
|
|
|
4
3
|
export default {
|
|
5
4
|
title: 'Accordion',
|
|
@@ -27,9 +26,6 @@ const Template = (args, { argTypes }) => ({
|
|
|
27
26
|
</div>
|
|
28
27
|
</template>
|
|
29
28
|
</Accordion>`,
|
|
30
|
-
provide: {
|
|
31
|
-
theme,
|
|
32
|
-
},
|
|
33
29
|
})
|
|
34
30
|
|
|
35
31
|
export const Default = Template.bind({})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Wrapper>
|
|
3
|
-
<Container>
|
|
3
|
+
<Container :data-id="dataId" :data-qa-id="dataQaId">
|
|
4
4
|
<LeftLine :color="color" />
|
|
5
5
|
<RightLine :color="color" />
|
|
6
6
|
</Container>
|
|
@@ -57,6 +57,16 @@
|
|
|
57
57
|
required: false,
|
|
58
58
|
default: '',
|
|
59
59
|
},
|
|
60
|
+
dataId: {
|
|
61
|
+
required: false,
|
|
62
|
+
default: '',
|
|
63
|
+
type: String,
|
|
64
|
+
},
|
|
65
|
+
dataQaId: {
|
|
66
|
+
required: false,
|
|
67
|
+
default: '',
|
|
68
|
+
type: String,
|
|
69
|
+
},
|
|
60
70
|
},
|
|
61
71
|
}
|
|
62
72
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Wrapper :is-disabled="isDisabled">
|
|
2
|
+
<Wrapper :data-id="dataId" :data-qa-id="dataQaId" :is-disabled="isDisabled">
|
|
3
3
|
<DeleteIconRed class="icon-red" :hover-bg="hoverBg" />
|
|
4
4
|
<DeleteIconGray class="icon-gray" />
|
|
5
5
|
</Wrapper>
|
|
@@ -73,6 +73,16 @@
|
|
|
73
73
|
required: false,
|
|
74
74
|
default: '',
|
|
75
75
|
},
|
|
76
|
+
dataId: {
|
|
77
|
+
required: false,
|
|
78
|
+
default: '',
|
|
79
|
+
type: String,
|
|
80
|
+
},
|
|
81
|
+
dataQaId: {
|
|
82
|
+
required: false,
|
|
83
|
+
default: '',
|
|
84
|
+
type: String,
|
|
85
|
+
},
|
|
76
86
|
},
|
|
77
87
|
}
|
|
78
88
|
</script>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<PageContainer
|
|
3
3
|
ref="container"
|
|
4
|
+
:data-id="dataId"
|
|
5
|
+
:data-qa-id="dataQaId"
|
|
4
6
|
data-test-id="infoText_container"
|
|
5
7
|
:type="type"
|
|
6
8
|
@click=";(isMobile || openTrigger === 'onClick') && toggleInfo()"
|
|
@@ -329,6 +331,16 @@
|
|
|
329
331
|
default: false,
|
|
330
332
|
required: false,
|
|
331
333
|
},
|
|
334
|
+
dataId: {
|
|
335
|
+
required: false,
|
|
336
|
+
default: '',
|
|
337
|
+
type: String,
|
|
338
|
+
},
|
|
339
|
+
dataQaId: {
|
|
340
|
+
required: false,
|
|
341
|
+
default: '',
|
|
342
|
+
type: String,
|
|
343
|
+
},
|
|
332
344
|
},
|
|
333
345
|
setup(props) {
|
|
334
346
|
const isVisible = ref(false)
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
: 'eturnityGrey'
|
|
26
26
|
"
|
|
27
27
|
:font-size="fontSize"
|
|
28
|
-
:font-weight="labelFontWeight"
|
|
29
28
|
>{{ label }}
|
|
30
29
|
<IsRequiredLabelStar v-if="isRequiredLabel" />
|
|
31
30
|
<OptionalLabel v-if="labelOptional">
|
|
@@ -288,14 +287,14 @@
|
|
|
288
287
|
overflow: hidden;`}
|
|
289
288
|
`
|
|
290
289
|
|
|
291
|
-
const labelAttrs = { fontSize: String, fontColor: String
|
|
290
|
+
const labelAttrs = { fontSize: String, fontColor: String }
|
|
292
291
|
const InputLabel = styled('div', labelAttrs)`
|
|
293
292
|
color: ${(props) =>
|
|
294
293
|
props.theme.colors[props.fontColor]
|
|
295
294
|
? props.theme.colors[props.fontColor]
|
|
296
295
|
: props.fontColor};
|
|
297
296
|
font-size: ${(props) => props.fontSize};
|
|
298
|
-
font-weight:
|
|
297
|
+
font-weight: 700;
|
|
299
298
|
`
|
|
300
299
|
const OptionalLabel = styled.span`
|
|
301
300
|
font-weight: 300;
|
|
@@ -540,11 +539,6 @@
|
|
|
540
539
|
label: {
|
|
541
540
|
required: false,
|
|
542
541
|
},
|
|
543
|
-
labelFontWeight: {
|
|
544
|
-
required: false,
|
|
545
|
-
default: '700',
|
|
546
|
-
type: String,
|
|
547
|
-
},
|
|
548
542
|
isRequiredLabel: {
|
|
549
543
|
required: false,
|
|
550
544
|
default: false,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
:is-error="isError"
|
|
19
19
|
>
|
|
20
20
|
<textarea
|
|
21
|
-
:data-id="inputDataId"
|
|
21
|
+
:data-id="inputDataId || dataId"
|
|
22
22
|
:data-qa-id="dataQaId"
|
|
23
23
|
:disabled="isDisabled"
|
|
24
24
|
:placeholder="placeholder"
|
|
@@ -192,6 +192,11 @@
|
|
|
192
192
|
required: false,
|
|
193
193
|
default: '',
|
|
194
194
|
},
|
|
195
|
+
dataId: {
|
|
196
|
+
required: false,
|
|
197
|
+
default: '',
|
|
198
|
+
type: String,
|
|
199
|
+
},
|
|
195
200
|
dataQaId: {
|
|
196
201
|
required: false,
|
|
197
202
|
default: '',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<TagContainer :data-id="dataId">
|
|
2
|
+
<TagContainer :data-id="dataId" :data-qa-id="dataQaId">
|
|
3
3
|
<RcIcon
|
|
4
4
|
:color="getIconColor"
|
|
5
5
|
:hovered-color="getIconColor"
|
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
type: String,
|
|
52
52
|
default: '',
|
|
53
53
|
},
|
|
54
|
+
dataQaId: {
|
|
55
|
+
required: false,
|
|
56
|
+
default: '',
|
|
57
|
+
type: String,
|
|
58
|
+
},
|
|
54
59
|
},
|
|
55
60
|
computed: {
|
|
56
61
|
getIconColor() {
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
<PageContainer
|
|
3
3
|
ref="pageContainer"
|
|
4
4
|
:activated="isOpen"
|
|
5
|
+
:data-id="dataId"
|
|
6
|
+
:data-qa-id="dataQaId"
|
|
5
7
|
:hovered-background-color="hoveredBackgroundColor"
|
|
6
8
|
@click="toggleButton()"
|
|
7
9
|
>
|
|
@@ -315,6 +317,16 @@
|
|
|
315
317
|
type: String,
|
|
316
318
|
default: theme.colors.grey5,
|
|
317
319
|
},
|
|
320
|
+
dataId: {
|
|
321
|
+
required: false,
|
|
322
|
+
default: '',
|
|
323
|
+
type: String,
|
|
324
|
+
},
|
|
325
|
+
dataQaId: {
|
|
326
|
+
required: false,
|
|
327
|
+
default: '',
|
|
328
|
+
type: String,
|
|
329
|
+
},
|
|
318
330
|
},
|
|
319
331
|
data() {
|
|
320
332
|
return {
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import styled from 'vue3-styled-components'
|
|
2
|
-
|
|
3
|
-
const TEXT_VARIANTS = {
|
|
4
|
-
HEADING_MEDIUM: 'heading-medium',
|
|
5
|
-
HEADING_LARGE: 'heading-large',
|
|
6
|
-
BODY_SMALL: 'body-small',
|
|
7
|
-
BODY_MEDIUM: 'body-medium',
|
|
8
|
-
BODY_LARGE: 'body-large',
|
|
9
|
-
SUBHEADING_SMALL: 'subheading-small',
|
|
10
|
-
SUBHEADING_MEDIUM: 'subheading-medium',
|
|
11
|
-
SUBHEADING_LARGE: 'subheading-large',
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const textVariants = {
|
|
15
|
-
[TEXT_VARIANTS.HEADING_MEDIUM]: {
|
|
16
|
-
fontSize: '20px',
|
|
17
|
-
fontWeight: '500',
|
|
18
|
-
lineHeight: '130%',
|
|
19
|
-
letterSpacing: '-0.3px',
|
|
20
|
-
},
|
|
21
|
-
[TEXT_VARIANTS.HEADING_LARGE]: {
|
|
22
|
-
fontSize: '24px',
|
|
23
|
-
fontWeight: '500',
|
|
24
|
-
lineHeight: '130%',
|
|
25
|
-
letterSpacing: '-0.36px',
|
|
26
|
-
},
|
|
27
|
-
[TEXT_VARIANTS.SUBHEADING_SMALL]: {
|
|
28
|
-
fontSize: '12px',
|
|
29
|
-
fontWeight: '500',
|
|
30
|
-
lineHeight: '140%',
|
|
31
|
-
letterSpacing: '-0.12px',
|
|
32
|
-
},
|
|
33
|
-
[TEXT_VARIANTS.SUBHEADING_MEDIUM]: {
|
|
34
|
-
fontSize: '14px',
|
|
35
|
-
fontWeight: '500',
|
|
36
|
-
lineHeight: '140%',
|
|
37
|
-
letterSpacing: '-0.14px',
|
|
38
|
-
},
|
|
39
|
-
[TEXT_VARIANTS.SUBHEADING_LARGE]: {
|
|
40
|
-
fontSize: '16px',
|
|
41
|
-
fontWeight: '500',
|
|
42
|
-
lineHeight: '140%',
|
|
43
|
-
letterSpacing: '-0.16px',
|
|
44
|
-
},
|
|
45
|
-
[TEXT_VARIANTS.BODY_SMALL]: {
|
|
46
|
-
fontSize: '12px',
|
|
47
|
-
fontWeight: '400',
|
|
48
|
-
lineHeight: '150%',
|
|
49
|
-
},
|
|
50
|
-
[TEXT_VARIANTS.BODY_MEDIUM]: {
|
|
51
|
-
fontSize: '14px',
|
|
52
|
-
fontWeight: '400',
|
|
53
|
-
lineHeight: '150%',
|
|
54
|
-
},
|
|
55
|
-
[TEXT_VARIANTS.BODY_LARGE]: {
|
|
56
|
-
fontSize: '16px',
|
|
57
|
-
fontWeight: '400',
|
|
58
|
-
lineHeight: '150%',
|
|
59
|
-
},
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const StyledText = styled('div', {
|
|
63
|
-
fontColor: String,
|
|
64
|
-
type: String,
|
|
65
|
-
})`
|
|
66
|
-
color: ${(props) => props.fontColor};
|
|
67
|
-
font-style: normal;
|
|
68
|
-
|
|
69
|
-
font-size: ${(props) => textVariants[props.type]?.fontSize ?? '14px'};
|
|
70
|
-
font-weight: ${(props) => textVariants[props.type]?.fontWeight ?? '400'};
|
|
71
|
-
line-height: ${(props) => textVariants[props.type]?.lineHeight ?? '150%'};
|
|
72
|
-
letter-spacing: ${(props) =>
|
|
73
|
-
textVariants[props.type]?.letterSpacing ?? 'normal'};
|
|
74
|
-
`
|
|
75
|
-
|
|
76
|
-
export default StyledText
|