@telefonica/mistica 15.2.1 → 15.4.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 (290) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +3 -3
  4. package/dist/accordion.js +75 -71
  5. package/dist/avatar.css-mistica.js +3 -3
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge.css-mistica.js +4 -4
  8. package/dist/box.d.ts +1 -0
  9. package/dist/box.js +13 -12
  10. package/dist/boxed.css-mistica.js +1 -1
  11. package/dist/boxed.js +2 -2
  12. package/dist/button-group.css-mistica.js +1 -1
  13. package/dist/button-group.js +2 -2
  14. package/dist/button-layout.css-mistica.js +10 -10
  15. package/dist/button.css-mistica.js +31 -31
  16. package/dist/button.js +62 -49
  17. package/dist/callout.css-mistica.js +1 -1
  18. package/dist/card.css-mistica.js +19 -16
  19. package/dist/card.css.d.ts +1 -0
  20. package/dist/card.d.ts +7 -5
  21. package/dist/card.js +376 -351
  22. package/dist/carousel.css-mistica.js +18 -18
  23. package/dist/carousel.d.ts +3 -4
  24. package/dist/carousel.js +95 -101
  25. package/dist/checkbox.css-mistica.js +10 -10
  26. package/dist/chip.css-mistica.js +15 -9
  27. package/dist/chip.css.d.ts +2 -0
  28. package/dist/chip.js +49 -47
  29. package/dist/circle.css-mistica.js +1 -1
  30. package/dist/community/advanced-data-card.css-mistica.js +20 -17
  31. package/dist/community/advanced-data-card.css.d.ts +1 -0
  32. package/dist/community/advanced-data-card.d.ts +8 -4
  33. package/dist/community/advanced-data-card.js +25 -24
  34. package/dist/community/blocks.css-mistica.js +1 -1
  35. package/dist/community/blocks.js +10 -8
  36. package/dist/counter.css-mistica.js +9 -9
  37. package/dist/counter.js +7 -7
  38. package/dist/credit-card-number-field.css-mistica.js +6 -6
  39. package/dist/dialog.css-mistica.js +9 -9
  40. package/dist/dialog.js +96 -94
  41. package/dist/double-field.css-mistica.js +4 -4
  42. package/dist/empty-state-card.css-mistica.js +4 -4
  43. package/dist/empty-state.css-mistica.js +6 -6
  44. package/dist/feedback.css-mistica.js +6 -6
  45. package/dist/feedback.d.ts +1 -1
  46. package/dist/feedback.js +87 -99
  47. package/dist/fixed-footer-layout.css-mistica.js +14 -8
  48. package/dist/fixed-footer-layout.css.d.ts +2 -0
  49. package/dist/fixed-footer-layout.d.ts +1 -1
  50. package/dist/fixed-footer-layout.js +79 -86
  51. package/dist/fixed-to-top.d.ts +1 -0
  52. package/dist/fixed-to-top.js +9 -6
  53. package/dist/form.js +6 -6
  54. package/dist/generated/mistica-icons/icon-ethernet-filled.d.ts +4 -0
  55. package/dist/generated/mistica-icons/icon-ethernet-filled.js +111 -0
  56. package/dist/generated/mistica-icons/icon-ethernet-light.d.ts +4 -0
  57. package/dist/generated/mistica-icons/icon-ethernet-light.js +111 -0
  58. package/dist/generated/mistica-icons/icon-ethernet-regular.d.ts +4 -0
  59. package/dist/generated/mistica-icons/icon-ethernet-regular.js +111 -0
  60. package/dist/generated/mistica-icons/icon-routine-filled.d.ts +4 -0
  61. package/dist/generated/mistica-icons/icon-routine-filled.js +111 -0
  62. package/dist/generated/mistica-icons/icon-routine-light.d.ts +4 -0
  63. package/dist/generated/mistica-icons/icon-routine-light.js +111 -0
  64. package/dist/generated/mistica-icons/icon-routine-regular.d.ts +4 -0
  65. package/dist/generated/mistica-icons/icon-routine-regular.js +111 -0
  66. package/dist/header.css-mistica.js +1 -1
  67. package/dist/hero.css-mistica.js +27 -6
  68. package/dist/hero.css.d.ts +5 -0
  69. package/dist/hero.d.ts +3 -2
  70. package/dist/hero.js +97 -99
  71. package/dist/highlighted-card.css-mistica.js +6 -6
  72. package/dist/hooks.d.ts +2 -0
  73. package/dist/hooks.js +39 -44
  74. package/dist/horizontal-scroll.css-mistica.js +1 -1
  75. package/dist/horizontal-scroll.js +2 -2
  76. package/dist/icon-button.css-mistica.js +7 -7
  77. package/dist/icons/icon-error.js +2 -0
  78. package/dist/icons/icon-info.js +2 -0
  79. package/dist/icons/icon-success-vivo-new.js +1 -0
  80. package/dist/icons/icon-success-vivo.js +9 -8
  81. package/dist/image.css-mistica.js +3 -3
  82. package/dist/image.d.ts +1 -0
  83. package/dist/image.js +54 -50
  84. package/dist/index.d.ts +6 -0
  85. package/dist/index.js +24 -0
  86. package/dist/list.css-mistica.js +13 -13
  87. package/dist/list.d.ts +3 -0
  88. package/dist/list.js +261 -217
  89. package/dist/loading-bar.css-mistica.js +5 -5
  90. package/dist/loading-bar.js +2 -2
  91. package/dist/loading-screen.css-mistica.js +8 -8
  92. package/dist/loading-screen.d.ts +1 -1
  93. package/dist/loading-screen.js +3 -3
  94. package/dist/logo.js +40 -27
  95. package/dist/maybe-dismissable.css-mistica.js +1 -1
  96. package/dist/menu.css-mistica.js +3 -3
  97. package/dist/navigation-bar.css-mistica.js +19 -19
  98. package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
  99. package/dist/overscroll-color-context.d.ts +1 -0
  100. package/dist/overscroll-color-context.js +15 -12
  101. package/dist/package-version.js +1 -1
  102. package/dist/pin-field.css-mistica.js +5 -5
  103. package/dist/pin-field.js +2 -2
  104. package/dist/progress-bar.css-mistica.js +3 -3
  105. package/dist/progress-bar.js +4 -4
  106. package/dist/radio-button.css-mistica.js +10 -10
  107. package/dist/radio-button.d.ts +2 -0
  108. package/dist/radio-button.js +70 -68
  109. package/dist/responsive-layout.css-mistica.js +20 -11
  110. package/dist/responsive-layout.d.ts +1 -0
  111. package/dist/responsive-layout.js +15 -15
  112. package/dist/screen-reader-only.css-mistica.js +2 -2
  113. package/dist/select.css-mistica.js +10 -10
  114. package/dist/select.js +16 -16
  115. package/dist/sheet.css-mistica.js +9 -9
  116. package/dist/sheet.d.ts +8 -8
  117. package/dist/sheet.js +82 -81
  118. package/dist/skeletons.css-mistica.js +4 -4
  119. package/dist/skins/blau.js +11 -1
  120. package/dist/skins/movistar.js +11 -1
  121. package/dist/skins/o2-new.d.ts +0 -1
  122. package/dist/skins/o2-new.js +17 -8
  123. package/dist/skins/o2.js +11 -1
  124. package/dist/skins/skin-contract.css-mistica.js +268 -258
  125. package/dist/skins/skin-contract.css.d.ts +10 -0
  126. package/dist/skins/telefonica.js +11 -1
  127. package/dist/skins/tu.js +11 -1
  128. package/dist/skins/types/colors.d.ts +5 -0
  129. package/dist/skins/vivo-new.js +11 -1
  130. package/dist/skins/vivo.js +11 -1
  131. package/dist/slider.css-mistica.js +9 -9
  132. package/dist/slider.d.ts +1 -1
  133. package/dist/slider.js +8 -8
  134. package/dist/snackbar.css-mistica.js +15 -15
  135. package/dist/spinner.css-mistica.js +3 -3
  136. package/dist/sprinkles.css-mistica.js +833 -803
  137. package/dist/stacking-group.css-mistica.js +2 -2
  138. package/dist/stepper.css-mistica.js +9 -9
  139. package/dist/switch-component.css-mistica.js +21 -21
  140. package/dist/switch-component.d.ts +2 -0
  141. package/dist/switch-component.js +28 -27
  142. package/dist/tabs.css-mistica.js +10 -10
  143. package/dist/tag.css-mistica.js +2 -2
  144. package/dist/tag.js +2 -2
  145. package/dist/text-field-base.css-mistica.js +16 -16
  146. package/dist/text-field-base.js +3 -3
  147. package/dist/text-field-components.css-mistica.js +9 -9
  148. package/dist/text-field-components.js +10 -10
  149. package/dist/text-link.css-mistica.js +3 -3
  150. package/dist/text.js +142 -121
  151. package/dist/theme-context-provider.js +38 -34
  152. package/dist/theme.d.ts +2 -1
  153. package/dist/tooltip.css-mistica.js +4 -4
  154. package/dist/touchable.css-mistica.js +2 -2
  155. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  156. package/dist/utils/aspect-ratio-support.js +8 -8
  157. package/dist/utils/browser.js +1 -1
  158. package/dist/video.css-mistica.js +1 -1
  159. package/dist/video.js +3 -3
  160. package/dist-es/accordion.css-mistica.js +3 -3
  161. package/dist-es/accordion.js +87 -83
  162. package/dist-es/avatar.css-mistica.js +2 -2
  163. package/dist-es/avatar.js +1 -1
  164. package/dist-es/badge.css-mistica.js +2 -2
  165. package/dist-es/box.js +17 -16
  166. package/dist-es/boxed.css-mistica.js +1 -1
  167. package/dist-es/boxed.js +2 -2
  168. package/dist-es/button-group.css-mistica.js +1 -1
  169. package/dist-es/button-group.js +4 -4
  170. package/dist-es/button-layout.css-mistica.js +6 -6
  171. package/dist-es/button-layout.js +5 -5
  172. package/dist-es/button.css-mistica.js +18 -18
  173. package/dist-es/button.js +80 -67
  174. package/dist-es/callout.css-mistica.js +1 -1
  175. package/dist-es/callout.js +8 -8
  176. package/dist-es/card.css-mistica.js +2 -2
  177. package/dist-es/card.js +491 -466
  178. package/dist-es/carousel.css-mistica.js +2 -2
  179. package/dist-es/carousel.js +88 -91
  180. package/dist-es/checkbox.css-mistica.js +6 -6
  181. package/dist-es/checkbox.js +7 -7
  182. package/dist-es/chip.css-mistica.js +8 -8
  183. package/dist-es/chip.js +75 -72
  184. package/dist-es/circle.css-mistica.js +1 -1
  185. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  186. package/dist-es/community/advanced-data-card.js +65 -64
  187. package/dist-es/community/blocks.css-mistica.js +1 -1
  188. package/dist-es/community/blocks.js +16 -14
  189. package/dist-es/counter.css-mistica.js +2 -2
  190. package/dist-es/counter.js +21 -21
  191. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  192. package/dist-es/dialog.css-mistica.js +5 -5
  193. package/dist-es/dialog.js +114 -112
  194. package/dist-es/double-field.css-mistica.js +4 -4
  195. package/dist-es/empty-state-card.css-mistica.js +2 -2
  196. package/dist-es/empty-state.css-mistica.js +3 -3
  197. package/dist-es/empty-state.js +12 -12
  198. package/dist-es/feedback.css-mistica.js +2 -2
  199. package/dist-es/feedback.js +118 -130
  200. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  201. package/dist-es/fixed-footer-layout.js +97 -104
  202. package/dist-es/fixed-to-top.js +8 -8
  203. package/dist-es/form.js +9 -9
  204. package/dist-es/generated/mistica-icons/icon-ethernet-filled.js +102 -0
  205. package/dist-es/generated/mistica-icons/icon-ethernet-light.js +102 -0
  206. package/dist-es/generated/mistica-icons/icon-ethernet-regular.js +102 -0
  207. package/dist-es/generated/mistica-icons/icon-routine-filled.js +102 -0
  208. package/dist-es/generated/mistica-icons/icon-routine-light.js +102 -0
  209. package/dist-es/generated/mistica-icons/icon-routine-regular.js +102 -0
  210. package/dist-es/grid.js +3 -3
  211. package/dist-es/header.css-mistica.js +1 -1
  212. package/dist-es/hero.css-mistica.js +8 -2
  213. package/dist-es/hero.js +124 -126
  214. package/dist-es/highlighted-card.css-mistica.js +5 -5
  215. package/dist-es/hooks.js +41 -40
  216. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  217. package/dist-es/horizontal-scroll.js +2 -2
  218. package/dist-es/icon-button.css-mistica.js +7 -7
  219. package/dist-es/icons/icon-error.js +29 -27
  220. package/dist-es/icons/icon-info.js +2 -0
  221. package/dist-es/icons/icon-success-vivo-new.js +1 -0
  222. package/dist-es/icons/icon-success-vivo.js +9 -8
  223. package/dist-es/image.css-mistica.js +2 -2
  224. package/dist-es/image.js +73 -69
  225. package/dist-es/index.js +1088 -1082
  226. package/dist-es/list.css-mistica.js +2 -2
  227. package/dist-es/list.js +342 -298
  228. package/dist-es/loading-bar.css-mistica.js +2 -2
  229. package/dist-es/loading-bar.js +6 -6
  230. package/dist-es/loading-screen.css-mistica.js +3 -3
  231. package/dist-es/loading-screen.js +8 -8
  232. package/dist-es/logo.js +93 -80
  233. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  234. package/dist-es/menu.css-mistica.js +2 -2
  235. package/dist-es/navigation-bar.css-mistica.js +9 -9
  236. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  237. package/dist-es/overscroll-color-context.js +12 -12
  238. package/dist-es/package-version.js +1 -1
  239. package/dist-es/pin-field.css-mistica.js +2 -2
  240. package/dist-es/pin-field.js +10 -10
  241. package/dist-es/progress-bar.css-mistica.js +2 -2
  242. package/dist-es/progress-bar.js +9 -9
  243. package/dist-es/radio-button.css-mistica.js +6 -6
  244. package/dist-es/radio-button.js +75 -73
  245. package/dist-es/responsive-layout.css-mistica.js +5 -5
  246. package/dist-es/responsive-layout.js +21 -21
  247. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  248. package/dist-es/select.css-mistica.js +9 -9
  249. package/dist-es/select.js +22 -22
  250. package/dist-es/sheet.css-mistica.js +2 -2
  251. package/dist-es/sheet.js +124 -123
  252. package/dist-es/skeletons.css-mistica.js +2 -2
  253. package/dist-es/skins/blau.js +11 -1
  254. package/dist-es/skins/movistar.js +13 -3
  255. package/dist-es/skins/o2-new.js +17 -8
  256. package/dist-es/skins/o2.js +11 -1
  257. package/dist-es/skins/skin-contract.css-mistica.js +268 -258
  258. package/dist-es/skins/telefonica.js +11 -1
  259. package/dist-es/skins/tu.js +13 -3
  260. package/dist-es/skins/vivo-new.js +13 -3
  261. package/dist-es/skins/vivo.js +13 -3
  262. package/dist-es/slider.css-mistica.js +2 -2
  263. package/dist-es/slider.js +8 -8
  264. package/dist-es/snackbar.css-mistica.js +5 -5
  265. package/dist-es/spinner.css-mistica.js +2 -2
  266. package/dist-es/sprinkles.css-mistica.js +833 -803
  267. package/dist-es/stacking-group.css-mistica.js +2 -2
  268. package/dist-es/stepper.css-mistica.js +2 -2
  269. package/dist-es/style.css +1 -1
  270. package/dist-es/switch-component.css-mistica.js +19 -19
  271. package/dist-es/switch-component.js +32 -31
  272. package/dist-es/tabs.css-mistica.js +7 -7
  273. package/dist-es/tag.css-mistica.js +2 -2
  274. package/dist-es/tag.js +4 -4
  275. package/dist-es/text-field-base.css-mistica.js +2 -2
  276. package/dist-es/text-field-base.js +11 -11
  277. package/dist-es/text-field-components.css-mistica.js +2 -2
  278. package/dist-es/text-field-components.js +23 -23
  279. package/dist-es/text-link.css-mistica.js +3 -3
  280. package/dist-es/text-link.js +5 -5
  281. package/dist-es/text.js +141 -120
  282. package/dist-es/theme-context-provider.js +44 -40
  283. package/dist-es/tooltip.css-mistica.js +2 -2
  284. package/dist-es/touchable.css-mistica.js +2 -2
  285. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  286. package/dist-es/utils/aspect-ratio-support.js +14 -14
  287. package/dist-es/utils/browser.js +1 -1
  288. package/dist-es/video.css-mistica.js +1 -1
  289. package/dist-es/video.js +6 -6
  290. package/package.json +1 -1
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ function _define_property(obj, key, value) {
3
+ if (key in obj) {
4
+ Object.defineProperty(obj, key, {
5
+ value: value,
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true
9
+ });
10
+ } else {
11
+ obj[key] = value;
12
+ }
13
+ return obj;
14
+ }
15
+ function _object_spread(target) {
16
+ for(var i = 1; i < arguments.length; i++){
17
+ var source = arguments[i] != null ? arguments[i] : {};
18
+ var ownKeys = Object.keys(source);
19
+ if (typeof Object.getOwnPropertySymbols === "function") {
20
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
21
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
22
+ }));
23
+ }
24
+ ownKeys.forEach(function(key) {
25
+ _define_property(target, key, source[key]);
26
+ });
27
+ }
28
+ return target;
29
+ }
30
+ function ownKeys(object, enumerableOnly) {
31
+ var keys = Object.keys(object);
32
+ if (Object.getOwnPropertySymbols) {
33
+ var symbols = Object.getOwnPropertySymbols(object);
34
+ if (enumerableOnly) {
35
+ symbols = symbols.filter(function(sym) {
36
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37
+ });
38
+ }
39
+ keys.push.apply(keys, symbols);
40
+ }
41
+ return keys;
42
+ }
43
+ function _object_spread_props(target, source) {
44
+ source = source != null ? source : {};
45
+ if (Object.getOwnPropertyDescriptors) {
46
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
+ } else {
48
+ ownKeys(Object(source)).forEach(function(key) {
49
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
+ });
51
+ }
52
+ return target;
53
+ }
54
+ function _object_without_properties(source, excluded) {
55
+ if (source == null) return {};
56
+ var target = _object_without_properties_loose(source, excluded);
57
+ var key, i;
58
+ if (Object.getOwnPropertySymbols) {
59
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
+ for(i = 0; i < sourceSymbolKeys.length; i++){
61
+ key = sourceSymbolKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
+ target[key] = source[key];
65
+ }
66
+ }
67
+ return target;
68
+ }
69
+ function _object_without_properties_loose(source, excluded) {
70
+ if (source == null) return {};
71
+ var target = {};
72
+ var sourceKeys = Object.keys(source);
73
+ var key, i;
74
+ for(i = 0; i < sourceKeys.length; i++){
75
+ key = sourceKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ target[key] = source[key];
78
+ }
79
+ return target;
80
+ }
81
+ import { jsx as r } from "react/jsx-runtime";
82
+ import { useIsInverseVariant as s } from "../../theme-variant-context.js";
83
+ import { vars as e } from "../../skins/skin-contract.css-mistica.js";
84
+ const i = (_param)=>{
85
+ var { color: a, size: o = 24 } = _param, t = _object_without_properties(_param, [
86
+ "color",
87
+ "size"
88
+ ]);
89
+ const l = s(), n = a !== null && a !== void 0 ? a : l ? e.colors.inverse : e.colors.neutralHigh;
90
+ return /* @__PURE__ */ r("svg", _object_spread_props(_object_spread({
91
+ width: o,
92
+ height: o,
93
+ viewBox: "0 0 24 24",
94
+ role: "presentation"
95
+ }, t), {
96
+ children: /* @__PURE__ */ r("path", {
97
+ fill: n,
98
+ d: "M11.129 2.166a.568.568 0 1 0-.803.804l.872.873C6.001 4.133 3 7.046 3 12.912 3 19.105 6.345 22 12.088 22c5.701 0 9.044-2.852 9.093-8.952v-.137h-.01a.568.568 0 0 0-1.114 0h-.01l-.001.09v.036c-.04 5.265-2.644 7.827-7.958 7.827-5.35 0-7.952-2.602-7.952-7.952 0-5.12 2.378-7.724 7.262-7.943l-.67.895a.568.568 0 1 0 .908.681L13 4.727a.57.57 0 0 0-.053-.742zm4.162 13.392-2.63-2.633.002-3.552a.57.57 0 0 0-1.138 0v3.787c0 .15.059.295.165.401l2.828 2.828a.566.566 0 0 0 .801-.029.566.566 0 0 0-.028-.802m5.3-5.717a.568.568 0 1 1-1.136 0 .568.568 0 0 1 1.136 0m-2.296-2.16a.568.568 0 1 0 0-1.136.568.568 0 0 0 0 1.137M16.41 5.296a.568.568 0 1 1-1.136 0 .568.568 0 0 1 1.136 0"
99
+ })
100
+ }));
101
+ }, h = i;
102
+ export { h as default };
package/dist-es/grid.js CHANGED
@@ -28,7 +28,7 @@ function _object_spread(target) {
28
28
  }
29
29
  import c from "classnames";
30
30
  import * as d from "react";
31
- import { grid as G, gridTemplateColumns as C, gridTemplateColumnsAutoRepeat as M, gridTemplateRows as T, gridTemplateRowsAutoRepeat as j, gridAutoFlow as v, gridJustifyItems as N, gridAlignItems as V, gridJustifyContent as k, gridAlignContent as E, fullColumns as J, spanColumns as h, fullRows as w, spanRows as D, columnStart as F, rowStart as I, justifySelf as P, alignSelf as q, vars as p } from "./grid.css-mistica.js";
31
+ import { grid as G, gridTemplateColumns as C, gridTemplateColumnsAutoRepeat as M, gridTemplateRows as T, gridTemplateRowsAutoRepeat as j, gridAutoFlow as v, gridJustifyItems as V, gridAlignItems as k, gridJustifyContent as E, gridAlignContent as J, fullColumns as N, spanColumns as h, fullRows as w, spanRows as D, columnStart as F, rowStart as I, justifySelf as P, alignSelf as q, vars as p } from "./grid.css-mistica.js";
32
32
  import { applyCssVars as B } from "./utils/css.js";
33
33
  import { getPrefixedDataAttributes as R } from "./utils/dom.js";
34
34
  import { sprinkles as H } from "./sprinkles.css-mistica.js";
@@ -60,7 +60,7 @@ const K = (t, e)=>{
60
60
  }
61
61
  return /*#__PURE__*/ d.createElement(z, _object_spread({
62
62
  ref: x,
63
- className: c(G, g, e ? typeof e == "number" ? C[e] : M : "", t ? typeof t == "number" ? T[t] : j : "", f ? v[f] : "", o ? N[o] : "", r ? V[r] : "", l ? k[l] : "", n ? E[n] : ""),
63
+ className: c(G, g, e ? typeof e == "number" ? C[e] : M : "", t ? typeof t == "number" ? T[t] : j : "", f ? v[f] : "", o ? V[o] : "", r ? k[r] : "", l ? E[l] : "", n ? J[n] : ""),
64
64
  style: _object_spread({
65
65
  height: u,
66
66
  minHeight: y
@@ -70,7 +70,7 @@ const K = (t, e)=>{
70
70
  let { rowStart: t, rowSpan: e, columnStart: i, columnSpan: f, span: o, justifySelf: r, alignSelf: l, children: n, as: u = "div", dataAttributes: y } = param;
71
71
  return o && (Array.isArray(o) ? (f = o[0], e = o[1]) : (f = o, e = o)), /*#__PURE__*/ d.createElement(u, _object_spread({
72
72
  ref: s,
73
- className: c(f ? f === "full" ? J : h[f] : "", e ? e === "full" ? w : D[e] : "", i ? F[i] : "", t ? I[t] : "", r ? P[r] : "", l ? q[l] : "")
73
+ className: c(f ? f === "full" ? N : h[f] : "", e ? e === "full" ? w : D[e] : "", i ? F[i] : "", t ? I[t] : "", r ? P[r] : "", l ? q[l] : "")
74
74
  }, R(y)), n);
75
75
  });
76
76
  export { Y as Grid, Z as GridItem };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./header.css.ts.vanilla.css-mistica.js";
3
- var t = "mtk7e90 _1y2v1nf92", m = "mtk7e93", a = "mtk7e90";
3
+ var t = "mtk7e90 _1y2v1nf9c", m = "mtk7e93", a = "mtk7e90";
4
4
  export { t as breadcrumbs, m as hideOnDesktop, a as hideOnTabletOrSmaller };
@@ -1,7 +1,13 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./responsive-layout.css.ts.vanilla.css-mistica.js";
3
3
  import "./hero.css.ts.vanilla.css-mistica.js";
4
- var t = "_16rbpto6 _1y2v1nfha _1y2v1nfhw _1y2v1nfhq", v = "_16rbpto2 _1y2v1nfha", n = "_1y2v1nfhp _1y2v1nfie", _ = "_1y2v1nfhg", i = "_16rbpto7", p = {
4
+ var o = "_16rbpto7 _1y2v1nfhk _1y2v1nfi6 _1y2v1nfi0", a = "_16rbpto2 _1y2v1nfhk", e = {
5
+ default: "_16rbptoc",
6
+ alternative: "_16rbptod",
7
+ brand: "_16rbptoe",
8
+ "brand-secondary": "_16rbptof",
9
+ none: "_16rbptog"
10
+ }, p = "_1y2v1nfhz _1y2v1nfio", v = "_16rbpto3", _ = "_1y2v1nfhq", b = "_16rbpto9", i = "_16rbptob _16rbptoa", c = "_16rbptoa", f = "_16rbpto8", y = {
5
11
  height: "var(--_16rbpto0)"
6
12
  };
7
- export { t as actions, v as container, n as containerDesktop, _ as containerMobile, i as layout, p as vars };
13
+ export { o as actions, a as container, e as containerBackground, p as containerDesktop, v as containerMinHeight, _ as containerMobile, b as contentContainer, i as contentWrapper, c as expandedContent, f as layout, y as vars };
package/dist-es/hero.js CHANGED
@@ -78,173 +78,171 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as r, jsxs as m } from "react/jsx-runtime";
82
- import * as I from "react";
83
- import u from "classnames";
84
- import { useScreenSize as T } from "./hooks.js";
85
- import { Text3 as y, Text8 as D } from "./text.js";
86
- import O from "./grid-layout.js";
87
- import d from "./box.js";
88
- import x from "./stack.js";
89
- import j from "./button-group.js";
90
- import { vars as a } from "./skins/skin-contract.css-mistica.js";
91
- import { container as g, containerMobile as G, containerDesktop as b, layout as L, actions as $, vars as B } from "./hero.css-mistica.js";
92
- import { vars as N } from "./image.css-mistica.js";
93
- import { useIsInsideSlideshowContext as A } from "./carousel.js";
94
- import { getPrefixedDataAttributes as S } from "./utils/dom.js";
95
- import { sprinkles as k } from "./sprinkles.css-mistica.js";
96
- import { ThemeVariant as V } from "./theme-variant-context.js";
97
- import { applyCssVars as f } from "./utils/css.js";
98
- const C = (param)=>{
99
- let { children: e, isInverse: o } = param;
100
- return /* @__PURE__ */ r(V, {
101
- isInverse: o,
102
- children: /* @__PURE__ */ r("div", {
103
- className: L,
104
- children: e
105
- })
81
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
82
+ import * as V from "react";
83
+ import s from "classnames";
84
+ import { useScreenSize as G } from "./hooks.js";
85
+ import { Text3 as B, Text8 as O } from "./text.js";
86
+ import W from "./grid-layout.js";
87
+ import p from "./box.js";
88
+ import w from "./stack.js";
89
+ import z from "./button-group.js";
90
+ import { vars as $ } from "./skins/skin-contract.css-mistica.js";
91
+ import { container as u, containerMobile as E, containerMinHeight as C, contentWrapper as M, containerBackground as S, expandedContent as q, layout as x, contentContainer as A, vars as H, containerDesktop as b, actions as F } from "./hero.css-mistica.js";
92
+ import { vars as g } from "./image.css-mistica.js";
93
+ import { useSlideshowContext as J } from "./carousel.js";
94
+ import { getPrefixedDataAttributes as R } from "./utils/dom.js";
95
+ import { sprinkles as D } from "./sprinkles.css-mistica.js";
96
+ import { useIsInverseVariant as K } from "./theme-variant-context.js";
97
+ import { applyCssVars as I } from "./utils/css.js";
98
+ import { InternalResponsiveLayout as Q } from "./responsive-layout.js";
99
+ const T = (param)=>{
100
+ let { children: r, isInverse: t, isInsideSlideShow: n } = param;
101
+ return /* @__PURE__ */ e(Q, {
102
+ isInverse: t,
103
+ className: x,
104
+ innerDivClassName: x,
105
+ shouldExpandWhenNested: n ? "desktop" : !0,
106
+ backgroundColor: "transparent",
107
+ children: r
106
108
  });
107
109
  }, v = (param)=>{
108
- let { headline: e, title: o, titleAs: i = "h1", pretitle: t, description: n, descriptionLinesMax: l, extra: s, button: p, secondaryButton: h, buttonLink: c } = param;
109
- return /* @__PURE__ */ m("section", {
110
- className: k({
110
+ let { headline: r, title: t, titleAs: n = "h1", pretitle: i, description: l, descriptionLinesMax: o, extra: a, button: c, secondaryButton: f, buttonLink: m } = param;
111
+ return /* @__PURE__ */ d("section", {
112
+ className: D({
111
113
  height: "100%",
112
114
  display: "flex",
113
115
  justifyContent: "space-between",
114
116
  flexDirection: "column"
115
117
  }),
116
118
  children: [
117
- /* @__PURE__ */ m("div", {
119
+ /* @__PURE__ */ d("div", {
118
120
  children: [
119
- /* @__PURE__ */ m(x, {
121
+ /* @__PURE__ */ d(w, {
120
122
  space: 16,
121
123
  children: [
122
- e && e,
123
- /* @__PURE__ */ m(x, {
124
+ r && r,
125
+ /* @__PURE__ */ d(w, {
124
126
  space: 8,
125
127
  children: [
126
- t && /* @__PURE__ */ r(y, {
128
+ i && /* @__PURE__ */ e(B, {
127
129
  as: "p",
128
130
  regular: !0,
129
- children: t
131
+ children: i
130
132
  }),
131
- o && /* @__PURE__ */ r(D, {
132
- as: i,
133
- children: o
133
+ t && /* @__PURE__ */ e(O, {
134
+ as: n,
135
+ children: t
134
136
  })
135
137
  ]
136
138
  }),
137
- n && /* @__PURE__ */ r(y, {
139
+ l && /* @__PURE__ */ e(B, {
138
140
  as: "p",
139
141
  regular: !0,
140
- color: a.colors.textSecondary,
141
- truncate: l,
142
- children: n
142
+ color: $.colors.textSecondary,
143
+ truncate: o,
144
+ children: l
143
145
  })
144
146
  ]
145
147
  }),
146
- s && /* @__PURE__ */ r("div", {
147
- children: s
148
+ a && /* @__PURE__ */ e("div", {
149
+ children: a
148
150
  })
149
151
  ]
150
152
  }),
151
- (p || c) && /* @__PURE__ */ r("div", {
152
- className: $,
153
- children: /* @__PURE__ */ r(j, {
154
- primaryButton: p,
155
- secondaryButton: h,
156
- link: c
153
+ (c || m) && /* @__PURE__ */ e("div", {
154
+ className: F,
155
+ children: /* @__PURE__ */ e(z, {
156
+ primaryButton: c,
157
+ secondaryButton: f,
158
+ link: m
157
159
  })
158
160
  })
159
161
  ]
160
162
  });
161
- }, R = {
162
- default: a.colors.background,
163
- alternative: a.colors.backgroundAlternative,
164
- brand: a.colors.backgroundBrand,
165
- "brand-secondary": a.colors.backgroundBrandSecondary
166
- }, Y = /*#__PURE__*/ I.forwardRef((_param, s)=>{
167
- var { height: e, background: o = "default", media: i, desktopMediaPosition: t = "left", dataAttributes: n } = _param, l = _object_without_properties(_param, [
163
+ }, U = /*#__PURE__*/ V.forwardRef((_param, c)=>{
164
+ var { height: r, background: t = "default", media: n, desktopMediaPosition: i = "left", dataAttributes: l, noPaddingY: o } = _param, a = _object_without_properties(_param, [
168
165
  "height",
169
166
  "background",
170
167
  "media",
171
168
  "desktopMediaPosition",
172
- "dataAttributes"
169
+ "dataAttributes",
170
+ "noPaddingY"
173
171
  ]);
174
- const { isTabletOrSmaller: p } = T(), h = A(), c = o === "brand" || o === "brand-secondary";
175
- if (p) return /* @__PURE__ */ r("div", {
176
- style: f({
177
- [N.mediaBorderRadius]: "0px"
172
+ const { isTabletOrSmaller: f } = G(), m = J(), y = !!m, h = y && m.withBullets, j = K(), N = t === "none" ? j : t === "brand" || t === "brand-secondary";
173
+ if (f) return /* @__PURE__ */ e("div", _object_spread_props(_object_spread({}, R(_object_spread({
174
+ "component-name": "Hero"
175
+ }, l))), {
176
+ ref: c,
177
+ style: _object_spread({}, r === "100vh" ? {
178
+ maxHeight: "-webkit-fill-available"
179
+ } : {}, I({
180
+ [H.height]: typeof r == "number" ? `${r}px` : r !== null && r !== void 0 ? r : "100%",
181
+ [g.mediaBorderRadius]: "0px"
182
+ })),
183
+ className: s(u, E, {
184
+ [C]: !o
178
185
  }),
179
- children: /* @__PURE__ */ m("div", _object_spread_props(_object_spread({}, S(_object_spread({
180
- "component-name": "Hero"
181
- }, n))), {
182
- ref: s,
183
- style: _object_spread({
184
- backgroundColor: R[o]
185
- }, e === "100vh" ? {
186
- maxHeight: "-webkit-fill-available"
187
- } : {}, f({
188
- [B.height]: e !== null && e !== void 0 ? e : "100%"
189
- })),
190
- className: u(g, G),
191
- children: [
192
- i,
193
- /* @__PURE__ */ r(C, {
194
- isInverse: c,
195
- children: /* @__PURE__ */ r(d, {
196
- paddingTop: 24,
197
- paddingBottom: h ? 48 : 24,
198
- children: /* @__PURE__ */ r(v, _object_spread({}, l))
186
+ children: /* @__PURE__ */ e(T, {
187
+ isInverse: N,
188
+ isInsideSlideShow: y,
189
+ children: /* @__PURE__ */ d("div", {
190
+ className: s(M),
191
+ children: [
192
+ n,
193
+ /* @__PURE__ */ e("div", {
194
+ className: s(S[t], q),
195
+ children: /* @__PURE__ */ e(p, {
196
+ paddingTop: 24,
197
+ paddingBottom: h ? 48 : o ? 0 : 24,
198
+ className: s(x, A),
199
+ children: /* @__PURE__ */ e(v, _object_spread({}, a))
200
+ })
199
201
  })
200
- })
201
- ]
202
- }))
203
- });
204
- const H = t === "left" ? i : /* @__PURE__ */ r(d, {
202
+ ]
203
+ })
204
+ })
205
+ }));
206
+ const k = i === "left" ? n : /* @__PURE__ */ e(p, {
205
207
  paddingRight: 24,
206
- children: /* @__PURE__ */ r(v, _object_spread({}, l))
207
- }), w = t === "right" ? i : /* @__PURE__ */ r(d, {
208
+ children: /* @__PURE__ */ e(v, _object_spread({}, a))
209
+ }), L = i === "right" ? n : /* @__PURE__ */ e(p, {
208
210
  paddingLeft: 24,
209
- children: /* @__PURE__ */ r(v, _object_spread({}, l))
211
+ children: /* @__PURE__ */ e(v, _object_spread({}, a))
210
212
  });
211
- return /* @__PURE__ */ r("div", {
212
- style: f({
213
- [N.mediaBorderRadius]: a.borderRadii.container
214
- }),
215
- children: /* @__PURE__ */ r("div", _object_spread_props(_object_spread({}, S(_object_spread({
216
- "component-name": "Hero"
217
- }, n))), {
218
- ref: s,
219
- style: _object_spread({
220
- backgroundColor: R[o]
221
- }, e === "100vh" ? {
222
- maxHeight: "-webkit-fill-available"
223
- } : {}, f({
224
- [B.height]: e !== null && e !== void 0 ? e : "100%"
225
- })),
226
- className: k({
227
- height: "100%",
228
- display: "flex",
229
- alignItems: "center"
230
- }),
231
- children: /* @__PURE__ */ r(C, {
232
- isInverse: c,
233
- children: /* @__PURE__ */ r(O, {
234
- template: "6+6",
235
- left: /* @__PURE__ */ r(d, {
236
- paddingY: 56,
237
- className: u(g, b),
238
- children: H
213
+ return /* @__PURE__ */ e("div", _object_spread_props(_object_spread({}, R(_object_spread({
214
+ "component-name": "Hero"
215
+ }, l))), {
216
+ ref: c,
217
+ style: _object_spread({}, r === "100vh" ? {
218
+ maxHeight: "-webkit-fill-available"
219
+ } : {}, I({
220
+ [H.height]: typeof r == "number" ? `${r}px` : r !== null && r !== void 0 ? r : "100%",
221
+ [g.mediaBorderRadius]: $.borderRadii.container
222
+ })),
223
+ className: s(D({
224
+ height: "100%"
225
+ }), S[t]),
226
+ children: /* @__PURE__ */ e(T, {
227
+ isInverse: N,
228
+ children: /* @__PURE__ */ e(W, {
229
+ template: "6+6",
230
+ left: /* @__PURE__ */ e(p, {
231
+ paddingTop: o ? 0 : 56,
232
+ paddingBottom: o && !h ? 0 : 56,
233
+ className: s(u, b, {
234
+ [C]: !o
239
235
  }),
240
- right: /* @__PURE__ */ r(d, {
241
- paddingY: 56,
242
- className: u(g, b),
243
- children: w
244
- })
236
+ children: k
237
+ }),
238
+ right: /* @__PURE__ */ e(p, {
239
+ paddingTop: o ? 0 : 56,
240
+ paddingBottom: o && !h ? 0 : 56,
241
+ className: s(u, b),
242
+ children: L
245
243
  })
246
244
  })
247
- }))
248
- });
249
- }), or = Y;
250
- export { or as default };
245
+ })
246
+ }));
247
+ }), de = U;
248
+ export { de as default };
@@ -1,7 +1,7 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./highlighted-card.css.ts.vanilla.css-mistica.js";
3
- var f = "wrb8722 _1y2v1nfha _1y2v1nfhf _1y2v1nfhm _1y2v1nfhs", y = "wrb8725 _1y2v1nfha", _ = {
4
- withImage: "wrb8728 wrb8727 _1y2v1nfha _1y2v1nfhg _1y2v1nfho _1y2v1nf7o _1y2v1nf8x _1y2v1nfa0",
5
- withoutImage: "wrb8729 wrb8727 _1y2v1nfha _1y2v1nfhg _1y2v1nfho _1y2v1nf7o _1y2v1nf8x _1y2v1nfa0"
6
- }, a = "_1y2v1nf73 _1y2v1nf8c _1y2v1nf9l _1y2v1nfau _1y2v1nfha _1y2v1nfhs _1y2v1nfjs _1y2v1nfhx _1y2v1nf72";
7
- export { f as container, y as imageContent, _ as textContainerVariant, a as touchableContainer };
3
+ var y = "wrb8722 _1y2v1nfhk _1y2v1nfhp _1y2v1nfhw _1y2v1nfi2", f = "wrb8725 _1y2v1nfhk", _ = {
4
+ withImage: "wrb8728 wrb8727 _1y2v1nfhk _1y2v1nfhq _1y2v1nfhy _1y2v1nf7y _1y2v1nf97 _1y2v1nfaa",
5
+ withoutImage: "wrb8729 wrb8727 _1y2v1nfhk _1y2v1nfhq _1y2v1nfhy _1y2v1nf7y _1y2v1nf97 _1y2v1nfaa"
6
+ }, a = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfhk _1y2v1nfi2 _1y2v1nfk2 _1y2v1nfi7 _1y2v1nf7c";
7
+ export { y as container, f as imageContent, _ as textContainerVariant, a as touchableContainer };
package/dist-es/hooks.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import * as r from "react";
2
- import S from "./theme-context.js";
3
- import b from "./screen-size-context.js";
4
- import y from "./aria-id-getter-context.js";
5
- import { listenResize as W } from "./utils/dom.js";
2
+ import b from "./theme-context.js";
3
+ import y from "./screen-size-context.js";
4
+ import W from "./aria-id-getter-context.js";
5
+ import { listenResize as x } from "./utils/dom.js";
6
6
  import { isClientSide as h } from "./utils/environment.js";
7
- import { isEqual as v } from "./utils/helpers.js";
8
- const x = ()=>{
9
- const t = r.useContext(S);
7
+ import { isEqual as E } from "./utils/helpers.js";
8
+ const H = ()=>{
9
+ const t = r.useContext(b);
10
10
  if (!t) throw Error("To use @telefonica/mistica components you must instantiate <ThemeContextProvider> as their parent.");
11
11
  return t;
12
12
  };
13
- let l = "", w = 0, a = 0;
14
- const A = (t)=>{
13
+ let a = "", m = 0, w = 0;
14
+ const L = (t)=>{
15
15
  r.useEffect(()=>{
16
16
  if (t) {
17
17
  const n = document.scrollingElement || document.documentElement, e = ()=>{
18
18
  var i;
19
19
  var _ref, _ref1;
20
- if (a++, !(a > 1) && (w = (_ref = n == null ? void 0 : n.scrollTop) !== null && _ref !== void 0 ? _ref : 0, l = (_ref1 = (i = document.body) == null ? void 0 : i.style.cssText) !== null && _ref1 !== void 0 ? _ref1 : "", document.body)) {
20
+ if (w++, !(w > 1) && (m = (_ref = n == null ? void 0 : n.scrollTop) !== null && _ref !== void 0 ? _ref : 0, a = (_ref1 = (i = document.body) == null ? void 0 : i.style.cssText) !== null && _ref1 !== void 0 ? _ref1 : "", document.body)) {
21
21
  var _ref2;
22
22
  const o = window.innerWidth > ((_ref2 = n == null ? void 0 : n.clientWidth) !== null && _ref2 !== void 0 ? _ref2 : window.innerWidth) ? "scroll" : "hidden";
23
- document.body.style.cssText = l + (l.endsWith(";") ? "" : ";") + [
23
+ document.body.style.cssText = a + (a.endsWith(";") ? "" : ";") + [
24
24
  "overflow: hidden;",
25
25
  `overflow-y: ${o};`,
26
26
  "position: fixed;",
27
- `top: ${-w}px;`,
27
+ `top: ${-m}px;`,
28
28
  "left: 0px;",
29
29
  "right: 0px;",
30
30
  "bottom: 0px;",
@@ -32,7 +32,7 @@ const A = (t)=>{
32
32
  ].join("");
33
33
  }
34
34
  }, s = ()=>{
35
- a--, !(a > 0) && (document.body && (document.body.style.cssText = l), n && (n.scrollTop = w));
35
+ w--, !(w > 0) && (document.body && (document.body.style.cssText = a), n && (n.scrollTop = m));
36
36
  };
37
37
  return e(), s;
38
38
  }
@@ -40,14 +40,14 @@ const A = (t)=>{
40
40
  }, [
41
41
  t
42
42
  ]);
43
- }, L = ()=>r.useContext(b), M = ()=>{
43
+ }, M = ()=>r.useContext(y), q = ()=>{
44
44
  const [t, n] = r.useState(0), [e, s] = r.useState(0), [i, c] = r.useState(null), o = r.useCallback((d)=>{
45
45
  if (!d) {
46
46
  n(0), s(0);
47
47
  return;
48
48
  }
49
- const { width: m, height: g } = d[0].contentRect;
50
- n(m), s(g);
49
+ const { width: f, height: l } = d[0].contentRect;
50
+ n(f), s(l);
51
51
  }, []), u = r.useCallback((d)=>{
52
52
  c(d);
53
53
  }, []);
@@ -56,7 +56,7 @@ const A = (t)=>{
56
56
  n(0), s(0);
57
57
  return;
58
58
  }
59
- return W(i, o);
59
+ return x(i, o);
60
60
  }, [
61
61
  i,
62
62
  o
@@ -65,45 +65,46 @@ const A = (t)=>{
65
65
  height: e,
66
66
  ref: u
67
67
  };
68
- }, q = (t)=>{
69
- const { useId: n } = x();
68
+ }, D = (t)=>{
69
+ const { useId: n } = H();
70
70
  if (n) {
71
71
  const e = n();
72
72
  return t || e;
73
73
  } else {
74
- const e = r.useContext(y);
74
+ const e = r.useContext(W);
75
75
  return r.useRef(t || e()).current;
76
76
  }
77
- }, f = ()=>{
78
- const [t, n] = r.useState(h() ? window.innerHeight : 1200), [e, s] = r.useState(h() ? window.innerWidth : 800), [i, c] = r.useState(h() ? window.screen.availHeight : 1200), [o, u] = r.useState(h() ? window.screen.availWidth : 800);
77
+ }, v = ()=>{
78
+ var l;
79
+ const [t, n] = r.useState(h() ? window.innerHeight : 1200), [e, s] = r.useState(h() ? window.innerWidth : 800), [i, c] = r.useState(h() ? window.screen.availHeight : 1200), [o, u] = r.useState(h() ? window.screen.availWidth : 800), [d, f] = r.useState(h() ? ((l = window.visualViewport) == null ? void 0 : l.height) || window.screen.availHeight : 1200);
79
80
  return r.useEffect(()=>{
80
- const d = ()=>{
81
- n(window.innerHeight), s(window.innerWidth), c(window.screen.availHeight), u(window.screen.availWidth);
81
+ const g = ()=>{
82
+ var S;
83
+ n(window.innerHeight), s(window.innerWidth), c(window.screen.availHeight), u(window.screen.availWidth), f(((S = window.visualViewport) == null ? void 0 : S.height) || window.screen.availHeight);
82
84
  };
83
- return window.addEventListener("resize", d), ()=>{
84
- window.removeEventListener("resize", d);
85
+ return window.addEventListener("resize", g), ()=>{
86
+ window.removeEventListener("resize", g);
85
87
  };
86
88
  }, []), r.useMemo(()=>({
87
89
  height: t,
88
90
  width: e,
89
91
  screenHeight: i,
90
- screenWidth: o
92
+ screenWidth: o,
93
+ visualHeight: d
91
94
  }), [
92
95
  t,
93
96
  e,
94
97
  i,
95
- o
98
+ o,
99
+ d
96
100
  ]);
97
- }, D = ()=>{
98
- const { height: t } = f();
101
+ }, k = ()=>{
102
+ const { height: t } = v();
99
103
  return t;
100
104
  }, F = ()=>{
101
- const { width: t } = f();
102
- return t;
103
- }, V = ()=>{
104
- const { screenHeight: t } = f();
105
+ const { width: t } = v();
105
106
  return t;
106
- }, k = ()=>h() && window.top !== window.self, $ = h() ? r.useLayoutEffect : r.useEffect, E = (t, n, e)=>{
107
+ }, $ = h() ? r.useLayoutEffect : r.useEffect, I = (t, n, e)=>{
107
108
  const [s, i] = r.useState(n);
108
109
  return r.useEffect(()=>{
109
110
  if (!t.current) return;
@@ -124,7 +125,7 @@ const A = (t)=>{
124
125
  e == null ? void 0 : e.rootMargin,
125
126
  e == null ? void 0 : e.threshold
126
127
  ]), s;
127
- }, I = (t)=>{
128
+ }, T = (t)=>{
128
129
  const { top: n, right: e, bottom: s, left: i, width: c, height: o, x: u, y: d } = t.getBoundingClientRect();
129
130
  return {
130
131
  top: n,
@@ -138,13 +139,13 @@ const A = (t)=>{
138
139
  };
139
140
  }, j = function(t) {
140
141
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
141
- const [s, i] = r.useState(), c = E(t, !1);
142
+ const [s, i] = r.useState(), c = I(t, !1);
142
143
  return r.useEffect(()=>{
143
144
  let o;
144
145
  const u = ()=>{
145
146
  if (t.current && (c || e)) {
146
- const d = I(t.current);
147
- v(s, d) || i(d), n && (o = requestAnimationFrame(u));
147
+ const d = T(t.current);
148
+ E(s, d) || i(d), n && (o = requestAnimationFrame(u));
148
149
  } else i(void 0);
149
150
  };
150
151
  return o = requestAnimationFrame(u), ()=>{
@@ -158,4 +159,4 @@ const A = (t)=>{
158
159
  e
159
160
  ]), s;
160
161
  };
161
- export { q as useAriaId, j as useBoundingRect, A as useDisableBodyScroll, M as useElementDimensions, E as useIsInViewport, k as useIsWithinIFrame, $ as useIsomorphicLayoutEffect, V as useScreenHeight, L as useScreenSize, x as useTheme, D as useWindowHeight, f as useWindowSize, F as useWindowWidth };
162
+ export { D as useAriaId, j as useBoundingRect, L as useDisableBodyScroll, q as useElementDimensions, I as useIsInViewport, $ as useIsomorphicLayoutEffect, M as useScreenSize, H as useTheme, k as useWindowHeight, v as useWindowSize, F as useWindowWidth };