@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-es/table.js
CHANGED
|
@@ -77,44 +77,45 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import { jsxs as
|
|
81
|
-
import * as
|
|
82
|
-
import { getPrefixedDataAttributes as
|
|
83
|
-
import { table as
|
|
84
|
-
import { vars as
|
|
85
|
-
import
|
|
86
|
-
import {
|
|
80
|
+
import { jsxs as y, jsx as e } from "react/jsx-runtime";
|
|
81
|
+
import * as E from "react";
|
|
82
|
+
import { getPrefixedDataAttributes as X } from "./utils/dom.js";
|
|
83
|
+
import { table as W, boxed as ee, collapsedRowsInMobile as M, fullWidth as _, hiddenHeadersInDesktop as te, hiddenHeadersInMobile as le, cellTextAlign as H, verticalAlign as N, rowFirstItem as L, rowLastItem as R, rowLastCollapsedItem as Y, collapsedRowHeaderItem as re, mobileCellHeading as oe, collapsedRowTitle as ae, actionsTableCell as j, topActions as se, scrollContainer as ne, scrollOverResponsiveLayout as ie, vars as ce } from "./table.css-mistica.js";
|
|
84
|
+
import { vars as F } from "./skins/skin-contract.css-mistica.js";
|
|
85
|
+
import me, { Text1 as x, Text2 as pe } from "./text.js";
|
|
86
|
+
import { text2 as f, text4 as G } from "./text-props.js";
|
|
87
|
+
import { InternalBoxed as de } from "./boxed.js";
|
|
87
88
|
import c from "classnames";
|
|
88
|
-
import
|
|
89
|
-
import { applyCssVars as
|
|
90
|
-
import
|
|
91
|
-
import { IconButton as
|
|
92
|
-
import { iconContainerSize as
|
|
93
|
-
import { TableActionsHeader as
|
|
94
|
-
const
|
|
89
|
+
import he from "./box.js";
|
|
90
|
+
import { applyCssVars as be } from "./utils/css.js";
|
|
91
|
+
import ue from "./inline.js";
|
|
92
|
+
import { IconButton as ge, ToggleIconButton as ye } from "./icon-button.js";
|
|
93
|
+
import { iconContainerSize as Z, iconSize as fe } from "./icon-button.css-mistica.js";
|
|
94
|
+
import { TableActionsHeader as ke } from "./table-actions-header.js";
|
|
95
|
+
const $ = {
|
|
95
96
|
default: "8px",
|
|
96
97
|
boxed: "16px"
|
|
97
|
-
},
|
|
98
|
-
"aria-label":
|
|
98
|
+
}, q = "1px", ve = (o)=>o.Icon ? /* @__PURE__ */ e(ge, _object_spread_props(_object_spread({}, o), {
|
|
99
|
+
"aria-label": o.label,
|
|
99
100
|
small: !0,
|
|
100
101
|
type: "neutral",
|
|
101
102
|
backgroundType: "transparent",
|
|
102
103
|
bleedY: !0
|
|
103
|
-
})) : /* @__PURE__ */ e(
|
|
104
|
-
checkedProps: _object_spread_props(_object_spread({},
|
|
105
|
-
"aria-label":
|
|
104
|
+
})) : /* @__PURE__ */ e(ye, _object_spread_props(_object_spread({}, o), {
|
|
105
|
+
checkedProps: _object_spread_props(_object_spread({}, o.checkedProps), {
|
|
106
|
+
"aria-label": o.checkedProps.label,
|
|
106
107
|
type: "brand",
|
|
107
108
|
backgroundType: "solid"
|
|
108
109
|
}),
|
|
109
|
-
uncheckedProps: _object_spread_props(_object_spread({},
|
|
110
|
-
"aria-label":
|
|
110
|
+
uncheckedProps: _object_spread_props(_object_spread({}, o.uncheckedProps), {
|
|
111
|
+
"aria-label": o.uncheckedProps.label,
|
|
111
112
|
type: "neutral",
|
|
112
113
|
backgroundType: "transparent"
|
|
113
114
|
}),
|
|
114
115
|
small: !0,
|
|
115
116
|
bleedY: !0
|
|
116
|
-
})),
|
|
117
|
-
var { dataAttributes:
|
|
117
|
+
})), J = "left", Ee = /*#__PURE__*/ E.forwardRef((_param, z)=>{
|
|
118
|
+
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, [
|
|
118
119
|
"dataAttributes",
|
|
119
120
|
"heading",
|
|
120
121
|
"content",
|
|
@@ -130,68 +131,68 @@ const P = {
|
|
|
130
131
|
"scrollOverResponsiveLayout",
|
|
131
132
|
"rowHeaderIndex"
|
|
132
133
|
]);
|
|
133
|
-
const
|
|
134
|
+
const B = (l)=>{
|
|
134
135
|
var _T_l;
|
|
135
|
-
return Array.isArray(T) ? (_T_l = T[l]) !== null && _T_l !== void 0 ? _T_l :
|
|
136
|
-
}, r =
|
|
137
|
-
className: c(
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[
|
|
141
|
-
[
|
|
142
|
-
[
|
|
136
|
+
return Array.isArray(T) ? (_T_l = T[l]) !== null && _T_l !== void 0 ? _T_l : J : T;
|
|
137
|
+
}, 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__ */ y("table", {
|
|
138
|
+
className: c(W, {
|
|
139
|
+
[ee]: h,
|
|
140
|
+
[M]: r,
|
|
141
|
+
[_]: b,
|
|
142
|
+
[te]: U,
|
|
143
|
+
[le]: P || r
|
|
143
144
|
}),
|
|
144
145
|
"aria-label": S["aria-label"],
|
|
145
146
|
"aria-labelledby": S["aria-labelledby"],
|
|
146
147
|
"aria-describedby": S["aria-describedby"],
|
|
147
148
|
children: [
|
|
148
149
|
m.length > 0 && /* @__PURE__ */ e("thead", {
|
|
149
|
-
children: /* @__PURE__ */
|
|
150
|
+
children: /* @__PURE__ */ y(x, {
|
|
150
151
|
as: "tr",
|
|
151
152
|
medium: !0,
|
|
152
153
|
transform: "uppercase",
|
|
153
|
-
color:
|
|
154
|
+
color: F.colors.textSecondary,
|
|
154
155
|
wordBreak: !1,
|
|
155
156
|
children: [
|
|
156
|
-
m.map((l,
|
|
157
|
+
m.map((l, a)=>/* @__PURE__ */ e("th", {
|
|
157
158
|
scope: "col",
|
|
158
|
-
className: c(
|
|
159
|
-
[L]:
|
|
160
|
-
[R]:
|
|
159
|
+
className: c(H[B(a)], N[C], {
|
|
160
|
+
[L]: a === 0,
|
|
161
|
+
[R]: a === m.length - 1 && !g
|
|
161
162
|
}),
|
|
162
163
|
style: {
|
|
163
|
-
minWidth: p == null ? void 0 : p[
|
|
164
|
-
width: p == null ? void 0 : p[
|
|
164
|
+
minWidth: p == null ? void 0 : p[a],
|
|
165
|
+
width: p == null ? void 0 : p[a]
|
|
165
166
|
},
|
|
166
167
|
children: l
|
|
167
|
-
},
|
|
168
|
-
|
|
168
|
+
}, a)),
|
|
169
|
+
g && /* @__PURE__ */ e(ke, {})
|
|
169
170
|
]
|
|
170
171
|
})
|
|
171
172
|
}),
|
|
172
173
|
/* @__PURE__ */ e("tbody", {
|
|
173
|
-
children: k.length > 0 ? k.map((l,
|
|
174
|
+
children: k.length > 0 ? k.map((l, a)=>{
|
|
174
175
|
var _l_actions;
|
|
175
|
-
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__ */ e(
|
|
176
|
+
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__ */ e(ue, {
|
|
176
177
|
space: 16,
|
|
177
|
-
children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ e(
|
|
178
|
+
children: i.map((d, t)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ e(ve, _object_spread({}, d), t) : /* @__PURE__ */ e(E.Fragment, {
|
|
178
179
|
children: d
|
|
179
180
|
}, t))
|
|
180
|
-
}), I = i.length ? `calc(${
|
|
181
|
+
}), I = i.length ? `calc(${Z.small} * ${i.length} + 16px * ${i.length - 1})` : "0px";
|
|
181
182
|
return(// Add position relative because in collapse-rows mode, actions are positioned absolutely in the row
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ y("tr", {
|
|
183
184
|
style: {
|
|
184
185
|
position: "relative"
|
|
185
186
|
},
|
|
186
187
|
children: [
|
|
187
188
|
n.map((d, t)=>{
|
|
188
|
-
const
|
|
189
|
-
return /* @__PURE__ */
|
|
189
|
+
const V = s === n.length - 1 ? t === n.length - 2 || n.length === 1 : t === n.length - 1;
|
|
190
|
+
return /* @__PURE__ */ y(t === s ? "th" : "td", {
|
|
190
191
|
className: c(N[C], {
|
|
191
192
|
[L]: t === 0,
|
|
192
|
-
[R]: t === n.length - 1 && !
|
|
193
|
-
[
|
|
194
|
-
[
|
|
193
|
+
[R]: t === n.length - 1 && !g,
|
|
194
|
+
[Y]: V && r,
|
|
195
|
+
[re]: t === s && r
|
|
195
196
|
}),
|
|
196
197
|
style: {
|
|
197
198
|
// add space between top actions and content
|
|
@@ -199,30 +200,30 @@ const P = {
|
|
|
199
200
|
},
|
|
200
201
|
scope: t === s ? "row" : void 0,
|
|
201
202
|
children: [
|
|
202
|
-
t !== s && r && m[t] && !
|
|
203
|
+
t !== s && r && m[t] && !P && // this is aria-hidden because screen readers already read the column heading from the th
|
|
203
204
|
/* @__PURE__ */ e("div", {
|
|
204
|
-
className:
|
|
205
|
+
className: oe,
|
|
205
206
|
"aria-hidden": !0,
|
|
206
|
-
children: /* @__PURE__ */ e(
|
|
207
|
+
children: /* @__PURE__ */ e(x, {
|
|
207
208
|
medium: !0,
|
|
208
|
-
color:
|
|
209
|
+
color: F.colors.textSecondary,
|
|
209
210
|
children: m[t]
|
|
210
211
|
})
|
|
211
212
|
}),
|
|
212
|
-
/* @__PURE__ */ e(
|
|
213
|
-
desktopSize:
|
|
214
|
-
desktopLineHeight:
|
|
213
|
+
/* @__PURE__ */ e(me, _object_spread_props(_object_spread({
|
|
214
|
+
desktopSize: f.desktopSize,
|
|
215
|
+
desktopLineHeight: f.desktopLineHeight
|
|
215
216
|
}, t === s && r ? {
|
|
216
|
-
mobileSize:
|
|
217
|
-
mobileLineHeight:
|
|
217
|
+
mobileSize: G.mobileSize,
|
|
218
|
+
mobileLineHeight: G.mobileLineHeight
|
|
218
219
|
} : {
|
|
219
|
-
mobileSize:
|
|
220
|
-
mobileLineHeight:
|
|
220
|
+
mobileSize: f.mobileSize,
|
|
221
|
+
mobileLineHeight: f.mobileLineHeight
|
|
221
222
|
}), {
|
|
222
223
|
as: "div",
|
|
223
224
|
wordBreak: !1,
|
|
224
225
|
children: /* @__PURE__ */ e("div", {
|
|
225
|
-
className: c(
|
|
226
|
+
className: c(H[B(t)], {
|
|
226
227
|
[ae]: t === s && r
|
|
227
228
|
}),
|
|
228
229
|
children: d
|
|
@@ -232,7 +233,7 @@ const P = {
|
|
|
232
233
|
}, t);
|
|
233
234
|
}),
|
|
234
235
|
i.length > 0 ? /* @__PURE__ */ e("td", {
|
|
235
|
-
className: c(N[C],
|
|
236
|
+
className: c(N[C], j, R, {
|
|
236
237
|
[L]: n.length === 0
|
|
237
238
|
}),
|
|
238
239
|
align: "right",
|
|
@@ -240,30 +241,30 @@ const P = {
|
|
|
240
241
|
width: `calc(${I} + 12px)`
|
|
241
242
|
},
|
|
242
243
|
children: w
|
|
243
|
-
}) :
|
|
244
|
-
className:
|
|
244
|
+
}) : g && /* @__PURE__ */ e("td", {
|
|
245
|
+
className: j
|
|
245
246
|
}),
|
|
246
247
|
process.env.NODE_ENV !== "test" && r && i.length > 0 && /* @__PURE__ */ e("td", {
|
|
247
|
-
className:
|
|
248
|
+
className: se,
|
|
248
249
|
style: {
|
|
249
250
|
position: "absolute",
|
|
250
|
-
top: `calc(${
|
|
251
|
-
right:
|
|
251
|
+
top: `calc(${h ? $.boxed : $.default} - ${q} + (${Z.small} - ${fe.small}) / 2)`,
|
|
252
|
+
right: h ? `calc(${$.boxed} - ${q})` : 0,
|
|
252
253
|
width: I
|
|
253
254
|
},
|
|
254
255
|
children: w
|
|
255
256
|
})
|
|
256
257
|
]
|
|
257
|
-
},
|
|
258
|
+
}, a));
|
|
258
259
|
}) : /* @__PURE__ */ e("tr", {
|
|
259
260
|
children: /* @__PURE__ */ e("td", {
|
|
260
261
|
colSpan: m.length,
|
|
261
262
|
className: c({
|
|
262
|
-
[
|
|
263
|
+
[Y]: r
|
|
263
264
|
}),
|
|
264
|
-
children: typeof A == "string" ? /* @__PURE__ */ e(
|
|
265
|
+
children: typeof A == "string" ? /* @__PURE__ */ e(he, {
|
|
265
266
|
paddingY: 56,
|
|
266
|
-
children: /* @__PURE__ */ e(
|
|
267
|
+
children: /* @__PURE__ */ e(pe, {
|
|
267
268
|
regular: !0,
|
|
268
269
|
textAlign: "center",
|
|
269
270
|
as: "div",
|
|
@@ -277,35 +278,35 @@ const P = {
|
|
|
277
278
|
}), O = function() {
|
|
278
279
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
279
280
|
return {
|
|
280
|
-
className: c(
|
|
281
|
-
[
|
|
282
|
-
[
|
|
283
|
-
[
|
|
281
|
+
className: c(ne, {
|
|
282
|
+
[ie]: l,
|
|
283
|
+
[M]: r,
|
|
284
|
+
[_]: b
|
|
284
285
|
}),
|
|
285
|
-
style:
|
|
286
|
-
[
|
|
286
|
+
style: be({
|
|
287
|
+
[ce.maxHeight]: typeof v == "number" ? `${v}px` : v !== null && v !== void 0 ? v : "auto"
|
|
287
288
|
})
|
|
288
289
|
};
|
|
289
290
|
};
|
|
290
|
-
return
|
|
291
|
+
return h ? /* @__PURE__ */ e(de, {
|
|
291
292
|
desktopOnly: r,
|
|
292
293
|
width: "fit-content",
|
|
293
294
|
maxWidth: "100%",
|
|
294
295
|
minWidth: {
|
|
295
|
-
desktop:
|
|
296
|
-
mobile: r ||
|
|
296
|
+
desktop: b ? "100%" : "auto",
|
|
297
|
+
mobile: r || b ? "100%" : "auto"
|
|
297
298
|
},
|
|
298
|
-
ref:
|
|
299
|
+
ref: z,
|
|
299
300
|
dataAttributes: _object_spread({
|
|
300
301
|
"component-name": "Table"
|
|
301
|
-
},
|
|
302
|
+
}, o),
|
|
302
303
|
children: /* @__PURE__ */ e("div", _object_spread_props(_object_spread({}, O()), {
|
|
303
304
|
children: D
|
|
304
305
|
}))
|
|
305
306
|
}) : /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
|
|
306
|
-
ref:
|
|
307
|
-
},
|
|
307
|
+
ref: z
|
|
308
|
+
}, X(o, "Table"), O(Q)), {
|
|
308
309
|
children: D
|
|
309
310
|
}));
|
|
310
311
|
});
|
|
311
|
-
export {
|
|
312
|
+
export { Ee as Table };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./tag.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var y = "_1y2v1nfhl", _ = "_1y2v1nfhm", f = "_1wy08671 _1y2v1nf7j _1y2v1nf8s _1y2v1nfhl _1y2v1nfhp _1y2v1nfhz _1y2v1nfht _1y2v1nfjg";
|
|
3
|
+
var y = "_1y2v1nfhl _1y2v1nfa1", _ = "_1y2v1nfhm", f = "_1wy08671 _1y2v1nf7j _1y2v1nf8s _1y2v1nfhl _1y2v1nfhp _1y2v1nfhz _1y2v1nfht _1y2v1nfjg";
|
|
4
4
|
export { y as badge, _ as icon, f as tag };
|
package/dist-es/tag.js
CHANGED
|
@@ -52,21 +52,21 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
54
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
55
|
-
import
|
|
55
|
+
import p from "./box.js";
|
|
56
56
|
import { Text as f } from "./text.js";
|
|
57
57
|
import { useThemeVariant as T, ThemeVariant as x } from "./theme-variant-context.js";
|
|
58
|
-
import { pxToRem as
|
|
59
|
-
import { getPrefixedDataAttributes as
|
|
58
|
+
import { pxToRem as v } from "./utils/css.js";
|
|
59
|
+
import { getPrefixedDataAttributes as h } from "./utils/dom.js";
|
|
60
60
|
import { tag as k, icon as B, badge as b } from "./tag.css-mistica.js";
|
|
61
61
|
import { vars as w } from "./skins/skin-contract.css-mistica.js";
|
|
62
62
|
import A from "classnames";
|
|
63
63
|
import { useTheme as P } from "./hooks.js";
|
|
64
64
|
import V from "./badge.js";
|
|
65
65
|
const { colors: t } = w, C = (param)=>{
|
|
66
|
-
let { Icon: e, children: o, dataAttributes:
|
|
67
|
-
const { textPresets:
|
|
66
|
+
let { Icon: e, children: o, dataAttributes: g, type: c = "promo", badge: i } = param;
|
|
67
|
+
const { textPresets: m } = P(), d = T(), a = i === !0 ? void 0 : i || 0;
|
|
68
68
|
if (!o) return null;
|
|
69
|
-
const
|
|
69
|
+
const l = {
|
|
70
70
|
// [textColor, backgroundColor]
|
|
71
71
|
promo: [
|
|
72
72
|
t.tagTextPromo,
|
|
@@ -79,7 +79,7 @@ const { colors: t } = w, C = (param)=>{
|
|
|
79
79
|
inactive: [
|
|
80
80
|
t.tagTextInactive,
|
|
81
81
|
// TODO: remove logic for alternative variant (https://jira.tid.es/browse/WEB-1803)
|
|
82
|
-
|
|
82
|
+
d === "alternative" ? t.neutralLowAlternative : t.tagBackgroundInactive
|
|
83
83
|
],
|
|
84
84
|
success: [
|
|
85
85
|
t.tagTextSuccess,
|
|
@@ -93,20 +93,20 @@ const { colors: t } = w, C = (param)=>{
|
|
|
93
93
|
t.tagTextError,
|
|
94
94
|
t.tagBackgroundError
|
|
95
95
|
]
|
|
96
|
-
}, [n,
|
|
97
|
-
return /* @__PURE__ */ s("span", _object_spread_props(_object_spread({},
|
|
96
|
+
}, [n, u] = l[c];
|
|
97
|
+
return /* @__PURE__ */ s("span", _object_spread_props(_object_spread({}, h(g, "Tag")), {
|
|
98
98
|
className: A(k),
|
|
99
99
|
style: {
|
|
100
100
|
paddingLeft: e ? 8 : 12,
|
|
101
101
|
paddingRight: a !== 0 ? 8 : 12,
|
|
102
|
-
background:
|
|
102
|
+
background: u
|
|
103
103
|
},
|
|
104
104
|
children: [
|
|
105
|
-
e && /* @__PURE__ */ r(
|
|
105
|
+
e && /* @__PURE__ */ r(p, {
|
|
106
106
|
paddingRight: 4,
|
|
107
107
|
children: /* @__PURE__ */ r(e, {
|
|
108
108
|
color: n,
|
|
109
|
-
size:
|
|
109
|
+
size: v(16),
|
|
110
110
|
className: B
|
|
111
111
|
})
|
|
112
112
|
}),
|
|
@@ -117,12 +117,11 @@ const { colors: t } = w, C = (param)=>{
|
|
|
117
117
|
color: n,
|
|
118
118
|
size: 14,
|
|
119
119
|
lineHeight: 20,
|
|
120
|
-
weight:
|
|
120
|
+
weight: m.indicator.weight,
|
|
121
121
|
truncate: !0,
|
|
122
122
|
children: o
|
|
123
123
|
}),
|
|
124
|
-
a !== 0 && /* @__PURE__ */ r(
|
|
125
|
-
paddingLeft: 4,
|
|
124
|
+
a !== 0 && /* @__PURE__ */ r("div", {
|
|
126
125
|
className: b,
|
|
127
126
|
children: /* @__PURE__ */ r(V, {
|
|
128
127
|
value: a
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
mobileSize: 12,
|
|
3
|
+
mobileLineHeight: "16px",
|
|
4
|
+
desktopSize: 14,
|
|
5
|
+
desktopLineHeight: "20px"
|
|
6
|
+
}, i = {
|
|
7
|
+
mobileSize: 14,
|
|
8
|
+
mobileLineHeight: "20px",
|
|
9
|
+
desktopSize: 16,
|
|
10
|
+
desktopLineHeight: "24px"
|
|
11
|
+
}, t = {
|
|
12
|
+
mobileSize: 16,
|
|
13
|
+
mobileLineHeight: "24px",
|
|
14
|
+
desktopSize: 18,
|
|
15
|
+
desktopLineHeight: "24px"
|
|
16
|
+
}, o = {
|
|
17
|
+
mobileSize: 18,
|
|
18
|
+
mobileLineHeight: "24px",
|
|
19
|
+
desktopSize: 20,
|
|
20
|
+
desktopLineHeight: "28px"
|
|
21
|
+
}, p = {
|
|
22
|
+
mobileSize: 20,
|
|
23
|
+
mobileLineHeight: "24px",
|
|
24
|
+
desktopSize: 28,
|
|
25
|
+
desktopLineHeight: "32px"
|
|
26
|
+
}, x = {
|
|
27
|
+
mobileSize: 24,
|
|
28
|
+
mobileLineHeight: "32px",
|
|
29
|
+
desktopSize: 32,
|
|
30
|
+
desktopLineHeight: "40px"
|
|
31
|
+
}, n = {
|
|
32
|
+
mobileSize: 28,
|
|
33
|
+
mobileLineHeight: "32px",
|
|
34
|
+
desktopSize: 40,
|
|
35
|
+
desktopLineHeight: "48px"
|
|
36
|
+
}, s = {
|
|
37
|
+
mobileSize: 32,
|
|
38
|
+
mobileLineHeight: "40px",
|
|
39
|
+
desktopSize: 48,
|
|
40
|
+
desktopLineHeight: "56px"
|
|
41
|
+
}, b = {
|
|
42
|
+
mobileSize: 40,
|
|
43
|
+
mobileLineHeight: "48px",
|
|
44
|
+
desktopSize: 56,
|
|
45
|
+
desktopLineHeight: "64px"
|
|
46
|
+
}, d = {
|
|
47
|
+
mobileSize: 48,
|
|
48
|
+
mobileLineHeight: "56px",
|
|
49
|
+
desktopSize: 64,
|
|
50
|
+
desktopLineHeight: "72px"
|
|
51
|
+
};
|
|
52
|
+
export { e as text1, d as text10, i as text2, t as text3, o as text4, p as text5, x as text6, n as text7, s as text8, b as text9 };
|