@eturnity/eturnity_reusable_components 8.40.6 → 8.40.7

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.es15.js CHANGED
@@ -1,66 +1,261 @@
1
- function makeMap(str, expectsLowerCase) {
2
- const map = /* @__PURE__ */ Object.create(null);
3
- const list = str.split(",");
4
- for (let i = 0; i < list.length; i++) {
5
- map[list[i]] = true;
1
+ import "./main.es3.js";
2
+ import styled from "./main.es7.js";
3
+ import { fetchIcon } from "./main.es27.js";
4
+ import { rotateSvg } from "./main.es28.js";
5
+ import { reactive } from "./main.es19.js";
6
+ import { computed, onMounted, watch, openBlock, createBlock, withCtx, createVNode, createElementVNode as createBaseVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
7
+ import { toDisplayString } from "./main.es16.js";
8
+ const _hoisted_1 = ["innerHTML"];
9
+ const _sfc_main = {
10
+ __name: "index",
11
+ props: {
12
+ disabled: {
13
+ required: false,
14
+ default: false,
15
+ type: Boolean
16
+ },
17
+ name: {
18
+ required: true,
19
+ type: String
20
+ },
21
+ color: {
22
+ required: false,
23
+ default: null,
24
+ type: String
25
+ },
26
+ hoveredColor: {
27
+ required: false,
28
+ default: null,
29
+ type: String
30
+ },
31
+ size: {
32
+ required: false,
33
+ default: "30px",
34
+ type: String
35
+ },
36
+ width: {
37
+ type: String,
38
+ required: false,
39
+ default: ""
40
+ },
41
+ height: {
42
+ type: String,
43
+ required: false,
44
+ default: ""
45
+ },
46
+ cursor: {
47
+ required: false,
48
+ default: null,
49
+ type: String
50
+ },
51
+ isStriked: {
52
+ required: false,
53
+ default: false,
54
+ type: Boolean
55
+ },
56
+ backgroundColor: {
57
+ required: false,
58
+ default: null,
59
+ type: String
60
+ },
61
+ count: {
62
+ required: false,
63
+ default: 0,
64
+ type: Number
65
+ },
66
+ animation: {
67
+ required: false,
68
+ default: "none",
69
+ type: String
70
+ },
71
+ fillType: {
72
+ required: false,
73
+ default: "fill",
74
+ type: String
75
+ },
76
+ disableHover: {
77
+ type: Boolean,
78
+ default: false
79
+ },
80
+ showCount: {
81
+ type: Boolean,
82
+ default: false
83
+ },
84
+ svgRotation: {
85
+ type: Number,
86
+ default: null
87
+ }
88
+ },
89
+ setup(__props) {
90
+ const props = __props;
91
+ const Wrapper = styled("div", {
92
+ height: String,
93
+ width: String,
94
+ disabled: Boolean,
95
+ cursor: String
96
+ })`
97
+ display: flex;
98
+ position: relative;
99
+ align-content: center;
100
+ justify-content: center;
101
+ width: ${(props2) => props2.width};
102
+ height: ${(props2) => props2.height};
103
+ min-width: ${(props2) => props2.width};
104
+ min-height: ${(props2) => props2.height};
105
+ cursor: ${(props2) => props2.disabled ? "not-allowed" : props2.cursor};
106
+ line-height: 0;
107
+ `;
108
+ const CountWrapper = styled("div")`
109
+ position: absolute;
110
+ top: -7px;
111
+ right: -7px;
112
+ background-color: ${({
113
+ theme
114
+ }) => theme.colors.red};
115
+ color: ${({
116
+ theme
117
+ }) => theme.colors.white};
118
+ border-radius: 100%;
119
+ width: 15px;
120
+ height: 15px;
121
+ display: flex;
122
+ justify-content: center;
123
+ align-items: center;
124
+ font-size: 10px;
125
+ `;
126
+ const StrikedLine = styled("div", {
127
+ color: String
128
+ })`
129
+ display: flex;
130
+ position: absolute;
131
+ bottom: 0;
132
+ left: 0;
133
+ align-content: center;
134
+ justify-content: center;
135
+ width: 143%;
136
+ height: 8%;
137
+ background-color: ${({
138
+ theme,
139
+ color
140
+ }) => theme.colors[color] || color};
141
+ min-height: 0;
142
+ line-height: 0;
143
+ transform-origin: 0% 100%;
144
+ transform: rotate(-45deg);
145
+ `;
146
+ const IconImageAttrs = {
147
+ color: String,
148
+ backgroundColor: String,
149
+ hoveredColor: String,
150
+ animation: String,
151
+ fillType: String,
152
+ disableHover: Boolean,
153
+ showCount: Boolean
154
+ };
155
+ const IconImage = styled("div", IconImageAttrs)`
156
+ animation: ${(props2) => props2.animation};
157
+ width: 100%;
158
+ svg {
159
+ width: 100%;
160
+ height: 100%;
161
+ background-color: ${(props2) => props2.backgroundColor ? props2.backgroundColor : "transparent"};
162
+ padding: ${(props2) => props2.backgroundColor ? "3px" : "0"};
163
+ border-radius: ${(props2) => props2.showCount ? "8px 0 0 8px" : props2.backgroundColor ? "8px" : "0"};
164
+ }
165
+ svg path:not(.fix, .isStrokePath) {
166
+ ${({
167
+ theme,
168
+ color,
169
+ fillType
170
+ }) => color && `${fillType}: ${theme.colors[color] || color};`}
171
+ }
172
+ svg .isStroke {
173
+ ${({
174
+ theme,
175
+ color
176
+ }) => color && `stroke: ${theme.colors[color] || color};`}
177
+ }
178
+ svg .isFill {
179
+ ${({
180
+ theme,
181
+ color
182
+ }) => color && `fill: ${theme.colors[color] || color};`}
183
+ }
184
+ svg .isStrokePath:not(.fix) {
185
+ ${({
186
+ theme,
187
+ color
188
+ }) => color && `stroke: ${theme.colors[color] || color};`}
189
+ }
190
+ ${(props2) => !props2.disableHover && `
191
+ &:hover svg path:not(.fix, .isStrokePath) {
192
+ ${`${props2.fillType}: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
193
+ &:hover svg isStrokePath:not(.fix) {
194
+ ${`stroke: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
195
+ }
196
+ &:hover + div {
197
+ background-color: ${props2.hoveredColor};
198
+ }
199
+ `}
200
+
201
+ @keyframes fade {
202
+ 50% {
203
+ opacity: 0.3;
204
+ }
205
+ }
206
+ `;
207
+ const icon = reactive({
208
+ html: ""
209
+ });
210
+ const loadSvg = async () => {
211
+ let svgString = await fetchIcon(props.name.toLowerCase());
212
+ if (props.svgRotation)
213
+ svgString = rotateSvg(svgString, props.svgRotation);
214
+ icon.html = svgString;
215
+ };
216
+ const counter = computed(() => props.count > 9 ? "9+" : props.count.toString());
217
+ onMounted(() => loadSvg());
218
+ watch(() => props.name, loadSvg);
219
+ watch(() => props.svgRotation, loadSvg);
220
+ return (_ctx, _cache) => {
221
+ return openBlock(), createBlock(Wrapper, {
222
+ cursor: __props.cursor,
223
+ "data-test-id": "icon_wrapper",
224
+ disabled: __props.disabled,
225
+ height: __props.height ? __props.height : __props.size,
226
+ width: __props.width ? __props.width : __props.size
227
+ }, {
228
+ default: withCtx(() => [createVNode(IconImage, {
229
+ animation: __props.animation,
230
+ "background-color": __props.backgroundColor,
231
+ color: __props.color,
232
+ "data-test-id": "icon_image",
233
+ "disable-hover": __props.disableHover,
234
+ "fill-type": __props.fillType,
235
+ "hovered-color": __props.hoveredColor,
236
+ "show-count": __props.showCount
237
+ }, {
238
+ default: withCtx(() => [createBaseVNode("i", {
239
+ "data-test-id": "icon_svg",
240
+ innerHTML: icon.html
241
+ }, null, 8, _hoisted_1)]),
242
+ _: 1
243
+ }, 8, ["animation", "background-color", "color", "disable-hover", "fill-type", "hovered-color", "show-count"]), createTextVNode(), __props.isStriked ? (openBlock(), createBlock(StrikedLine, {
244
+ key: 0,
245
+ color: __props.color,
246
+ "data-test-id": "icon_striked_line"
247
+ }, null, 8, ["color"])) : createCommentVNode("", true), createTextVNode(), __props.count > 0 ? (openBlock(), createBlock(CountWrapper, {
248
+ key: 1,
249
+ "data-test-id": "icon_count"
250
+ }, {
251
+ default: withCtx(() => [createTextVNode(toDisplayString(counter.value), 1)]),
252
+ _: 1
253
+ })) : createCommentVNode("", true)]),
254
+ _: 1
255
+ }, 8, ["cursor", "disabled", "height", "width"]);
256
+ };
6
257
  }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
- }
9
- !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
- !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
- const onRE = /^on[^a-z]/;
12
- const isOn = (key) => onRE.test(key);
13
- const isModelListener = (key) => key.startsWith("onUpdate:");
14
- const extend = Object.assign;
15
- const isArray = Array.isArray;
16
- const isFunction = (val) => typeof val === "function";
17
- const isString = (val) => typeof val === "string";
18
- const cacheStringFunction = (fn) => {
19
- const cache = /* @__PURE__ */ Object.create(null);
20
- return (str) => {
21
- const hit = cache[str];
22
- return hit || (cache[str] = fn(str));
23
- };
24
258
  };
25
- const hyphenateRE = /\B([A-Z])/g;
26
- const hyphenate = cacheStringFunction(
27
- (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
28
- );
29
- const capitalize = cacheStringFunction(
30
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
31
- );
32
- const invokeArrayFns = (fns, arg) => {
33
- for (let i = 0; i < fns.length; i++) {
34
- fns[i](arg);
35
- }
36
- };
37
- const looseToNumber = (val) => {
38
- const n = parseFloat(val);
39
- return isNaN(n) ? val : n;
40
- };
41
- const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
42
- const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
43
- const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
44
- const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
45
- const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
46
- const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
47
- function includeBooleanAttr(value) {
48
- return !!value || value === "";
49
- }
50
259
  export {
51
- capitalize,
52
- extend,
53
- hyphenate,
54
- includeBooleanAttr,
55
- invokeArrayFns,
56
- isArray,
57
- isFunction,
58
- isHTMLTag,
59
- isModelListener,
60
- isOn,
61
- isSVGTag,
62
- isSpecialBooleanAttr,
63
- isString,
64
- looseToNumber,
65
- makeMap
260
+ _sfc_main as default
66
261
  };
package/dist/main.es17.js CHANGED
@@ -1,261 +1,66 @@
1
- import "./main.es3.js";
2
- import styled from "./main.es7.js";
3
- import { fetchIcon } from "./main.es27.js";
4
- import { rotateSvg } from "./main.es28.js";
5
- import { reactive } from "./main.es19.js";
6
- import { computed, onMounted, watch, openBlock, createBlock, withCtx, createVNode, createElementVNode as createBaseVNode, createTextVNode, createCommentVNode } from "./main.es6.js";
7
- import { toDisplayString } from "./main.es16.js";
8
- const _hoisted_1 = ["innerHTML"];
9
- const _sfc_main = {
10
- __name: "index",
11
- props: {
12
- disabled: {
13
- required: false,
14
- default: false,
15
- type: Boolean
16
- },
17
- name: {
18
- required: true,
19
- type: String
20
- },
21
- color: {
22
- required: false,
23
- default: null,
24
- type: String
25
- },
26
- hoveredColor: {
27
- required: false,
28
- default: null,
29
- type: String
30
- },
31
- size: {
32
- required: false,
33
- default: "30px",
34
- type: String
35
- },
36
- width: {
37
- type: String,
38
- required: false,
39
- default: ""
40
- },
41
- height: {
42
- type: String,
43
- required: false,
44
- default: ""
45
- },
46
- cursor: {
47
- required: false,
48
- default: null,
49
- type: String
50
- },
51
- isStriked: {
52
- required: false,
53
- default: false,
54
- type: Boolean
55
- },
56
- backgroundColor: {
57
- required: false,
58
- default: null,
59
- type: String
60
- },
61
- count: {
62
- required: false,
63
- default: 0,
64
- type: Number
65
- },
66
- animation: {
67
- required: false,
68
- default: "none",
69
- type: String
70
- },
71
- fillType: {
72
- required: false,
73
- default: "fill",
74
- type: String
75
- },
76
- disableHover: {
77
- type: Boolean,
78
- default: false
79
- },
80
- showCount: {
81
- type: Boolean,
82
- default: false
83
- },
84
- svgRotation: {
85
- type: Number,
86
- default: null
87
- }
88
- },
89
- setup(__props) {
90
- const props = __props;
91
- const Wrapper = styled("div", {
92
- height: String,
93
- width: String,
94
- disabled: Boolean,
95
- cursor: String
96
- })`
97
- display: flex;
98
- position: relative;
99
- align-content: center;
100
- justify-content: center;
101
- width: ${(props2) => props2.width};
102
- height: ${(props2) => props2.height};
103
- min-width: ${(props2) => props2.width};
104
- min-height: ${(props2) => props2.height};
105
- cursor: ${(props2) => props2.disabled ? "not-allowed" : props2.cursor};
106
- line-height: 0;
107
- `;
108
- const CountWrapper = styled("div")`
109
- position: absolute;
110
- top: -7px;
111
- right: -7px;
112
- background-color: ${({
113
- theme
114
- }) => theme.colors.red};
115
- color: ${({
116
- theme
117
- }) => theme.colors.white};
118
- border-radius: 100%;
119
- width: 15px;
120
- height: 15px;
121
- display: flex;
122
- justify-content: center;
123
- align-items: center;
124
- font-size: 10px;
125
- `;
126
- const StrikedLine = styled("div", {
127
- color: String
128
- })`
129
- display: flex;
130
- position: absolute;
131
- bottom: 0;
132
- left: 0;
133
- align-content: center;
134
- justify-content: center;
135
- width: 143%;
136
- height: 8%;
137
- background-color: ${({
138
- theme,
139
- color
140
- }) => theme.colors[color] || color};
141
- min-height: 0;
142
- line-height: 0;
143
- transform-origin: 0% 100%;
144
- transform: rotate(-45deg);
145
- `;
146
- const IconImageAttrs = {
147
- color: String,
148
- backgroundColor: String,
149
- hoveredColor: String,
150
- animation: String,
151
- fillType: String,
152
- disableHover: Boolean,
153
- showCount: Boolean
154
- };
155
- const IconImage = styled("div", IconImageAttrs)`
156
- animation: ${(props2) => props2.animation};
157
- width: 100%;
158
- svg {
159
- width: 100%;
160
- height: 100%;
161
- background-color: ${(props2) => props2.backgroundColor ? props2.backgroundColor : "transparent"};
162
- padding: ${(props2) => props2.backgroundColor ? "3px" : "0"};
163
- border-radius: ${(props2) => props2.showCount ? "8px 0 0 8px" : props2.backgroundColor ? "8px" : "0"};
164
- }
165
- svg path:not(.fix, .isStrokePath) {
166
- ${({
167
- theme,
168
- color,
169
- fillType
170
- }) => color && `${fillType}: ${theme.colors[color] || color};`}
171
- }
172
- svg .isStroke {
173
- ${({
174
- theme,
175
- color
176
- }) => color && `stroke: ${theme.colors[color] || color};`}
177
- }
178
- svg .isFill {
179
- ${({
180
- theme,
181
- color
182
- }) => color && `fill: ${theme.colors[color] || color};`}
183
- }
184
- svg .isStrokePath:not(.fix) {
185
- ${({
186
- theme,
187
- color
188
- }) => color && `stroke: ${theme.colors[color] || color};`}
189
- }
190
- ${(props2) => !props2.disableHover && `
191
- &:hover svg path:not(.fix, .isStrokePath) {
192
- ${`${props2.fillType}: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
193
- &:hover svg isStrokePath:not(.fix) {
194
- ${`stroke: ${props2.theme.colors[props2.hoveredColor] || props2.color};`}
195
- }
196
- &:hover + div {
197
- background-color: ${props2.hoveredColor};
198
- }
199
- `}
200
-
201
- @keyframes fade {
202
- 50% {
203
- opacity: 0.3;
204
- }
205
- }
206
- `;
207
- const icon = reactive({
208
- html: ""
209
- });
210
- const loadSvg = async () => {
211
- let svgString = await fetchIcon(props.name.toLowerCase());
212
- if (props.svgRotation)
213
- svgString = rotateSvg(svgString, props.svgRotation);
214
- icon.html = svgString;
215
- };
216
- const counter = computed(() => props.count > 9 ? "9+" : props.count.toString());
217
- onMounted(() => loadSvg());
218
- watch(() => props.name, loadSvg);
219
- watch(() => props.svgRotation, loadSvg);
220
- return (_ctx, _cache) => {
221
- return openBlock(), createBlock(Wrapper, {
222
- cursor: __props.cursor,
223
- "data-test-id": "icon_wrapper",
224
- disabled: __props.disabled,
225
- height: __props.height ? __props.height : __props.size,
226
- width: __props.width ? __props.width : __props.size
227
- }, {
228
- default: withCtx(() => [createVNode(IconImage, {
229
- animation: __props.animation,
230
- "background-color": __props.backgroundColor,
231
- color: __props.color,
232
- "data-test-id": "icon_image",
233
- "disable-hover": __props.disableHover,
234
- "fill-type": __props.fillType,
235
- "hovered-color": __props.hoveredColor,
236
- "show-count": __props.showCount
237
- }, {
238
- default: withCtx(() => [createBaseVNode("i", {
239
- "data-test-id": "icon_svg",
240
- innerHTML: icon.html
241
- }, null, 8, _hoisted_1)]),
242
- _: 1
243
- }, 8, ["animation", "background-color", "color", "disable-hover", "fill-type", "hovered-color", "show-count"]), createTextVNode(), __props.isStriked ? (openBlock(), createBlock(StrikedLine, {
244
- key: 0,
245
- color: __props.color,
246
- "data-test-id": "icon_striked_line"
247
- }, null, 8, ["color"])) : createCommentVNode("", true), createTextVNode(), __props.count > 0 ? (openBlock(), createBlock(CountWrapper, {
248
- key: 1,
249
- "data-test-id": "icon_count"
250
- }, {
251
- default: withCtx(() => [createTextVNode(toDisplayString(counter.value), 1)]),
252
- _: 1
253
- })) : createCommentVNode("", true)]),
254
- _: 1
255
- }, 8, ["cursor", "disabled", "height", "width"]);
256
- };
1
+ function makeMap(str, expectsLowerCase) {
2
+ const map = /* @__PURE__ */ Object.create(null);
3
+ const list = str.split(",");
4
+ for (let i = 0; i < list.length; i++) {
5
+ map[list[i]] = true;
257
6
  }
7
+ return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
+ }
9
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
+ const onRE = /^on[^a-z]/;
12
+ const isOn = (key) => onRE.test(key);
13
+ const isModelListener = (key) => key.startsWith("onUpdate:");
14
+ const extend = Object.assign;
15
+ const isArray = Array.isArray;
16
+ const isFunction = (val) => typeof val === "function";
17
+ const isString = (val) => typeof val === "string";
18
+ const cacheStringFunction = (fn) => {
19
+ const cache = /* @__PURE__ */ Object.create(null);
20
+ return (str) => {
21
+ const hit = cache[str];
22
+ return hit || (cache[str] = fn(str));
23
+ };
258
24
  };
25
+ const hyphenateRE = /\B([A-Z])/g;
26
+ const hyphenate = cacheStringFunction(
27
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
28
+ );
29
+ const capitalize = cacheStringFunction(
30
+ (str) => str.charAt(0).toUpperCase() + str.slice(1)
31
+ );
32
+ const invokeArrayFns = (fns, arg) => {
33
+ for (let i = 0; i < fns.length; i++) {
34
+ fns[i](arg);
35
+ }
36
+ };
37
+ const looseToNumber = (val) => {
38
+ const n = parseFloat(val);
39
+ return isNaN(n) ? val : n;
40
+ };
41
+ const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
42
+ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
43
+ const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
44
+ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
45
+ const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
46
+ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
47
+ function includeBooleanAttr(value) {
48
+ return !!value || value === "";
49
+ }
259
50
  export {
260
- _sfc_main as default
51
+ capitalize,
52
+ extend,
53
+ hyphenate,
54
+ includeBooleanAttr,
55
+ invokeArrayFns,
56
+ isArray,
57
+ isFunction,
58
+ isHTMLTag,
59
+ isModelListener,
60
+ isOn,
61
+ isSVGTag,
62
+ isSpecialBooleanAttr,
63
+ isString,
64
+ looseToNumber,
65
+ makeMap
261
66
  };
package/dist/main.es19.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isSymbol, hasChanged, isObject, NOOP, isArray, extend, toRawType, isFunction, def, hasOwn, isIntegerKey, isMap, makeMap, capitalize } from "./main.es743.js";
1
+ import { isSymbol, hasChanged, isObject, NOOP, isArray, extend, toRawType, isFunction, def, hasOwn, isIntegerKey, isMap, makeMap, capitalize } from "./main.es744.js";
2
2
  function warn(msg, ...args) {
3
3
  console.warn(`[Vue warn] ${msg}`, ...args);
4
4
  }
package/dist/main.es21.js CHANGED
@@ -1,4 +1,4 @@
1
- import _sfc_main$1 from "./main.es17.js";
1
+ import _sfc_main$1 from "./main.es15.js";
2
2
  import styled from "./main.es7.js";
3
3
  import "./main.es3.js";
4
4
  import _export_sfc from "./main.es11.js";
package/dist/main.es23.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import styled from "./main.es7.js";
2
- import _sfc_main$1 from "./main.es17.js";
2
+ import _sfc_main$1 from "./main.es15.js";
3
3
  import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
package/dist/main.es25.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./main.es3.js";
2
- import _sfc_main$1 from "./main.es17.js";
2
+ import _sfc_main$1 from "./main.es15.js";
3
3
  import styled from "./main.es7.js";
4
4
  import theme from "./main.es8.js";
5
5
  import _export_sfc from "./main.es11.js";
@@ -1,5 +1,5 @@
1
1
  import styled from "./main.es7.js";
2
- import _sfc_main$1 from "./main.es17.js";
2
+ import _sfc_main$1 from "./main.es15.js";
3
3
  import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
@@ -1,5 +1,5 @@
1
1
  import { HOOK_PLUGIN_SETTINGS_SET } from "./main.es386.js";
2
- import { now } from "./main.es744.js";
2
+ import { now } from "./main.es743.js";
3
3
  class ApiProxy {
4
4
  constructor(plugin, hook) {
5
5
  this.target = null;
package/dist/main.es5.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { isRuntimeOnly, warn, createRenderer, callWithAsyncErrorHandling } from "./main.es6.js";
2
2
  import { Comment, Fragment, Static, Teleport, Text, callWithErrorHandling, cloneVNode, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, devtools, getCurrentInstance, guardReactiveProps, h, handleError, initCustomFormatter, inject, isVNode, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, provide, queuePostFlushCb, renderList, renderSlot, resolveComponent, resolveDynamicComponent, setBlockTracking, setDevtoolsHook, ssrContextKey, useSSRContext, version, watch, watchEffect, withCtx, withDirectives } from "./main.es6.js";
3
- import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.es15.js";
3
+ import { isFunction, isHTMLTag, isSVGTag, isString, looseToNumber, isArray, invokeArrayFns, hyphenate, extend, isOn, isModelListener, capitalize, isSpecialBooleanAttr, includeBooleanAttr } from "./main.es17.js";
4
4
  import { camelize } from "./main.es16.js";
5
5
  import { capitalize as capitalize2, normalizeClass, normalizeStyle, toDisplayString, toHandlerKey } from "./main.es16.js";
6
6
  const svgNS = "http://www.w3.org/2000/svg";
@@ -1,64 +1,25 @@
1
- function makeMap(str, expectsLowerCase) {
2
- const map = /* @__PURE__ */ Object.create(null);
3
- const list = str.split(",");
4
- for (let i = 0; i < list.length; i++) {
5
- map[list[i]] = true;
1
+ let supported;
2
+ let perf;
3
+ function isPerformanceSupported() {
4
+ var _a;
5
+ if (supported !== void 0) {
6
+ return supported;
6
7
  }
7
- return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
8
+ if (typeof window !== "undefined" && window.performance) {
9
+ supported = true;
10
+ perf = window.performance;
11
+ } else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
12
+ supported = true;
13
+ perf = globalThis.perf_hooks.performance;
14
+ } else {
15
+ supported = false;
16
+ }
17
+ return supported;
18
+ }
19
+ function now() {
20
+ return isPerformanceSupported() ? perf.now() : Date.now();
8
21
  }
9
- !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
- !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
- const NOOP = () => {
12
- };
13
- const extend = Object.assign;
14
- const hasOwnProperty = Object.prototype.hasOwnProperty;
15
- const hasOwn = (val, key) => hasOwnProperty.call(val, key);
16
- const isArray = Array.isArray;
17
- const isMap = (val) => toTypeString(val) === "[object Map]";
18
- const isFunction = (val) => typeof val === "function";
19
- const isString = (val) => typeof val === "string";
20
- const isSymbol = (val) => typeof val === "symbol";
21
- const isObject = (val) => val !== null && typeof val === "object";
22
- const objectToString = Object.prototype.toString;
23
- const toTypeString = (value) => objectToString.call(value);
24
- const toRawType = (value) => {
25
- return toTypeString(value).slice(8, -1);
26
- };
27
- const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
28
- const cacheStringFunction = (fn) => {
29
- const cache = /* @__PURE__ */ Object.create(null);
30
- return (str) => {
31
- const hit = cache[str];
32
- return hit || (cache[str] = fn(str));
33
- };
34
- };
35
- const capitalize = cacheStringFunction(
36
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
37
- );
38
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
39
- const def = (obj, key, value) => {
40
- Object.defineProperty(obj, key, {
41
- configurable: true,
42
- enumerable: false,
43
- value
44
- });
45
- };
46
22
  export {
47
- NOOP,
48
- capitalize,
49
- def,
50
- extend,
51
- hasChanged,
52
- hasOwn,
53
- isArray,
54
- isFunction,
55
- isIntegerKey,
56
- isMap,
57
- isObject,
58
- isString,
59
- isSymbol,
60
- makeMap,
61
- objectToString,
62
- toRawType,
63
- toTypeString
23
+ isPerformanceSupported,
24
+ now
64
25
  };
@@ -1,25 +1,64 @@
1
- let supported;
2
- let perf;
3
- function isPerformanceSupported() {
4
- var _a;
5
- if (supported !== void 0) {
6
- return supported;
1
+ function makeMap(str, expectsLowerCase) {
2
+ const map = /* @__PURE__ */ Object.create(null);
3
+ const list = str.split(",");
4
+ for (let i = 0; i < list.length; i++) {
5
+ map[list[i]] = true;
7
6
  }
8
- if (typeof window !== "undefined" && window.performance) {
9
- supported = true;
10
- perf = window.performance;
11
- } else if (typeof globalThis !== "undefined" && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
12
- supported = true;
13
- perf = globalThis.perf_hooks.performance;
14
- } else {
15
- supported = false;
16
- }
17
- return supported;
18
- }
19
- function now() {
20
- return isPerformanceSupported() ? perf.now() : Date.now();
7
+ return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
21
8
  }
9
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
10
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
11
+ const NOOP = () => {
12
+ };
13
+ const extend = Object.assign;
14
+ const hasOwnProperty = Object.prototype.hasOwnProperty;
15
+ const hasOwn = (val, key) => hasOwnProperty.call(val, key);
16
+ const isArray = Array.isArray;
17
+ const isMap = (val) => toTypeString(val) === "[object Map]";
18
+ const isFunction = (val) => typeof val === "function";
19
+ const isString = (val) => typeof val === "string";
20
+ const isSymbol = (val) => typeof val === "symbol";
21
+ const isObject = (val) => val !== null && typeof val === "object";
22
+ const objectToString = Object.prototype.toString;
23
+ const toTypeString = (value) => objectToString.call(value);
24
+ const toRawType = (value) => {
25
+ return toTypeString(value).slice(8, -1);
26
+ };
27
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
28
+ const cacheStringFunction = (fn) => {
29
+ const cache = /* @__PURE__ */ Object.create(null);
30
+ return (str) => {
31
+ const hit = cache[str];
32
+ return hit || (cache[str] = fn(str));
33
+ };
34
+ };
35
+ const capitalize = cacheStringFunction(
36
+ (str) => str.charAt(0).toUpperCase() + str.slice(1)
37
+ );
38
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
39
+ const def = (obj, key, value) => {
40
+ Object.defineProperty(obj, key, {
41
+ configurable: true,
42
+ enumerable: false,
43
+ value
44
+ });
45
+ };
22
46
  export {
23
- isPerformanceSupported,
24
- now
47
+ NOOP,
48
+ capitalize,
49
+ def,
50
+ extend,
51
+ hasChanged,
52
+ hasOwn,
53
+ isArray,
54
+ isFunction,
55
+ isIntegerKey,
56
+ isMap,
57
+ isObject,
58
+ isString,
59
+ isSymbol,
60
+ makeMap,
61
+ objectToString,
62
+ toRawType,
63
+ toTypeString
25
64
  };
package/dist/main.es9.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import styled from "./main.es7.js";
2
- import _sfc_main$1 from "./main.es17.js";
2
+ import _sfc_main$1 from "./main.es15.js";
3
3
  import theme from "./main.es8.js";
4
4
  import "./main.es3.js";
5
5
  import _export_sfc from "./main.es11.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "8.40.6",
3
+ "version": "8.40.7",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -60,7 +60,7 @@
60
60
  const getSpinnerSize = (size) => {
61
61
  switch (size) {
62
62
  case 'tiny':
63
- return '16px'
63
+ return '14px'
64
64
  case 'small':
65
65
  return '24px'
66
66
  case 'large':