@eturnity/eturnity_reusable_components 8.22.23-EPDM-13618.0 → 8.22.23-EPDM-13618.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/dist/main.es12.js +2 -2
- package/dist/main.es13.js +3 -3
- package/dist/main.es14.js +2 -2
- package/dist/main.es15.js +221 -21
- package/dist/main.es16.js +56 -1048
- package/dist/main.es17.js +193 -221
- package/dist/main.es18.js +21 -96
- package/dist/main.es19.js +1056 -2
- package/dist/main.es20.js +184 -498
- package/dist/main.es21.js +94 -194
- package/dist/main.es22.js +2 -224
- package/dist/main.es23.js +536 -59
- package/dist/main.es24.js +2 -2
- package/dist/main.es375.js +1 -1
- package/dist/main.es377.js +21 -60
- package/dist/main.es378.js +60 -21
- package/dist/main.es5.js +3 -3
- package/dist/main.es6.js +4 -4
- package/dist/main.es9.js +1 -1
- package/package.json +1 -1
- package/src/components/dropdown/defaultProps.js +2 -2
- package/src/components/dropdown/dropdown.spec.js +55 -0
- package/src/components/dropdown/index.vue +11 -2
- package/src/components/progressBar/defaultProps.js +2 -2
- package/src/components/progressBar/index.vue +14 -3
- package/src/components/progressBar/progressBar.spec.js +52 -0
package/dist/main.es12.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import "./main.es3.js";
|
2
|
-
import { setupDevtoolsPlugin } from "./main.
|
3
|
-
import { shallowRef, unref, reactive, ref } from "./main.
|
2
|
+
import { setupDevtoolsPlugin } from "./main.es18.js";
|
3
|
+
import { shallowRef, unref, reactive, ref } from "./main.es19.js";
|
4
4
|
import { computed, nextTick, defineComponent, watch, inject, h, provide, watchEffect, getCurrentInstance } from "./main.es6.js";
|
5
5
|
/*!
|
6
6
|
* vue-router v4.2.2
|
package/dist/main.es13.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import styled from "./main.es7.js";
|
2
|
-
import PanelRangeInfo from "./main.
|
3
|
-
import IconCollection from "./main.
|
2
|
+
import PanelRangeInfo from "./main.es20.js";
|
3
|
+
import IconCollection from "./main.es21.js";
|
4
4
|
import "./main.es3.js";
|
5
|
-
import "./main.
|
5
|
+
import "./main.es22.js";
|
6
6
|
import _export_sfc from "./main.es11.js";
|
7
7
|
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, withDirectives, createElementVNode as createBaseVNode, Fragment } from "./main.es6.js";
|
8
8
|
import { vModelText } from "./main.es5.js";
|
package/dist/main.es14.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import styled from "./main.es7.js";
|
2
|
-
import InfoText from "./main.
|
2
|
+
import InfoText from "./main.es23.js";
|
3
3
|
import "./main.es3.js";
|
4
4
|
import _export_sfc from "./main.es11.js";
|
5
5
|
import { withKeys, withModifiers } from "./main.es5.js";
|
6
6
|
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
|
7
|
-
import { toDisplayString } from "./main.
|
7
|
+
import { toDisplayString } from "./main.es17.js";
|
8
8
|
const Container = styled.div`
|
9
9
|
display: inline-block;
|
10
10
|
`;
|
package/dist/main.es15.js
CHANGED
@@ -1,26 +1,226 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
import styled from "./main.es7.js";
|
2
|
+
import _sfc_main$1 from "./main.es24.js";
|
3
|
+
import theme from "./main.es8.js";
|
4
|
+
import "./main.es3.js";
|
5
|
+
import _export_sfc from "./main.es11.js";
|
6
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createCommentVNode, createTextVNode } from "./main.es6.js";
|
7
|
+
import { toDisplayString } from "./main.es17.js";
|
8
|
+
const PageContainer = styled.div``;
|
9
|
+
const ButtonAttrs = {
|
10
|
+
type: String,
|
11
|
+
isDisabled: Boolean,
|
12
|
+
minWidth: String,
|
13
|
+
noWrap: Boolean,
|
14
|
+
height: String,
|
15
|
+
variant: String,
|
16
|
+
buttonSize: String,
|
17
|
+
appTheme: String
|
18
|
+
};
|
19
|
+
const ButtonContainer = styled("div", ButtonAttrs)`
|
20
|
+
display: flex;
|
21
|
+
justify-content: center;
|
22
|
+
padding: ${(props) => {
|
23
|
+
var _a, _b, _c, _d;
|
24
|
+
return (_d = (_c = (_b = (_a = props.theme) == null ? void 0 : _a.mainButton) == null ? void 0 : _b.size) == null ? void 0 : _c[props.buttonSize]) == null ? void 0 : _d.padding;
|
25
|
+
}};
|
26
|
+
font-size: ${(props) => {
|
27
|
+
var _a, _b, _c, _d;
|
28
|
+
return (_d = (_c = (_b = (_a = props.theme) == null ? void 0 : _a.mainButton) == null ? void 0 : _b.size) == null ? void 0 : _c[props.buttonSize]) == null ? void 0 : _d.fontSize;
|
29
|
+
}};
|
30
|
+
color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.textColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.textColor};
|
31
|
+
background-color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.backgroundColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.backgroundColor};
|
32
|
+
border: ${(props) => {
|
33
|
+
const borderValue = props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.borderColor : props.theme.mainButton[props.appTheme][props.type][props.variant].default.borderColor;
|
34
|
+
return borderValue ? "1px solid " + borderValue : "none";
|
35
|
+
}};
|
36
|
+
border-radius: 4px;
|
37
|
+
text-align: center;
|
38
|
+
cursor: ${(props) => props.isDisabled ? "not-allowed" : "pointer"};
|
39
|
+
user-select: none;
|
40
|
+
${(props) => props.minWidth ? `min-width: ${props.minWidth};` : ""};
|
41
|
+
${(props) => props.noWrap ? `white-space: nowrap;` : ""};
|
42
|
+
height: ${(props) => props.height};
|
43
|
+
line-height: 1;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
background-color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.backgroundColor : props.theme.mainButton[props.appTheme][props.type][props.variant].hover.backgroundColor};
|
47
|
+
}
|
48
|
+
|
49
|
+
&:active {
|
50
|
+
background-color: ${(props) => props.isDisabled ? props.theme.mainButton[props.appTheme][props.type][props.variant].disabled.backgroundColor : props.theme.mainButton[props.appTheme][props.type][props.variant].active.backgroundColor};
|
51
|
+
}
|
52
|
+
`;
|
53
|
+
const AltAttrs = {
|
54
|
+
altStyle: Boolean,
|
55
|
+
color: String
|
56
|
+
};
|
57
|
+
styled("div", AltAttrs)`
|
58
|
+
background-color: ${(props) => props.color ? props.color : props.theme.colors.transparentWhite1};
|
59
|
+
padding: 7px;
|
60
|
+
height: 100%;
|
61
|
+
width: 30%;
|
62
|
+
justify-content: center;
|
63
|
+
display: flex;
|
64
|
+
align-items: center;
|
65
|
+
border-radius: 4px 0 0 4px;
|
66
|
+
color: ${(props) => props.theme.colors.white};
|
67
|
+
all: ${(props) => props.altStyle ? "" : "unset"};
|
68
|
+
`;
|
69
|
+
styled("span", AltAttrs)`
|
70
|
+
padding: ${(props) => props.altStyle ? "7px" : "0"};
|
71
|
+
all: ${(props) => props.altStyle ? "" : "unset"};
|
72
|
+
`;
|
73
|
+
const LabelAttrs = {
|
74
|
+
hasIcon: Boolean,
|
75
|
+
reverseDirection: Boolean
|
76
|
+
};
|
77
|
+
const LabelComponent = styled("span", LabelAttrs)`
|
78
|
+
display: flex;
|
79
|
+
flex-direction: ${(props) => props.reverseDirection ? "row-reverse" : "row"};
|
80
|
+
align-items: center;
|
81
|
+
justify-content: center;
|
82
|
+
gap: ${(props) => props.hasIcon ? "5px" : "0"};
|
83
|
+
`;
|
84
|
+
const _sfc_main = {
|
85
|
+
name: "MainButton",
|
86
|
+
components: {
|
87
|
+
Icon: _sfc_main$1,
|
88
|
+
LabelComponent,
|
89
|
+
PageContainer,
|
90
|
+
ButtonContainer
|
91
|
+
},
|
92
|
+
props: {
|
93
|
+
type: {
|
94
|
+
required: false,
|
95
|
+
default: "primary",
|
96
|
+
// primary, secondary, tertiary, ghost
|
97
|
+
type: String
|
98
|
+
},
|
99
|
+
variant: {
|
100
|
+
required: false,
|
101
|
+
default: "main",
|
102
|
+
// main, cancel
|
103
|
+
type: String
|
104
|
+
},
|
105
|
+
isDisabled: {
|
106
|
+
required: false,
|
107
|
+
default: false,
|
108
|
+
type: Boolean
|
109
|
+
},
|
110
|
+
icon: {
|
111
|
+
required: false,
|
112
|
+
default: null,
|
113
|
+
type: String
|
114
|
+
},
|
115
|
+
iconColor: {
|
116
|
+
required: false,
|
117
|
+
default: "",
|
118
|
+
type: String
|
119
|
+
},
|
120
|
+
iconLast: {
|
121
|
+
required: false,
|
122
|
+
default: false,
|
123
|
+
type: Boolean
|
124
|
+
},
|
125
|
+
iconAltStyle: {
|
126
|
+
required: false,
|
127
|
+
default: false,
|
128
|
+
type: Boolean
|
129
|
+
},
|
130
|
+
iconAltStyleColor: {
|
131
|
+
required: false,
|
132
|
+
default: null,
|
133
|
+
type: String
|
134
|
+
},
|
135
|
+
text: {
|
136
|
+
required: true,
|
137
|
+
type: String
|
138
|
+
},
|
139
|
+
noWrap: {
|
140
|
+
required: false,
|
141
|
+
default: false,
|
142
|
+
type: Boolean
|
143
|
+
},
|
144
|
+
minWidth: {
|
145
|
+
required: false,
|
146
|
+
default: null,
|
147
|
+
type: String
|
148
|
+
},
|
149
|
+
height: {
|
150
|
+
required: false,
|
151
|
+
default: "auto",
|
152
|
+
type: String
|
153
|
+
},
|
154
|
+
id: {
|
155
|
+
required: false,
|
156
|
+
default: null,
|
157
|
+
type: String
|
158
|
+
},
|
159
|
+
dataId: {
|
160
|
+
type: String,
|
161
|
+
default: ""
|
162
|
+
},
|
163
|
+
dataQaId: {
|
164
|
+
type: String,
|
165
|
+
default: ""
|
166
|
+
},
|
167
|
+
appTheme: {
|
168
|
+
type: String,
|
169
|
+
default: "light"
|
170
|
+
},
|
171
|
+
buttonSize: {
|
172
|
+
type: String,
|
173
|
+
default: "medium",
|
174
|
+
required: false
|
175
|
+
}
|
176
|
+
},
|
177
|
+
computed: {
|
178
|
+
theme() {
|
179
|
+
return theme;
|
180
|
+
},
|
181
|
+
getIconColor() {
|
182
|
+
return this.isDisabled ? this.theme.mainButton[this.appTheme][this.type][this.variant].disabled.textColor : this.iconColor ? this.iconColor : this.theme.mainButton[this.appTheme][this.type][this.variant].default.textColor;
|
21
183
|
}
|
22
184
|
}
|
185
|
+
};
|
186
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
187
|
+
const _component_Icon = resolveComponent("Icon");
|
188
|
+
const _component_LabelComponent = resolveComponent("LabelComponent");
|
189
|
+
const _component_ButtonContainer = resolveComponent("ButtonContainer");
|
190
|
+
const _component_PageContainer = resolveComponent("PageContainer");
|
191
|
+
return openBlock(), createBlock(_component_PageContainer, null, {
|
192
|
+
default: withCtx(() => [createVNode(_component_ButtonContainer, {
|
193
|
+
id: $props.id,
|
194
|
+
"app-theme": $props.appTheme,
|
195
|
+
"button-size": $props.buttonSize,
|
196
|
+
"data-id": $props.dataId,
|
197
|
+
"data-qa-id": $props.dataQaId,
|
198
|
+
height: $props.height,
|
199
|
+
"is-disabled": $props.isDisabled,
|
200
|
+
"min-width": $props.minWidth,
|
201
|
+
"no-wrap": $props.noWrap,
|
202
|
+
type: $props.type,
|
203
|
+
variant: $props.variant
|
204
|
+
}, {
|
205
|
+
default: withCtx(() => [createVNode(_component_LabelComponent, {
|
206
|
+
"has-icon": Boolean($props.icon),
|
207
|
+
"reverse-direction": $props.iconLast
|
208
|
+
}, {
|
209
|
+
default: withCtx(() => [$props.icon ? (openBlock(), createBlock(_component_Icon, {
|
210
|
+
key: 0,
|
211
|
+
color: $options.getIconColor,
|
212
|
+
"hovered-color": $options.getIconColor,
|
213
|
+
name: $props.icon,
|
214
|
+
size: "14px"
|
215
|
+
}, null, 8, ["color", "hovered-color", "name"])) : createCommentVNode("", true), createTextVNode(" " + toDisplayString($props.text), 1)]),
|
216
|
+
_: 1
|
217
|
+
}, 8, ["has-icon", "reverse-direction"])]),
|
218
|
+
_: 1
|
219
|
+
}, 8, ["id", "app-theme", "button-size", "data-id", "data-qa-id", "height", "is-disabled", "min-width", "no-wrap", "type", "variant"])]),
|
220
|
+
_: 1
|
221
|
+
});
|
23
222
|
}
|
223
|
+
const RCButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
24
224
|
export {
|
25
|
-
|
225
|
+
RCButton as default
|
26
226
|
};
|