@telefonica/mistica 16.1.0 → 16.2.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 (148) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +12 -9
  3. package/dist/accordion.css.d.ts +1 -0
  4. package/dist/accordion.js +36 -39
  5. package/dist/align.css-mistica.js +12 -0
  6. package/dist/align.css.d.ts +1 -0
  7. package/dist/align.css.ts.vanilla.css-mistica.js +11 -0
  8. package/dist/align.d.ts +12 -0
  9. package/dist/align.js +79 -0
  10. package/dist/box.css-mistica.js +41 -0
  11. package/dist/box.css.d.ts +23 -0
  12. package/dist/box.css.ts.vanilla.css-mistica.js +11 -0
  13. package/dist/box.d.ts +4 -0
  14. package/dist/box.js +39 -31
  15. package/dist/boxed.css-mistica.js +10 -5
  16. package/dist/boxed.css.d.ts +3 -0
  17. package/dist/boxed.js +20 -24
  18. package/dist/callout.css-mistica.js +12 -4
  19. package/dist/callout.css.d.ts +1 -0
  20. package/dist/callout.js +14 -22
  21. package/dist/card.css-mistica.js +26 -23
  22. package/dist/card.css.d.ts +1 -0
  23. package/dist/card.js +17 -23
  24. package/dist/community/advanced-data-card.css-mistica.js +32 -23
  25. package/dist/community/advanced-data-card.css.d.ts +3 -0
  26. package/dist/community/advanced-data-card.js +46 -55
  27. package/dist/empty-state.css-mistica.js +11 -8
  28. package/dist/empty-state.css.d.ts +1 -0
  29. package/dist/empty-state.js +10 -13
  30. package/dist/form.css-mistica.js +12 -0
  31. package/dist/form.css.d.ts +1 -0
  32. package/dist/form.js +8 -10
  33. package/dist/grid.css-mistica.js +143 -126
  34. package/dist/grid.css.d.ts +13 -0
  35. package/dist/grid.js +35 -38
  36. package/dist/hero.css-mistica.js +14 -8
  37. package/dist/hero.css.d.ts +2 -0
  38. package/dist/hero.js +17 -25
  39. package/dist/image.js +23 -25
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +4 -0
  42. package/dist/inline.js +10 -11
  43. package/dist/list.css-mistica.js +12 -9
  44. package/dist/list.css.d.ts +1 -0
  45. package/dist/list.js +43 -46
  46. package/dist/loading-screen.js +16 -16
  47. package/dist/logo-blau.d.ts +1 -1
  48. package/dist/logo-blau.js +10 -10
  49. package/dist/logo-common.d.ts +1 -0
  50. package/dist/logo-movistar.d.ts +1 -1
  51. package/dist/logo-movistar.js +4 -4
  52. package/dist/logo-o2-new.d.ts +1 -1
  53. package/dist/logo-o2-new.js +5 -5
  54. package/dist/logo-o2.d.ts +1 -1
  55. package/dist/logo-o2.js +5 -5
  56. package/dist/logo-telefonica.d.ts +1 -1
  57. package/dist/logo-telefonica.js +4 -4
  58. package/dist/logo-tu.d.ts +1 -1
  59. package/dist/logo-tu.js +5 -5
  60. package/dist/logo-vivo.d.ts +1 -1
  61. package/dist/logo-vivo.js +7 -7
  62. package/dist/logo.d.ts +9 -8
  63. package/dist/logo.js +125 -102
  64. package/dist/navigation-bar.css-mistica.js +23 -20
  65. package/dist/navigation-bar.css.d.ts +1 -0
  66. package/dist/navigation-bar.js +30 -37
  67. package/dist/package-version.js +1 -1
  68. package/dist/phone-number-field.d.ts +1 -4
  69. package/dist/phone-number-field.js +52 -82
  70. package/dist/popover.d.ts +1 -0
  71. package/dist/popover.js +9 -10
  72. package/dist/sheet-common.css-mistica.js +5 -5
  73. package/dist/skeleton-base.js +10 -12
  74. package/dist/skeletons.css-mistica.js +11 -5
  75. package/dist/skeletons.css.d.ts +1 -0
  76. package/dist/snackbar.css-mistica.js +20 -14
  77. package/dist/snackbar.css.d.ts +3 -1
  78. package/dist/snackbar.js +65 -75
  79. package/dist/tag.css-mistica.js +15 -4
  80. package/dist/tag.css.d.ts +2 -0
  81. package/dist/tag.js +20 -24
  82. package/dist/text-field-base.d.ts +1 -1
  83. package/dist/text-field-components.css-mistica.js +16 -10
  84. package/dist/text-field-components.css.d.ts +1 -0
  85. package/dist/text-field-components.js +32 -35
  86. package/dist/timer.js +42 -43
  87. package/dist/tooltip.d.ts +3 -1
  88. package/dist/tooltip.js +106 -106
  89. package/dist/touchable.js +47 -42
  90. package/dist-es/accordion.css-mistica.js +3 -3
  91. package/dist-es/accordion.js +58 -61
  92. package/dist-es/align.css-mistica.js +3 -0
  93. package/dist-es/align.css.ts.vanilla.css-mistica.js +2 -0
  94. package/dist-es/align.js +70 -0
  95. package/dist-es/box.css-mistica.js +24 -0
  96. package/dist-es/box.css.ts.vanilla.css-mistica.js +2 -0
  97. package/dist-es/box.js +43 -35
  98. package/dist-es/boxed.css-mistica.js +5 -3
  99. package/dist-es/boxed.js +28 -32
  100. package/dist-es/callout.css-mistica.js +7 -2
  101. package/dist-es/callout.js +44 -52
  102. package/dist-es/card.css-mistica.js +4 -4
  103. package/dist-es/card.js +11 -17
  104. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  105. package/dist-es/community/advanced-data-card.js +90 -99
  106. package/dist-es/empty-state.css-mistica.js +3 -3
  107. package/dist-es/empty-state.js +19 -22
  108. package/dist-es/form.css-mistica.js +3 -0
  109. package/dist-es/form.js +12 -14
  110. package/dist-es/grid.css-mistica.js +123 -112
  111. package/dist-es/grid.js +38 -41
  112. package/dist-es/hero.css-mistica.js +2 -2
  113. package/dist-es/hero.js +36 -44
  114. package/dist-es/image.js +28 -30
  115. package/dist-es/index.js +1844 -1843
  116. package/dist-es/inline.js +19 -20
  117. package/dist-es/list.css-mistica.js +2 -2
  118. package/dist-es/list.js +75 -78
  119. package/dist-es/loading-screen.js +30 -30
  120. package/dist-es/logo-blau.js +11 -11
  121. package/dist-es/logo-movistar.js +5 -5
  122. package/dist-es/logo-o2-new.js +8 -8
  123. package/dist-es/logo-o2.js +8 -8
  124. package/dist-es/logo-telefonica.js +4 -4
  125. package/dist-es/logo-tu.js +8 -8
  126. package/dist-es/logo-vivo.js +16 -16
  127. package/dist-es/logo.js +132 -109
  128. package/dist-es/navigation-bar.css-mistica.js +11 -11
  129. package/dist-es/navigation-bar.js +80 -87
  130. package/dist-es/package-version.js +1 -1
  131. package/dist-es/phone-number-field.js +59 -89
  132. package/dist-es/popover.js +17 -18
  133. package/dist-es/sheet-common.css-mistica.js +2 -2
  134. package/dist-es/skeleton-base.js +15 -17
  135. package/dist-es/skeletons.css-mistica.js +5 -2
  136. package/dist-es/snackbar.css-mistica.js +4 -4
  137. package/dist-es/snackbar.js +93 -103
  138. package/dist-es/style.css +1 -1
  139. package/dist-es/tag.css-mistica.js +2 -2
  140. package/dist-es/tag.js +34 -38
  141. package/dist-es/text-field-components.css-mistica.js +5 -2
  142. package/dist-es/text-field-components.js +48 -51
  143. package/dist-es/timer.js +80 -81
  144. package/dist-es/tooltip.js +148 -148
  145. package/dist-es/touchable.js +55 -50
  146. package/package.json +1 -1
  147. package/dist/sprinkles.css-mistica.js +0 -2494
  148. package/dist-es/sprinkles.css-mistica.js +0 -2485
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
8
8
  return o;
9
9
  }
10
10
  });
11
- const o = "16.1.0";
11
+ const o = "16.2.0";
@@ -1,13 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import type { CommonFormFieldProps } from './text-field-base';
3
- import type { RegionCode } from './utils/region-code';
4
- type NumberFormatter = (number: string, regionCode: RegionCode) => string;
5
3
  export interface PhoneNumberFieldProps extends CommonFormFieldProps {
6
4
  onChangeValue?: (value: string, rawValue: string) => void;
7
5
  prefix?: string;
8
6
  getSuggestions?: (value: string) => Array<string>;
9
7
  e164?: boolean;
10
- format?: NumberFormatter;
11
8
  }
12
- declare const PhoneNumberField: ({ disabled, error, helperText, name, label, optional, validate, onChange, onChangeValue, onBlur, value, defaultValue, dataAttributes, format, e164, ...rest }: PhoneNumberFieldProps) => JSX.Element;
9
+ declare const PhoneNumberField: ({ disabled, error, helperText, name, label, optional, validate, onChange, onChangeValue, onBlur, value, defaultValue, e164, dataAttributes, ...rest }: PhoneNumberFieldProps) => JSX.Element;
13
10
  export default PhoneNumberField;
@@ -6,12 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return z;
9
+ return K;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
13
13
  const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
14
14
  const _rifm = require("rifm");
15
+ const _libphonenumber = require("@telefonica/libphonenumber");
15
16
  const _formcontext = require("./form-context.js");
16
17
  const _textfieldbase = require("./text-field-base.js");
17
18
  const _hooks = require("./hooks.js");
@@ -137,74 +138,47 @@ function _object_without_properties_loose(source, excluded) {
137
138
  }
138
139
  return target;
139
140
  }
140
- let f;
141
- const D = (o)=>o, I = (o, c)=>f.formatAsYouType(o.replace(/[^\d+*#]/g, ""), c), Z = (o)=>!!o.match(/^\+\d+$/), $ = (_param)=>{
142
- var { inputRef: o, value: c, defaultValue: R, onChange: m, prefix: s, e164: E, format: l } = _param, y = _object_without_properties(_param, [
141
+ const F = (r, n)=>(0, _libphonenumber.formatAsYouType)(n.replace(/[^\d+*#]/g, ""), r), j = (r)=>!!r.match(/^\+\d+$/), I = (_param)=>{
142
+ var { inputRef: r, value: n, defaultValue: f, onChange: s, prefix: o, e164: R } = _param, d = _object_without_properties(_param, [
143
143
  "inputRef",
144
144
  "value",
145
145
  "defaultValue",
146
146
  "onChange",
147
147
  "prefix",
148
- "e164",
149
- "format"
150
- ]);
151
- const [N, P] = _react.useState(R !== null && R !== void 0 ? R : ""), p = _react.useRef(null), { i18n: V } = (0, _hooks.useTheme)(), i = _react.useRef(l || D), [d, b] = _react.useState(!1), u = V.phoneNumberFormattingRegionCode, h = typeof c < "u", x = h ? c : N, a = _react.useRef(m);
152
- _react.useEffect(()=>{
153
- a.current = m;
154
- }, [
155
- m
156
- ]), _react.useEffect(()=>{
157
- l ? i.current = l : Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("@telefonica/libphonenumber"))).then((e)=>{
158
- f = e, i.current = I, b(!0);
159
- });
160
- }, [
161
- l
148
+ "e164"
162
149
  ]);
163
- const g = _react.useCallback((e)=>{
164
- var t;
165
- h || P(e), p.current && ((t = a.current) == null || t.call(a, (0, _dom.createChangeEvent)(p.current, e)));
150
+ const [g, h] = _react.useState(f !== null && f !== void 0 ? f : ""), c = _react.useRef(null), { i18n: C } = (0, _hooks.useTheme)(), i = C.phoneNumberFormattingRegionCode, l = typeof n < "u", P = l ? n : g, u = _react.useCallback((e)=>{
151
+ l || h(e), c.current && (s == null || s((0, _dom.createChangeEvent)(c.current, e)));
166
152
  }, [
167
- h
168
- ]), C = _react.useCallback(// otherwise the cursor position is incorrectly positioned
153
+ l,
154
+ s
155
+ ]), b = _react.useCallback(// otherwise the cursor position is incorrectly positioned
169
156
  // also note the "@" is replaced back to "-" in `replace` param in `useRifm`
170
157
  (e)=>{
171
158
  let t = "";
172
- if (s && Z(s)) {
173
- const v = s + e;
174
- t = i.current(v, u), t.startsWith(s) ? t = t.slice(s.length).trim() : t = i.current(e, u);
175
- } else t = i.current(e, u);
159
+ if (o && j(o)) {
160
+ const a = o + e;
161
+ t = F(i, a), t.startsWith(o) ? t = t.slice(o.length).trim() : t = F(i, e);
162
+ } else t = F(i, e);
176
163
  return t.replace(/-/g, "@");
177
164
  }, [
178
- u,
179
- s
180
- ]), r = (0, _rifm.useRifm)({
181
- format: C,
182
- value: x,
183
- // Instead of calling `handleChangeValue` here, we call it in `useEffect` below.
184
- // When the formatter changes (libphonenumber is lazy loaded), rifm should call `onChange`
185
- // with the new formatted value but it doesn't, so we need to call it manually.
186
- onChange: ()=>{},
165
+ i,
166
+ o
167
+ ]), y = (0, _rifm.useRifm)({
168
+ format: b,
169
+ value: P,
170
+ onChange: u,
187
171
  accept: /[\d\-+#*]+/g,
188
172
  replace: (e)=>e.replace(/@/g, "-")
189
173
  });
190
- return _react.useEffect(()=>{
191
- g(r.value);
192
- }, [
193
- r.value,
194
- g
195
- ]), /* @__PURE__ */ (0, _jsxruntime.jsx)("input", _object_spread_props(_object_spread({}, y), {
196
- value: r.value,
197
- onChange: r.onChange,
174
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("input", _object_spread_props(_object_spread({}, d), {
175
+ value: y.value,
176
+ onChange: y.onChange,
198
177
  type: "tel",
199
- ref: (0, _common.combineRefs)(o, p),
200
- "data-using-libphonenumber": d
178
+ ref: (0, _common.combineRefs)(r, c)
201
179
  }));
202
- }, j = (_param)=>{
203
- var { disabled: o, error: c, helperText: R, name: m, label: s, optional: E, validate: l, onChange: y, onChangeValue: N, onBlur: P, value: p, defaultValue: V, dataAttributes: i, /**
204
- * By default this component will use google's libphonenumber library to format numbers.
205
- * The component will load libphonenumber on demand, so it won't impact the initial load time.
206
- * You can opt-out of using libphonenumber by providing a custom formatter.
207
- */ format: d, /** enabling e164 is incompatible with custom formatters because this requires libphonenumber */ e164: b } = _param, u = _object_without_properties(_param, [
180
+ }, W = (_param)=>{
181
+ var { disabled: r, error: n, helperText: f, name: s, label: o, optional: R, validate: d, onChange: g, onChangeValue: h, onBlur: c, value: C, defaultValue: i, e164: l, dataAttributes: P } = _param, u = _object_without_properties(_param, [
208
182
  "disabled",
209
183
  "error",
210
184
  "helperText",
@@ -217,46 +191,42 @@ const D = (o)=>o, I = (o, c)=>f.formatAsYouType(o.replace(/[^\d+*#]/g, ""), c),
217
191
  "onBlur",
218
192
  "value",
219
193
  "defaultValue",
220
- "dataAttributes",
221
- "format",
222
- "e164"
194
+ "e164",
195
+ "dataAttributes"
223
196
  ]);
224
- const { i18n: h } = (0, _hooks.useTheme)();
225
- process.env.NODE_ENV !== "production" && b && d && console.error("[PhoneNumberField] enabling e164 is incompatible with custom formatters");
226
- const a = (0, _formcontext.useFieldProps)({
227
- name: m,
228
- label: s,
229
- value: p,
230
- defaultValue: V,
231
- processValue: (g)=>{
232
- if (b && f && !d) try {
197
+ const { i18n: b } = (0, _hooks.useTheme)(), e = (0, _formcontext.useFieldProps)({
198
+ name: s,
199
+ label: o,
200
+ value: C,
201
+ defaultValue: i,
202
+ processValue: (t)=>{
203
+ if (l) try {
233
204
  var _u_prefix;
234
- const C = ((_u_prefix = u.prefix) !== null && _u_prefix !== void 0 ? _u_prefix : "").replace(/[^\d]/g, "");
235
- let r = f.getRegionCodeForCountryCode(C);
236
- return (!r || r === "ZZ") && (r = h.phoneNumberFormattingRegionCode), f.formatToE164(f.parse(g, r));
205
+ const a = ((_u_prefix = u.prefix) !== null && _u_prefix !== void 0 ? _u_prefix : "").replace(/[^\d]/g, "");
206
+ let m = (0, _libphonenumber.getRegionCodeForCountryCode)(a);
207
+ return (!m || m === "ZZ") && (m = b.phoneNumberFormattingRegionCode), (0, _libphonenumber.formatToE164)((0, _libphonenumber.parse)(t, m));
237
208
  } catch (e) {
238
209
  return "";
239
210
  }
240
- else return g.replace(/[^\d]/g, "");
211
+ else return t.replace(/[^\d]/g, "");
241
212
  },
242
- helperText: R,
243
- optional: E,
244
- error: c,
245
- disabled: o,
246
- onBlur: P,
247
- validate: l,
248
- onChange: y,
249
- onChangeValue: N
213
+ helperText: f,
214
+ optional: R,
215
+ error: n,
216
+ disabled: r,
217
+ onBlur: c,
218
+ validate: d,
219
+ onChange: g,
220
+ onChangeValue: h
250
221
  });
251
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_textfieldbase.TextFieldBaseAutosuggest, _object_spread_props(_object_spread({}, u, a), {
222
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_textfieldbase.TextFieldBaseAutosuggest, _object_spread_props(_object_spread({}, u, e), {
252
223
  type: "phone",
253
224
  inputProps: {
254
- prefix: u.prefix,
255
- format: d
225
+ prefix: u.prefix
256
226
  },
257
- inputComponent: $,
227
+ inputComponent: I,
258
228
  dataAttributes: _object_spread({
259
229
  "component-name": "PhoneNumberField"
260
- }, i)
230
+ }, P)
261
231
  }));
262
- }, z = j;
232
+ }, K = W;
package/dist/popover.d.ts CHANGED
@@ -4,6 +4,7 @@ type Position = 'top' | 'bottom' | 'left' | 'right';
4
4
  type Props = {
5
5
  description?: string;
6
6
  target: React.ReactNode;
7
+ targetStyle?: React.CSSProperties;
7
8
  title?: string;
8
9
  asset?: React.ReactNode;
9
10
  onClose?: () => void;
package/dist/popover.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return N;
9
+ return A;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -14,7 +14,6 @@ const _tooltip = require("./tooltip.js");
14
14
  const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
15
15
  const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
16
16
  const _text = require("./text.js");
17
- const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
18
17
  const _popovercssmistica = require("./popover.css-mistica.js");
19
18
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
20
19
  const _iconbuttoncssmistica = require("./icon-button.css-mistica.js");
@@ -78,8 +77,8 @@ function _object_without_properties_loose(source, excluded) {
78
77
  }
79
78
  return target;
80
79
  }
81
- const T = (_param)=>{
82
- var { open: a, extra: m, children: c, onClose: i = ()=>{}, closeButtonLabel: l, dataAttributes: p, trackingEvent: s, title: o, description: e, asset: n } = _param, f = _object_without_properties(_param, [
80
+ const S = (_param)=>{
81
+ var { open: a, extra: c, children: i, onClose: l = ()=>{}, closeButtonLabel: m, dataAttributes: p, trackingEvent: s, title: o, description: e, asset: n } = _param, d = _object_without_properties(_param, [
83
82
  "open",
84
83
  "extra",
85
84
  "children",
@@ -92,7 +91,7 @@ const T = (_param)=>{
92
91
  "asset"
93
92
  ]);
94
93
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_tooltip.BaseTooltip, _object_spread({
95
- content: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
94
+ content: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
96
95
  className: _popovercssmistica.content,
97
96
  children: [
98
97
  (o || e || n) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
@@ -120,18 +119,18 @@ const T = (_param)=>{
120
119
  ]
121
120
  })
122
121
  }),
123
- m !== null && m !== void 0 ? m : c
122
+ c !== null && c !== void 0 ? c : i
124
123
  ]
125
124
  }),
126
125
  centerContent: !1,
127
126
  open: a,
128
127
  hasPointerInteractionOnly: !0,
129
128
  delay: !1,
130
- onClose: i,
131
- closeButtonLabel: l,
129
+ onClose: l,
130
+ closeButtonLabel: m,
132
131
  trackingEvent: s,
133
132
  dataAttributes: _object_spread({
134
133
  "component-name": "Popover"
135
134
  }, p)
136
- }, f));
137
- }, N = T;
135
+ }, d));
136
+ }, A = S;
@@ -22,10 +22,10 @@ _export(exports, {
22
22
  return e;
23
23
  },
24
24
  children: function() {
25
- return r;
25
+ return i;
26
26
  },
27
27
  closingOverlay: function() {
28
- return i;
28
+ return r;
29
29
  },
30
30
  closingSheet: function() {
31
31
  return a;
@@ -40,13 +40,13 @@ _export(exports, {
40
40
  return l;
41
41
  },
42
42
  overlay: function() {
43
- return o;
43
+ return p;
44
44
  },
45
45
  stickyButtons: function() {
46
46
  return m;
47
47
  },
48
48
  stickyTitle: function() {
49
- return p;
49
+ return o;
50
50
  },
51
51
  transitionDuration: function() {
52
52
  return d;
@@ -54,4 +54,4 @@ _export(exports, {
54
54
  });
55
55
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
56
56
  require("./sheet-common.css.ts.vanilla.css-mistica.js");
57
- var f = "pidemf6 _1y2v1nf3p", y = "pidemf4 _1y2v1nfhg _1y2v1nfl6 _1y2v1nfll _1y2v1nfm0", _ = "pidemf9 _1y2v1nf81 _1y2v1nfhk _1y2v1nfhq", e = "pidemfo", r = "_1y2v1nfkq _1y2v1nfi6 _1y2v1nfhk _1y2v1nfhq", i = "pidemfl", a = "pidemf7", t = "_1y2v1nf4y _1y2v1nfig _1y2v1nfir _1y2v1nfk4", h = "pidemfc _1y2v1nf7m _1y2v1nf8v _1y2v1nfhf _1y2v1nfkr _1y2v1nfj1 _1y2v1nfi7 _1y2v1nfhk _1y2v1nfht", l = "pidemff _1y2v1nf7y _1y2v1nf97 _1y2v1nfag _1y2v1nfbp _1y2v1nfhf _1y2v1nfkr _1y2v1nfll", o = "pidemfk _1y2v1nfhg _1y2v1nf41 _1y2v1nfkr _1y2v1nfl6 _1y2v1nfll _1y2v1nfm0", m = "_1y2v1nfhi _1y2v1nfm0 _1y2v1nf3p", p = "_1y2v1nfhi _1y2v1nfkr _1y2v1nf3p", d = 400;
57
+ var f = "pidemf6 _1y2v1nf3p", y = "pidemf4 _1y2v1nfhg _1y2v1nfl6 _1y2v1nfll _1y2v1nfm0", _ = "pidemf9 _1y2v1nf81 _1y2v1nfhk _1y2v1nfhq", e = "pidemfq", i = "_1y2v1nfkq _1y2v1nfi6 _1y2v1nfhk _1y2v1nfhq", r = "pidemfl", a = "pidemf7", t = "_1y2v1nf4y _1y2v1nfig _1y2v1nfir _1y2v1nfk4", h = "pidemfc _1y2v1nf7m _1y2v1nf8v _1y2v1nfhf _1y2v1nfkr _1y2v1nfj1 _1y2v1nfi7 _1y2v1nfhk _1y2v1nfht", l = "pidemff _1y2v1nf7y _1y2v1nf97 _1y2v1nfag _1y2v1nfbp _1y2v1nfhf _1y2v1nfkr _1y2v1nfll", p = "pidemfk _1y2v1nfhg _1y2v1nf41 _1y2v1nfkr _1y2v1nfl6 _1y2v1nfll _1y2v1nfm0", m = "pidemfp _1y2v1nfhi _1y2v1nfm0 _1y2v1nf3p", o = "pidemfn _1y2v1nfhi _1y2v1nfkr _1y2v1nf3p", d = 400;
@@ -6,31 +6,29 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "default", {
7
7
  enumerable: true,
8
8
  get: function() {
9
- return v;
9
+ return k;
10
10
  }
11
11
  });
12
12
  const _jsxruntime = require("react/jsx-runtime");
13
13
  const _themevariantcontext = require("./theme-variant-context.js");
14
14
  const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
15
- const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
15
+ const _skeletonscssmistica = require("./skeletons.css-mistica.js");
16
16
  const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
17
17
  function _interop_require_default(obj) {
18
18
  return obj && obj.__esModule ? obj : {
19
19
  default: obj
20
20
  };
21
21
  }
22
- const c = (param)=>{
23
- let { width: e = "100%", height: o = 8, radius: s = _skincontractcssmistica.vars.borderRadii.container, className: a, noBorderRadius: n = !1 } = param;
24
- const t = (0, _themevariantcontext.useIsInverseOrMediaVariant)();
22
+ const l = (param)=>{
23
+ let { width: r = "100%", height: s = 8, radius: a = _skincontractcssmistica.vars.borderRadii.container, className: o, noBorderRadius: t = !1 } = param;
24
+ const i = (0, _themevariantcontext.useIsInverseOrMediaVariant)();
25
25
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
26
- className: (0, _classnames.default)(a, (0, _sprinklescssmistica.sprinkles)({
27
- background: t ? _skincontractcssmistica.vars.colors.backgroundSkeletonInverse : _skincontractcssmistica.vars.colors.backgroundSkeleton
28
- })),
26
+ className: (0, _classnames.default)(o, i ? _skeletonscssmistica.background.inverse : _skeletonscssmistica.background.default),
29
27
  style: {
30
- borderRadius: n ? 0 : s,
31
- width: e,
32
- height: o
28
+ borderRadius: t ? 0 : a,
29
+ width: r,
30
+ height: s
33
31
  },
34
32
  "aria-hidden": !0
35
33
  });
36
- }, v = c;
34
+ }, k = l;
@@ -10,18 +10,24 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  animation: function() {
13
- return i;
13
+ return r;
14
+ },
15
+ background: function() {
16
+ return a;
14
17
  },
15
18
  circle: function() {
16
- return o;
19
+ return f;
17
20
  },
18
21
  line: function() {
19
- return r;
22
+ return i;
20
23
  },
21
24
  row: function() {
22
- return f;
25
+ return o;
23
26
  }
24
27
  });
25
28
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
26
29
  require("./skeletons.css.ts.vanilla.css-mistica.js");
27
- var i = "zopolw2 _1y2v1nfhm", o = "_1y2v1nfi2 _1y2v1nfi4", r = "zopolw6 _1y2v1nfi3", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht";
30
+ var r = "zopolw6 _1y2v1nfhm", a = {
31
+ default: "_1y2v1nf42",
32
+ inverse: "_1y2v1nf43"
33
+ }, f = "_1y2v1nfi2 _1y2v1nfi4", i = "zopolwa _1y2v1nfi3", o = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht";
@@ -1,3 +1,4 @@
1
+ export declare const background: Record<"inverse" | "default", string>;
1
2
  export declare const animation: string;
2
3
  export declare const row: string;
3
4
  export declare const circle: string;
@@ -13,45 +13,51 @@ _export(exports, {
13
13
  return f;
14
14
  },
15
15
  button: function() {
16
- return r;
17
- },
18
- content: function() {
19
16
  return _;
20
17
  },
21
- dismissButton: function() {
18
+ buttonTouchable: function() {
22
19
  return y;
23
20
  },
21
+ contentWithLongButton: function() {
22
+ return o;
23
+ },
24
+ contentWithoutLongButton: function() {
25
+ return r;
26
+ },
27
+ dismissButton: function() {
28
+ return t;
29
+ },
24
30
  dismissIcon: function() {
25
31
  return a;
26
32
  },
27
33
  longButton: function() {
28
- return o;
34
+ return h;
29
35
  },
30
36
  snackbar: function() {
31
37
  return b;
32
38
  },
33
39
  snackbarContainer: function() {
34
- return t;
40
+ return e;
35
41
  },
36
42
  snackbarOpen: function() {
37
- return h;
43
+ return i;
38
44
  },
39
45
  wrapper: function() {
40
- return e;
46
+ return p;
41
47
  },
42
48
  wrapperCritical: function() {
43
- return p;
49
+ return k;
44
50
  },
45
51
  wrapperInfo: function() {
46
- return i;
52
+ return c;
47
53
  },
48
54
  wrapperOpen: function() {
49
- return k;
55
+ return j;
50
56
  }
51
57
  });
52
58
  require("./sprinkles.css.ts.vanilla.css-mistica.js");
53
59
  require("./snackbar.css.ts.vanilla.css-mistica.js");
54
- var f = 300, r = "o7bjb0c", _ = "_1y2v1nfhk _1y2v1nfhw", y = {
55
- centered: "o7bjb0g _1y2v1nfhk _1y2v1nfhf _1y2v1nfhz _1y2v1nfht _1y2v1nflo",
60
+ var f = 300, _ = "o7bjb0g", y = "_1y2v1nf7j _1y2v1nf8s _1y2v1nfa4 _1y2v1nfbd _1y2v1nfk2 _1y2v1nf7c", o = "_1y2v1nfhk _1y2v1nfhw _1y2v1nfhq", r = "_1y2v1nfhk _1y2v1nfhw _1y2v1nfhp _1y2v1nfhz", t = {
61
+ centered: "o7bjb0l _1y2v1nfhk _1y2v1nfhf _1y2v1nfhz _1y2v1nfht _1y2v1nflo",
56
62
  topRight: "_1y2v1nfhk _1y2v1nfhf _1y2v1nfhz _1y2v1nfht _1y2v1nflo _1y2v1nfku"
57
- }, a = "o7bjb0j _1y2v1nfih _1y2v1nfix _1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfk3", o = "o7bjb0d", b = "o7bjb01 _1y2v1nfi7 _1y2v1nfhk _1y2v1nfht", t = "o7bjb03 _1y2v1nfhe", h = "o7bjb04", e = "o7bjb06 _1y2v1nfhg _1y2v1nfkd", p = "_1y2v1nf5e", i = "_1y2v1nf5f", k = "o7bjb09";
63
+ }, a = "o7bjb0o _1y2v1nfih _1y2v1nfix _1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfk3", h = "o7bjb0h", b = "o7bjb01 _1y2v1nfi7 _1y2v1nfhk _1y2v1nfht", e = "o7bjb03 _1y2v1nfhe", i = "o7bjb04", p = "o7bjb06 _1y2v1nfhg _1y2v1nfkd", k = "_1y2v1nf5e", c = "_1y2v1nf5f", j = "o7bjb09";
@@ -6,9 +6,11 @@ export declare const wrapper: string;
6
6
  export declare const wrapperCritical: string;
7
7
  export declare const wrapperInfo: string;
8
8
  export declare const wrapperOpen: string;
9
- export declare const content: string;
9
+ export declare const contentWithLongButton: string;
10
+ export declare const contentWithoutLongButton: string;
10
11
  export declare const textContainer: string;
11
12
  export declare const button: string;
12
13
  export declare const longButton: string;
14
+ export declare const buttonTouchable: string;
13
15
  export declare const dismissButton: Record<"centered" | "topRight", string>;
14
16
  export declare const dismissIcon: string;