@eturnity/eturnity_reusable_components 8.37.1-dev-03-elisee-8.37.3 → 8.40.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/dist/main.es12.js +2 -2
- package/dist/main.es13.js +5 -5
- package/dist/main.es14.js +2 -2
- package/dist/main.es15.js +248 -62
- package/dist/main.es17.js +62 -22
- package/dist/main.es18.js +19 -1051
- package/dist/main.es19.js +1044 -215
- package/dist/main.es20.js +196 -68
- package/dist/main.es21.js +72 -73
- package/dist/main.es22.js +74 -168
- package/dist/main.es23.js +194 -2
- package/dist/main.es24.js +2 -541
- package/dist/main.es25.js +532 -15
- package/dist/main.es26.js +19 -245
- package/dist/main.es383.js +1 -1
- package/dist/main.es386.js +1 -1
- package/dist/main.es5.js +1 -1
- package/dist/main.es6.js +2 -2
- package/dist/main.es742.js +21 -60
- package/dist/main.es743.js +60 -21
- package/dist/main.es9.js +4 -4
- package/package.json +1 -1
- package/src/components/buttons/buttonIcon/index.vue +12 -4
- package/src/components/buttons/mainButton/index.vue +0 -14
- package/src/components/inputs/checkbox/index.vue +1 -1
- package/src/components/inputs/inputText/index.vue +4 -1
- package/src/components/inputs/radioButton/index.vue +69 -94
- package/src/components/inputs/select/index.vue +1 -16
- package/src/components/inputs/textAreaInput/index.vue +0 -8
- package/src/components/spinner/index.vue +0 -2
- package/src/components/tag/conversionTag/index.vue +3 -3
package/dist/main.es23.js
CHANGED
|
@@ -1,4 +1,196 @@
|
|
|
1
|
-
|
|
1
|
+
import styled from "./main.es7.js";
|
|
2
|
+
import _sfc_main$1 from "./main.es15.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, renderSlot } from "./main.es6.js";
|
|
7
|
+
const StyledComponents = {
|
|
8
|
+
ProgressionStepItem: styled.div`
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
align-items: center;
|
|
12
|
+
`,
|
|
13
|
+
BoxContainer: styled("div", {
|
|
14
|
+
isActive: Boolean,
|
|
15
|
+
isValid: Boolean,
|
|
16
|
+
isError: Boolean,
|
|
17
|
+
isWarning: Boolean,
|
|
18
|
+
isDirty: Boolean,
|
|
19
|
+
isDisabled: Boolean,
|
|
20
|
+
size: String,
|
|
21
|
+
borderRadius: String
|
|
22
|
+
})`
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
align-items: center;
|
|
26
|
+
width: ${({
|
|
27
|
+
size
|
|
28
|
+
}) => size};
|
|
29
|
+
height: ${({
|
|
30
|
+
size
|
|
31
|
+
}) => size};
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
background-color: ${({
|
|
34
|
+
theme: theme2,
|
|
35
|
+
isValid,
|
|
36
|
+
isActive,
|
|
37
|
+
isError,
|
|
38
|
+
isWarning,
|
|
39
|
+
isDirty,
|
|
40
|
+
isDisabled
|
|
41
|
+
}) => {
|
|
42
|
+
if (isDisabled)
|
|
43
|
+
return theme2.semanticColors.grey[200];
|
|
44
|
+
if (isError)
|
|
45
|
+
return theme2.semanticColors.red[500];
|
|
46
|
+
if (isWarning)
|
|
47
|
+
return theme2.semanticColors.yellow[500];
|
|
48
|
+
if (isActive) {
|
|
49
|
+
return theme2.semanticColors.purple[500];
|
|
50
|
+
}
|
|
51
|
+
if (!isDirty)
|
|
52
|
+
return theme2.semanticColors.grey[50];
|
|
53
|
+
if (isValid)
|
|
54
|
+
return theme2.semanticColors.purple[50];
|
|
55
|
+
return theme2.semanticColors.grey[50];
|
|
56
|
+
}};
|
|
57
|
+
border: 1px solid;
|
|
58
|
+
border-color: ${({
|
|
59
|
+
theme: theme2,
|
|
60
|
+
isValid,
|
|
61
|
+
isActive,
|
|
62
|
+
isError,
|
|
63
|
+
isWarning,
|
|
64
|
+
isDirty,
|
|
65
|
+
isDisabled
|
|
66
|
+
}) => {
|
|
67
|
+
if (isDisabled)
|
|
68
|
+
return theme2.semanticColors.grey[500];
|
|
69
|
+
if (isError)
|
|
70
|
+
return theme2.semanticColors.red[500];
|
|
71
|
+
if (isWarning)
|
|
72
|
+
return theme2.semanticColors.yellow[600];
|
|
73
|
+
if (!isDirty)
|
|
74
|
+
return theme2.semanticColors.grey[400];
|
|
75
|
+
if (isActive)
|
|
76
|
+
return theme2.semanticColors.purple[600];
|
|
77
|
+
if (isValid)
|
|
78
|
+
return theme2.semanticColors.purple[50];
|
|
79
|
+
return theme2.semanticColors.grey[400];
|
|
80
|
+
}};
|
|
81
|
+
color: ${({
|
|
82
|
+
theme: theme2,
|
|
83
|
+
isValid,
|
|
84
|
+
isActive
|
|
85
|
+
}) => isActive ? theme2.colors.white : theme2.semanticColors.grey[800]};
|
|
86
|
+
margin: 0;
|
|
87
|
+
border-radius: ${({
|
|
88
|
+
borderRadius
|
|
89
|
+
}) => borderRadius};
|
|
90
|
+
cursor: ${({
|
|
91
|
+
isValid
|
|
92
|
+
}) => isValid ? "pointer" : "default"};
|
|
93
|
+
&:hover {
|
|
94
|
+
${({
|
|
95
|
+
theme: theme2,
|
|
96
|
+
isValid,
|
|
97
|
+
isActive
|
|
98
|
+
}) => isValid ? "background-color:" + theme2.semanticColors.purple[100] + ";" : ""}
|
|
99
|
+
}
|
|
100
|
+
`,
|
|
101
|
+
NumberContainer: styled.div``
|
|
102
|
+
};
|
|
103
|
+
const _sfc_main = {
|
|
104
|
+
name: "StatusIndicator",
|
|
105
|
+
components: {
|
|
106
|
+
...StyledComponents,
|
|
107
|
+
RcIcon: _sfc_main$1
|
|
108
|
+
},
|
|
109
|
+
props: {
|
|
110
|
+
isError: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false
|
|
113
|
+
},
|
|
114
|
+
isWarning: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: false
|
|
117
|
+
},
|
|
118
|
+
isDirty: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: false
|
|
121
|
+
},
|
|
122
|
+
isDisabled: {
|
|
123
|
+
type: Boolean,
|
|
124
|
+
default: false
|
|
125
|
+
},
|
|
126
|
+
isActive: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: false
|
|
129
|
+
},
|
|
130
|
+
size: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: "20px"
|
|
133
|
+
},
|
|
134
|
+
borderRadius: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: "50%"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
data() {
|
|
140
|
+
return {
|
|
141
|
+
theme
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
computed: {
|
|
145
|
+
isValid() {
|
|
146
|
+
return this.isDirty && !this.isError && !this.isWarning;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
151
|
+
const _component_RcIcon = resolveComponent("RcIcon");
|
|
152
|
+
const _component_NumberContainer = resolveComponent("NumberContainer");
|
|
153
|
+
const _component_BoxContainer = resolveComponent("BoxContainer");
|
|
154
|
+
return openBlock(), createBlock(_component_BoxContainer, {
|
|
155
|
+
"border-radius": $props.borderRadius,
|
|
156
|
+
"is-active": $props.isActive,
|
|
157
|
+
"is-dirty": $props.isDirty,
|
|
158
|
+
"is-disabled": $props.isDisabled,
|
|
159
|
+
"is-error": $props.isError,
|
|
160
|
+
"is-valid": $options.isValid,
|
|
161
|
+
"is-warning": $props.isWarning,
|
|
162
|
+
size: $props.size
|
|
163
|
+
}, {
|
|
164
|
+
default: withCtx(() => [$options.isValid ? (openBlock(), createBlock(_component_RcIcon, {
|
|
165
|
+
key: 0,
|
|
166
|
+
color: $data.theme.semanticColors.purple[500],
|
|
167
|
+
"hovered-color": $data.theme.semanticColors.purple[500],
|
|
168
|
+
name: "checkmark_thin",
|
|
169
|
+
size: "16px"
|
|
170
|
+
}, null, 8, ["color", "hovered-color"])) : $props.isError ? (openBlock(), createBlock(_component_RcIcon, {
|
|
171
|
+
key: 1,
|
|
172
|
+
color: $data.theme.colors.white,
|
|
173
|
+
"hovered-color": $data.theme.colors.white,
|
|
174
|
+
name: "cross",
|
|
175
|
+
size: "10x"
|
|
176
|
+
}, null, 8, ["color", "hovered-color"])) : $props.isWarning ? (openBlock(), createBlock(_component_RcIcon, {
|
|
177
|
+
key: 2,
|
|
178
|
+
color: $data.theme.colors.white,
|
|
179
|
+
"hovered-color": $data.theme.colors.white,
|
|
180
|
+
name: "warning_triangle",
|
|
181
|
+
size: "10px"
|
|
182
|
+
}, null, 8, ["color", "hovered-color"])) : (openBlock(), createBlock(_component_NumberContainer, {
|
|
183
|
+
key: 3,
|
|
184
|
+
"is-active": $props.isActive,
|
|
185
|
+
"is-valid": $options.isValid
|
|
186
|
+
}, {
|
|
187
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
188
|
+
_: 3
|
|
189
|
+
}, 8, ["is-active", "is-valid"]))]),
|
|
190
|
+
_: 3
|
|
191
|
+
}, 8, ["border-radius", "is-active", "is-dirty", "is-disabled", "is-error", "is-valid", "is-warning", "size"]);
|
|
192
|
+
}
|
|
193
|
+
const StatusIndicator = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
2
194
|
export {
|
|
3
|
-
|
|
195
|
+
StatusIndicator as default
|
|
4
196
|
};
|