@telefonica/mistica 14.5.0 → 14.7.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 (191) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/avatar.d.ts +1 -0
  4. package/dist/avatar.js +20 -18
  5. package/dist/badge.css-mistica.js +3 -3
  6. package/dist/boxed.d.ts +2 -1
  7. package/dist/boxed.js +17 -18
  8. package/dist/button-fixed-footer-layout.d.ts +1 -2
  9. package/dist/button-group.css-mistica.js +3 -3
  10. package/dist/button-group.d.ts +1 -1
  11. package/dist/button-layout.css-mistica.js +12 -12
  12. package/dist/button-layout.d.ts +1 -2
  13. package/dist/button.css-mistica.js +22 -22
  14. package/dist/button.d.ts +1 -1
  15. package/dist/button.js +93 -90
  16. package/dist/callout.css-mistica.js +1 -1
  17. package/dist/callout.d.ts +1 -1
  18. package/dist/callout.js +13 -9
  19. package/dist/card.css-mistica.js +8 -8
  20. package/dist/card.d.ts +3 -3
  21. package/dist/card.js +105 -93
  22. package/dist/carousel.css-mistica.js +7 -7
  23. package/dist/checkbox.css-mistica.js +9 -9
  24. package/dist/chip.css-mistica.js +11 -10
  25. package/dist/chip.css.d.ts +1 -1
  26. package/dist/chip.js +21 -20
  27. package/dist/circle.css-mistica.js +1 -1
  28. package/dist/credit-card-number-field.css-mistica.js +3 -3
  29. package/dist/cvv-field.css-mistica.js +3 -3
  30. package/dist/date-time-picker.js +7 -6
  31. package/dist/dialog.css-mistica.js +7 -7
  32. package/dist/dialog.d.ts +1 -1
  33. package/dist/double-field.css-mistica.js +4 -4
  34. package/dist/double-field.d.ts +10 -10
  35. package/dist/empty-state-card.css-mistica.js +2 -2
  36. package/dist/empty-state-card.d.ts +1 -1
  37. package/dist/empty-state.css-mistica.js +2 -2
  38. package/dist/empty-state.d.ts +2 -1
  39. package/dist/feedback.css-mistica.js +5 -5
  40. package/dist/feedback.d.ts +1 -0
  41. package/dist/feedback.js +86 -87
  42. package/dist/fixed-footer-layout.css-mistica.js +5 -5
  43. package/dist/header.d.ts +2 -2
  44. package/dist/hero.css-mistica.js +5 -5
  45. package/dist/hero.d.ts +4 -4
  46. package/dist/highlighted-card.css-mistica.js +4 -4
  47. package/dist/highlighted-card.d.ts +1 -2
  48. package/dist/highlighted-card.js +2 -0
  49. package/dist/icon-button.css-mistica.js +1 -1
  50. package/dist/image.css-mistica.js +1 -1
  51. package/dist/image.js +16 -16
  52. package/dist/index.d.ts +7 -2
  53. package/dist/index.js +9 -1
  54. package/dist/list.css-mistica.js +9 -9
  55. package/dist/loading-bar.css-mistica.js +6 -6
  56. package/dist/logo.d.ts +34 -0
  57. package/dist/logo.js +629 -0
  58. package/dist/maybe-dismissable.css-mistica.js +4 -4
  59. package/dist/menu.css-mistica.js +1 -1
  60. package/dist/navigation-bar.css-mistica.js +16 -16
  61. package/dist/navigation-bar.d.ts +2 -6
  62. package/dist/navigation-bar.js +99 -266
  63. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  64. package/dist/package-version.js +1 -1
  65. package/dist/password-field.css-mistica.js +2 -2
  66. package/dist/popover.css-mistica.js +10 -10
  67. package/dist/progress-bar.css-mistica.js +2 -2
  68. package/dist/radio-button.css-mistica.js +9 -9
  69. package/dist/responsive-layout.css-mistica.js +8 -5
  70. package/dist/responsive-layout.css.d.ts +4 -1
  71. package/dist/responsive-layout.d.ts +2 -0
  72. package/dist/responsive-layout.js +7 -9
  73. package/dist/screen-reader-only.css-mistica.js +1 -1
  74. package/dist/select.css-mistica.js +14 -14
  75. package/dist/skeleton-base.js +3 -3
  76. package/dist/skeletons.css-mistica.js +4 -4
  77. package/dist/skins/blau.js +7 -1
  78. package/dist/skins/defaults.d.ts +3 -0
  79. package/dist/skins/defaults.js +48 -0
  80. package/dist/skins/movistar-legacy.js +7 -1
  81. package/dist/skins/movistar.js +7 -1
  82. package/dist/skins/o2-classic.js +6 -0
  83. package/dist/skins/o2.js +9 -3
  84. package/dist/skins/skin-contract.css-mistica.js +203 -185
  85. package/dist/skins/skin-contract.css.d.ts +18 -0
  86. package/dist/skins/telefonica.js +19 -1
  87. package/dist/skins/types.d.ts +21 -0
  88. package/dist/skins/vivo.js +7 -1
  89. package/dist/snackbar.css-mistica.js +8 -8
  90. package/dist/spinner.css-mistica.js +1 -1
  91. package/dist/sprinkles.css-mistica.js +360 -312
  92. package/dist/sprinkles.css.d.ts +1 -1
  93. package/dist/stepper.css-mistica.js +9 -9
  94. package/dist/switch-component.css-mistica.js +23 -23
  95. package/dist/tabs.css-mistica.js +14 -14
  96. package/dist/tag.css-mistica.js +2 -2
  97. package/dist/tag.js +12 -12
  98. package/dist/text-field-base.css-mistica.js +10 -10
  99. package/dist/text-field-components.css-mistica.js +10 -10
  100. package/dist/text-link.css-mistica.js +5 -5
  101. package/dist/theme-context-provider.js +38 -58
  102. package/dist/theme-variant-context.d.ts +4 -1
  103. package/dist/theme-variant-context.js +9 -8
  104. package/dist/tooltip.css-mistica.js +2 -2
  105. package/dist/touchable.css-mistica.js +1 -1
  106. package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
  107. package/dist/utils/renders-element.d.ts +1 -1
  108. package/dist/video.css-mistica.js +1 -1
  109. package/dist/video.js +16 -15
  110. package/dist-es/avatar.css-mistica.js +1 -1
  111. package/dist-es/avatar.js +28 -26
  112. package/dist-es/badge.css-mistica.js +2 -2
  113. package/dist-es/boxed.js +25 -26
  114. package/dist-es/button-group.css-mistica.js +2 -2
  115. package/dist-es/button-layout.css-mistica.js +7 -7
  116. package/dist-es/button.css-mistica.js +9 -9
  117. package/dist-es/button.js +128 -125
  118. package/dist-es/callout.css-mistica.js +1 -1
  119. package/dist-es/callout.js +28 -24
  120. package/dist-es/card.css-mistica.js +2 -2
  121. package/dist-es/card.js +141 -129
  122. package/dist-es/carousel.css-mistica.js +2 -2
  123. package/dist-es/checkbox.css-mistica.js +6 -6
  124. package/dist-es/chip.css-mistica.js +9 -8
  125. package/dist-es/chip.js +37 -36
  126. package/dist-es/circle.css-mistica.js +1 -1
  127. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  128. package/dist-es/cvv-field.css-mistica.js +2 -2
  129. package/dist-es/date-time-picker.js +13 -12
  130. package/dist-es/dialog.css-mistica.js +5 -5
  131. package/dist-es/double-field.css-mistica.js +4 -4
  132. package/dist-es/empty-state-card.css-mistica.js +2 -2
  133. package/dist-es/empty-state.css-mistica.js +2 -2
  134. package/dist-es/feedback.css-mistica.js +2 -2
  135. package/dist-es/feedback.js +109 -110
  136. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  137. package/dist-es/hero.css-mistica.js +2 -2
  138. package/dist-es/highlighted-card.css-mistica.js +4 -4
  139. package/dist-es/highlighted-card.js +9 -7
  140. package/dist-es/icon-button.css-mistica.js +1 -1
  141. package/dist-es/image.css-mistica.js +1 -1
  142. package/dist-es/image.js +18 -18
  143. package/dist-es/index.js +1698 -1697
  144. package/dist-es/list.css-mistica.js +2 -2
  145. package/dist-es/loading-bar.css-mistica.js +2 -2
  146. package/dist-es/logo.js +607 -0
  147. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  148. package/dist-es/menu.css-mistica.js +1 -1
  149. package/dist-es/navigation-bar.css-mistica.js +11 -11
  150. package/dist-es/navigation-bar.js +171 -337
  151. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  152. package/dist-es/package-version.js +1 -1
  153. package/dist-es/password-field.css-mistica.js +2 -2
  154. package/dist-es/popover.css-mistica.js +2 -2
  155. package/dist-es/progress-bar.css-mistica.js +2 -2
  156. package/dist-es/radio-button.css-mistica.js +6 -6
  157. package/dist-es/responsive-layout.css-mistica.js +5 -2
  158. package/dist-es/responsive-layout.js +16 -18
  159. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  160. package/dist-es/select.css-mistica.js +11 -11
  161. package/dist-es/skeleton-base.js +7 -7
  162. package/dist-es/skeletons.css-mistica.js +2 -2
  163. package/dist-es/skins/blau.js +7 -1
  164. package/dist-es/skins/defaults.js +35 -0
  165. package/dist-es/skins/movistar-legacy.js +7 -1
  166. package/dist-es/skins/movistar.js +7 -1
  167. package/dist-es/skins/o2-classic.js +6 -0
  168. package/dist-es/skins/o2.js +9 -3
  169. package/dist-es/skins/skin-contract.css-mistica.js +203 -185
  170. package/dist-es/skins/telefonica.js +19 -1
  171. package/dist-es/skins/vivo.js +7 -1
  172. package/dist-es/snackbar.css-mistica.js +2 -2
  173. package/dist-es/spinner.css-mistica.js +1 -1
  174. package/dist-es/sprinkles.css-mistica.js +360 -312
  175. package/dist-es/stepper.css-mistica.js +2 -2
  176. package/dist-es/style.css +1 -1
  177. package/dist-es/switch-component.css-mistica.js +19 -19
  178. package/dist-es/tabs.css-mistica.js +10 -10
  179. package/dist-es/tag.css-mistica.js +2 -2
  180. package/dist-es/tag.js +27 -27
  181. package/dist-es/text-field-base.css-mistica.js +2 -2
  182. package/dist-es/text-field-components.css-mistica.js +2 -2
  183. package/dist-es/text-link.css-mistica.js +5 -5
  184. package/dist-es/theme-context-provider.js +72 -92
  185. package/dist-es/theme-variant-context.js +9 -9
  186. package/dist-es/tooltip.css-mistica.js +2 -2
  187. package/dist-es/touchable.css-mistica.js +1 -1
  188. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  189. package/dist-es/video.css-mistica.js +1 -1
  190. package/dist-es/video.js +17 -16
  191. package/package.json +3 -3
package/dist/video.js CHANGED
@@ -9,8 +9,8 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- RATIO: ()=>C,
13
- default: ()=>j
12
+ RATIO: ()=>F,
13
+ default: ()=>O
14
14
  });
15
15
  const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
16
16
  const _imageJs = require("./image.js");
@@ -19,6 +19,7 @@ const _commonJs = require("./utils/common.js");
19
19
  const _domJs = require("./utils/dom.js");
20
20
  const _platformJs = require("./utils/platform.js");
21
21
  const _videoCssMisticaJs = require("./video.css-mistica.js");
22
+ const _skinContractCssMisticaJs = require("./skins/skin-contract.css-mistica.js");
22
23
  const _jsxRuntimeJs = require("./_virtual/jsx-runtime.js");
23
24
  function _getRequireWildcardCache(nodeInterop) {
24
25
  if (typeof WeakMap !== "function") return null;
@@ -138,12 +139,12 @@ function _objectWithoutPropertiesLoose(source, excluded) {
138
139
  }
139
140
  return target;
140
141
  }
141
- const C = {
142
+ const F = {
142
143
  "1:1": 1,
143
144
  "16:9": 16 / 9,
144
145
  "4:3": 4 / 3
145
- }, F = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC", j = /*#__PURE__*/ _react.forwardRef((_param, l)=>{
146
- var { src: t , poster: i , autoPlay: o = !(0, _platformJs.isRunningAcceptanceTest)() , muted: c = !0 , loop: m = !0 , preload: u = "none" , aspectRatio: A = "1:1" , dataAttributes: f } = _param, n = _objectWithoutProperties(_param, [
146
+ }, N = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC", O = /*#__PURE__*/ _react.forwardRef((_param, R)=>{
147
+ var { src: t , poster: i , autoPlay: o = !(0, _platformJs.isRunningAcceptanceTest)() , muted: c = !0 , loop: m = !0 , preload: u = "none" , aspectRatio: A = "1:1" , dataAttributes: f } = _param, s = _objectWithoutProperties(_param, [
147
148
  "src",
148
149
  "poster",
149
150
  "autoPlay",
@@ -153,9 +154,9 @@ const C = {
153
154
  "aspectRatio",
154
155
  "dataAttributes"
155
156
  ]);
156
- const R = (0, _imageJs.useMediaBorderRadius)(), p = typeof A == "number" ? A : C[A], d = _react.useRef(null);
157
+ const l = (0, _imageJs.useMediaBorderRadius)(), p = typeof A == "number" ? A : F[A], a = _react.useRef(null);
157
158
  _react.useEffect(()=>{
158
- const e = d.current;
159
+ const e = a.current;
159
160
  e && o && e.paused && e.play();
160
161
  }, [
161
162
  o
@@ -164,8 +165,8 @@ const C = {
164
165
  t
165
166
  ]).map((e)=>typeof e == "string" ? {
166
167
  src: e
167
- } : e), a = /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("video", _objectSpreadProps(_objectSpread({
168
- ref: (0, _commonJs.combineRefs)(l, d),
168
+ } : e), d = /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("video", _objectSpreadProps(_objectSpread({
169
+ ref: (0, _commonJs.combineRefs)(R, a),
169
170
  playsInline: !0,
170
171
  disablePictureInPicture: !0,
171
172
  disableRemotePlayback: !0,
@@ -174,10 +175,10 @@ const C = {
174
175
  loop: m,
175
176
  className: _videoCssMisticaJs.video,
176
177
  preload: u,
177
- poster: i || F
178
+ poster: i || N
178
179
  }, (0, _domJs.getPrefixedDataAttributes)(f)), {
179
180
  style: {
180
- borderRadius: R ? 8 : 0
181
+ borderRadius: l ? _skinContractCssMisticaJs.vars.borderRadii.container : 0
181
182
  },
182
183
  children: g.map((param, b)=>/* @__PURE__ */ {
183
184
  let { src: e , type: h } = param;
@@ -189,8 +190,8 @@ const C = {
189
190
  }));
190
191
  return /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)(_aspectRatioSupportJs.AspectRatioElement, {
191
192
  aspectRatio: p,
192
- width: n.width,
193
- height: n.height,
193
+ width: s.width,
194
+ height: s.height,
194
195
  children: (0, _platformJs.isSafari)() ? /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("div", {
195
196
  style: {
196
197
  width: "100%",
@@ -199,7 +200,7 @@ const C = {
199
200
  backgroundSize: "cover",
200
201
  backgroundPosition: "50% 50%"
201
202
  },
202
- children: a
203
- }) : a
203
+ children: d
204
+ }) : d
204
205
  });
205
206
  });
@@ -1,3 +1,3 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
- var a = "_1y2v1nf9h _1y2v1nf5i _1y2v1nf5x _1y2v1nf5r _1y2v1nf9o", f = "_1y2v1nfba";
2
+ var a = "_1y2v1nfa2 _1y2v1nf5o _1y2v1nf63 _1y2v1nf5x _1y2v1nfa4", f = "_1y2v1nfbq";
3
3
  export { a as avatar, f as image };
package/dist-es/avatar.js CHANGED
@@ -80,27 +80,27 @@ function _objectWithoutPropertiesLoose(source, excluded) {
80
80
  import * as g from "react";
81
81
  import E from "./badge.js";
82
82
  import P from "./generated/mistica-icons/icon-user-account-regular.js";
83
- import { useIsInverseVariant as k } from "./theme-variant-context.js";
84
- import { avatar as w, image as y } from "./avatar.css-mistica.js";
85
- import { vars as s } from "./skins/skin-contract.css-mistica.js";
83
+ import { useIsInverseVariant as S } from "./theme-variant-context.js";
84
+ import { avatar as k, image as y } from "./avatar.css-mistica.js";
85
+ import { vars as n } from "./skins/skin-contract.css-mistica.js";
86
86
  import { getPrefixedDataAttributes as R } from "./utils/dom.js";
87
- import { jsx as n } from "./_virtual/jsx-runtime.js";
88
- const S = (r, o)=>{
87
+ import { jsx as s } from "./_virtual/jsx-runtime.js";
88
+ const B = (r, o)=>{
89
89
  if (!o) return 0;
90
90
  const t = r / 2, e = o === !0 ? 5 : 10;
91
91
  return t * (1 - Math.sin(Math.PI / 4)) - e;
92
- }, B = (r, o)=>{
92
+ }, D = (r, o)=>{
93
93
  if (!o) return null;
94
94
  let t;
95
- return r <= 40 ? t = 14 : r <= 64 ? t = 16 : t = 18, /* @__PURE__ */ n("span", {
95
+ return r <= 40 ? t = 14 : r <= 64 ? t = 16 : t = 18, /* @__PURE__ */ s("span", {
96
96
  style: {
97
97
  fontSize: t,
98
98
  textTransform: "uppercase"
99
99
  },
100
100
  children: o
101
101
  });
102
- }, O = (_param)=>{
103
- var { size: r , src: o , Icon: t = P , badge: e , initials: c = "" , "aria-label": a , dataAttributes: h } = _param, l = _objectWithoutProperties(_param, [
102
+ }, U = (_param)=>{
103
+ var { size: r , src: o , Icon: t = P , badge: e , initials: l = "" , "aria-label": a , dataAttributes: h } = _param, c = _objectWithoutProperties(_param, [
104
104
  "size",
105
105
  "src",
106
106
  "Icon",
@@ -109,41 +109,43 @@ const S = (r, o)=>{
109
109
  "aria-label",
110
110
  "dataAttributes"
111
111
  ]);
112
- var d, f;
113
- const i = k(), p = (d = l.backgroundColor) != null ? d : i ? s.colors.brandHigh : s.colors.brandLow, v = (f = l.textColor) != null ? f : i ? s.colors.textPrimaryInverse : s.colors.brand, [I, m] = g.useState(!1);
112
+ var u, f;
113
+ const i = S(), b = (u = c.backgroundColor) != null ? u : i ? n.colors.brandHigh : n.colors.brandLow, p = (f = c.textColor) != null ? f : i ? n.colors.textPrimaryInverse : n.colors.brand, [v, d] = g.useState(!1);
114
114
  g.useEffect(()=>{
115
- m(!1);
115
+ d(!1);
116
116
  }, [
117
117
  o
118
118
  ]);
119
- const x = c.trim().slice(0, 2), u = S(r, e), b = e === !0 ? void 0 : e || 0, C = !!o && !I, A = r <= 40 ? 16 : 24;
120
- return /* @__PURE__ */ n(E, {
121
- value: b,
122
- top: u,
123
- right: u,
124
- children: /* @__PURE__ */ n("div", _objectSpreadProps(_objectSpread({
125
- className: w,
119
+ const x = c.border ? `1px solid ${n.colors.borderLow}` : "none", I = l.trim().slice(0, 2), m = B(r, e), C = e === !0 ? void 0 : e || 0, w = !!o && !v, A = r <= 40 ? 16 : 24;
120
+ return /* @__PURE__ */ s(E, {
121
+ value: C,
122
+ top: m,
123
+ right: m,
124
+ children: /* @__PURE__ */ s("div", _objectSpreadProps(_objectSpread({
125
+ className: k,
126
126
  role: "img",
127
- "aria-label": a != null ? a : c,
127
+ "aria-label": a != null ? a : l,
128
128
  style: {
129
129
  width: r,
130
130
  height: r,
131
- color: v,
132
- background: p
131
+ color: p,
132
+ background: b,
133
+ boxSizing: "border-box",
134
+ border: x
133
135
  }
134
136
  }, R(h, "Avatar")), {
135
- children: C ? /* @__PURE__ */ n("img", {
137
+ children: w ? /* @__PURE__ */ s("img", {
136
138
  src: o,
137
139
  className: y,
138
- onError: ()=>m(!0),
140
+ onError: ()=>d(!0),
139
141
  role: "none",
140
142
  width: r,
141
143
  height: r
142
- }) : B(r, x) || /* @__PURE__ */ n(t, {
144
+ }) : D(r, I) || /* @__PURE__ */ s(t, {
143
145
  size: A,
144
146
  color: "currentColor"
145
147
  })
146
148
  }))
147
149
  });
148
150
  };
149
- export { O as default };
151
+ export { U as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./badge.css.ts.vanilla.js";
3
- var _ = "_17szrmd2 _1y2v1nf7u _1y2v1nf89 _1y2v1nf3x", n = "_17szrmd6", f = "_17szrmd4 _17szrmd2 _1y2v1nf7u _1y2v1nf89 _1y2v1nf3x _1y2v1nf5i _1y2v1nf5x _1y2v1nf5r _1y2v1nf1p", y = "_1y2v1nf5e", a = "_1y2v1nf5d _1y2v1nf5m";
4
- export { _ as badge, n as badgeBigNumber, f as badgeNumber, y as badgeWithChildren, a as container };
3
+ var n = "_17szrmd2 _1y2v1nf80 _1y2v1nf8f _1y2v1nf42", r = "_17szrmd6", f = "_17szrmd4 _17szrmd2 _1y2v1nf80 _1y2v1nf8f _1y2v1nf42 _1y2v1nf5o _1y2v1nf63 _1y2v1nf5x _1y2v1nf1s", y = "_1y2v1nf5k", a = "_1y2v1nf5j _1y2v1nf5s";
4
+ export { n as badge, r as badgeBigNumber, f as badgeNumber, y as badgeWithChildren, a as container };
package/dist-es/boxed.js CHANGED
@@ -50,46 +50,45 @@ function _objectSpreadProps(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import * as n from "react";
53
+ import * as s from "react";
54
54
  import v from "classnames";
55
- import { useIsInverseVariant as B, ThemeVariant as h } from "./theme-variant-context.js";
55
+ import { useIsInverseVariant as h, ThemeVariant as B } from "./theme-variant-context.js";
56
56
  import { getPrefixedDataAttributes as k } from "./utils/dom.js";
57
- import { vars as i } from "./skins/skin-contract.css-mistica.js";
57
+ import { vars as e } from "./skins/skin-contract.css-mistica.js";
58
58
  import { useTheme as R } from "./hooks.js";
59
59
  import { inverseBorder as w } from "./boxed.css-mistica.js";
60
- import { sprinkles as e } from "./sprinkles.css-mistica.js";
61
- import { jsx as t } from "./_virtual/jsx-runtime.js";
62
- const y = (o, r)=>o && !r ? w : r ? e({
60
+ import { sprinkles as t } from "./sprinkles.css-mistica.js";
61
+ import { jsx as a } from "./_virtual/jsx-runtime.js";
62
+ const y = (o, r)=>o && !r ? w : r ? t({
63
63
  border: "none"
64
- }) : e({
64
+ }) : t({
65
65
  border: "regular"
66
- }), D = /*#__PURE__*/ n.forwardRef((param, p)=>{
67
- let { children: o , isInverse: r = !1 , className: s , role: m , dataAttributes: d , "aria-label": f , width: l , height: c , minHeight: u , borderRadius: b , background: a } = param;
68
- const { isDarkMode: x } = R(), g = B();
69
- return /* @__PURE__ */ t("div", _objectSpreadProps(_objectSpread({
70
- ref: p,
66
+ }), C = /*#__PURE__*/ s.forwardRef((param, g)=>{
67
+ let { children: o , isInverse: r = !1 , className: m , role: d , dataAttributes: f , "aria-label": l , width: c , height: b , minHeight: u , borderRadius: p = e.borderRadii.container , background: i } = param;
68
+ const { isDarkMode: x } = R(), n = h();
69
+ return /* @__PURE__ */ a("div", _objectSpreadProps(_objectSpread({
70
+ ref: g,
71
71
  style: {
72
- width: l,
73
- height: c,
72
+ width: c,
73
+ height: b,
74
74
  minHeight: u,
75
75
  boxSizing: "border-box",
76
- background: a
76
+ background: i
77
77
  },
78
- className: v(s, y(g, r), e({
79
- borderRadius: b,
78
+ className: v(m, y(n, r), t({
79
+ borderRadius: p,
80
80
  overflow: "hidden",
81
- background: a ? void 0 : r && !x ? i.colors.backgroundBrand : i.colors.backgroundContainer
81
+ background: i ? void 0 : r && !x ? n ? e.colors.brandHigh : e.colors.backgroundContainerBrand : e.colors.backgroundContainer
82
82
  })),
83
- role: m,
84
- "aria-label": f
85
- }, k(d)), {
86
- children: /* @__PURE__ */ t(h, {
83
+ role: d,
84
+ "aria-label": l
85
+ }, k(f)), {
86
+ children: /* @__PURE__ */ a(B, {
87
87
  isInverse: r,
88
88
  children: o
89
89
  })
90
90
  }));
91
- }), N = /*#__PURE__*/ n.forwardRef((o, r)=>/* @__PURE__ */ t(D, _objectSpreadProps(_objectSpread({}, o), {
92
- ref: r,
93
- borderRadius: 8
91
+ }), M = /*#__PURE__*/ s.forwardRef((o, r)=>/* @__PURE__ */ a(C, _objectSpreadProps(_objectSpread({}, o), {
92
+ ref: r
94
93
  })));
95
- export { N as Boxed, D as InternalBoxed };
94
+ export { M as Boxed, C as InternalBoxed };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./button-group.css.ts.vanilla.js";
3
- var r = "_1xdd1h64", t = "_1xdd1h63", v = "_1xdd1h62", _ = "_1xdd1h61 _1y2v1nf5j _1y2v1nf5x _1y2v1nf5n";
4
- export { r as buttonChild, t as buttons, v as container, _ as inline };
3
+ var t = "_1xdd1h64", r = "_1xdd1h63", v = "_1xdd1h62", _ = "_1xdd1h61 _1y2v1nf5p _1y2v1nf63 _1y2v1nf5t";
4
+ export { t as buttonChild, r as buttons, v as container, _ as inline };
@@ -1,12 +1,12 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./button.css.ts.vanilla.js";
3
3
  import "./button-layout.css.ts.vanilla.js";
4
- var i = "kfxylhi", l = {
5
- right: "_1y2v1nf5s",
6
- left: "_1y2v1nf5q",
7
- center: "_1y2v1nf5r",
8
- "full-width": "kfxylhh _1y2v1nf5r"
9
- }, f = "kfxylh6 _1y2v1nf5i", t = "kfxylh7", v = "kfxylh8", h = "kfxylh3 _1y2v1nf5i _1y2v1nf7p", y = "kfxylh4", e = "kfxylh1", k = "kfxylh9", o = {
4
+ var l = "kfxylhi", f = {
5
+ right: "_1y2v1nf5y",
6
+ left: "_1y2v1nf5w",
7
+ center: "_1y2v1nf5x",
8
+ "full-width": "kfxylhh _1y2v1nf5x"
9
+ }, i = "kfxylh6 _1y2v1nf5o", t = "kfxylh7", v = "kfxylh8", h = "kfxylh3 _1y2v1nf5o _1y2v1nf7v", y = "kfxylh4", o = "kfxylh1", x = "kfxylh9", e = {
10
10
  buttonWidth: "var(--kfxylh0)"
11
11
  };
12
- export { i as alignMoreThanOneChildred, l as alignVariant, f as baseContainer, t as container, v as fullWidthContainer, h as link, y as linkAlignment, e as margins, k as noButtonWidth, o as vars };
12
+ export { l as alignMoreThanOneChildred, f as alignVariant, i as baseContainer, t as container, v as fullWidthContainer, h as link, y as linkAlignment, o as margins, x as noButtonWidth, e as vars };
@@ -1,12 +1,12 @@
1
1
  import "./sprinkles.css.ts.vanilla.js";
2
2
  import "./button.css.ts.vanilla.js";
3
- var _ = 104, r = 8, y = 24, f = 20, a = 16, b = 20, p = 14.5, i = 10.5, o = "rrbrpnk", e = "rrbrpni _1y2v1nf20", t = {
4
- primary: "rrbrpno rrbrpn2 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5m _1y2v1nf5d _1y2v1nf7q _1y2v1nf9j _1y2v1nf9o _1y2v1nf1t _1y2v1nf3a",
5
- secondary: "rrbrpnp rrbrpn2 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5m _1y2v1nf5d _1y2v1nf7q _1y2v1nf9j _1y2v1nf9o _1y2v1nf1x _1y2v1nf5c",
6
- danger: "rrbrpnq rrbrpn2 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5m _1y2v1nf5d _1y2v1nf7q _1y2v1nf9j _1y2v1nf9o _1y2v1nf1s _1y2v1nf34"
7
- }, d = "rrbrpn0", j = "rrbrpng _1y2v1nf71 _1y2v1nf7f _1y2v1nf5m _1y2v1nf7q _1y2v1nf9j _1y2v1nf9g _1y2v1nf1z _1y2v1nf5c _1y2v1nf9o", I = "rrbrpn7 _1y2v1nf5j _1y2v1nf5e _1y2v1nf9q _1y2v1nfaw _1y2v1nf5r _1y2v1nf5x", m = "rrbrpn4 _1y2v1nf5k _1y2v1nf86 _1y2v1nf9o", x = "rrbrpn5", N = "rrbrpn9 _1y2v1nf5i _1y2v1nf5x _1y2v1nf5r", s = "_1y2v1nf5i _1y2v1nf5x _1y2v1nf5r", L = {
8
- primary: "rrbrpnl rrbrpn2 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5m _1y2v1nf5d _1y2v1nf7q _1y2v1nf9j _1y2v1nf9o _1y2v1nf1s _1y2v1nf39",
9
- secondary: "rrbrpnm rrbrpn2 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5m _1y2v1nf5d _1y2v1nf7q _1y2v1nf9j _1y2v1nf9o _1y2v1nf1v _1y2v1nf5c",
10
- danger: "rrbrpnn rrbrpn2 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6x _1y2v1nf7b _1y2v1nf5m _1y2v1nf5d _1y2v1nf7q _1y2v1nf9j _1y2v1nf9o _1y2v1nf1s _1y2v1nf34"
3
+ var _ = 104, y = 8, r = 24, f = 20, a = 16, p = 20, b = 14.5, i = 10.5, t = "rrbrpnk", e = "rrbrpni _1y2v1nf23", s = {
4
+ primary: "rrbrpno rrbrpn2 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5s _1y2v1nf5j _1y2v1nf7w _1y2v1nf9t _1y2v1nfa4 _1y2v1nf1w _1y2v1nf3f",
5
+ secondary: "rrbrpnp rrbrpn2 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5s _1y2v1nf5j _1y2v1nf7w _1y2v1nf9t _1y2v1nfa4 _1y2v1nf20 _1y2v1nf5i",
6
+ danger: "rrbrpnq rrbrpn2 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5s _1y2v1nf5j _1y2v1nf7w _1y2v1nf9t _1y2v1nfa4 _1y2v1nf1v _1y2v1nf39"
7
+ }, o = "rrbrpn0", I = "rrbrpng _1y2v1nf77 _1y2v1nf7l _1y2v1nf5s _1y2v1nf7w _1y2v1nf9t _1y2v1nf9m _1y2v1nf22 _1y2v1nf5i _1y2v1nfa4", N = "rrbrpn7 _1y2v1nf5p _1y2v1nf5k _1y2v1nfa6 _1y2v1nfbc _1y2v1nf5x _1y2v1nf63", l = "rrbrpn4 _1y2v1nf5q _1y2v1nf8c _1y2v1nfa4", L = "rrbrpn5", S = "rrbrpn9 _1y2v1nf5o _1y2v1nf63 _1y2v1nf5x", d = "_1y2v1nf5o _1y2v1nf63 _1y2v1nf5x", w = {
8
+ primary: "rrbrpnl rrbrpn2 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5s _1y2v1nf5j _1y2v1nf7w _1y2v1nf9t _1y2v1nfa4 _1y2v1nf1v _1y2v1nf3e",
9
+ secondary: "rrbrpnm rrbrpn2 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5s _1y2v1nf5j _1y2v1nf7w _1y2v1nf9t _1y2v1nfa4 _1y2v1nf1y _1y2v1nf5i",
10
+ danger: "rrbrpnn rrbrpn2 _1y2v1nf6b _1y2v1nf6p _1y2v1nf73 _1y2v1nf7h _1y2v1nf5s _1y2v1nf5j _1y2v1nf7w _1y2v1nf9t _1y2v1nfa4 _1y2v1nf1v _1y2v1nf39"
11
11
  };
12
- export { _ as BUTTON_MIN_WIDTH, r as ICON_MARGIN_PX, y as ICON_SIZE, f as SMALL_ICON_SIZE, a as SMALL_SPINNER_SIZE, b as SPINNER_SIZE, p as X_PADDING_PX, i as X_SMALL_PADDING_PX, o as alignedLink, e as inverseLink, t as inverseVariants, d as isLoading, j as link, I as loadingContent, m as loadingFiller, x as small, N as textContent, s as textContentLink, L as variants };
12
+ export { _ as BUTTON_MIN_WIDTH, y as ICON_MARGIN_PX, r as ICON_SIZE, f as SMALL_ICON_SIZE, a as SMALL_SPINNER_SIZE, p as SPINNER_SIZE, b as X_PADDING_PX, i as X_SMALL_PADDING_PX, t as alignedLink, e as inverseLink, s as inverseVariants, o as isLoading, I as link, N as loadingContent, l as loadingFiller, L as small, S as textContent, d as textContentLink, w as variants };