@telefonica/mistica 14.14.0 → 14.16.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 (192) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/avatar.css-mistica.js +1 -1
  3. package/dist/badge.css-mistica.js +3 -3
  4. package/dist/badge.js +19 -10
  5. package/dist/box.d.ts +1 -1
  6. package/dist/boxed.css-mistica.js +1 -1
  7. package/dist/button-layout.css-mistica.js +4 -4
  8. package/dist/button.css-mistica.js +19 -19
  9. package/dist/button.js +112 -112
  10. package/dist/callout.css-mistica.js +1 -1
  11. package/dist/card.css-mistica.js +23 -15
  12. package/dist/card.css.d.ts +4 -0
  13. package/dist/card.d.ts +3 -3
  14. package/dist/card.js +104 -95
  15. package/dist/carousel.css-mistica.js +13 -13
  16. package/dist/checkbox.css-mistica.js +5 -5
  17. package/dist/checkbox.js +10 -9
  18. package/dist/chip.css-mistica.js +4 -4
  19. package/dist/chip.d.ts +1 -0
  20. package/dist/chip.js +57 -41
  21. package/dist/circle.css-mistica.js +1 -1
  22. package/dist/credit-card-number-field.js +22 -19
  23. package/dist/cvv-field.js +60 -47
  24. package/dist/date-time-picker.d.ts +10 -0
  25. package/dist/date-time-picker.js +54 -35
  26. package/dist/dialog.css-mistica.js +3 -3
  27. package/dist/double-field.css-mistica.js +2 -2
  28. package/dist/empty-state-card.css-mistica.js +1 -1
  29. package/dist/empty-state.css-mistica.js +3 -3
  30. package/dist/feedback.css-mistica.js +3 -3
  31. package/dist/fixed-footer-layout.css-mistica.js +1 -1
  32. package/dist/fixed-footer-layout.js +79 -27
  33. package/dist/grid.css.d.ts +6 -6
  34. package/dist/hero.css-mistica.js +1 -1
  35. package/dist/highlighted-card.css-mistica.js +3 -3
  36. package/dist/hooks.d.ts +1 -1
  37. package/dist/icons/icon-cvv-amex.d.ts +1 -0
  38. package/dist/icons/icon-cvv-amex.js +5 -4
  39. package/dist/icons/icon-cvv-visa-mc.d.ts +1 -0
  40. package/dist/icons/icon-cvv-visa-mc.js +7 -6
  41. package/dist/image.css-mistica.js +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/list.css-mistica.js +7 -7
  44. package/dist/list.js +90 -91
  45. package/dist/loading-bar.css-mistica.js +4 -4
  46. package/dist/maybe-dismissable.css-mistica.js +3 -3
  47. package/dist/menu.css-mistica.js +1 -1
  48. package/dist/navigation-bar.css-mistica.js +11 -11
  49. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  50. package/dist/package-version.js +1 -1
  51. package/dist/password-field.css-mistica.js +1 -1
  52. package/dist/popover.css-mistica.js +3 -3
  53. package/dist/progress-bar.css-mistica.js +1 -1
  54. package/dist/radio-button.css-mistica.js +14 -14
  55. package/dist/radio-button.js +34 -33
  56. package/dist/responsive-layout.css-mistica.js +2 -2
  57. package/dist/screen-reader-only.css-mistica.js +1 -1
  58. package/dist/search-field.js +8 -8
  59. package/dist/select.css-mistica.js +11 -11
  60. package/dist/select.js +145 -142
  61. package/dist/skins/blau.js +10 -0
  62. package/dist/skins/defaults.js +10 -0
  63. package/dist/skins/movistar-legacy.js +10 -0
  64. package/dist/skins/movistar.js +10 -0
  65. package/dist/skins/o2.js +10 -0
  66. package/dist/skins/telefonica.js +12 -2
  67. package/dist/skins/types/index.d.ts +24 -8
  68. package/dist/skins/vivo-new.js +10 -0
  69. package/dist/skins/vivo.js +10 -0
  70. package/dist/snackbar.css-mistica.js +3 -3
  71. package/dist/sprinkles.css-mistica.js +226 -190
  72. package/dist/sprinkles.css.d.ts +16 -16
  73. package/dist/stepper.css-mistica.js +3 -3
  74. package/dist/stepper.js +26 -26
  75. package/dist/switch-component.css-mistica.js +15 -15
  76. package/dist/switch-component.js +16 -15
  77. package/dist/tabs.css-mistica.js +7 -7
  78. package/dist/tabs.js +32 -28
  79. package/dist/tag.css-mistica.js +1 -1
  80. package/dist/tag.js +15 -14
  81. package/dist/text-field-base.css-mistica.js +6 -6
  82. package/dist/text-field-base.js +44 -44
  83. package/dist/text-field-components.css-mistica.js +6 -6
  84. package/dist/text-link.css-mistica.js +5 -5
  85. package/dist/text.d.ts +6 -8
  86. package/dist/text.js +8 -7
  87. package/dist/theme-context-provider.js +25 -24
  88. package/dist/theme.d.ts +5 -2
  89. package/dist/theme.js +73 -24
  90. package/dist/title.js +27 -24
  91. package/dist/tooltip.css-mistica.js +6 -6
  92. package/dist/touchable.css-mistica.js +3 -3
  93. package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
  94. package/dist/video.css-mistica.js +1 -1
  95. package/dist/video.d.ts +7 -1
  96. package/dist/video.js +116 -76
  97. package/dist-es/avatar.css-mistica.js +1 -1
  98. package/dist-es/badge.css-mistica.js +2 -2
  99. package/dist-es/badge.js +29 -20
  100. package/dist-es/boxed.css-mistica.js +1 -1
  101. package/dist-es/button-layout.css-mistica.js +3 -3
  102. package/dist-es/button.css-mistica.js +9 -9
  103. package/dist-es/button.js +154 -154
  104. package/dist-es/callout.css-mistica.js +1 -1
  105. package/dist-es/card.css-mistica.js +4 -2
  106. package/dist-es/card.js +151 -142
  107. package/dist-es/carousel.css-mistica.js +2 -2
  108. package/dist-es/checkbox.css-mistica.js +5 -5
  109. package/dist-es/checkbox.js +21 -20
  110. package/dist-es/chip.css-mistica.js +4 -4
  111. package/dist-es/chip.js +77 -61
  112. package/dist-es/circle.css-mistica.js +1 -1
  113. package/dist-es/credit-card-number-field.js +23 -20
  114. package/dist-es/cvv-field.js +74 -61
  115. package/dist-es/date-time-picker.js +66 -47
  116. package/dist-es/dialog.css-mistica.js +3 -3
  117. package/dist-es/double-field.css-mistica.js +2 -2
  118. package/dist-es/empty-state-card.css-mistica.js +1 -1
  119. package/dist-es/empty-state.css-mistica.js +2 -2
  120. package/dist-es/feedback.css-mistica.js +2 -2
  121. package/dist-es/fixed-footer-layout.css-mistica.js +1 -1
  122. package/dist-es/fixed-footer-layout.js +94 -42
  123. package/dist-es/hero.css-mistica.js +1 -1
  124. package/dist-es/highlighted-card.css-mistica.js +3 -3
  125. package/dist-es/icons/icon-cvv-amex.js +5 -4
  126. package/dist-es/icons/icon-cvv-visa-mc.js +9 -8
  127. package/dist-es/image.css-mistica.js +1 -1
  128. package/dist-es/list.css-mistica.js +2 -2
  129. package/dist-es/list.js +114 -115
  130. package/dist-es/loading-bar.css-mistica.js +2 -2
  131. package/dist-es/maybe-dismissable.css-mistica.js +2 -2
  132. package/dist-es/menu.css-mistica.js +1 -1
  133. package/dist-es/navigation-bar.css-mistica.js +8 -8
  134. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  135. package/dist-es/package-version.js +1 -1
  136. package/dist-es/password-field.css-mistica.js +1 -1
  137. package/dist-es/popover.css-mistica.js +2 -2
  138. package/dist-es/progress-bar.css-mistica.js +1 -1
  139. package/dist-es/radio-button.css-mistica.js +8 -8
  140. package/dist-es/radio-button.js +38 -37
  141. package/dist-es/responsive-layout.css-mistica.js +2 -2
  142. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  143. package/dist-es/search-field.js +7 -7
  144. package/dist-es/select.css-mistica.js +10 -10
  145. package/dist-es/select.js +173 -170
  146. package/dist-es/skins/blau.js +10 -0
  147. package/dist-es/skins/defaults.js +10 -0
  148. package/dist-es/skins/movistar-legacy.js +10 -0
  149. package/dist-es/skins/movistar.js +10 -0
  150. package/dist-es/skins/o2.js +10 -0
  151. package/dist-es/skins/telefonica.js +12 -2
  152. package/dist-es/skins/vivo-new.js +10 -0
  153. package/dist-es/skins/vivo.js +10 -0
  154. package/dist-es/snackbar.css-mistica.js +2 -2
  155. package/dist-es/sprinkles.css-mistica.js +226 -190
  156. package/dist-es/stepper.css-mistica.js +2 -2
  157. package/dist-es/stepper.js +50 -50
  158. package/dist-es/style.css +1 -1
  159. package/dist-es/switch-component.css-mistica.js +12 -12
  160. package/dist-es/switch-component.js +37 -36
  161. package/dist-es/tabs.css-mistica.js +6 -6
  162. package/dist-es/tabs.js +49 -45
  163. package/dist-es/tag.css-mistica.js +1 -1
  164. package/dist-es/tag.js +28 -27
  165. package/dist-es/text-field-base.css-mistica.js +2 -2
  166. package/dist-es/text-field-base.js +64 -64
  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/text.js +11 -10
  170. package/dist-es/theme-context-provider.js +56 -55
  171. package/dist-es/theme.js +69 -20
  172. package/dist-es/title.js +36 -33
  173. package/dist-es/tooltip.css-mistica.js +3 -3
  174. package/dist-es/touchable.css-mistica.js +2 -2
  175. package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
  176. package/dist-es/video.css-mistica.js +1 -1
  177. package/dist-es/video.js +121 -81
  178. package/package.json +3 -2
  179. package/dist/cvv-field.css-mistica.js +0 -21
  180. package/dist/cvv-field.css.d.ts +0 -2
  181. package/dist/cvv-field.css.ts.vanilla.css-mistica.js +0 -11
  182. package/dist/icons/icon-creditcard.d.ts +0 -7
  183. package/dist/icons/icon-creditcard.js +0 -33
  184. package/dist/icons/icon-info-cvv.d.ts +0 -7
  185. package/dist/icons/icon-info-cvv.js +0 -26
  186. package/dist/icons/icon-search.d.ts +0 -7
  187. package/dist/icons/icon-search.js +0 -32
  188. package/dist-es/cvv-field.css-mistica.js +0 -4
  189. package/dist-es/cvv-field.css.ts.vanilla.css-mistica.js +0 -2
  190. package/dist-es/icons/icon-creditcard.js +0 -24
  191. package/dist-es/icons/icon-info-cvv.js +0 -17
  192. package/dist-es/icons/icon-search.js +0 -23
@@ -1,12 +1,12 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tabs.css.ts.vanilla.css-mistica.js";
3
- var v = "_1y2v1nf63 _1y2v1nf60 _1y2v1nfb0 _1y2v1nfbs _1y2v1nf8t _1y2v1nf45", y = "lgofm1m", _ = "lgofm14 _1y2v1nf60 _1y2v1nfb0 _1y2v1nfbe _1y2v1nf95", o = "lgofm12 _1y2v1nf92 _1y2v1nf5z _1y2v1nfak", a = "lgofm10", t = {
3
+ var v = "_1y2v1nf63 _1y2v1nf60 _1y2v1nfb9 _1y2v1nfc3 _1y2v1nf8y _1y2v1nf45", y = "lgofm1m", _ = "lgofm14 _1y2v1nf60 _1y2v1nfb9 _1y2v1nfbo _1y2v1nf9b", a = "lgofm12 _1y2v1nf98 _1y2v1nf5z _1y2v1nfas", o = "lgofm10", t = {
4
4
  noSelected: "_1y2v1nf1y",
5
5
  selected: "_1y2v1nf1w lgofm1h",
6
6
  selectedAnimating: "_1y2v1nf1w lgofm1i"
7
7
  }, e = {
8
- default: "lgofm17 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6d _1y2v1nf7o _1y2v1nf82 _1y2v1nf92 _1y2v1nf5y lgofm18",
9
- tabs2: "lgofm17 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6d _1y2v1nf7o _1y2v1nf82 _1y2v1nf92 _1y2v1nf5y lgofm19",
10
- tabs3: "lgofm17 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6d _1y2v1nf7o _1y2v1nf82 _1y2v1nf92 _1y2v1nf5y lgofm1a"
11
- }, r = "lgofm1e", l = "_1y2v1nf92 _1y2v1nf64";
12
- export { v as animatedLine, y as icon, _ as inner, o as outer, a as outerBorder, t as tabSelectionVariants, e as tabVariants, r as tabWithIcon, l as tabsContainer };
8
+ default: "lgofm17 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6d _1y2v1nf7q _1y2v1nf85 _1y2v1nf98 _1y2v1nf5y lgofm18",
9
+ tabs2: "lgofm17 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6d _1y2v1nf7q _1y2v1nf85 _1y2v1nf98 _1y2v1nf5y lgofm19",
10
+ tabs3: "lgofm17 _1y2v1nf65 _1y2v1nf6j _1y2v1nf6d _1y2v1nf7q _1y2v1nf85 _1y2v1nf98 _1y2v1nf5y lgofm1a"
11
+ }, r = "lgofm1e", l = "_1y2v1nf98 _1y2v1nf64";
12
+ export { v as animatedLine, y as icon, _ as inner, a as outer, o as outerBorder, t as tabSelectionVariants, e as tabVariants, r as tabWithIcon, l as tabsContainer };
package/dist-es/tabs.js CHANGED
@@ -50,18 +50,18 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import { jsx as s, jsxs as y } from "react/jsx-runtime";
54
- import * as c from "react";
55
- import $ from "classnames";
56
- import { BaseTouchable as g } from "./touchable.js";
53
+ import { jsx as s, jsxs as g } from "react/jsx-runtime";
54
+ import * as m from "react";
55
+ import S from "classnames";
56
+ import { BaseTouchable as $ } from "./touchable.js";
57
57
  import v from "./responsive-layout.js";
58
- import { useAriaId as R, useElementDimensions as S } from "./hooks.js";
59
- import { Text3 as x } from "./text.js";
60
- import { isRunningAcceptanceTest as w } from "./utils/platform.js";
61
- import { getPrefixedDataAttributes as I } from "./utils/dom.js";
62
- import { outerBorder as W, outer as B, inner as D, tabsContainer as P, tabVariants as V, tabSelectionVariants as m, tabWithIcon as _, icon as j, animatedLine as k } from "./tabs.css-mistica.js";
63
- const f = w() ? 0 : 300, q = (r)=>{
64
- switch(r){
58
+ import { useTheme as R, useAriaId as x, useElementDimensions as k } from "./hooks.js";
59
+ import { Text as w } from "./text.js";
60
+ import { isRunningAcceptanceTest as I } from "./utils/platform.js";
61
+ import { getPrefixedDataAttributes as z } from "./utils/dom.js";
62
+ import { outerBorder as H, outer as P, inner as W, tabsContainer as B, tabVariants as D, tabSelectionVariants as d, tabWithIcon as V, icon as _, animatedLine as j } from "./tabs.css-mistica.js";
63
+ const f = I() ? 0 : 300, q = (i)=>{
64
+ switch(i){
65
65
  case 2:
66
66
  return "tabs2";
67
67
  case 3:
@@ -70,71 +70,75 @@ const f = w() ? 0 : 300, q = (r)=>{
70
70
  return "default";
71
71
  }
72
72
  }, C = (param)=>{
73
- let { selectedIndex: r , onChange: T , tabs: d , dataAttributes: A } = param;
74
- const o = R(), { ref: N } = S(), u = c.useRef(null), b = c.useRef(null), [p, h] = c.useState(!1), L = (i, l)=>{
75
- const e = document.querySelector(`[id='${o}'] [data-tabindex="${i}"]`), n = document.querySelector(`[id='${o}'] [data-tabindex="${l}"]`), t = u.current, a = b.current;
76
- e && n && t && a && (h(!0), t.style.display = "block", t.style.width = `${e.offsetWidth}px`, t.style.transform = `translate(${e.offsetLeft - a.scrollLeft}px, 0)`, Promise.resolve().then(()=>{
77
- t.style.width = `${n.offsetWidth}px`, t.style.transform = `translate(${n.offsetLeft - a.scrollLeft}px, 0)`, t.style.transition = `transform ${f}ms, width ${f}ms`;
73
+ let { selectedIndex: i , onChange: y , tabs: b , dataAttributes: T } = param;
74
+ const { textPresets: o } = R(), n = x(), { ref: A } = k(), u = m.useRef(null), h = m.useRef(null), [p, L] = m.useState(!1), N = (l, c)=>{
75
+ const t = document.querySelector(`[id='${n}'] [data-tabindex="${l}"]`), r = document.querySelector(`[id='${n}'] [data-tabindex="${c}"]`), e = u.current, a = h.current;
76
+ t && r && e && a && (L(!0), e.style.display = "block", e.style.width = `${t.offsetWidth}px`, e.style.transform = `translate(${t.offsetLeft - a.scrollLeft}px, 0)`, Promise.resolve().then(()=>{
77
+ e.style.width = `${r.offsetWidth}px`, e.style.transform = `translate(${r.offsetLeft - a.scrollLeft}px, 0)`, e.style.transition = `transform ${f}ms, width ${f}ms`;
78
78
  }), setTimeout(()=>{
79
- t.style.transition = "", t.style.display = "none", h(!1);
79
+ e.style.transition = "", e.style.display = "none", L(!1);
80
80
  }, f));
81
81
  };
82
82
  return /* @__PURE__ */ s("div", _object_spread_props(_object_spread({
83
- id: o,
83
+ id: n,
84
84
  role: "tablist",
85
- ref: N,
86
- className: W
87
- }, I(A, "Tabs")), {
85
+ ref: A,
86
+ className: H
87
+ }, z(T, "Tabs")), {
88
88
  children: /* @__PURE__ */ s(v, {
89
89
  fullWidth: !0,
90
- children: /* @__PURE__ */ y("div", {
91
- className: B,
90
+ children: /* @__PURE__ */ g("div", {
91
+ className: P,
92
92
  children: [
93
93
  /* @__PURE__ */ s("div", {
94
- ref: b,
95
- className: D,
94
+ ref: h,
95
+ className: W,
96
96
  children: /* @__PURE__ */ s("div", {
97
- className: P,
98
- children: d.map((param, t)=>{
99
- let { text: i , trackingEvent: l , icon: e , "aria-controls": n } = param;
100
- const a = t === r;
101
- return /* @__PURE__ */ y(g, {
97
+ className: B,
98
+ children: b.map((param, e)=>{
99
+ let { text: l , trackingEvent: c , icon: t , "aria-controls": r } = param;
100
+ const a = e === i;
101
+ return /* @__PURE__ */ g($, {
102
102
  dataAttributes: {
103
103
  "component-name": "Tab",
104
- tabindex: t
104
+ tabindex: e
105
105
  },
106
- className: $(V[q(d.length)], a ? p ? m.selectedAnimating : m.selected : m.noSelected, e && _),
106
+ className: S(D[q(b.length)], a ? p ? d.selectedAnimating : d.selected : d.noSelected, t && V),
107
107
  onPress: ()=>{
108
- !p && r !== t && (T(t), L(r, t));
108
+ !p && i !== e && (y(e), N(i, e));
109
109
  },
110
- trackingEvent: l,
110
+ trackingEvent: c,
111
111
  role: "tab",
112
- "aria-controls": n,
112
+ "aria-controls": r,
113
113
  "aria-selected": a ? "true" : "false",
114
114
  children: [
115
- e && /* @__PURE__ */ s("div", {
116
- className: j,
117
- children: e
115
+ t && /* @__PURE__ */ s("div", {
116
+ className: _,
117
+ children: t
118
118
  }),
119
- /* @__PURE__ */ s(x, {
120
- medium: !0,
119
+ /* @__PURE__ */ s(w, {
120
+ desktopSize: o.tabsLabel.size.desktop,
121
+ mobileSize: o.tabsLabel.size.mobile,
122
+ desktopLineHeight: o.tabsLabel.lineHeight.desktop,
123
+ mobileLineHeight: o.tabsLabel.lineHeight.mobile,
124
+ weight: "medium",
121
125
  color: "inherit",
122
126
  wordBreak: !1,
123
127
  textAlign: "center",
124
- children: i
128
+ children: l
125
129
  })
126
130
  ]
127
- }, t);
131
+ }, e);
128
132
  })
129
133
  })
130
134
  }),
131
135
  /* @__PURE__ */ s("div", {
132
136
  ref: u,
133
- className: k
137
+ className: j
134
138
  })
135
139
  ]
136
140
  })
137
141
  })
138
142
  }));
139
- }, K = C;
140
- export { K as default };
143
+ }, X = C;
144
+ export { X as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./tag.css.ts.vanilla.css-mistica.js";
3
- var _ = "_1wy08671 _1y2v1nf6t _1y2v1nf77 _1y2v1nf65 _1y2v1nf69 _1y2v1nf6j _1y2v1nf6d _1y2v1nf9h _1y2v1nf81";
3
+ var _ = "_1wy08671 _1y2v1nf6t _1y2v1nf78 _1y2v1nf65 _1y2v1nf69 _1y2v1nf6j _1y2v1nf6d _1y2v1nf9o _1y2v1nf84";
4
4
  export { _ as tag };
package/dist-es/tag.js CHANGED
@@ -50,21 +50,22 @@ function _object_spread_props(target, source) {
50
50
  }
51
51
  return target;
52
52
  }
53
- import { jsxs as u, jsx as e } from "react/jsx-runtime";
53
+ import { jsxs as h, jsx as e } from "react/jsx-runtime";
54
54
  import d from "./box.js";
55
- import { Text as h } from "./text.js";
56
- import { useThemeVariant as f, ThemeVariant as v } from "./theme-variant-context.js";
57
- import { pxToRem as w } from "./utils/css.js";
58
- import { getPrefixedDataAttributes as T } from "./utils/dom.js";
59
- import { tag as x } from "./tag.css-mistica.js";
55
+ import { Text as f } from "./text.js";
56
+ import { useThemeVariant as v, ThemeVariant as w } from "./theme-variant-context.js";
57
+ import { pxToRem as T } from "./utils/css.js";
58
+ import { getPrefixedDataAttributes as x } from "./utils/dom.js";
59
+ import { tag as H } from "./tag.css-mistica.js";
60
60
  import { sprinkles as m } from "./sprinkles.css-mistica.js";
61
- import { vars as H } from "./skins/skin-contract.css-mistica.js";
62
- import L from "classnames";
63
- const { colors: r } = H, b = (param)=>{
64
- let { Icon: o , children: i , dataAttributes: c , type: l = "promo" } = param;
65
- const t = f(), s = t === "inverse";
66
- if (!i) return null;
67
- const g = {
61
+ import { vars as L } from "./skins/skin-contract.css-mistica.js";
62
+ import b from "classnames";
63
+ import { useTheme as I } from "./hooks.js";
64
+ const { colors: r } = L, k = (param)=>{
65
+ let { Icon: o , children: s , dataAttributes: c , type: g = "promo" } = param;
66
+ const { textPresets: l } = I(), i = v(), t = i === "inverse";
67
+ if (!s) return null;
68
+ const p = {
68
69
  // [textColor, inverseTextColor, backgroundColor]
69
70
  promo: [
70
71
  r.promoHigh,
@@ -79,7 +80,7 @@ const { colors: r } = H, b = (param)=>{
79
80
  inactive: [
80
81
  r.neutralMedium,
81
82
  r.neutralMediumInverse,
82
- t === "alternative" ? r.neutralLowAlternative : r.neutralLow
83
+ i === "alternative" ? r.neutralLowAlternative : r.neutralLow
83
84
  ],
84
85
  success: [
85
86
  r.successHigh,
@@ -96,35 +97,35 @@ const { colors: r } = H, b = (param)=>{
96
97
  r.errorHighInverse,
97
98
  r.errorLow
98
99
  ]
99
- }, [n, a, p] = g[l];
100
- return /* @__PURE__ */ u("span", _object_spread_props(_object_spread({}, T(c, "Tag")), {
101
- className: L(x, m({
100
+ }, [n, a, u] = p[g];
101
+ return /* @__PURE__ */ h("span", _object_spread_props(_object_spread({}, x(c, "Tag")), {
102
+ className: b(H, m({
102
103
  paddingLeft: o ? 8 : 12,
103
- background: s ? r.inverse : p
104
+ background: t ? r.inverse : u
104
105
  })),
105
106
  children: [
106
107
  o && /* @__PURE__ */ e(d, {
107
108
  paddingRight: 4,
108
109
  children: /* @__PURE__ */ e(o, {
109
- color: s ? a : n,
110
- size: w(16),
110
+ color: t ? a : n,
111
+ size: T(16),
111
112
  className: m({
112
113
  display: "block"
113
114
  })
114
115
  })
115
116
  }),
116
- /* @__PURE__ */ e(v, {
117
+ /* @__PURE__ */ e(w, {
117
118
  isInverse: !1,
118
- children: /* @__PURE__ */ e(h, {
119
- color: s ? a : n,
119
+ children: /* @__PURE__ */ e(f, {
120
+ color: t ? a : n,
120
121
  size: 14,
121
122
  lineHeight: 20,
122
- weight: "medium",
123
+ weight: l.indicator.weight,
123
124
  truncate: !0,
124
- children: i
125
+ children: s
125
126
  })
126
127
  })
127
128
  ]
128
129
  }));
129
- }, R = b;
130
- export { R as default };
130
+ }, D = k;
131
+ export { D as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-field-base.css.ts.vanilla.css-mistica.js";
3
- var n = "rhey4tf _1y2v1nf7m _1y2v1nf82 _1y2v1nf64 _1y2v1nf6j", r = "rhey4t4", t = "rhey4ta _1y2v1nf5z _1y2v1nf8r rhey4t1 _1y2v1nfa2 _1y2v1nf97 _1y2v1nf1w _1y2v1nf8b", e = "rhey4tb", f = "rhey4tc", _ = "_1y2v1nf6w _1y2v1nf7a", a = "rhey4to _1y2v1nf91 _1y2v1nf64 _1y2v1nf6j _1y2v1nfaj", h = "_1y2v1nf3e", i = "rhey4tj _1y2v1nf7n _1y2v1nf82", o = "rhey4tl _1y2v1nf78", l = "_1y2v1nf6w _1y2v1nf7a", u = "rhey4th _1y2v1nf7n _1y2v1nf81 _1y2v1nf64 _1y2v1nf6j _1y2v1nf8r _1y2v1nf60", p = "rhey4tr _1y2v1nf60", b = "rhey4t6 _1y2v1nf6r _1y2v1nf75 _1y2v1nf7j _1y2v1nf7x rhey4t1 _1y2v1nfa2 _1y2v1nf97 _1y2v1nf1w _1y2v1nf8b", x = "rhey4t7", m = "rhey4t8";
4
- export { n as endIcon, r as fullWidth, t as input, e as inputFirefoxStyles, f as inputWithLabel, _ as inputWithoutLabel, a as menuItem, h as menuItemSelected, i as prefix, o as prefixWithLabel, l as prefixWithoutLabel, u as startIcon, p as suggestionsContainer, b as textArea, x as textAreaWithLabel, m as textAreaWithoutLabel };
3
+ var n = "rhey4tf _1y2v1nf7o _1y2v1nf85 _1y2v1nf64 _1y2v1nf6j", r = "rhey4t4", t = "rhey4ta _1y2v1nf5z _1y2v1nf8w rhey4t1 _1y2v1nfaa _1y2v1nf9d _1y2v1nf1w _1y2v1nf8f", f = "rhey4tb", e = "rhey4tc", _ = "_1y2v1nf6w _1y2v1nf7b", a = "rhey4to _1y2v1nf97 _1y2v1nf64 _1y2v1nf6j _1y2v1nfar", h = "_1y2v1nf3e", i = "rhey4tj _1y2v1nf7p _1y2v1nf85", o = "rhey4tl _1y2v1nf79", l = "_1y2v1nf6w _1y2v1nf7b", p = "rhey4th _1y2v1nf7p _1y2v1nf84 _1y2v1nf64 _1y2v1nf6j _1y2v1nf8w _1y2v1nf60", u = "rhey4tr _1y2v1nf60", b = "rhey4t6 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 rhey4t1 _1y2v1nfaa _1y2v1nf9d _1y2v1nf1w _1y2v1nf8f", x = "rhey4t7", W = "rhey4t8";
4
+ export { n as endIcon, r as fullWidth, t as input, f as inputFirefoxStyles, e as inputWithLabel, _ as inputWithoutLabel, a as menuItem, h as menuItemSelected, i as prefix, o as prefixWithLabel, l as prefixWithoutLabel, p as startIcon, u as suggestionsContainer, b as textArea, x as textAreaWithLabel, W as textAreaWithoutLabel };
@@ -81,16 +81,16 @@ import { jsxs as te, jsx as i } from "react/jsx-runtime";
81
81
  import * as s from "react";
82
82
  import { FieldContainer as ie, HelperText as ne, Label as re } from "./text-field-components.js";
83
83
  import { LABEL_LEFT_POSITION as R, LABEL_SCALE_MOBILE as se, LABEL_SCALE_DESKTOP as le } from "./text-field-components.css-mistica.js";
84
- import { Text3 as O } from "./text.js";
85
- import { isSafari as oe, isIos as ae, isRunningAcceptanceTest as B, isFirefox as de } from "./utils/platform.js";
86
- import { useAriaId as W, useScreenSize as ce, useTheme as j, useIsomorphicLayoutEffect as fe } from "./hooks.js";
87
- import T from "classnames";
88
- import { combineRefs as z } from "./utils/common.js";
89
- import { startIcon as he, prefix as me, prefixWithLabel as ge, prefixWithoutLabel as ue, fullWidth as pe, textArea as Se, textAreaWithLabel as be, textAreaWithoutLabel as ye, input as xe, inputWithLabel as Le, inputWithoutLabel as Ce, inputFirefoxStyles as Te, endIcon as Ae, menuItem as Ee, menuItemSelected as Re, suggestionsContainer as Ie } from "./text-field-base.css-mistica.js";
90
- import { sprinkles as Oe } from "./sprinkles.css-mistica.js";
91
- import { vars as We } from "./skins/skin-contract.css-mistica.js";
92
- const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
93
- var { error: c , helperText: A , label: n , inputProps: g , inputRef: y , defaultValue: o , value: t , onFocus: u , onBlur: p , inputComponent: h , prefix: m , startIcon: e , endIcon: a , endIconOverlay: x , shrinkLabel: D , multiline: L = !1 , focus: C , fieldRef: H , maxLength: S , id: K , autoComplete: M , fullWidth: G } = _param, r = _object_without_properties(_param, [
84
+ import { Text3 as I } from "./text.js";
85
+ import { isSafari as oe, isRunningAcceptanceTest as q, isFirefox as ae } from "./utils/platform.js";
86
+ import { useAriaId as O, useScreenSize as de, useTheme as B, useIsomorphicLayoutEffect as ce } from "./hooks.js";
87
+ import A from "classnames";
88
+ import { combineRefs as j } from "./utils/common.js";
89
+ import { startIcon as fe, prefix as he, prefixWithLabel as ge, prefixWithoutLabel as me, fullWidth as ue, textArea as Se, textAreaWithLabel as pe, textAreaWithoutLabel as be, input as ye, inputWithLabel as Le, inputWithoutLabel as xe, inputFirefoxStyles as Ce, endIcon as Ae, menuItem as Te, menuItemSelected as Ee, suggestionsContainer as Re } from "./text-field-base.css-mistica.js";
90
+ import { sprinkles as We } from "./sprinkles.css-mistica.js";
91
+ import { vars as Ie } from "./skins/skin-contract.css-mistica.js";
92
+ const W = /*#__PURE__*/ s.forwardRef((_param, M)=>{
93
+ var { error: c , helperText: T , label: n , inputProps: m , inputRef: y , defaultValue: o , value: t , onFocus: u , onBlur: S , inputComponent: h , prefix: g , startIcon: e , endIcon: a , endIconOverlay: L , shrinkLabel: z , multiline: x = !1 , focus: C , fieldRef: D , maxLength: p , id: G , autoComplete: H , fullWidth: K } = _param, r = _object_without_properties(_param, [
94
94
  "error",
95
95
  "helperText",
96
96
  "label",
@@ -115,8 +115,8 @@ const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
115
115
  "fullWidth"
116
116
  ]);
117
117
  var _ref;
118
- const F = W(K), [f, d] = s.useState(o != null && o.length || t != null && t.length ? "filled" : "default"), { isTabletOrSmaller: Q } = ce(), [U, N] = s.useState((_ref = o == null ? void 0 : o.length) !== null && _ref !== void 0 ? _ref : 0), E = !!n || !r.required, w = j(), P = D || (r.type === "date" || r.type === "datetime-local" || r.type === "month") && !r.required, [X, Y] = s.useState("baseline");
119
- fe(()=>{
118
+ const F = O(G), [f, d] = s.useState(o != null && o.length || t != null && t.length ? "filled" : "default"), { isTabletOrSmaller: J } = de(), [Q, N] = s.useState((_ref = o == null ? void 0 : o.length) !== null && _ref !== void 0 ? _ref : 0), E = !!n || !r.required, U = B(), w = z || (r.type === "date" || r.type === "datetime-local" || r.type === "month") && !r.required, [X, Y] = s.useState("baseline");
119
+ ce(()=>{
120
120
  oe() && Y("initial");
121
121
  }, []), s.useEffect(()=>{
122
122
  f !== "focused" && t != null && t.length && (N(t.length), d("filled")), C && d("focused"), C === !1 && !(t != null && t.length) && d("default"), C === !1 && t != null && t.length && d("filled");
@@ -129,77 +129,77 @@ const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
129
129
  }, [
130
130
  r.autoFocus
131
131
  ]);
132
- const Z = L ? "textarea" : "input", v = h ? {
132
+ const Z = x ? "textarea" : "input", $ = h ? {
133
133
  inputRef: y
134
134
  } : {
135
- ref: z(J, y)
135
+ ref: j(M, y)
136
136
  }, b = _object_spread(_object_spread_props(_object_spread({}, r), {
137
- maxLength: S,
138
- autoComplete: M
139
- }), g), k = P || f === "focused" || f === "filled", $ = k ? Q ? se : le : 1, V = {
137
+ maxLength: p,
138
+ autoComplete: H
139
+ }), m), P = w || f === "focused" || f === "filled", v = P ? J ? se : le : 1, V = {
140
140
  left: e ? 48 : R,
141
141
  // shrinking means applying a scale transformation, so width will be proportionally reduced.
142
142
  // Let's keep the original width.
143
- width: `calc(((100% - ${R + (e ? 48 : R)}px)) / ${$})`,
144
- paddingRight: a && !k ? 36 : 0
145
- }, _ = Oe({
143
+ width: `calc(((100% - ${R + (e ? 48 : R)}px)) / ${v})`,
144
+ paddingRight: a && !P ? 36 : 0
145
+ }, k = We({
146
146
  paddingRight: a ? 0 : 16,
147
- paddingLeft: m ? 0 : e ? 48 : 12
148
- }), ee = r.type === "password" && ae(w.platformOverrides) && !B(w.platformOverrides) ? "arial" : "inherit";
147
+ paddingLeft: g ? 0 : e ? 48 : 12
148
+ }), ee = r.type === "password" && !q(U.platformOverrides) ? "Lucida Grande, Arial, sans-serif" : "inherit";
149
149
  return /* @__PURE__ */ te(ie, {
150
150
  disabled: r.disabled,
151
151
  helperText: /* @__PURE__ */ i(ne, {
152
152
  error: c,
153
- leftText: A,
154
- rightText: L && S ? `${U}/${S}` : void 0
153
+ leftText: T,
154
+ rightText: x && p ? `${Q}/${p}` : void 0
155
155
  }),
156
- multiline: L,
157
- fullWidth: G,
158
- fieldRef: H,
156
+ multiline: x,
157
+ fullWidth: K,
158
+ fieldRef: D,
159
159
  readOnly: r.readOnly,
160
160
  children: [
161
161
  e && /* @__PURE__ */ i("div", {
162
- className: he,
162
+ className: fe,
163
163
  children: e
164
164
  }),
165
- m && /* @__PURE__ */ i("div", {
166
- className: T(me, E ? ge : ue),
165
+ g && /* @__PURE__ */ i("div", {
166
+ className: A(he, E ? ge : me),
167
167
  style: {
168
168
  opacity: f === "default" ? 0 : 1,
169
169
  alignSelf: X
170
170
  },
171
- children: /* @__PURE__ */ i(O, {
172
- color: We.colors.textSecondary,
171
+ children: /* @__PURE__ */ i(I, {
172
+ color: Ie.colors.textSecondary,
173
173
  regular: !0,
174
174
  wordBreak: !1,
175
- children: m
175
+ children: g
176
176
  })
177
177
  }),
178
178
  /* @__PURE__ */ i("div", {
179
- className: pe,
179
+ className: ue,
180
180
  style: {
181
- alignSelf: m ? "baseline" : "initial"
181
+ alignSelf: g ? "baseline" : "initial"
182
182
  },
183
- children: /* @__PURE__ */ i(O, {
183
+ children: /* @__PURE__ */ i(I, {
184
184
  as: "div",
185
185
  regular: !0,
186
- children: /*#__PURE__*/ s.createElement(h || Z, _object_spread(_object_spread_props(_object_spread({}, v, b), {
186
+ children: /*#__PURE__*/ s.createElement(h || Z, _object_spread(_object_spread_props(_object_spread({}, $, b), {
187
187
  id: F,
188
188
  style: _object_spread_props(_object_spread({}, b.style), {
189
189
  fontFamily: ee
190
190
  }),
191
- className: L ? T(Se, E ? be : ye, _) : T(xe, E ? Le : Ce, _, {
192
- [Te]: de()
191
+ className: x ? A(Se, E ? pe : be, k) : A(ye, E ? Le : xe, k, {
192
+ [Ce]: ae()
193
193
  }),
194
194
  onFocus: (l)=>{
195
195
  d("focused"), u == null || u(l);
196
196
  },
197
197
  onBlur: (l)=>{
198
- l.target.value.length > 0 ? d("filled") : d("default"), p == null || p(l);
198
+ l.target.value.length > 0 ? d("filled") : d("default"), S == null || S(l);
199
199
  },
200
200
  onChange: (l)=>{
201
- var q;
202
- S === void 0 || l.target.value.length <= S ? (N(l.target.value.length), l.target.value.length > 0 && f !== "focused" && d("filled"), (q = b.onChange) == null || q.call(b, l)) : (l.stopPropagation(), l.preventDefault());
201
+ var _;
202
+ p === void 0 || l.target.value.length <= p ? (N(l.target.value.length), l.target.value.length > 0 && f !== "focused" && d("filled"), (_ = b.onChange) == null || _.call(b, l)) : (l.stopPropagation(), l.preventDefault());
203
203
  },
204
204
  defaultValue: o,
205
205
  value: t
@@ -213,7 +213,7 @@ const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
213
213
  error: c,
214
214
  forId: F,
215
215
  inputState: f,
216
- shrinkLabel: P,
216
+ shrinkLabel: w,
217
217
  optional: !r.required,
218
218
  children: n
219
219
  }),
@@ -221,41 +221,41 @@ const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
221
221
  className: Ae,
222
222
  children: a
223
223
  }),
224
- x
224
+ L
225
225
  ]
226
226
  });
227
- }), Fe = /*#__PURE__*/ s.lazy(()=>import(/* webpackChunkName: "react-autosuggest" */ "react-autosuggest")), Ke = /*#__PURE__*/ s.forwardRef((_param, g)=>{
228
- var { getSuggestions: c , id: A } = _param, n = _object_without_properties(_param, [
227
+ }), Oe = /*#__PURE__*/ s.lazy(()=>import(/* webpackChunkName: "react-autosuggest" */ "react-autosuggest")), Ge = /*#__PURE__*/ s.forwardRef((_param, m)=>{
228
+ var { getSuggestions: c , id: T } = _param, n = _object_without_properties(_param, [
229
229
  "getSuggestions",
230
230
  "id"
231
231
  ]);
232
- const [y, o] = s.useState([]), t = s.useRef(null), { platformOverrides: u , texts: p } = j(), h = W(A), m = W();
232
+ const [y, o] = s.useState([]), t = s.useRef(null), { platformOverrides: u , texts: S } = B(), h = O(T), g = O();
233
233
  if (c && (n.value === void 0 || n.defaultValue !== void 0)) throw Error("Fields with suggestions must be used in controlled mode");
234
234
  return c ? /* @__PURE__ */ i(s.Suspense, {
235
- fallback: /* @__PURE__ */ i(I, _object_spread_props(_object_spread({}, n), {
236
- label: B(u) ? "" : n.label,
235
+ fallback: /* @__PURE__ */ i(W, _object_spread_props(_object_spread({}, n), {
236
+ label: q(u) ? "" : n.label,
237
237
  autoComplete: "off",
238
- ref: g,
238
+ ref: m,
239
239
  id: h
240
240
  })),
241
- children: /* @__PURE__ */ i(Fe, {
242
- id: m,
241
+ children: /* @__PURE__ */ i(Oe, {
242
+ id: g,
243
243
  inputProps: _object_spread_props(_object_spread({}, n), {
244
244
  id: h,
245
245
  autoComplete: "off",
246
246
  // @ts-expect-error Autosuggest expects slightly different types
247
247
  onChange: (e, param)=>{
248
248
  let { newValue: a } = param;
249
- var x;
249
+ var L;
250
250
  e.target = _object_spread_props(_object_spread({}, e.target), {
251
251
  value: a
252
252
  }), e.currentTarget = _object_spread_props(_object_spread({}, e.currentTarget), {
253
253
  value: a
254
- }), (x = n.onChange) == null || x.call(n, e);
254
+ }), (L = n.onChange) == null || L.call(n, e);
255
255
  }
256
256
  }),
257
- renderInputComponent: (e)=>/* @__PURE__ */ i(I, _object_spread_props(_object_spread({}, e), {
258
- inputRef: z(t, n.inputRef, g)
257
+ renderInputComponent: (e)=>/* @__PURE__ */ i(W, _object_spread_props(_object_spread({}, e), {
258
+ inputRef: j(t, n.inputRef, m)
259
259
  })),
260
260
  suggestions: y,
261
261
  onSuggestionsFetchRequested: (param)=>{
@@ -268,10 +268,10 @@ const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
268
268
  let { isHighlighted: a } = param;
269
269
  return i("div", {
270
270
  role: "menuitem",
271
- className: T(Ee, {
272
- [Re]: a
271
+ className: A(Te, {
272
+ [Ee]: a
273
273
  }),
274
- children: /* @__PURE__ */ i(O, {
274
+ children: /* @__PURE__ */ i(I, {
275
275
  regular: !0,
276
276
  children: e
277
277
  })
@@ -281,14 +281,14 @@ const I = /*#__PURE__*/ s.forwardRef((_param, J)=>{
281
281
  style: {
282
282
  width: t.current ? t.current.clientWidth + 2 : 0
283
283
  },
284
- className: Ie,
285
- "aria-label": `${n.label} ${p.menuLabelSuffix}`,
284
+ className: Re,
285
+ "aria-label": `${n.label} ${S.menuLabelSuffix}`,
286
286
  children: e.children
287
287
  }))
288
288
  })
289
- }) : /* @__PURE__ */ i(I, _object_spread_props(_object_spread({}, n), {
289
+ }) : /* @__PURE__ */ i(W, _object_spread_props(_object_spread({}, n), {
290
290
  id: h,
291
- ref: g
291
+ ref: m
292
292
  }));
293
293
  });
294
- export { I as TextFieldBase, Ke as TextFieldBaseAutosuggest };
294
+ export { W as TextFieldBase, Ge as TextFieldBaseAutosuggest };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-field-components.css.ts.vanilla.css-mistica.js";
3
- var _ = 328, a = 12, n = 0.78, f = 0.75, e = "_15k6ur97", y = "_1y2v1nfak _1y2v1nfa1 _1y2v1nf64 _1y2v1nfaa _1y2v1nf5z", i = "_15k6ur96 _1y2v1nf64 _1y2v1nf6a", l = "_15k6ur9e", t = "_15k6ur9d _1y2v1nf92", k = "_1y2v1nf8b", u = "_1y2v1nf7n _1y2v1nf82 _1y2v1nf64", L = "_15k6ur9g", d = "_15k6ur91 _1y2v1nf60 _1y2v1nfam _1y2v1nf8y _1y2v1nf64 _1y2v1nf69 _1y2v1nfb4", E = "_15k6ur93 _1y2v1nfak _1y2v1nf6n", T = "_15k6ur9h", h = "_15k6ur99 _1y2v1nf8b", o = "_15k6ur9i", b = "_15k6ur94";
4
- export { _ as DEFAULT_WIDTH, a as LABEL_LEFT_POSITION, n as LABEL_SCALE_DESKTOP, f as LABEL_SCALE_MOBILE, e as disabled, y as field, i as fieldContainer, l as fieldMulti, t as fieldSingle, k as fullWidth, u as helperContainer, L as helperText, d as labelContainer, E as labelText, T as leftText, h as normalWidth, o as rightText, b as shrinked };
3
+ var _ = 328, a = 12, n = 0.78, f = 0.75, e = "_15k6ur97", y = "_1y2v1nfas _1y2v1nfa9 _1y2v1nf64 _1y2v1nfai _1y2v1nf5z", i = "_15k6ur96 _1y2v1nf64 _1y2v1nf6a", l = "_15k6ur9e", t = "_15k6ur9d _1y2v1nf98", u = "_1y2v1nf8f", k = "_1y2v1nf7p _1y2v1nf85 _1y2v1nf64", d = "_15k6ur9g", L = "_15k6ur91 _1y2v1nf60 _1y2v1nfau _1y2v1nf94 _1y2v1nf64 _1y2v1nf69 _1y2v1nfbd", E = "_15k6ur93 _1y2v1nfas _1y2v1nf6n", T = "_15k6ur9h", h = "_15k6ur99 _1y2v1nf8f", o = "_15k6ur9i", p = "_15k6ur94";
4
+ export { _ as DEFAULT_WIDTH, a as LABEL_LEFT_POSITION, n as LABEL_SCALE_DESKTOP, f as LABEL_SCALE_MOBILE, e as disabled, y as field, i as fieldContainer, l as fieldMulti, t as fieldSingle, u as fullWidth, k as helperContainer, d as helperText, L as labelContainer, E as labelText, T as leftText, h as normalWidth, o as rightText, p as shrinked };
@@ -1,8 +1,8 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./text-link.css.ts.vanilla.css-mistica.js";
3
- var v = {
4
- default: "_1m1n0pr1 _1y2v1nf8c _1y2v1nf67 _1y2v1nfaj _1y2v1nf27",
5
- inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf8c _1y2v1nf67 _1y2v1nfaj _1y2v1nf28",
6
- inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf8c _1y2v1nf67 _1y2v1nfaj _1y2v1nf27"
3
+ var r = {
4
+ default: "_1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf27",
5
+ inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf28",
6
+ inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf27"
7
7
  };
8
- export { v as variants };
8
+ export { r as variants };
package/dist-es/text.js CHANGED
@@ -80,7 +80,7 @@ function _object_without_properties_loose(source, excluded) {
80
80
  import { jsx as r } from "react/jsx-runtime";
81
81
  import * as R from "react";
82
82
  import $ from "classnames";
83
- import { assignInlineVars as S } from "@vanilla-extract/dynamic";
83
+ import { assignInlineVars as L } from "@vanilla-extract/dynamic";
84
84
  import { useIsInverseVariant as j } from "./theme-variant-context.js";
85
85
  import { pxToRem as p } from "./utils/css.js";
86
86
  import { getPrefixedDataAttributes as B } from "./utils/dom.js";
@@ -93,7 +93,7 @@ const J = {
93
93
  medium: 500,
94
94
  bold: 700
95
95
  }, K = (e)=>e === !0 ? 1 : e || "initial", n = (param)=>{
96
- let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: f , as: z = "span" , children: h , size: d , mobileSize: u = d , desktopSize: b = d , lineHeight: T , mobileLineHeight: k = T , desktopLineHeight: L = T , letterSpacing: H , textAlign: w , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
96
+ let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: S , as: z = "span" , children: h , size: u , mobileSize: d = u , desktopSize: b = u , lineHeight: T , mobileLineHeight: f = T , desktopLineHeight: k = T , letterSpacing: w , textAlign: H , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
97
97
  const W = j(), V = K(o), C = {
98
98
  [m.colors.textPrimary]: m.colors.textPrimaryInverse,
99
99
  [m.colors.textSecondary]: m.colors.textSecondaryInverse,
@@ -103,12 +103,12 @@ const J = {
103
103
  const D = $(E, c ? N : q, {
104
104
  [F]: o === 1 || o === !0,
105
105
  [G]: o && o > 1
106
- }), M = S({
107
- [x.mobileSize]: u ? p(u) : "",
108
- [x.mobileLineHeight]: k ? p(k) : "",
106
+ }), M = L({
107
+ [x.mobileSize]: d ? p(d) : "",
108
+ [x.mobileLineHeight]: f ? p(f) : "",
109
109
  [x.desktopSize]: b ? p(b) : "",
110
- [x.desktopLineHeight]: L ? p(L) : ""
111
- }), O = o ? S({
110
+ [x.desktopLineHeight]: k ? p(k) : ""
111
+ }), O = o ? L({
112
112
  [x.lineClamp]: String(V)
113
113
  }) : {};
114
114
  var _C_i;
@@ -119,14 +119,14 @@ const J = {
119
119
  "aria-level": y
120
120
  }, B(I)), {
121
121
  style: _object_spread_props(_object_spread({}, M, O), {
122
- hyphens: f,
123
- letterSpacing: H,
122
+ hyphens: S,
123
+ letterSpacing: w,
124
124
  fontWeight: e ? J[e] : "inherit",
125
125
  textTransform: g || "inherit",
126
126
  textDecoration: t !== null && t !== void 0 ? t : "inherit",
127
127
  overflowWrap: c ? "anywhere" : "inherit",
128
128
  color: W ? (_C_i = C[i]) !== null && _C_i !== void 0 ? _C_i : i : i,
129
- textAlign: w,
129
+ textAlign: H,
130
130
  textShadow: v
131
131
  })
132
132
  }), h);
@@ -134,6 +134,7 @@ const J = {
134
134
  if (e.light) return "light";
135
135
  if (e.regular) return "regular";
136
136
  if (e.medium) return "medium";
137
+ if (e.weight) return e.weight;
137
138
  }, s = (param)=>{
138
139
  let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: g } = param;
139
140
  return e ? {