@telefonica/mistica 14.17.1 → 14.18.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/avatar.css-mistica.js +3 -3
- package/dist/badge.css-mistica.js +3 -3
- package/dist/box.d.ts +8 -8
- package/dist/box.js +28 -21
- package/dist/boxed.css-mistica.js +1 -1
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +8 -8
- package/dist/button.css-mistica.js +19 -19
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +27 -18
- package/dist/card.css.d.ts +3 -0
- package/dist/card.d.ts +37 -14
- package/dist/card.js +442 -268
- package/dist/carousel.css-mistica.js +16 -16
- package/dist/checkbox.css-mistica.js +10 -10
- package/dist/chip.css-mistica.js +4 -4
- package/dist/circle.css-mistica.js +2 -2
- package/dist/circle.d.ts +2 -0
- package/dist/circle.js +61 -7
- package/dist/community/advanced-data-card.css-mistica.js +69 -0
- package/dist/community/advanced-data-card.css.d.ts +20 -0
- package/dist/community/advanced-data-card.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/community/advanced-data-card.d.ts +39 -0
- package/dist/community/advanced-data-card.js +317 -0
- package/dist/community/blocks.css-mistica.js +21 -0
- package/dist/community/blocks.css.d.ts +2 -0
- package/dist/community/blocks.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/community/blocks.d.ts +73 -0
- package/dist/community/blocks.js +258 -0
- package/dist/community/index.d.ts +2 -0
- package/dist/community/index.js +31 -3
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/dialog.css-mistica.js +9 -9
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +4 -4
- package/dist/empty-state.js +4 -4
- package/dist/feedback.css-mistica.js +3 -3
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/grid.css.d.ts +6 -6
- package/dist/header.css-mistica.js +24 -0
- package/dist/header.css.d.ts +3 -0
- package/dist/header.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/header.d.ts +3 -0
- package/dist/header.js +121 -101
- package/dist/hero.css-mistica.js +4 -4
- package/dist/highlighted-card.css-mistica.js +5 -5
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +1 -1
- package/dist/image.css-mistica.js +1 -1
- package/dist/image.d.ts +19 -6
- package/dist/image.js +64 -61
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/dist/list.css-mistica.js +14 -14
- package/dist/list.d.ts +6 -6
- package/dist/list.js +11 -10
- package/dist/loading-bar.css-mistica.js +5 -5
- package/dist/maybe-dismissable.css-mistica.js +1 -1
- package/dist/menu.css-mistica.js +2 -2
- package/dist/navigation-bar.css-mistica.js +16 -16
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +2 -2
- package/dist/popover.css-mistica.js +11 -11
- package/dist/progress-bar.css-mistica.js +3 -3
- package/dist/radio-button.css-mistica.js +12 -12
- package/dist/responsive-layout.css-mistica.js +2 -2
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +12 -12
- package/dist/skeletons.css-mistica.js +3 -3
- package/dist/snackbar.css-mistica.js +5 -5
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/sprinkles.css-mistica.js +648 -336
- package/dist/sprinkles.css.d.ts +36 -7
- package/dist/stack.css-mistica.js +7 -4
- package/dist/stack.css.d.ts +3 -0
- package/dist/stack.d.ts +4 -2
- package/dist/stack.js +20 -13
- package/dist/stacking-group.css-mistica.js +1 -1
- package/dist/stepper.css-mistica.js +9 -9
- package/dist/switch-component.css-mistica.js +21 -21
- package/dist/tabs.css-mistica.js +11 -11
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +11 -11
- package/dist/text-field-components.css-mistica.js +15 -15
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +49 -41
- package/dist/tooltip.css-mistica.js +9 -9
- package/dist/touchable.css-mistica.js +3 -3
- package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
- package/dist/utils/aspect-ratio-support.d.ts +4 -2
- package/dist/utils/aspect-ratio-support.js +17 -16
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/utility-types.d.ts +7 -0
- package/dist/video.css-mistica.js +2 -2
- package/dist/video.js +26 -78
- package/dist-es/avatar.css-mistica.js +2 -2
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/box.js +32 -25
- package/dist-es/boxed.css-mistica.js +1 -1
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +7 -7
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +549 -384
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +4 -4
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/circle.js +66 -12
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -0
- package/dist-es/community/advanced-data-card.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/community/advanced-data-card.js +256 -0
- package/dist-es/community/blocks.css-mistica.js +4 -0
- package/dist-es/community/blocks.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/community/blocks.js +224 -0
- package/dist-es/community/index.js +4 -2
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +3 -3
- package/dist-es/empty-state.js +11 -11
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/header.css-mistica.js +4 -0
- package/dist-es/header.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/header.js +141 -121
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +5 -5
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +1 -1
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/image.js +76 -73
- package/dist-es/index.js +1710 -1710
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +22 -21
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/menu.css-mistica.js +2 -2
- package/dist-es/navigation-bar.css-mistica.js +9 -9
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +2 -2
- package/dist-es/radio-button.css-mistica.js +6 -6
- package/dist-es/responsive-layout.css-mistica.js +2 -2
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +10 -10
- package/dist-es/skeletons.css-mistica.js +2 -2
- package/dist-es/snackbar.css-mistica.js +2 -2
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/sprinkles.css-mistica.js +648 -336
- package/dist-es/stack.css-mistica.js +6 -3
- package/dist-es/stack.js +27 -20
- package/dist-es/stacking-group.css-mistica.js +1 -1
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +18 -18
- package/dist-es/tabs.css-mistica.js +7 -7
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/theme.js +52 -44
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/utils/aspect-ratio-support.js +17 -16
- package/dist-es/video.css-mistica.js +2 -2
- package/dist-es/video.js +36 -88
- package/package.json +2 -2
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
AdvancedDataCard: function() {
|
|
13
|
+
return le;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return Ae;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
21
|
+
const _boxed = require("../boxed.js");
|
|
22
|
+
const _sprinklescssmistica = require("../sprinkles.css-mistica.js");
|
|
23
|
+
const _stack = /*#__PURE__*/ _interop_require_default(require("../stack.js"));
|
|
24
|
+
const _advanceddatacardcssmistica = require("./advanced-data-card.css-mistica.js");
|
|
25
|
+
const _divider = /*#__PURE__*/ _interop_require_default(require("../divider.js"));
|
|
26
|
+
const _text = require("../text.js");
|
|
27
|
+
const _skincontractcssmistica = require("../skins/skin-contract.css-mistica.js");
|
|
28
|
+
const _box = /*#__PURE__*/ _interop_require_default(require("../box.js"));
|
|
29
|
+
const _touchable = /*#__PURE__*/ _interop_require_default(require("../touchable.js"));
|
|
30
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
31
|
+
const _card = require("../card.js");
|
|
32
|
+
const _hooks = require("../hooks.js");
|
|
33
|
+
function _interop_require_default(obj) {
|
|
34
|
+
return obj && obj.__esModule ? obj : {
|
|
35
|
+
default: obj
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
39
|
+
if (typeof WeakMap !== "function") return null;
|
|
40
|
+
var cacheBabelInterop = new WeakMap();
|
|
41
|
+
var cacheNodeInterop = new WeakMap();
|
|
42
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
43
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
44
|
+
})(nodeInterop);
|
|
45
|
+
}
|
|
46
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
47
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
48
|
+
return obj;
|
|
49
|
+
}
|
|
50
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
51
|
+
return {
|
|
52
|
+
default: obj
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
56
|
+
if (cache && cache.has(obj)) {
|
|
57
|
+
return cache.get(obj);
|
|
58
|
+
}
|
|
59
|
+
var newObj = {};
|
|
60
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
61
|
+
for(var key in obj){
|
|
62
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
63
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
64
|
+
if (desc && (desc.get || desc.set)) {
|
|
65
|
+
Object.defineProperty(newObj, key, desc);
|
|
66
|
+
} else {
|
|
67
|
+
newObj[key] = obj[key];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
newObj.default = obj;
|
|
72
|
+
if (cache) {
|
|
73
|
+
cache.set(obj, newObj);
|
|
74
|
+
}
|
|
75
|
+
return newObj;
|
|
76
|
+
}
|
|
77
|
+
function _define_property(obj, key, value) {
|
|
78
|
+
if (key in obj) {
|
|
79
|
+
Object.defineProperty(obj, key, {
|
|
80
|
+
value: value,
|
|
81
|
+
enumerable: true,
|
|
82
|
+
configurable: true,
|
|
83
|
+
writable: true
|
|
84
|
+
});
|
|
85
|
+
} else {
|
|
86
|
+
obj[key] = value;
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
}
|
|
90
|
+
function _object_spread(target) {
|
|
91
|
+
for(var i = 1; i < arguments.length; i++){
|
|
92
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
93
|
+
var ownKeys = Object.keys(source);
|
|
94
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
95
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
96
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
ownKeys.forEach(function(key) {
|
|
100
|
+
_define_property(target, key, source[key]);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return target;
|
|
104
|
+
}
|
|
105
|
+
const ce = (param)=>{
|
|
106
|
+
let { headline: a , pretitle: i , pretitleAs: c = "p" , pretitleLinesMax: u , title: d , titleAs: l = "h3" , titleLinesMax: h , subtitle: m , subtitleLinesMax: o , description: t , descriptionLinesMax: g } = param;
|
|
107
|
+
const { textPresets: x } = (0, _hooks.useTheme)();
|
|
108
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
109
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
|
|
110
|
+
space: 4,
|
|
111
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
|
|
112
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
113
|
+
space: 4,
|
|
114
|
+
children: [
|
|
115
|
+
a,
|
|
116
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
117
|
+
space: 4,
|
|
118
|
+
children: [
|
|
119
|
+
i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
120
|
+
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
121
|
+
truncate: u,
|
|
122
|
+
as: c,
|
|
123
|
+
regular: !0,
|
|
124
|
+
hyphens: "auto",
|
|
125
|
+
children: i
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
|
|
128
|
+
mobileSize: 18,
|
|
129
|
+
mobileLineHeight: "24px",
|
|
130
|
+
desktopSize: 20,
|
|
131
|
+
desktopLineHeight: "28px",
|
|
132
|
+
truncate: h,
|
|
133
|
+
weight: x.cardTitle.weight,
|
|
134
|
+
as: l,
|
|
135
|
+
hyphens: "auto",
|
|
136
|
+
children: d
|
|
137
|
+
}),
|
|
138
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
139
|
+
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
140
|
+
truncate: o,
|
|
141
|
+
as: "p",
|
|
142
|
+
regular: !0,
|
|
143
|
+
hyphens: "auto",
|
|
144
|
+
children: m
|
|
145
|
+
})
|
|
146
|
+
]
|
|
147
|
+
}),
|
|
148
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
149
|
+
truncate: g,
|
|
150
|
+
as: "p",
|
|
151
|
+
regular: !0,
|
|
152
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
153
|
+
hyphens: "auto",
|
|
154
|
+
children: t
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
})
|
|
160
|
+
});
|
|
161
|
+
}, de = (param)=>{
|
|
162
|
+
let { button: a , footerImage: i , footerText: c , footerTextLinesMax: u , buttonLink: d } = param;
|
|
163
|
+
const l = !!a, h = !!i, m = !!c, o = !!d, t = l && (h || m) && o, g = o && !t ? "178px" : "";
|
|
164
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
167
|
+
className: _advanceddatacardcssmistica.divider,
|
|
168
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
|
|
169
|
+
}),
|
|
170
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
171
|
+
className: (0, _classnames.default)(_advanceddatacardcssmistica.actions, _advanceddatacardcssmistica.actionsVariants[t ? "mobile" : "default"]),
|
|
172
|
+
children: [
|
|
173
|
+
l && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
174
|
+
className: (0, _classnames.default)(_advanceddatacardcssmistica.marginRightButton, _advanceddatacardcssmistica.buttonMobile),
|
|
175
|
+
children: a
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
178
|
+
className: (0, _classnames.default)(_advanceddatacardcssmistica.footerDirection, t ? _advanceddatacardcssmistica.marginRightAuto : (0, _sprinklescssmistica.sprinkles)({
|
|
179
|
+
paddingTop: 16
|
|
180
|
+
})),
|
|
181
|
+
children: [
|
|
182
|
+
h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
183
|
+
paddingRight: 16,
|
|
184
|
+
className: (0, _sprinklescssmistica.sprinkles)({
|
|
185
|
+
alignItems: "center",
|
|
186
|
+
display: "flex"
|
|
187
|
+
}),
|
|
188
|
+
children: i
|
|
189
|
+
}),
|
|
190
|
+
m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
191
|
+
style: {
|
|
192
|
+
maxWidth: g
|
|
193
|
+
},
|
|
194
|
+
className: _advanceddatacardcssmistica.footerText,
|
|
195
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
196
|
+
truncate: u,
|
|
197
|
+
regular: !0,
|
|
198
|
+
children: c
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
]
|
|
202
|
+
}),
|
|
203
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
204
|
+
className: (0, _classnames.default)(_advanceddatacardcssmistica.adjustButtonLink, t ? _advanceddatacardcssmistica.button : _advanceddatacardcssmistica.buttonMobile),
|
|
205
|
+
children: d
|
|
206
|
+
})
|
|
207
|
+
]
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
});
|
|
211
|
+
}, le = /*#__PURE__*/ _react.forwardRef((param, L)=>{
|
|
212
|
+
let { onPress: a , stackingGroup: i , headline: c , pretitle: u , pretitleAs: d , pretitleLinesMax: l , title: h , titleAs: m , titleLinesMax: o , subtitle: t , subtitleLinesMax: g , description: x , descriptionLinesMax: S , extra: n , extraDividerPadding: k = 24 , button: b , footerImage: T , footerText: C , footerTextLinesMax: j , buttonLink: A , dataAttributes: H , actions: P , "aria-label": z , onClose: I } = param;
|
|
213
|
+
const G = {
|
|
214
|
+
button: b,
|
|
215
|
+
footerImage: T,
|
|
216
|
+
footerText: C,
|
|
217
|
+
footerTextLinesMax: j,
|
|
218
|
+
buttonLink: A
|
|
219
|
+
}, B = !!b || !!T || !!C || !!A;
|
|
220
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", {
|
|
221
|
+
className: (0, _sprinklescssmistica.sprinkles)({
|
|
222
|
+
position: "relative",
|
|
223
|
+
height: "100%"
|
|
224
|
+
}),
|
|
225
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
|
|
226
|
+
className: _advanceddatacardcssmistica.boxed,
|
|
227
|
+
dataAttributes: _object_spread({
|
|
228
|
+
"component-name": "AdvancedDataCard"
|
|
229
|
+
}, H),
|
|
230
|
+
ref: L,
|
|
231
|
+
width: "100%",
|
|
232
|
+
height: "100%",
|
|
233
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
234
|
+
className: _advanceddatacardcssmistica.dataCard,
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, {
|
|
237
|
+
onPress: a,
|
|
238
|
+
tabIndex: 0,
|
|
239
|
+
maybe: !0,
|
|
240
|
+
className: (0, _sprinklescssmistica.sprinkles)({
|
|
241
|
+
position: "relative",
|
|
242
|
+
height: "100%"
|
|
243
|
+
}),
|
|
244
|
+
"aria-label": z,
|
|
245
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
246
|
+
className: a ? _advanceddatacardcssmistica.interaction : "",
|
|
247
|
+
children: [
|
|
248
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
249
|
+
className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !B && !n ? _advanceddatacardcssmistica.minHeight : ""),
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
252
|
+
paddingTop: 8,
|
|
253
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
254
|
+
space: 8,
|
|
255
|
+
className: (0, _sprinklescssmistica.sprinkles)({
|
|
256
|
+
flex: 1
|
|
257
|
+
}),
|
|
258
|
+
children: [
|
|
259
|
+
i,
|
|
260
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(ce, {
|
|
261
|
+
headline: c,
|
|
262
|
+
pretitle: u,
|
|
263
|
+
pretitleAs: d,
|
|
264
|
+
pretitleLinesMax: l,
|
|
265
|
+
title: h,
|
|
266
|
+
titleAs: m,
|
|
267
|
+
titleLinesMax: o,
|
|
268
|
+
subtitle: t,
|
|
269
|
+
subtitleLinesMax: g,
|
|
270
|
+
description: x,
|
|
271
|
+
descriptionLinesMax: S
|
|
272
|
+
})
|
|
273
|
+
]
|
|
274
|
+
})
|
|
275
|
+
}),
|
|
276
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_card.CardActionsGroup, {
|
|
277
|
+
actions: P,
|
|
278
|
+
onClose: I
|
|
279
|
+
})
|
|
280
|
+
]
|
|
281
|
+
}),
|
|
282
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
283
|
+
className: _advanceddatacardcssmistica.extraTop,
|
|
284
|
+
children: n && n != null && n.length ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
285
|
+
paddingTop: 16,
|
|
286
|
+
paddingBottom: 24,
|
|
287
|
+
children: n.map((M, w)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
288
|
+
children: [
|
|
289
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
290
|
+
className: (0, _sprinklescssmistica.sprinkles)({
|
|
291
|
+
display: "flex",
|
|
292
|
+
width: "100%"
|
|
293
|
+
}),
|
|
294
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
295
|
+
className: (0, _classnames.default)((0, _sprinklescssmistica.sprinkles)({
|
|
296
|
+
width: "100%"
|
|
297
|
+
}), _advanceddatacardcssmistica.paddingX),
|
|
298
|
+
children: M
|
|
299
|
+
})
|
|
300
|
+
}),
|
|
301
|
+
w + 1 !== n.length && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
302
|
+
paddingY: k,
|
|
303
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
}, w))
|
|
307
|
+
}) : null
|
|
308
|
+
})
|
|
309
|
+
]
|
|
310
|
+
})
|
|
311
|
+
}),
|
|
312
|
+
B && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, _object_spread({}, G))
|
|
313
|
+
]
|
|
314
|
+
})
|
|
315
|
+
})
|
|
316
|
+
});
|
|
317
|
+
}), Ae = le;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
column: function() {
|
|
13
|
+
return t;
|
|
14
|
+
},
|
|
15
|
+
rightContent: function() {
|
|
16
|
+
return o;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
require("../sprinkles.css.ts.vanilla.css-mistica.js");
|
|
20
|
+
require("./blocks.css.ts.vanilla.css-mistica.js");
|
|
21
|
+
var t = "_1y2v1nfb4 _1y2v1nfba", o = "llrsen1";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type StackingGroup from '../stacking-group';
|
|
3
|
+
import type Image from '../image';
|
|
4
|
+
import type Tag from '../tag';
|
|
5
|
+
import type { RendersNullableElement } from '../utils/renders-element';
|
|
6
|
+
import type { ExclusifyUnion } from '../utils/utility-types';
|
|
7
|
+
interface RowBlockBaseProps {
|
|
8
|
+
title?: string;
|
|
9
|
+
'aria-label'?: string;
|
|
10
|
+
}
|
|
11
|
+
interface RowBlockWithDescription extends RowBlockBaseProps {
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
14
|
+
interface RowBlockWithStackingGroup extends RowBlockBaseProps {
|
|
15
|
+
stackingGroup?: RendersNullableElement<typeof StackingGroup>;
|
|
16
|
+
}
|
|
17
|
+
type RowBlockProps = ExclusifyUnion<RowBlockWithDescription | RowBlockWithStackingGroup>;
|
|
18
|
+
export declare const RowBlock: React.FC<RowBlockProps>;
|
|
19
|
+
interface SimpleBlockProps {
|
|
20
|
+
image?: RendersNullableElement<typeof Image>;
|
|
21
|
+
description?: string;
|
|
22
|
+
'aria-label'?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const SimpleBlock: React.FC<SimpleBlockProps>;
|
|
25
|
+
interface InformationBlockProps {
|
|
26
|
+
title?: string;
|
|
27
|
+
description?: Array<string> | string;
|
|
28
|
+
value?: string;
|
|
29
|
+
secondaryValue?: string;
|
|
30
|
+
valueColor?: string;
|
|
31
|
+
'aria-label'?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const InformationBlock: React.FC<InformationBlockProps>;
|
|
34
|
+
interface HighlightedValueBlockProps {
|
|
35
|
+
headline?: RendersNullableElement<typeof Tag>;
|
|
36
|
+
mainHeading: {
|
|
37
|
+
value: string;
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
40
|
+
secondHeading?: {
|
|
41
|
+
value: string;
|
|
42
|
+
text: string;
|
|
43
|
+
};
|
|
44
|
+
secondaryValue?: string;
|
|
45
|
+
title?: string;
|
|
46
|
+
description?: Array<string> | string;
|
|
47
|
+
valueColor?: string;
|
|
48
|
+
'aria-label'?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare const HighlightedValueBlock: React.FC<HighlightedValueBlockProps>;
|
|
51
|
+
interface ValueBlockProps {
|
|
52
|
+
title?: string;
|
|
53
|
+
value?: string;
|
|
54
|
+
description?: Array<string> | string;
|
|
55
|
+
valueColor?: string;
|
|
56
|
+
'aria-label'?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare const ValueBlock: React.FC<ValueBlockProps>;
|
|
59
|
+
interface ProgressBlockProps {
|
|
60
|
+
title?: string;
|
|
61
|
+
stackingGroup?: RendersNullableElement<typeof StackingGroup>;
|
|
62
|
+
progressPercent?: number;
|
|
63
|
+
reverse?: boolean;
|
|
64
|
+
heading: {
|
|
65
|
+
value: string;
|
|
66
|
+
valueColor?: string;
|
|
67
|
+
text: string;
|
|
68
|
+
};
|
|
69
|
+
description?: string;
|
|
70
|
+
'aria-label'?: string;
|
|
71
|
+
}
|
|
72
|
+
export declare const ProgressBlock: React.FC<ProgressBlockProps>;
|
|
73
|
+
export {};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
HighlightedValueBlock: function() {
|
|
13
|
+
return z;
|
|
14
|
+
},
|
|
15
|
+
InformationBlock: function() {
|
|
16
|
+
return q;
|
|
17
|
+
},
|
|
18
|
+
ProgressBlock: function() {
|
|
19
|
+
return D;
|
|
20
|
+
},
|
|
21
|
+
RowBlock: function() {
|
|
22
|
+
return L;
|
|
23
|
+
},
|
|
24
|
+
SimpleBlock: function() {
|
|
25
|
+
return V;
|
|
26
|
+
},
|
|
27
|
+
ValueBlock: function() {
|
|
28
|
+
return A;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
32
|
+
const _stack = /*#__PURE__*/ _interop_require_default(require("../stack.js"));
|
|
33
|
+
const _blockscssmistica = require("./blocks.css-mistica.js");
|
|
34
|
+
const _text = require("../text.js");
|
|
35
|
+
const _skincontractcssmistica = require("../skins/skin-contract.css-mistica.js");
|
|
36
|
+
const _inline = /*#__PURE__*/ _interop_require_default(require("../inline.js"));
|
|
37
|
+
const _box = /*#__PURE__*/ _interop_require_default(require("../box.js"));
|
|
38
|
+
const _progressbar = /*#__PURE__*/ _interop_require_default(require("../progress-bar.js"));
|
|
39
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
40
|
+
function _interop_require_default(obj) {
|
|
41
|
+
return obj && obj.__esModule ? obj : {
|
|
42
|
+
default: obj
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const g = (param)=>{
|
|
46
|
+
let { title: o , description: e } = param;
|
|
47
|
+
const l = typeof e == "string" ? [
|
|
48
|
+
e
|
|
49
|
+
] : e;
|
|
50
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
51
|
+
className: _blockscssmistica.column,
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
54
|
+
regular: !0,
|
|
55
|
+
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
56
|
+
children: o
|
|
57
|
+
}),
|
|
58
|
+
l && l.map((t, n)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
59
|
+
regular: !0,
|
|
60
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
61
|
+
as: "p",
|
|
62
|
+
children: t
|
|
63
|
+
}, n))
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
}, L = (param)=>/* @__PURE__ */ {
|
|
67
|
+
let { title: o , stackingGroup: e , description: l , "aria-label": t } = param;
|
|
68
|
+
return (0, _jsxruntime.jsx)("div", {
|
|
69
|
+
"aria-label": t,
|
|
70
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
71
|
+
space: "between",
|
|
72
|
+
alignItems: "center",
|
|
73
|
+
children: [
|
|
74
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
75
|
+
paddingRight: 32,
|
|
76
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
77
|
+
regular: !0,
|
|
78
|
+
children: o
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
e || /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
82
|
+
regular: !0,
|
|
83
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
84
|
+
children: l
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
}, V = (param)=>/* @__PURE__ */ {
|
|
90
|
+
let { image: o , description: e , "aria-label": l } = param;
|
|
91
|
+
return (0, _jsxruntime.jsx)("div", {
|
|
92
|
+
"aria-label": l,
|
|
93
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
94
|
+
space: 16,
|
|
95
|
+
alignItems: "center",
|
|
96
|
+
children: [
|
|
97
|
+
o,
|
|
98
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
99
|
+
regular: !0,
|
|
100
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
101
|
+
children: e
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}, q = (param)=>/* @__PURE__ */ {
|
|
107
|
+
let { title: o , description: e , secondaryValue: l , value: t , valueColor: n = _skincontractcssmistica.vars.colors.textPrimary , "aria-label": d } = param;
|
|
108
|
+
return (0, _jsxruntime.jsxs)(_inline.default, {
|
|
109
|
+
space: "between",
|
|
110
|
+
alignItems: "flex-end",
|
|
111
|
+
"aria-label": d,
|
|
112
|
+
children: [
|
|
113
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(g, {
|
|
114
|
+
title: o,
|
|
115
|
+
description: e
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
118
|
+
className: (0, _classnames.default)(_blockscssmistica.column, _blockscssmistica.rightContent),
|
|
119
|
+
children: [
|
|
120
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
121
|
+
regular: !0,
|
|
122
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
123
|
+
children: l
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text5, {
|
|
126
|
+
color: n,
|
|
127
|
+
children: t
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
});
|
|
133
|
+
}, z = (param)=>/* @__PURE__ */ {
|
|
134
|
+
let { headline: o , mainHeading: e , secondHeading: l , secondaryValue: t , title: n , description: d , valueColor: m = _skincontractcssmistica.vars.colors.textPrimary , "aria-label": b } = param;
|
|
135
|
+
return (0, _jsxruntime.jsxs)("div", {
|
|
136
|
+
"aria-label": b,
|
|
137
|
+
children: [
|
|
138
|
+
o && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
139
|
+
paddingBottom: 24,
|
|
140
|
+
children: o
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
143
|
+
space: 2,
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
146
|
+
space: 8,
|
|
147
|
+
alignItems: "baseline",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
|
|
150
|
+
color: m,
|
|
151
|
+
children: e.value
|
|
152
|
+
}),
|
|
153
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
154
|
+
regular: !0,
|
|
155
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
156
|
+
children: e.text
|
|
157
|
+
})
|
|
158
|
+
]
|
|
159
|
+
}),
|
|
160
|
+
l && /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
161
|
+
space: 8,
|
|
162
|
+
alignItems: "baseline",
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
|
|
165
|
+
color: m,
|
|
166
|
+
children: l.value
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
169
|
+
regular: !0,
|
|
170
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
171
|
+
children: l.text
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
}),
|
|
175
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
|
|
176
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
177
|
+
children: t
|
|
178
|
+
})
|
|
179
|
+
]
|
|
180
|
+
}),
|
|
181
|
+
n || d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
182
|
+
paddingTop: 8,
|
|
183
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(g, {
|
|
184
|
+
title: n,
|
|
185
|
+
description: d
|
|
186
|
+
})
|
|
187
|
+
}) : null
|
|
188
|
+
]
|
|
189
|
+
});
|
|
190
|
+
}, A = (param)=>/* @__PURE__ */ {
|
|
191
|
+
let { title: o , value: e , description: l , valueColor: t = _skincontractcssmistica.vars.colors.textPrimary , "aria-label": n } = param;
|
|
192
|
+
return (0, _jsxruntime.jsxs)("div", {
|
|
193
|
+
"aria-label": n,
|
|
194
|
+
className: _blockscssmistica.column,
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
197
|
+
regular: !0,
|
|
198
|
+
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
199
|
+
children: o
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
|
|
202
|
+
color: t,
|
|
203
|
+
children: e
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(g, {
|
|
206
|
+
description: l
|
|
207
|
+
})
|
|
208
|
+
]
|
|
209
|
+
});
|
|
210
|
+
}, D = (param)=>/* @__PURE__ */ {
|
|
211
|
+
let { title: o , stackingGroup: e , progressPercent: l , reverse: t , heading: n , description: d , "aria-label": m } = param;
|
|
212
|
+
return (0, _jsxruntime.jsx)("div", {
|
|
213
|
+
"aria-label": m,
|
|
214
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
215
|
+
space: 8,
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
218
|
+
space: "between",
|
|
219
|
+
alignItems: "flex-end",
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
222
|
+
paddingRight: 32,
|
|
223
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
224
|
+
regular: !0,
|
|
225
|
+
children: o
|
|
226
|
+
})
|
|
227
|
+
}),
|
|
228
|
+
e
|
|
229
|
+
]
|
|
230
|
+
}),
|
|
231
|
+
l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_progressbar.default, {
|
|
232
|
+
progressPercent: l,
|
|
233
|
+
reverse: t
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
236
|
+
space: 8,
|
|
237
|
+
alignItems: "baseline",
|
|
238
|
+
children: [
|
|
239
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text8, {
|
|
240
|
+
color: n.valueColor || _skincontractcssmistica.vars.colors.textPrimary,
|
|
241
|
+
children: n.value
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
244
|
+
regular: !0,
|
|
245
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
246
|
+
children: n.text
|
|
247
|
+
})
|
|
248
|
+
]
|
|
249
|
+
}),
|
|
250
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
251
|
+
regular: !0,
|
|
252
|
+
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
253
|
+
children: d
|
|
254
|
+
})
|
|
255
|
+
]
|
|
256
|
+
})
|
|
257
|
+
});
|
|
258
|
+
};
|