@telefonica/mistica 12.1.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/button-group.d.ts +2 -1
- package/dist/button-group.js +35 -4
- package/dist/button-group.js.flow +2 -1
- package/dist/button-layout.d.ts +2 -1
- package/dist/button-layout.js +22 -4
- package/dist/button-layout.js.flow +2 -1
- package/dist/button.js +110 -32
- package/dist/dialog.d.ts +21 -4
- package/dist/dialog.js +51 -26
- package/dist/dialog.js.flow +17 -4
- package/dist/generated/mistica-icons/icon-gift-light.js +1 -1
- package/dist/generated/mistica-icons/icon-hand-snap-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-intranet-light.js +1 -1
- package/dist/generated/mistica-icons/icon-support-agent-premium-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-support-agent-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-tag-discount-euro-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-tips-and-tricks-regular.js +2 -2
- package/dist/generated/mistica-icons/icon-world-device-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-world-device-filled.js +109 -0
- package/dist/generated/mistica-icons/icon-world-device-filled.js.flow +6 -0
- package/dist/generated/mistica-icons/icon-world-device-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-world-device-light.js +115 -0
- package/dist/generated/mistica-icons/icon-world-device-light.js.flow +6 -0
- package/dist/generated/mistica-icons/icon-world-device-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-world-device-regular.js +109 -0
- package/dist/generated/mistica-icons/icon-world-device-regular.js.flow +6 -0
- package/dist/grid-layout.d.ts +16 -0
- package/dist/grid-layout.js +96 -35
- package/dist/grid-layout.js.flow +33 -1
- package/dist/header.d.ts +3 -1
- package/dist/header.js +4 -2
- package/dist/header.js.flow +7 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +58 -0
- package/dist/index.js.flow +11 -1
- package/dist/navigation-bar.js +121 -96
- package/dist/overscroll-color-context.d.ts +1 -1
- package/dist/overscroll-color-context.js +12 -14
- package/dist/overscroll-color-context.js.flow +1 -1
- package/dist/package-version.js +1 -1
- package/dist/skeleton-base.d.ts +9 -0
- package/dist/skeleton-base.js +75 -0
- package/dist/skeleton-base.js.flow +11 -0
- package/dist/skeletons.d.ts +21 -0
- package/dist/skeletons.js +232 -0
- package/dist/skeletons.js.flow +29 -0
- package/dist/skins/blau.js +1 -1
- package/dist/skins/movistar.js +1 -1
- package/dist/skins/o2-classic.js +1 -1
- package/dist/skins/o2.js +1 -1
- package/dist/skins/telefonica.js +2 -2
- package/dist/skins/utils.d.ts +2 -0
- package/dist/skins/utils.js +34 -1
- package/dist/skins/utils.js.flow +2 -0
- package/dist/skins/vivo.js +1 -1
- package/dist/tabs.d.ts +2 -1
- package/dist/tabs.js +22 -4
- package/dist/tabs.js.flow +2 -1
- package/dist-es/button-group.js +34 -4
- package/dist-es/button-layout.js +21 -4
- package/dist-es/button.js +110 -32
- package/dist-es/dialog.js +51 -25
- package/dist-es/generated/mistica-icons/icon-gift-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-hand-snap-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-intranet-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-support-agent-premium-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-support-agent-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-tag-discount-euro-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-tips-and-tricks-regular.js +2 -2
- package/dist-es/generated/mistica-icons/icon-world-device-filled.js +85 -0
- package/dist-es/generated/mistica-icons/icon-world-device-light.js +91 -0
- package/dist-es/generated/mistica-icons/icon-world-device-regular.js +85 -0
- package/dist-es/grid-layout.js +95 -35
- package/dist-es/header.js +4 -2
- package/dist-es/index.js +5 -1
- package/dist-es/navigation-bar.js +121 -96
- package/dist-es/overscroll-color-context.js +12 -14
- package/dist-es/package-version.js +1 -1
- package/dist-es/skeleton-base.js +43 -0
- package/dist-es/skeletons.js +196 -0
- package/dist-es/skins/blau.js +1 -1
- package/dist-es/skins/movistar.js +1 -1
- package/dist-es/skins/o2-classic.js +1 -1
- package/dist-es/skins/o2.js +1 -1
- package/dist-es/skins/telefonica.js +2 -2
- package/dist-es/skins/utils.js +12 -0
- package/dist-es/skins/vivo.js +1 -1
- package/dist-es/tabs.js +21 -4
- package/package.json +2 -2
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
function _defineProperty(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 _objectSpread(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
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
57
|
+
/*
|
|
58
|
+
* This file was autogenerated. Don't edit this file!
|
|
59
|
+
*
|
|
60
|
+
* To update, execute "yarn start" inside "import-mistica-icons"
|
|
61
|
+
*/ import * as React from "react";
|
|
62
|
+
import { useTheme } from "../../hooks";
|
|
63
|
+
import { useIsInverseVariant } from "../../theme-variant-context";
|
|
64
|
+
var IconWorldDeviceLight = function(_param) {
|
|
65
|
+
var color = _param.color, _size = _param.size, size = _size === void 0 ? 24 : _size, children = _param.children, rest = _objectWithoutProperties(_param, [
|
|
66
|
+
"color",
|
|
67
|
+
"size",
|
|
68
|
+
"children"
|
|
69
|
+
]);
|
|
70
|
+
var colors = useTheme().colors;
|
|
71
|
+
var isInverse = useIsInverseVariant();
|
|
72
|
+
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
+
return /*#__PURE__*/ _jsxs("svg", _objectSpread({
|
|
74
|
+
width: size,
|
|
75
|
+
height: size,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
role: "presentation"
|
|
78
|
+
}, rest, {
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ _jsx("path", {
|
|
81
|
+
d: "M14.518 21.643a.714.714 0 110-1.429.714.714 0 010 1.429z",
|
|
82
|
+
fill: fillColor
|
|
83
|
+
}),
|
|
84
|
+
/*#__PURE__*/ _jsx("path", {
|
|
85
|
+
d: "M19.875 2c1 0 1.786.786 1.75 1.786v6.071c0 1-.786 1.786-1.786 1.786h-2.5c-.821 0-1.5-.572-1.714-1.322-.214-.071-.393-.071-.536 0-.571.286-.964.965-1 1.679 0 .429.072 1.25.965 1.821 1.535 1.036 1.5 1.965 1.428 2.822-.036.678-.071 1.357.679 2.178a8.195 8.195 0 002.357-5.75c0-.214.143-.357.357-.357s.357.143.357.357c0 2.858-1.321 5.465-3.571 7.215a.507.507 0 01-.215.071.325.325 0 01-.285-.143.384.384 0 01.071-.5c.143-.107.286-.25.429-.357-.965-1.071-.893-1.964-.857-2.714.071-.822.107-1.393-1.108-2.179A2.608 2.608 0 0113.411 12c.035-1 .607-1.893 1.393-2.286.25-.143.5-.143.785-.107v-3.5a8.18 8.18 0 00-4.285-1.214c-.5 0-.965.071-1.429.143.429.821 1.107 2.321.786 3.25-.25.75-1.215 2.107-3.072 2-.178-.036-.357 0-.464 0 .214.107.607.25 1.286.464 0 0 1 .25 1.607 1.357a1.271 1.271 0 001.643.536c.321-.179.714-.143 1.035.036.322.178.572.535.608.892.107.822-.072 2.393-1.536 3.072-.607.286-.714.607-.822 1.071-.107.393-.214.822-.642 1.215-.215.214-.536.321-.858.321a2 2 0 01-.607-.107c-1-.322-2.25-1.464-2.643-3.179a5.356 5.356 0 01-.142-1.321c0-.393-.322-1.857-.893-2.286-.143-.107-.286-.143-.465-.071-.607.214-.928.107-1.535-.25a9.436 9.436 0 00-.072 1.035 8.215 8.215 0 008.215 8.215c.357 0 .75-.036 1.142-.072.179 0 .358.143.393.322a.419.419 0 01-.321.393c-.393.035-.822.071-1.214.071-4.929 0-8.929-4-8.929-8.929 0-4.928 4-8.928 8.929-8.928 1.5 0 2.964.393 4.285 1.107V3.786c0-1 .786-1.786 1.786-1.786h2.5zM9.982 8c.214-.607-.321-1.893-.821-2.821a8.204 8.204 0 00-5.857 6.107c.714.428.857.428 1.214.321.393-.107.786-.071 1.107.179.857.643 1.179 2.464 1.179 2.857 0 .428.035.786.107 1.143.285 1.393 1.321 2.357 2.143 2.643.178.035.571.142.785-.072.25-.25.357-.536.429-.857.143-.5.286-1.107 1.214-1.536 1.357-.643 1.143-2.285 1.143-2.357-.036-.143-.107-.286-.25-.357a.383.383 0 00-.393-.036c-.964.429-2.071.072-2.571-.821-.429-.786-1.179-1-1.179-1-1.571-.5-2.071-.822-2.036-1.286.036-.571.929-.643 1.429-.607A2.353 2.353 0 009.982 8zm7.393-5.286c-.607 0-1.071.465-1.071 1.072h4.642c0-.607-.464-1.072-1.071-1.072h-2.5zM16.304 4.5v4.643h4.642V4.5h-4.642zm3.571 6.429c.607 0 1.071-.465 1.071-1.072h-4.642c0 .607.464 1.072 1.071 1.072h2.5z",
|
|
86
|
+
fill: fillColor
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
}));
|
|
90
|
+
};
|
|
91
|
+
export default IconWorldDeviceLight;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
function _defineProperty(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 _objectSpread(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
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _objectWithoutProperties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
32
|
+
var key, i;
|
|
33
|
+
if (Object.getOwnPropertySymbols) {
|
|
34
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
35
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
36
|
+
key = sourceSymbolKeys[i];
|
|
37
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
38
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
39
|
+
target[key] = source[key];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
}
|
|
44
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
45
|
+
if (source == null) return {};
|
|
46
|
+
var target = {};
|
|
47
|
+
var sourceKeys = Object.keys(source);
|
|
48
|
+
var key, i;
|
|
49
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
50
|
+
key = sourceKeys[i];
|
|
51
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
52
|
+
target[key] = source[key];
|
|
53
|
+
}
|
|
54
|
+
return target;
|
|
55
|
+
}
|
|
56
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
57
|
+
/*
|
|
58
|
+
* This file was autogenerated. Don't edit this file!
|
|
59
|
+
*
|
|
60
|
+
* To update, execute "yarn start" inside "import-mistica-icons"
|
|
61
|
+
*/ import * as React from "react";
|
|
62
|
+
import { useTheme } from "../../hooks";
|
|
63
|
+
import { useIsInverseVariant } from "../../theme-variant-context";
|
|
64
|
+
var IconWorldDeviceRegular = function(_param) {
|
|
65
|
+
var color = _param.color, _size = _param.size, size = _size === void 0 ? 24 : _size, children = _param.children, rest = _objectWithoutProperties(_param, [
|
|
66
|
+
"color",
|
|
67
|
+
"size",
|
|
68
|
+
"children"
|
|
69
|
+
]);
|
|
70
|
+
var colors = useTheme().colors;
|
|
71
|
+
var isInverse = useIsInverseVariant();
|
|
72
|
+
var fillColor = color !== null && color !== void 0 ? color : isInverse ? colors.inverse : colors.neutralHigh;
|
|
73
|
+
return /*#__PURE__*/ _jsx("svg", _objectSpread({
|
|
74
|
+
width: size,
|
|
75
|
+
height: size,
|
|
76
|
+
viewBox: "0 0 24 24",
|
|
77
|
+
role: "presentation"
|
|
78
|
+
}, rest, {
|
|
79
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
80
|
+
d: "M20.212 2h-3.214c-.786 0-1.429.643-1.429 1.429V5.25a8.8 8.8 0 00-4.285-1.107c-4.929 0-8.929 4-8.929 8.928 0 4.929 4 8.929 8.929 8.929 4.928 0 8.928-4 8.928-8.929 0-.5-.036-.964-.107-1.428h.107c.786 0 1.429-.643 1.429-1.429V3.43c0-.786-.643-1.429-1.429-1.429zm.357 3.036v3.571h-3.928V5.036h3.928zM16.998 3.07h3.214c.179 0 .357.179.357.358v.535h-3.928V3.43c0-.179.178-.358.357-.358zM8.962 5.93c.393.892.607 1.642.464 2 0 0-.5 1.464-2.178 1.357-1.357-.072-1.572.464-1.607.785-.036.572.464.929 2.143 1.465.035 0 .678.178 1.071.928a2.183 2.183 0 002.786.929.304.304 0 01.25 0c.071.036.143.143.143.214 0 .072.214 1.607-1.036 2.143-1 .464-1.179 1.143-1.322 1.679-.071.321-.142.571-.392.75-.179.142-.5.071-.608.035-.785-.25-1.75-1.214-2.035-2.5a5.294 5.294 0 01-.107-1.107c0-.428-.322-2.286-1.25-3-.393-.286-.822-.357-1.25-.214l-.108.036a7.674 7.674 0 015.036-5.5zm2.322 14.642a7.5 7.5 0 01-7.5-7.5c0-.178 0-.321.035-.5.143 0 .286-.035.465-.107l.107-.035c.107-.036.178-.036.285.035.5.393.822 1.822.822 2.143 0 .5.036.929.143 1.357.393 1.786 1.714 2.965 2.75 3.286.25.071.464.107.678.107.393 0 .715-.107.965-.357.464-.429.607-.893.714-1.286.107-.464.178-.714.714-.964 1.536-.714 1.75-2.393 1.643-3.286-.071-.428-.321-.821-.679-1a1.326 1.326 0 00-1.214-.035 1.046 1.046 0 01-1.393-.465c-.571-1.071-1.535-1.393-1.714-1.428-.179-.036-.321-.107-.429-.143 1.679-.107 2.572-1.393 2.822-2.107.25-.715-.072-1.75-.429-2.607a7.08 7.08 0 011.25-.108c1.607 0 3.072.5 4.286 1.358v2.464c-.286-.036-.571 0-.857.107-.857.429-1.429 1.393-1.5 2.429-.072 1.071.428 2.035 1.357 2.642 1.107.715 1.071 1.215 1.036 2-.036.643-.107 1.393.464 2.25-1.357 1.108-3 1.75-4.821 1.75zm7.5-7.5c0 1.929-.75 3.679-1.929 5-.25-.5-.214-.928-.179-1.428.072-.893.143-1.893-1.535-2.964-.822-.536-.893-1.286-.857-1.679.035-.679.392-1.286.892-1.536.072-.035.25-.035.393 0 .143.643.715 1.143 1.393 1.143h1.643c.143.5.179.964.179 1.464zm1.428-2.5h-3.214a.384.384 0 01-.357-.357V9.68h3.928v.535a.384.384 0 01-.357.357z",
|
|
81
|
+
fill: fillColor
|
|
82
|
+
})
|
|
83
|
+
}));
|
|
84
|
+
};
|
|
85
|
+
export default IconWorldDeviceRegular;
|
package/dist-es/grid-layout.js
CHANGED
|
@@ -11,9 +11,25 @@ function _defineProperty(obj, key, value) {
|
|
|
11
11
|
}
|
|
12
12
|
return obj;
|
|
13
13
|
}
|
|
14
|
+
function _objectSpread(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
|
+
_defineProperty(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
14
29
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
30
|
import * as React from "react";
|
|
16
31
|
import { createUseStyles } from "./jss";
|
|
32
|
+
import { getPrefixedDataAttributes } from "./utils/dom";
|
|
17
33
|
var useStyles = createUseStyles(function(theme) {
|
|
18
34
|
var _obj, _obj1, _obj2, _obj3, _obj4, _obj5, _obj6, _obj7;
|
|
19
35
|
return {
|
|
@@ -25,58 +41,96 @@ var useStyles = createUseStyles(function(theme) {
|
|
|
25
41
|
}), _defineProperty(_obj, theme.mq.desktop, {
|
|
26
42
|
gridTemplateColumns: "repeat(12, 1fr)",
|
|
27
43
|
gridColumnGap: 16
|
|
28
|
-
}), _defineProperty(_obj, theme.mq.
|
|
44
|
+
}), _defineProperty(_obj, theme.mq.tabletOrSmaller, {
|
|
29
45
|
gridTemplateColumns: "minmax(0, 1fr)",
|
|
30
|
-
gridColumnGap: 16
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
46
|
+
gridColumnGap: 16,
|
|
47
|
+
gap: function(param) {
|
|
48
|
+
var verticalSpace = param.verticalSpace;
|
|
49
|
+
return verticalSpace;
|
|
50
|
+
}
|
|
34
51
|
}), _obj),
|
|
35
52
|
span1: {
|
|
36
|
-
gridColumn: "span 1"
|
|
53
|
+
gridColumn: "span 1",
|
|
54
|
+
gap: function(param) {
|
|
55
|
+
var verticalSpace = param.verticalSpace;
|
|
56
|
+
return verticalSpace;
|
|
57
|
+
}
|
|
37
58
|
},
|
|
38
59
|
span3: (_obj1 = {}, _defineProperty(_obj1, theme.mq.desktopOrBigger, {
|
|
39
60
|
gridColumn: "span 3"
|
|
40
61
|
}), _defineProperty(_obj1, theme.mq.tabletOrSmaller, {
|
|
41
|
-
gridColumn: "span 1"
|
|
62
|
+
gridColumn: "span 1",
|
|
63
|
+
gap: function(param) {
|
|
64
|
+
var verticalSpace = param.verticalSpace;
|
|
65
|
+
return verticalSpace;
|
|
66
|
+
}
|
|
42
67
|
}), _obj1),
|
|
43
68
|
span4: (_obj2 = {}, _defineProperty(_obj2, theme.mq.desktopOrBigger, {
|
|
44
69
|
gridColumn: "span 4"
|
|
45
70
|
}), _defineProperty(_obj2, theme.mq.tabletOrSmaller, {
|
|
46
|
-
gridColumn: "span 1"
|
|
71
|
+
gridColumn: "span 1",
|
|
72
|
+
gap: function(param) {
|
|
73
|
+
var verticalSpace = param.verticalSpace;
|
|
74
|
+
return verticalSpace;
|
|
75
|
+
}
|
|
47
76
|
}), _obj2),
|
|
48
77
|
span5: (_obj3 = {}, _defineProperty(_obj3, theme.mq.desktopOrBigger, {
|
|
49
78
|
gridColumn: "span 5"
|
|
50
79
|
}), _defineProperty(_obj3, theme.mq.tabletOrSmaller, {
|
|
51
|
-
gridColumn: "span 1"
|
|
80
|
+
gridColumn: "span 1",
|
|
81
|
+
gap: function(param) {
|
|
82
|
+
var verticalSpace = param.verticalSpace;
|
|
83
|
+
return verticalSpace;
|
|
84
|
+
}
|
|
52
85
|
}), _obj3),
|
|
53
86
|
span6: (_obj4 = {}, _defineProperty(_obj4, theme.mq.desktopOrBigger, {
|
|
54
87
|
gridColumn: "span 6"
|
|
55
88
|
}), _defineProperty(_obj4, theme.mq.tabletOrSmaller, {
|
|
56
|
-
gridColumn: "span 1"
|
|
89
|
+
gridColumn: "span 1",
|
|
90
|
+
gap: function(param) {
|
|
91
|
+
var verticalSpace = param.verticalSpace;
|
|
92
|
+
return verticalSpace;
|
|
93
|
+
}
|
|
57
94
|
}), _obj4),
|
|
58
95
|
span8: (_obj5 = {}, _defineProperty(_obj5, theme.mq.desktopOrBigger, {
|
|
59
96
|
gridColumn: "span 8"
|
|
60
97
|
}), _defineProperty(_obj5, theme.mq.tabletOrSmaller, {
|
|
61
|
-
gridColumn: "span 1"
|
|
98
|
+
gridColumn: "span 1",
|
|
99
|
+
gap: function(param) {
|
|
100
|
+
var verticalSpace = param.verticalSpace;
|
|
101
|
+
return verticalSpace;
|
|
102
|
+
}
|
|
62
103
|
}), _obj5),
|
|
63
104
|
span9: (_obj6 = {}, _defineProperty(_obj6, theme.mq.desktopOrBigger, {
|
|
64
105
|
gridColumn: "span 9"
|
|
65
106
|
}), _defineProperty(_obj6, theme.mq.tabletOrSmaller, {
|
|
66
|
-
gridColumn: "span 1"
|
|
107
|
+
gridColumn: "span 1",
|
|
108
|
+
gap: function(param) {
|
|
109
|
+
var verticalSpace = param.verticalSpace;
|
|
110
|
+
return verticalSpace;
|
|
111
|
+
}
|
|
67
112
|
}), _obj6),
|
|
68
113
|
span10: (_obj7 = {}, _defineProperty(_obj7, theme.mq.desktopOrBigger, {
|
|
69
114
|
gridColumn: "span 10"
|
|
70
115
|
}), _defineProperty(_obj7, theme.mq.tabletOrSmaller, {
|
|
71
|
-
gridColumn: "span 1"
|
|
116
|
+
gridColumn: "span 1",
|
|
117
|
+
gap: function(param) {
|
|
118
|
+
var verticalSpace = param.verticalSpace;
|
|
119
|
+
return verticalSpace;
|
|
120
|
+
}
|
|
72
121
|
}), _obj7)
|
|
73
122
|
};
|
|
74
123
|
});
|
|
75
124
|
var GridLayout = function(props) {
|
|
76
|
-
var
|
|
125
|
+
var _verticalSpace;
|
|
126
|
+
var classes = useStyles({
|
|
127
|
+
verticalSpace: (_verticalSpace = props.verticalSpace) !== null && _verticalSpace !== void 0 ? _verticalSpace : 0
|
|
128
|
+
});
|
|
129
|
+
var dataAttributes = getPrefixedDataAttributes(props.dataAttributes);
|
|
77
130
|
if (props.template === "6+6") {
|
|
78
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
79
|
-
className: classes.grid
|
|
131
|
+
return /*#__PURE__*/ _jsxs("div", _objectSpread({
|
|
132
|
+
className: classes.grid
|
|
133
|
+
}, dataAttributes, {
|
|
80
134
|
children: [
|
|
81
135
|
/*#__PURE__*/ _jsx("div", {
|
|
82
136
|
className: classes.span6,
|
|
@@ -87,11 +141,12 @@ var GridLayout = function(props) {
|
|
|
87
141
|
children: props.right
|
|
88
142
|
})
|
|
89
143
|
]
|
|
90
|
-
});
|
|
144
|
+
}));
|
|
91
145
|
}
|
|
92
146
|
if (props.template === "8+4") {
|
|
93
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
94
|
-
className: classes.grid
|
|
147
|
+
return /*#__PURE__*/ _jsxs("div", _objectSpread({
|
|
148
|
+
className: classes.grid
|
|
149
|
+
}, dataAttributes, {
|
|
95
150
|
children: [
|
|
96
151
|
/*#__PURE__*/ _jsx("div", {
|
|
97
152
|
className: classes.span8,
|
|
@@ -102,11 +157,12 @@ var GridLayout = function(props) {
|
|
|
102
157
|
children: props.right
|
|
103
158
|
})
|
|
104
159
|
]
|
|
105
|
-
});
|
|
160
|
+
}));
|
|
106
161
|
}
|
|
107
162
|
if (props.template === "4+6") {
|
|
108
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
109
|
-
className: classes.grid
|
|
163
|
+
return /*#__PURE__*/ _jsxs("div", _objectSpread({
|
|
164
|
+
className: classes.grid
|
|
165
|
+
}, dataAttributes, {
|
|
110
166
|
children: [
|
|
111
167
|
/*#__PURE__*/ _jsx("div", {
|
|
112
168
|
className: classes.span4,
|
|
@@ -123,11 +179,12 @@ var GridLayout = function(props) {
|
|
|
123
179
|
className: classes.span1
|
|
124
180
|
})
|
|
125
181
|
]
|
|
126
|
-
});
|
|
182
|
+
}));
|
|
127
183
|
}
|
|
128
184
|
if (props.template === "5+4") {
|
|
129
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
130
|
-
className: classes.grid
|
|
185
|
+
return /*#__PURE__*/ _jsxs("div", _objectSpread({
|
|
186
|
+
className: classes.grid
|
|
187
|
+
}, dataAttributes, {
|
|
131
188
|
children: [
|
|
132
189
|
/*#__PURE__*/ _jsx("div", {
|
|
133
190
|
className: classes.span1
|
|
@@ -147,11 +204,12 @@ var GridLayout = function(props) {
|
|
|
147
204
|
className: classes.span1
|
|
148
205
|
})
|
|
149
206
|
]
|
|
150
|
-
});
|
|
207
|
+
}));
|
|
151
208
|
}
|
|
152
209
|
if (props.template === "3+9") {
|
|
153
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
154
|
-
className: classes.grid
|
|
210
|
+
return /*#__PURE__*/ _jsxs("div", _objectSpread({
|
|
211
|
+
className: classes.grid
|
|
212
|
+
}, dataAttributes, {
|
|
155
213
|
children: [
|
|
156
214
|
/*#__PURE__*/ _jsx("div", {
|
|
157
215
|
className: classes.span3,
|
|
@@ -162,11 +220,12 @@ var GridLayout = function(props) {
|
|
|
162
220
|
children: props.right
|
|
163
221
|
})
|
|
164
222
|
]
|
|
165
|
-
});
|
|
223
|
+
}));
|
|
166
224
|
}
|
|
167
225
|
if (props.template === "10") {
|
|
168
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
169
|
-
className: classes.grid
|
|
226
|
+
return /*#__PURE__*/ _jsxs("div", _objectSpread({
|
|
227
|
+
className: classes.grid
|
|
228
|
+
}, dataAttributes, {
|
|
170
229
|
children: [
|
|
171
230
|
/*#__PURE__*/ _jsx("div", {
|
|
172
231
|
className: classes.span1
|
|
@@ -179,11 +238,12 @@ var GridLayout = function(props) {
|
|
|
179
238
|
className: classes.span1
|
|
180
239
|
})
|
|
181
240
|
]
|
|
182
|
-
});
|
|
241
|
+
}));
|
|
183
242
|
}
|
|
184
|
-
return /*#__PURE__*/ _jsx("div", {
|
|
185
|
-
className: classes.grid
|
|
243
|
+
return /*#__PURE__*/ _jsx("div", _objectSpread({
|
|
244
|
+
className: classes.grid
|
|
245
|
+
}, dataAttributes, {
|
|
186
246
|
children: props.children
|
|
187
|
-
});
|
|
247
|
+
}));
|
|
188
248
|
};
|
|
189
249
|
export default GridLayout;
|
package/dist-es/header.js
CHANGED
|
@@ -66,7 +66,7 @@ import OverscrollColor from "./overscroll-color-context";
|
|
|
66
66
|
import { Text8, Text7, Text6, Text3 } from "./text";
|
|
67
67
|
import ButtonGroup from "./button-group";
|
|
68
68
|
var Header = function(param) {
|
|
69
|
-
var pretitle = param.pretitle, title = param.title, preamount = param.preamount, amount = param.amount, button = param.button, subtitle = param.subtitle, isErrorAmount = param.isErrorAmount, secondaryButton = param.secondaryButton;
|
|
69
|
+
var pretitle = param.pretitle, title = param.title, preamount = param.preamount, amount = param.amount, button = param.button, subtitle = param.subtitle, isErrorAmount = param.isErrorAmount, secondaryButton = param.secondaryButton, dataAttributes = param.dataAttributes;
|
|
70
70
|
var isTabletOrSmaller = useScreenSize().isTabletOrSmaller;
|
|
71
71
|
var theme = useTheme();
|
|
72
72
|
var isInverse = useIsInverseVariant();
|
|
@@ -89,6 +89,7 @@ var Header = function(param) {
|
|
|
89
89
|
};
|
|
90
90
|
return /*#__PURE__*/ _jsxs(Stack, {
|
|
91
91
|
space: isTabletOrSmaller ? 24 : 32,
|
|
92
|
+
dataAttributes: dataAttributes,
|
|
92
93
|
children: [
|
|
93
94
|
(title || pretitle) && /*#__PURE__*/ _jsx(Box, {
|
|
94
95
|
paddingRight: 16,
|
|
@@ -169,13 +170,14 @@ var useHeaderLayoutStyles = createUseStyles(function(theme) {
|
|
|
169
170
|
};
|
|
170
171
|
});
|
|
171
172
|
export var HeaderLayout = function(param) {
|
|
172
|
-
var _isInverse = param.isInverse, isInverse = _isInverse === void 0 ? true : _isInverse, breadcrumbs = param.breadcrumbs, header = param.header, extra = param.extra, _sideBySideExtraOnDesktop = param.sideBySideExtraOnDesktop, sideBySideExtraOnDesktop = _sideBySideExtraOnDesktop === void 0 ? false : _sideBySideExtraOnDesktop;
|
|
173
|
+
var _isInverse = param.isInverse, isInverse = _isInverse === void 0 ? true : _isInverse, breadcrumbs = param.breadcrumbs, header = param.header, extra = param.extra, _sideBySideExtraOnDesktop = param.sideBySideExtraOnDesktop, sideBySideExtraOnDesktop = _sideBySideExtraOnDesktop === void 0 ? false : _sideBySideExtraOnDesktop, dataAttributes = param.dataAttributes;
|
|
173
174
|
var classes = useHeaderLayoutStyles({
|
|
174
175
|
isInverse: isInverse
|
|
175
176
|
});
|
|
176
177
|
var isTabletOrSmaller = useScreenSize().isTabletOrSmaller;
|
|
177
178
|
return /*#__PURE__*/ _jsx(ResponsiveLayout, {
|
|
178
179
|
className: classes.background,
|
|
180
|
+
dataAttributes: dataAttributes,
|
|
179
181
|
children: /*#__PURE__*/ _jsxs(ThemeVariant, {
|
|
180
182
|
isInverse: isInverse,
|
|
181
183
|
children: [
|
package/dist-es/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { FeedbackScreen, ErrorFeedbackScreen, InfoFeedbackScreen, SuccessFeedbac
|
|
|
20
20
|
export { default as IconButton } from "./icon-button";
|
|
21
21
|
export { default as Popover } from "./popover";
|
|
22
22
|
export { default as FocusTrap } from "./focus-trap";
|
|
23
|
-
export { confirm, alert } from "./dialog";
|
|
23
|
+
export { confirm, alert, dialog } from "./dialog";
|
|
24
24
|
export { default as Badge } from "./badge";
|
|
25
25
|
export { default as TextLink } from "./text-link";
|
|
26
26
|
export { default as Overlay } from "./overlay";
|
|
@@ -87,6 +87,7 @@ export { default as IconChevron } from "./icons/icon-chevron";
|
|
|
87
87
|
export { default as IconError } from "./icons/icon-error";
|
|
88
88
|
export { default as IconSuccess } from "./icons/icon-success";
|
|
89
89
|
export { default as IconSuccessVivo } from "./icons/icon-success-vivo";
|
|
90
|
+
export { SkeletonCircle, SkeletonRow, SkeletonLine, SkeletonRectangle, SkeletonText } from "./skeletons";
|
|
90
91
|
export { default as Circle } from "./circle";
|
|
91
92
|
export { useTheme, useScreenSize, useElementDimensions, useAriaId, useWindowSize, useWindowHeight, useWindowWidth, useIsInViewport } from "./hooks";
|
|
92
93
|
export { TrackingConfig, useTrackingConfig } from "./utils/analytics";
|
|
@@ -1744,3 +1745,6 @@ export { default as IconWorkflowRegular } from "./generated/mistica-icons/icon-w
|
|
|
1744
1745
|
export { default as IconWorkshopMeetingFilled } from "./generated/mistica-icons/icon-workshop-meeting-filled";
|
|
1745
1746
|
export { default as IconWorkshopMeetingLight } from "./generated/mistica-icons/icon-workshop-meeting-light";
|
|
1746
1747
|
export { default as IconWorkshopMeetingRegular } from "./generated/mistica-icons/icon-workshop-meeting-regular";
|
|
1748
|
+
export { default as IconWorldDeviceFilled } from "./generated/mistica-icons/icon-world-device-filled";
|
|
1749
|
+
export { default as IconWorldDeviceLight } from "./generated/mistica-icons/icon-world-device-light";
|
|
1750
|
+
export { default as IconWorldDeviceRegular } from "./generated/mistica-icons/icon-world-device-regular";
|