@telefonica/mistica 16.2.0 → 16.3.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.
Files changed (51) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/card.css-mistica.js +33 -21
  3. package/dist/card.css.d.ts +4 -0
  4. package/dist/card.js +235 -263
  5. package/dist/chip.css-mistica.js +19 -7
  6. package/dist/chip.css.d.ts +2 -0
  7. package/dist/chip.js +33 -49
  8. package/dist/community/advanced-data-card.css-mistica.js +24 -24
  9. package/dist/community/advanced-data-card.css.d.ts +1 -1
  10. package/dist/community/advanced-data-card.js +45 -48
  11. package/dist/empty-state-card.js +12 -11
  12. package/dist/hero.js +25 -19
  13. package/dist/highlighted-card.js +15 -14
  14. package/dist/list.css-mistica.js +21 -15
  15. package/dist/list.css.d.ts +2 -0
  16. package/dist/list.js +97 -96
  17. package/dist/menu.css-mistica.js +9 -9
  18. package/dist/menu.js +9 -10
  19. package/dist/package-version.js +1 -1
  20. package/dist/sheet-common.js +3 -2
  21. package/dist/table.js +52 -51
  22. package/dist/tag.css-mistica.js +1 -1
  23. package/dist/tag.js +9 -10
  24. package/dist/text-props.d.ts +60 -0
  25. package/dist/text-props.js +93 -0
  26. package/dist/text.d.ts +0 -62
  27. package/dist/text.js +156 -219
  28. package/dist/title.js +10 -9
  29. package/dist-es/card.css-mistica.js +4 -4
  30. package/dist-es/card.js +343 -371
  31. package/dist-es/chip.css-mistica.js +10 -4
  32. package/dist-es/chip.js +44 -60
  33. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  34. package/dist-es/community/advanced-data-card.js +74 -77
  35. package/dist-es/empty-state-card.js +17 -16
  36. package/dist-es/hero.js +53 -47
  37. package/dist-es/highlighted-card.js +19 -18
  38. package/dist-es/list.css-mistica.js +2 -2
  39. package/dist-es/list.js +141 -140
  40. package/dist-es/menu.css-mistica.js +3 -3
  41. package/dist-es/menu.js +21 -22
  42. package/dist-es/package-version.js +1 -1
  43. package/dist-es/sheet-common.js +12 -11
  44. package/dist-es/style.css +1 -1
  45. package/dist-es/table.js +89 -88
  46. package/dist-es/tag.css-mistica.js +1 -1
  47. package/dist-es/tag.js +14 -15
  48. package/dist-es/text-props.js +52 -0
  49. package/dist-es/text.js +171 -231
  50. package/dist-es/title.js +14 -13
  51. package/package.json +3 -3
@@ -1,11 +1,17 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./chip.css.ts.vanilla.css-mistica.js";
3
- var c = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c", t = {
3
+ var f = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c", t = {
4
4
  light: "cc7htnd cc7htnb",
5
5
  dark: "cc7htne cc7htnb"
6
- }, f = {
6
+ }, c = {
7
7
  default: "cc7htn3 _1y2v1nfk1 _1y2v1nf3q _1y2v1nf26",
8
8
  overAlternative: "cc7htn3 _1y2v1nfk1 _1y2v1nf3y _1y2v1nf26",
9
9
  active: "cc7htna cc7htn4 cc7htn3 _1y2v1nfk1 _1y2v1nf1i _1y2v1nf6l"
10
- }, y = "_1y2v1nfhl _1y2v1nfht _1y2v1nfhz", _ = "cc7htnf", h = "cc7htng", a = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfht _1y2v1nfhz";
11
- export { c as button, t as chipInteractiveVariants, f as chipVariants, y as chipWrapper, _ as icon, h as iconActive, a as wrappedContent };
10
+ }, y = "_1y2v1nfhl _1y2v1nfht _1y2v1nfhz", a = "cc7htng _1y2v1nfba", _ = "cc7htni _1y2v1nfba", h = {
11
+ default: "_1y2v1nfad _1y2v1nfa9",
12
+ withIcon: "_1y2v1nfaa _1y2v1nfa6"
13
+ }, i = {
14
+ default: "_1y2v1nfbm _1y2v1nfbi",
15
+ withIcon: "_1y2v1nfbj _1y2v1nfbf"
16
+ }, r = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfht _1y2v1nfhz";
17
+ export { f as button, t as chipInteractiveVariants, c as chipVariants, y as chipWrapper, a as icon, _ as iconActive, h as leftPadding, i as rightPadding, r as wrappedContent };
package/dist-es/chip.js CHANGED
@@ -51,63 +51,49 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsxs as d, Fragment as C, jsx as t } from "react/jsx-runtime";
54
+ import { jsxs as d, Fragment as b, jsx as t } from "react/jsx-runtime";
55
55
  import m from "classnames";
56
- import { useTheme as V } from "./hooks.js";
56
+ import { useTheme as R } from "./hooks.js";
57
57
  import x from "./badge.js";
58
- import r from "./box.js";
59
- import { Text2 as z } from "./text.js";
60
- import D from "./generated/mistica-icons/icon-close-regular.js";
58
+ import V from "./box.js";
59
+ import { Text2 as k } from "./text.js";
60
+ import z from "./generated/mistica-icons/icon-close-regular.js";
61
61
  import { pxToRem as i } from "./utils/css.js";
62
- import { iconActive as M, icon as $, chipVariants as h, chipWrapper as u, button as F, wrappedContent as W, chipInteractiveVariants as q } from "./chip.css-mistica.js";
62
+ import { iconActive as M, icon as $, chipVariants as u, chipWrapper as h, leftPadding as n, rightPadding as f, button as F, wrappedContent as W, chipInteractiveVariants as q } from "./chip.css-mistica.js";
63
63
  import { vars as E } from "./skins/skin-contract.css-mistica.js";
64
64
  import { useThemeVariant as G } from "./theme-variant-context.js";
65
65
  import H, { BaseTouchable as J } from "./touchable.js";
66
66
  import { closeButtonLabel as K } from "./text-tokens.js";
67
+ import { getPrefixedDataAttributes as C } from "./utils/dom.js";
67
68
  const O = (e)=>{
68
- const { Icon: n, children: A, id: B, dataAttributes: R, active: a, badge: o, onClose: s, closeButtonLabel: T } = e, { texts: k, isDarkMode: I, textPresets: L, t: w } = V(), p = G() === "alternative", f = n ? {
69
- mobile: 16,
70
- desktop: 8
71
- } : {
72
- mobile: 20,
73
- desktop: 12
74
- }, y = {
75
- mobile: 20,
76
- desktop: 12
77
- }, g = {
78
- mobile: 16,
79
- desktop: 8
80
- }, b = /* @__PURE__ */ d(C, {
69
+ const { Icon: o, children: I, id: w, dataAttributes: A, active: a, badge: r, onClose: c, closeButtonLabel: B } = e, { texts: T, isDarkMode: P, textPresets: y, t: L } = R(), p = G() === "alternative", v = /* @__PURE__ */ d(b, {
81
70
  children: [
82
- n && /* @__PURE__ */ t(r, {
83
- paddingRight: 4,
71
+ o && /* @__PURE__ */ t("div", {
84
72
  className: a ? M : $,
85
- children: /* @__PURE__ */ t(n, {
73
+ children: /* @__PURE__ */ t(o, {
86
74
  color: "currentColor",
87
75
  size: i(16)
88
76
  })
89
77
  }),
90
- /* @__PURE__ */ t(r, {
91
- paddingRight: o ? 8 : s ? 4 : 0,
92
- children: /* @__PURE__ */ t(z, {
93
- id: B,
94
- weight: L.indicator.weight,
78
+ /* @__PURE__ */ t(V, {
79
+ paddingRight: r ? 8 : c ? 4 : 0,
80
+ children: /* @__PURE__ */ t(k, {
81
+ id: w,
82
+ weight: y.indicator.weight,
95
83
  truncate: 1,
96
84
  color: "currentColor",
97
- children: A
85
+ children: I
98
86
  })
99
87
  })
100
88
  ]
101
- }), c = _object_spread({
89
+ }), l = _object_spread({
102
90
  "component-name": "Chip"
103
- }, R);
104
- if (s) return /* @__PURE__ */ d(r, {
105
- className: m(p ? h.overAlternative : h.default, u),
106
- paddingLeft: f,
107
- paddingRight: g,
108
- dataAttributes: c,
91
+ }, A);
92
+ if (c) return /* @__PURE__ */ d("div", _object_spread_props(_object_spread({
93
+ className: m(p ? u.overAlternative : u.default, h, o ? n.withIcon : n.default, f.withIcon)
94
+ }, C(l)), {
109
95
  children: [
110
- b,
96
+ v,
111
97
  /* @__PURE__ */ t(H, {
112
98
  style: {
113
99
  display: "flex",
@@ -116,36 +102,34 @@ const O = (e)=>{
116
102
  width: i(24),
117
103
  height: i(24)
118
104
  },
119
- "aria-label": T || k.closeButtonLabel || w(K),
120
- onPress: ()=>s(),
121
- children: /* @__PURE__ */ t(D, {
105
+ "aria-label": B || T.closeButtonLabel || L(K),
106
+ onPress: ()=>c(),
107
+ children: /* @__PURE__ */ t(z, {
122
108
  size: i(16),
123
109
  color: E.colors.neutralMedium
124
110
  })
125
111
  })
126
112
  ]
127
- });
128
- const l = e.href || e.onPress || e.to, N = a !== void 0 || l, j = ()=>o ? /* @__PURE__ */ t(C, {
129
- children: o === !0 ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(x, {
130
- value: o
113
+ }));
114
+ const s = e.href || e.onPress || e.to, N = a !== void 0 || s, j = ()=>r ? /* @__PURE__ */ t(b, {
115
+ children: r === !0 ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(x, {
116
+ value: r
131
117
  })
132
- }) : null, v = (P)=>/* @__PURE__ */ d(r, {
133
- className: m(h[a ? "active" : p ? "overAlternative" : "default"], // If the chip is wrapped inside a BaseTouchable, we set inline-flex to the Touchable instead
134
- l ? W : u, {
135
- [q[I ? "dark" : "light"]]: N
136
- }),
137
- paddingLeft: f,
138
- paddingRight: o ? g : y,
139
- dataAttributes: P,
118
+ }) : null, g = (D)=>/* @__PURE__ */ d("div", _object_spread_props(_object_spread({
119
+ className: m(u[a ? "active" : p ? "overAlternative" : "default"], // If the chip is wrapped inside a BaseTouchable, we set inline-flex to the Touchable instead
120
+ s ? W : h, {
121
+ [q[P ? "dark" : "light"]]: N
122
+ }, o ? n.withIcon : n.default, r ? f.withIcon : f.default)
123
+ }, C(D)), {
140
124
  children: [
141
- b,
125
+ v,
142
126
  j()
143
127
  ]
144
- });
145
- return l ? /* @__PURE__ */ t(J, _object_spread_props(_object_spread({}, e), {
146
- className: m(u, F),
147
- dataAttributes: c,
148
- children: v()
149
- })) : v(c);
150
- }, at = O;
151
- export { at as default };
128
+ }));
129
+ return s ? /* @__PURE__ */ t(J, _object_spread_props(_object_spread({}, e), {
130
+ className: m(h, F),
131
+ dataAttributes: l,
132
+ children: g()
133
+ })) : g(l);
134
+ }, ct = O;
135
+ export { ct as default };
@@ -1,10 +1,10 @@
1
1
  import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "../icon-button.css.ts.vanilla.css-mistica.js";
3
3
  import "./advanced-data-card.css.ts.vanilla.css-mistica.js";
4
- var f = 216, n = "_1x00fru4 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhw _1y2v1nf97", _ = {
5
- default: "_1x00fruj",
6
- mobile: "_1x00fruk"
7
- }, t = "_1x00frus", o = "_1x00frun", u = "_1x00fruo _1x00frun", i = "_1x00fru8 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nf7m _1y2v1nf97", y = "_1y2v1nfhe _1y2v1nfio", x = "_1x00fruc _1y2v1nfhe _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhq", e = "_1x00fruh", h = "_1x00frur _1y2v1nfhk _1y2v1nfhp", d = "_1y2v1nfhz _1y2v1nfhk", c = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhz _1y2v1nfjt", b = "_1x00frul", m = "_1x00frut", p = "_1x00frua", s = "_1x00fru2 _1y2v1nfaa _1y2v1nfbj", g = "_1x00fruv", l = "_1x00fru5", k = "_1x00fru6", j = {
8
- topActionsCount: "var(--_1x00fruu)"
9
- }, C = "_1y2v1nf7s", H = "_1x00fru9";
10
- export { f as MIN_HEIGHT, n as actions, _ as actionsVariants, t as adjustButtonLink, o as button, u as buttonMobile, i as cardContentStyle, y as container, x as dataCard, e as divider, h as footerDirection, d as footerImage, c as footerText, b as marginRightAuto, m as marginRightButton, p as minHeight, s as paddingX, g as topActionsWithoutIcon, l as touchable, k as touchableCardHoverOverlay, j as vars, C as withPaddingTop, H as zindex };
4
+ var a = 216, _ = "_1x00fru4 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhw _1y2v1nf97", n = {
5
+ default: "_1x00fruk",
6
+ mobile: "_1x00frul"
7
+ }, t = "_1x00frut", o = "_1x00fruo", u = "_1x00frup _1x00fruo", y = "_1x00fru8 _1x00fru2 _1y2v1nfaa _1y2v1nfbj _1y2v1nf7m _1y2v1nf97", i = "_1y2v1nfhe _1y2v1nfio", x = "_1x00frud _1y2v1nfhe _1y2v1nfhk _1y2v1nfi6 _1y2v1nfhq", e = "_1x00frui", h = "_1x00frua _1y2v1nf7s _1y2v1nf97", d = "_1x00frus _1y2v1nfhk _1y2v1nfhp", b = "_1y2v1nfhz _1y2v1nfhk _1y2v1nfbj", c = "_1y2v1nfhk _1y2v1nfi6 _1y2v1nfhz _1y2v1nfjt", m = "_1x00frum", p = "_1x00fruu", s = "_1x00frub", g = "_1x00fru2 _1y2v1nfaa _1y2v1nfbj", l = "_1x00fruw", k = "_1x00fru5", j = "_1x00fru6", C = {
8
+ topActionsCount: "var(--_1x00fruv)"
9
+ }, H = "_1y2v1nf7s";
10
+ export { a as MIN_HEIGHT, _ as actions, n as actionsVariants, t as adjustButtonLink, o as button, u as buttonMobile, y as cardContentStyle, i as container, x as dataCard, e as divider, h as extra, d as footerDirection, b as footerImage, c as footerText, m as marginRightAuto, p as marginRightButton, s as minHeight, g as paddingX, l as topActionsWithoutIcon, k as touchable, j as touchableCardHoverOverlay, C as vars, H as withPaddingTop };
@@ -78,31 +78,32 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsxs as t, jsx as r, Fragment as Y } from "react/jsx-runtime";
82
- import * as _ from "react";
83
- import { Boxed as k } from "../boxed.js";
84
- import P from "../stack.js";
85
- import { container as q, dataCard as J, MIN_HEIGHT as K, touchable as Q, touchableCardHoverOverlay as U, cardContentStyle as Z, minHeight as $, topActionsWithoutIcon as L, zindex as rr, paddingX as tr, divider as er, actions as ar, actionsVariants as or, marginRightButton as ir, buttonMobile as H, footerDirection as sr, marginRightAuto as nr, withPaddingTop as dr, footerImage as cr, footerText as lr, adjustButtonLink as mr, button as hr, vars as pr } from "./advanced-data-card.css-mistica.js";
81
+ import { jsxs as e, jsx as r, Fragment as _ } from "react/jsx-runtime";
82
+ import * as k from "react";
83
+ import { Boxed as q } from "../boxed.js";
84
+ import S from "../stack.js";
85
+ import { container as z, dataCard as J, MIN_HEIGHT as K, touchable as Q, touchableCardHoverOverlay as U, cardContentStyle as Z, minHeight as L, topActionsWithoutIcon as $, extra as rr, paddingX as er, divider as tr, actions as ar, actionsVariants as or, marginRightButton as ir, buttonMobile as F, footerDirection as sr, marginRightAuto as nr, withPaddingTop as cr, footerImage as dr, footerText as lr, adjustButtonLink as mr, button as hr, vars as pr } from "./advanced-data-card.css-mistica.js";
86
86
  import { vars as ur } from "../image.css-mistica.js";
87
- import S from "../divider.js";
88
- import { Text2 as v, Text as fr, textProps as gr } from "../text.js";
87
+ import P from "../divider.js";
88
+ import { Text2 as g, Text as vr } from "../text.js";
89
+ import { text4 as fr } from "../text-props.js";
89
90
  import { vars as N } from "../skins/skin-contract.css-mistica.js";
90
- import y from "../box.js";
91
- import vr from "../touchable.js";
91
+ import H from "../box.js";
92
+ import gr from "../touchable.js";
92
93
  import u from "classnames";
93
94
  import { CardActionsGroup as Nr } from "../card.js";
94
95
  import { useTheme as yr } from "../hooks.js";
95
96
  import { getPrefixedDataAttributes as xr } from "../utils/dom.js";
96
97
  import Cr from "../inline.js";
97
98
  import { applyCssVars as j } from "../utils/css.js";
98
- const Tr = (param)=>{
99
- let { headline: a, pretitle: o, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: d = "h3", titleLinesMax: c, subtitle: l, subtitleLinesMax: i, description: e, descriptionLinesMax: h } = param;
100
- const { textPresets: x } = yr();
101
- return /* @__PURE__ */ t(P, {
99
+ const Ar = (param)=>{
100
+ let { headline: a, pretitle: o, pretitleAs: s = "p", pretitleLinesMax: m, title: n, titleAs: c = "h3", titleLinesMax: d, subtitle: l, subtitleLinesMax: i, description: t, descriptionLinesMax: h } = param;
101
+ const { textPresets: y } = yr();
102
+ return /* @__PURE__ */ e(S, {
102
103
  space: 4,
103
104
  children: [
104
105
  a,
105
- o && /* @__PURE__ */ r(v, {
106
+ o && /* @__PURE__ */ r(g, {
106
107
  color: N.colors.textPrimary,
107
108
  truncate: m,
108
109
  as: s,
@@ -110,14 +111,14 @@ const Tr = (param)=>{
110
111
  hyphens: "auto",
111
112
  children: o
112
113
  }),
113
- /* @__PURE__ */ r(fr, _object_spread_props(_object_spread({}, gr.text4), {
114
- truncate: c,
115
- weight: x.cardTitle.weight,
116
- as: d,
114
+ /* @__PURE__ */ r(vr, _object_spread_props(_object_spread({}, fr), {
115
+ truncate: d,
116
+ weight: y.cardTitle.weight,
117
+ as: c,
117
118
  hyphens: "auto",
118
119
  children: n
119
120
  })),
120
- /* @__PURE__ */ r(v, {
121
+ /* @__PURE__ */ r(g, {
121
122
  color: N.colors.textPrimary,
122
123
  truncate: i,
123
124
  as: "p",
@@ -125,38 +126,37 @@ const Tr = (param)=>{
125
126
  hyphens: "auto",
126
127
  children: l
127
128
  }),
128
- e && /* @__PURE__ */ r(v, {
129
+ t && /* @__PURE__ */ r(g, {
129
130
  truncate: h,
130
131
  as: "p",
131
132
  regular: !0,
132
133
  color: N.colors.textSecondary,
133
134
  hyphens: "auto",
134
- children: e
135
+ children: t
135
136
  })
136
137
  ]
137
138
  });
138
- }, Ar = (param)=>{
139
+ }, Tr = (param)=>{
139
140
  let { button: a, footerImage: o, footerText: s, footerTextLinesMax: m, buttonLink: n } = param;
140
- const d = !!a, c = !!o, l = !!s, i = !!n, e = d && (c || l) && i, h = i && !e ? "178px" : "";
141
- return /* @__PURE__ */ t(Y, {
141
+ const c = !!a, d = !!o, l = !!s, i = !!n, t = c && (d || l) && i, h = i && !t ? "178px" : "";
142
+ return /* @__PURE__ */ e(_, {
142
143
  children: [
143
144
  /* @__PURE__ */ r("div", {
144
- className: er,
145
- children: /* @__PURE__ */ r(S, {})
145
+ className: tr,
146
+ children: /* @__PURE__ */ r(P, {})
146
147
  }),
147
- /* @__PURE__ */ t("div", {
148
- className: u(ar, or[e ? "mobile" : "default"]),
148
+ /* @__PURE__ */ e("div", {
149
+ className: u(ar, or[t ? "mobile" : "default"]),
149
150
  children: [
150
- d && /* @__PURE__ */ r("div", {
151
- className: u(ir, H),
151
+ c && /* @__PURE__ */ r("div", {
152
+ className: u(ir, F),
152
153
  children: a
153
154
  }),
154
- /* @__PURE__ */ t("div", {
155
- className: u(sr, e ? nr : dr),
155
+ /* @__PURE__ */ e("div", {
156
+ className: u(sr, t ? nr : cr),
156
157
  children: [
157
- c && /* @__PURE__ */ r(y, {
158
- paddingRight: 16,
159
- className: cr,
158
+ d && /* @__PURE__ */ r("div", {
159
+ className: dr,
160
160
  children: /* @__PURE__ */ r("div", {
161
161
  style: j({
162
162
  [ur.mediaBorderRadius]: N.borderRadii.mediaSmall
@@ -169,7 +169,7 @@ const Tr = (param)=>{
169
169
  maxWidth: h
170
170
  },
171
171
  className: lr,
172
- children: /* @__PURE__ */ r(v, {
172
+ children: /* @__PURE__ */ r(g, {
173
173
  truncate: m,
174
174
  regular: !0,
175
175
  children: s
@@ -178,15 +178,15 @@ const Tr = (param)=>{
178
178
  ]
179
179
  }),
180
180
  i && /* @__PURE__ */ r("div", {
181
- className: u(mr, e ? hr : H),
181
+ className: u(mr, t ? hr : F),
182
182
  children: n
183
183
  })
184
184
  ]
185
185
  })
186
186
  ]
187
187
  });
188
- }, Br = /*#__PURE__*/ _.forwardRef((_param, W)=>{
189
- var { stackingGroup: a, headline: o, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: d, titleAs: c, titleLinesMax: l, subtitle: i, subtitleLinesMax: e, description: h, descriptionLinesMax: x, extra: p, extraDividerPadding: E = 24, noExtraDivider: G = !1, button: T, footerImage: A, footerText: B, footerTextLinesMax: M, buttonLink: b, dataAttributes: V, actions: f, "aria-label": w, onClose: R } = _param, g = _object_without_properties(_param, [
188
+ }, br = /*#__PURE__*/ k.forwardRef((_param, W)=>{
189
+ var { stackingGroup: a, headline: o, pretitle: s, pretitleAs: m, pretitleLinesMax: n, title: c, titleAs: d, titleLinesMax: l, subtitle: i, subtitleLinesMax: t, description: h, descriptionLinesMax: y, extra: p, extraDividerPadding: E = 24, noExtraDivider: G = !1, button: C, footerImage: A, footerText: T, footerTextLinesMax: M, buttonLink: b, dataAttributes: V, actions: v, "aria-label": B, onClose: w } = _param, f = _object_without_properties(_param, [
190
190
  "stackingGroup",
191
191
  "headline",
192
192
  "pretitle",
@@ -212,65 +212,65 @@ const Tr = (param)=>{
212
212
  "aria-label",
213
213
  "onClose"
214
214
  ]);
215
- const C = !!g.href || !!g.onPress || !!g.to, z = {
216
- button: T,
215
+ const x = !!f.href || !!f.onPress || !!f.to, O = {
216
+ button: C,
217
217
  footerImage: A,
218
- footerText: B,
218
+ footerText: T,
219
219
  footerTextLinesMax: M,
220
220
  buttonLink: b
221
- }, D = !!T || !!A || !!B || !!b, I = !!(p != null && p.length), O = ((f == null ? void 0 : f.length) || 0) + (R ? 1 : 0);
222
- return /* @__PURE__ */ t("section", _object_spread_props(_object_spread({
223
- className: q
221
+ }, D = !!C || !!A || !!T || !!b, I = !!(p != null && p.length), X = ((v == null ? void 0 : v.length) || 0) + (w ? 1 : 0);
222
+ return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({
223
+ className: z
224
224
  }, xr(V, "AdvancedDataCard")), {
225
225
  ref: W,
226
- "aria-label": C ? void 0 : w,
226
+ "aria-label": x ? void 0 : B,
227
227
  children: [
228
- /* @__PURE__ */ t(k, {
228
+ /* @__PURE__ */ e(q, {
229
229
  className: J,
230
230
  width: "100%",
231
231
  height: "100%",
232
232
  minHeight: K,
233
233
  children: [
234
- /* @__PURE__ */ t(vr, _object_spread_props(_object_spread({
234
+ /* @__PURE__ */ e(gr, _object_spread_props(_object_spread({
235
235
  maybe: !0
236
- }, g), {
237
- "aria-label": C ? w : void 0,
236
+ }, f), {
237
+ "aria-label": x ? B : void 0,
238
238
  className: Q,
239
239
  children: [
240
- C && /* @__PURE__ */ r("div", {
240
+ x && /* @__PURE__ */ r("div", {
241
241
  className: U
242
242
  }),
243
243
  /* @__PURE__ */ r("div", {
244
- className: u(Z, !D && !I ? $ : ""),
245
- children: /* @__PURE__ */ r(y, {
244
+ className: u(Z, !D && !I ? L : ""),
245
+ children: /* @__PURE__ */ r(H, {
246
246
  paddingTop: 8,
247
- children: /* @__PURE__ */ t(Cr, {
247
+ children: /* @__PURE__ */ e(Cr, {
248
248
  space: 0,
249
249
  children: [
250
- /* @__PURE__ */ t(P, {
250
+ /* @__PURE__ */ e(S, {
251
251
  space: 8,
252
252
  children: [
253
253
  a,
254
- /* @__PURE__ */ r(Tr, {
254
+ /* @__PURE__ */ r(Ar, {
255
255
  headline: o,
256
256
  pretitle: s,
257
257
  pretitleAs: m,
258
258
  pretitleLinesMax: n,
259
- title: d,
260
- titleAs: c,
259
+ title: c,
260
+ titleAs: d,
261
261
  titleLinesMax: l,
262
262
  subtitle: i,
263
- subtitleLinesMax: e,
263
+ subtitleLinesMax: t,
264
264
  description: h,
265
- descriptionLinesMax: x
265
+ descriptionLinesMax: y
266
266
  })
267
267
  ]
268
268
  }),
269
269
  !a && /* @__PURE__ */ r("div", {
270
270
  style: j({
271
- [pr.topActionsCount]: String(O)
271
+ [pr.topActionsCount]: String(X)
272
272
  }),
273
- className: L
273
+ className: $
274
274
  })
275
275
  ]
276
276
  })
@@ -281,34 +281,31 @@ const Tr = (param)=>{
281
281
  flexGrow: 1
282
282
  }
283
283
  }),
284
- I && /* @__PURE__ */ r(y, {
285
- paddingTop: 16,
286
- paddingBottom: 24,
287
- width: "100%",
284
+ I && /* @__PURE__ */ r("div", {
288
285
  className: rr,
289
- children: p.map((X, F)=>/* @__PURE__ */ t("div", {
286
+ children: p.map((Y, R)=>/* @__PURE__ */ e("div", {
290
287
  children: [
291
288
  /* @__PURE__ */ r("div", {
292
- className: tr,
293
- children: X
289
+ className: er,
290
+ children: Y
294
291
  }),
295
- F + 1 !== p.length && /* @__PURE__ */ r(y, {
292
+ R + 1 !== p.length && /* @__PURE__ */ r(H, {
296
293
  paddingY: E,
297
- children: !G && /* @__PURE__ */ r(S, {})
294
+ children: !G && /* @__PURE__ */ r(P, {})
298
295
  })
299
296
  ]
300
- }, F))
297
+ }, R))
301
298
  })
302
299
  ]
303
300
  })),
304
- D && /* @__PURE__ */ r(Ar, _object_spread({}, z))
301
+ D && /* @__PURE__ */ r(Tr, _object_spread({}, O))
305
302
  ]
306
303
  }),
307
304
  /* @__PURE__ */ r(Nr, {
308
- actions: f,
309
- onClose: R
305
+ actions: v,
306
+ onClose: w
310
307
  })
311
308
  ]
312
309
  }));
313
- }), Or = Br;
314
- export { Br as AdvancedDataCard, Or as default };
310
+ }), Yr = br;
311
+ export { br as AdvancedDataCard, Yr as default };
@@ -51,25 +51,26 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as r, jsxs as l } from "react/jsx-runtime";
54
+ import { jsx as r, jsxs as s } from "react/jsx-runtime";
55
55
  import p from "./box.js";
56
56
  import { Boxed as S } from "./boxed.js";
57
57
  import { useTheme as y } from "./hooks.js";
58
58
  import c from "./stack.js";
59
- import { Text as E, textProps as N, Text2 as u } from "./text.js";
59
+ import { Text as E, Text2 as N } from "./text.js";
60
+ import { text4 as u } from "./text-props.js";
60
61
  import B from "./button-group.js";
61
62
  import { container as C, assetContainer as T, image as k } from "./empty-state-card.css-mistica.js";
62
63
  import { vars as v } from "./skins/skin-contract.css-mistica.js";
63
64
  const j = (param)=>{
64
- let { title: d, titleAs: n = "h3", description: h, button: e, secondaryButton: t, buttonLink: o, asset: a, imageUrl: i, "aria-label": f, dataAttributes: x } = param;
65
- var s;
65
+ let { title: d, titleAs: n = "h3", description: f, button: e, secondaryButton: o, buttonLink: t, asset: a, imageUrl: i, "aria-label": h, dataAttributes: x } = param;
66
+ var l;
66
67
  const { textPresets: g } = y();
67
68
  let m;
68
69
  return i && (m = /* @__PURE__ */ r("img", {
69
70
  className: k,
70
71
  alt: "",
71
72
  src: i
72
- })), process.env.NODE_ENV !== "production" && e && !((s = e == null ? void 0 : e.props) != null && s.small) && console.error("button property in EmptyStateCard must be a a small Button. Set small prop to true"), /* @__PURE__ */ r(S, {
73
+ })), process.env.NODE_ENV !== "production" && e && !((l = e == null ? void 0 : e.props) != null && l.small) && console.error("button property in EmptyStateCard must be a a small Button. Set small prop to true"), /* @__PURE__ */ r(S, {
73
74
  dataAttributes: x,
74
75
  children: /* @__PURE__ */ r(p, {
75
76
  paddingY: {
@@ -82,8 +83,8 @@ const j = (param)=>{
82
83
  },
83
84
  children: /* @__PURE__ */ r("section", {
84
85
  className: C,
85
- "aria-label": f,
86
- children: /* @__PURE__ */ l(c, {
86
+ "aria-label": h,
87
+ children: /* @__PURE__ */ s(c, {
87
88
  space: 16,
88
89
  children: [
89
90
  m !== null && m !== void 0 ? m : a && /* @__PURE__ */ r("div", {
@@ -91,31 +92,31 @@ const j = (param)=>{
91
92
  children: a
92
93
  }),
93
94
  /* @__PURE__ */ r(p, {
94
- children: /* @__PURE__ */ l(c, {
95
+ children: /* @__PURE__ */ s(c, {
95
96
  space: 8,
96
97
  children: [
97
- /* @__PURE__ */ r(E, _object_spread_props(_object_spread({}, N.text4), {
98
+ /* @__PURE__ */ r(E, _object_spread_props(_object_spread({}, u), {
98
99
  weight: g.cardTitle.weight,
99
100
  as: n,
100
101
  children: d
101
102
  })),
102
- /* @__PURE__ */ r(u, {
103
+ /* @__PURE__ */ r(N, {
103
104
  regular: !0,
104
105
  color: v.colors.textSecondary,
105
- children: h
106
+ children: f
106
107
  })
107
108
  ]
108
109
  })
109
110
  }),
110
- (e || t || o) && /* @__PURE__ */ r(B, {
111
+ (e || o || t) && /* @__PURE__ */ r(B, {
111
112
  primaryButton: e,
112
- secondaryButton: t,
113
- link: o
113
+ secondaryButton: o,
114
+ link: t
114
115
  })
115
116
  ]
116
117
  })
117
118
  })
118
119
  })
119
120
  });
120
- }, _ = j;
121
- export { _ as default };
121
+ }, q = j;
122
+ export { q as default };