@telefonica/mistica 16.18.1 → 16.19.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 (274) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +6 -6
  3. package/dist/align.css-mistica.js +1 -1
  4. package/dist/avatar.css-mistica.js +2 -2
  5. package/dist/badge.css-mistica.js +1 -1
  6. package/dist/box.css-mistica.js +13 -13
  7. package/dist/boxed.css-mistica.js +25 -25
  8. package/dist/button-group.css-mistica.js +1 -1
  9. package/dist/button-layout.css-mistica.js +13 -13
  10. package/dist/button.css-mistica.js +16 -16
  11. package/dist/callout.css-mistica.js +5 -5
  12. package/dist/card.css-mistica.js +3 -3
  13. package/dist/carousel.css-mistica.js +6 -6
  14. package/dist/checkbox.css-mistica.js +7 -7
  15. package/dist/chip.css-mistica.js +12 -12
  16. package/dist/circle.css-mistica.js +1 -1
  17. package/dist/community/advanced-data-card.css-mistica.js +6 -6
  18. package/dist/community/blocks.css-mistica.js +3 -3
  19. package/dist/community/blocks.d.ts +3 -1
  20. package/dist/community/blocks.js +71 -56
  21. package/dist/community/example-component.css-mistica.js +1 -1
  22. package/dist/counter.css-mistica.js +1 -1
  23. package/dist/cover-hero.css-mistica.js +3 -3
  24. package/dist/credit-card-expiration-field.d.ts +1 -1
  25. package/dist/credit-card-expiration-field.js +21 -19
  26. package/dist/credit-card-number-field.css-mistica.js +3 -3
  27. package/dist/credit-card-number-field.d.ts +1 -1
  28. package/dist/credit-card-number-field.js +48 -46
  29. package/dist/cvv-field.d.ts +1 -1
  30. package/dist/cvv-field.js +21 -19
  31. package/dist/date-field.css-mistica.js +1 -1
  32. package/dist/date-field.d.ts +1 -1
  33. package/dist/date-field.js +15 -13
  34. package/dist/date-time-field.d.ts +1 -1
  35. package/dist/date-time-field.js +13 -11
  36. package/dist/date-time-picker.css-mistica.js +1 -1
  37. package/dist/decimal-field.d.ts +1 -1
  38. package/dist/decimal-field.js +38 -36
  39. package/dist/dialog.css-mistica.js +4 -4
  40. package/dist/divider.css-mistica.js +2 -2
  41. package/dist/double-field.css-mistica.js +2 -2
  42. package/dist/drawer.css-mistica.js +1 -1
  43. package/dist/email-field.d.ts +1 -1
  44. package/dist/email-field.js +16 -14
  45. package/dist/empty-state-card.css-mistica.js +1 -1
  46. package/dist/empty-state.css-mistica.js +7 -7
  47. package/dist/fade-in.css-mistica.js +1 -1
  48. package/dist/feedback.css-mistica.js +1 -1
  49. package/dist/fixed-footer-layout.css-mistica.js +4 -4
  50. package/dist/fixed-footer-layout.js +27 -21
  51. package/dist/form-context.d.ts +3 -2
  52. package/dist/form-context.js +47 -47
  53. package/dist/form.css-mistica.js +1 -1
  54. package/dist/generated/mistica-icons/icon-glass-filled.d.ts +4 -0
  55. package/dist/generated/mistica-icons/icon-glass-filled.js +111 -0
  56. package/dist/generated/mistica-icons/icon-glass-light.d.ts +4 -0
  57. package/dist/generated/mistica-icons/icon-glass-light.js +111 -0
  58. package/dist/generated/mistica-icons/icon-glass-regular.d.ts +4 -0
  59. package/dist/generated/mistica-icons/icon-glass-regular.js +111 -0
  60. package/dist/generated/mistica-icons/icon-washing-machine-filled.d.ts +4 -0
  61. package/dist/generated/mistica-icons/icon-washing-machine-filled.js +117 -0
  62. package/dist/generated/mistica-icons/icon-washing-machine-light.d.ts +4 -0
  63. package/dist/generated/mistica-icons/icon-washing-machine-light.js +117 -0
  64. package/dist/generated/mistica-icons/icon-washing-machine-regular.d.ts +4 -0
  65. package/dist/generated/mistica-icons/icon-washing-machine-regular.js +117 -0
  66. package/dist/generated/mistica-icons/icon-wind-filled.d.ts +4 -0
  67. package/dist/generated/mistica-icons/icon-wind-filled.js +117 -0
  68. package/dist/generated/mistica-icons/icon-wind-light.d.ts +4 -0
  69. package/dist/generated/mistica-icons/icon-wind-light.js +117 -0
  70. package/dist/generated/mistica-icons/icon-wind-regular.d.ts +4 -0
  71. package/dist/generated/mistica-icons/icon-wind-regular.js +117 -0
  72. package/dist/generated/mistica-icons/icons-keywords.js +42 -0
  73. package/dist/grid-layout.css-mistica.js +5 -5
  74. package/dist/grid.css-mistica.js +124 -124
  75. package/dist/header.css-mistica.js +1 -1
  76. package/dist/hero.css-mistica.js +2 -2
  77. package/dist/highlighted-card.css-mistica.js +4 -4
  78. package/dist/horizontal-scroll.css-mistica.js +3 -3
  79. package/dist/iban-field.d.ts +1 -1
  80. package/dist/iban-field.js +28 -26
  81. package/dist/icon-button.css-mistica.js +42 -42
  82. package/dist/icons/icon-chevron.css-mistica.js +2 -2
  83. package/dist/icons/icon-error.css-mistica.js +1 -1
  84. package/dist/image.css-mistica.js +2 -2
  85. package/dist/index.d.ts +9 -0
  86. package/dist/index.js +36 -0
  87. package/dist/inline.css-mistica.js +9 -9
  88. package/dist/integer-field.d.ts +1 -1
  89. package/dist/integer-field.js +18 -16
  90. package/dist/list.css-mistica.js +1 -1
  91. package/dist/loading-bar.css-mistica.js +1 -1
  92. package/dist/loading-screen.css-mistica.js +5 -5
  93. package/dist/logo.css-mistica.js +6 -6
  94. package/dist/maybe-dismissable.css-mistica.js +1 -1
  95. package/dist/menu.css-mistica.js +12 -12
  96. package/dist/month-field.d.ts +1 -1
  97. package/dist/month-field.js +15 -13
  98. package/dist/mosaic.css-mistica.js +2 -2
  99. package/dist/navigation-bar.css-mistica.js +16 -16
  100. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  101. package/dist/package-version.js +1 -1
  102. package/dist/password-field.d.ts +1 -1
  103. package/dist/password-field.js +22 -20
  104. package/dist/phone-number-field-lite.d.ts +1 -1
  105. package/dist/phone-number-field-lite.js +32 -30
  106. package/dist/phone-number-field.d.ts +1 -1
  107. package/dist/phone-number-field.js +48 -46
  108. package/dist/pin-field.css-mistica.js +1 -1
  109. package/dist/popover.css-mistica.js +1 -1
  110. package/dist/progress-bar.css-mistica.js +5 -5
  111. package/dist/radio-button.css-mistica.js +14 -14
  112. package/dist/rating.css-mistica.js +3 -3
  113. package/dist/responsive-layout.css-mistica.js +6 -6
  114. package/dist/screen-reader-only.css-mistica.js +1 -1
  115. package/dist/search-field.d.ts +1 -0
  116. package/dist/search-field.js +19 -16
  117. package/dist/select.css-mistica.js +15 -15
  118. package/dist/select.d.ts +2 -1
  119. package/dist/select.js +35 -35
  120. package/dist/sheet-action-row.css-mistica.js +1 -1
  121. package/dist/sheet-common.css-mistica.js +1 -1
  122. package/dist/sheet-info.css-mistica.js +2 -2
  123. package/dist/skeletons.css-mistica.js +4 -4
  124. package/dist/skins/skin-contract.css-mistica.js +346 -346
  125. package/dist/slider.css-mistica.js +10 -10
  126. package/dist/snackbar.css-mistica.js +4 -4
  127. package/dist/spinner.css-mistica.js +1 -1
  128. package/dist/stack.css-mistica.js +7 -7
  129. package/dist/stacking-group.css-mistica.js +1 -1
  130. package/dist/stepper.css-mistica.js +2 -2
  131. package/dist/switch-component.css-mistica.js +26 -26
  132. package/dist/table.css-mistica.js +8 -8
  133. package/dist/tabs.css-mistica.js +12 -12
  134. package/dist/tag.css-mistica.js +1 -1
  135. package/dist/text-field-base.css-mistica.js +1 -1
  136. package/dist/text-field-base.d.ts +3 -0
  137. package/dist/text-field-base.js +33 -32
  138. package/dist/text-field-components.css-mistica.js +3 -3
  139. package/dist/text-field-components.d.ts +2 -2
  140. package/dist/text-field-components.js +1 -1
  141. package/dist/text-field.js +22 -20
  142. package/dist/text-link.css-mistica.js +3 -3
  143. package/dist/text.css-mistica.js +9 -9
  144. package/dist/theme-context.css-mistica.js +390 -390
  145. package/dist/timeline.css-mistica.js +10 -10
  146. package/dist/timer.css-mistica.js +6 -6
  147. package/dist/tooltip.css-mistica.js +1 -1
  148. package/dist/touchable.css-mistica.js +1 -1
  149. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  150. package/dist/video.css-mistica.js +2 -2
  151. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -3
  152. package/dist-es/accordion.css-mistica.js +6 -6
  153. package/dist-es/align.css-mistica.js +1 -1
  154. package/dist-es/avatar.css-mistica.js +2 -2
  155. package/dist-es/badge.css-mistica.js +1 -1
  156. package/dist-es/box.css-mistica.js +13 -13
  157. package/dist-es/boxed.css-mistica.js +24 -24
  158. package/dist-es/button-group.css-mistica.js +1 -1
  159. package/dist-es/button-layout.css-mistica.js +13 -13
  160. package/dist-es/button.css-mistica.js +16 -16
  161. package/dist-es/callout.css-mistica.js +5 -5
  162. package/dist-es/card.css-mistica.js +3 -3
  163. package/dist-es/carousel.css-mistica.js +6 -6
  164. package/dist-es/checkbox.css-mistica.js +7 -7
  165. package/dist-es/chip.css-mistica.js +12 -12
  166. package/dist-es/circle.css-mistica.js +1 -1
  167. package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
  168. package/dist-es/community/blocks.css-mistica.js +2 -2
  169. package/dist-es/community/blocks.js +108 -93
  170. package/dist-es/community/example-component.css-mistica.js +1 -1
  171. package/dist-es/counter.css-mistica.js +1 -1
  172. package/dist-es/cover-hero.css-mistica.js +3 -3
  173. package/dist-es/credit-card-expiration-field.js +28 -26
  174. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  175. package/dist-es/credit-card-number-field.js +72 -70
  176. package/dist-es/cvv-field.js +52 -50
  177. package/dist-es/date-field.css-mistica.js +1 -1
  178. package/dist-es/date-field.js +29 -27
  179. package/dist-es/date-time-field.js +29 -27
  180. package/dist-es/date-time-picker.css-mistica.js +1 -1
  181. package/dist-es/decimal-field.js +43 -41
  182. package/dist-es/dialog.css-mistica.js +4 -4
  183. package/dist-es/divider.css-mistica.js +2 -2
  184. package/dist-es/double-field.css-mistica.js +2 -2
  185. package/dist-es/drawer.css-mistica.js +1 -1
  186. package/dist-es/email-field.js +21 -19
  187. package/dist-es/empty-state-card.css-mistica.js +1 -1
  188. package/dist-es/empty-state.css-mistica.js +6 -6
  189. package/dist-es/fade-in.css-mistica.js +1 -1
  190. package/dist-es/feedback.css-mistica.js +1 -1
  191. package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
  192. package/dist-es/fixed-footer-layout.js +42 -36
  193. package/dist-es/form-context.js +50 -50
  194. package/dist-es/form.css-mistica.js +1 -1
  195. package/dist-es/generated/mistica-icons/icon-glass-filled.js +102 -0
  196. package/dist-es/generated/mistica-icons/icon-glass-light.js +102 -0
  197. package/dist-es/generated/mistica-icons/icon-glass-regular.js +102 -0
  198. package/dist-es/generated/mistica-icons/icon-washing-machine-filled.js +108 -0
  199. package/dist-es/generated/mistica-icons/icon-washing-machine-light.js +108 -0
  200. package/dist-es/generated/mistica-icons/icon-washing-machine-regular.js +108 -0
  201. package/dist-es/generated/mistica-icons/icon-wind-filled.js +108 -0
  202. package/dist-es/generated/mistica-icons/icon-wind-light.js +108 -0
  203. package/dist-es/generated/mistica-icons/icon-wind-regular.js +108 -0
  204. package/dist-es/generated/mistica-icons/icons-keywords.js +42 -0
  205. package/dist-es/grid-layout.css-mistica.js +4 -4
  206. package/dist-es/grid.css-mistica.js +124 -124
  207. package/dist-es/header.css-mistica.js +1 -1
  208. package/dist-es/hero.css-mistica.js +2 -2
  209. package/dist-es/highlighted-card.css-mistica.js +4 -4
  210. package/dist-es/horizontal-scroll.css-mistica.js +2 -2
  211. package/dist-es/iban-field.js +38 -36
  212. package/dist-es/icon-button.css-mistica.js +42 -42
  213. package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
  214. package/dist-es/icons/icon-error.css-mistica.js +1 -1
  215. package/dist-es/image.css-mistica.js +2 -2
  216. package/dist-es/index.js +1096 -1087
  217. package/dist-es/inline.css-mistica.js +7 -7
  218. package/dist-es/integer-field.js +19 -17
  219. package/dist-es/list.css-mistica.js +1 -1
  220. package/dist-es/loading-bar.css-mistica.js +1 -1
  221. package/dist-es/loading-screen.css-mistica.js +5 -5
  222. package/dist-es/logo.css-mistica.js +6 -6
  223. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  224. package/dist-es/menu.css-mistica.js +12 -12
  225. package/dist-es/month-field.js +28 -26
  226. package/dist-es/mosaic.css-mistica.js +2 -2
  227. package/dist-es/navigation-bar.css-mistica.js +16 -16
  228. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  229. package/dist-es/package-version.js +1 -1
  230. package/dist-es/password-field.js +35 -33
  231. package/dist-es/phone-number-field-lite.js +33 -31
  232. package/dist-es/phone-number-field.js +57 -55
  233. package/dist-es/pin-field.css-mistica.js +1 -1
  234. package/dist-es/popover.css-mistica.js +1 -1
  235. package/dist-es/progress-bar.css-mistica.js +5 -5
  236. package/dist-es/radio-button.css-mistica.js +14 -14
  237. package/dist-es/rating.css-mistica.js +3 -3
  238. package/dist-es/responsive-layout.css-mistica.js +6 -6
  239. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  240. package/dist-es/search-field.js +33 -30
  241. package/dist-es/select.css-mistica.js +15 -15
  242. package/dist-es/select.js +68 -68
  243. package/dist-es/sheet-action-row.css-mistica.js +1 -1
  244. package/dist-es/sheet-common.css-mistica.js +1 -1
  245. package/dist-es/sheet-info.css-mistica.js +2 -2
  246. package/dist-es/skeletons.css-mistica.js +4 -4
  247. package/dist-es/skins/skin-contract.css-mistica.js +346 -346
  248. package/dist-es/slider.css-mistica.js +10 -10
  249. package/dist-es/snackbar.css-mistica.js +4 -4
  250. package/dist-es/spinner.css-mistica.js +1 -1
  251. package/dist-es/stack.css-mistica.js +6 -6
  252. package/dist-es/stacking-group.css-mistica.js +1 -1
  253. package/dist-es/stepper.css-mistica.js +2 -2
  254. package/dist-es/style.css +1 -1
  255. package/dist-es/switch-component.css-mistica.js +26 -26
  256. package/dist-es/table.css-mistica.js +8 -8
  257. package/dist-es/tabs.css-mistica.js +12 -12
  258. package/dist-es/tag.css-mistica.js +1 -1
  259. package/dist-es/text-field-base.css-mistica.js +1 -1
  260. package/dist-es/text-field-base.js +67 -66
  261. package/dist-es/text-field-components.css-mistica.js +3 -3
  262. package/dist-es/text-field-components.js +1 -1
  263. package/dist-es/text-field.js +31 -29
  264. package/dist-es/text-link.css-mistica.js +3 -3
  265. package/dist-es/text.css-mistica.js +8 -8
  266. package/dist-es/theme-context.css-mistica.js +388 -388
  267. package/dist-es/timeline.css-mistica.js +10 -10
  268. package/dist-es/timer.css-mistica.js +6 -6
  269. package/dist-es/tooltip.css-mistica.js +1 -1
  270. package/dist-es/touchable.css-mistica.js +1 -1
  271. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  272. package/dist-es/video.css-mistica.js +2 -2
  273. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +2 -2
  274. package/package.json +1 -1
@@ -80,19 +80,19 @@ function _object_without_properties_loose(source, excluded) {
80
80
  }
81
81
  import { jsx as r } from "react/jsx-runtime";
82
82
  import * as c from "react";
83
- import { useFieldProps as z } from "./form-context.js";
84
- import { TextFieldBaseAutosuggest as b } from "./text-field-base.js";
85
- import { isInputTypeSupported as w } from "./utils/dom.js";
86
- import { isServerSide as A } from "./utils/environment.js";
83
+ import { useFieldProps as b } from "./form-context.js";
84
+ import { TextFieldBaseAutosuggest as w } from "./text-field-base.js";
85
+ import { isInputTypeSupported as A } from "./utils/dom.js";
86
+ import { isServerSide as E } from "./utils/environment.js";
87
87
  import { getLocalDateTimeString as i } from "./utils/time.js";
88
- import E from "./generated/mistica-icons/icon-calendar-regular.js";
89
- import { isFirefox as N } from "./utils/platform.js";
90
- import { useTheme as V } from "./hooks.js";
91
- import { iconContainer as j } from "./date-field.css-mistica.js";
92
- import { iconSize as B } from "./icon-button.css-mistica.js";
93
- import { formDateOutOfRangeError as C } from "./text-tokens.js";
94
- const L = /*#__PURE__*/ c.lazy(()=>import(/* webpackChunkName: "date-time-picker" */ "./date-time-picker.js")), M = (_param)=>{
95
- var { disabled: F, error: g, helperText: R, name: S, label: I, optional: f, validate: a, onChange: O, onChangeValue: m, onBlur: h, value: k, defaultValue: y, min: o, /**
88
+ import N from "./generated/mistica-icons/icon-calendar-regular.js";
89
+ import { isFirefox as V } from "./utils/platform.js";
90
+ import { useTheme as j } from "./hooks.js";
91
+ import { iconContainer as B } from "./date-field.css-mistica.js";
92
+ import { iconSize as C } from "./icon-button.css-mistica.js";
93
+ import { formDateOutOfRangeError as L } from "./text-tokens.js";
94
+ const M = /*#__PURE__*/ c.lazy(()=>import(/* webpackChunkName: "date-time-picker" */ "./date-time-picker.js")), $ = (_param)=>{
95
+ var { disabled: F, error: g, helperText: R, name: S, label: I, optional: f, validate: a, validateOnBlurInsideForm: O, onChange: h, onChangeValue: m, onBlur: k, value: y, defaultValue: v, min: o, /**
96
96
  * When typing a datetime value into the input field (inside a test for example), some browsers like Chrome
97
97
  * force the year to have exactly 6 digits. In order to prevent this, in case max value was not provided we
98
98
  * set it so that it only accepts datetime values with years having up to 4 digits.
@@ -104,6 +104,7 @@ const L = /*#__PURE__*/ c.lazy(()=>import(/* webpackChunkName: "date-time-picker
104
104
  "label",
105
105
  "optional",
106
106
  "validate",
107
+ "validateOnBlurInsideForm",
107
108
  "onChange",
108
109
  "onChangeValue",
109
110
  "onBlur",
@@ -113,34 +114,35 @@ const L = /*#__PURE__*/ c.lazy(()=>import(/* webpackChunkName: "date-time-picker
113
114
  "max",
114
115
  "dataAttributes"
115
116
  ]);
116
- const u = c.useMemo(()=>N() ? !1 : w("datetime-local"), []), p = (e)=>u ? e : e.replace(/\s/, "T"), { texts: v, t: x } = V(), n = (e)=>{
117
+ const u = c.useMemo(()=>V() ? !1 : A("datetime-local"), []), p = (e)=>u ? e : e.replace(/\s/, "T"), { texts: x, t: z } = j(), n = (e)=>{
117
118
  const t = p(e);
118
119
  return !(o && t && t < i(o) || s && t && t > i(s));
119
- }, D = z({
120
+ }, D = b({
120
121
  name: S,
121
122
  label: I,
122
- value: k,
123
- defaultValue: y,
123
+ value: y,
124
+ defaultValue: v,
124
125
  processValue: p,
125
126
  helperText: R,
126
127
  optional: f,
127
128
  error: g,
128
129
  disabled: F,
129
- onBlur: h,
130
- validate: (e, t)=>n(e) ? a == null ? void 0 : a(e, t) : v.formDateOutOfRangeError || x(C),
131
- onChange: O,
130
+ onBlur: k,
131
+ validate: (e, t)=>n(e) ? a == null ? void 0 : a(e, t) : x.formDateOutOfRangeError || z(L),
132
+ validateOnBlurInsideForm: O,
133
+ onChange: h,
132
134
  onChangeValue: (e, t)=>{
133
135
  n(e) && (m == null || m(e, t));
134
136
  }
135
- }), T = /* @__PURE__ */ r(b, _object_spread_props(_object_spread({}, l, D), {
137
+ }), T = /* @__PURE__ */ r(w, _object_spread_props(_object_spread({}, l, D), {
136
138
  min: o ? i(o) : void 0,
137
139
  max: s ? i(s) : void 0,
138
140
  type: "datetime-local",
139
141
  endIconOverlay: /* @__PURE__ */ r("div", {
140
- className: j,
142
+ className: B,
141
143
  "data-testid": "endIcon",
142
- children: /* @__PURE__ */ r(E, {
143
- size: B.default
144
+ children: /* @__PURE__ */ r(N, {
145
+ size: C.default
144
146
  })
145
147
  }),
146
148
  dataAttributes: _object_spread({
@@ -148,9 +150,9 @@ const L = /*#__PURE__*/ c.lazy(()=>import(/* webpackChunkName: "date-time-picker
148
150
  testid: "DateTimeField"
149
151
  }, d)
150
152
  }));
151
- return u || A() ? T : /* @__PURE__ */ r(c.Suspense, {
153
+ return u || E() ? T : /* @__PURE__ */ r(c.Suspense, {
152
154
  fallback: T,
153
- children: /* @__PURE__ */ r(L, _object_spread_props(_object_spread({}, l, D), {
155
+ children: /* @__PURE__ */ r(M, _object_spread_props(_object_spread({}, l, D), {
154
156
  optional: f,
155
157
  withTime: !0,
156
158
  isValidDate: (e)=>n(i(e.toDate())),
@@ -160,5 +162,5 @@ const L = /*#__PURE__*/ c.lazy(()=>import(/* webpackChunkName: "date-time-picker
160
162
  }, d)
161
163
  }))
162
164
  });
163
- }, ee = M;
164
- export { ee as default };
165
+ }, te = $;
166
+ export { te as default };
@@ -1,3 +1,3 @@
1
1
  import "./date-time-picker.css.ts.vanilla.css-mistica.js";
2
- var e = "v16_18_1_c0yqjy0";
2
+ var e = "v16_19_c0yqjy0";
3
3
  export { e as reactDatePicker };
@@ -80,50 +80,50 @@ function _object_without_properties_loose(source, excluded) {
80
80
  }
81
81
  import { jsx as S } from "react/jsx-runtime";
82
82
  import * as D from "react";
83
- import { useFieldProps as C } from "./form-context.js";
84
- import { useTheme as F } from "./hooks.js";
85
- import { TextFieldBaseAutosuggest as V } from "./text-field-base.js";
86
- import { createChangeEvent as x } from "./utils/dom.js";
87
- import { useRifm as P } from "rifm";
88
- import { combineRefs as R } from "./utils/common.js";
89
- const b = (n)=>{
83
+ import { useFieldProps as F } from "./form-context.js";
84
+ import { useTheme as V } from "./hooks.js";
85
+ import { TextFieldBaseAutosuggest as x } from "./text-field-base.js";
86
+ import { createChangeEvent as P } from "./utils/dom.js";
87
+ import { useRifm as R } from "rifm";
88
+ import { combineRefs as b } from "./utils/common.js";
89
+ const v = (o)=>{
90
90
  try {
91
- return 1.1.toLocaleString(n.replace("_", "-"))[1];
91
+ return 1.1.toLocaleString(o.replace("_", "-"))[1];
92
92
  } catch (e) {
93
93
  return ".";
94
94
  }
95
- }, v = (n, t)=>{
96
- const i = String(n !== null && n !== void 0 ? n : "").replace(/[^.,\d]/g, ""), e = /[.,]/.exec(i), r = i.split(/[.,]/);
95
+ }, j = (o, t)=>{
96
+ const i = String(o !== null && o !== void 0 ? o : "").replace(/[^.,\d]/g, ""), e = /[.,]/.exec(i), r = i.split(/[.,]/);
97
97
  return r.length === 0 ? "" : e && t > 0 ? r.shift() + e[0] + r.join("").slice(0, t) : r[0];
98
- }, j = (_param)=>{
99
- var { inputRef: n, value: t, defaultValue: i, onChange: e, maxDecimals: r } = _param, l = _object_without_properties(_param, [
98
+ }, A = (_param)=>{
99
+ var { inputRef: o, value: t, defaultValue: i, onChange: e, maxDecimals: r } = _param, a = _object_without_properties(_param, [
100
100
  "inputRef",
101
101
  "value",
102
102
  "defaultValue",
103
103
  "onChange",
104
104
  "maxDecimals"
105
105
  ]);
106
- const { i18n: a } = F(), u = b(a.locale), m = (o)=>String(o !== null && o !== void 0 ? o : "").replace(/[.,]/g, u), [p, f] = D.useState(i !== null && i !== void 0 ? i : ""), c = D.useRef(null), s = typeof t < "u", d = s ? t : p, g = D.useCallback((o)=>{
107
- s || f(o), c.current && (e == null || e(x(c.current, o)));
106
+ const { i18n: u } = V(), m = v(u.locale), p = (n)=>String(n !== null && n !== void 0 ? n : "").replace(/[.,]/g, m), [f, d] = D.useState(i !== null && i !== void 0 ? i : ""), c = D.useRef(null), s = typeof t < "u", g = s ? t : f, h = D.useCallback((n)=>{
107
+ s || d(n), c.current && (e == null || e(P(c.current, n)));
108
108
  }, [
109
109
  s,
110
110
  e
111
- ]), h = P({
112
- format: (o)=>v(o, r),
113
- replace: m,
114
- value: d,
115
- onChange: g,
111
+ ]), l = R({
112
+ format: (n)=>j(n, r),
113
+ replace: p,
114
+ value: g,
115
+ onChange: h,
116
116
  accept: /[\d.,]+/g
117
117
  });
118
- return /* @__PURE__ */ S("input", _object_spread_props(_object_spread({}, l), {
118
+ return /* @__PURE__ */ S("input", _object_spread_props(_object_spread({}, a), {
119
119
  type: "text",
120
120
  inputMode: "decimal",
121
- value: h.value,
122
- onChange: h.onChange,
123
- ref: R(n, c)
121
+ value: l.value,
122
+ onChange: l.onChange,
123
+ ref: b(o, c)
124
124
  }));
125
- }, A = (_param)=>{
126
- var { disabled: n, error: t, helperText: i, name: e, label: r, optional: l, validate: a, onChange: u, onChangeValue: m, onBlur: p, value: f, defaultValue: c, maxDecimals: s = 1 / 0, dataAttributes: d } = _param, g = _object_without_properties(_param, [
125
+ }, B = (_param)=>{
126
+ var { disabled: o, error: t, helperText: i, name: e, label: r, optional: a, validate: u, validateOnBlurInsideForm: m, onChange: p, onChangeValue: f, onBlur: d, value: c, defaultValue: s, maxDecimals: g = 1 / 0, dataAttributes: h } = _param, l = _object_without_properties(_param, [
127
127
  "disabled",
128
128
  "error",
129
129
  "helperText",
@@ -131,6 +131,7 @@ const b = (n)=>{
131
131
  "label",
132
132
  "optional",
133
133
  "validate",
134
+ "validateOnBlurInsideForm",
134
135
  "onChange",
135
136
  "onChangeValue",
136
137
  "onBlur",
@@ -139,30 +140,31 @@ const b = (n)=>{
139
140
  "maxDecimals",
140
141
  "dataAttributes"
141
142
  ]);
142
- const o = C({
143
+ const y = F({
143
144
  name: e,
144
145
  label: r,
145
- value: f,
146
- defaultValue: c,
147
- processValue: (y)=>y.trim(),
146
+ value: c,
147
+ defaultValue: s,
148
+ processValue: (C)=>C.trim(),
148
149
  helperText: i,
149
- optional: l,
150
+ optional: a,
150
151
  error: t,
151
- disabled: n,
152
- onBlur: p,
153
- validate: a,
154
- onChange: u,
155
- onChangeValue: m
152
+ disabled: o,
153
+ onBlur: d,
154
+ validate: u,
155
+ validateOnBlurInsideForm: m,
156
+ onChange: p,
157
+ onChangeValue: f
156
158
  });
157
- return /* @__PURE__ */ S(V, _object_spread_props(_object_spread({}, g, o), {
158
- inputComponent: j,
159
+ return /* @__PURE__ */ S(x, _object_spread_props(_object_spread({}, l, y), {
160
+ inputComponent: A,
159
161
  inputProps: {
160
- maxDecimals: s
162
+ maxDecimals: g
161
163
  },
162
164
  dataAttributes: _object_spread({
163
165
  "component-name": "DecimalField",
164
166
  testid: "DecimalField"
165
- }, d)
167
+ }, h)
166
168
  }));
167
- }, M = A;
168
- export { j as DecimalInput, M as default };
169
+ }, _ = B;
170
+ export { A as DecimalInput, _ as default };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./dialog.css.ts.vanilla.css-mistica.js";
3
- var n = 200, y = "v16_18_1_3dl29lb", f = "v16_18_1_3dl29l6", l = "v16_18_1_3dl29ll v16_18_1_1y2v1nf8y", a = "v16_18_1_3dl29lj v16_18_1_1y2v1nfj6 v16_18_1_1y2v1nfkk", i = "v16_18_1_3dl29lm", r = "v16_18_1_3dl29l8 v16_18_1_1y2v1nf8s v16_18_1_1y2v1nfa1 v16_18_1_1y2v1nfba v16_18_1_1y2v1nfcj v16_18_1_1y2v1nfif v16_18_1_1y2v1nflr v16_18_1_1y2v1nfml", d = "v16_18_1_3dl29la v16_18_1_1y2v1nf47 v16_18_1_1y2v1nflb", o = "v16_18_1_3dl29l5 v16_18_1_1y2v1nfig v16_18_1_1y2v1nfik v16_18_1_1y2v1nfit v16_18_1_1y2v1nfiz v16_18_1_1y2v1nfiq v16_18_1_1y2v1nflr v16_18_1_1y2v1nfml v16_18_1_1y2v1nfn0 v16_18_1_1y2v1nfm6 v16_18_1_1y2v1nf4j", t = {
4
- dialog: "v16_18_1_3dl29ld v16_18_1_1y2v1nfik v16_18_1_1y2v1nfiq v16_18_1_1y2v1nfiw v16_18_1_1y2v1nfbg v16_18_1_1y2v1nfcp v16_18_1_1y2v1nf94 v16_18_1_1y2v1nfa7",
5
- default: "v16_18_1_3dl29ld v16_18_1_1y2v1nfik v16_18_1_1y2v1nfiq v16_18_1_1y2v1nfiw v16_18_1_1y2v1nf8y v16_18_1_1y2v1nfa7 v16_18_1_1y2v1nfbg v16_18_1_1y2v1nfcp"
6
- }, e = "v16_18_1_1y2v1nfie";
3
+ var n = 200, y = "v16_19_3dl29lb", f = "v16_19_3dl29l6", l = "v16_19_3dl29ll v16_19_1y2v1nf8y", a = "v16_19_3dl29lj v16_19_1y2v1nfj6 v16_19_1y2v1nfkk", i = "v16_19_3dl29lm", r = "v16_19_3dl29l8 v16_19_1y2v1nf8s v16_19_1y2v1nfa1 v16_19_1y2v1nfba v16_19_1y2v1nfcj v16_19_1y2v1nfif v16_19_1y2v1nflr v16_19_1y2v1nfml", d = "v16_19_3dl29la v16_19_1y2v1nf47 v16_19_1y2v1nflb", o = "v16_19_3dl29l5 v16_19_1y2v1nfig v16_19_1y2v1nfik v16_19_1y2v1nfit v16_19_1y2v1nfiz v16_19_1y2v1nfiq v16_19_1y2v1nflr v16_19_1y2v1nfml v16_19_1y2v1nfn0 v16_19_1y2v1nfm6 v16_19_1y2v1nf4j", t = {
4
+ dialog: "v16_19_3dl29ld v16_19_1y2v1nfik v16_19_1y2v1nfiq v16_19_1y2v1nfiw v16_19_1y2v1nfbg v16_19_1y2v1nfcp v16_19_1y2v1nf94 v16_19_1y2v1nfa7",
5
+ default: "v16_19_3dl29ld v16_19_1y2v1nfik v16_19_1y2v1nfiq v16_19_1y2v1nfiw v16_19_1y2v1nf8y v16_19_1y2v1nfa7 v16_19_1y2v1nfbg v16_19_1y2v1nfcp"
6
+ }, e = "v16_19_1y2v1nfie";
7
7
  export { n as ANIMATION_DURATION_MS, y as closedModalContent, f as closedOpactityLayer, l as dialogActions, a as dialogContent, i as iconContainer, r as modalCloseButtonContainer, d as modalContent, o as modalOpacityLayer, t as variants, e as wrapper };
@@ -1,6 +1,6 @@
1
1
  import "./divider.css.ts.vanilla.css-mistica.js";
2
2
  var t = {
3
- default: "v16_18_1_o0dvt10",
4
- inverse: "v16_18_1_o0dvt11"
3
+ default: "v16_19_o0dvt10",
4
+ inverse: "v16_19_o0dvt11"
5
5
  };
6
6
  export { t as variants };
@@ -4,7 +4,7 @@ import "./text-field-base.css.ts.vanilla.css-mistica.js";
4
4
  import "./text-field-components.css.ts.vanilla.css-mistica.js";
5
5
  import "./double-field.css.ts.vanilla.css-mistica.js";
6
6
  var f = {
7
- default: "v16_18_1_skrulh1 v16_18_1_1y2v1nfik v16_18_1_1y2v1nfip v16_18_1_1y2v1nfj7",
8
- fullWidth: "v16_18_1_skrulh2 v16_18_1_1y2v1nfik v16_18_1_1y2v1nfip v16_18_1_1y2v1nfj7"
7
+ default: "v16_19_skrulh1 v16_19_1y2v1nfik v16_19_1y2v1nfip v16_19_1y2v1nfj7",
8
+ fullWidth: "v16_19_skrulh2 v16_19_1y2v1nfik v16_19_1y2v1nfip v16_19_1y2v1nfj7"
9
9
  };
10
10
  export { f as variants };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./drawer.css.ts.vanilla.css-mistica.js";
3
- var n = 350, y = "v16_18_1_1y2v1nfif v16_18_1_1y2v1nflu v16_18_1_1y2v1nfmo", f = "v16_18_1_c4ngww9", r = "v16_18_1_c4ngww1 v16_18_1_1y2v1nfig v16_18_1_1y2v1nfik v16_18_1_1y2v1nf47 v16_18_1_1y2v1nflr v16_18_1_1y2v1nfml v16_18_1_1y2v1nfn0 v16_18_1_1y2v1nfll", a = "v16_18_1_1y2v1nf94 v16_18_1_1y2v1nfik v16_18_1_1y2v1nfiq v16_18_1_1y2v1nfj5", l = "v16_18_1_c4ngww8", o = "v16_18_1_c4ngwwb v16_18_1_1y2v1nfig v16_18_1_1y2v1nflr v16_18_1_1y2v1nfm6 v16_18_1_1y2v1nfml v16_18_1_1y2v1nfn0 v16_18_1_1y2v1nf4j", e = "v16_18_1_c4ngwwc", w = "v16_18_1_c4ngwwd", c = "v16_18_1_1y2v1nfj5 v16_18_1_1y2v1nflq", i = "v16_18_1_c4ngww5 v16_18_1_1y2v1nfj2 v16_18_1_1y2v1nfj4";
3
+ var n = 350, y = "v16_19_1y2v1nfif v16_19_1y2v1nflu v16_19_1y2v1nfmo", f = "v16_19_c4ngww9", r = "v16_19_c4ngww1 v16_19_1y2v1nfig v16_19_1y2v1nfik v16_19_1y2v1nf47 v16_19_1y2v1nflr v16_19_1y2v1nfml v16_19_1y2v1nfn0 v16_19_1y2v1nfll", a = "v16_19_1y2v1nf94 v16_19_1y2v1nfik v16_19_1y2v1nfiq v16_19_1y2v1nfj5", l = "v16_19_c4ngww8", o = "v16_19_c4ngwwb v16_19_1y2v1nfig v16_19_1y2v1nflr v16_19_1y2v1nfm6 v16_19_1y2v1nfml v16_19_1y2v1nfn0 v16_19_1y2v1nf4j", e = "v16_19_c4ngwwc", w = "v16_19_c4ngwwd", c = "v16_19_1y2v1nfj5 v16_19_1y2v1nflq", i = "v16_19_c4ngww5 v16_19_1y2v1nfj2 v16_19_1y2v1nfj4";
4
4
  export { n as ANIMATION_DURATION_MS, y as closeButtonContainer, f as closed, r as container, a as drawer, l as open, o as overlay, e as overlayClosed, w as overlayOpen, c as scrollableSection, i as titleContainer };
@@ -78,13 +78,13 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as M } from "react/jsx-runtime";
82
- import { useFieldProps as T } from "./form-context.js";
83
- import { useTheme as V } from "./hooks.js";
84
- import { TextFieldBaseAutosuggest as $ } from "./text-field-base.js";
85
- import { formEmailError as b } from "./text-tokens.js";
86
- const h = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, j = (_param)=>{
87
- var { disabled: r, error: s, helperText: o, name: i, label: m, optional: l, validate: e, onChange: a, onChangeValue: n, onBlur: u, value: c, autoComplete: d = "email", defaultValue: f, dataAttributes: E } = _param, p = _object_without_properties(_param, [
81
+ import { jsx as T } from "react/jsx-runtime";
82
+ import { useFieldProps as V } from "./form-context.js";
83
+ import { useTheme as $ } from "./hooks.js";
84
+ import { TextFieldBaseAutosuggest as b } from "./text-field-base.js";
85
+ import { formEmailError as h } from "./text-tokens.js";
86
+ const j = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, y = (_param)=>{
87
+ var { disabled: r, error: s, helperText: o, name: i, label: m, optional: l, validate: e, validateOnBlurInsideForm: a, onChange: n, onChangeValue: u, onBlur: c, value: d, autoComplete: f = "email", defaultValue: E, dataAttributes: p } = _param, F = _object_without_properties(_param, [
88
88
  "disabled",
89
89
  "error",
90
90
  "helperText",
@@ -92,6 +92,7 @@ const h = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, j = (_param)=>{
92
92
  "label",
93
93
  "optional",
94
94
  "validate",
95
+ "validateOnBlurInsideForm",
95
96
  "onChange",
96
97
  "onChangeValue",
97
98
  "onBlur",
@@ -100,29 +101,30 @@ const h = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, j = (_param)=>{
100
101
  "defaultValue",
101
102
  "dataAttributes"
102
103
  ]);
103
- const { texts: F, t: x } = V(), A = T({
104
+ const { texts: x, t: A } = $(), g = V({
104
105
  name: i,
105
106
  label: m,
106
- value: c,
107
- defaultValue: f,
107
+ value: d,
108
+ defaultValue: E,
108
109
  processValue: (t)=>t.trim(),
109
110
  helperText: o,
110
111
  optional: l,
111
112
  error: s,
112
113
  disabled: r,
113
- onBlur: u,
114
- validate: (t, g)=>h.test(t !== null && t !== void 0 ? t : "") ? e == null ? void 0 : e(t, g) : F.formEmailError || x(b),
115
- onChange: a,
116
- onChangeValue: n
114
+ onBlur: c,
115
+ validate: (t, M)=>j.test(t !== null && t !== void 0 ? t : "") ? e == null ? void 0 : e(t, M) : x.formEmailError || A(h),
116
+ validateOnBlurInsideForm: a,
117
+ onChange: n,
118
+ onChangeValue: u
117
119
  });
118
- return /* @__PURE__ */ M($, _object_spread_props(_object_spread({}, p, A), {
120
+ return /* @__PURE__ */ T(b, _object_spread_props(_object_spread({}, F, g), {
119
121
  type: "email",
120
122
  inputMode: "email",
121
- autoComplete: d,
123
+ autoComplete: f,
122
124
  dataAttributes: _object_spread({
123
125
  "component-name": "EmailField",
124
126
  testid: "EmailField"
125
- }, E)
127
+ }, p)
126
128
  }));
127
- }, q = j;
128
- export { q as default };
129
+ }, w = y;
130
+ export { w as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./empty-state-card.css.ts.vanilla.css-mistica.js";
3
- var r = "v16_18_1_1azor6p4 v16_18_1_1y2v1nfjj v16_18_1_1y2v1nfjz", a = "v16_18_1_1azor6p0", n = "v16_18_1_1azor6p2 v16_18_1_1y2v1nfim v16_18_1_1y2v1nfk1";
3
+ var r = "v16_19_1azor6p4 v16_19_1y2v1nfjj v16_19_1y2v1nfjz", a = "v16_19_1azor6p0", n = "v16_19_1azor6p2 v16_19_1y2v1nfim v16_19_1y2v1nfk1";
4
4
  export { r as assetContainer, a as container, n as image };
@@ -1,9 +1,9 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./empty-state.css.ts.vanilla.css-mistica.js";
3
- var a = "v16_18_1_13fzrua9 v16_18_1_1y2v1nfjl v16_18_1_1y2v1nfk1", v = "v16_18_1_1y2v1nfl1", e = "v16_18_1_13fzrua2 v16_18_1_1y2v1nfik v16_18_1_1y2v1nf8c", n = {
4
- default: "v16_18_1_13fzrua3",
5
- largeImage: "v16_18_1_13fzrua4"
6
- }, f = "v16_18_1_13fzruad", o = "v16_18_1_13fzrua7 v16_18_1_1y2v1nfjo", t = "v16_18_1_13fzrua5", u = "v16_18_1_13fzruab v16_18_1_1y2v1nfim", i = {
7
- backgroundColor: "var(--v16_18_1_13fzrua0)"
3
+ var v = "v16_19_13fzrua9 v16_19_1y2v1nfjl v16_19_1y2v1nfk1", _ = "v16_19_1y2v1nfl1", e = "v16_19_13fzrua2 v16_19_1y2v1nfik v16_19_1y2v1nf8c", n = {
4
+ default: "v16_19_13fzrua3",
5
+ largeImage: "v16_19_13fzrua4"
6
+ }, f = "v16_19_13fzruad", o = "v16_19_13fzrua7 v16_19_1y2v1nfjo", t = "v16_19_13fzrua5", u = "v16_19_13fzruab v16_19_1y2v1nfim", i = {
7
+ backgroundColor: "var(--v16_19_13fzrua0)"
8
8
  };
9
- export { a as assetContainer, v as border, e as container, n as contentVariants, f as inverseBorder, o as largeImage, t as largeImageContainer, u as smallImage, i as vars };
9
+ export { v as assetContainer, _ as border, e as container, n as contentVariants, f as inverseBorder, o as largeImage, t as largeImageContainer, u as smallImage, i as vars };
@@ -1,3 +1,3 @@
1
1
  import "./fade-in.css.ts.vanilla.css-mistica.js";
2
- var p = "v16_18_1_kq227n1";
2
+ var p = "v16_19_kq227n1";
3
3
  export { p as wrapper };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./feedback.css.ts.vanilla.css-mistica.js";
3
- var v = "v16_18_1_1y2v1nfjj v16_18_1_1y2v1nfjz", e = "v16_18_1_gx6h6af", r = "v16_18_1_gx6h6a4 v16_18_1_1y2v1nfik v16_18_1_1y2v1nfjo v16_18_1_1y2v1nfj7 v16_18_1_1y2v1nfiq", n = "v16_18_1_gx6h6a0", t = "v16_18_1_gx6h6a1", x = "v16_18_1_gx6h6a2", g = "v16_18_1_gx6h6ae", o = "v16_18_1_gx6h6ab v16_18_1_gx6h6aa", h = "v16_18_1_gx6h6ac v16_18_1_gx6h6aa", i = "v16_18_1_gx6h6ad v16_18_1_gx6h6aa", p = "v16_18_1_gx6h6a5", d = "v16_18_1_gx6h6a6";
3
+ var v = "v16_19_1y2v1nfjj v16_19_1y2v1nfjz", e = "v16_19_gx6h6af", r = "v16_19_gx6h6a4 v16_19_1y2v1nfik v16_19_1y2v1nfjo v16_19_1y2v1nfj7 v16_19_1y2v1nfiq", n = "v16_19_gx6h6a0", t = "v16_19_gx6h6a1", x = "v16_19_gx6h6a2", g = "v16_19_gx6h6ae", o = "v16_19_gx6h6ab v16_19_gx6h6aa", h = "v16_19_gx6h6ac v16_19_gx6h6aa", i = "v16_19_gx6h6ad v16_19_gx6h6aa", p = "v16_19_gx6h6a5", d = "v16_19_gx6h6a6";
4
4
  export { v as assetContainer, e as backgroundBrand, r as container, n as desktopContainer, t as desktopContent, x as desktopImage, g as feedbackData, o as feedbackTextAppearFast, h as feedbackTextAppearMedium, i as feedbackTextAppearSlow, p as innerContainer, d as innerContainerWithButtons };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./fixed-footer-layout.css.ts.vanilla.css-mistica.js";
3
- var r = "v16_18_1_p5j8j5d v16_18_1_1y2v1nfm6 v16_18_1_1y2v1nfml v16_18_1_1y2v1nfif", n = "v16_18_1_p5j8j57", a = "v16_18_1_p5j8j55", f = "v16_18_1_p5j8j5b v16_18_1_1y2v1nflr v16_18_1_1y2v1nfm6 v16_18_1_1y2v1nfml v16_18_1_1y2v1nfn0 v16_18_1_1y2v1nfig", j = "v16_18_1_p5j8j54", o = "v16_18_1_p5j8j53 v16_18_1_1y2v1nfj7", y = "v16_18_1_p5j8j59 v16_18_1_1y2v1nflr v16_18_1_1y2v1nfm6 v16_18_1_1y2v1nfml v16_18_1_1y2v1nfn0 v16_18_1_1y2v1nfig", e = {
4
- footerHeight: "var(--v16_18_1_p5j8j50)",
5
- backgroundColor: "var(--v16_18_1_p5j8j51)"
6
- }, t = "v16_18_1_1y2v1nfij";
3
+ var r = "v16_19_p5j8j5d v16_19_1y2v1nfm6 v16_19_1y2v1nfml v16_19_1y2v1nfif", n = "v16_19_p5j8j57", a = "v16_19_p5j8j55", f = "v16_19_p5j8j5b v16_19_1y2v1nflr v16_19_1y2v1nfm6 v16_19_1y2v1nfml v16_19_1y2v1nfn0 v16_19_1y2v1nfig", j = "v16_19_p5j8j54", o = "v16_19_p5j8j53 v16_19_1y2v1nfj7", y = "v16_19_p5j8j59 v16_19_1y2v1nflr v16_19_1y2v1nfm6 v16_19_1y2v1nfml v16_19_1y2v1nfn0 v16_19_1y2v1nfig", e = {
4
+ footerHeight: "var(--v16_19_p5j8j50)",
5
+ backgroundColor: "var(--v16_19_p5j8j51)"
6
+ }, t = "v16_19_1y2v1nfij";
7
7
  export { r as absoluteBackgroundLayer, n as container, a as elevated, f as fixedBackgroundLayer, j as fixedFooter, o as footer, y as portal, e as vars, t as withoutFooter };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { jsxs as p, Fragment as H, jsx as a } from "react/jsx-runtime";
3
- import * as v from "react";
2
+ import { jsxs as f, Fragment as H, jsx as s } from "react/jsx-runtime";
3
+ import * as g from "react";
4
4
  import z from "classnames";
5
5
  import { debounce as O } from "./utils/helpers.js";
6
6
  import { isRunningAcceptanceTest as P } from "./utils/platform.js";
@@ -8,7 +8,7 @@ import { useBoundingRect as _, useScreenSize as j, useTheme as M, useElementDime
8
8
  import { getScrollableParentElement as X, addPassiveEventListener as E, removePassiveEventListener as b, hasScroll as q, getScrollDistanceToBottom as J } from "./utils/dom.js";
9
9
  import { Portal as K } from "./portal.js";
10
10
  import { vars as T } from "./skins/skin-contract.css-mistica.js";
11
- import { container as Q, footer as U, withoutFooter as V, elevated as Y, fixedFooter as Z, portal as C, fixedBackgroundLayer as ee, absoluteBackgroundLayer as S, vars as te } from "./fixed-footer-layout.css-mistica.js";
11
+ import { container as Q, footer as U, withoutFooter as Y, elevated as Z, fixedFooter as V, portal as C, fixedBackgroundLayer as ee, absoluteBackgroundLayer as S, vars as te } from "./fixed-footer-layout.css-mistica.js";
12
12
  import { applyCssVars as oe, safeAreaInsetBottom as re } from "./utils/css.js";
13
13
  import { useFixedToTopHeight as se } from "./fixed-to-top.js";
14
14
  import { useOverScrollColor as ae } from "./overscroll-color-context.js";
@@ -18,100 +18,106 @@ const ie = (e)=>e === document.documentElement ? window : e, ne = (e)=>{
18
18
  cancel: ()=>clearTimeout(l)
19
19
  };
20
20
  }, ce = 200, le = (param)=>{
21
- let { isFooterVisible: e = !0, footer: l, footerHeight: F = "auto", footerBgColor: i = T.colors.background, containerBgColor: k = T.colors.background, children: L, onChangeFooterHeight: n } = param;
22
- const [$, g] = v.useState(!1), d = v.useRef(null), { height: m } = _(d) || {
21
+ let { isFooterVisible: e = !0, footer: l, footerHeight: k = "auto", footerBgColor: i = T.colors.background, containerBgColor: F = T.colors.background, children: L, onChangeFooterHeight: n } = param;
22
+ const [$, h] = g.useState(!1), d = g.useRef(null), { height: m } = _(d) || {
23
23
  height: 0
24
- }, { isTabletOrSmaller: u } = j(), { platformOverrides: h } = M(), { height: r, ref: w } = y({
24
+ }, { isTabletOrSmaller: u } = j(), { platformOverrides: v } = M(), { height: o, ref: w } = y({
25
25
  includeMargins: !0
26
- }), { visualHeight: D } = W(), s = se(), t = D - s - r > ce, { topColor: I = i } = ae(), { height: x, ref: N } = y();
26
+ }), { visualHeight: D } = W(), a = se(), t = D - a - o > ce, { topColor: I = i } = ae(), { height: x, ref: N } = y();
27
27
  G(()=>{
28
- n == null || n(r);
28
+ n == null || n(o);
29
29
  }, [
30
30
  n,
31
- r
32
- ]), v.useEffect(()=>{
33
- if (!u || P(h) || !t) {
34
- g(!1);
31
+ o
32
+ ]), g.useEffect(()=>{
33
+ if (!u || P(v) || !t) {
34
+ h(!1);
35
35
  return;
36
36
  }
37
- const f = X(d.current), A = ()=>q(f) && J(f) > s + 1, o = O(()=>{
38
- g(A());
37
+ const p = X(d.current), A = ()=>q(p) && J(p) > a + 1, r = O(()=>{
38
+ h(A());
39
39
  }, 50, {
40
40
  leading: !0,
41
41
  maxWait: 100
42
- }), B = ne(o), c = ie(f);
43
- return E(c, "resize", o), E(c, "scroll", o), ()=>{
44
- o.cancel(), b(c, "scroll", o), b(c, "resize", o), B.cancel();
42
+ }), B = ne(r), c = ie(p);
43
+ return E(c, "resize", r), E(c, "scroll", r), ()=>{
44
+ r.cancel(), b(c, "scroll", r), b(c, "resize", r), B.cancel();
45
45
  };
46
46
  }, [
47
- h,
47
+ v,
48
48
  u,
49
49
  t,
50
50
  // `topDistance` and `contentHeight` dependencies are needed to recalculate the elevation state
51
- s,
51
+ a,
52
52
  m
53
53
  ]);
54
- const R = ()=>/* @__PURE__ */ p(K, {
54
+ const R = ()=>/* @__PURE__ */ f(K, {
55
55
  className: C,
56
56
  children: [
57
- /* @__PURE__ */ a("div", {
57
+ /* @__PURE__ */ s("div", {
58
58
  className: ee,
59
59
  style: {
60
60
  background: `linear-gradient(180deg, ${I} 50%, ${i} 50% 100%)`
61
61
  }
62
62
  }),
63
- /* @__PURE__ */ a("div", {
63
+ /* @__PURE__ */ s("div", {
64
64
  ref: N,
65
65
  className: S,
66
66
  style: {
67
- background: k,
67
+ background: F,
68
68
  // this color could be a gradient
69
- top: s - 1,
69
+ top: a - 1,
70
70
  // -1 because the navigationbar could have a 1px transparent background
71
- bottom: t ? r : "unset",
71
+ bottom: t ? o : "unset",
72
72
  height: t ? "unset" : m
73
73
  }
74
74
  }),
75
- /* @__PURE__ */ a("div", {
75
+ /* @__PURE__ */ s("div", {
76
76
  className: S,
77
77
  style: {
78
78
  background: i,
79
- top: x + s - 1,
79
+ top: x + a - 1,
80
80
  height: `calc(${m}px - ${x}px)`
81
81
  }
82
82
  })
83
83
  ]
84
84
  });
85
- return /* @__PURE__ */ p(H, {
85
+ return /* @__PURE__ */ f(H, {
86
86
  children: [
87
- /* @__PURE__ */ p("div", {
87
+ /* @__PURE__ */ f("div", {
88
88
  ref: d,
89
89
  className: Q,
90
90
  style: oe({
91
- [te.footerHeight]: t ? `${r}px` : "0px"
91
+ [te.footerHeight]: t ? `${o}px` : "0px"
92
92
  }),
93
93
  children: [
94
94
  R(),
95
95
  L
96
96
  ]
97
97
  }),
98
- /* @__PURE__ */ a("div", {
98
+ e && t && /**
99
+ * This style is added to the `html` element to prevent the footer
100
+ * from covering the focus of elements when there is overflow.
101
+ */ /* @__PURE__ */ s("style", {
102
+ children: `html {scroll-padding-bottom: ${o}px}`
103
+ }),
104
+ /* @__PURE__ */ s("div", {
99
105
  className: z(U, {
100
- [V]: !e,
101
- [Y]: $,
102
- [Z]: t
106
+ [Y]: !e,
107
+ [Z]: $,
108
+ [V]: t
103
109
  }),
104
110
  style: {
105
111
  background: u ? i : void 0
106
112
  },
107
113
  "data-testid": `fixed-footer${e ? "-visible" : "-hidden"}`,
108
114
  "data-position-fixed": "bottom",
109
- children: e && /* @__PURE__ */ a("aside", {
115
+ children: e && /* @__PURE__ */ s("aside", {
110
116
  ref: w,
111
117
  "data-component-name": "FixedFooter",
112
118
  "data-testid": "FixedFooter",
113
119
  style: {
114
- height: F,
120
+ height: k,
115
121
  marginBottom: re
116
122
  },
117
123
  children: l