@telefonica/mistica 14.17.1 → 14.18.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 (176) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +3 -3
  3. package/dist/badge.css-mistica.js +3 -3
  4. package/dist/box.d.ts +8 -8
  5. package/dist/box.js +28 -21
  6. package/dist/boxed.css-mistica.js +1 -1
  7. package/dist/button-group.css-mistica.js +1 -1
  8. package/dist/button-layout.css-mistica.js +8 -8
  9. package/dist/button.css-mistica.js +19 -19
  10. package/dist/callout.css-mistica.js +1 -1
  11. package/dist/card.css-mistica.js +27 -18
  12. package/dist/card.css.d.ts +3 -0
  13. package/dist/card.d.ts +37 -14
  14. package/dist/card.js +442 -268
  15. package/dist/carousel.css-mistica.js +16 -16
  16. package/dist/checkbox.css-mistica.js +10 -10
  17. package/dist/chip.css-mistica.js +4 -4
  18. package/dist/circle.css-mistica.js +2 -2
  19. package/dist/circle.d.ts +2 -0
  20. package/dist/circle.js +61 -7
  21. package/dist/community/advanced-data-card.css-mistica.js +69 -0
  22. package/dist/community/advanced-data-card.css.d.ts +20 -0
  23. package/dist/community/advanced-data-card.css.ts.vanilla.css-mistica.js +11 -0
  24. package/dist/community/advanced-data-card.d.ts +39 -0
  25. package/dist/community/advanced-data-card.js +317 -0
  26. package/dist/community/blocks.css-mistica.js +21 -0
  27. package/dist/community/blocks.css.d.ts +2 -0
  28. package/dist/community/blocks.css.ts.vanilla.css-mistica.js +11 -0
  29. package/dist/community/blocks.d.ts +73 -0
  30. package/dist/community/blocks.js +258 -0
  31. package/dist/community/index.d.ts +2 -0
  32. package/dist/community/index.js +31 -3
  33. package/dist/credit-card-number-field.css-mistica.js +3 -3
  34. package/dist/dialog.css-mistica.js +9 -9
  35. package/dist/double-field.css-mistica.js +2 -2
  36. package/dist/empty-state-card.css-mistica.js +1 -1
  37. package/dist/empty-state.css-mistica.js +4 -4
  38. package/dist/empty-state.js +4 -4
  39. package/dist/feedback.css-mistica.js +3 -3
  40. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  41. package/dist/grid.css.d.ts +6 -6
  42. package/dist/header.css-mistica.js +24 -0
  43. package/dist/header.css.d.ts +3 -0
  44. package/dist/header.css.ts.vanilla.css-mistica.js +11 -0
  45. package/dist/header.d.ts +3 -0
  46. package/dist/header.js +121 -101
  47. package/dist/hero.css-mistica.js +4 -4
  48. package/dist/highlighted-card.css-mistica.js +5 -5
  49. package/dist/horizontal-scroll.css-mistica.js +1 -1
  50. package/dist/icon-button.css-mistica.js +1 -1
  51. package/dist/image.css-mistica.js +1 -1
  52. package/dist/image.d.ts +19 -6
  53. package/dist/image.js +64 -61
  54. package/dist/index.d.ts +1 -1
  55. package/dist/index.js +6 -0
  56. package/dist/list.css-mistica.js +14 -14
  57. package/dist/list.js +11 -10
  58. package/dist/loading-bar.css-mistica.js +5 -5
  59. package/dist/maybe-dismissable.css-mistica.js +1 -1
  60. package/dist/menu.css-mistica.js +2 -2
  61. package/dist/navigation-bar.css-mistica.js +16 -16
  62. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  63. package/dist/package-version.js +1 -1
  64. package/dist/password-field.css-mistica.js +2 -2
  65. package/dist/popover.css-mistica.js +11 -11
  66. package/dist/progress-bar.css-mistica.js +3 -3
  67. package/dist/radio-button.css-mistica.js +12 -12
  68. package/dist/responsive-layout.css-mistica.js +2 -2
  69. package/dist/screen-reader-only.css-mistica.js +1 -1
  70. package/dist/select.css-mistica.js +12 -12
  71. package/dist/skeletons.css-mistica.js +3 -3
  72. package/dist/snackbar.css-mistica.js +5 -5
  73. package/dist/spinner.css-mistica.js +1 -1
  74. package/dist/sprinkles.css-mistica.js +648 -336
  75. package/dist/sprinkles.css.d.ts +36 -7
  76. package/dist/stack.css-mistica.js +7 -4
  77. package/dist/stack.css.d.ts +3 -0
  78. package/dist/stack.d.ts +4 -2
  79. package/dist/stack.js +20 -13
  80. package/dist/stacking-group.css-mistica.js +1 -1
  81. package/dist/stepper.css-mistica.js +9 -9
  82. package/dist/switch-component.css-mistica.js +21 -21
  83. package/dist/tabs.css-mistica.js +11 -11
  84. package/dist/tag.css-mistica.js +1 -1
  85. package/dist/text-field-base.css-mistica.js +11 -11
  86. package/dist/text-field-components.css-mistica.js +15 -15
  87. package/dist/text-link.css-mistica.js +5 -5
  88. package/dist/theme.d.ts +2 -0
  89. package/dist/theme.js +49 -41
  90. package/dist/tooltip.css-mistica.js +9 -9
  91. package/dist/touchable.css-mistica.js +3 -3
  92. package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
  93. package/dist/utils/aspect-ratio-support.d.ts +4 -2
  94. package/dist/utils/aspect-ratio-support.js +17 -16
  95. package/dist/utils/types.d.ts +5 -0
  96. package/dist/utils/utility-types.d.ts +7 -0
  97. package/dist/video.css-mistica.js +2 -2
  98. package/dist/video.js +26 -78
  99. package/dist-es/avatar.css-mistica.js +2 -2
  100. package/dist-es/badge.css-mistica.js +2 -2
  101. package/dist-es/box.js +32 -25
  102. package/dist-es/boxed.css-mistica.js +1 -1
  103. package/dist-es/button-group.css-mistica.js +1 -1
  104. package/dist-es/button-layout.css-mistica.js +7 -7
  105. package/dist-es/button.css-mistica.js +9 -9
  106. package/dist-es/callout.css-mistica.js +1 -1
  107. package/dist-es/card.css-mistica.js +4 -4
  108. package/dist-es/card.js +549 -384
  109. package/dist-es/carousel.css-mistica.js +2 -2
  110. package/dist-es/checkbox.css-mistica.js +6 -6
  111. package/dist-es/chip.css-mistica.js +4 -4
  112. package/dist-es/circle.css-mistica.js +2 -2
  113. package/dist-es/circle.js +66 -12
  114. package/dist-es/community/advanced-data-card.css-mistica.js +7 -0
  115. package/dist-es/community/advanced-data-card.css.ts.vanilla.css-mistica.js +2 -0
  116. package/dist-es/community/advanced-data-card.js +256 -0
  117. package/dist-es/community/blocks.css-mistica.js +4 -0
  118. package/dist-es/community/blocks.css.ts.vanilla.css-mistica.js +2 -0
  119. package/dist-es/community/blocks.js +224 -0
  120. package/dist-es/community/index.js +4 -2
  121. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  122. package/dist-es/dialog.css-mistica.js +5 -5
  123. package/dist-es/double-field.css-mistica.js +2 -2
  124. package/dist-es/empty-state-card.css-mistica.js +1 -1
  125. package/dist-es/empty-state.css-mistica.js +3 -3
  126. package/dist-es/empty-state.js +11 -11
  127. package/dist-es/feedback.css-mistica.js +2 -2
  128. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  129. package/dist-es/header.css-mistica.js +4 -0
  130. package/dist-es/header.css.ts.vanilla.css-mistica.js +2 -0
  131. package/dist-es/header.js +141 -121
  132. package/dist-es/hero.css-mistica.js +2 -2
  133. package/dist-es/highlighted-card.css-mistica.js +5 -5
  134. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  135. package/dist-es/icon-button.css-mistica.js +1 -1
  136. package/dist-es/image.css-mistica.js +1 -1
  137. package/dist-es/image.js +76 -73
  138. package/dist-es/index.js +1710 -1710
  139. package/dist-es/list.css-mistica.js +2 -2
  140. package/dist-es/list.js +22 -21
  141. package/dist-es/loading-bar.css-mistica.js +2 -2
  142. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  143. package/dist-es/menu.css-mistica.js +2 -2
  144. package/dist-es/navigation-bar.css-mistica.js +9 -9
  145. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  146. package/dist-es/package-version.js +1 -1
  147. package/dist-es/password-field.css-mistica.js +2 -2
  148. package/dist-es/popover.css-mistica.js +2 -2
  149. package/dist-es/progress-bar.css-mistica.js +2 -2
  150. package/dist-es/radio-button.css-mistica.js +6 -6
  151. package/dist-es/responsive-layout.css-mistica.js +2 -2
  152. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  153. package/dist-es/select.css-mistica.js +10 -10
  154. package/dist-es/skeletons.css-mistica.js +2 -2
  155. package/dist-es/snackbar.css-mistica.js +2 -2
  156. package/dist-es/spinner.css-mistica.js +1 -1
  157. package/dist-es/sprinkles.css-mistica.js +648 -336
  158. package/dist-es/stack.css-mistica.js +6 -3
  159. package/dist-es/stack.js +27 -20
  160. package/dist-es/stacking-group.css-mistica.js +1 -1
  161. package/dist-es/stepper.css-mistica.js +2 -2
  162. package/dist-es/style.css +1 -1
  163. package/dist-es/switch-component.css-mistica.js +18 -18
  164. package/dist-es/tabs.css-mistica.js +7 -7
  165. package/dist-es/tag.css-mistica.js +1 -1
  166. package/dist-es/text-field-base.css-mistica.js +2 -2
  167. package/dist-es/text-field-components.css-mistica.js +2 -2
  168. package/dist-es/text-link.css-mistica.js +5 -5
  169. package/dist-es/theme.js +52 -44
  170. package/dist-es/tooltip.css-mistica.js +3 -3
  171. package/dist-es/touchable.css-mistica.js +2 -2
  172. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  173. package/dist-es/utils/aspect-ratio-support.js +17 -16
  174. package/dist-es/video.css-mistica.js +2 -2
  175. package/dist-es/video.js +36 -88
  176. package/package.json +2 -2
@@ -2,10 +2,10 @@ import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./responsive-layout.css.ts.vanilla.css-mistica.js";
3
3
  import "./grid-layout.css.ts.vanilla.css-mistica.js";
4
4
  import "./carousel.css.ts.vanilla.css-mistica.js";
5
- var f = "_1abcu71 _1y2v1nf8k _1y2v1nf90 _1y2v1nfab _1y2v1nf44", y = "_1abcu72 _1abcu71 _1y2v1nf8k _1y2v1nf90 _1y2v1nfab _1y2v1nf45", r = "_1abcu72 _1abcu71 _1y2v1nf8k _1y2v1nf90 _1y2v1nfab _1y2v1nf4k", b = "_1abcu75 _1abcu71 _1y2v1nf8k _1y2v1nf90 _1y2v1nfab", e = "_1abcu7l _1abcu7b _1y2v1nf64 _1y2v1nf9c", u = "_1y2v1nf64 _1y2v1nf6d", c = "_1y2v1nf9p _1y2v1nf5z", t = "_1abcu7o", o = "_1abcu7s _1abcu7q _1abcu7d _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d _1y2v1nfab _1y2v1nf31 _1y2v1nf8q _1y2v1nf96 _1y2v1nfa9 _1y2v1nf60", l = "_1abcu7r _1abcu7q _1abcu7d _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d _1y2v1nfab _1y2v1nf31 _1y2v1nf8q _1y2v1nf96 _1y2v1nfa9 _1y2v1nf60", s = "_1abcu7m", i = "_1abcu7n", d = "_1abcu7v _1abcu7b _1y2v1nf64 _1y2v1nf9c", m = "_1abcu713 _1y2v1nf60 _1y2v1nfca _1y2v1nf64 _1y2v1nf6d _1y2v1nf8f", w = "_1y2v1nf5z", h = "_1abcu7x _1y2v1nf8f _1y2v1nf6m", p = "_1abcu711 _1abcu7q _1abcu7d _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d _1y2v1nfab _1y2v1nf31 _1y2v1nf8q _1y2v1nf96 _1y2v1nfa9 _1y2v1nf60 _1y2v1nfbv", q = "_1abcu7z _1abcu7q _1abcu7d _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d _1y2v1nfab _1y2v1nf31 _1y2v1nf8q _1y2v1nf96 _1y2v1nfa9 _1y2v1nf60 _1y2v1nfbg", P = {
5
+ var f = "_1abcu71 _1y2v1nfbw _1y2v1nfcc _1y2v1nfdn _1y2v1nf44", b = "_1abcu72 _1abcu71 _1y2v1nfbw _1y2v1nfcc _1y2v1nfdn _1y2v1nf45", y = "_1abcu72 _1abcu71 _1y2v1nfbw _1y2v1nfcc _1y2v1nfdn _1y2v1nf4k", c = "_1abcu75 _1abcu71 _1y2v1nfbw _1y2v1nfcc _1y2v1nfdn", r = "_1abcu7l _1abcu7b _1y2v1nfb4 _1y2v1nfco", e = "_1y2v1nfb4 _1y2v1nfbd", u = "_1y2v1nfd1 _1y2v1nfaz", l = "_1abcu7o", o = "_1abcu7s _1abcu7q _1abcu7d _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn _1y2v1nf31 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdl _1y2v1nfb0", t = "_1abcu7r _1abcu7q _1abcu7d _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn _1y2v1nf31 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdl _1y2v1nfb0", s = "_1abcu7m", d = "_1abcu7n", i = "_1abcu7v _1abcu7b _1y2v1nfb4 _1y2v1nfco", w = "_1abcu713 _1y2v1nfb0 _1y2v1nffm _1y2v1nfb4 _1y2v1nfbd _1y2v1nfbr", m = "_1y2v1nfaz", h = "_1abcu7x _1y2v1nfbr _1y2v1nfbm", P = "_1abcu711 _1abcu7q _1abcu7d _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn _1y2v1nf31 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdl _1y2v1nfb0 _1y2v1nff7", p = "_1abcu7z _1abcu7q _1abcu7d _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn _1y2v1nf31 _1y2v1nfc2 _1y2v1nfci _1y2v1nfdl _1y2v1nfb0 _1y2v1nfes", A = {
6
6
  itemsPerPageMobile: "var(--_1abcu7g)",
7
7
  itemsPerPageTablet: "var(--_1abcu7h)",
8
8
  itemsPerPageDesktop: "var(--_1abcu7i)",
9
9
  gap: "var(--_1abcu7j)"
10
10
  };
11
- export { f as bullet, y as bulletActive, r as bulletActiveInverse, b as bulletInverse, e as carousel, u as carouselBullets, c as carouselContainer, t as carouselItem, o as carouselNextArrowButton, l as carouselPrevArrowButton, s as carouselWithScroll, i as centeredCarousel, d as slideshow, m as slideshowBullets, w as slideshowContainer, h as slideshowItem, p as slideshowNextArrowButton, q as slideshowPrevArrowButton, P as vars };
11
+ export { f as bullet, b as bulletActive, y as bulletActiveInverse, c as bulletInverse, r as carousel, e as carouselBullets, u as carouselContainer, l as carouselItem, o as carouselNextArrowButton, t as carouselPrevArrowButton, s as carouselWithScroll, d as centeredCarousel, i as slideshow, w as slideshowBullets, m as slideshowContainer, h as slideshowItem, P as slideshowNextArrowButton, p as slideshowPrevArrowButton, A as vars };
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./checkbox.css.ts.vanilla.css-mistica.js";
3
- var n = {
4
- ios: "_1rz9b16 _1rz9b15 _1y2v1nf65 _1y2v1nf6d _1y2v1nf6j _1y2v1nf6m _1y2v1nfam _1y2v1nf30",
5
- rest: "_1rz9b17 _1rz9b15 _1y2v1nf65 _1y2v1nf6d _1y2v1nf6j _1y2v1nf6m _1y2v1nfam _1y2v1nf30",
6
- checked: "_1rz9b18 _1rz9b15 _1y2v1nf65 _1y2v1nf6d _1y2v1nf6j _1y2v1nf6m _1y2v1nfam _1y2v1nf30"
7
- }, r = "_1rz9b1a _1y2v1nf66", f = "_1rz9b1b", y = "_1rz9b12 _1rz9b11 _1y2v1nf67", b = "_1rz9b13 _1rz9b11 _1y2v1nf67", a = "_1rz9b1c";
8
- export { n as boxVariant, r as check, f as checkChecked, y as checkboxContainer, b as checkboxContainerDisabled, a as disabled };
3
+ var v = {
4
+ ios: "_1rz9b16 _1rz9b15 _1y2v1nfb5 _1y2v1nfbd _1y2v1nfbj _1y2v1nfbm _1y2v1nfdy _1y2v1nf30",
5
+ rest: "_1rz9b17 _1rz9b15 _1y2v1nfb5 _1y2v1nfbd _1y2v1nfbj _1y2v1nfbm _1y2v1nfdy _1y2v1nf30",
6
+ checked: "_1rz9b18 _1rz9b15 _1y2v1nfb5 _1y2v1nfbd _1y2v1nfbj _1y2v1nfbm _1y2v1nfdy _1y2v1nf30"
7
+ }, n = "_1rz9b1a _1y2v1nfb6", r = "_1rz9b1b", y = "_1rz9b12 _1rz9b11 _1y2v1nfb7", f = "_1rz9b13 _1rz9b11 _1y2v1nfb7", e = "_1rz9b1c";
8
+ export { v as boxVariant, n as check, r as checkChecked, y as checkboxContainer, f as checkboxContainerDisabled, e as disabled };
@@ -1,11 +1,11 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./chip.css.ts.vanilla.css-mistica.js";
3
- var c = "_1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nfaa _1y2v1nf5y", t = {
3
+ var c = "_1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfdm _1y2v1nf5y", t = {
4
4
  light: "cc7htnb cc7htn9",
5
5
  dark: "cc7htnc cc7htn9"
6
6
  }, f = {
7
- default: "cc7htn1 _1y2v1nf65 _1y2v1nf6d _1y2v1nf6j _1y2v1nfa9 _1y2v1nf31 _1y2v1nf1w",
8
- overAlternative: "cc7htn1 _1y2v1nf65 _1y2v1nf6d _1y2v1nf6j _1y2v1nfa9 _1y2v1nf38 _1y2v1nf1w",
9
- active: "cc7htn8 cc7htn2 cc7htn1 _1y2v1nf65 _1y2v1nf6d _1y2v1nf6j _1y2v1nfa9 _1y2v1nf16 _1y2v1nf5k"
7
+ default: "cc7htn1 _1y2v1nfb5 _1y2v1nfbd _1y2v1nfbj _1y2v1nfdl _1y2v1nf31 _1y2v1nf1w",
8
+ overAlternative: "cc7htn1 _1y2v1nfb5 _1y2v1nfbd _1y2v1nfbj _1y2v1nfdl _1y2v1nf38 _1y2v1nf1w",
9
+ active: "cc7htn8 cc7htn2 cc7htn1 _1y2v1nfb5 _1y2v1nfbd _1y2v1nfbj _1y2v1nfdl _1y2v1nf16 _1y2v1nf5k"
10
10
  }, y = "cc7htnd", _ = "cc7htne";
11
11
  export { c as button, t as chipInteractiveVariants, f as chipVariants, y as icon, _ as iconActive };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./circle.css.ts.vanilla.css-mistica.js";
3
- var r = "_1wpwyyp1 _1y2v1nf64 _1y2v1nf6j _1y2v1nf6d _1y2v1nfab";
4
- export { r as circle };
3
+ var p = "_1wpwyyp1 _1y2v1nfb4 _1y2v1nfbj _1y2v1nfbd _1y2v1nfdn";
4
+ export { p as circle };
package/dist-es/circle.js CHANGED
@@ -1,19 +1,73 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { circle as d } from "./circle.css-mistica.js";
3
- import { vars as m } from "./skins/skin-contract.css-mistica.js";
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ import { jsx as m } from "react/jsx-runtime";
54
+ import { circle as a } from "./circle.css-mistica.js";
55
+ import { vars as d } from "./skins/skin-contract.css-mistica.js";
56
+ import { getPrefixedDataAttributes as f } from "./utils/dom.js";
4
57
  const n = (param)=>{
5
- let { children: e , backgroundColor: s , backgroundImage: o , size: t , border: r = !1 } = param;
6
- const l = r === !0 ? m.colors.border : r, c = r ? `1px solid ${l}` : void 0;
7
- return /* @__PURE__ */ i("div", {
8
- className: d,
58
+ let { children: e , backgroundColor: i , backgroundImage: o , size: t , border: r = !1 , dataAttributes: s } = param;
59
+ const l = r === !0 ? d.colors.border : r, c = r ? `1px solid ${l}` : void 0;
60
+ return /* @__PURE__ */ m("div", _object_spread_props(_object_spread({
61
+ className: a,
9
62
  style: {
10
63
  width: t,
11
64
  height: t,
12
- backgroundColor: s,
65
+ backgroundColor: i,
13
66
  backgroundImage: o ? `url(${o})` : "none",
14
67
  border: c
15
- },
68
+ }
69
+ }, f(s, "Circle")), {
16
70
  children: e
17
- });
18
- }, u = n;
19
- export { u as default };
71
+ }));
72
+ }, b = n;
73
+ export { b as default };
@@ -0,0 +1,7 @@
1
+ import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
+ import "./advanced-data-card.css.ts.vanilla.css-mistica.js";
3
+ var _ = "_1x00fru3 _1x00fru1 _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nfbq _1y2v1nfbg _1y2v1nf7t", n = {
4
+ default: "_1x00frui",
5
+ mobile: "_1x00fruj"
6
+ }, v = "_1x00fruq", a = "_1x00fru5 _1y2v1nfb4", t = "_1x00frul", y = "_1x00frum _1x00frul", u = "_1x00fru8 _1x00fru1 _1y2v1nf8w _1y2v1nfa5 _1y2v1nfb4 _1y2v1nf68 _1y2v1nf7t", x = "_1y2v1nfb4 _1y2v1nfbq _1y2v1nfba _1y2v1nfbr _1y2v1nfc8 _1x00fru9", i = "_1x00frug", o = "_1x00frun", b = "_1x00frup _1y2v1nfb4 _1y2v1nfb9", e = "_1y2v1nfb4 _1y2v1nfbq _1y2v1nfbj _1y2v1nfdd", d = "_1x00fru6", g = "_1x00fruk", m = "_1y2v1nff5", c = "_1x00fru9", l = "_1x00fru1 _1y2v1nf8w _1y2v1nfa5";
7
+ export { _ as actions, n as actionsVariants, v as adjustButtonLink, a as boxed, t as button, y as buttonMobile, u as cardContentStyle, x as dataCard, i as divider, o as extraTop, b as footerDirection, e as footerText, d as interaction, g as marginRightAuto, m as marginRightButton, c as minHeight, l as paddingX };
@@ -0,0 +1,2 @@
1
+ const a = "";
2
+ export { a as default };
@@ -0,0 +1,256 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ import { jsx as e, jsxs as r, Fragment as F } from "react/jsx-runtime";
30
+ import * as V from "react";
31
+ import { Boxed as W } from "../boxed.js";
32
+ import { sprinkles as s } from "../sprinkles.css-mistica.js";
33
+ import f from "../stack.js";
34
+ import { boxed as X, dataCard as Y, interaction as q, cardContentStyle as E, minHeight as J, extraTop as K, paddingX as O, divider as Q, actions as U, actionsVariants as Z, marginRightButton as _, buttonMobile as D, footerDirection as $, marginRightAuto as ee, footerText as re, adjustButtonLink as te, button as ae } from "./advanced-data-card.css-mistica.js";
35
+ import R from "../divider.js";
36
+ import { Text2 as v, Text as ie } from "../text.js";
37
+ import { vars as y } from "../skins/skin-contract.css-mistica.js";
38
+ import N from "../box.js";
39
+ import oe from "../touchable.js";
40
+ import p from "classnames";
41
+ import { CardActionsGroup as ne } from "../card.js";
42
+ import { useTheme as se } from "../hooks.js";
43
+ const ce = (param)=>{
44
+ let { headline: a , pretitle: i , pretitleAs: c = "p" , pretitleLinesMax: u , title: d , titleAs: l = "h3" , titleLinesMax: h , subtitle: m , subtitleLinesMax: o , description: t , descriptionLinesMax: g } = param;
45
+ const { textPresets: x } = se();
46
+ return /* @__PURE__ */ e(F, {
47
+ children: /* @__PURE__ */ e(f, {
48
+ space: 4,
49
+ children: /* @__PURE__ */ e("header", {
50
+ children: /* @__PURE__ */ r(f, {
51
+ space: 4,
52
+ children: [
53
+ a,
54
+ /* @__PURE__ */ r(f, {
55
+ space: 4,
56
+ children: [
57
+ i && /* @__PURE__ */ e(v, {
58
+ color: y.colors.textPrimary,
59
+ truncate: u,
60
+ as: c,
61
+ regular: !0,
62
+ hyphens: "auto",
63
+ children: i
64
+ }),
65
+ /* @__PURE__ */ e(ie, {
66
+ mobileSize: 18,
67
+ mobileLineHeight: "24px",
68
+ desktopSize: 20,
69
+ desktopLineHeight: "28px",
70
+ truncate: h,
71
+ weight: x.cardTitle.weight,
72
+ as: l,
73
+ hyphens: "auto",
74
+ children: d
75
+ }),
76
+ /* @__PURE__ */ e(v, {
77
+ color: y.colors.textPrimary,
78
+ truncate: o,
79
+ as: "p",
80
+ regular: !0,
81
+ hyphens: "auto",
82
+ children: m
83
+ })
84
+ ]
85
+ }),
86
+ t && /* @__PURE__ */ e(v, {
87
+ truncate: g,
88
+ as: "p",
89
+ regular: !0,
90
+ color: y.colors.textSecondary,
91
+ hyphens: "auto",
92
+ children: t
93
+ })
94
+ ]
95
+ })
96
+ })
97
+ })
98
+ });
99
+ }, de = (param)=>{
100
+ let { button: a , footerImage: i , footerText: c , footerTextLinesMax: u , buttonLink: d } = param;
101
+ const l = !!a, h = !!i, m = !!c, o = !!d, t = l && (h || m) && o, g = o && !t ? "178px" : "";
102
+ return /* @__PURE__ */ r(F, {
103
+ children: [
104
+ /* @__PURE__ */ e("div", {
105
+ className: Q,
106
+ children: /* @__PURE__ */ e(R, {})
107
+ }),
108
+ /* @__PURE__ */ r("div", {
109
+ className: p(U, Z[t ? "mobile" : "default"]),
110
+ children: [
111
+ l && /* @__PURE__ */ e("div", {
112
+ className: p(_, D),
113
+ children: a
114
+ }),
115
+ /* @__PURE__ */ r("div", {
116
+ className: p($, t ? ee : s({
117
+ paddingTop: 16
118
+ })),
119
+ children: [
120
+ h && /* @__PURE__ */ e(N, {
121
+ paddingRight: 16,
122
+ className: s({
123
+ alignItems: "center",
124
+ display: "flex"
125
+ }),
126
+ children: i
127
+ }),
128
+ m && /* @__PURE__ */ e("div", {
129
+ style: {
130
+ maxWidth: g
131
+ },
132
+ className: re,
133
+ children: /* @__PURE__ */ e(v, {
134
+ truncate: u,
135
+ regular: !0,
136
+ children: c
137
+ })
138
+ })
139
+ ]
140
+ }),
141
+ o && /* @__PURE__ */ e("div", {
142
+ className: p(te, t ? ae : D),
143
+ children: d
144
+ })
145
+ ]
146
+ })
147
+ ]
148
+ });
149
+ }, le = /*#__PURE__*/ V.forwardRef((param, L)=>{
150
+ let { onPress: a , stackingGroup: i , headline: c , pretitle: u , pretitleAs: d , pretitleLinesMax: l , title: h , titleAs: m , titleLinesMax: o , subtitle: t , subtitleLinesMax: g , description: x , descriptionLinesMax: S , extra: n , extraDividerPadding: k = 24 , button: b , footerImage: T , footerText: C , footerTextLinesMax: j , buttonLink: A , dataAttributes: H , actions: P , "aria-label": z , onClose: I } = param;
151
+ const G = {
152
+ button: b,
153
+ footerImage: T,
154
+ footerText: C,
155
+ footerTextLinesMax: j,
156
+ buttonLink: A
157
+ }, B = !!b || !!T || !!C || !!A;
158
+ return /* @__PURE__ */ e("section", {
159
+ className: s({
160
+ position: "relative",
161
+ height: "100%"
162
+ }),
163
+ children: /* @__PURE__ */ e(W, {
164
+ className: X,
165
+ dataAttributes: _object_spread({
166
+ "component-name": "AdvancedDataCard"
167
+ }, H),
168
+ ref: L,
169
+ width: "100%",
170
+ height: "100%",
171
+ children: /* @__PURE__ */ r("div", {
172
+ className: Y,
173
+ children: [
174
+ /* @__PURE__ */ e(oe, {
175
+ onPress: a,
176
+ tabIndex: 0,
177
+ maybe: !0,
178
+ className: s({
179
+ position: "relative",
180
+ height: "100%"
181
+ }),
182
+ "aria-label": z,
183
+ children: /* @__PURE__ */ r("div", {
184
+ className: a ? q : "",
185
+ children: [
186
+ /* @__PURE__ */ r("div", {
187
+ className: p(E, !B && !n ? J : ""),
188
+ children: [
189
+ /* @__PURE__ */ e(N, {
190
+ paddingTop: 8,
191
+ children: /* @__PURE__ */ r(f, {
192
+ space: 8,
193
+ className: s({
194
+ flex: 1
195
+ }),
196
+ children: [
197
+ i,
198
+ /* @__PURE__ */ e(ce, {
199
+ headline: c,
200
+ pretitle: u,
201
+ pretitleAs: d,
202
+ pretitleLinesMax: l,
203
+ title: h,
204
+ titleAs: m,
205
+ titleLinesMax: o,
206
+ subtitle: t,
207
+ subtitleLinesMax: g,
208
+ description: x,
209
+ descriptionLinesMax: S
210
+ })
211
+ ]
212
+ })
213
+ }),
214
+ /* @__PURE__ */ e(ne, {
215
+ actions: P,
216
+ onClose: I
217
+ })
218
+ ]
219
+ }),
220
+ /* @__PURE__ */ e("div", {
221
+ className: K,
222
+ children: n && n != null && n.length ? /* @__PURE__ */ e(N, {
223
+ paddingTop: 16,
224
+ paddingBottom: 24,
225
+ children: n.map((M, w)=>/* @__PURE__ */ r("div", {
226
+ children: [
227
+ /* @__PURE__ */ e("div", {
228
+ className: s({
229
+ display: "flex",
230
+ width: "100%"
231
+ }),
232
+ children: /* @__PURE__ */ e("div", {
233
+ className: p(s({
234
+ width: "100%"
235
+ }), O),
236
+ children: M
237
+ })
238
+ }),
239
+ w + 1 !== n.length && /* @__PURE__ */ e(N, {
240
+ paddingY: k,
241
+ children: /* @__PURE__ */ e(R, {})
242
+ })
243
+ ]
244
+ }, w))
245
+ }) : null
246
+ })
247
+ ]
248
+ })
249
+ }),
250
+ B && /* @__PURE__ */ e(de, _object_spread({}, G))
251
+ ]
252
+ })
253
+ })
254
+ });
255
+ }), Ae = le;
256
+ export { le as AdvancedDataCard, Ae as default };
@@ -0,0 +1,4 @@
1
+ import "../sprinkles.css.ts.vanilla.css-mistica.js";
2
+ import "./blocks.css.ts.vanilla.css-mistica.js";
3
+ var t = "_1y2v1nfb4 _1y2v1nfba", o = "llrsen1";
4
+ export { t as column, o as rightContent };
@@ -0,0 +1,2 @@
1
+ const s = "";
2
+ export { s as default };
@@ -0,0 +1,224 @@
1
+ import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
+ import p from "../stack.js";
3
+ import { column as x, rightContent as y } from "./blocks.css-mistica.js";
4
+ import { Text2 as i, Text5 as f, Text8 as h, Text3 as v } from "../text.js";
5
+ import { vars as c } from "../skins/skin-contract.css-mistica.js";
6
+ import s from "../inline.js";
7
+ import u from "../box.js";
8
+ import S from "../progress-bar.js";
9
+ import B from "classnames";
10
+ const g = (param)=>{
11
+ let { title: o , description: e } = param;
12
+ const l = typeof e == "string" ? [
13
+ e
14
+ ] : e;
15
+ return /* @__PURE__ */ a("div", {
16
+ className: x,
17
+ children: [
18
+ /* @__PURE__ */ r(v, {
19
+ regular: !0,
20
+ color: c.colors.textPrimary,
21
+ children: o
22
+ }),
23
+ l && l.map((t, n)=>/* @__PURE__ */ r(i, {
24
+ regular: !0,
25
+ color: c.colors.textSecondary,
26
+ as: "p",
27
+ children: t
28
+ }, n))
29
+ ]
30
+ });
31
+ }, L = (param)=>/* @__PURE__ */ {
32
+ let { title: o , stackingGroup: e , description: l , "aria-label": t } = param;
33
+ return r("div", {
34
+ "aria-label": t,
35
+ children: /* @__PURE__ */ a(s, {
36
+ space: "between",
37
+ alignItems: "center",
38
+ children: [
39
+ o && /* @__PURE__ */ r(u, {
40
+ paddingRight: 32,
41
+ children: /* @__PURE__ */ r(i, {
42
+ regular: !0,
43
+ children: o
44
+ })
45
+ }),
46
+ e || /* @__PURE__ */ r(i, {
47
+ regular: !0,
48
+ color: c.colors.textSecondary,
49
+ children: l
50
+ })
51
+ ]
52
+ })
53
+ });
54
+ }, V = (param)=>/* @__PURE__ */ {
55
+ let { image: o , description: e , "aria-label": l } = param;
56
+ return r("div", {
57
+ "aria-label": l,
58
+ children: /* @__PURE__ */ a(s, {
59
+ space: 16,
60
+ alignItems: "center",
61
+ children: [
62
+ o,
63
+ /* @__PURE__ */ r(i, {
64
+ regular: !0,
65
+ color: c.colors.textSecondary,
66
+ children: e
67
+ })
68
+ ]
69
+ })
70
+ });
71
+ }, q = (param)=>/* @__PURE__ */ {
72
+ let { title: o , description: e , secondaryValue: l , value: t , valueColor: n = c.colors.textPrimary , "aria-label": d } = param;
73
+ return a(s, {
74
+ space: "between",
75
+ alignItems: "flex-end",
76
+ "aria-label": d,
77
+ children: [
78
+ /* @__PURE__ */ r(g, {
79
+ title: o,
80
+ description: e
81
+ }),
82
+ /* @__PURE__ */ a("div", {
83
+ className: B(x, y),
84
+ children: [
85
+ /* @__PURE__ */ r(i, {
86
+ regular: !0,
87
+ color: c.colors.textSecondary,
88
+ children: l
89
+ }),
90
+ /* @__PURE__ */ r(f, {
91
+ color: n,
92
+ children: t
93
+ })
94
+ ]
95
+ })
96
+ ]
97
+ });
98
+ }, z = (param)=>/* @__PURE__ */ {
99
+ let { headline: o , mainHeading: e , secondHeading: l , secondaryValue: t , title: n , description: d , valueColor: m = c.colors.textPrimary , "aria-label": b } = param;
100
+ return a("div", {
101
+ "aria-label": b,
102
+ children: [
103
+ o && /* @__PURE__ */ r(u, {
104
+ paddingBottom: 24,
105
+ children: o
106
+ }),
107
+ /* @__PURE__ */ a(p, {
108
+ space: 2,
109
+ children: [
110
+ /* @__PURE__ */ a(s, {
111
+ space: 8,
112
+ alignItems: "baseline",
113
+ children: [
114
+ /* @__PURE__ */ r(h, {
115
+ color: m,
116
+ children: e.value
117
+ }),
118
+ /* @__PURE__ */ r(i, {
119
+ regular: !0,
120
+ color: c.colors.textSecondary,
121
+ children: e.text
122
+ })
123
+ ]
124
+ }),
125
+ l && /* @__PURE__ */ a(s, {
126
+ space: 8,
127
+ alignItems: "baseline",
128
+ children: [
129
+ /* @__PURE__ */ r(h, {
130
+ color: m,
131
+ children: l.value
132
+ }),
133
+ /* @__PURE__ */ r(i, {
134
+ regular: !0,
135
+ color: c.colors.textSecondary,
136
+ children: l.text
137
+ })
138
+ ]
139
+ }),
140
+ t && /* @__PURE__ */ r(h, {
141
+ color: c.colors.textSecondary,
142
+ children: t
143
+ })
144
+ ]
145
+ }),
146
+ n || d ? /* @__PURE__ */ r(u, {
147
+ paddingTop: 8,
148
+ children: /* @__PURE__ */ r(g, {
149
+ title: n,
150
+ description: d
151
+ })
152
+ }) : null
153
+ ]
154
+ });
155
+ }, A = (param)=>/* @__PURE__ */ {
156
+ let { title: o , value: e , description: l , valueColor: t = c.colors.textPrimary , "aria-label": n } = param;
157
+ return a("div", {
158
+ "aria-label": n,
159
+ className: x,
160
+ children: [
161
+ /* @__PURE__ */ r(i, {
162
+ regular: !0,
163
+ color: c.colors.textPrimary,
164
+ children: o
165
+ }),
166
+ /* @__PURE__ */ r(h, {
167
+ color: t,
168
+ children: e
169
+ }),
170
+ /* @__PURE__ */ r(g, {
171
+ description: l
172
+ })
173
+ ]
174
+ });
175
+ }, D = (param)=>/* @__PURE__ */ {
176
+ let { title: o , stackingGroup: e , progressPercent: l , reverse: t , heading: n , description: d , "aria-label": m } = param;
177
+ return r("div", {
178
+ "aria-label": m,
179
+ children: /* @__PURE__ */ a(p, {
180
+ space: 8,
181
+ children: [
182
+ /* @__PURE__ */ a(s, {
183
+ space: "between",
184
+ alignItems: "flex-end",
185
+ children: [
186
+ /* @__PURE__ */ r(u, {
187
+ paddingRight: 32,
188
+ children: /* @__PURE__ */ r(i, {
189
+ regular: !0,
190
+ children: o
191
+ })
192
+ }),
193
+ e
194
+ ]
195
+ }),
196
+ l && /* @__PURE__ */ r(S, {
197
+ progressPercent: l,
198
+ reverse: t
199
+ }),
200
+ /* @__PURE__ */ a(s, {
201
+ space: 8,
202
+ alignItems: "baseline",
203
+ children: [
204
+ /* @__PURE__ */ r(h, {
205
+ color: n.valueColor || c.colors.textPrimary,
206
+ children: n.value
207
+ }),
208
+ /* @__PURE__ */ r(i, {
209
+ regular: !0,
210
+ color: c.colors.textSecondary,
211
+ children: n.text
212
+ })
213
+ ]
214
+ }),
215
+ d && /* @__PURE__ */ r(i, {
216
+ regular: !0,
217
+ color: c.colors.textSecondary,
218
+ children: d
219
+ })
220
+ ]
221
+ })
222
+ });
223
+ };
224
+ export { z as HighlightedValueBlock, q as InformationBlock, D as ProgressBlock, L as RowBlock, V as SimpleBlock, A as ValueBlock };
@@ -1,2 +1,4 @@
1
- import { default as a } from "./example-component.js";
2
- export { a as ExampleComponent };
1
+ import { default as l } from "./example-component.js";
2
+ import { default as r } from "./advanced-data-card.js";
3
+ import { HighlightedValueBlock as c, InformationBlock as m, ProgressBlock as d, RowBlock as f, SimpleBlock as k, ValueBlock as p } from "./blocks.js";
4
+ export { r as AdvancedDataCard, l as ExampleComponent, c as HighlightedValueBlock, m as InformationBlock, d as ProgressBlock, f as RowBlock, k as SimpleBlock, p as ValueBlock };