@telefonica/mistica 14.26.1 → 14.28.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/css/mistica.css +1 -1
- package/dist/button-fixed-footer-layout.js +5 -5
- package/dist/button.d.ts +7 -1
- package/dist/button.js +78 -72
- package/dist/generated/mistica-icons/icon-add-more-location-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-cut-filled.js +4 -4
- package/dist/generated/mistica-icons/icon-file-ppt-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-open-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-videogames-filled.js +25 -8
- package/dist/generated/mistica-icons/icon-videogames-light.js +35 -10
- package/dist/generated/mistica-icons/icon-videogames-regular.js +35 -10
- package/dist/menu.js +41 -41
- package/dist/package-version.js +1 -1
- package/dist/phone-number-field.js +1 -1
- package/dist/responsive-layout.css-mistica.js +14 -5
- package/dist/responsive-layout.css.d.ts +4 -1
- package/dist/responsive-layout.d.ts +3 -0
- package/dist/responsive-layout.js +58 -15
- package/dist/sheet.css-mistica.js +7 -7
- package/dist/sheet.css.d.ts +3 -0
- package/dist/sheet.js +4 -4
- package/dist/touchable.d.ts +1 -0
- package/dist/touchable.js +8 -7
- package/dist-es/button-fixed-footer-layout.js +4 -4
- package/dist-es/button.js +103 -97
- package/dist-es/generated/mistica-icons/icon-add-more-location-filled.js +6 -6
- package/dist-es/generated/mistica-icons/icon-cut-filled.js +7 -7
- package/dist-es/generated/mistica-icons/icon-file-ppt-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-open-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-videogames-filled.js +29 -12
- package/dist-es/generated/mistica-icons/icon-videogames-light.js +38 -13
- package/dist-es/generated/mistica-icons/icon-videogames-regular.js +39 -14
- package/dist-es/menu.js +64 -64
- package/dist-es/package-version.js +1 -1
- package/dist-es/phone-number-field.js +1 -1
- package/dist-es/responsive-layout.css-mistica.js +3 -3
- package/dist-es/responsive-layout.js +55 -20
- package/dist-es/sheet.css-mistica.js +2 -2
- package/dist-es/sheet.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/touchable.js +19 -18
- package/package.json +2 -2
|
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: function() {
|
|
8
|
-
return
|
|
8
|
+
return p;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
12
|
+
const _hooks = require("../../hooks.js");
|
|
12
13
|
const _themevariantcontext = require("../../theme-variant-context.js");
|
|
13
14
|
const _skincontractcssmistica = require("../../skins/skin-contract.css-mistica.js");
|
|
14
15
|
function _define_property(obj, key, value) {
|
|
@@ -90,21 +91,45 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
90
91
|
}
|
|
91
92
|
return target;
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
-
var { color: o , size:
|
|
94
|
+
const n = (_param)=>{
|
|
95
|
+
var { color: o , size: l = 24 } = _param, h = _object_without_properties(_param, [
|
|
95
96
|
"color",
|
|
96
97
|
"size"
|
|
97
98
|
]);
|
|
98
|
-
const
|
|
99
|
-
return /* @__PURE__ */ (0, _jsxruntime.
|
|
100
|
-
width:
|
|
101
|
-
height:
|
|
99
|
+
const r = (0, _themevariantcontext.useIsInverseVariant)(), a = o !== null && o !== void 0 ? o : r ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralHigh, { skinName: t } = (0, _hooks.useTheme)();
|
|
100
|
+
return t.match(/^o2/i) ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("svg", _object_spread_props(_object_spread({
|
|
101
|
+
width: l,
|
|
102
|
+
height: l,
|
|
102
103
|
viewBox: "0 0 24 24",
|
|
103
104
|
role: "presentation"
|
|
104
|
-
},
|
|
105
|
+
}, h), {
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
108
|
+
fill: a,
|
|
109
|
+
d: "M8.824 10.039H8.47v-.353c0-.235-.157-.392-.393-.392-.235 0-.392.157-.392.392v.353h-.392c-.235 0-.392.157-.392.392 0 .235.157.392.392.392h.392v.353c0 .236.157.392.392.392.236 0 .393-.156.393-.392v-.353h.353c.235 0 .392-.157.392-.392 0-.235-.157-.392-.392-.392z"
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
112
|
+
fill: a,
|
|
113
|
+
d: "M5.412 10.431a2.67 2.67 0 012.666-2.667c1.451 0 2.628 1.216 2.667 2.667a2.645 2.645 0 01-2.667 2.667 2.67 2.67 0 01-2.666-2.667zm1.176 0c0 .824.667 1.49 1.49 1.49.785 0 1.49-.666 1.49-1.49a1.49 1.49 0 10-2.98 0zm8.549-.392c-.235 0-.392.157-.392.392 0 .235.157.392.392.392h1.569c.235 0 .392-.157.392-.392 0-.235-.157-.392-.392-.392h-1.569z"
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
116
|
+
fill: a,
|
|
117
|
+
d: "M13.255 10.431a2.67 2.67 0 012.666-2.667c1.451 0 2.628 1.216 2.667 2.667a2.645 2.645 0 01-2.667 2.667 2.67 2.67 0 01-2.666-2.667zm1.176 0c0 .824.667 1.49 1.49 1.49.785 0 1.49-.666 1.49-1.49a1.49 1.49 0 10-2.98 0zM11.608 9.02h.784c.314 0 .588.274.588.588a.603.603 0 01-.588.588h-.784a.603.603 0 01-.588-.588c0-.314.274-.589.588-.589z"
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
120
|
+
fill: a,
|
|
121
|
+
d: "M18.118 5.96l3.53 3.883c.234.274.352.588.352.941v5.53c0 1.176-.98 2.156-2.157 2.156h-.902a2.165 2.165 0 01-1.53-.627l-3.607-3.608c-.02 0-.05-.01-.079-.02-.029-.01-.058-.02-.078-.02h-3.294c-.079 0-.118 0-.157.04l-3.608 3.608a2.165 2.165 0 01-1.53.627h-.901A2.176 2.176 0 012 16.313v-5.529c0-.353.118-.706.353-.941l3.53-3.883a1.424 1.424 0 011.019-.43h2.353c.392 0 .706.117.98.391l1.098 1.098c.02 0 .05.01.079.02.03.01.059.02.078.02h.941c.079 0 .118 0 .157-.04l1.098-1.098c.275-.235.628-.392.98-.392h2.432c.392 0 .745.157 1.02.431zm1.725 11.334a.97.97 0 00.98-.98v-5.53c0-.04 0-.078-.039-.118l-3.53-3.882a.297.297 0 00-.156-.078h-2.353c-.078 0-.117 0-.157.039L13.49 7.843c-.274.235-.627.392-.98.392h-.941c-.393 0-.706-.118-.98-.392L9.49 6.745a.303.303 0 01-.078-.02.313.313 0 00-.079-.02H6.902c-.078 0-.118.04-.157.079l-3.53 3.882c-.039.04-.039.079-.039.118v5.53c0 .549.432.98.98.98h.903c.274 0 .51-.079.706-.275l3.608-3.607c.274-.236.627-.393.98-.393h3.294c.392 0 .706.118.98.393l3.608 3.607c.196.157.432.275.706.275h.902z"
|
|
122
|
+
})
|
|
123
|
+
]
|
|
124
|
+
})) : /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
|
|
125
|
+
width: l,
|
|
126
|
+
height: l,
|
|
127
|
+
viewBox: "0 0 24 24",
|
|
128
|
+
role: "presentation"
|
|
129
|
+
}, h), {
|
|
105
130
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
106
|
-
fill:
|
|
131
|
+
fill: a,
|
|
107
132
|
d: "M19.953 8.313a42.75 42.75 0 01-.303-.71 9.26 9.26 0 00-.088-.209 2.269 2.269 0 00-.052-.109.73.73 0 01-.015-.03l-.059-.11a3.059 3.059 0 00-.546-.731c-.68-.647-1.645-.975-2.866-.975-.501 0-.947.067-1.361.18-.244.064-.784.302-.796.307 0 0-.414.233-.546.32a2.377 2.377 0 01-2.653 0c-.131-.087-.546-.32-.546-.32-.008-.005-.549-.243-.792-.308a5.234 5.234 0 00-1.362-.179c-1.218 0-2.185.328-2.863.975a3.08 3.08 0 00-.549.73l-.056.11a.732.732 0 01-.015.032c-.011.022-.027.053-.052.108-.033.07-.069.157-.109.253a26.883 26.883 0 01-.293.686c-.68 1.567-1.912 4.404-1.878 6.921.008.415.163 1.238.286 1.636.246.793.812 1.302 1.437 1.507.255.081.6.14.848.16.023.002.05.002.079.002.353 0 .95-.145 1.26-.285.19-.084.457-.23.77-.496.161-.137.244-.239.46-.504l.12-.149c.064-.08.126-.16.188-.241a4.74 4.74 0 01.476-.563c.583-.554 1.32-.95 2.197-1.193.56-.16 1.14-.235 1.722-.235.583 0 1.165.078 1.723.235.877.244 1.616.642 2.196 1.193.17.164.315.351.459.54.068.088.136.178.208.264l.084.105c.241.299.326.404.495.548.314.266.594.412.785.496.336.151.991.283 1.325.283.249 0 .593-.079.848-.16.625-.204 1.194-.714 1.437-1.507.124-.398.278-1.221.283-1.636.035-2.528-1.205-5.378-1.886-6.94zm.424 8.224c-.154.499-.504.661-.652.706a2.104 2.104 0 01-.46.098 3.23 3.23 0 01-.818-.174 1.836 1.836 0 01-.484-.305c-.073-.067-.104-.098-.331-.378l-.092-.115-.174-.224a5.46 5.46 0 00-.594-.692c-.72-.686-1.633-1.188-2.717-1.49a7.716 7.716 0 00-4.118 0c-1.08.302-1.997.804-2.717 1.49a5.348 5.348 0 00-.56.652l-.03.04-.088.113-.086.114-.096.117c-.227.28-.255.311-.33.376-.16.134-.314.235-.47.305a3.025 3.025 0 01-.735.18 2.924 2.924 0 01-.554-.104c-.146-.048-.496-.21-.65-.709-.104-.328-.227-1.034-.23-1.297-.03-2.26 1.144-4.968 1.778-6.429l.004-.008.011-.027c.091-.208.174-.397.24-.558l.023-.056.034-.08c.03-.075.059-.142.084-.198l.028-.058.056-.113c.106-.19.213-.33.316-.43.44-.418 1.115-.634 2.006-.634.353 0 .692.048 1.04.137.094.028.391.152.557.222l.04.023c.108.061.287.163.369.217a3.598 3.598 0 002.022.617c.726 0 1.423-.213 2.022-.617.087-.058.306-.182.407-.238a6.76 6.76 0 01.557-.22 3.967 3.967 0 011.04-.138c.89 0 1.565.213 2.008.633.103.1.204.238.316.431l.04.073.019.04.025.055.06.14.044.104.036.09a25.933 25.933 0 00.252.585l.004.008c.634 1.461 1.809 4.17 1.778 6.43-.003.262-.129.965-.23 1.296zM16.052 8.45c.252 0 .448.065.586.193.142.135.215.334.215.594 0 .258-.073.457-.215.591-.138.13-.334.194-.586.194-.252 0-.448-.065-.585-.194-.143-.134-.213-.33-.213-.59 0-.261.073-.46.213-.595.134-.128.33-.193.585-.193zm-1.619 1.569c.252 0 .448.064.586.196.143.134.215.333.215.594 0 .257-.072.456-.215.59-.138.13-.334.194-.586.194-.252 0-.448-.064-.585-.193-.14-.135-.216-.33-.216-.591 0-.26.073-.46.216-.594.137-.132.333-.196.585-.196zm2.205 1.762c-.138-.13-.334-.194-.586-.194-.255 0-.45.065-.585.194-.14.134-.213.333-.213.593 0 .261.07.457.213.592.137.128.333.193.585.193.252 0 .448-.065.586-.193.142-.135.215-.334.215-.591 0-.261-.073-.46-.215-.594zm1.03-1.762c.253 0 .449.064.586.196.143.134.216.333.216.594 0 .257-.073.456-.216.59-.137.13-.333.194-.585.194-.255 0-.449-.064-.586-.193-.14-.135-.213-.33-.213-.591 0-.26.073-.46.213-.594.137-.132.333-.196.586-.196zm-7.56-.087c-.185-.177-.46-.263-.818-.263h-.089a.923.923 0 00.008-.107c0-.364-.1-.644-.291-.826-.185-.177-.46-.266-.818-.266-.359 0-.633.092-.815.266-.196.182-.292.46-.292.826 0 .059.006.11.012.16h-.02a1.275 1.275 0 00-.146-.011c-.358 0-.633.092-.815.266-.19.18-.288.456-.288.823 0 .367.098.647.285.824.185.176.46.266.818.266.086 0 .12-.002.157-.005h.011a1.579 1.579 0 00-.016.156c0 .367.095.644.285.82.182.18.46.267.818.267.356 0 .63-.087.818-.263.193-.182.291-.457.291-.821a.846.846 0 00-.022-.177l-.003-.022h.112c.356 0 .633-.09.818-.266.194-.182.291-.457.291-.82 0-.365-.097-.64-.29-.827z"
|
|
108
133
|
})
|
|
109
134
|
}));
|
|
110
|
-
},
|
|
135
|
+
}, p = n;
|
package/dist/menu.js
CHANGED
|
@@ -144,15 +144,15 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
144
144
|
const f = D(r).indexOf(d);
|
|
145
145
|
return f < 0 ? null : f;
|
|
146
146
|
}, je = (param)=>{
|
|
147
|
-
let { label: r , Icon: d , destructive: f , disabled:
|
|
148
|
-
const { focusedItem:
|
|
147
|
+
let { label: r , Icon: d , destructive: f , disabled: u , onPress: E , controlType: s , checked: p } = param;
|
|
148
|
+
const { focusedItem: n , setFocusedItem: v , closeMenu: i , isMenuOpen: k } = ke(), c = _react.useRef(null), h = f ? _skincontractcssmistica.vars.colors.textLinkDanger : _skincontractcssmistica.vars.colors.neutralHigh, x = c == null ? void 0 : c.current, M = (x == null ? void 0 : x.closest("[role=menu]")) || null, m = Ne(M, x), l = ()=>s === "checkbox" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_checkbox.default, {
|
|
149
149
|
ref: c,
|
|
150
150
|
name: r,
|
|
151
151
|
checked: p,
|
|
152
152
|
onChange: ()=>{
|
|
153
|
-
k &&
|
|
153
|
+
k && m !== null && (E(m), i());
|
|
154
154
|
},
|
|
155
|
-
disabled:
|
|
155
|
+
disabled: u,
|
|
156
156
|
role: "menuitemcheckbox",
|
|
157
157
|
render: (param)=>/* @__PURE__ */ {
|
|
158
158
|
let { controlElement: N } = param;
|
|
@@ -191,9 +191,9 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
191
191
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, {
|
|
192
192
|
ref: c,
|
|
193
193
|
onPress: ()=>{
|
|
194
|
-
k &&
|
|
194
|
+
k && m !== null && (E(m), i());
|
|
195
195
|
},
|
|
196
|
-
disabled:
|
|
196
|
+
disabled: u,
|
|
197
197
|
role: "menuitem",
|
|
198
198
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
199
199
|
paddingX: 8,
|
|
@@ -219,11 +219,11 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
219
219
|
});
|
|
220
220
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
221
221
|
className: (0, _classnames.default)(_menucssmistica.menuItem, {
|
|
222
|
-
[_menucssmistica.menuItemEnabled]: !
|
|
223
|
-
[_menucssmistica.menuItemDisabled]:
|
|
224
|
-
[_menucssmistica.menuItemHovered]: !
|
|
222
|
+
[_menucssmistica.menuItemEnabled]: !u,
|
|
223
|
+
[_menucssmistica.menuItemDisabled]: u,
|
|
224
|
+
[_menucssmistica.menuItemHovered]: !u && m !== null && n === m
|
|
225
225
|
}),
|
|
226
|
-
onMouseMove: ()=>v(
|
|
226
|
+
onMouseMove: ()=>v(u ? null : m),
|
|
227
227
|
onMouseLeave: ()=>v(null),
|
|
228
228
|
children: l()
|
|
229
229
|
});
|
|
@@ -240,45 +240,45 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
240
240
|
]
|
|
241
241
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
242
242
|
}, V = 12, J = 8, qe = (param)=>{
|
|
243
|
-
let { renderTarget: r , renderMenu: d , width: f , position:
|
|
244
|
-
const [
|
|
243
|
+
let { renderTarget: r , renderMenu: d , width: f , position: u = "left" , dataAttributes: E } = param;
|
|
244
|
+
const [s, p] = _react.useState(!1), [n, v] = _react.useState(null), [i, k] = _react.useState(null), [c, h] = _react.useState(null), [x, M] = _react.useState(!1), m = _react.useRef(null), [l, N] = _react.useState(null), R = (0, _hooks.useWindowSize)();
|
|
245
245
|
_react.useEffect(()=>{
|
|
246
|
-
const a =
|
|
247
|
-
if (!i || !a || !
|
|
248
|
-
const { top: t , right: O , left: g , bottom:
|
|
246
|
+
const a = n == null ? void 0 : n.getBoundingClientRect();
|
|
247
|
+
if (!i || !a || !s) return;
|
|
248
|
+
const { top: t , right: O , left: g , bottom: A } = a, T = i.scrollHeight, I = u === "left" ? g : void 0, F = u === "right" ? R.width - O : void 0, L = t - J, $ = A + J, H = R.height - $ - V, P = L - V, B = H > T, z = P > T, te = B || !z && H > P;
|
|
249
249
|
N(te ? {
|
|
250
|
-
left:
|
|
251
|
-
right:
|
|
250
|
+
left: I,
|
|
251
|
+
right: F,
|
|
252
252
|
top: `${$}px`,
|
|
253
253
|
bottom: "auto",
|
|
254
254
|
maxHeight: B ? void 0 : H,
|
|
255
255
|
transformOrigin: "center top"
|
|
256
256
|
} : {
|
|
257
|
-
left:
|
|
258
|
-
right:
|
|
257
|
+
left: I,
|
|
258
|
+
right: F,
|
|
259
259
|
top: "auto",
|
|
260
260
|
bottom: `${R.height - L}px`,
|
|
261
261
|
maxHeight: z ? void 0 : P,
|
|
262
262
|
transformOrigin: "center bottom"
|
|
263
263
|
});
|
|
264
264
|
}, [
|
|
265
|
-
|
|
266
|
-
o,
|
|
267
|
-
i,
|
|
265
|
+
u,
|
|
268
266
|
s,
|
|
267
|
+
i,
|
|
268
|
+
n,
|
|
269
269
|
f,
|
|
270
270
|
R
|
|
271
271
|
]);
|
|
272
272
|
const Z = _react.useMemo(()=>({
|
|
273
273
|
ref: v,
|
|
274
274
|
onPress: ()=>{
|
|
275
|
-
p(!
|
|
275
|
+
p(!s);
|
|
276
276
|
}
|
|
277
277
|
}), [
|
|
278
278
|
v,
|
|
279
|
-
|
|
279
|
+
s
|
|
280
280
|
]), ee = {
|
|
281
|
-
ref: (0, _common.combineRefs)(k,
|
|
281
|
+
ref: (0, _common.combineRefs)(k, m),
|
|
282
282
|
className: _menucssmistica.menuContainer,
|
|
283
283
|
close: ()=>p(!1)
|
|
284
284
|
}, w = _react.useCallback(()=>{
|
|
@@ -291,24 +291,24 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
291
291
|
const t = D(i);
|
|
292
292
|
a && t.reverse();
|
|
293
293
|
const O = c === null ? -1 : a ? t.length - 1 - c : c;
|
|
294
|
-
let g = t.findIndex((
|
|
295
|
-
g === -1 && (g = t.findIndex((
|
|
296
|
-
const
|
|
297
|
-
h(
|
|
294
|
+
let g = t.findIndex((I, F)=>!I.getAttribute("aria-disabled") && F > O);
|
|
295
|
+
g === -1 && (g = t.findIndex((I)=>!I.getAttribute("aria-disabled")));
|
|
296
|
+
const A = a && g !== -1 ? t.length - 1 - g : g;
|
|
297
|
+
h(A < 0 ? null : A), (T = t[g]) == null || T.focus();
|
|
298
298
|
}, [
|
|
299
299
|
c,
|
|
300
300
|
i
|
|
301
301
|
]);
|
|
302
302
|
return _react.useEffect(()=>{
|
|
303
|
-
|
|
303
|
+
s ? x && i && (w(), M(!1)) : h(null);
|
|
304
304
|
}, [
|
|
305
|
-
|
|
305
|
+
s,
|
|
306
306
|
w,
|
|
307
307
|
x,
|
|
308
308
|
i
|
|
309
309
|
]), _react.useEffect(()=>{
|
|
310
310
|
const a = (t)=>{
|
|
311
|
-
if (
|
|
311
|
+
if (s) switch(t.keyCode){
|
|
312
312
|
case _keycodes.RIGHT:
|
|
313
313
|
case _keycodes.DOWN:
|
|
314
314
|
(0, _dom.cancelEvent)(t), _();
|
|
@@ -334,7 +334,7 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
334
334
|
M(!0);
|
|
335
335
|
break;
|
|
336
336
|
case _keycodes.DOWN:
|
|
337
|
-
|
|
337
|
+
n === document.activeElement && (M(!0), p(!0));
|
|
338
338
|
break;
|
|
339
339
|
}
|
|
340
340
|
};
|
|
@@ -342,24 +342,24 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
342
342
|
document.removeEventListener("keydown", a, !1);
|
|
343
343
|
};
|
|
344
344
|
}), _react.useEffect(()=>{
|
|
345
|
-
|
|
345
|
+
n == null || n.setAttribute("aria-haspopup", "menu"), n == null || n.setAttribute("aria-expanded", String(s));
|
|
346
346
|
}, [
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
n,
|
|
348
|
+
s
|
|
349
349
|
]), /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(E, "Menu")), {
|
|
350
350
|
children: [
|
|
351
351
|
r(_object_spread_props(_object_spread({}, Z), {
|
|
352
|
-
isMenuOpen:
|
|
352
|
+
isMenuOpen: s
|
|
353
353
|
})),
|
|
354
354
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
355
355
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_reacttransitiongroup.CSSTransition, {
|
|
356
|
-
in:
|
|
357
|
-
nodeRef:
|
|
356
|
+
in: s,
|
|
357
|
+
nodeRef: m,
|
|
358
358
|
timeout: Ee,
|
|
359
359
|
classNames: _menucssmistica.menuTransitionClasses,
|
|
360
360
|
mountOnEnter: !0,
|
|
361
361
|
unmountOnExit: !0,
|
|
362
|
-
onExit: ()=>
|
|
362
|
+
onExit: ()=>n == null ? void 0 : n.focus(),
|
|
363
363
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_overlay.default, {
|
|
364
364
|
onPress: (a)=>{
|
|
365
365
|
(0, _dom.cancelEvent)(a), p(!1);
|
|
@@ -382,7 +382,7 @@ const Ee = 120, Q = /*#__PURE__*/ _react.createContext({
|
|
|
382
382
|
role: "menu",
|
|
383
383
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Q.Provider, {
|
|
384
384
|
value: {
|
|
385
|
-
isMenuOpen:
|
|
385
|
+
isMenuOpen: s,
|
|
386
386
|
focusedItem: c,
|
|
387
387
|
setFocusedItem: h,
|
|
388
388
|
closeMenu: ()=>p(!1)
|
package/dist/package-version.js
CHANGED
|
@@ -165,7 +165,7 @@ const P = (r, s)=>(0, _libphonenumber.formatAsYouType)(s.replace(/[^\d+*#]/g, ""
|
|
|
165
165
|
format: C,
|
|
166
166
|
value: h,
|
|
167
167
|
onChange: y,
|
|
168
|
-
accept: /[\d
|
|
168
|
+
accept: /[\d\-+#*]+/g,
|
|
169
169
|
replace: (o)=>o.replace(/@/g, "-")
|
|
170
170
|
});
|
|
171
171
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("input", _object_spread_props(_object_spread({}, p), {
|
|
@@ -10,21 +10,30 @@ function _export(target, all) {
|
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
12
|
backgroundVariant: function() {
|
|
13
|
+
return o;
|
|
14
|
+
},
|
|
15
|
+
expandedResponsiveLayout: function() {
|
|
13
16
|
return n;
|
|
14
17
|
},
|
|
15
|
-
|
|
16
|
-
return
|
|
18
|
+
expandedResponsiveLayoutContainer: function() {
|
|
19
|
+
return r;
|
|
17
20
|
},
|
|
18
21
|
fullWidth: function() {
|
|
22
|
+
return t;
|
|
23
|
+
},
|
|
24
|
+
fullwidthContainer: function() {
|
|
19
25
|
return v;
|
|
20
26
|
},
|
|
21
27
|
responsiveLayout: function() {
|
|
22
|
-
return
|
|
28
|
+
return i;
|
|
29
|
+
},
|
|
30
|
+
responsiveLayoutContainer: function() {
|
|
31
|
+
return f;
|
|
23
32
|
}
|
|
24
33
|
});
|
|
25
34
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
26
35
|
require("./responsive-layout.css.ts.vanilla.css-mistica.js");
|
|
27
|
-
var
|
|
36
|
+
var o = {
|
|
28
37
|
inverse: "_1y2v1nf39",
|
|
29
38
|
alternative: "_1y2v1nf3e"
|
|
30
|
-
}, t = "_1y2v1nfbt", v = "
|
|
39
|
+
}, n = "_17lofg78", r = "_17lofg73", t = "_17lofg7a _1y2v1nfbt", v = "_17lofg74", i = "_17lofg77", f = "_17lofg72 _1y2v1nfbt";
|
|
@@ -5,10 +5,13 @@ export declare const LARGE_DESKTOP_MAX_WIDTH = 1224;
|
|
|
5
5
|
export declare const vars: {
|
|
6
6
|
sideMargin: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
7
7
|
};
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const responsiveLayoutContainer: string;
|
|
9
|
+
export declare const expandedResponsiveLayoutContainer: string;
|
|
10
|
+
export declare const fullwidthContainer: string;
|
|
9
11
|
export declare const backgroundVariant: {
|
|
10
12
|
inverse: string;
|
|
11
13
|
alternative: string;
|
|
12
14
|
};
|
|
13
15
|
export declare const responsiveLayout: string;
|
|
16
|
+
export declare const expandedResponsiveLayout: string;
|
|
14
17
|
export declare const fullWidth: string;
|
|
@@ -10,5 +10,8 @@ type Props = {
|
|
|
10
10
|
backgroundColor?: string;
|
|
11
11
|
dataAttributes?: DataAttributes;
|
|
12
12
|
};
|
|
13
|
+
export declare const InternalResponsiveLayout: React.FC<Props & {
|
|
14
|
+
shouldExpandWhenNested?: boolean;
|
|
15
|
+
}>;
|
|
13
16
|
declare const ResponsiveLayout: React.FC<Props>;
|
|
14
17
|
export default ResponsiveLayout;
|
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
+
InternalResponsiveLayout: function() {
|
|
13
|
+
return b;
|
|
14
|
+
},
|
|
15
|
+
default: function() {
|
|
16
|
+
return w;
|
|
9
17
|
}
|
|
10
18
|
});
|
|
11
19
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -70,21 +78,56 @@ function _object_spread_props(target, source) {
|
|
|
70
78
|
}
|
|
71
79
|
return target;
|
|
72
80
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
function _object_without_properties(source, excluded) {
|
|
82
|
+
if (source == null) return {};
|
|
83
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
84
|
+
var key, i;
|
|
85
|
+
if (Object.getOwnPropertySymbols) {
|
|
86
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
87
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
88
|
+
key = sourceSymbolKeys[i];
|
|
89
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
90
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
91
|
+
target[key] = source[key];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return target;
|
|
95
|
+
}
|
|
96
|
+
function _object_without_properties_loose(source, excluded) {
|
|
97
|
+
if (source == null) return {};
|
|
98
|
+
var target = {};
|
|
99
|
+
var sourceKeys = Object.keys(source);
|
|
100
|
+
var key, i;
|
|
101
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
102
|
+
key = sourceKeys[i];
|
|
103
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
104
|
+
target[key] = source[key];
|
|
105
|
+
}
|
|
106
|
+
return target;
|
|
107
|
+
}
|
|
108
|
+
const b = (param)=>{
|
|
109
|
+
let { children: n , isInverse: o = !1 , variant: d , backgroundColor: s , className: m , fullWidth: e , dataAttributes: p , shouldExpandWhenNested: i = !1 } = param;
|
|
110
|
+
const u = (0, _themevariantcontext.useThemeVariant)(), a = d || o && "inverse" || void 0;
|
|
76
111
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
77
|
-
variant:
|
|
112
|
+
variant: a !== null && a !== void 0 ? a : u,
|
|
78
113
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
79
|
-
className: (0, _classnames.default)(_responsivelayoutcssmistica.
|
|
80
|
-
style:
|
|
81
|
-
background:
|
|
114
|
+
className: (0, _classnames.default)(e ? _responsivelayoutcssmistica.fullwidthContainer : _responsivelayoutcssmistica.responsiveLayoutContainer, m, a && a !== "default" && _responsivelayoutcssmistica.backgroundVariant[a], i && !e && _responsivelayoutcssmistica.expandedResponsiveLayoutContainer),
|
|
115
|
+
style: s ? {
|
|
116
|
+
background: s
|
|
82
117
|
} : void 0
|
|
83
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
118
|
+
}, (0, _dom.getPrefixedDataAttributes)(p)), {
|
|
84
119
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
85
|
-
className:
|
|
86
|
-
children:
|
|
120
|
+
className: (0, _classnames.default)(e ? _responsivelayoutcssmistica.fullWidth : _responsivelayoutcssmistica.responsiveLayout, i && !e && _responsivelayoutcssmistica.expandedResponsiveLayout),
|
|
121
|
+
children: n
|
|
87
122
|
})
|
|
88
123
|
}))
|
|
89
124
|
});
|
|
90
|
-
},
|
|
125
|
+
}, g = (_param)=>/* @__PURE__ */ {
|
|
126
|
+
var { children: n } = _param, o = _object_without_properties(_param, [
|
|
127
|
+
"children"
|
|
128
|
+
]);
|
|
129
|
+
return (0, _jsxruntime.jsx)(b, _object_spread_props(_object_spread({}, o), {
|
|
130
|
+
shouldExpandWhenNested: !0,
|
|
131
|
+
children: n
|
|
132
|
+
}));
|
|
133
|
+
}, w = g;
|
|
@@ -25,10 +25,10 @@ _export(exports, {
|
|
|
25
25
|
return c;
|
|
26
26
|
},
|
|
27
27
|
closingOverlay: function() {
|
|
28
|
-
return
|
|
28
|
+
return l;
|
|
29
29
|
},
|
|
30
30
|
closingSheet: function() {
|
|
31
|
-
return
|
|
31
|
+
return a;
|
|
32
32
|
},
|
|
33
33
|
handle: function() {
|
|
34
34
|
return r;
|
|
@@ -37,10 +37,10 @@ _export(exports, {
|
|
|
37
37
|
return t;
|
|
38
38
|
},
|
|
39
39
|
infoItemIcon: function() {
|
|
40
|
-
return
|
|
40
|
+
return o;
|
|
41
41
|
},
|
|
42
42
|
modalCloseButton: function() {
|
|
43
|
-
return
|
|
43
|
+
return b;
|
|
44
44
|
},
|
|
45
45
|
modalCloseButtonIcon: function() {
|
|
46
46
|
return i;
|
|
@@ -52,10 +52,10 @@ _export(exports, {
|
|
|
52
52
|
return d;
|
|
53
53
|
},
|
|
54
54
|
stickyButtons: function() {
|
|
55
|
-
return
|
|
55
|
+
return h;
|
|
56
56
|
},
|
|
57
57
|
stickyTitle: function() {
|
|
58
|
-
return
|
|
58
|
+
return s;
|
|
59
59
|
},
|
|
60
60
|
transitionDuration: function() {
|
|
61
61
|
return C;
|
|
@@ -63,4 +63,4 @@ _export(exports, {
|
|
|
63
63
|
});
|
|
64
64
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
65
65
|
require("./sheet.css.ts.vanilla.css-mistica.js");
|
|
66
|
-
var y = "
|
|
66
|
+
var y = "cylz3v6 _1y2v1nf30", f = "cylz3v4 _1y2v1nfb2 _1y2v1nfer _1y2v1nff6 _1y2v1nffl", _ = "cylz3v9 _1y2v1nf6n _1y2v1nfb6 _1y2v1nfbc", e = "cylz3vo", c = "_1y2v1nfeb _1y2v1nfbs _1y2v1nfb6 _1y2v1nfbc", l = "cylz3vl", a = "cylz3v7", r = "_1y2v1nf44 _1y2v1nfc2 _1y2v1nfcd _1y2v1nfdq", t = "cylz3vc _1y2v1nf68 _1y2v1nf7h _1y2v1nfb1 _1y2v1nfec _1y2v1nfcn _1y2v1nfbt _1y2v1nfb6 _1y2v1nfbf", o = "_1y2v1nfb6 _1y2v1nfbl _1y2v1nfci", b = "cylz3vf _1y2v1nf6e _1y2v1nf7n _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb1 _1y2v1nfec _1y2v1nff6", i = "cylz3vh _1y2v1nfc3 _1y2v1nfcj _1y2v1nfb6 _1y2v1nfbl _1y2v1nfbf _1y2v1nfdp", z = "cylz3vk _1y2v1nfb2 _1y2v1nf3b _1y2v1nfec _1y2v1nfer _1y2v1nff6 _1y2v1nffl", d = "cylz3vq _1y2v1nf6e _1y2v1nf7n _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb6 _1y2v1nfdj _1y2v1nfbl", h = "_1y2v1nfb4 _1y2v1nffl _1y2v1nf30", s = "_1y2v1nfb4 _1y2v1nfec _1y2v1nf30", C = 400;
|
package/dist/sheet.css.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export declare const vars: {
|
|
2
|
+
insideSheetDialog: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3
|
+
};
|
|
1
4
|
export declare const transitionDuration: number;
|
|
2
5
|
export declare const SheetContainer: string;
|
|
3
6
|
export declare const Sheet: string;
|
package/dist/sheet.js
CHANGED
|
@@ -40,7 +40,6 @@ const _text = require("./text.js");
|
|
|
40
40
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
41
41
|
const _radiobutton = require("./radio-button.js");
|
|
42
42
|
const _list = require("./list.js");
|
|
43
|
-
const _responsivelayout = /*#__PURE__*/ _interop_require_default(require("./responsive-layout.js"));
|
|
44
43
|
const _negativebox = /*#__PURE__*/ _interop_require_default(require("./negative-box.js"));
|
|
45
44
|
const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
|
|
46
45
|
const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
|
|
@@ -54,6 +53,7 @@ const _iconcloseregular = /*#__PURE__*/ _interop_require_default(require("./gene
|
|
|
54
53
|
const _iconbutton = /*#__PURE__*/ _interop_require_default(require("./icon-button.js"));
|
|
55
54
|
const _buttonlayout = /*#__PURE__*/ _interop_require_default(require("./button-layout.js"));
|
|
56
55
|
const _image = /*#__PURE__*/ _interop_require_default(require("./image.js"));
|
|
56
|
+
const _responsivelayout = require("./responsive-layout.js");
|
|
57
57
|
function _interop_require_default(obj) {
|
|
58
58
|
return obj && obj.__esModule ? obj : {
|
|
59
59
|
default: obj
|
|
@@ -369,7 +369,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
|
|
|
369
369
|
mobile: 0,
|
|
370
370
|
desktop: 40
|
|
371
371
|
},
|
|
372
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.
|
|
372
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.InternalResponsiveLayout, {
|
|
373
373
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text5, {
|
|
374
374
|
as: "h2",
|
|
375
375
|
id: f,
|
|
@@ -393,7 +393,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
|
|
|
393
393
|
desktop: 40,
|
|
394
394
|
mobile: 0
|
|
395
395
|
},
|
|
396
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.
|
|
396
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.InternalResponsiveLayout, {
|
|
397
397
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
398
398
|
space: 8,
|
|
399
399
|
children: [
|
|
@@ -442,7 +442,7 @@ const C = (t)=>"touches" in t ? t.touches[0].clientY : t.clientY, Se = (param)=>
|
|
|
442
442
|
mobile: 16,
|
|
443
443
|
desktop: 40
|
|
444
444
|
},
|
|
445
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.
|
|
445
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.InternalResponsiveLayout, {
|
|
446
446
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_buttonlayout.default, {
|
|
447
447
|
align: "full-width",
|
|
448
448
|
link: s,
|
package/dist/touchable.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ interface CommonProps {
|
|
|
14
14
|
'aria-checked'?: 'true' | 'false' | boolean;
|
|
15
15
|
'aria-controls'?: string;
|
|
16
16
|
'aria-expanded'?: 'true' | 'false' | boolean;
|
|
17
|
+
'aria-haspopup'?: 'true' | 'false' | 'menu' | 'dialog' | boolean;
|
|
17
18
|
'aria-hidden'?: 'true' | 'false' | boolean;
|
|
18
19
|
'aria-selected'?: 'true' | 'false' | boolean;
|
|
19
20
|
'aria-labelledby'?: string;
|
package/dist/touchable.js
CHANGED
|
@@ -126,8 +126,8 @@ const L = function(e) {
|
|
|
126
126
|
t ? window.open(e, "_blank") : d ? window.open(e, "_top") : document.location.href = e;
|
|
127
127
|
}, T = /*#__PURE__*/ _react.forwardRef((e, t)=>{
|
|
128
128
|
const { texts: d , analytics: v , platformOverrides: N , Link: P , useHrefDecorator: E } = (0, _hooks.useTheme)(), C = E(), f = _react.useRef(!1);
|
|
129
|
-
let
|
|
130
|
-
e.trackingEvent && (Array.isArray(e.trackingEvent) ?
|
|
129
|
+
let l = [];
|
|
130
|
+
e.trackingEvent && (Array.isArray(e.trackingEvent) ? l = e.trackingEvent : l = [
|
|
131
131
|
e.trackingEvent
|
|
132
132
|
]);
|
|
133
133
|
var _e_to_pathname;
|
|
@@ -140,28 +140,29 @@ const L = function(e) {
|
|
|
140
140
|
"aria-disabled": e.disabled ? !0 : void 0,
|
|
141
141
|
"aria-controls": e["aria-controls"],
|
|
142
142
|
"aria-expanded": e["aria-expanded"],
|
|
143
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
143
144
|
"aria-hidden": e["aria-hidden"],
|
|
144
145
|
"aria-selected": e["aria-selected"],
|
|
145
146
|
"aria-live": e["aria-live"],
|
|
146
147
|
tabIndex: e.tabIndex
|
|
147
|
-
}, (0, _dom.getPrefixedDataAttributes)(e.dataAttributes, "Touchable")), u = e.type ? e.type : "button", r = !!e.href && !!e.newTab, m = !r && !!e.href && !!e.loadOnTop,
|
|
148
|
+
}, (0, _dom.getPrefixedDataAttributes)(e.dataAttributes, "Touchable")), u = e.type ? e.type : "button", r = !!e.href && !!e.newTab, m = !r && !!e.href && !!e.loadOnTop, s = (a)=>{
|
|
148
149
|
e.stopPropagation && a.stopPropagation();
|
|
149
150
|
}, h = (a)=>{
|
|
150
151
|
e.onPress && e.onPress(a);
|
|
151
|
-
}, k = ()=>e.href ? C(e.href) : e.to && e.fullPageOnWebView ? typeof e.to == "string" ? e.to : (_e_to_pathname = e.to.pathname) !== null && _e_to_pathname !== void 0 ? _e_to_pathname : "" : "", y = ()=>Promise.all(
|
|
152
|
+
}, k = ()=>e.href ? C(e.href) : e.to && e.fullPageOnWebView ? typeof e.to == "string" ? e.to : (_e_to_pathname = e.to.pathname) !== null && _e_to_pathname !== void 0 ? _e_to_pathname : "" : "", y = ()=>Promise.all(l.map((a)=>v.logEvent(a))), g = (a)=>{
|
|
152
153
|
f.current || (f.current = !0, y().finally(()=>{
|
|
153
154
|
f.current = !1, a();
|
|
154
155
|
}));
|
|
155
156
|
}, x = (a)=>{
|
|
156
|
-
if (
|
|
157
|
+
if (s(a), !l.length) {
|
|
157
158
|
h(a);
|
|
158
159
|
return;
|
|
159
160
|
}
|
|
160
161
|
g(()=>h(a));
|
|
161
162
|
}, R = (a)=>{
|
|
162
|
-
|
|
163
|
+
s(a), l.length && (a.preventDefault(), g(()=>L(k(), r, m)));
|
|
163
164
|
}, D = (a)=>{
|
|
164
|
-
|
|
165
|
+
s(a), y();
|
|
165
166
|
}, w = (a)=>{
|
|
166
167
|
(a.keyCode === _keycodes.ENTER || a.keyCode === _keycodes.SPACE) && (a.preventDefault(), a.currentTarget.click());
|
|
167
168
|
};
|
|
@@ -2,10 +2,10 @@ import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
|
2
2
|
import p from "./fixed-footer-layout.js";
|
|
3
3
|
import c from "./button-layout.js";
|
|
4
4
|
import { useScreenSize as x } from "./hooks.js";
|
|
5
|
-
import F from "./responsive-layout.js";
|
|
5
|
+
import { InternalResponsiveLayout as F } from "./responsive-layout.js";
|
|
6
6
|
import h from "./box.js";
|
|
7
7
|
const B = (param)=>{
|
|
8
|
-
let { isFooterVisible: i = !0 , button: t , secondaryButton: r , link:
|
|
8
|
+
let { isFooterVisible: i = !0 , button: t , secondaryButton: r , link: n , children: s , desktopButtonAlign: a = "left" , footerBgColor: l , containerBgColor: m , onChangeFooterHeight: u } = param;
|
|
9
9
|
const { isTabletOrSmaller: e , isTablet: f } = x();
|
|
10
10
|
return /* @__PURE__ */ o(p, {
|
|
11
11
|
onChangeFooterHeight: u,
|
|
@@ -17,7 +17,7 @@ const B = (param)=>{
|
|
|
17
17
|
paddingY: f ? 32 : e ? 16 : 0,
|
|
18
18
|
children: /* @__PURE__ */ d(c, {
|
|
19
19
|
align: e ? "full-width" : a,
|
|
20
|
-
link:
|
|
20
|
+
link: n,
|
|
21
21
|
children: [
|
|
22
22
|
t,
|
|
23
23
|
r
|
|
@@ -25,7 +25,7 @@ const B = (param)=>{
|
|
|
25
25
|
})
|
|
26
26
|
})
|
|
27
27
|
}),
|
|
28
|
-
children:
|
|
28
|
+
children: s
|
|
29
29
|
});
|
|
30
30
|
}, v = B;
|
|
31
31
|
export { v as default };
|