@telefonica/mistica 16.8.0 → 16.9.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 (223) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +6 -6
  3. package/dist/align.css-mistica.js +1 -1
  4. package/dist/avatar.css-mistica.js +1 -1
  5. package/dist/badge.css-mistica.js +1 -1
  6. package/dist/box.css-mistica.js +13 -13
  7. package/dist/boxed.css-mistica.js +23 -23
  8. package/dist/button-group.css-mistica.js +1 -1
  9. package/dist/button-layout.css-mistica.js +13 -13
  10. package/dist/button.css-mistica.js +16 -16
  11. package/dist/callout.css-mistica.js +5 -5
  12. package/dist/card.css-mistica.js +3 -3
  13. package/dist/carousel.css-mistica.js +6 -6
  14. package/dist/checkbox.css-mistica.js +7 -7
  15. package/dist/chip.css-mistica.js +10 -10
  16. package/dist/circle.css-mistica.js +1 -1
  17. package/dist/community/advanced-data-card.css-mistica.js +6 -6
  18. package/dist/community/blocks.css-mistica.js +1 -1
  19. package/dist/community/blocks.d.ts +2 -1
  20. package/dist/community/blocks.js +44 -30
  21. package/dist/community/example-component.css-mistica.js +1 -1
  22. package/dist/counter.css-mistica.js +1 -1
  23. package/dist/cover-hero.css-mistica.js +3 -3
  24. package/dist/credit-card-number-field.css-mistica.js +3 -3
  25. package/dist/date-field.css-mistica.js +1 -1
  26. package/dist/date-time-picker.css-mistica.js +1 -1
  27. package/dist/dialog.css-mistica.js +4 -4
  28. package/dist/divider.css-mistica.js +2 -2
  29. package/dist/double-field.css-mistica.js +2 -2
  30. package/dist/drawer.css-mistica.js +1 -1
  31. package/dist/empty-state-card.css-mistica.js +1 -1
  32. package/dist/empty-state.css-mistica.js +5 -5
  33. package/dist/fade-in.css-mistica.js +1 -1
  34. package/dist/feedback.css-mistica.js +1 -1
  35. package/dist/fixed-footer-layout.css-mistica.js +4 -4
  36. package/dist/form.css-mistica.js +1 -1
  37. package/dist/form.js +86 -76
  38. package/dist/generated/mistica-icons/icon-artificial-intelligence-filled.d.ts +4 -0
  39. package/dist/generated/mistica-icons/icon-artificial-intelligence-filled.js +111 -0
  40. package/dist/generated/mistica-icons/icon-artificial-intelligence-light.d.ts +4 -0
  41. package/dist/generated/mistica-icons/icon-artificial-intelligence-light.js +111 -0
  42. package/dist/generated/mistica-icons/icon-artificial-intelligence-regular.d.ts +4 -0
  43. package/dist/generated/mistica-icons/icon-artificial-intelligence-regular.js +111 -0
  44. package/dist/generated/mistica-icons/icon-my-handy-filled.d.ts +4 -0
  45. package/dist/generated/mistica-icons/icon-my-handy-filled.js +111 -0
  46. package/dist/generated/mistica-icons/icon-my-handy-light.d.ts +4 -0
  47. package/dist/generated/mistica-icons/icon-my-handy-light.js +117 -0
  48. package/dist/generated/mistica-icons/icon-my-handy-regular.d.ts +4 -0
  49. package/dist/generated/mistica-icons/icon-my-handy-regular.js +117 -0
  50. package/dist/generated/mistica-icons/icon-router-regular.js +10 -20
  51. package/dist/generated/mistica-icons/icon-video-camera-disabled-filled.js +4 -4
  52. package/dist/generated/mistica-icons/icon-video-camera-disabled-light.js +14 -14
  53. package/dist/generated/mistica-icons/icon-video-camera-disabled-regular.js +9 -9
  54. package/dist/generated/mistica-icons/icon-video-camera-filled.js +1 -1
  55. package/dist/generated/mistica-icons/icon-video-camera-light.js +13 -13
  56. package/dist/generated/mistica-icons/icon-video-camera-regular.js +8 -8
  57. package/dist/generated/mistica-icons/icons-keywords.js +19 -0
  58. package/dist/grid-layout.css-mistica.js +3 -3
  59. package/dist/grid.css-mistica.js +122 -122
  60. package/dist/header.css-mistica.js +1 -1
  61. package/dist/hero.css-mistica.js +2 -2
  62. package/dist/highlighted-card.css-mistica.js +4 -4
  63. package/dist/horizontal-scroll.css-mistica.js +1 -1
  64. package/dist/icon-button.css-mistica.js +42 -42
  65. package/dist/icons/icon-chevron.css-mistica.js +2 -2
  66. package/dist/icons/icon-error.css-mistica.js +1 -1
  67. package/dist/image.css-mistica.js +2 -2
  68. package/dist/index.d.ts +6 -0
  69. package/dist/index.js +24 -0
  70. package/dist/inline.css-mistica.js +6 -6
  71. package/dist/list.css-mistica.js +1 -1
  72. package/dist/loading-bar.css-mistica.js +1 -1
  73. package/dist/loading-screen.css-mistica.js +4 -4
  74. package/dist/logo.css-mistica.js +5 -5
  75. package/dist/maybe-dismissable.css-mistica.js +1 -1
  76. package/dist/menu.css-mistica.js +12 -12
  77. package/dist/mosaic.css-mistica.js +1 -1
  78. package/dist/navigation-bar.css-mistica.js +16 -16
  79. package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
  80. package/dist/package-version.js +1 -1
  81. package/dist/pin-field.css-mistica.js +1 -1
  82. package/dist/popover.css-mistica.js +1 -1
  83. package/dist/progress-bar.css-mistica.js +4 -4
  84. package/dist/radio-button.css-mistica.js +14 -14
  85. package/dist/rating.css-mistica.js +2 -2
  86. package/dist/responsive-layout.css-mistica.js +4 -4
  87. package/dist/screen-reader-only.css-mistica.js +1 -1
  88. package/dist/select.css-mistica.js +15 -15
  89. package/dist/sheet-action-row.css-mistica.js +1 -1
  90. package/dist/sheet-common.css-mistica.js +1 -1
  91. package/dist/sheet-info.css-mistica.js +1 -1
  92. package/dist/skeletons.css-mistica.js +4 -4
  93. package/dist/skins/skin-contract.css-mistica.js +314 -314
  94. package/dist/slider.css-mistica.js +10 -10
  95. package/dist/snackbar.css-mistica.js +4 -4
  96. package/dist/spinner.css-mistica.js +1 -1
  97. package/dist/stack.css-mistica.js +5 -5
  98. package/dist/stacking-group.css-mistica.js +1 -1
  99. package/dist/stepper.css-mistica.js +2 -2
  100. package/dist/switch-component.css-mistica.js +26 -26
  101. package/dist/table.css-mistica.js +8 -8
  102. package/dist/tabs.css-mistica.js +12 -12
  103. package/dist/tag.css-mistica.js +1 -1
  104. package/dist/text-field-base.css-mistica.js +1 -1
  105. package/dist/text-field-components.css-mistica.js +3 -3
  106. package/dist/text-link.css-mistica.js +3 -3
  107. package/dist/text.css-mistica.js +7 -7
  108. package/dist/theme-context.css-mistica.js +354 -354
  109. package/dist/timer.css-mistica.js +6 -6
  110. package/dist/tooltip.css-mistica.js +1 -1
  111. package/dist/touchable.css-mistica.js +1 -1
  112. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  113. package/dist/utils/platform.js +5 -5
  114. package/dist/video.css-mistica.js +1 -1
  115. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  116. package/dist-es/accordion.css-mistica.js +6 -6
  117. package/dist-es/align.css-mistica.js +1 -1
  118. package/dist-es/avatar.css-mistica.js +1 -1
  119. package/dist-es/badge.css-mistica.js +1 -1
  120. package/dist-es/box.css-mistica.js +13 -13
  121. package/dist-es/boxed.css-mistica.js +23 -23
  122. package/dist-es/button-group.css-mistica.js +1 -1
  123. package/dist-es/button-layout.css-mistica.js +13 -13
  124. package/dist-es/button.css-mistica.js +16 -16
  125. package/dist-es/callout.css-mistica.js +5 -5
  126. package/dist-es/card.css-mistica.js +3 -3
  127. package/dist-es/carousel.css-mistica.js +6 -6
  128. package/dist-es/checkbox.css-mistica.js +7 -7
  129. package/dist-es/chip.css-mistica.js +10 -10
  130. package/dist-es/circle.css-mistica.js +1 -1
  131. package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
  132. package/dist-es/community/blocks.css-mistica.js +1 -1
  133. package/dist-es/community/blocks.js +62 -48
  134. package/dist-es/community/example-component.css-mistica.js +1 -1
  135. package/dist-es/counter.css-mistica.js +1 -1
  136. package/dist-es/cover-hero.css-mistica.js +3 -3
  137. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  138. package/dist-es/date-field.css-mistica.js +1 -1
  139. package/dist-es/date-time-picker.css-mistica.js +1 -1
  140. package/dist-es/dialog.css-mistica.js +4 -4
  141. package/dist-es/divider.css-mistica.js +2 -2
  142. package/dist-es/double-field.css-mistica.js +2 -2
  143. package/dist-es/drawer.css-mistica.js +1 -1
  144. package/dist-es/empty-state-card.css-mistica.js +1 -1
  145. package/dist-es/empty-state.css-mistica.js +5 -5
  146. package/dist-es/fade-in.css-mistica.js +1 -1
  147. package/dist-es/feedback.css-mistica.js +1 -1
  148. package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
  149. package/dist-es/form.css-mistica.js +1 -1
  150. package/dist-es/form.js +96 -86
  151. package/dist-es/generated/mistica-icons/icon-artificial-intelligence-filled.js +102 -0
  152. package/dist-es/generated/mistica-icons/icon-artificial-intelligence-light.js +102 -0
  153. package/dist-es/generated/mistica-icons/icon-artificial-intelligence-regular.js +102 -0
  154. package/dist-es/generated/mistica-icons/icon-my-handy-filled.js +102 -0
  155. package/dist-es/generated/mistica-icons/icon-my-handy-light.js +108 -0
  156. package/dist-es/generated/mistica-icons/icon-my-handy-regular.js +108 -0
  157. package/dist-es/generated/mistica-icons/icon-router-regular.js +16 -26
  158. package/dist-es/generated/mistica-icons/icon-video-camera-disabled-filled.js +9 -9
  159. package/dist-es/generated/mistica-icons/icon-video-camera-disabled-light.js +20 -20
  160. package/dist-es/generated/mistica-icons/icon-video-camera-disabled-regular.js +17 -17
  161. package/dist-es/generated/mistica-icons/icon-video-camera-filled.js +1 -1
  162. package/dist-es/generated/mistica-icons/icon-video-camera-light.js +14 -14
  163. package/dist-es/generated/mistica-icons/icon-video-camera-regular.js +18 -18
  164. package/dist-es/generated/mistica-icons/icons-keywords.js +19 -0
  165. package/dist-es/grid-layout.css-mistica.js +3 -3
  166. package/dist-es/grid.css-mistica.js +122 -122
  167. package/dist-es/header.css-mistica.js +1 -1
  168. package/dist-es/hero.css-mistica.js +2 -2
  169. package/dist-es/highlighted-card.css-mistica.js +4 -4
  170. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  171. package/dist-es/icon-button.css-mistica.js +42 -42
  172. package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
  173. package/dist-es/icons/icon-error.css-mistica.js +1 -1
  174. package/dist-es/image.css-mistica.js +2 -2
  175. package/dist-es/index.js +1632 -1626
  176. package/dist-es/inline.css-mistica.js +6 -6
  177. package/dist-es/list.css-mistica.js +1 -1
  178. package/dist-es/loading-bar.css-mistica.js +1 -1
  179. package/dist-es/loading-screen.css-mistica.js +4 -4
  180. package/dist-es/logo.css-mistica.js +5 -5
  181. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  182. package/dist-es/menu.css-mistica.js +12 -12
  183. package/dist-es/mosaic.css-mistica.js +1 -1
  184. package/dist-es/navigation-bar.css-mistica.js +16 -16
  185. package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
  186. package/dist-es/package-version.js +1 -1
  187. package/dist-es/pin-field.css-mistica.js +1 -1
  188. package/dist-es/popover.css-mistica.js +1 -1
  189. package/dist-es/progress-bar.css-mistica.js +4 -4
  190. package/dist-es/radio-button.css-mistica.js +14 -14
  191. package/dist-es/rating.css-mistica.js +2 -2
  192. package/dist-es/responsive-layout.css-mistica.js +4 -4
  193. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  194. package/dist-es/select.css-mistica.js +15 -15
  195. package/dist-es/sheet-action-row.css-mistica.js +1 -1
  196. package/dist-es/sheet-common.css-mistica.js +1 -1
  197. package/dist-es/sheet-info.css-mistica.js +1 -1
  198. package/dist-es/skeletons.css-mistica.js +4 -4
  199. package/dist-es/skins/skin-contract.css-mistica.js +314 -314
  200. package/dist-es/slider.css-mistica.js +10 -10
  201. package/dist-es/snackbar.css-mistica.js +4 -4
  202. package/dist-es/spinner.css-mistica.js +1 -1
  203. package/dist-es/stack.css-mistica.js +5 -5
  204. package/dist-es/stacking-group.css-mistica.js +1 -1
  205. package/dist-es/stepper.css-mistica.js +2 -2
  206. package/dist-es/style.css +1 -1
  207. package/dist-es/switch-component.css-mistica.js +26 -26
  208. package/dist-es/table.css-mistica.js +8 -8
  209. package/dist-es/tabs.css-mistica.js +12 -12
  210. package/dist-es/tag.css-mistica.js +1 -1
  211. package/dist-es/text-field-base.css-mistica.js +1 -1
  212. package/dist-es/text-field-components.css-mistica.js +3 -3
  213. package/dist-es/text-link.css-mistica.js +3 -3
  214. package/dist-es/text.css-mistica.js +7 -7
  215. package/dist-es/theme-context.css-mistica.js +354 -354
  216. package/dist-es/timer.css-mistica.js +6 -6
  217. package/dist-es/tooltip.css-mistica.js +1 -1
  218. package/dist-es/touchable.css-mistica.js +1 -1
  219. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  220. package/dist-es/utils/platform.js +5 -5
  221. package/dist-es/video.css-mistica.js +1 -1
  222. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  223. package/package.json +1 -1
package/dist-es/form.js CHANGED
@@ -51,139 +51,149 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as g, jsxs as $ } from "react/jsx-runtime";
54
+ import { jsx as y, jsxs as G } from "react/jsx-runtime";
55
55
  import * as n from "react";
56
- import { useTheme as q } from "./hooks.js";
57
- import { FormContext as G } from "./form-context.js";
58
- import U from "classnames";
59
- import { form as z } from "./form.css-mistica.js";
60
- import { formFieldErrorIsMandatory as H, formErrorsAlertMessage as K } from "./text-tokens.js";
61
- import Q from "./screen-reader-only.js";
56
+ import { useTheme as U } from "./hooks.js";
57
+ import { FormContext as z } from "./form-context.js";
58
+ import H from "classnames";
59
+ import { form as K } from "./form.css-mistica.js";
60
+ import { formFieldErrorIsMandatory as Q, formErrorsAlertMessage as X } from "./text-tokens.js";
61
+ import Y from "./screen-reader-only.js";
62
+ import { isIos as Z } from "./utils/platform.js";
62
63
  process.env.NODE_ENV !== "test" && typeof document < "u" && !("scrollBehavior" in document.documentElement.style) && import("scroll-behavior-polyfill").finally(()=>{});
63
- const X = (param)=>{
64
- let { children: S, className: j, onSubmit: k, initialValues: E = {}, autoJump: O = !1, onValidationErrors: a, getErrorMessageForScreenReader: v, id: M } = param;
65
- const f = n.useRef(!0), [u, V] = n.useState(E), [c, w] = n.useState(E), [P, m] = n.useState("filling"), [d, F] = n.useState({}), l = n.useRef(/* @__PURE__ */ new Map()), p = n.useRef(null), { texts: b, t: h } = q(), T = n.useId(), I = M || T;
64
+ const J = (param)=>{
65
+ let { children: M, className: T, onSubmit: O, initialValues: g = {}, autoJump: k = !1, onValidationErrors: a, getErrorMessageForScreenReader: F, id: V } = param;
66
+ const f = n.useRef(!0), [u, w] = n.useState(g), [i, A] = n.useState(g), [P, m] = n.useState("filling"), [d, I] = n.useState({}), l = n.useRef(/* @__PURE__ */ new Map()), p = n.useRef(null), { texts: b, t: h, platformOverrides: v } = U(), D = n.useId(), C = V || D;
66
67
  n.useEffect(()=>(f.current = !0, ()=>{
67
68
  f.current = !1;
68
69
  }), []);
69
- const A = n.useCallback((e, param)=>{
70
- let { input: t, validator: s, focusableElement: r, label: o } = param;
71
- t || r ? l.current.set(e, {
72
- input: t,
73
- validator: s,
74
- focusableElement: r,
75
- label: o
70
+ const L = n.useCallback((e, param)=>{
71
+ let { input: s, validator: o, focusableElement: t, label: r } = param;
72
+ s || t ? l.current.set(e, {
73
+ input: s,
74
+ validator: o,
75
+ focusableElement: t,
76
+ label: r
76
77
  }) : l.current.delete(e);
77
- }, []), D = n.useCallback((param)=>{
78
- let { name: e, error: t } = param;
79
- return F((s)=>_object_spread_props(_object_spread({}, s), {
80
- [e]: t
78
+ }, []), W = n.useCallback((param)=>{
79
+ let { name: e, error: s } = param;
80
+ return I((o)=>_object_spread_props(_object_spread({}, o), {
81
+ [e]: s
81
82
  }));
82
- }, []), y = n.useCallback(()=>{
83
- var s;
83
+ }, []), N = n.useCallback((e)=>Z(v) ? !(e.tagName === "SELECT" || [
84
+ "date",
85
+ "datetime-local",
86
+ "month"
87
+ ].includes(e.type)) : !0, [
88
+ v
89
+ ]), E = n.useCallback(()=>{
90
+ var o;
84
91
  const e = {};
85
- for (const [r, { input: o, validator: i }] of l.current)if (o) {
86
- if (o.disabled) continue;
87
- if (o.required && !((s = c[r]) != null && s.trim())) e[r] = b.formFieldErrorIsMandatory || h(H);
92
+ for (const [t, { input: r, validator: c }] of l.current)if (r) {
93
+ if (r.disabled) continue;
94
+ if (r.required && !((o = i[t]) != null && o.trim())) e[t] = b.formFieldErrorIsMandatory || h(Q);
88
95
  else {
89
- const R = i == null ? void 0 : i(u[r], c[r]);
90
- R && (e[r] = R);
96
+ const j = c == null ? void 0 : c(u[t], i[t]);
97
+ j && (e[t] = j);
91
98
  }
92
99
  }
93
- const t = Object.keys(e).map((r)=>{
94
- const o = l.current.get(r);
95
- return (o == null ? void 0 : o.focusableElement) || (o == null ? void 0 : o.input);
100
+ const s = Object.keys(e).map((t)=>{
101
+ const r = l.current.get(t);
102
+ return (r == null ? void 0 : r.focusableElement) || (r == null ? void 0 : r.input);
96
103
  }).filter(Boolean);
97
- if (t.length) {
98
- t.sort((r, o)=>r.compareDocumentPosition(o) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1), t[0].focus();
104
+ if (s.length) {
105
+ s.sort((r, c)=>r.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
106
+ const t = s[0];
107
+ N(t) && t.focus();
99
108
  try {
100
- t[0].scrollIntoView({
109
+ t.scrollIntoView({
101
110
  behavior: "smooth",
102
111
  block: "center",
103
112
  inline: "center"
104
113
  });
105
114
  } catch (e) {}
106
115
  }
107
- return F(e), a && Object.keys(e).length > 0 && a(e), e;
116
+ return I(e), a && Object.keys(e).length > 0 && a(e), e;
108
117
  }, [
109
118
  a,
110
- c,
111
- b,
119
+ i,
120
+ b.formFieldErrorIsMandatory,
121
+ h,
112
122
  u,
113
- h
123
+ N
114
124
  ]), B = n.useCallback((e)=>{
115
125
  setTimeout(()=>{
116
- var t;
117
- if (O && p.current) {
118
- const s = Array.from(p.current.querySelectorAll("input, select")), r = (t = l.current.get(e)) == null ? void 0 : t.input, o = s.indexOf(r);
119
- if (o >= 0) {
120
- const i = s[o + 1];
121
- i ? i.focus() : r == null || r.blur();
126
+ var s;
127
+ if (k && p.current) {
128
+ const o = Array.from(p.current.querySelectorAll("input, select")), t = (s = l.current.get(e)) == null ? void 0 : s.input, r = o.indexOf(t);
129
+ if (r >= 0) {
130
+ const c = o[r + 1];
131
+ c ? c.focus() : t == null || t.blur();
122
132
  }
123
133
  }
124
134
  }, 100);
125
135
  }, [
126
- O
127
- ]), x = (e)=>[
136
+ k
137
+ ]), S = (e)=>[
128
138
  ...l.current.keys()
129
- ].reduce((t, s)=>{
130
- var r, o;
131
- return (o = (r = l.current.get(s)) == null ? void 0 : r.input) != null && o.disabled ? t : _object_spread_props(_object_spread({}, t), {
132
- [s]: e[s]
139
+ ].reduce((s, o)=>{
140
+ var t, r;
141
+ return (r = (t = l.current.get(o)) == null ? void 0 : t.input) != null && r.disabled ? s : _object_spread_props(_object_spread({}, s), {
142
+ [o]: e[o]
133
143
  });
134
- }, {}), C = n.useCallback((e)=>(e == null || e.preventDefault(), m("sending"), Object.keys(y()).length > 0 ? (m("filling"), Promise.resolve()) : Promise.resolve(k(x(u), x(c))).finally(()=>{
144
+ }, {}), x = n.useCallback((e)=>(e == null || e.preventDefault(), m("sending"), Object.keys(E()).length > 0 ? (m("filling"), Promise.resolve()) : Promise.resolve(O(S(u), S(i))).finally(()=>{
135
145
  f.current && m("filling");
136
146
  })), [
137
- k,
138
- c,
139
- y,
147
+ O,
148
+ i,
149
+ E,
140
150
  u
141
- ]), L = n.useCallback((param)=>{
142
- let { name: e, value: t } = param;
143
- V((s)=>_object_spread_props(_object_spread({}, s), {
144
- [e]: t
151
+ ]), _ = n.useCallback((param)=>{
152
+ let { name: e, value: s } = param;
153
+ w((o)=>_object_spread_props(_object_spread({}, o), {
154
+ [e]: s
145
155
  }));
146
- }, []), W = n.useCallback((param)=>{
147
- let { name: e, value: t } = param;
148
- w((s)=>_object_spread_props(_object_spread({}, s), {
149
- [e]: t
156
+ }, []), $ = n.useCallback((param)=>{
157
+ let { name: e, value: s } = param;
158
+ A((o)=>_object_spread_props(_object_spread({}, o), {
159
+ [e]: s
150
160
  }));
151
- }, []), N = Object.entries(d).map((param)=>{
152
- let [e, t] = param;
153
- var s;
154
- return t && ((s = l.current.get(e)) == null ? void 0 : s.label);
155
- }).filter(Boolean), _ = N.length > 1;
156
- return /* @__PURE__ */ g(G.Provider, {
161
+ }, []), R = Object.entries(d).map((param)=>{
162
+ let [e, s] = param;
163
+ var o;
164
+ return s && ((o = l.current.get(e)) == null ? void 0 : o.label);
165
+ }).filter(Boolean), q = R.length > 1;
166
+ return /* @__PURE__ */ y(z.Provider, {
157
167
  value: {
158
168
  formStatus: P,
159
169
  values: u,
160
- setValue: L,
161
- rawValues: c,
162
- setRawValue: W,
170
+ setValue: _,
171
+ rawValues: i,
172
+ setRawValue: $,
163
173
  formErrors: d,
164
- setFormError: D,
165
- register: A,
174
+ setFormError: W,
175
+ register: L,
166
176
  jumpToNext: B,
167
- validate: y,
168
- submit: C,
169
- formId: I
177
+ validate: E,
178
+ submit: x,
179
+ formId: C
170
180
  },
171
- children: /* @__PURE__ */ $("form", {
172
- id: I,
173
- onSubmit: C,
181
+ children: /* @__PURE__ */ G("form", {
182
+ id: C,
183
+ onSubmit: x,
174
184
  ref: p,
175
- className: U(z, j),
185
+ className: H(K, T),
176
186
  noValidate: !0,
177
187
  children: [
178
- _ ? /* @__PURE__ */ g(Q, {
179
- children: /* @__PURE__ */ g("span", {
188
+ q ? /* @__PURE__ */ y(Y, {
189
+ children: /* @__PURE__ */ y("span", {
180
190
  role: "alert",
181
- children: v ? v(d) : `${b.formErrorsAlertMessage || h(K)} ${N.join(", ")}`
191
+ children: F ? F(d) : `${b.formErrorsAlertMessage || h(X)} ${R.join(", ")}`
182
192
  })
183
193
  }) : null,
184
- S
194
+ M
185
195
  ]
186
196
  })
187
197
  });
188
- }, oe = X;
189
- export { oe as default };
198
+ }, ie = J;
199
+ export { ie as default };
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ function _define_property(obj, key, value) {
3
+ if (key in obj) {
4
+ Object.defineProperty(obj, key, {
5
+ value: value,
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true
9
+ });
10
+ } else {
11
+ obj[key] = value;
12
+ }
13
+ return obj;
14
+ }
15
+ function _object_spread(target) {
16
+ for(var i = 1; i < arguments.length; i++){
17
+ var source = arguments[i] != null ? arguments[i] : {};
18
+ var ownKeys = Object.keys(source);
19
+ if (typeof Object.getOwnPropertySymbols === "function") {
20
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
21
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
22
+ }));
23
+ }
24
+ ownKeys.forEach(function(key) {
25
+ _define_property(target, key, source[key]);
26
+ });
27
+ }
28
+ return target;
29
+ }
30
+ function ownKeys(object, enumerableOnly) {
31
+ var keys = Object.keys(object);
32
+ if (Object.getOwnPropertySymbols) {
33
+ var symbols = Object.getOwnPropertySymbols(object);
34
+ if (enumerableOnly) {
35
+ symbols = symbols.filter(function(sym) {
36
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37
+ });
38
+ }
39
+ keys.push.apply(keys, symbols);
40
+ }
41
+ return keys;
42
+ }
43
+ function _object_spread_props(target, source) {
44
+ source = source != null ? source : {};
45
+ if (Object.getOwnPropertyDescriptors) {
46
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
+ } else {
48
+ ownKeys(Object(source)).forEach(function(key) {
49
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
+ });
51
+ }
52
+ return target;
53
+ }
54
+ function _object_without_properties(source, excluded) {
55
+ if (source == null) return {};
56
+ var target = _object_without_properties_loose(source, excluded);
57
+ var key, i;
58
+ if (Object.getOwnPropertySymbols) {
59
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
+ for(i = 0; i < sourceSymbolKeys.length; i++){
61
+ key = sourceSymbolKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
+ target[key] = source[key];
65
+ }
66
+ }
67
+ return target;
68
+ }
69
+ function _object_without_properties_loose(source, excluded) {
70
+ if (source == null) return {};
71
+ var target = {};
72
+ var sourceKeys = Object.keys(source);
73
+ var key, i;
74
+ for(i = 0; i < sourceKeys.length; i++){
75
+ key = sourceKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ target[key] = source[key];
78
+ }
79
+ return target;
80
+ }
81
+ import { jsx as e } from "react/jsx-runtime";
82
+ import { useIsInverseOrMediaVariant as n } from "../../theme-variant-context.js";
83
+ import { vars as i } from "../../skins/skin-contract.css-mistica.js";
84
+ const a = (_param)=>{
85
+ var { color: r, size: l = 24 } = _param, o = _object_without_properties(_param, [
86
+ "color",
87
+ "size"
88
+ ]);
89
+ const t = n(), c = r !== null && r !== void 0 ? r : t ? i.colors.inverse : i.colors.neutralHigh;
90
+ return /* @__PURE__ */ e("svg", _object_spread_props(_object_spread({
91
+ width: l,
92
+ height: l,
93
+ viewBox: "0 0 24 24",
94
+ role: "presentation"
95
+ }, o), {
96
+ children: /* @__PURE__ */ e("path", {
97
+ fill: c,
98
+ d: "m4.332 7.975-.79-1.75-1.75-.79a.5.5 0 0 1 0-.91l1.75-.79.79-1.76a.5.5 0 0 1 .91 0l.79 1.75 1.76.79a.5.5 0 0 1 0 .91l-1.75.79-.79 1.76c-.18.39-.74.39-.92 0M6.539 22.014l-.79-1.75-1.75-.79a.5.5 0 0 1 0-.91l1.75-.79.79-1.76a.5.5 0 0 1 .91 0l.79 1.75 1.76.79a.5.5 0 0 1 0 .91l-1.75.79-.79 1.76c-.18.39-.74.39-.92 0M15.006 6l-1.59 3.5-3.5 1.59c-.78.35-.78 1.46 0 1.82l3.5 1.59 1.59 3.5c.35.78 1.46.78 1.82 0l1.59-3.5 3.5-1.59c.78-.35.78-1.46 0-1.82l-3.5-1.59-1.59-3.5c-.35-.78-1.47-.78-1.82 0"
99
+ })
100
+ }));
101
+ }, m = a;
102
+ export { m as default };
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ function _define_property(obj, key, value) {
3
+ if (key in obj) {
4
+ Object.defineProperty(obj, key, {
5
+ value: value,
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true
9
+ });
10
+ } else {
11
+ obj[key] = value;
12
+ }
13
+ return obj;
14
+ }
15
+ function _object_spread(target) {
16
+ for(var i = 1; i < arguments.length; i++){
17
+ var source = arguments[i] != null ? arguments[i] : {};
18
+ var ownKeys = Object.keys(source);
19
+ if (typeof Object.getOwnPropertySymbols === "function") {
20
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
21
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
22
+ }));
23
+ }
24
+ ownKeys.forEach(function(key) {
25
+ _define_property(target, key, source[key]);
26
+ });
27
+ }
28
+ return target;
29
+ }
30
+ function ownKeys(object, enumerableOnly) {
31
+ var keys = Object.keys(object);
32
+ if (Object.getOwnPropertySymbols) {
33
+ var symbols = Object.getOwnPropertySymbols(object);
34
+ if (enumerableOnly) {
35
+ symbols = symbols.filter(function(sym) {
36
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37
+ });
38
+ }
39
+ keys.push.apply(keys, symbols);
40
+ }
41
+ return keys;
42
+ }
43
+ function _object_spread_props(target, source) {
44
+ source = source != null ? source : {};
45
+ if (Object.getOwnPropertyDescriptors) {
46
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
+ } else {
48
+ ownKeys(Object(source)).forEach(function(key) {
49
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
+ });
51
+ }
52
+ return target;
53
+ }
54
+ function _object_without_properties(source, excluded) {
55
+ if (source == null) return {};
56
+ var target = _object_without_properties_loose(source, excluded);
57
+ var key, i;
58
+ if (Object.getOwnPropertySymbols) {
59
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
+ for(i = 0; i < sourceSymbolKeys.length; i++){
61
+ key = sourceSymbolKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
+ target[key] = source[key];
65
+ }
66
+ }
67
+ return target;
68
+ }
69
+ function _object_without_properties_loose(source, excluded) {
70
+ if (source == null) return {};
71
+ var target = {};
72
+ var sourceKeys = Object.keys(source);
73
+ var key, i;
74
+ for(i = 0; i < sourceKeys.length; i++){
75
+ key = sourceKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ target[key] = source[key];
78
+ }
79
+ return target;
80
+ }
81
+ import { jsx as a } from "react/jsx-runtime";
82
+ import { useIsInverseOrMediaVariant as o } from "../../theme-variant-context.js";
83
+ import { vars as i } from "../../skins/skin-contract.css-mistica.js";
84
+ const n = (_param)=>{
85
+ var { color: r, size: l = 24 } = _param, c = _object_without_properties(_param, [
86
+ "color",
87
+ "size"
88
+ ]);
89
+ const e = o(), t = r !== null && r !== void 0 ? r : e ? i.colors.inverse : i.colors.neutralHigh;
90
+ return /* @__PURE__ */ a("svg", _object_spread_props(_object_spread({
91
+ width: l,
92
+ height: l,
93
+ viewBox: "0 0 24 24",
94
+ role: "presentation"
95
+ }, c), {
96
+ children: /* @__PURE__ */ a("path", {
97
+ fill: t,
98
+ d: "m3.541 6.225.79 1.75c.18.39.74.39.92 0l.79-1.76 1.75-.79a.5.5 0 0 0 0-.91l-1.76-.79-.79-1.75a.5.5 0 0 0-.91 0l-.79 1.76-1.75.79a.5.5 0 0 0 0 .91zm.658-.658-.83-.374a.237.237 0 0 1 0-.432l.83-.374.374-.834a.237.237 0 0 1 .432 0l.374.83.834.374a.237.237 0 0 1 0 .431l-.83.374-.373.835a.24.24 0 0 1-.437 0zM15.006 6l-1.59 3.5-3.5 1.59c-.78.35-.78 1.46 0 1.82l3.5 1.59 1.59 3.5c.35.78 1.46.78 1.82 0l1.59-3.5 3.5-1.59c.78-.35.78-1.46 0-1.82l-3.5-1.59-1.59-3.5c-.35-.78-1.47-.78-1.82 0m-.721 7.631-3.46-1.475c-.258-.18 0-.29 0-.29l3.46-1.484 1.39-3.26c.131-.275.372-.38.521 0l1.338 3.247 3.34 1.427c.183.081.164.264.045.32l-3.371 1.502-1.46 3.165c-.098.197-.285.34-.434 0zM6.539 22.014l-.79-1.75-1.75-.79a.5.5 0 0 1 0-.91l1.75-.79.79-1.76a.5.5 0 0 1 .91 0l.79 1.75 1.76.79a.5.5 0 0 1 0 .91l-1.75.79-.79 1.76c-.18.39-.74.39-.92 0m.242-1.578a.24.24 0 0 0 .436 0l.374-.835.83-.374a.237.237 0 0 0 0-.431l-.835-.375-.374-.83a.237.237 0 0 0-.431 0l-.375.835-.83.374a.237.237 0 0 0 0 .432l.83.374z"
99
+ })
100
+ }));
101
+ }, h = n;
102
+ export { h as default };
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ function _define_property(obj, key, value) {
3
+ if (key in obj) {
4
+ Object.defineProperty(obj, key, {
5
+ value: value,
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true
9
+ });
10
+ } else {
11
+ obj[key] = value;
12
+ }
13
+ return obj;
14
+ }
15
+ function _object_spread(target) {
16
+ for(var i = 1; i < arguments.length; i++){
17
+ var source = arguments[i] != null ? arguments[i] : {};
18
+ var ownKeys = Object.keys(source);
19
+ if (typeof Object.getOwnPropertySymbols === "function") {
20
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
21
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
22
+ }));
23
+ }
24
+ ownKeys.forEach(function(key) {
25
+ _define_property(target, key, source[key]);
26
+ });
27
+ }
28
+ return target;
29
+ }
30
+ function ownKeys(object, enumerableOnly) {
31
+ var keys = Object.keys(object);
32
+ if (Object.getOwnPropertySymbols) {
33
+ var symbols = Object.getOwnPropertySymbols(object);
34
+ if (enumerableOnly) {
35
+ symbols = symbols.filter(function(sym) {
36
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37
+ });
38
+ }
39
+ keys.push.apply(keys, symbols);
40
+ }
41
+ return keys;
42
+ }
43
+ function _object_spread_props(target, source) {
44
+ source = source != null ? source : {};
45
+ if (Object.getOwnPropertyDescriptors) {
46
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
+ } else {
48
+ ownKeys(Object(source)).forEach(function(key) {
49
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
+ });
51
+ }
52
+ return target;
53
+ }
54
+ function _object_without_properties(source, excluded) {
55
+ if (source == null) return {};
56
+ var target = _object_without_properties_loose(source, excluded);
57
+ var key, i;
58
+ if (Object.getOwnPropertySymbols) {
59
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
+ for(i = 0; i < sourceSymbolKeys.length; i++){
61
+ key = sourceSymbolKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
+ target[key] = source[key];
65
+ }
66
+ }
67
+ return target;
68
+ }
69
+ function _object_without_properties_loose(source, excluded) {
70
+ if (source == null) return {};
71
+ var target = {};
72
+ var sourceKeys = Object.keys(source);
73
+ var key, i;
74
+ for(i = 0; i < sourceKeys.length; i++){
75
+ key = sourceKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ target[key] = source[key];
78
+ }
79
+ return target;
80
+ }
81
+ import { jsx as r } from "react/jsx-runtime";
82
+ import { useIsInverseOrMediaVariant as c } from "../../theme-variant-context.js";
83
+ import { vars as e } from "../../skins/skin-contract.css-mistica.js";
84
+ const n = (_param)=>{
85
+ var { color: a, size: l = 24 } = _param, i = _object_without_properties(_param, [
86
+ "color",
87
+ "size"
88
+ ]);
89
+ const o = c(), t = a !== null && a !== void 0 ? a : o ? e.colors.inverse : e.colors.neutralHigh;
90
+ return /* @__PURE__ */ r("svg", _object_spread_props(_object_spread({
91
+ width: l,
92
+ height: l,
93
+ viewBox: "0 0 24 24",
94
+ role: "presentation"
95
+ }, i), {
96
+ children: /* @__PURE__ */ r("path", {
97
+ fill: t,
98
+ d: "m4.332 7.975-.79-1.75-1.75-.79a.5.5 0 0 1 0-.91l1.75-.79.79-1.76a.5.5 0 0 1 .91 0l.79 1.75 1.76.79a.5.5 0 0 1 0 .91l-1.75.79-.79 1.76c-.18.39-.74.39-.92 0M6.539 22.014l-.79-1.75-1.75-.79a.5.5 0 0 1 0-.91l1.75-.79.79-1.76a.5.5 0 0 1 .91 0l.79 1.75 1.76.79a.5.5 0 0 1 0 .91l-1.75.79-.79 1.76c-.18.39-.74.39-.92 0M13.416 9.5l1.59-3.5c.35-.78 1.47-.78 1.82 0l1.59 3.5 3.5 1.59c.78.36.78 1.47 0 1.82l-3.5 1.59-1.59 3.5c-.36.78-1.47.78-1.82 0l-1.59-3.5-3.5-1.59c-.78-.36-.78-1.47 0-1.82zm2.04 5.5c.18.39.74.39.92 0l.79-1.76 1.75-.79a.5.5 0 0 0 0-.91l-1.76-.79-.79-1.75a.5.5 0 0 0-.91 0l-.79 1.76-1.75.79a.5.5 0 0 0 0 .91l1.75.79z"
99
+ })
100
+ }));
101
+ }, g = n;
102
+ export { g as default };
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ function _define_property(obj, key, value) {
3
+ if (key in obj) {
4
+ Object.defineProperty(obj, key, {
5
+ value: value,
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true
9
+ });
10
+ } else {
11
+ obj[key] = value;
12
+ }
13
+ return obj;
14
+ }
15
+ function _object_spread(target) {
16
+ for(var i = 1; i < arguments.length; i++){
17
+ var source = arguments[i] != null ? arguments[i] : {};
18
+ var ownKeys = Object.keys(source);
19
+ if (typeof Object.getOwnPropertySymbols === "function") {
20
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
21
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
22
+ }));
23
+ }
24
+ ownKeys.forEach(function(key) {
25
+ _define_property(target, key, source[key]);
26
+ });
27
+ }
28
+ return target;
29
+ }
30
+ function ownKeys(object, enumerableOnly) {
31
+ var keys = Object.keys(object);
32
+ if (Object.getOwnPropertySymbols) {
33
+ var symbols = Object.getOwnPropertySymbols(object);
34
+ if (enumerableOnly) {
35
+ symbols = symbols.filter(function(sym) {
36
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37
+ });
38
+ }
39
+ keys.push.apply(keys, symbols);
40
+ }
41
+ return keys;
42
+ }
43
+ function _object_spread_props(target, source) {
44
+ source = source != null ? source : {};
45
+ if (Object.getOwnPropertyDescriptors) {
46
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
+ } else {
48
+ ownKeys(Object(source)).forEach(function(key) {
49
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
+ });
51
+ }
52
+ return target;
53
+ }
54
+ function _object_without_properties(source, excluded) {
55
+ if (source == null) return {};
56
+ var target = _object_without_properties_loose(source, excluded);
57
+ var key, i;
58
+ if (Object.getOwnPropertySymbols) {
59
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
+ for(i = 0; i < sourceSymbolKeys.length; i++){
61
+ key = sourceSymbolKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
+ target[key] = source[key];
65
+ }
66
+ }
67
+ return target;
68
+ }
69
+ function _object_without_properties_loose(source, excluded) {
70
+ if (source == null) return {};
71
+ var target = {};
72
+ var sourceKeys = Object.keys(source);
73
+ var key, i;
74
+ for(i = 0; i < sourceKeys.length; i++){
75
+ key = sourceKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ target[key] = source[key];
78
+ }
79
+ return target;
80
+ }
81
+ import { jsx as r } from "react/jsx-runtime";
82
+ import { useIsInverseOrMediaVariant as i } from "../../theme-variant-context.js";
83
+ import { vars as l } from "../../skins/skin-contract.css-mistica.js";
84
+ const s = (_param)=>{
85
+ var { color: a, size: o = 24 } = _param, e = _object_without_properties(_param, [
86
+ "color",
87
+ "size"
88
+ ]);
89
+ const n = i(), t = a !== null && a !== void 0 ? a : n ? l.colors.inverse : l.colors.neutralHigh;
90
+ return /* @__PURE__ */ r("svg", _object_spread_props(_object_spread({
91
+ width: o,
92
+ height: o,
93
+ viewBox: "0 0 24 24",
94
+ role: "presentation"
95
+ }, e), {
96
+ children: /* @__PURE__ */ r("path", {
97
+ fill: t,
98
+ d: "M15.079 2c1.823 0 3.318 1.504 3.41 3.388H5.507C5.6 3.504 7.094 2 8.918 2zM18.5 6.46h-13v11.08h13zM8.349 10.276q.048-.054.144-.054h.384l.02.507q.045-.082.1-.153a1 1 0 0 1 .372-.3q.216-.108.468-.108.306 0 .528.144.222.138.336.39.02.04.035.082.058-.113.133-.208a1 1 0 0 1 .372-.3q.216-.108.468-.108.306 0 .528.144.222.138.336.39.12.246.12.564v1.86h-.456q-.096 0-.144-.048a.2.2 0 0 1-.048-.144V11.35q0-.198-.054-.348a.46.46 0 0 0-.18-.24.54.54 0 0 0-.324-.09.65.65 0 0 0-.372.102.65.65 0 0 0-.222.294 1.3 1.3 0 0 0-.072.462v1.596h-.648V11.35q0-.198-.054-.348a.46.46 0 0 0-.18-.24.54.54 0 0 0-.324-.09.65.65 0 0 0-.372.102.65.65 0 0 0-.222.294 1.2 1.2 0 0 0-.078.462v1.596H8.3v-2.712q0-.09.048-.138m4.94 4.242a.7.7 0 0 1-.138-.024q-.102-.018-.144-.066-.042-.042-.042-.12v-.318l.198.024q.108.012.192.012.21 0 .354-.066a.6.6 0 0 0 .264-.216q.114-.156.228-.444l.09-.216-1.17-2.628q-.048-.102-.012-.168.042-.066.156-.066h.444l.882 2.13.816-2.13h.654l-1.26 3.078q-.18.438-.36.696a1.2 1.2 0 0 1-.42.396q-.24.132-.582.132-.072 0-.15-.006M5.508 18.612C5.596 20.496 7.09 22 8.918 22h6.157c1.827 0 3.322-1.504 3.41-3.388z"
99
+ })
100
+ }));
101
+ }, c = s;
102
+ export { c as default };