@telefonica/mistica 14.19.0 → 14.20.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/css/mistica.css +1 -1
- package/dist/button.js +17 -17
- package/dist/card.css-mistica.js +6 -6
- package/dist/card.css.d.ts +0 -1
- package/dist/card.d.ts +15 -4
- package/dist/card.js +298 -264
- package/dist/community/advanced-data-card.css-mistica.js +18 -21
- package/dist/community/advanced-data-card.css.d.ts +2 -3
- package/dist/community/advanced-data-card.js +171 -158
- package/dist/generated/mistica-icons/icon-subtract-circle-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-filled.js +110 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-light.js +116 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-circle-regular.js +116 -0
- package/dist/generated/mistica-icons/icon-subtract-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-light.js +110 -0
- package/dist/generated/mistica-icons/icon-subtract-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-subtract-regular.js +110 -0
- package/dist/header.js +27 -29
- package/dist/index.d.ts +9 -1
- package/dist/index.js +50 -0
- package/dist/list.css-mistica.js +17 -14
- package/dist/list.css.d.ts +2 -1
- package/dist/list.js +170 -163
- package/dist/package-version.js +1 -1
- package/dist/skins/blau.js +14 -0
- package/dist/skins/defaults.js +14 -0
- package/dist/skins/movistar-legacy.js +14 -0
- package/dist/skins/movistar.js +14 -0
- package/dist/skins/o2.js +14 -0
- package/dist/skins/telefonica.js +16 -2
- package/dist/skins/types/index.d.ts +12 -0
- package/dist/skins/vivo-new.js +15 -1
- package/dist/skins/vivo.js +14 -0
- package/dist/tabs.css-mistica.js +10 -14
- package/dist/tabs.css.d.ts +1 -2
- package/dist/tabs.js +39 -33
- package/dist/theme-context-provider.js +29 -27
- package/dist/title.d.ts +1 -0
- package/dist/title.js +91 -29
- package/dist-es/button.js +17 -17
- package/dist-es/card.css-mistica.js +3 -3
- package/dist-es/card.js +409 -378
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/advanced-data-card.js +195 -182
- package/dist-es/generated/mistica-icons/icon-subtract-circle-filled.js +101 -0
- package/dist-es/generated/mistica-icons/icon-subtract-circle-light.js +107 -0
- package/dist-es/generated/mistica-icons/icon-subtract-circle-regular.js +107 -0
- package/dist-es/generated/mistica-icons/icon-subtract-light.js +101 -0
- package/dist-es/generated/mistica-icons/icon-subtract-regular.js +101 -0
- package/dist-es/header.js +46 -48
- package/dist-es/index.js +1755 -1747
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +242 -235
- package/dist-es/package-version.js +1 -1
- package/dist-es/skins/blau.js +14 -0
- package/dist-es/skins/defaults.js +14 -0
- package/dist-es/skins/movistar-legacy.js +14 -0
- package/dist-es/skins/movistar.js +14 -0
- package/dist-es/skins/o2.js +14 -0
- package/dist-es/skins/telefonica.js +16 -2
- package/dist-es/skins/vivo-new.js +15 -1
- package/dist-es/skins/vivo.js +14 -0
- package/dist-es/style.css +1 -1
- package/dist-es/tabs.css-mistica.js +8 -9
- package/dist-es/tabs.js +49 -43
- package/dist-es/theme-context-provider.js +63 -61
- package/dist-es/title.js +58 -38
- package/package.json +5 -2
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function _object_without_properties(source, excluded) {
|
|
54
|
+
if (source == null) return {};
|
|
55
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
56
|
+
var key, i;
|
|
57
|
+
if (Object.getOwnPropertySymbols) {
|
|
58
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
59
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
60
|
+
key = sourceSymbolKeys[i];
|
|
61
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
62
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
|
+
target[key] = source[key];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return target;
|
|
67
|
+
}
|
|
68
|
+
function _object_without_properties_loose(source, excluded) {
|
|
69
|
+
if (source == null) return {};
|
|
70
|
+
var target = {};
|
|
71
|
+
var sourceKeys = Object.keys(source);
|
|
72
|
+
var key, i;
|
|
73
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
74
|
+
key = sourceKeys[i];
|
|
75
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
81
|
+
import { useIsInverseVariant as n } from "../../theme-variant-context.js";
|
|
82
|
+
import { vars as e } from "../../skins/skin-contract.css-mistica.js";
|
|
83
|
+
const a = (_param)=>{
|
|
84
|
+
var { color: i , size: r = 24 } = _param, s = _object_without_properties(_param, [
|
|
85
|
+
"color",
|
|
86
|
+
"size"
|
|
87
|
+
]);
|
|
88
|
+
const c = n(), t = i !== null && i !== void 0 ? i : c ? e.colors.inverse : e.colors.neutralHigh;
|
|
89
|
+
return /* @__PURE__ */ l("svg", _object_spread_props(_object_spread({
|
|
90
|
+
width: r,
|
|
91
|
+
height: r,
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
role: "presentation"
|
|
94
|
+
}, s), {
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ o("path", {
|
|
97
|
+
fill: t,
|
|
98
|
+
d: "M17.938 11.997a.458.458 0 00-.457-.457H6.519a.458.458 0 000 .917H17.48c.25 0 .457-.21.457-.46z"
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ o("path", {
|
|
101
|
+
fill: t,
|
|
102
|
+
d: "M12.457 1.01a30.31 30.31 0 00-.82-.01h-.22C9.212 1.019 1 1.776 1 11.966c0 10.201 8.286 11 10.496 11.03.113.004.228.004.341.004.232 0 .467-.003.667-.006C14.604 22.953 23 22.167 23 12.028 23 1.911 14.61 1.06 12.457 1.01zm-.402 21.074c-.072 0-.145 0-.218.002-.11 0-.219 0-.329-.003-.96-.016-3.427-.194-5.6-1.562-2.651-1.669-3.99-4.549-3.99-8.555 0-4.004 1.326-6.872 3.956-8.521 2.15-1.356 4.602-1.518 5.556-1.528h.21c.272 0 .554.003.798.01.961.021 3.428.225 5.613 1.596 2.673 1.675 4.032 4.539 4.032 8.505 0 9.16-7.347 10.008-9.598 10.048-.133.005-.28.006-.43.008z"
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
}));
|
|
106
|
+
}, p = a;
|
|
107
|
+
export { p as default };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function _object_without_properties(source, excluded) {
|
|
54
|
+
if (source == null) return {};
|
|
55
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
56
|
+
var key, i;
|
|
57
|
+
if (Object.getOwnPropertySymbols) {
|
|
58
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
59
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
60
|
+
key = sourceSymbolKeys[i];
|
|
61
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
62
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
|
+
target[key] = source[key];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return target;
|
|
67
|
+
}
|
|
68
|
+
function _object_without_properties_loose(source, excluded) {
|
|
69
|
+
if (source == null) return {};
|
|
70
|
+
var target = {};
|
|
71
|
+
var sourceKeys = Object.keys(source);
|
|
72
|
+
var key, i;
|
|
73
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
74
|
+
key = sourceKeys[i];
|
|
75
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
81
|
+
import { useIsInverseVariant as a } from "../../theme-variant-context.js";
|
|
82
|
+
import { vars as e } from "../../skins/skin-contract.css-mistica.js";
|
|
83
|
+
const n = (_param)=>{
|
|
84
|
+
var { color: s , size: r = 24 } = _param, c = _object_without_properties(_param, [
|
|
85
|
+
"color",
|
|
86
|
+
"size"
|
|
87
|
+
]);
|
|
88
|
+
const l = a(), o = s !== null && s !== void 0 ? s : l ? e.colors.inverse : e.colors.neutralHigh;
|
|
89
|
+
return /* @__PURE__ */ i("svg", _object_spread_props(_object_spread({
|
|
90
|
+
width: r,
|
|
91
|
+
height: r,
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
role: "presentation"
|
|
94
|
+
}, c), {
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ t("path", {
|
|
97
|
+
fill: o,
|
|
98
|
+
d: "M17.481 11.31a.691.691 0 010 1.38H6.516a.691.691 0 010-1.38H17.48z"
|
|
99
|
+
}),
|
|
100
|
+
/* @__PURE__ */ t("path", {
|
|
101
|
+
fill: o,
|
|
102
|
+
d: "M12.457 1.01c-.247-.007-.538-.01-.82-.01h-.22C9.208 1.019 1 1.776 1 11.966c0 10.201 8.286 11 10.496 11.03.119.004.238.004.357.004.228 0 .454-.003.651-.006C14.601 22.953 23 22.167 23 12.028 23 1.914 14.617 1.063 12.457 1.01zm-.94 20.613c-2.748-.038-9.14-1.058-9.14-9.657 0-8.587 6.33-9.567 9.053-9.592h.207c.263 0 .526.003.789.01 2.764.065 9.196 1.14 9.196 9.644 0 8.505-6.395 9.541-9.146 9.591-.32.007-.639.007-.958.004z"
|
|
103
|
+
})
|
|
104
|
+
]
|
|
105
|
+
}));
|
|
106
|
+
}, m = n;
|
|
107
|
+
export { m as default };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function _object_without_properties(source, excluded) {
|
|
54
|
+
if (source == null) return {};
|
|
55
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
56
|
+
var key, i;
|
|
57
|
+
if (Object.getOwnPropertySymbols) {
|
|
58
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
59
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
60
|
+
key = sourceSymbolKeys[i];
|
|
61
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
62
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
|
+
target[key] = source[key];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return target;
|
|
67
|
+
}
|
|
68
|
+
function _object_without_properties_loose(source, excluded) {
|
|
69
|
+
if (source == null) return {};
|
|
70
|
+
var target = {};
|
|
71
|
+
var sourceKeys = Object.keys(source);
|
|
72
|
+
var key, i;
|
|
73
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
74
|
+
key = sourceKeys[i];
|
|
75
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
81
|
+
import { useIsInverseVariant as a } from "../../theme-variant-context.js";
|
|
82
|
+
import { vars as o } from "../../skins/skin-contract.css-mistica.js";
|
|
83
|
+
const c = (_param)=>{
|
|
84
|
+
var { color: e , size: r = 24 } = _param, s = _object_without_properties(_param, [
|
|
85
|
+
"color",
|
|
86
|
+
"size"
|
|
87
|
+
]);
|
|
88
|
+
const i = a(), n = e !== null && e !== void 0 ? e : i ? o.colors.inverse : o.colors.neutralHigh;
|
|
89
|
+
return /* @__PURE__ */ t("svg", _object_spread_props(_object_spread({
|
|
90
|
+
width: r,
|
|
91
|
+
height: r,
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
role: "presentation"
|
|
94
|
+
}, s), {
|
|
95
|
+
children: /* @__PURE__ */ t("path", {
|
|
96
|
+
fill: n,
|
|
97
|
+
d: "M3 12.001a.6.6 0 01.6-.6h16.803a.6.6 0 01-.002 1.199H3.599A.6.6 0 013 12.002z"
|
|
98
|
+
})
|
|
99
|
+
}));
|
|
100
|
+
}, m = c;
|
|
101
|
+
export { m as default };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function _object_without_properties(source, excluded) {
|
|
54
|
+
if (source == null) return {};
|
|
55
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
56
|
+
var key, i;
|
|
57
|
+
if (Object.getOwnPropertySymbols) {
|
|
58
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
59
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
60
|
+
key = sourceSymbolKeys[i];
|
|
61
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
62
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
63
|
+
target[key] = source[key];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return target;
|
|
67
|
+
}
|
|
68
|
+
function _object_without_properties_loose(source, excluded) {
|
|
69
|
+
if (source == null) return {};
|
|
70
|
+
var target = {};
|
|
71
|
+
var sourceKeys = Object.keys(source);
|
|
72
|
+
var key, i;
|
|
73
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
74
|
+
key = sourceKeys[i];
|
|
75
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
76
|
+
target[key] = source[key];
|
|
77
|
+
}
|
|
78
|
+
return target;
|
|
79
|
+
}
|
|
80
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
81
|
+
import { useIsInverseVariant as i } from "../../theme-variant-context.js";
|
|
82
|
+
import { vars as t } from "../../skins/skin-contract.css-mistica.js";
|
|
83
|
+
const l = (_param)=>{
|
|
84
|
+
var { color: e , size: r = 24 } = _param, s = _object_without_properties(_param, [
|
|
85
|
+
"color",
|
|
86
|
+
"size"
|
|
87
|
+
]);
|
|
88
|
+
const n = i(), a = e !== null && e !== void 0 ? e : n ? t.colors.inverse : t.colors.neutralHigh;
|
|
89
|
+
return /* @__PURE__ */ o("svg", _object_spread_props(_object_spread({
|
|
90
|
+
width: r,
|
|
91
|
+
height: r,
|
|
92
|
+
viewBox: "0 0 24 24",
|
|
93
|
+
role: "presentation"
|
|
94
|
+
}, s), {
|
|
95
|
+
children: /* @__PURE__ */ o("path", {
|
|
96
|
+
fill: a,
|
|
97
|
+
d: "M3.001 12.047a.879.879 0 01.828-.924h16.34a.876.876 0 01.003 1.752H3.829A.876.876 0 013 12.047z"
|
|
98
|
+
})
|
|
99
|
+
}));
|
|
100
|
+
}, f = l;
|
|
101
|
+
export { f as default };
|
package/dist-es/header.js
CHANGED
|
@@ -78,32 +78,33 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
80
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
81
|
-
import
|
|
81
|
+
import u from "./box.js";
|
|
82
82
|
import a from "./stack.js";
|
|
83
|
-
import { useIsInverseVariant as
|
|
84
|
-
import
|
|
83
|
+
import { useIsInverseVariant as S } from "./theme-variant-context.js";
|
|
84
|
+
import k from "./responsive-layout.js";
|
|
85
85
|
import y from "./grid-layout.js";
|
|
86
86
|
import T from "./overscroll-color-context.js";
|
|
87
|
-
import {
|
|
88
|
-
import
|
|
87
|
+
import { Text2 as B, Text3 as x, Text8 as A, Text7 as C, Text6 as M } from "./text.js";
|
|
88
|
+
import N from "./button-group.js";
|
|
89
89
|
import { vars as c } from "./skins/skin-contract.css-mistica.js";
|
|
90
|
-
import { hideOnTabletOrSmaller as
|
|
91
|
-
import { getPrefixedDataAttributes as
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
import { hideOnTabletOrSmaller as R, hideOnDesktop as j, breadcrumbs as G } from "./header.css-mistica.js";
|
|
91
|
+
import { getPrefixedDataAttributes as I } from "./utils/dom.js";
|
|
92
|
+
import { Title2 as O, Title3 as P } from "./title.js";
|
|
93
|
+
const $ = (param)=>{
|
|
94
|
+
let { pretitle: t , title: o , description: e , dataAttributes: d , small: m = !1 , preamount: s , amount: p , button: n , subtitle: i , isErrorAmount: h , secondaryButton: b } = param;
|
|
95
|
+
const H = S(), g = (f, v)=>{
|
|
96
|
+
if (typeof f == "string") return /* @__PURE__ */ r(x, _object_spread_props(_object_spread({
|
|
96
97
|
regular: !0
|
|
97
|
-
},
|
|
98
|
-
children:
|
|
98
|
+
}, v), {
|
|
99
|
+
children: f
|
|
99
100
|
}));
|
|
100
|
-
const { text:
|
|
101
|
+
const { text: V } = f, L = _object_without_properties(f, [
|
|
101
102
|
"text"
|
|
102
103
|
]);
|
|
103
104
|
return /* @__PURE__ */ r(x, _object_spread_props(_object_spread({
|
|
104
105
|
regular: !0
|
|
105
|
-
},
|
|
106
|
-
children:
|
|
106
|
+
}, v, L), {
|
|
107
|
+
children: f.text
|
|
107
108
|
}));
|
|
108
109
|
};
|
|
109
110
|
return /* @__PURE__ */ l(a, {
|
|
@@ -113,25 +114,22 @@ const Z = (param)=>{
|
|
|
113
114
|
},
|
|
114
115
|
dataAttributes: d,
|
|
115
116
|
children: [
|
|
116
|
-
(o || t || e) && /* @__PURE__ */ r(
|
|
117
|
+
(o || t || e) && /* @__PURE__ */ r(u, {
|
|
117
118
|
paddingRight: 16,
|
|
118
119
|
children: /* @__PURE__ */ l(a, {
|
|
119
120
|
space: 8,
|
|
120
121
|
children: [
|
|
121
|
-
t &&
|
|
122
|
+
t && g(t, {
|
|
122
123
|
color: c.colors.textPrimary
|
|
123
124
|
}),
|
|
124
|
-
m ? /* @__PURE__ */ r(
|
|
125
|
-
|
|
126
|
-
role: "heading",
|
|
127
|
-
"aria-level": 2,
|
|
125
|
+
m ? /* @__PURE__ */ r(O, {
|
|
126
|
+
as: "h2",
|
|
128
127
|
children: o
|
|
129
|
-
}) : /* @__PURE__ */ r(
|
|
130
|
-
|
|
131
|
-
"aria-level": 2,
|
|
128
|
+
}) : /* @__PURE__ */ r(P, {
|
|
129
|
+
as: "h2",
|
|
132
130
|
children: o
|
|
133
131
|
}),
|
|
134
|
-
e && (m ? /* @__PURE__ */ r(
|
|
132
|
+
e && (m ? /* @__PURE__ */ r(B, {
|
|
135
133
|
regular: !0,
|
|
136
134
|
color: c.colors.textSecondary,
|
|
137
135
|
children: e
|
|
@@ -149,25 +147,25 @@ const Z = (param)=>{
|
|
|
149
147
|
(s || p) && /* @__PURE__ */ l(a, {
|
|
150
148
|
space: 8,
|
|
151
149
|
children: [
|
|
152
|
-
s &&
|
|
150
|
+
s && g(s, {
|
|
153
151
|
color: c.colors.textPrimary
|
|
154
152
|
}),
|
|
155
|
-
/* @__PURE__ */ r(
|
|
156
|
-
color: h && !
|
|
153
|
+
/* @__PURE__ */ r(A, {
|
|
154
|
+
color: h && !H ? c.colors.highlight : c.colors.textPrimary,
|
|
157
155
|
children: p
|
|
158
156
|
})
|
|
159
157
|
]
|
|
160
158
|
}),
|
|
161
|
-
(n ||
|
|
159
|
+
(n || b) && /* @__PURE__ */ r(N, {
|
|
162
160
|
primaryButton: n,
|
|
163
|
-
secondaryButton:
|
|
161
|
+
secondaryButton: b
|
|
164
162
|
}),
|
|
165
|
-
i &&
|
|
163
|
+
i && g(i, {})
|
|
166
164
|
]
|
|
167
165
|
})
|
|
168
166
|
]
|
|
169
167
|
});
|
|
170
|
-
},
|
|
168
|
+
}, E = (param)=>/* @__PURE__ */ {
|
|
171
169
|
let { title: t , description: o , button: e } = param;
|
|
172
170
|
return l(a, {
|
|
173
171
|
space: 32,
|
|
@@ -178,12 +176,12 @@ const Z = (param)=>{
|
|
|
178
176
|
desktop: 16
|
|
179
177
|
},
|
|
180
178
|
children: [
|
|
181
|
-
t && /* @__PURE__ */ r(
|
|
179
|
+
t && /* @__PURE__ */ r(C, {
|
|
182
180
|
role: "heading",
|
|
183
181
|
"aria-level": 1,
|
|
184
182
|
children: t
|
|
185
183
|
}),
|
|
186
|
-
o && /* @__PURE__ */ r(
|
|
184
|
+
o && /* @__PURE__ */ r(M, {
|
|
187
185
|
children: o
|
|
188
186
|
})
|
|
189
187
|
]
|
|
@@ -191,26 +189,26 @@ const Z = (param)=>{
|
|
|
191
189
|
e
|
|
192
190
|
]
|
|
193
191
|
});
|
|
194
|
-
},
|
|
192
|
+
}, Y = (param)=>{
|
|
195
193
|
let { isInverse: t = !0 , breadcrumbs: o , header: e , extra: d , sideBySideExtraOnDesktop: m = !1 , dataAttributes: s , bleed: p = !1 , noPaddingY: n = !1 } = param;
|
|
196
194
|
const i = p && t && d, h = /* @__PURE__ */ l("div", {
|
|
197
195
|
children: [
|
|
198
196
|
o && /* @__PURE__ */ r("div", {
|
|
199
|
-
className:
|
|
197
|
+
className: G,
|
|
200
198
|
children: o
|
|
201
199
|
}),
|
|
202
200
|
e
|
|
203
201
|
]
|
|
204
202
|
});
|
|
205
|
-
return /* @__PURE__ */ l("div", _object_spread_props(_object_spread({},
|
|
203
|
+
return /* @__PURE__ */ l("div", _object_spread_props(_object_spread({}, I(_object_spread({
|
|
206
204
|
"component-name": "HeaderLayout"
|
|
207
205
|
}, s))), {
|
|
208
206
|
children: [
|
|
209
|
-
/* @__PURE__ */ l(
|
|
207
|
+
/* @__PURE__ */ l(k, {
|
|
210
208
|
isInverse: t,
|
|
211
209
|
children: [
|
|
212
210
|
/* @__PURE__ */ r(T, {}),
|
|
213
|
-
/* @__PURE__ */ r(
|
|
211
|
+
/* @__PURE__ */ r(u, {
|
|
214
212
|
paddingTop: n ? 0 : {
|
|
215
213
|
mobile: e ? 32 : 0,
|
|
216
214
|
desktop: o ? 16 : 48
|
|
@@ -223,8 +221,8 @@ const Z = (param)=>{
|
|
|
223
221
|
template: "6+6",
|
|
224
222
|
left: h,
|
|
225
223
|
right: /* @__PURE__ */ r("div", {
|
|
226
|
-
className: i ?
|
|
227
|
-
children: /* @__PURE__ */ r(
|
|
224
|
+
className: i ? R : "",
|
|
225
|
+
children: /* @__PURE__ */ r(u, {
|
|
228
226
|
paddingTop: {
|
|
229
227
|
mobile: e ? 24 : 0,
|
|
230
228
|
desktop: 0
|
|
@@ -245,16 +243,16 @@ const Z = (param)=>{
|
|
|
245
243
|
})
|
|
246
244
|
]
|
|
247
245
|
}),
|
|
248
|
-
i && /* @__PURE__ */ r(
|
|
249
|
-
className: m ?
|
|
246
|
+
i && /* @__PURE__ */ r(k, {
|
|
247
|
+
className: m ? j : "",
|
|
250
248
|
backgroundColor: `linear-gradient(to bottom, ${c.colors.backgroundBrand} 40px, ${c.colors.background} 0%)`,
|
|
251
249
|
children: d
|
|
252
250
|
})
|
|
253
251
|
]
|
|
254
252
|
}));
|
|
255
|
-
},
|
|
253
|
+
}, rr = (param)=>/* @__PURE__ */ {
|
|
256
254
|
let { isInverse: t = !0 , children: o , dataAttributes: e } = param;
|
|
257
|
-
return l(
|
|
255
|
+
return l(k, {
|
|
258
256
|
isInverse: t,
|
|
259
257
|
dataAttributes: _object_spread({
|
|
260
258
|
"component-name": "MainSectionHeaderLayout"
|
|
@@ -263,7 +261,7 @@ const Z = (param)=>{
|
|
|
263
261
|
/* @__PURE__ */ r(T, {}),
|
|
264
262
|
/* @__PURE__ */ r(y, {
|
|
265
263
|
template: "6+6",
|
|
266
|
-
left: /* @__PURE__ */ r(
|
|
264
|
+
left: /* @__PURE__ */ r(u, {
|
|
267
265
|
paddingTop: {
|
|
268
266
|
mobile: 12,
|
|
269
267
|
desktop: 48
|
|
@@ -279,4 +277,4 @@ const Z = (param)=>{
|
|
|
279
277
|
]
|
|
280
278
|
});
|
|
281
279
|
};
|
|
282
|
-
export {
|
|
280
|
+
export { $ as Header, Y as HeaderLayout, E as MainSectionHeader, rr as MainSectionHeaderLayout };
|