@telefonica/mistica 14.32.1 → 14.33.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/card.js +107 -105
- package/dist/community/blocks.d.ts +3 -3
- package/dist/credit-card-expiration-field.js +57 -50
- package/dist/highlighted-card.js +4 -3
- package/dist/hooks.js +53 -52
- package/dist/maybe-dismissable.js +7 -6
- package/dist/package-version.js +1 -1
- package/dist/responsive-layout.css-mistica.js +7 -10
- package/dist/responsive-layout.css.d.ts +0 -1
- package/dist/responsive-layout.js +17 -17
- package/dist/tabs.css-mistica.js +26 -14
- package/dist/tabs.css.d.ts +3 -1
- package/dist/tabs.js +37 -32
- package/dist-es/card.js +103 -101
- package/dist-es/credit-card-expiration-field.js +63 -56
- package/dist-es/highlighted-card.js +13 -12
- package/dist-es/hooks.js +49 -48
- package/dist-es/maybe-dismissable.js +16 -15
- package/dist-es/package-version.js +1 -1
- package/dist-es/responsive-layout.css-mistica.js +3 -3
- package/dist-es/responsive-layout.js +21 -21
- package/dist-es/style.css +1 -1
- package/dist-es/tabs.css-mistica.js +14 -8
- package/dist-es/tabs.js +58 -53
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
Object.defineProperty(exports, "default", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: function() {
|
|
8
|
-
return
|
|
8
|
+
return A;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -131,32 +131,39 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
131
131
|
}
|
|
132
132
|
return target;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
var { inputRef:
|
|
134
|
+
const j = (_param)=>{
|
|
135
|
+
var { inputRef: g , defaultValue: s , value: l } = _param, u = _object_without_properties(_param, [
|
|
136
136
|
"inputRef",
|
|
137
137
|
"defaultValue",
|
|
138
138
|
"value"
|
|
139
139
|
]);
|
|
140
|
-
const { texts:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return
|
|
140
|
+
const { texts: p } = (0, _hooks.useTheme)(), c = _react.useRef(""), i = (r)=>{
|
|
141
|
+
if (r.length === 2 && c.current === "Backspace") return r[0];
|
|
142
|
+
let e = "";
|
|
143
|
+
return [
|
|
144
|
+
...r
|
|
145
|
+
].forEach((x)=>{
|
|
146
|
+
e = (e + x).replace(/[^0-9]/g, "").replace(/^([2-9])$/g, "0$1").replace(/^(1{1})([3-9]{1})$/g, "0$1/$2").replace(/^0{1,}/g, "0").replace(/^([0-1]{1}[0-9]{1})([0-9]{1,2}).*/g, "$1/$2");
|
|
147
|
+
}), e.length === 2 ? e + "/" : e;
|
|
148
|
+
}, h = (r)=>{
|
|
149
|
+
c.current = r.key;
|
|
144
150
|
};
|
|
145
151
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("input", _object_spread_props(_object_spread({}, u), {
|
|
146
|
-
placeholder:
|
|
152
|
+
placeholder: p.expirationDatePlaceholder,
|
|
147
153
|
type: "text",
|
|
148
154
|
inputMode: "decimal",
|
|
149
155
|
maxLength: "5",
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
156
|
+
onKeyDown: h,
|
|
157
|
+
onInput: (r)=>{
|
|
158
|
+
const e = i(r.currentTarget.value);
|
|
159
|
+
r.currentTarget.value = e;
|
|
153
160
|
},
|
|
154
|
-
value:
|
|
155
|
-
defaultValue:
|
|
156
|
-
ref:
|
|
161
|
+
value: l === void 0 ? void 0 : i(l),
|
|
162
|
+
defaultValue: s === void 0 ? void 0 : i(s),
|
|
163
|
+
ref: g
|
|
157
164
|
}));
|
|
158
|
-
},
|
|
159
|
-
var { disabled:
|
|
165
|
+
}, B = (_param)=>{
|
|
166
|
+
var { disabled: g , error: s , helperText: l , name: u , optional: p , validate: c , onChange: i , onChangeValue: h , onBlur: r , value: e , autoComplete: x = "cc-exp" , defaultValue: D } = _param, T = _object_without_properties(_param, [
|
|
160
167
|
"disabled",
|
|
161
168
|
"error",
|
|
162
169
|
"helperText",
|
|
@@ -170,46 +177,46 @@ const N = (_param)=>{
|
|
|
170
177
|
"autoComplete",
|
|
171
178
|
"defaultValue"
|
|
172
179
|
]);
|
|
173
|
-
const { texts:
|
|
174
|
-
if (!
|
|
175
|
-
const { month:
|
|
176
|
-
if (!
|
|
177
|
-
const
|
|
178
|
-
return
|
|
179
|
-
},
|
|
180
|
-
const [
|
|
180
|
+
const { texts: f } = (0, _hooks.useTheme)(), { setFormError: w , jumpToNext: I } = (0, _formcontext.useForm)(), m = (t, n)=>{
|
|
181
|
+
if (!n) return p ? "" : f.formFieldErrorIsMandatory;
|
|
182
|
+
const { month: a , year: o } = t;
|
|
183
|
+
if (!a || !o) return f.formCreditCardExpirationError;
|
|
184
|
+
const d = /* @__PURE__ */ new Date(), M = d.getMonth() + 1, y = d.getFullYear();
|
|
185
|
+
return o < y || o === y && a < M ? f.formCreditCardExpirationError : c == null ? void 0 : c(t, n);
|
|
186
|
+
}, C = (t)=>{
|
|
187
|
+
const [n, a] = String(t).split("/").map((d)=>parseInt(d)), o = Number.isInteger(a) ? 2e3 + a : null;
|
|
181
188
|
return {
|
|
182
|
-
month:
|
|
183
|
-
year:
|
|
184
|
-
raw:
|
|
189
|
+
month: n || null,
|
|
190
|
+
year: o,
|
|
191
|
+
raw: t
|
|
185
192
|
};
|
|
186
|
-
},
|
|
193
|
+
}, E = (0, _formcontext.useFieldProps)({
|
|
187
194
|
name: u,
|
|
188
|
-
value:
|
|
189
|
-
defaultValue:
|
|
190
|
-
processValue:
|
|
191
|
-
helperText:
|
|
192
|
-
optional:
|
|
193
|
-
error:
|
|
194
|
-
disabled:
|
|
195
|
+
value: e,
|
|
196
|
+
defaultValue: D,
|
|
197
|
+
processValue: C,
|
|
198
|
+
helperText: l,
|
|
199
|
+
optional: p,
|
|
200
|
+
error: s,
|
|
201
|
+
disabled: g,
|
|
195
202
|
onBlur: r,
|
|
196
|
-
validate:
|
|
197
|
-
onChange:
|
|
198
|
-
onChangeValue:
|
|
203
|
+
validate: m,
|
|
204
|
+
onChange: i,
|
|
205
|
+
onChangeValue: h
|
|
199
206
|
});
|
|
200
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_textfieldbase.TextFieldBaseAutosuggest, _object_spread_props(_object_spread({}, T,
|
|
201
|
-
onChange: (
|
|
202
|
-
|
|
203
|
-
const
|
|
204
|
-
if (
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_textfieldbase.TextFieldBaseAutosuggest, _object_spread_props(_object_spread({}, T, E), {
|
|
208
|
+
onChange: (t)=>{
|
|
209
|
+
E.onChange(t);
|
|
210
|
+
const n = t.currentTarget.value, a = C(n);
|
|
211
|
+
if (n.length === 5) {
|
|
212
|
+
const o = m == null ? void 0 : m(a, n);
|
|
213
|
+
o ? w({
|
|
207
214
|
name: u,
|
|
208
|
-
error:
|
|
209
|
-
}) :
|
|
215
|
+
error: o
|
|
216
|
+
}) : I(u);
|
|
210
217
|
}
|
|
211
218
|
},
|
|
212
|
-
autoComplete:
|
|
213
|
-
inputComponent:
|
|
219
|
+
autoComplete: x,
|
|
220
|
+
inputComponent: j
|
|
214
221
|
}));
|
|
215
|
-
},
|
|
222
|
+
}, A = B;
|
package/dist/highlighted-card.js
CHANGED
|
@@ -144,7 +144,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
144
144
|
}
|
|
145
145
|
const L = /*#__PURE__*/ _react.forwardRef((e, i)=>{
|
|
146
146
|
var _e_isInverse;
|
|
147
|
-
const { title: r , description: a , imageUrl: o , imageFit: l } = e, g = (0, _themevariantcontext.useIsInverseVariant)(), u = (_e_isInverse = e.isInverse) !== null && _e_isInverse !== void 0 ? _e_isInverse : g,
|
|
147
|
+
const { title: r , description: a , imageUrl: o , imageFit: l } = e, g = (0, _themevariantcontext.useIsInverseVariant)(), u = (_e_isInverse = e.isInverse) !== null && _e_isInverse !== void 0 ? _e_isInverse : g, d = (0, _maybedismissable.useIsDismissable)(), { textPresets: f } = (0, _hooks.useTheme)(), n = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
|
|
148
148
|
ref: i,
|
|
149
149
|
isInverse: u,
|
|
150
150
|
className: _highlightedcardcssmistica.container,
|
|
@@ -152,11 +152,12 @@ const L = /*#__PURE__*/ _react.forwardRef((e, i)=>{
|
|
|
152
152
|
"component-name": "HighlightedCard"
|
|
153
153
|
}, e.dataAttributes),
|
|
154
154
|
width: e.width ? `${e.width}px` : "100%",
|
|
155
|
+
minHeight: "100%",
|
|
155
156
|
children: [
|
|
156
157
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
157
|
-
role:
|
|
158
|
+
role: d ? void 0 : "region",
|
|
158
159
|
className: _highlightedcardcssmistica.textContainerVariant[o ? "withImage" : "withoutImage"],
|
|
159
|
-
"aria-label":
|
|
160
|
+
"aria-label": d ? void 0 : e["aria-label"],
|
|
160
161
|
children: [
|
|
161
162
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
|
|
162
163
|
mobileSize: 18,
|
package/dist/hooks.js
CHANGED
|
@@ -10,40 +10,40 @@ function _export(target, all) {
|
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
12
|
useAriaId: function() {
|
|
13
|
-
return
|
|
13
|
+
return B;
|
|
14
14
|
},
|
|
15
15
|
useDisableBodyScroll: function() {
|
|
16
|
-
return
|
|
16
|
+
return z;
|
|
17
17
|
},
|
|
18
18
|
useElementDimensions: function() {
|
|
19
|
-
return
|
|
19
|
+
return R;
|
|
20
20
|
},
|
|
21
21
|
useIsInViewport: function() {
|
|
22
|
-
return
|
|
22
|
+
return k;
|
|
23
23
|
},
|
|
24
24
|
useIsWithinIFrame: function() {
|
|
25
|
-
return
|
|
25
|
+
return D;
|
|
26
26
|
},
|
|
27
27
|
useIsomorphicLayoutEffect: function() {
|
|
28
|
-
return
|
|
28
|
+
return V;
|
|
29
29
|
},
|
|
30
30
|
useScreenHeight: function() {
|
|
31
|
-
return
|
|
31
|
+
return A;
|
|
32
32
|
},
|
|
33
33
|
useScreenSize: function() {
|
|
34
|
-
return
|
|
34
|
+
return C;
|
|
35
35
|
},
|
|
36
36
|
useTheme: function() {
|
|
37
|
-
return
|
|
37
|
+
return x;
|
|
38
38
|
},
|
|
39
39
|
useWindowHeight: function() {
|
|
40
|
-
return
|
|
40
|
+
return L;
|
|
41
41
|
},
|
|
42
42
|
useWindowSize: function() {
|
|
43
|
-
return
|
|
43
|
+
return a;
|
|
44
44
|
},
|
|
45
45
|
useWindowWidth: function() {
|
|
46
|
-
return
|
|
46
|
+
return M;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
@@ -96,70 +96,71 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
96
96
|
}
|
|
97
97
|
return newObj;
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const x = ()=>{
|
|
100
100
|
const t = _react.useContext(_themecontext.default);
|
|
101
101
|
if (!t) throw Error("To use @telefonica/mistica components you must instantiate <ThemeContextProvider> as their parent.");
|
|
102
102
|
return t;
|
|
103
|
-
}
|
|
103
|
+
};
|
|
104
|
+
let f = "", w = 0, h = 0;
|
|
105
|
+
const z = (t)=>{
|
|
104
106
|
_react.useEffect(()=>{
|
|
105
107
|
if (t) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
var u;
|
|
108
|
+
const r = document.scrollingElement || document.documentElement, e = ()=>{
|
|
109
|
+
var s;
|
|
109
110
|
var _ref, _ref1;
|
|
110
|
-
if (
|
|
111
|
+
if (h++, !(h > 1) && (w = (_ref = r == null ? void 0 : r.scrollTop) !== null && _ref !== void 0 ? _ref : 0, f = (_ref1 = (s = document.body) == null ? void 0 : s.style.cssText) !== null && _ref1 !== void 0 ? _ref1 : "", document.body)) {
|
|
111
112
|
var _ref2;
|
|
112
|
-
const
|
|
113
|
-
document.body.style.cssText = `overflow:hidden;overflow-y:${
|
|
113
|
+
const o = window.innerWidth > ((_ref2 = r == null ? void 0 : r.clientWidth) !== null && _ref2 !== void 0 ? _ref2 : window.innerWidth) ? "scroll" : "hidden";
|
|
114
|
+
document.body.style.cssText = `overflow:hidden;overflow-y:${o};position:fixed;top:${-w}px;left:0px;right:0px;bottom:0px`;
|
|
114
115
|
}
|
|
115
|
-
},
|
|
116
|
-
|
|
116
|
+
}, i = ()=>{
|
|
117
|
+
h--, !(h > 0) && (document.body && (document.body.style.cssText = f), r && (r.scrollTop = w));
|
|
117
118
|
};
|
|
118
|
-
return
|
|
119
|
+
return e(), i;
|
|
119
120
|
}
|
|
120
121
|
return ()=>{};
|
|
121
122
|
}, [
|
|
122
123
|
t
|
|
123
124
|
]);
|
|
124
|
-
},
|
|
125
|
-
const [t,
|
|
125
|
+
}, C = ()=>_react.useContext(_screensizecontext.default), R = ()=>{
|
|
126
|
+
const [t, r] = _react.useState(0), [e, i] = _react.useState(0), [s, c] = _react.useState(null), o = _react.useCallback((d)=>{
|
|
126
127
|
if (!d) {
|
|
127
|
-
|
|
128
|
+
r(0), i(0);
|
|
128
129
|
return;
|
|
129
130
|
}
|
|
130
|
-
const { width:
|
|
131
|
-
|
|
132
|
-
}, []),
|
|
131
|
+
const { width: m , height: g } = d[0].contentRect;
|
|
132
|
+
r(m), i(g);
|
|
133
|
+
}, []), l = _react.useCallback((d)=>{
|
|
133
134
|
c(d);
|
|
134
135
|
}, []);
|
|
135
136
|
return _react.useEffect(()=>{
|
|
136
|
-
if (!
|
|
137
|
-
|
|
137
|
+
if (!s) {
|
|
138
|
+
r(0), i(0);
|
|
138
139
|
return;
|
|
139
140
|
}
|
|
140
|
-
return (0, _dom.listenResize)(
|
|
141
|
+
return (0, _dom.listenResize)(s, o);
|
|
141
142
|
}, [
|
|
142
|
-
|
|
143
|
+
s,
|
|
143
144
|
o
|
|
144
145
|
]), {
|
|
145
146
|
width: t,
|
|
146
147
|
height: e,
|
|
147
|
-
ref:
|
|
148
|
+
ref: l
|
|
148
149
|
};
|
|
149
|
-
},
|
|
150
|
-
const { useId:
|
|
151
|
-
if (
|
|
152
|
-
const e =
|
|
150
|
+
}, B = (t)=>{
|
|
151
|
+
const { useId: r } = x();
|
|
152
|
+
if (r) {
|
|
153
|
+
const e = r();
|
|
153
154
|
return t || e;
|
|
154
155
|
} else {
|
|
155
156
|
const e = _react.useContext(_ariaidgettercontext.default);
|
|
156
157
|
return _react.useRef(t || e()).current;
|
|
157
158
|
}
|
|
158
|
-
},
|
|
159
|
-
const [t,
|
|
159
|
+
}, a = ()=>{
|
|
160
|
+
const [t, r] = _react.useState((0, _environment.isClientSide)() ? window.innerHeight : 1200), [e, i] = _react.useState((0, _environment.isClientSide)() ? window.innerWidth : 800), [s, c] = _react.useState((0, _environment.isClientSide)() ? window.screen.availHeight : 1200), [o, l] = _react.useState((0, _environment.isClientSide)() ? window.screen.availWidth : 800);
|
|
160
161
|
return _react.useEffect(()=>{
|
|
161
162
|
const d = ()=>{
|
|
162
|
-
|
|
163
|
+
r(window.innerHeight), i(window.innerWidth), c(window.screen.availHeight), l(window.screen.availWidth);
|
|
163
164
|
};
|
|
164
165
|
return window.addEventListener("resize", d), ()=>{
|
|
165
166
|
window.removeEventListener("resize", d);
|
|
@@ -167,30 +168,30 @@ const y = ()=>{
|
|
|
167
168
|
}, []), _react.useMemo(()=>({
|
|
168
169
|
height: t,
|
|
169
170
|
width: e,
|
|
170
|
-
screenHeight:
|
|
171
|
+
screenHeight: s,
|
|
171
172
|
screenWidth: o
|
|
172
173
|
}), [
|
|
173
174
|
t,
|
|
174
175
|
e,
|
|
175
|
-
|
|
176
|
+
s,
|
|
176
177
|
o
|
|
177
178
|
]);
|
|
178
|
-
},
|
|
179
|
-
const { height: t } =
|
|
179
|
+
}, L = ()=>{
|
|
180
|
+
const { height: t } = a();
|
|
180
181
|
return t;
|
|
181
|
-
},
|
|
182
|
-
const { width: t } =
|
|
182
|
+
}, M = ()=>{
|
|
183
|
+
const { width: t } = a();
|
|
183
184
|
return t;
|
|
184
|
-
},
|
|
185
|
-
const { screenHeight: t } =
|
|
185
|
+
}, A = ()=>{
|
|
186
|
+
const { screenHeight: t } = a();
|
|
186
187
|
return t;
|
|
187
|
-
},
|
|
188
|
-
const [i,
|
|
188
|
+
}, D = ()=>(0, _environment.isClientSide)() && window.top !== window.self, V = (0, _environment.isClientSide)() ? _react.useLayoutEffect : _react.useEffect, k = (t, r, e)=>{
|
|
189
|
+
const [i, s] = _react.useState(r);
|
|
189
190
|
return _react.useEffect(()=>{
|
|
190
191
|
if (!t.current) return;
|
|
191
192
|
if (typeof window.IntersectionObserver > "u") return ()=>{};
|
|
192
193
|
const c = new IntersectionObserver((o)=>{
|
|
193
|
-
|
|
194
|
+
s(o[0].isIntersecting);
|
|
194
195
|
}, {
|
|
195
196
|
root: e == null ? void 0 : e.root,
|
|
196
197
|
rootMargin: e == null ? void 0 : e.rootMargin,
|
|
@@ -67,19 +67,20 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
67
67
|
}
|
|
68
68
|
return newObj;
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
let { children:
|
|
70
|
+
const a = /*#__PURE__*/ _react.createContext(!1), I = ()=>_react.useContext(a), x = (param)=>{
|
|
71
|
+
let { children: s , width: r , onClose: t , "aria-label": o } = param;
|
|
72
72
|
const { texts: l } = (0, _hooks.useTheme)();
|
|
73
73
|
return t ? /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
|
|
74
74
|
className: _maybedismissablecssmistica.dismissableContainer,
|
|
75
75
|
"aria-label": o,
|
|
76
76
|
style: {
|
|
77
|
-
width: r || "100%"
|
|
77
|
+
width: r || "100%",
|
|
78
|
+
minHeight: "100%"
|
|
78
79
|
},
|
|
79
80
|
children: [
|
|
80
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
81
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(a.Provider, {
|
|
81
82
|
value: !0,
|
|
82
|
-
children:
|
|
83
|
+
children: s
|
|
83
84
|
}),
|
|
84
85
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
|
|
85
86
|
className: _maybedismissablecssmistica.dismissableButton,
|
|
@@ -99,6 +100,6 @@ const i = /*#__PURE__*/ _react.createContext(!1), I = ()=>_react.useContext(i),
|
|
|
99
100
|
})
|
|
100
101
|
]
|
|
101
102
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
102
|
-
children:
|
|
103
|
+
children: s
|
|
103
104
|
});
|
|
104
105
|
}, N = x;
|
package/dist/package-version.js
CHANGED
|
@@ -10,30 +10,27 @@ function _export(target, all) {
|
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
12
|
backgroundVariant: function() {
|
|
13
|
-
return
|
|
14
|
-
},
|
|
15
|
-
expandedResponsiveLayout: function() {
|
|
16
|
-
return n;
|
|
13
|
+
return o;
|
|
17
14
|
},
|
|
18
15
|
expandedResponsiveLayoutContainer: function() {
|
|
19
16
|
return r;
|
|
20
17
|
},
|
|
21
18
|
fullWidth: function() {
|
|
22
|
-
return
|
|
19
|
+
return e;
|
|
23
20
|
},
|
|
24
21
|
fullwidthContainer: function() {
|
|
25
|
-
return
|
|
22
|
+
return v;
|
|
26
23
|
},
|
|
27
24
|
responsiveLayout: function() {
|
|
28
|
-
return
|
|
25
|
+
return t;
|
|
29
26
|
},
|
|
30
27
|
responsiveLayoutContainer: function() {
|
|
31
|
-
return
|
|
28
|
+
return i;
|
|
32
29
|
}
|
|
33
30
|
});
|
|
34
31
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
35
32
|
require("./responsive-layout.css.ts.vanilla.css-mistica.js");
|
|
36
|
-
var
|
|
33
|
+
var o = {
|
|
37
34
|
inverse: "_1y2v1nf3b",
|
|
38
35
|
alternative: "_1y2v1nf3g"
|
|
39
|
-
},
|
|
36
|
+
}, r = "_17lofg73", e = "_17lofg79 _1y2v1nfbx", v = "_17lofg74", t = "_17lofg77", i = "_17lofg72 _1y2v1nfbx";
|
|
@@ -10,10 +10,10 @@ function _export(target, all) {
|
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
12
|
InternalResponsiveLayout: function() {
|
|
13
|
-
return
|
|
13
|
+
return R;
|
|
14
14
|
},
|
|
15
15
|
default: function() {
|
|
16
|
-
return
|
|
16
|
+
return k;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -105,29 +105,29 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
105
105
|
}
|
|
106
106
|
return target;
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
let { children:
|
|
110
|
-
const
|
|
108
|
+
const R = (param)=>{
|
|
109
|
+
let { children: a , isInverse: n = !1 , variant: i , backgroundColor: o , className: r , fullWidth: s , dataAttributes: d , shouldExpandWhenNested: u = !1 } = param;
|
|
110
|
+
const m = (0, _themevariantcontext.useThemeVariant)(), e = i || n && "inverse" || void 0;
|
|
111
111
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
112
|
-
variant:
|
|
112
|
+
variant: e !== null && e !== void 0 ? e : m,
|
|
113
113
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
114
|
-
className: (0, _classnames.default)(
|
|
115
|
-
style:
|
|
116
|
-
background:
|
|
114
|
+
className: (0, _classnames.default)(s ? _responsivelayoutcssmistica.fullwidthContainer : _responsivelayoutcssmistica.responsiveLayoutContainer, r, e && e !== "default" && _responsivelayoutcssmistica.backgroundVariant[e], u && !s && _responsivelayoutcssmistica.expandedResponsiveLayoutContainer),
|
|
115
|
+
style: o ? {
|
|
116
|
+
background: o
|
|
117
117
|
} : void 0
|
|
118
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
118
|
+
}, (0, _dom.getPrefixedDataAttributes)(d)), {
|
|
119
119
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
120
|
-
className:
|
|
121
|
-
children:
|
|
120
|
+
className: s ? _responsivelayoutcssmistica.fullWidth : _responsivelayoutcssmistica.responsiveLayout,
|
|
121
|
+
children: a
|
|
122
122
|
})
|
|
123
123
|
}))
|
|
124
124
|
});
|
|
125
|
-
},
|
|
126
|
-
var { children:
|
|
125
|
+
}, N = (_param)=>/* @__PURE__ */ {
|
|
126
|
+
var { children: a } = _param, n = _object_without_properties(_param, [
|
|
127
127
|
"children"
|
|
128
128
|
]);
|
|
129
|
-
return (0, _jsxruntime.jsx)(
|
|
129
|
+
return (0, _jsxruntime.jsx)(R, _object_spread_props(_object_spread({}, n), {
|
|
130
130
|
shouldExpandWhenNested: !0,
|
|
131
|
-
children:
|
|
131
|
+
children: a
|
|
132
132
|
}));
|
|
133
|
-
},
|
|
133
|
+
}, k = N;
|
package/dist/tabs.css-mistica.js
CHANGED
|
@@ -13,34 +13,46 @@ _export(exports, {
|
|
|
13
13
|
return v;
|
|
14
14
|
},
|
|
15
15
|
icon: function() {
|
|
16
|
-
return
|
|
16
|
+
return e;
|
|
17
17
|
},
|
|
18
18
|
inner: function() {
|
|
19
|
-
return
|
|
19
|
+
return y;
|
|
20
20
|
},
|
|
21
21
|
outer: function() {
|
|
22
|
-
return
|
|
22
|
+
return _;
|
|
23
23
|
},
|
|
24
24
|
outerBorder: function() {
|
|
25
|
-
return
|
|
25
|
+
return r;
|
|
26
|
+
},
|
|
27
|
+
outerBorderInverse: function() {
|
|
28
|
+
return a;
|
|
29
|
+
},
|
|
30
|
+
tabHover: function() {
|
|
31
|
+
return l;
|
|
26
32
|
},
|
|
27
33
|
tabSelectionVariants: function() {
|
|
28
|
-
return
|
|
34
|
+
return o;
|
|
29
35
|
},
|
|
30
36
|
tabVariants: function() {
|
|
31
|
-
return
|
|
37
|
+
return t;
|
|
32
38
|
},
|
|
33
39
|
tabsContainer: function() {
|
|
34
|
-
return
|
|
40
|
+
return b;
|
|
35
41
|
}
|
|
36
42
|
});
|
|
37
43
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
38
44
|
require("./tabs.css.ts.vanilla.css-mistica.js");
|
|
39
|
-
var v = "_1y2v1nfb9 _1y2v1nfb5 _1y2v1nfev _1y2v1nffp _1y2v1nfcg
|
|
45
|
+
var v = "_1y2v1nfb9 _1y2v1nfb5 _1y2v1nfev _1y2v1nffp _1y2v1nfcg", e = "lgofm1q", y = "lgofm14", _ = "lgofm13 _1y2v1nfdl _1y2v1nfbx _1y2v1nfb4", r = "lgofm10", a = "lgofm11", l = {
|
|
46
|
+
default: "lgofm1a",
|
|
47
|
+
inverse: "lgofm1b"
|
|
48
|
+
}, o = {
|
|
40
49
|
noSelected: "_1y2v1nf20",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
},
|
|
50
|
+
noSelectedInverse: "_1y2v1nf21",
|
|
51
|
+
selected: "lgofm1g",
|
|
52
|
+
selectedInverse: "lgofm1h",
|
|
53
|
+
selectedAnimating: "lgofm1i",
|
|
54
|
+
selectedAnimatingInverse: "lgofm1j"
|
|
55
|
+
}, t = {
|
|
56
|
+
default: "lgofm17 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfbb _1y2v1nfbs _1y2v1nfbp _1y2v1nfbj _1y2v1nfd9 _1y2v1nfdl _1y2v1nf62",
|
|
57
|
+
fullWidth: "lgofm19 lgofm17 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfbb _1y2v1nfbs _1y2v1nfbp _1y2v1nfbj _1y2v1nfd9 _1y2v1nfdl _1y2v1nf62"
|
|
58
|
+
}, b = "_1y2v1nfdl _1y2v1nfbx _1y2v1nfba";
|
package/dist/tabs.css.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const outerBorder: string;
|
|
2
|
+
export declare const outerBorderInverse: string;
|
|
2
3
|
export declare const outer: string;
|
|
3
4
|
export declare const inner: string;
|
|
4
5
|
export declare const tabsContainer: string;
|
|
5
6
|
export declare const tabVariants: Record<"default" | "fullWidth", string>;
|
|
6
|
-
export declare const
|
|
7
|
+
export declare const tabHover: Record<"inverse" | "default", string>;
|
|
8
|
+
export declare const tabSelectionVariants: Record<"noSelected" | "noSelectedInverse" | "selected" | "selectedInverse" | "selectedAnimating" | "selectedAnimatingInverse", string>;
|
|
7
9
|
export declare const icon: string;
|
|
8
10
|
export declare const animatedLine: string;
|