@telefonica/mistica 16.2.0 → 16.3.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/card.css-mistica.js +33 -21
- package/dist/card.css.d.ts +4 -0
- package/dist/card.js +235 -263
- package/dist/chip.css-mistica.js +19 -7
- package/dist/chip.css.d.ts +2 -0
- package/dist/chip.js +33 -49
- package/dist/community/advanced-data-card.css-mistica.js +24 -24
- package/dist/community/advanced-data-card.css.d.ts +1 -1
- package/dist/community/advanced-data-card.js +45 -48
- package/dist/empty-state-card.js +12 -11
- package/dist/hero.js +25 -19
- package/dist/highlighted-card.js +15 -14
- package/dist/list.css-mistica.js +21 -15
- package/dist/list.css.d.ts +2 -0
- package/dist/list.js +97 -96
- package/dist/menu.css-mistica.js +9 -9
- package/dist/menu.js +9 -10
- package/dist/package-version.js +1 -1
- package/dist/sheet-common.js +3 -2
- package/dist/table.js +52 -51
- package/dist/tag.css-mistica.js +1 -1
- package/dist/tag.js +9 -10
- package/dist/text-props.d.ts +60 -0
- package/dist/text-props.js +93 -0
- package/dist/text.d.ts +0 -62
- package/dist/text.js +156 -219
- package/dist/title.js +10 -9
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +343 -371
- package/dist-es/chip.css-mistica.js +10 -4
- package/dist-es/chip.js +44 -60
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/advanced-data-card.js +74 -77
- package/dist-es/empty-state-card.js +17 -16
- package/dist-es/hero.js +53 -47
- package/dist-es/highlighted-card.js +19 -18
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +141 -140
- package/dist-es/menu.css-mistica.js +3 -3
- package/dist-es/menu.js +21 -22
- package/dist-es/package-version.js +1 -1
- package/dist-es/sheet-common.js +12 -11
- package/dist-es/style.css +1 -1
- package/dist-es/table.js +89 -88
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/tag.js +14 -15
- package/dist-es/text-props.js +52 -0
- package/dist-es/text.js +171 -231
- package/dist-es/title.js +14 -13
- package/package.json +3 -3
package/dist/table.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
Object.defineProperty(exports, "Table", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
get: function() {
|
|
8
|
-
return
|
|
8
|
+
return Ee;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -14,6 +14,7 @@ const _dom = require("./utils/dom.js");
|
|
|
14
14
|
const _tablecssmistica = require("./table.css-mistica.js");
|
|
15
15
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
16
16
|
const _text = /*#__PURE__*/ _interop_require_wildcard(require("./text.js"));
|
|
17
|
+
const _textprops = require("./text-props.js");
|
|
17
18
|
const _boxed = require("./boxed.js");
|
|
18
19
|
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
19
20
|
const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
|
|
@@ -147,30 +148,30 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
147
148
|
}
|
|
148
149
|
return target;
|
|
149
150
|
}
|
|
150
|
-
const
|
|
151
|
+
const $ = {
|
|
151
152
|
default: "8px",
|
|
152
153
|
boxed: "16px"
|
|
153
|
-
},
|
|
154
|
-
"aria-label":
|
|
154
|
+
}, q = "1px", ve = (o)=>o.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, o), {
|
|
155
|
+
"aria-label": o.label,
|
|
155
156
|
small: !0,
|
|
156
157
|
type: "neutral",
|
|
157
158
|
backgroundType: "transparent",
|
|
158
159
|
bleedY: !0
|
|
159
|
-
})) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.ToggleIconButton, _object_spread_props(_object_spread({},
|
|
160
|
-
checkedProps: _object_spread_props(_object_spread({},
|
|
161
|
-
"aria-label":
|
|
160
|
+
})) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.ToggleIconButton, _object_spread_props(_object_spread({}, o), {
|
|
161
|
+
checkedProps: _object_spread_props(_object_spread({}, o.checkedProps), {
|
|
162
|
+
"aria-label": o.checkedProps.label,
|
|
162
163
|
type: "brand",
|
|
163
164
|
backgroundType: "solid"
|
|
164
165
|
}),
|
|
165
|
-
uncheckedProps: _object_spread_props(_object_spread({},
|
|
166
|
-
"aria-label":
|
|
166
|
+
uncheckedProps: _object_spread_props(_object_spread({}, o.uncheckedProps), {
|
|
167
|
+
"aria-label": o.uncheckedProps.label,
|
|
167
168
|
type: "neutral",
|
|
168
169
|
backgroundType: "transparent"
|
|
169
170
|
}),
|
|
170
171
|
small: !0,
|
|
171
172
|
bleedY: !0
|
|
172
|
-
})),
|
|
173
|
-
var { dataAttributes:
|
|
173
|
+
})), J = "left", Ee = /*#__PURE__*/ _react.forwardRef((_param, z)=>{
|
|
174
|
+
var { dataAttributes: o, heading: m = [], content: k = [], boxed: h, responsive: K, fullWidth: b = !0, maxHeight: v, emptyCase: A, columnTextAlign: T = J, rowVerticalAlign: C = "middle", columnWidth: p, hideHeaders: u, scrollOverResponsiveLayout: Q, rowHeaderIndex: s } = _param, S = _object_without_properties(_param, [
|
|
174
175
|
"dataAttributes",
|
|
175
176
|
"heading",
|
|
176
177
|
"content",
|
|
@@ -186,16 +187,16 @@ const P = {
|
|
|
186
187
|
"scrollOverResponsiveLayout",
|
|
187
188
|
"rowHeaderIndex"
|
|
188
189
|
]);
|
|
189
|
-
const
|
|
190
|
+
const B = (l)=>{
|
|
190
191
|
var _T_l;
|
|
191
|
-
return Array.isArray(T) ? (_T_l = T[l]) !== null && _T_l !== void 0 ? _T_l :
|
|
192
|
-
}, r =
|
|
192
|
+
return Array.isArray(T) ? (_T_l = T[l]) !== null && _T_l !== void 0 ? _T_l : J : T;
|
|
193
|
+
}, r = K === "collapse-rows", P = u === !0 || u === "mobile", U = u === !0 || u === "desktop", g = k.some((l)=>!Array.isArray(l) && l.actions.length > 0), D = /* @__PURE__ */ (0, _jsxruntime.jsxs)("table", {
|
|
193
194
|
className: (0, _classnames.default)(_tablecssmistica.table, {
|
|
194
|
-
[_tablecssmistica.boxed]:
|
|
195
|
+
[_tablecssmistica.boxed]: h,
|
|
195
196
|
[_tablecssmistica.collapsedRowsInMobile]: r,
|
|
196
|
-
[_tablecssmistica.fullWidth]:
|
|
197
|
-
[_tablecssmistica.hiddenHeadersInDesktop]:
|
|
198
|
-
[_tablecssmistica.hiddenHeadersInMobile]:
|
|
197
|
+
[_tablecssmistica.fullWidth]: b,
|
|
198
|
+
[_tablecssmistica.hiddenHeadersInDesktop]: U,
|
|
199
|
+
[_tablecssmistica.hiddenHeadersInMobile]: P || r
|
|
199
200
|
}),
|
|
200
201
|
"aria-label": S["aria-label"],
|
|
201
202
|
"aria-labelledby": S["aria-labelledby"],
|
|
@@ -209,28 +210,28 @@ const P = {
|
|
|
209
210
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
210
211
|
wordBreak: !1,
|
|
211
212
|
children: [
|
|
212
|
-
m.map((l,
|
|
213
|
+
m.map((l, a)=>/* @__PURE__ */ (0, _jsxruntime.jsx)("th", {
|
|
213
214
|
scope: "col",
|
|
214
|
-
className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[
|
|
215
|
-
[_tablecssmistica.rowFirstItem]:
|
|
216
|
-
[_tablecssmistica.rowLastItem]:
|
|
215
|
+
className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[B(a)], _tablecssmistica.verticalAlign[C], {
|
|
216
|
+
[_tablecssmistica.rowFirstItem]: a === 0,
|
|
217
|
+
[_tablecssmistica.rowLastItem]: a === m.length - 1 && !g
|
|
217
218
|
}),
|
|
218
219
|
style: {
|
|
219
|
-
minWidth: p == null ? void 0 : p[
|
|
220
|
-
width: p == null ? void 0 : p[
|
|
220
|
+
minWidth: p == null ? void 0 : p[a],
|
|
221
|
+
width: p == null ? void 0 : p[a]
|
|
221
222
|
},
|
|
222
223
|
children: l
|
|
223
|
-
},
|
|
224
|
-
|
|
224
|
+
}, a)),
|
|
225
|
+
g && /* @__PURE__ */ (0, _jsxruntime.jsx)(_tableactionsheader.TableActionsHeader, {})
|
|
225
226
|
]
|
|
226
227
|
})
|
|
227
228
|
}),
|
|
228
229
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("tbody", {
|
|
229
|
-
children: k.length > 0 ? k.map((l,
|
|
230
|
+
children: k.length > 0 ? k.map((l, a)=>{
|
|
230
231
|
var _l_actions;
|
|
231
232
|
const n = Array.isArray(l) ? l : l.cells, i = Array.isArray(l) ? [] : (_l_actions = l.actions) !== null && _l_actions !== void 0 ? _l_actions : [], w = /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
|
|
232
233
|
space: 16,
|
|
233
|
-
children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
234
|
+
children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ve, _object_spread({}, d), t) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_react.Fragment, {
|
|
234
235
|
children: d
|
|
235
236
|
}, t))
|
|
236
237
|
}), I = i.length ? `calc(${_iconbuttoncssmistica.iconContainerSize.small} * ${i.length} + 16px * ${i.length - 1})` : "0px";
|
|
@@ -240,12 +241,12 @@ const P = {
|
|
|
240
241
|
},
|
|
241
242
|
children: [
|
|
242
243
|
n.map((d, t)=>{
|
|
243
|
-
const
|
|
244
|
+
const V = s === n.length - 1 ? t === n.length - 2 || n.length === 1 : t === n.length - 1;
|
|
244
245
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(t === s ? "th" : "td", {
|
|
245
246
|
className: (0, _classnames.default)(_tablecssmistica.verticalAlign[C], {
|
|
246
247
|
[_tablecssmistica.rowFirstItem]: t === 0,
|
|
247
|
-
[_tablecssmistica.rowLastItem]: t === n.length - 1 && !
|
|
248
|
-
[_tablecssmistica.rowLastCollapsedItem]:
|
|
248
|
+
[_tablecssmistica.rowLastItem]: t === n.length - 1 && !g,
|
|
249
|
+
[_tablecssmistica.rowLastCollapsedItem]: V && r,
|
|
249
250
|
[_tablecssmistica.collapsedRowHeaderItem]: t === s && r
|
|
250
251
|
}),
|
|
251
252
|
style: {
|
|
@@ -254,7 +255,7 @@ const P = {
|
|
|
254
255
|
},
|
|
255
256
|
scope: t === s ? "row" : void 0,
|
|
256
257
|
children: [
|
|
257
|
-
t !== s && r && m[t] && !
|
|
258
|
+
t !== s && r && m[t] && !P && // this is aria-hidden because screen readers already read the column heading from the th
|
|
258
259
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
259
260
|
className: _tablecssmistica.mobileCellHeading,
|
|
260
261
|
"aria-hidden": !0,
|
|
@@ -265,19 +266,19 @@ const P = {
|
|
|
265
266
|
})
|
|
266
267
|
}),
|
|
267
268
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_text.default, _object_spread_props(_object_spread({
|
|
268
|
-
desktopSize:
|
|
269
|
-
desktopLineHeight:
|
|
269
|
+
desktopSize: _textprops.text2.desktopSize,
|
|
270
|
+
desktopLineHeight: _textprops.text2.desktopLineHeight
|
|
270
271
|
}, t === s && r ? {
|
|
271
|
-
mobileSize:
|
|
272
|
-
mobileLineHeight:
|
|
272
|
+
mobileSize: _textprops.text4.mobileSize,
|
|
273
|
+
mobileLineHeight: _textprops.text4.mobileLineHeight
|
|
273
274
|
} : {
|
|
274
|
-
mobileSize:
|
|
275
|
-
mobileLineHeight:
|
|
275
|
+
mobileSize: _textprops.text2.mobileSize,
|
|
276
|
+
mobileLineHeight: _textprops.text2.mobileLineHeight
|
|
276
277
|
}), {
|
|
277
278
|
as: "div",
|
|
278
279
|
wordBreak: !1,
|
|
279
280
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
280
|
-
className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[
|
|
281
|
+
className: (0, _classnames.default)(_tablecssmistica.cellTextAlign[B(t)], {
|
|
281
282
|
[_tablecssmistica.collapsedRowTitle]: t === s && r
|
|
282
283
|
}),
|
|
283
284
|
children: d
|
|
@@ -295,21 +296,21 @@ const P = {
|
|
|
295
296
|
width: `calc(${I} + 12px)`
|
|
296
297
|
},
|
|
297
298
|
children: w
|
|
298
|
-
}) :
|
|
299
|
+
}) : g && /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
|
|
299
300
|
className: _tablecssmistica.actionsTableCell
|
|
300
301
|
}),
|
|
301
302
|
process.env.NODE_ENV !== "test" && r && i.length > 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
|
|
302
303
|
className: _tablecssmistica.topActions,
|
|
303
304
|
style: {
|
|
304
305
|
position: "absolute",
|
|
305
|
-
top: `calc(${
|
|
306
|
-
right:
|
|
306
|
+
top: `calc(${h ? $.boxed : $.default} - ${q} + (${_iconbuttoncssmistica.iconContainerSize.small} - ${_iconbuttoncssmistica.iconSize.small}) / 2)`,
|
|
307
|
+
right: h ? `calc(${$.boxed} - ${q})` : 0,
|
|
307
308
|
width: I
|
|
308
309
|
},
|
|
309
310
|
children: w
|
|
310
311
|
})
|
|
311
312
|
]
|
|
312
|
-
},
|
|
313
|
+
}, a);
|
|
313
314
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("tr", {
|
|
314
315
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("td", {
|
|
315
316
|
colSpan: m.length,
|
|
@@ -335,31 +336,31 @@ const P = {
|
|
|
335
336
|
className: (0, _classnames.default)(_tablecssmistica.scrollContainer, {
|
|
336
337
|
[_tablecssmistica.scrollOverResponsiveLayout]: l,
|
|
337
338
|
[_tablecssmistica.collapsedRowsInMobile]: r,
|
|
338
|
-
[_tablecssmistica.fullWidth]:
|
|
339
|
+
[_tablecssmistica.fullWidth]: b
|
|
339
340
|
}),
|
|
340
341
|
style: (0, _css.applyCssVars)({
|
|
341
342
|
[_tablecssmistica.vars.maxHeight]: typeof v == "number" ? `${v}px` : v !== null && v !== void 0 ? v : "auto"
|
|
342
343
|
})
|
|
343
344
|
};
|
|
344
345
|
};
|
|
345
|
-
return
|
|
346
|
+
return h ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
|
|
346
347
|
desktopOnly: r,
|
|
347
348
|
width: "fit-content",
|
|
348
349
|
maxWidth: "100%",
|
|
349
350
|
minWidth: {
|
|
350
|
-
desktop:
|
|
351
|
-
mobile: r ||
|
|
351
|
+
desktop: b ? "100%" : "auto",
|
|
352
|
+
mobile: r || b ? "100%" : "auto"
|
|
352
353
|
},
|
|
353
|
-
ref:
|
|
354
|
+
ref: z,
|
|
354
355
|
dataAttributes: _object_spread({
|
|
355
356
|
"component-name": "Table"
|
|
356
|
-
},
|
|
357
|
+
}, o),
|
|
357
358
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, O()), {
|
|
358
359
|
children: D
|
|
359
360
|
}))
|
|
360
361
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
361
|
-
ref:
|
|
362
|
-
}, (0, _dom.getPrefixedDataAttributes)(
|
|
362
|
+
ref: z
|
|
363
|
+
}, (0, _dom.getPrefixedDataAttributes)(o, "Table"), O(Q)), {
|
|
363
364
|
children: D
|
|
364
365
|
}));
|
|
365
366
|
});
|
package/dist/tag.css-mistica.js
CHANGED
|
@@ -21,4 +21,4 @@ _export(exports, {
|
|
|
21
21
|
});
|
|
22
22
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
23
23
|
require("./tag.css.ts.vanilla.css-mistica.js");
|
|
24
|
-
var y = "_1y2v1nfhl", _ = "_1y2v1nfhm", f = "_1wy08671 _1y2v1nf7j _1y2v1nf8s _1y2v1nfhl _1y2v1nfhp _1y2v1nfhz _1y2v1nfht _1y2v1nfjg";
|
|
24
|
+
var y = "_1y2v1nfhl _1y2v1nfa1", _ = "_1y2v1nfhm", f = "_1wy08671 _1y2v1nf7j _1y2v1nf8s _1y2v1nfhl _1y2v1nfhp _1y2v1nfhz _1y2v1nfht _1y2v1nfjg";
|
package/dist/tag.js
CHANGED
|
@@ -78,10 +78,10 @@ function _object_spread_props(target, source) {
|
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
80
|
const { colors: t } = _skincontractcssmistica.vars, C = (param)=>{
|
|
81
|
-
let { Icon: e, children: o, dataAttributes:
|
|
82
|
-
const { textPresets:
|
|
81
|
+
let { Icon: e, children: o, dataAttributes: g, type: c = "promo", badge: i } = param;
|
|
82
|
+
const { textPresets: m } = (0, _hooks.useTheme)(), d = (0, _themevariantcontext.useThemeVariant)(), a = i === !0 ? void 0 : i || 0;
|
|
83
83
|
if (!o) return null;
|
|
84
|
-
const
|
|
84
|
+
const l = {
|
|
85
85
|
// [textColor, backgroundColor]
|
|
86
86
|
promo: [
|
|
87
87
|
t.tagTextPromo,
|
|
@@ -94,7 +94,7 @@ const { colors: t } = _skincontractcssmistica.vars, C = (param)=>{
|
|
|
94
94
|
inactive: [
|
|
95
95
|
t.tagTextInactive,
|
|
96
96
|
// TODO: remove logic for alternative variant (https://jira.tid.es/browse/WEB-1803)
|
|
97
|
-
|
|
97
|
+
d === "alternative" ? t.neutralLowAlternative : t.tagBackgroundInactive
|
|
98
98
|
],
|
|
99
99
|
success: [
|
|
100
100
|
t.tagTextSuccess,
|
|
@@ -108,13 +108,13 @@ const { colors: t } = _skincontractcssmistica.vars, C = (param)=>{
|
|
|
108
108
|
t.tagTextError,
|
|
109
109
|
t.tagBackgroundError
|
|
110
110
|
]
|
|
111
|
-
}, [n,
|
|
112
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("span", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(
|
|
111
|
+
}, [n, u] = l[c];
|
|
112
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("span", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(g, "Tag")), {
|
|
113
113
|
className: (0, _classnames.default)(_tagcssmistica.tag),
|
|
114
114
|
style: {
|
|
115
115
|
paddingLeft: e ? 8 : 12,
|
|
116
116
|
paddingRight: a !== 0 ? 8 : 12,
|
|
117
|
-
background:
|
|
117
|
+
background: u
|
|
118
118
|
},
|
|
119
119
|
children: [
|
|
120
120
|
e && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
@@ -132,12 +132,11 @@ const { colors: t } = _skincontractcssmistica.vars, C = (param)=>{
|
|
|
132
132
|
color: n,
|
|
133
133
|
size: 14,
|
|
134
134
|
lineHeight: 20,
|
|
135
|
-
weight:
|
|
135
|
+
weight: m.indicator.weight,
|
|
136
136
|
truncate: !0,
|
|
137
137
|
children: o
|
|
138
138
|
}),
|
|
139
|
-
a !== 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
140
|
-
paddingLeft: 4,
|
|
139
|
+
a !== 0 && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
141
140
|
className: _tagcssmistica.badge,
|
|
142
141
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_badge.default, {
|
|
143
142
|
value: a
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const text1: {
|
|
2
|
+
mobileSize: number;
|
|
3
|
+
mobileLineHeight: string;
|
|
4
|
+
desktopSize: number;
|
|
5
|
+
desktopLineHeight: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const text2: {
|
|
8
|
+
mobileSize: number;
|
|
9
|
+
mobileLineHeight: string;
|
|
10
|
+
desktopSize: number;
|
|
11
|
+
desktopLineHeight: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const text3: {
|
|
14
|
+
mobileSize: number;
|
|
15
|
+
mobileLineHeight: string;
|
|
16
|
+
desktopSize: number;
|
|
17
|
+
desktopLineHeight: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const text4: {
|
|
20
|
+
mobileSize: number;
|
|
21
|
+
mobileLineHeight: string;
|
|
22
|
+
desktopSize: number;
|
|
23
|
+
desktopLineHeight: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const text5: {
|
|
26
|
+
mobileSize: number;
|
|
27
|
+
mobileLineHeight: string;
|
|
28
|
+
desktopSize: number;
|
|
29
|
+
desktopLineHeight: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const text6: {
|
|
32
|
+
mobileSize: number;
|
|
33
|
+
mobileLineHeight: string;
|
|
34
|
+
desktopSize: number;
|
|
35
|
+
desktopLineHeight: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const text7: {
|
|
38
|
+
mobileSize: number;
|
|
39
|
+
mobileLineHeight: string;
|
|
40
|
+
desktopSize: number;
|
|
41
|
+
desktopLineHeight: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const text8: {
|
|
44
|
+
mobileSize: number;
|
|
45
|
+
mobileLineHeight: string;
|
|
46
|
+
desktopSize: number;
|
|
47
|
+
desktopLineHeight: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const text9: {
|
|
50
|
+
mobileSize: number;
|
|
51
|
+
mobileLineHeight: string;
|
|
52
|
+
desktopSize: number;
|
|
53
|
+
desktopLineHeight: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const text10: {
|
|
56
|
+
mobileSize: number;
|
|
57
|
+
mobileLineHeight: string;
|
|
58
|
+
desktopSize: number;
|
|
59
|
+
desktopLineHeight: string;
|
|
60
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
text1: function() {
|
|
13
|
+
return e;
|
|
14
|
+
},
|
|
15
|
+
text10: function() {
|
|
16
|
+
return d;
|
|
17
|
+
},
|
|
18
|
+
text2: function() {
|
|
19
|
+
return i;
|
|
20
|
+
},
|
|
21
|
+
text3: function() {
|
|
22
|
+
return t;
|
|
23
|
+
},
|
|
24
|
+
text4: function() {
|
|
25
|
+
return o;
|
|
26
|
+
},
|
|
27
|
+
text5: function() {
|
|
28
|
+
return p;
|
|
29
|
+
},
|
|
30
|
+
text6: function() {
|
|
31
|
+
return x;
|
|
32
|
+
},
|
|
33
|
+
text7: function() {
|
|
34
|
+
return n;
|
|
35
|
+
},
|
|
36
|
+
text8: function() {
|
|
37
|
+
return s;
|
|
38
|
+
},
|
|
39
|
+
text9: function() {
|
|
40
|
+
return b;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const e = {
|
|
44
|
+
mobileSize: 12,
|
|
45
|
+
mobileLineHeight: "16px",
|
|
46
|
+
desktopSize: 14,
|
|
47
|
+
desktopLineHeight: "20px"
|
|
48
|
+
}, i = {
|
|
49
|
+
mobileSize: 14,
|
|
50
|
+
mobileLineHeight: "20px",
|
|
51
|
+
desktopSize: 16,
|
|
52
|
+
desktopLineHeight: "24px"
|
|
53
|
+
}, t = {
|
|
54
|
+
mobileSize: 16,
|
|
55
|
+
mobileLineHeight: "24px",
|
|
56
|
+
desktopSize: 18,
|
|
57
|
+
desktopLineHeight: "24px"
|
|
58
|
+
}, o = {
|
|
59
|
+
mobileSize: 18,
|
|
60
|
+
mobileLineHeight: "24px",
|
|
61
|
+
desktopSize: 20,
|
|
62
|
+
desktopLineHeight: "28px"
|
|
63
|
+
}, p = {
|
|
64
|
+
mobileSize: 20,
|
|
65
|
+
mobileLineHeight: "24px",
|
|
66
|
+
desktopSize: 28,
|
|
67
|
+
desktopLineHeight: "32px"
|
|
68
|
+
}, x = {
|
|
69
|
+
mobileSize: 24,
|
|
70
|
+
mobileLineHeight: "32px",
|
|
71
|
+
desktopSize: 32,
|
|
72
|
+
desktopLineHeight: "40px"
|
|
73
|
+
}, n = {
|
|
74
|
+
mobileSize: 28,
|
|
75
|
+
mobileLineHeight: "32px",
|
|
76
|
+
desktopSize: 40,
|
|
77
|
+
desktopLineHeight: "48px"
|
|
78
|
+
}, s = {
|
|
79
|
+
mobileSize: 32,
|
|
80
|
+
mobileLineHeight: "40px",
|
|
81
|
+
desktopSize: 48,
|
|
82
|
+
desktopLineHeight: "56px"
|
|
83
|
+
}, b = {
|
|
84
|
+
mobileSize: 40,
|
|
85
|
+
mobileLineHeight: "48px",
|
|
86
|
+
desktopSize: 56,
|
|
87
|
+
desktopLineHeight: "64px"
|
|
88
|
+
}, d = {
|
|
89
|
+
mobileSize: 48,
|
|
90
|
+
mobileLineHeight: "56px",
|
|
91
|
+
desktopSize: 64,
|
|
92
|
+
desktopLineHeight: "72px"
|
|
93
|
+
};
|
package/dist/text.d.ts
CHANGED
|
@@ -58,68 +58,6 @@ interface RestrictedWeightTextProps<T> extends TextPresetProps {
|
|
|
58
58
|
}
|
|
59
59
|
type RegularMediumProps = ExclusifyUnion<RegularProps | MediumProps | RestrictedWeightTextProps<'regular' | 'medium'>>;
|
|
60
60
|
type LightRegularMediumProps = ExclusifyUnion<LightProps | RegularProps | MediumProps | RestrictedWeightTextProps<'light' | 'regular' | 'medium'>>;
|
|
61
|
-
export declare const textProps: {
|
|
62
|
-
text1: {
|
|
63
|
-
mobileSize: number;
|
|
64
|
-
mobileLineHeight: string;
|
|
65
|
-
desktopSize: number;
|
|
66
|
-
desktopLineHeight: string;
|
|
67
|
-
};
|
|
68
|
-
text2: {
|
|
69
|
-
mobileSize: number;
|
|
70
|
-
mobileLineHeight: string;
|
|
71
|
-
desktopSize: number;
|
|
72
|
-
desktopLineHeight: string;
|
|
73
|
-
};
|
|
74
|
-
text3: {
|
|
75
|
-
mobileSize: number;
|
|
76
|
-
mobileLineHeight: string;
|
|
77
|
-
desktopSize: number;
|
|
78
|
-
desktopLineHeight: string;
|
|
79
|
-
};
|
|
80
|
-
text4: {
|
|
81
|
-
mobileSize: number;
|
|
82
|
-
mobileLineHeight: string;
|
|
83
|
-
desktopSize: number;
|
|
84
|
-
desktopLineHeight: string;
|
|
85
|
-
};
|
|
86
|
-
text5: {
|
|
87
|
-
mobileSize: number;
|
|
88
|
-
mobileLineHeight: string;
|
|
89
|
-
desktopSize: number;
|
|
90
|
-
desktopLineHeight: string;
|
|
91
|
-
};
|
|
92
|
-
text6: {
|
|
93
|
-
mobileSize: number;
|
|
94
|
-
mobileLineHeight: string;
|
|
95
|
-
desktopSize: number;
|
|
96
|
-
desktopLineHeight: string;
|
|
97
|
-
};
|
|
98
|
-
text7: {
|
|
99
|
-
mobileSize: number;
|
|
100
|
-
mobileLineHeight: string;
|
|
101
|
-
desktopSize: number;
|
|
102
|
-
desktopLineHeight: string;
|
|
103
|
-
};
|
|
104
|
-
text8: {
|
|
105
|
-
mobileSize: number;
|
|
106
|
-
mobileLineHeight: string;
|
|
107
|
-
desktopSize: number;
|
|
108
|
-
desktopLineHeight: string;
|
|
109
|
-
};
|
|
110
|
-
text9: {
|
|
111
|
-
mobileSize: number;
|
|
112
|
-
mobileLineHeight: string;
|
|
113
|
-
desktopSize: number;
|
|
114
|
-
desktopLineHeight: string;
|
|
115
|
-
};
|
|
116
|
-
text10: {
|
|
117
|
-
mobileSize: number;
|
|
118
|
-
mobileLineHeight: string;
|
|
119
|
-
desktopSize: number;
|
|
120
|
-
desktopLineHeight: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
61
|
export declare const Text10: ({ dataAttributes, forceMobileSizes, ...props }: TextPresetProps) => JSX.Element;
|
|
124
62
|
export declare const Text9: ({ dataAttributes, forceMobileSizes, ...props }: TextPresetProps) => JSX.Element;
|
|
125
63
|
export declare const Text8: ({ dataAttributes, forceMobileSizes, ...props }: TextPresetProps) => JSX.Element;
|