@telefonica/mistica 14.31.1 → 14.32.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.
@@ -10,10 +10,10 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  AdvancedDataCard: function() {
13
- return ve;
13
+ return Ne;
14
14
  },
15
15
  default: function() {
16
- return Oe;
16
+ return je;
17
17
  }
18
18
  });
19
19
  const _jsxruntime = require("react/jsx-runtime");
@@ -128,58 +128,101 @@ function _object_spread_props(target, source) {
128
128
  }
129
129
  return target;
130
130
  }
131
- const ge = (param)=>{
132
- let { headline: i , pretitle: a , pretitleAs: n = "p" , pretitleLinesMax: h , title: s , titleAs: c = "h3" , titleLinesMax: d , subtitle: l , subtitleLinesMax: o , description: r , descriptionLinesMax: m } = param;
133
- const { textPresets: N } = (0, _hooks.useTheme)();
131
+ function _object_without_properties(source, excluded) {
132
+ if (source == null) return {};
133
+ var target = _object_without_properties_loose(source, excluded);
134
+ var key, i;
135
+ if (Object.getOwnPropertySymbols) {
136
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
137
+ for(i = 0; i < sourceSymbolKeys.length; i++){
138
+ key = sourceSymbolKeys[i];
139
+ if (excluded.indexOf(key) >= 0) continue;
140
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
141
+ target[key] = source[key];
142
+ }
143
+ }
144
+ return target;
145
+ }
146
+ function _object_without_properties_loose(source, excluded) {
147
+ if (source == null) return {};
148
+ var target = {};
149
+ var sourceKeys = Object.keys(source);
150
+ var key, i;
151
+ for(i = 0; i < sourceKeys.length; i++){
152
+ key = sourceKeys[i];
153
+ if (excluded.indexOf(key) >= 0) continue;
154
+ target[key] = source[key];
155
+ }
156
+ return target;
157
+ }
158
+ const fe = (_param)=>{
159
+ var { headline: a , pretitle: i , pretitleAs: s = "p" , pretitleLinesMax: p , title: d , titleAs: c = "h3" , titleLinesMax: l , subtitle: h , subtitleLinesMax: o , description: t , descriptionLinesMax: u , ariaLabel: x } = _param, n = _object_without_properties(_param, [
160
+ "headline",
161
+ "pretitle",
162
+ "pretitleAs",
163
+ "pretitleLinesMax",
164
+ "title",
165
+ "titleAs",
166
+ "titleLinesMax",
167
+ "subtitle",
168
+ "subtitleLinesMax",
169
+ "description",
170
+ "descriptionLinesMax",
171
+ "ariaLabel"
172
+ ]);
173
+ const { textPresets: y } = (0, _hooks.useTheme)();
134
174
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
135
175
  space: 4,
136
176
  children: [
137
- i,
138
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
139
- space: 4,
140
- children: [
141
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
142
- color: _skincontractcssmistica.vars.colors.textPrimary,
143
- truncate: h,
144
- as: n,
145
- regular: !0,
146
- hyphens: "auto",
147
- children: a
148
- }),
149
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
150
- mobileSize: 18,
151
- mobileLineHeight: "24px",
152
- desktopSize: 20,
153
- desktopLineHeight: "28px",
154
- truncate: d,
155
- weight: N.cardTitle.weight,
156
- as: c,
157
- hyphens: "auto",
158
- children: s
159
- }),
160
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
161
- color: _skincontractcssmistica.vars.colors.textPrimary,
162
- truncate: o,
163
- as: "p",
164
- regular: !0,
165
- hyphens: "auto",
166
- children: l
167
- })
168
- ]
177
+ a,
178
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.default, _object_spread_props(_object_spread({
179
+ tabIndex: 0,
180
+ maybe: !0,
181
+ className: (0, _classnames.default)(_advanceddatacardcssmistica.touchableArea)
182
+ }, n), {
183
+ "aria-label": x,
184
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {})
185
+ })),
186
+ i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
187
+ color: _skincontractcssmistica.vars.colors.textPrimary,
188
+ truncate: p,
189
+ as: s,
190
+ regular: !0,
191
+ hyphens: "auto",
192
+ children: i
169
193
  }),
170
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
171
- truncate: m,
194
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, {
195
+ mobileSize: 18,
196
+ mobileLineHeight: "24px",
197
+ desktopSize: 20,
198
+ desktopLineHeight: "28px",
199
+ truncate: l,
200
+ weight: y.cardTitle.weight,
201
+ as: c,
202
+ hyphens: "auto",
203
+ children: d
204
+ }),
205
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
206
+ color: _skincontractcssmistica.vars.colors.textPrimary,
207
+ truncate: o,
208
+ as: "p",
209
+ regular: !0,
210
+ hyphens: "auto",
211
+ children: h
212
+ }),
213
+ t && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
214
+ truncate: u,
172
215
  as: "p",
173
216
  regular: !0,
174
217
  color: _skincontractcssmistica.vars.colors.textSecondary,
175
218
  hyphens: "auto",
176
- children: r
219
+ children: t
177
220
  })
178
221
  ]
179
222
  });
180
- }, fe = (param)=>{
181
- let { button: i , footerImage: a , footerText: n , footerTextLinesMax: h , buttonLink: s } = param;
182
- const c = !!i, d = !!a, l = !!n, o = !!s, r = c && (d || l) && o, m = o && !r ? "178px" : "";
223
+ }, ve = (param)=>{
224
+ let { button: a , footerImage: i , footerText: s , footerTextLinesMax: p , buttonLink: d } = param;
225
+ const c = !!a, l = !!i, h = !!s, o = !!d, t = c && (l || h) && o, u = o && !t ? "178px" : "";
183
226
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
184
227
  children: [
185
228
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
@@ -187,148 +230,166 @@ const ge = (param)=>{
187
230
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
188
231
  }),
189
232
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
190
- className: (0, _classnames.default)(_advanceddatacardcssmistica.actions, _advanceddatacardcssmistica.actionsVariants[r ? "mobile" : "default"]),
233
+ className: (0, _classnames.default)(_advanceddatacardcssmistica.actions, _advanceddatacardcssmistica.actionsVariants[t ? "mobile" : "default"]),
191
234
  children: [
192
235
  c && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
193
236
  className: (0, _classnames.default)(_advanceddatacardcssmistica.marginRightButton, _advanceddatacardcssmistica.buttonMobile),
194
- children: i
237
+ children: a
195
238
  }),
196
239
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
197
- className: (0, _classnames.default)(_advanceddatacardcssmistica.footerDirection, r ? _advanceddatacardcssmistica.marginRightAuto : (0, _sprinklescssmistica.sprinkles)({
240
+ className: (0, _classnames.default)(_advanceddatacardcssmistica.footerDirection, t ? _advanceddatacardcssmistica.marginRightAuto : (0, _sprinklescssmistica.sprinkles)({
198
241
  paddingTop: 16
199
242
  })),
200
243
  children: [
201
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
244
+ l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
202
245
  paddingRight: 16,
203
246
  className: (0, _sprinklescssmistica.sprinkles)({
204
247
  alignItems: "center",
205
248
  display: "flex"
206
249
  }),
207
- children: a
250
+ children: i
208
251
  }),
209
- l && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
252
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
210
253
  style: {
211
- maxWidth: m
254
+ maxWidth: u
212
255
  },
213
256
  className: _advanceddatacardcssmistica.footerText,
214
257
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
215
- truncate: h,
258
+ truncate: p,
216
259
  regular: !0,
217
- children: n
260
+ children: s
218
261
  })
219
262
  })
220
263
  ]
221
264
  }),
222
265
  o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
223
- className: (0, _classnames.default)(_advanceddatacardcssmistica.adjustButtonLink, r ? _advanceddatacardcssmistica.button : _advanceddatacardcssmistica.buttonMobile),
224
- children: s
266
+ className: (0, _classnames.default)(_advanceddatacardcssmistica.adjustButtonLink, t ? _advanceddatacardcssmistica.button : _advanceddatacardcssmistica.buttonMobile),
267
+ children: d
225
268
  })
226
269
  ]
227
270
  })
228
271
  ]
229
272
  });
230
- }, ve = /*#__PURE__*/ _react.forwardRef((param, _)=>{
231
- let { onPress: i , stackingGroup: a , headline: n , pretitle: h , pretitleAs: s , pretitleLinesMax: c , title: d , titleAs: l , titleLinesMax: o , subtitle: r , subtitleLinesMax: m , description: N , descriptionLinesMax: P , extra: p , extraDividerPadding: O = 24 , button: b , footerImage: C , footerText: A , footerTextLinesMax: j , buttonLink: B , dataAttributes: k , actions: g , "aria-label": H , onClose: S } = param;
232
- const z = !!i, E = {
233
- button: b,
234
- footerImage: C,
235
- footerText: A,
236
- footerTextLinesMax: j,
237
- buttonLink: B
238
- }, w = !!b || !!C || !!A || !!B, D = !!(p != null && p.length), L = ((g == null ? void 0 : g.length) || 0) + (S ? 1 : 0), W = {
273
+ }, Ne = /*#__PURE__*/ _react.forwardRef((_param, _)=>{
274
+ var { stackingGroup: a , headline: i , pretitle: s , pretitleAs: p , pretitleLinesMax: d , title: c , titleAs: l , titleLinesMax: h , subtitle: o , subtitleLinesMax: t , description: u , descriptionLinesMax: x , extra: n , extraDividerPadding: y = 24 , button: A , footerImage: b , footerText: B , footerTextLinesMax: z , buttonLink: S , dataAttributes: H , actions: g , "aria-label": w , onClose: D } = _param, f = _object_without_properties(_param, [
275
+ "stackingGroup",
276
+ "headline",
277
+ "pretitle",
278
+ "pretitleAs",
279
+ "pretitleLinesMax",
280
+ "title",
281
+ "titleAs",
282
+ "titleLinesMax",
283
+ "subtitle",
284
+ "subtitleLinesMax",
285
+ "description",
286
+ "descriptionLinesMax",
287
+ "extra",
288
+ "extraDividerPadding",
289
+ "button",
290
+ "footerImage",
291
+ "footerText",
292
+ "footerTextLinesMax",
293
+ "buttonLink",
294
+ "dataAttributes",
295
+ "actions",
296
+ "aria-label",
297
+ "onClose"
298
+ ]);
299
+ const E = !!f.href || !!f.onPress || !!f.to, W = {
300
+ button: A,
301
+ footerImage: b,
302
+ footerText: B,
303
+ footerTextLinesMax: z,
304
+ buttonLink: S
305
+ }, I = !!A || !!b || !!B || !!S, R = !!(n != null && n.length), G = ((g == null ? void 0 : g.length) || 0) + (D ? 1 : 0), L = {
239
306
  marginRight: -16,
240
307
  marginTop: -24,
241
- width: _card.TOP_ACTION_BUTTON_SIZE * L
308
+ width: _card.TOP_ACTION_BUTTON_SIZE * G
242
309
  };
243
310
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({
244
311
  className: (0, _sprinklescssmistica.sprinkles)({
245
312
  position: "relative",
246
313
  height: "100%"
247
314
  })
248
- }, (0, _dom.getPrefixedDataAttributes)(k, "AdvancedDataCard")), {
315
+ }, (0, _dom.getPrefixedDataAttributes)(H, "AdvancedDataCard")), {
249
316
  ref: _,
317
+ "aria-label": w,
250
318
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
251
319
  className: _advanceddatacardcssmistica.dataCard,
252
320
  children: [
253
321
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
254
322
  className: _advanceddatacardcssmistica.touchableContainer,
255
323
  children: [
256
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.default, {
257
- onPress: i,
258
- tabIndex: 0,
259
- maybe: !0,
260
- className: _advanceddatacardcssmistica.touchable,
261
- "aria-label": H,
262
- children: [
263
- z && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
264
- className: _advanceddatacardcssmistica.touchableCardOverlay
265
- }),
266
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
267
- className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !w && !D ? _advanceddatacardcssmistica.minHeight : ""),
268
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
269
- paddingTop: 8,
270
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
271
- space: 0,
324
+ E && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
325
+ className: _advanceddatacardcssmistica.touchableCardOverlay
326
+ }),
327
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
328
+ className: (0, _classnames.default)(_advanceddatacardcssmistica.cardContentStyle, !I && !R ? _advanceddatacardcssmistica.minHeight : ""),
329
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
330
+ paddingTop: 8,
331
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
332
+ space: 0,
333
+ children: [
334
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
335
+ space: 8,
272
336
  children: [
273
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
274
- space: 8,
275
- children: [
276
- a,
277
- /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
278
- headline: n,
279
- pretitle: h,
280
- pretitleAs: s,
281
- pretitleLinesMax: c,
282
- title: d,
283
- titleAs: l,
284
- titleLinesMax: o,
285
- subtitle: r,
286
- subtitleLinesMax: m,
287
- description: N,
288
- descriptionLinesMax: P
289
- })
290
- ]
291
- }),
292
- !a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
293
- style: W
294
- })
337
+ a,
338
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(fe, _object_spread({
339
+ headline: i,
340
+ pretitle: s,
341
+ pretitleAs: p,
342
+ pretitleLinesMax: d,
343
+ title: c,
344
+ titleAs: l,
345
+ titleLinesMax: h,
346
+ subtitle: o,
347
+ subtitleLinesMax: t,
348
+ description: u,
349
+ descriptionLinesMax: x,
350
+ ariaLabel: w
351
+ }, f))
295
352
  ]
353
+ }),
354
+ !a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
355
+ style: L
296
356
  })
297
- })
298
- }),
299
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
300
- style: {
301
- flexGrow: 1
302
- }
303
- }),
304
- D && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
305
- paddingTop: 16,
306
- paddingBottom: 24,
307
- width: "100%",
308
- children: p.map((G, I)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
309
- children: [
310
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
311
- className: _advanceddatacardcssmistica.paddingX,
312
- children: G
313
- }),
314
- I + 1 !== p.length && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
315
- paddingY: O,
316
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
317
- })
318
- ]
319
- }, I))
357
+ ]
320
358
  })
321
- ]
359
+ })
360
+ }),
361
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
362
+ style: {
363
+ flexGrow: 1
364
+ }
365
+ }),
366
+ R && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
367
+ paddingTop: 16,
368
+ paddingBottom: 24,
369
+ width: "100%",
370
+ className: _advanceddatacardcssmistica.zindex,
371
+ children: n.map((M, F)=>/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
372
+ children: [
373
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
374
+ className: _advanceddatacardcssmistica.paddingX,
375
+ children: M
376
+ }),
377
+ F + 1 !== n.length && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
378
+ paddingY: y,
379
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_divider.default, {})
380
+ })
381
+ ]
382
+ }, F))
322
383
  }),
323
384
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_card.CardActionsGroup, {
324
385
  actions: g,
325
- onClose: S,
386
+ onClose: D,
326
387
  padding: 7
327
388
  })
328
389
  ]
329
390
  }),
330
- w && /* @__PURE__ */ (0, _jsxruntime.jsx)(fe, _object_spread({}, E))
391
+ I && /* @__PURE__ */ (0, _jsxruntime.jsx)(ve, _object_spread({}, W))
331
392
  ]
332
393
  })
333
394
  }));
334
- }), Oe = ve;
395
+ }), je = Ne;
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
8
8
  return o;
9
9
  }
10
10
  });
11
- const o = "14.31.1";
11
+ const o = "14.32.1";
@@ -13,7 +13,7 @@ _export(exports, {
13
13
  return W;
14
14
  },
15
15
  TextFieldBaseAutosuggest: function() {
16
- return Ge;
16
+ return De;
17
17
  }
18
18
  });
19
19
  const _jsxruntime = require("react/jsx-runtime");
@@ -151,8 +151,8 @@ function _object_without_properties_loose(source, excluded) {
151
151
  }
152
152
  return target;
153
153
  }
154
- const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
155
- var { error: c , helperText: T , label: n , inputProps: m , inputRef: y , defaultValue: o , value: t , onFocus: u , onBlur: S , inputComponent: h , prefix: g , startIcon: e , endIcon: a , endIconOverlay: L , shrinkLabel: z , multiline: x = !1 , focus: C , fieldRef: D , maxLength: p , id: G , autoComplete: H , fullWidth: K } = _param, r = _object_without_properties(_param, [
154
+ const W = /*#__PURE__*/ _react.forwardRef((_param, H)=>{
155
+ var { error: c , helperText: T , label: n , inputProps: m , inputRef: y , defaultValue: o , value: t , onFocus: u , onBlur: S , inputComponent: g , prefix: h , startIcon: e , endIcon: a , endIconOverlay: L , shrinkLabel: B , multiline: x = !1 , focus: C , fieldRef: j , maxLength: p , id: z , autoComplete: D , fullWidth: G } = _param, r = _object_without_properties(_param, [
156
156
  "error",
157
157
  "helperText",
158
158
  "label",
@@ -177,11 +177,11 @@ const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
177
177
  "fullWidth"
178
178
  ]);
179
179
  var _ref;
180
- const F = (0, _hooks.useAriaId)(G), [f, d] = _react.useState(o != null && o.length || t != null && t.length ? "filled" : "default"), { isTabletOrSmaller: J } = (0, _hooks.useScreenSize)(), [Q, N] = _react.useState((_ref = o == null ? void 0 : o.length) !== null && _ref !== void 0 ? _ref : 0), E = !!n || !r.required, U = (0, _hooks.useTheme)(), w = z || (r.type === "date" || r.type === "datetime-local" || r.type === "month") && !r.required, [X, Y] = _react.useState("baseline");
180
+ const N = (0, _hooks.useAriaId)(z), [f, d] = _react.useState(o != null && o.length || t != null && t.length ? "filled" : "default"), { isTabletOrSmaller: K } = (0, _hooks.useScreenSize)(), [M, O] = _react.useState((_ref = o == null ? void 0 : o.length) !== null && _ref !== void 0 ? _ref : 0), E = !!n || !r.required, w = B || (r.type === "date" || r.type === "datetime-local" || r.type === "month") && !r.required, [J, Q] = _react.useState("baseline");
181
181
  (0, _hooks.useIsomorphicLayoutEffect)(()=>{
182
- (0, _platform.isSafari)() && Y("initial");
182
+ (0, _platform.isSafari)() && Q("initial");
183
183
  }, []), _react.useEffect(()=>{
184
- f !== "focused" && t != null && t.length && (N(t.length), d("filled")), C && d("focused"), C === !1 && !(t != null && t.length) && d("default"), C === !1 && t != null && t.length && d("filled");
184
+ f !== "focused" && t != null && t.length && (O(t.length), d("filled")), C && d("focused"), C === !1 && !(t != null && t.length) && d("default"), C === !1 && t != null && t.length && d("filled");
185
185
  }, [
186
186
  f,
187
187
  t,
@@ -191,64 +191,64 @@ const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
191
191
  }, [
192
192
  r.autoFocus
193
193
  ]);
194
- const Z = x ? "textarea" : "input", $ = h ? {
194
+ const U = x ? "textarea" : "input", X = g ? {
195
195
  inputRef: y
196
196
  } : {
197
- ref: (0, _common.combineRefs)(M, y)
197
+ ref: (0, _common.combineRefs)(H, y)
198
198
  }, b = _object_spread(_object_spread_props(_object_spread({}, r), {
199
199
  maxLength: p,
200
- autoComplete: H
201
- }), m), P = w || f === "focused" || f === "filled", v = P ? J ? _textfieldcomponentscssmistica.LABEL_SCALE_MOBILE : _textfieldcomponentscssmistica.LABEL_SCALE_DESKTOP : 1, V = {
200
+ autoComplete: D
201
+ }), m), P = w || f === "focused" || f === "filled", Y = P ? K ? _textfieldcomponentscssmistica.LABEL_SCALE_MOBILE : _textfieldcomponentscssmistica.LABEL_SCALE_DESKTOP : 1, Z = {
202
202
  left: e ? 48 : _textfieldcomponentscssmistica.LABEL_LEFT_POSITION,
203
203
  // shrinking means applying a scale transformation, so width will be proportionally reduced.
204
204
  // Let's keep the original width.
205
- width: `calc(((100% - ${_textfieldcomponentscssmistica.LABEL_LEFT_POSITION + (e ? 48 : _textfieldcomponentscssmistica.LABEL_LEFT_POSITION)}px)) / ${v})`,
205
+ width: `calc(((100% - ${_textfieldcomponentscssmistica.LABEL_LEFT_POSITION + (e ? 48 : _textfieldcomponentscssmistica.LABEL_LEFT_POSITION)}px)) / ${Y})`,
206
206
  paddingRight: a && !P ? 36 : 0
207
207
  }, k = (0, _sprinklescssmistica.sprinkles)({
208
208
  paddingRight: a ? 0 : 16,
209
- paddingLeft: g ? 0 : e ? 48 : 12
210
- }), ee = r.type === "password" && !(0, _platform.isRunningAcceptanceTest)(U.platformOverrides) ? "Lucida Grande, Arial, sans-serif" : "inherit";
209
+ paddingLeft: h ? 0 : e ? 48 : 12
210
+ }), $ = r.type === "password" ? "Lucida Grande, Arial, sans-serif" : "inherit";
211
211
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_textfieldcomponents.FieldContainer, {
212
212
  disabled: r.disabled,
213
213
  helperText: /* @__PURE__ */ (0, _jsxruntime.jsx)(_textfieldcomponents.HelperText, {
214
214
  error: c,
215
215
  leftText: T,
216
- rightText: x && p ? `${Q}/${p}` : void 0
216
+ rightText: x && p ? `${M}/${p}` : void 0
217
217
  }),
218
218
  multiline: x,
219
- fullWidth: K,
220
- fieldRef: D,
219
+ fullWidth: G,
220
+ fieldRef: j,
221
221
  readOnly: r.readOnly,
222
222
  children: [
223
223
  e && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
224
224
  className: _textfieldbasecssmistica.startIcon,
225
225
  children: e
226
226
  }),
227
- g && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
227
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
228
228
  className: (0, _classnames.default)(_textfieldbasecssmistica.prefix, E ? _textfieldbasecssmistica.prefixWithLabel : _textfieldbasecssmistica.prefixWithoutLabel),
229
229
  style: {
230
230
  opacity: f === "default" ? 0 : 1,
231
- alignSelf: X
231
+ alignSelf: J
232
232
  },
233
233
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
234
234
  color: _skincontractcssmistica.vars.colors.textSecondary,
235
235
  regular: !0,
236
236
  wordBreak: !1,
237
- children: g
237
+ children: h
238
238
  })
239
239
  }),
240
240
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
241
241
  className: _textfieldbasecssmistica.fullWidth,
242
242
  style: {
243
- alignSelf: g ? "baseline" : "initial"
243
+ alignSelf: h ? "baseline" : "initial"
244
244
  },
245
245
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
246
246
  as: "div",
247
247
  regular: !0,
248
- children: /*#__PURE__*/ _react.createElement(h || Z, _object_spread(_object_spread_props(_object_spread({}, $, b), {
249
- id: F,
248
+ children: /*#__PURE__*/ _react.createElement(g || U, _object_spread(_object_spread_props(_object_spread({}, X, b), {
249
+ id: N,
250
250
  style: _object_spread_props(_object_spread({}, b.style), {
251
- fontFamily: ee
251
+ fontFamily: $
252
252
  }),
253
253
  className: x ? (0, _classnames.default)(_textfieldbasecssmistica.textArea, E ? _textfieldbasecssmistica.textAreaWithLabel : _textfieldbasecssmistica.textAreaWithoutLabel, k) : (0, _classnames.default)(_textfieldbasecssmistica.input, E ? _textfieldbasecssmistica.inputWithLabel : _textfieldbasecssmistica.inputWithoutLabel, k, {
254
254
  [_textfieldbasecssmistica.inputFirefoxStyles]: (0, _platform.isFirefox)()
@@ -261,7 +261,7 @@ const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
261
261
  },
262
262
  onChange: (l)=>{
263
263
  var _;
264
- p === void 0 || l.target.value.length <= p ? (N(l.target.value.length), l.target.value.length > 0 && f !== "focused" && d("filled"), (_ = b.onChange) == null || _.call(b, l)) : (l.stopPropagation(), l.preventDefault());
264
+ p === void 0 || l.target.value.length <= p ? (O(l.target.value.length), l.target.value.length > 0 && f !== "focused" && d("filled"), (_ = b.onChange) == null || _.call(b, l)) : (l.stopPropagation(), l.preventDefault());
265
265
  },
266
266
  defaultValue: o,
267
267
  value: t
@@ -271,9 +271,9 @@ const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
271
271
  })
272
272
  }),
273
273
  n && /* @__PURE__ */ (0, _jsxruntime.jsx)(_textfieldcomponents.Label, {
274
- style: V,
274
+ style: Z,
275
275
  error: c,
276
- forId: F,
276
+ forId: N,
277
277
  inputState: f,
278
278
  shrinkLabel: w,
279
279
  optional: !r.required,
@@ -286,24 +286,24 @@ const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
286
286
  L
287
287
  ]
288
288
  });
289
- }), Oe = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "react-autosuggest" */ "react-autosuggest")))), Ge = /*#__PURE__*/ _react.forwardRef((_param, m)=>{
289
+ }), Ie = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require(/* webpackChunkName: "react-autosuggest" */ "react-autosuggest")))), De = /*#__PURE__*/ _react.forwardRef((_param, m)=>{
290
290
  var { getSuggestions: c , id: T } = _param, n = _object_without_properties(_param, [
291
291
  "getSuggestions",
292
292
  "id"
293
293
  ]);
294
- const [y, o] = _react.useState([]), t = _react.useRef(null), { platformOverrides: u , texts: S } = (0, _hooks.useTheme)(), h = (0, _hooks.useAriaId)(T), g = (0, _hooks.useAriaId)();
294
+ const [y, o] = _react.useState([]), t = _react.useRef(null), { platformOverrides: u , texts: S } = (0, _hooks.useTheme)(), g = (0, _hooks.useAriaId)(T), h = (0, _hooks.useAriaId)();
295
295
  if (c && (n.value === void 0 || n.defaultValue !== void 0)) throw Error("Fields with suggestions must be used in controlled mode");
296
296
  return c ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_react.Suspense, {
297
297
  fallback: /* @__PURE__ */ (0, _jsxruntime.jsx)(W, _object_spread_props(_object_spread({}, n), {
298
298
  label: (0, _platform.isRunningAcceptanceTest)(u) ? "" : n.label,
299
299
  autoComplete: "off",
300
300
  ref: m,
301
- id: h
301
+ id: g
302
302
  })),
303
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Oe, {
304
- id: g,
303
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Ie, {
304
+ id: h,
305
305
  inputProps: _object_spread_props(_object_spread({}, n), {
306
- id: h,
306
+ id: g,
307
307
  autoComplete: "off",
308
308
  // @ts-expect-error Autosuggest expects slightly different types
309
309
  onChange: (e, param)=>{
@@ -349,7 +349,7 @@ const W = /*#__PURE__*/ _react.forwardRef((_param, M)=>{
349
349
  }))
350
350
  })
351
351
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(W, _object_spread_props(_object_spread({}, n), {
352
- id: h,
352
+ id: g,
353
353
  ref: m
354
354
  }));
355
355
  });
@@ -1,7 +1,7 @@
1
1
  import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./advanced-data-card.css.ts.vanilla.css-mistica.js";
3
- var _ = "_1x00fru3 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbw _1y2v1nfbm _1y2v1nf7x", v = {
4
- default: "_1x00frui",
5
- mobile: "_1x00fruj"
6
- }, a = "_1x00frup", n = "_1x00frul", t = "_1x00frum _1x00frul", u = "_1x00fru8 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nf6c _1y2v1nf7x _1y2v1nfb4", y = "_1x00frub _1y2v1nfb4 _1y2v1nfba _1y2v1nfbw _1y2v1nfbg _1y2v1nfbx _1y2v1nfce _1x00fru9", x = "_1x00frug", o = "_1x00fruo _1y2v1nfba _1y2v1nfbf", b = "_1y2v1nfba _1y2v1nfbw _1y2v1nfbp _1y2v1nfdj", i = "_1x00fruk", e = "_1y2v1nfff", d = "_1x00fru9", l = "_1x00fru1 _1y2v1nf90 _1y2v1nfa9", c = "_1x00fru5", g = "_1x00fru6", m = "_1x00fru4";
7
- export { _ as actions, v as actionsVariants, a as adjustButtonLink, n as button, t as buttonMobile, u as cardContentStyle, y as dataCard, x as divider, o as footerDirection, b as footerText, i as marginRightAuto, e as marginRightButton, d as minHeight, l as paddingX, c as touchable, g as touchableCardOverlay, m as touchableContainer };
3
+ var a = "_1x00fru3 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbw _1y2v1nfbm _1y2v1nf7x", _ = {
4
+ default: "_1x00fruk",
5
+ mobile: "_1x00frul"
6
+ }, n = "_1x00frur", v = "_1x00frun", t = "_1x00fruo _1x00frun", u = "_1x00fru9 _1x00fru1 _1y2v1nf90 _1y2v1nfa9 _1y2v1nf6c _1y2v1nf7x", x = "_1x00frud _1y2v1nfb4 _1y2v1nfba _1y2v1nfbw _1y2v1nfbg _1y2v1nfbx _1y2v1nfce _1x00frub", y = "_1x00frui", o = "_1x00fruq _1y2v1nfba _1y2v1nfbf", b = "_1y2v1nfba _1y2v1nfbw _1y2v1nfbp _1y2v1nfdj", i = "_1x00frum", e = "_1y2v1nfff", d = "_1x00frub", c = "_1x00fru1 _1y2v1nf90 _1y2v1nfa9", l = "_1x00fru4", m = "_1x00fru7", g = "_1x00fru5", h = "_1x00frua";
7
+ export { a as actions, _ as actionsVariants, n as adjustButtonLink, v as button, t as buttonMobile, u as cardContentStyle, x as dataCard, y as divider, o as footerDirection, b as footerText, i as marginRightAuto, e as marginRightButton, d as minHeight, c as paddingX, l as touchableArea, m as touchableCardOverlay, g as touchableContainer, h as zindex };