@wix/form-elements 1.142.0 → 1.144.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 (110) hide show
  1. package/dist/component/{appointment-rac-BAwonF75.js → appointment-rac-BxrHjvGM.js} +93 -93
  2. package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-CLWQa4ND.js} +1 -1
  3. package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-DZemUnFy.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DyGMqRWi.js} +1 -1
  5. package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DmUeRhWl.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-DOuCYe0Q.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-BnmS1sak.js} +1 -1
  8. package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-F5YJaXHy.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-DAuqLM8j.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-DsQrwgzd.js} +83 -83
  11. package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-oPw2miey.js} +61 -61
  12. package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-hPscGPkW.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DuIn-RKl.js} +1 -1
  14. package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-C_-b9_8s.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CbIN1ubI.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-B-ek4Puf.js} +1 -1
  17. package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-D2xGgOC0.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-CpbAyHUl.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-DM0Uki6x.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-DV9wrigX.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-mIYYC0y2.js} +1 -1
  22. package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-fYTx4IXC.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-nm5CFJHt.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-D4RFJf-S.js} +1 -1
  25. package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DKQ4Swlg.js} +1 -1
  26. package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-DKZ-7UN1.js} +45 -45
  27. package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BbpWo9w0.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Bza70SYg.js} +11 -11
  29. package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-Ck7bd17y.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DpAx183s.js} +21 -21
  31. package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-CAL-qDqR.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-DLk1zE8Z.js} +4 -4
  33. package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-K0JY8ypt.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-BIkqhNQ0.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-heYLj9qT.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-CE-hsE0g.js} +1 -1
  37. package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-Djui3aGr.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-Up-zsZwY.js} +1 -1
  39. package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-BnBq1KKf.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-D8EsvhLV.js} +4 -4
  41. package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-BW6NPU1S.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac--c_tiq-o.js} +4 -4
  43. package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-CKFhfgDq.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-CEcBfKSe.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-C4tT1NeS.js} +1 -1
  46. package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-Bqo7AUci.js} +52 -52
  47. package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-DMQSalL1.js} +22 -22
  48. package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-C31YjVhV.js} +4 -4
  49. package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-B6AZlzZ8.js} +1 -1
  50. package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-3pW-jse0.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-Ms4JDivZ.js} +5 -5
  52. package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-UJOSd8si.js} +46 -46
  53. package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-fs9cQREp.js} +4 -4
  54. package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-DRLspNfK.js} +3 -3
  55. package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-CyoNrDMA.js} +9 -9
  56. package/dist/component/field-label-headless-vs578Vt6.js +52 -0
  57. package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-DDAMgm1b.js} +53 -53
  58. package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-DRs5yPZ8.js} +12 -12
  59. package/dist/component/{form-DtzwuBIo.js → form-D-pcluMZ.js} +373 -341
  60. package/dist/component/form.css +1 -1
  61. package/dist/component/form.js +2 -2
  62. package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-BtLFBccj.js} +4 -4
  63. package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CNx4qpAR.js} +1 -1
  64. package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-D-PsWyfU.js} +10 -10
  65. package/dist/component/{index-CmqLlW8X.js → index-B7rRv0cm.js} +43 -43
  66. package/dist/component/{index-CTn6AQ3A.js → index-D4Jdw7jg.js} +2 -2
  67. package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-DyNk-Hsj.js} +7 -7
  68. package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-CowUg4Dk.js} +94 -94
  69. package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CHLN9iqR.js} +1 -1
  70. package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-Clow9sWB.js} +21 -21
  71. package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-CeUW4WGL.js} +1 -1
  72. package/dist/component/{password-rac-Dph6984u.js → password-rac-_FBw3XON.js} +7 -7
  73. package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CmeiCGKm.js} +17 -17
  74. package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-PIpEcS6h.js} +24 -24
  75. package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-D-RF_Dc1.js} +1 -1
  76. package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-CveI0FCQ.js} +31 -31
  77. package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DmL5sv4m.js} +1 -1
  78. package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-D6eJdPov.js} +11 -11
  79. package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-CuTxslBP.js} +4 -4
  80. package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-D1N9mKdI.js} +1 -1
  81. package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-tPHYwerw.js} +12 -12
  82. package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-BoYlGaYG.js} +1 -1
  83. package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-BEpM1wGw.js} +3 -3
  84. package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DIBDp9fN.js} +4 -4
  85. package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-QNvqlXOl.js} +1 -1
  86. package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BUka_sF2.js} +30 -30
  87. package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-Dsy5tWby.js} +5 -5
  88. package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-K1d_jHlU.js} +37 -37
  89. package/dist/component/submit-button-rac-BRJtuej2.js +228 -0
  90. package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-BaBbtHcw.js} +16 -16
  91. package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-DDg6W18e.js} +1 -1
  92. package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-CB97Y6o1.js} +9 -9
  93. package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-E091fvmB.js} +1 -1
  94. package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BiSQ4pDp.js} +3 -3
  95. package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-BKxooAsH.js} +7 -7
  96. package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-N2D8bqU4.js} +1 -1
  97. package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-CMVYeoxi.js} +33 -33
  98. package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-BWpn4TfK.js} +24 -24
  99. package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-U19lGKwd.js} +1 -1
  100. package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-DK1HCEOC.js} +2 -2
  101. package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-XS469pt3.js} +4 -4
  102. package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-BdjEjAk1.js} +3 -3
  103. package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-7nSuBlNd.js} +6 -6
  104. package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-Bxw3_pyC.js} +1 -1
  105. package/dist/component/use-text-input-class-name-BB5fT5S6.js +6 -0
  106. package/dist/form.d.ts +36 -0
  107. package/package.json +2 -2
  108. package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
  109. package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
  110. package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
@@ -0,0 +1,228 @@
1
+ import t, { useRef as X, useCallback as y } from "react";
2
+ import $ from "@wix/editor-react-components/AnimatedIcon";
3
+ import p from "classnames";
4
+ import { bn as b, bh as j, ah as q, ag as z, ae as G, ad as J, am as K, al as Q, af as Y, b as Z, ac as tt, ak as et } from "./form-D-pcluMZ.js";
5
+ import { ProgressBar as nt, Button as R } from "react-aria-components";
6
+ import { f as l } from "./find-child-C60k4CxG.js";
7
+ import { u as x } from "./use-element-state-class-name-BdjEjAk1.js";
8
+ function ot(e) {
9
+ const s = "calc(50% - 2px)";
10
+ return /* @__PURE__ */ t.createElement(nt, {
11
+ ...e,
12
+ isIndeterminate: !0
13
+ }, ({ percentage: n, isIndeterminate: a }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
14
+ fill: "none",
15
+ width: "100%",
16
+ height: "100%",
17
+ viewBox: "0 0 32 32"
18
+ }, /* @__PURE__ */ t.createElement("circle", {
19
+ cx: "50%",
20
+ cy: "50%",
21
+ r: s
22
+ }), /* @__PURE__ */ t.createElement("circle", {
23
+ cx: "50%",
24
+ cy: "50%",
25
+ r: s,
26
+ // Normalize the path length to 100 so we can easily set stroke-dasharray/-offset to a percentage.
27
+ pathLength: "100",
28
+ strokeDasharray: a || n == null ? "25 100" : "100 100",
29
+ strokeDashoffset: a || n == null ? 0 : 100 - n,
30
+ strokeLinecap: "round"
31
+ }, a && /* @__PURE__ */ t.createElement("animateTransform", {
32
+ attributeName: "transform",
33
+ type: "rotate",
34
+ // Rotate around the circle's own center (viewBox is 32x32), not the SVG origin.
35
+ values: "0 16 16;360 16 16",
36
+ dur: "0.75s",
37
+ repeatCount: "indefinite"
38
+ })))));
39
+ }
40
+ const r = ({ children: e }) => {
41
+ const { id: o, FieldLayout: s } = b(), n = l(e, r.SubmitButton);
42
+ return /* @__PURE__ */ t.createElement(s, {
43
+ fieldId: o,
44
+ renderLabel: () => null,
45
+ renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, n),
46
+ renderDescription: () => null
47
+ });
48
+ }, g = ({ className: e, children: o }) => {
49
+ const s = l(o, S), n = l(o, E), a = l(o, v);
50
+ return /* @__PURE__ */ t.createElement("div", {
51
+ className: e
52
+ }, s, n, a);
53
+ }, S = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
54
+ const { showPreviousButton: a, onPreviousClick: c, previousText: B } = b();
55
+ if (!a)
56
+ return null;
57
+ const i = l(n, S.Label), m = l(n, S.Icon);
58
+ return /* @__PURE__ */ t.createElement(R, {
59
+ className: e,
60
+ "aria-label": B,
61
+ onPress: c,
62
+ onHoverStart: o,
63
+ onHoverEnd: s
64
+ }, m, i ?? /* @__PURE__ */ t.createElement(W, null));
65
+ }, E = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
66
+ const { showNextButton: a, onNextClick: c, nextText: B } = b();
67
+ if (!a)
68
+ return null;
69
+ const i = l(n, E.Label), m = l(n, E.Icon);
70
+ return /* @__PURE__ */ t.createElement(R, {
71
+ className: e,
72
+ "aria-label": B,
73
+ onPress: c,
74
+ onHoverStart: o,
75
+ onHoverEnd: s
76
+ }, i ?? /* @__PURE__ */ t.createElement(V, null), m);
77
+ }, v = ({ className: e, onHoverStart: o, onHoverEnd: s, children: n }) => {
78
+ const { showSubmitButton: a, onSubmitClick: c, submitText: B, isDisabled: i, isInProgress: m, isSubmitting: C } = b();
79
+ if (!a)
80
+ return null;
81
+ const f = l(n, v.Label), I = l(n, v.Icon), d = l(n, v.Loader), _ = C || m;
82
+ return /* @__PURE__ */ t.createElement(R, {
83
+ className: e,
84
+ "aria-label": B,
85
+ onPress: _ ? void 0 : c,
86
+ onHoverStart: o,
87
+ onHoverEnd: s,
88
+ isDisabled: i && !_,
89
+ "aria-disabled": _ || void 0,
90
+ "data-in-progress": m
91
+ }, m && d ? d : /* @__PURE__ */ t.createElement(t.Fragment, null, f ?? /* @__PURE__ */ t.createElement(D, null), I));
92
+ }, D = ({ className: e }) => {
93
+ const { submitText: o } = b();
94
+ return /* @__PURE__ */ t.createElement("span", {
95
+ className: e
96
+ }, o);
97
+ }, W = ({ className: e }) => {
98
+ const { previousText: o } = b();
99
+ return /* @__PURE__ */ t.createElement("span", {
100
+ className: e
101
+ }, o);
102
+ }, V = ({ className: e }) => {
103
+ const { nextText: o } = b();
104
+ return /* @__PURE__ */ t.createElement("span", {
105
+ className: e
106
+ }, o);
107
+ }, h = ({ children: e }) => /* @__PURE__ */ t.createElement(t.Fragment, null, e), st = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
108
+ className: e
109
+ }, /* @__PURE__ */ t.createElement(ot, null));
110
+ v.Label = D;
111
+ v.Icon = h;
112
+ v.Loader = st;
113
+ S.Label = W;
114
+ S.Icon = h;
115
+ E.Label = V;
116
+ E.Icon = h;
117
+ g.PreviousButton = S;
118
+ g.NextButton = E;
119
+ g.SubmitButton = v;
120
+ r.SubmitButton = g;
121
+ const at = "_navigationContainer_s99vs_1", rt = "_rowSpacing_s99vs_6", ut = "_navigationButton_s99vs_10", lt = "_nextButton_s99vs_33", ct = "_previousButton_s99vs_59", it = "_navigationButtonHover_s99vs_100", mt = "_button_s99vs_116", vt = "_buttonNoSteps_s99vs_164", bt = "_buttonWithSteps_s99vs_168", Bt = "_buttonHover_s99vs_172", St = "_progress_s99vs_196", u = {
122
+ navigationContainer: at,
123
+ rowSpacing: rt,
124
+ navigationButton: ut,
125
+ nextButton: lt,
126
+ previousButton: ct,
127
+ navigationButtonHover: it,
128
+ button: mt,
129
+ buttonNoSteps: vt,
130
+ buttonWithSteps: bt,
131
+ buttonHover: Bt,
132
+ progress: St
133
+ }, P = () => {
134
+ const e = X(null), o = y(() => {
135
+ var n;
136
+ return (n = e.current) == null ? void 0 : n.runAnimationForward();
137
+ }, []), s = y(() => {
138
+ var n;
139
+ return (n = e.current) == null ? void 0 : n.runAnimationBackward();
140
+ }, []);
141
+ return {
142
+ iconRef: e,
143
+ onHoverStart: o,
144
+ onHoverEnd: s
145
+ };
146
+ }, O = ({ icon: e, iconRef: o, iconClassName: s }) => {
147
+ const { wix: n, className: a, ...c } = e ?? {};
148
+ return c.svg ? /* @__PURE__ */ t.createElement($, {
149
+ ...c,
150
+ ref: o,
151
+ className: p(Z, s, a)
152
+ }) : null;
153
+ }, Et = () => {
154
+ var A, F, U, w, M, k;
155
+ const { hasSteps: e, showPreviousButton: o, isDisabled: s, isInProgress: n, isSubmitting: a } = b(), B = !s && !(a || n), i = j(), m = (F = (A = i.submitButton) == null ? void 0 : A.elementProps) == null ? void 0 : F.icon, C = (w = (U = i.nextButton) == null ? void 0 : U.elementProps) == null ? void 0 : w.icon, f = (k = (M = i.previousButton) == null ? void 0 : M.elementProps) == null ? void 0 : k.icon, I = x({
156
+ globalClasses: Y,
157
+ moduleClasses: {
158
+ base: p(u.navigationButton, u.previousButton),
159
+ hover: u.navigationButtonHover
160
+ }
161
+ }), d = x({
162
+ globalClasses: tt,
163
+ moduleClasses: {
164
+ base: p(u.navigationButton, u.nextButton),
165
+ hover: u.navigationButtonHover
166
+ }
167
+ }), _ = x({
168
+ globalClasses: et,
169
+ moduleClasses: {
170
+ base: p(u.button, {
171
+ [u.buttonNoSteps]: !e,
172
+ [u.buttonWithSteps]: e
173
+ }),
174
+ hover: u.buttonHover
175
+ }
176
+ }), H = P(), L = P(), T = P();
177
+ return /* @__PURE__ */ t.createElement(r, null, /* @__PURE__ */ t.createElement(r.SubmitButton, {
178
+ className: p({
179
+ [u.navigationContainer]: e,
180
+ [u.rowSpacing]: o
181
+ })
182
+ }, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton, {
183
+ className: ({ isHovered: N }) => I({
184
+ isSelected: !1,
185
+ isHovered: N
186
+ }),
187
+ onHoverStart: T.onHoverStart,
188
+ onHoverEnd: T.onHoverEnd
189
+ }, /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Label, {
190
+ className: q
191
+ }), /* @__PURE__ */ t.createElement(r.SubmitButton.PreviousButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
192
+ icon: f,
193
+ iconRef: T.iconRef,
194
+ iconClassName: z
195
+ }))), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton, {
196
+ className: ({ isHovered: N }) => d({
197
+ isSelected: !1,
198
+ isHovered: N
199
+ }),
200
+ onHoverStart: L.onHoverStart,
201
+ onHoverEnd: L.onHoverEnd
202
+ }, /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Label, {
203
+ className: G
204
+ }), /* @__PURE__ */ t.createElement(r.SubmitButton.NextButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
205
+ icon: C,
206
+ iconRef: L.iconRef,
207
+ iconClassName: J
208
+ }))), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton, {
209
+ className: ({ isHovered: N }) => _({
210
+ isSelected: !1,
211
+ isHovered: N,
212
+ isInteractive: B
213
+ }),
214
+ onHoverStart: H.onHoverStart,
215
+ onHoverEnd: H.onHoverEnd
216
+ }, /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Label, {
217
+ className: K
218
+ }), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Icon, null, /* @__PURE__ */ t.createElement(O, {
219
+ icon: m,
220
+ iconRef: H.iconRef,
221
+ iconClassName: Q
222
+ })), /* @__PURE__ */ t.createElement(r.SubmitButton.SubmitButton.Loader, {
223
+ className: u.progress
224
+ }))));
225
+ }, It = () => /* @__PURE__ */ t.createElement(Et, null);
226
+ export {
227
+ It as SubmitButtonRAC
228
+ };
@@ -1,16 +1,16 @@
1
1
  import { RicosViewer as w } from "@wix/ricos/viewer";
2
2
  import F from "classnames";
3
- import t, { useMemo as I, useState as z, useRef as N, useLayoutEffect as B, useCallback as k } from "react";
3
+ import t, { useMemo as I, useState as z, useRef as k, useLayoutEffect as B, useCallback as x } from "react";
4
4
  import { CheckboxGroup as J, TextField as K, Input as X, CheckboxField as Y, CheckboxButton as Z } from "react-aria-components";
5
- import { bj as D, bg as M, bt as S, bl as U, R as ee, $ as te, a9 as ne, G as oe, u as ae, aa as re } from "./form-DtzwuBIo.js";
6
- import { f as O, a as x } from "./find-child-C60k4CxG.js";
7
- import { E as W, D as H } from "./field-error-headless-r0fX50xw.js";
8
- import { L as $ } from "./field-label-headless-D-kCfg8j.js";
5
+ import { bn as D, bk as M, bx as S, bp as U, R as ee, $ as te, a9 as ne, G as oe, u as ae, aa as re } from "./form-D-pcluMZ.js";
6
+ import { f as O, a as N } from "./find-child-C60k4CxG.js";
7
+ import { E as W, D as H } from "./field-error-headless-CyoNrDMA.js";
8
+ import { L as $ } from "./field-label-headless-vs578Vt6.js";
9
9
  import { F as se } from "./fieldset-headless-CD3fds9J.js";
10
10
  import { E as le } from "./error-icon-hZxQ6DEy.js";
11
11
  import { s as y } from "./field-rac.module-DfEb7pBp.js";
12
- import { u as ie } from "./use-element-state-class-name-BrgdwHYP.js";
13
- import { u as ce } from "./use-text-input-class-name-CP2VJOso.js";
12
+ import { u as ie } from "./use-element-state-class-name-BdjEjAk1.js";
13
+ import { u as ce } from "./use-text-input-class-name-BB5fT5S6.js";
14
14
  var ue = /* @__PURE__ */ (function(e) {
15
15
  return e[e.FREE_FLOW = 0] = "FREE_FLOW", e[e.ONE = 1] = "ONE", e[e.TWO = 2] = "TWO", e[e.THREE = 3] = "THREE", e;
16
16
  })({});
@@ -26,11 +26,11 @@ const v = "Other", de = (e, n) => {
26
26
  const { value: n, onChange: r, addOtherLabel: i, addOtherPlaceholder: s, otherInputCharacterLimit: l, disabled: u, readOnly: m, hasError: d } = D(), { t: p } = S(), o = i || p("add-other.default-other-option-label") || v, b = I(() => de(n || [], o), [
27
27
  n,
28
28
  o
29
- ]), [c, L] = z(b), f = N(r);
29
+ ]), [c, L] = z(b), f = k(r);
30
30
  B(() => {
31
31
  f.current = r;
32
32
  });
33
- const g = k((h) => {
33
+ const g = x((h) => {
34
34
  L(h);
35
35
  const C = (n || []).filter((E) => !E.startsWith(`${o}:`) && E !== o), _ = h ? `${o}: ${h}` : o;
36
36
  f.current([
@@ -56,7 +56,7 @@ const v = "Other", de = (e, n) => {
56
56
  className: e
57
57
  }));
58
58
  }, T = ({ children: e, className: n, ...r }) => {
59
- const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = N(null);
59
+ const { value: i, label: s, isOther: l, isFirstOption: u } = r, { id: m, value: d, onChange: p, options: o, disabled: b, readOnly: c, hasError: L } = D(), f = k(null);
60
60
  U(() => {
61
61
  var E;
62
62
  u && ((E = f.current) == null || E.focus({
@@ -70,8 +70,8 @@ const v = "Other", de = (e, n) => {
70
70
  h,
71
71
  s,
72
72
  i
73
- ]), _ = k((E) => {
74
- const j = me(o || []), A = h.filter((Q) => j.includes(Q));
73
+ ]), _ = x((E) => {
74
+ const Q = me(o || []), A = h.filter((j) => Q.includes(j));
75
75
  p(E ? [
76
76
  ...A,
77
77
  s
@@ -92,7 +92,7 @@ const v = "Other", de = (e, n) => {
92
92
  }, /* @__PURE__ */ t.createElement(Z, {
93
93
  className: n,
94
94
  "data-hook": `tags-${l ? v : i}`
95
- }, x(g, {
95
+ }, N(g, {
96
96
  value: i,
97
97
  label: s,
98
98
  isOther: l,
@@ -119,7 +119,7 @@ const v = "Other", de = (e, n) => {
119
119
  "data-columns": l
120
120
  }, p.map((o, b) => {
121
121
  const c = o.value ?? o.label;
122
- return x(d, {
122
+ return N(d, {
123
123
  key: o.isOther ? v : c,
124
124
  value: c,
125
125
  label: o.label,
@@ -185,7 +185,7 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
185
185
  base: R.option,
186
186
  selected: R.optionSelected,
187
187
  hover: R.optionHover
188
- }, Ne = () => {
188
+ }, ke = () => {
189
189
  const e = ie({
190
190
  globalClasses: re,
191
191
  moduleClasses: Ie
@@ -209,5 +209,5 @@ const pe = "_control_t6hu2_1", he = "_options_t6hu2_7", Ee = "_option_t6hu2_7",
209
209
  }, fe));
210
210
  };
211
211
  export {
212
- Ne as T
212
+ ke as T
213
213
  };
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./tags-field-rac-CpJ0O9f_.js";
2
+ import { T as r } from "./tags-field-rac-BaBbtHcw.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TagsRAC
@@ -2,13 +2,13 @@ import { RicosViewer as N } from "@wix/ricos/viewer";
2
2
  import o from "classnames";
3
3
  import r, { useCallback as T, useRef as O } from "react";
4
4
  import { TextField as S, TextArea as y } from "react-aria-components";
5
- import { bj as p, bg as d, bl as x, R as g, $ as h, G as v, u as M } from "./form-DtzwuBIo.js";
5
+ import { bn as p, bk as d, bp as x, R as g, $ as h, G as v, u as M } from "./form-D-pcluMZ.js";
6
6
  import { f as i } from "./find-child-C60k4CxG.js";
7
- import { D as q, E as B } from "./field-error-headless-r0fX50xw.js";
8
- import { L as k } from "./field-label-headless-D-kCfg8j.js";
7
+ import { D as q, E as B } from "./field-error-headless-CyoNrDMA.js";
8
+ import { L as k } from "./field-label-headless-vs578Vt6.js";
9
9
  import { E as P } from "./error-icon-hZxQ6DEy.js";
10
10
  import { s as c } from "./field-rac.module-DfEb7pBp.js";
11
- import { u as V } from "./use-text-input-class-name-CP2VJOso.js";
11
+ import { u as V } from "./use-text-input-class-name-BB5fT5S6.js";
12
12
  const e = ({ children: t }) => {
13
13
  const { id: a, value: m, onChange: s, disabled: u, required: n, readOnly: l, onBlur: E, onFocus: b, FieldLayout: I, hasError: f } = p(), { labelId: R } = d(), F = T((A) => {
14
14
  s(A);
@@ -48,13 +48,13 @@ e.Label = k;
48
48
  e.Input = $;
49
49
  e.Description = q;
50
50
  e.Error = B;
51
- const j = "_input_ug5v8_1", w = {
52
- input: j
53
- }, G = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
51
+ const w = "_input_ug5v8_1", G = {
52
+ input: w
53
+ }, Q = ({ content: t, locale: a }) => /* @__PURE__ */ r.createElement(N, {
54
54
  content: t,
55
55
  locale: a
56
56
  }), re = () => {
57
- const t = V(w.input);
57
+ const t = V(G.input);
58
58
  return /* @__PURE__ */ r.createElement(e, null, /* @__PURE__ */ r.createElement(e.Label, {
59
59
  className: o(g, c.label)
60
60
  }, /* @__PURE__ */ r.createElement(e.Label.Required, {
@@ -65,7 +65,7 @@ const j = "_input_ug5v8_1", w = {
65
65
  className: o(v, c.error)
66
66
  }, /* @__PURE__ */ r.createElement(P, null), /* @__PURE__ */ r.createElement(e.Error.Text, null)), /* @__PURE__ */ r.createElement(e.Description, {
67
67
  className: o(M, c.description)
68
- }, G));
68
+ }, Q));
69
69
  };
70
70
  export {
71
71
  re as T
@@ -1,5 +1,5 @@
1
1
  import e from "react";
2
- import { T as r } from "./text-area-field-rac-BG6MJuIW.js";
2
+ import { T as r } from "./text-area-field-rac-CB97Y6o1.js";
3
3
  const a = () => /* @__PURE__ */ e.createElement(r, null);
4
4
  export {
5
5
  a as TextAreaRAC
@@ -1,11 +1,11 @@
1
1
  import { RicosViewer as l } from "@wix/ricos/viewer";
2
2
  import t from "classnames";
3
3
  import e from "react";
4
- import { T as r } from "./text-input-headless-Bpjd70nh.js";
4
+ import { T as r } from "./text-input-headless-BKxooAsH.js";
5
5
  import { E as o } from "./error-icon-hZxQ6DEy.js";
6
6
  import { s as a } from "./field-rac.module-DfEb7pBp.js";
7
- import { R as n, $ as c, G as E, u as i } from "./form-DtzwuBIo.js";
8
- import { u as p } from "./use-text-input-class-name-CP2VJOso.js";
7
+ import { R as n, $ as c, G as E, u as i } from "./form-D-pcluMZ.js";
8
+ import { u as p } from "./use-text-input-class-name-BB5fT5S6.js";
9
9
  const R = ({ content: s, locale: m }) => /* @__PURE__ */ e.createElement(l, {
10
10
  content: s,
11
11
  locale: m
@@ -1,9 +1,9 @@
1
1
  import t, { useRef as L } from "react";
2
- import { TextField as R, Input as g } from "react-aria-components";
3
- import { bj as d, bg as c, bl as v } from "./form-DtzwuBIo.js";
2
+ import { TextField as R, Input as v } from "react-aria-components";
3
+ import { bn as d, bk as c, bp as T } from "./form-D-pcluMZ.js";
4
4
  import { f as s } from "./find-child-C60k4CxG.js";
5
- import { D as T, E as h } from "./field-error-headless-r0fX50xw.js";
6
- import { L as x } from "./field-label-headless-D-kCfg8j.js";
5
+ import { D as g, E as h } from "./field-error-headless-CyoNrDMA.js";
6
+ import { L as x } from "./field-label-headless-vs578Vt6.js";
7
7
  const e = ({ children: r }) => {
8
8
  const { id: a, value: i, onChange: l, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, FieldLayout: f } = d(), { labelId: E } = c(), I = s(r, e.Label), F = s(r, e.Input), y = s(r, e.Description), D = s(r, e.Error);
9
9
  return /* @__PURE__ */ t.createElement(f, {
@@ -24,10 +24,10 @@ const e = ({ children: r }) => {
24
24
  });
25
25
  }, B = ({ className: r }) => {
26
26
  const { id: a, placeholder: i } = d(), { inputId: l, ariaDescribedBy: u } = c(), n = L(null);
27
- return v(() => {
27
+ return T(() => {
28
28
  var o;
29
29
  (o = n.current) == null || o.focus();
30
- }, a), /* @__PURE__ */ t.createElement(g, {
30
+ }, a), /* @__PURE__ */ t.createElement(v, {
31
31
  ref: n,
32
32
  id: l,
33
33
  "aria-describedby": u,
@@ -37,7 +37,7 @@ const e = ({ children: r }) => {
37
37
  };
38
38
  e.Label = x;
39
39
  e.Input = B;
40
- e.Description = T;
40
+ e.Description = g;
41
41
  e.Error = h;
42
42
  export {
43
43
  e as T
@@ -1,5 +1,5 @@
1
1
  import t from "react";
2
- import { T as e } from "./text-input-field-rac-BhMktcEd.js";
2
+ import { T as e } from "./text-input-field-rac-BiSQ4pDp.js";
3
3
  const o = () => /* @__PURE__ */ t.createElement(e, null);
4
4
  export {
5
5
  o as TextInputRAC
@@ -1,24 +1,24 @@
1
- import e, { useCallback as H, useRef as j, useContext as V } from "react";
2
- import { RicosViewer as x } from "@wix/ricos/viewer";
1
+ import e, { useCallback as H, useRef as x, useContext as V } from "react";
2
+ import { RicosViewer as j } from "@wix/ricos/viewer";
3
3
  import m from "classnames";
4
4
  import { parseTime as q } from "@internationalized/date";
5
5
  import { TimeField as v, DateInput as z, DateSegment as _, TimeFieldStateContext as B } from "react-aria-components";
6
- import { bj as p, bg as U, bt as S, bl as w, R as G, $ as Q, G as $, u as J } from "./form-DtzwuBIo.js";
6
+ import { bn as p, bk as U, bx as S, bp as w, R as G, $ as Q, G as $, u as J } from "./form-D-pcluMZ.js";
7
7
  import { f as u, a as F } from "./find-child-C60k4CxG.js";
8
- import { D as K, E as W } from "./field-error-headless-r0fX50xw.js";
9
- import { L as X } from "./field-label-headless-D-kCfg8j.js";
8
+ import { D as K, E as W } from "./field-error-headless-CyoNrDMA.js";
9
+ import { L as X } from "./field-label-headless-vs578Vt6.js";
10
10
  import { E as Y } from "./error-icon-hZxQ6DEy.js";
11
11
  import { H as T } from "./custom-focus-class-_483Pkwp.js";
12
12
  import { s as f } from "./field-rac.module-DfEb7pBp.js";
13
- import { u as Z } from "./use-text-input-class-name-CP2VJOso.js";
13
+ import { u as Z } from "./use-text-input-class-name-BB5fT5S6.js";
14
14
  const r = ({ children: t }) => {
15
- const { id: n, value: s, onChange: a, disabled: i, readOnly: o, required: c, onBlur: l, onFocus: E, use24HourFormat: b, FieldLayout: g, hasError: C } = p(), { inputId: I, ariaDescribedBy: R, labelId: D } = U(), L = H((M) => {
15
+ const { id: n, value: l, onChange: a, disabled: i, readOnly: o, required: c, onBlur: s, onFocus: E, use24HourFormat: b, FieldLayout: C, hasError: g } = p(), { inputId: I, ariaDescribedBy: R, labelId: D } = U(), L = H((M) => {
16
16
  const k = ae(M);
17
17
  a(k);
18
18
  }, [
19
19
  a
20
- ]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(s);
21
- return /* @__PURE__ */ e.createElement(g, {
20
+ ]), N = u(t, r.Label), y = u(t, r.Time), P = u(t, r.Description), A = u(t, r.Error), O = ne(l);
21
+ return /* @__PURE__ */ e.createElement(C, {
22
22
  fieldId: n,
23
23
  renderLabel: () => N,
24
24
  renderInput: () => /* @__PURE__ */ e.createElement(v, {
@@ -29,59 +29,59 @@ const r = ({ children: t }) => {
29
29
  onChange: L,
30
30
  isDisabled: i,
31
31
  isReadOnly: o,
32
- isInvalid: C,
32
+ isInvalid: g,
33
33
  isRequired: c,
34
- onBlur: l,
34
+ onBlur: s,
35
35
  onFocus: E,
36
36
  hourCycle: b ? 24 : 12
37
37
  }, y),
38
38
  renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, P)
39
39
  });
40
40
  }, d = ({ children: t, className: n }) => {
41
- const { hasError: s, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
41
+ const { hasError: l, hidePlaceholder: a } = p(), i = u(t, d.Hour), o = u(t, d.Minute), c = u(t, d.Period);
42
42
  return /* @__PURE__ */ e.createElement(z, {
43
43
  className: n,
44
- "data-invalid": s || void 0,
44
+ "data-invalid": l || void 0,
45
45
  "data-placeholder-hidden": a || void 0
46
- }, (l) => {
47
- switch (l.type) {
46
+ }, (s) => {
47
+ switch (s.type) {
48
48
  case "hour":
49
49
  return F(i, {
50
- segment: l
50
+ segment: s
51
51
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
52
52
  case "minute":
53
53
  return F(o, {
54
- segment: l
54
+ segment: s
55
55
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
56
56
  case "dayPeriod":
57
57
  return F(c, {
58
- segment: l
58
+ segment: s
59
59
  }) || /* @__PURE__ */ e.createElement(e.Fragment, null);
60
60
  case "literal":
61
61
  return /* @__PURE__ */ e.createElement(_, {
62
- segment: l
62
+ segment: s
63
63
  });
64
64
  default:
65
65
  return /* @__PURE__ */ e.createElement(e.Fragment, null);
66
66
  }
67
67
  });
68
68
  }, ee = ({ className: t, ...n }) => {
69
- const { id: s, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = j(null);
69
+ const { id: l, hidePlaceholder: a } = p(), { segment: i } = n, { t: o } = S(), c = x(null);
70
70
  w(() => {
71
71
  var E;
72
72
  (E = c.current) == null || E.focus();
73
- }, s);
74
- const l = a ? void 0 : o("field.date.placeholder.hour");
73
+ }, l);
74
+ const s = a ? void 0 : o("field.date.placeholder.hour");
75
75
  return /* @__PURE__ */ e.createElement(_, {
76
76
  ref: c,
77
77
  segment: i,
78
78
  className: t,
79
- ...l && {
80
- placeholder: l
79
+ ...s && {
80
+ placeholder: s
81
81
  }
82
82
  });
83
83
  }, te = ({ className: t, ...n }) => {
84
- const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = S(), o = s ? void 0 : i("field.date.placeholder.minute");
84
+ const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = l ? void 0 : i("field.date.placeholder.minute");
85
85
  return /* @__PURE__ */ e.createElement(_, {
86
86
  segment: a,
87
87
  className: t,
@@ -90,11 +90,11 @@ const r = ({ children: t }) => {
90
90
  }
91
91
  });
92
92
  }, re = ({ className: t, ...n }) => {
93
- const { hidePlaceholder: s } = p(), { segment: a } = n, { t: i } = S(), o = V(B), c = s ? void 0 : i("field.date.placeholder.period"), l = () => o == null ? void 0 : o.increment("dayPeriod");
93
+ const { hidePlaceholder: l } = p(), { segment: a } = n, { t: i } = S(), o = V(B), c = l ? void 0 : i("field.date.placeholder.period"), s = () => o == null ? void 0 : o.increment("dayPeriod");
94
94
  return /* @__PURE__ */ e.createElement(_, {
95
95
  segment: a,
96
96
  className: t,
97
- onClick: l,
97
+ onClick: s,
98
98
  ...c && {
99
99
  placeholder: c
100
100
  }
@@ -119,19 +119,19 @@ function ne(t) {
119
119
  function ae(t) {
120
120
  if (!t)
121
121
  return null;
122
- const n = String(t.hour).padStart(2, "0"), s = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
122
+ const n = String(t.hour).padStart(2, "0"), l = String(t.minute).padStart(2, "0"), a = String(t.second).padStart(2, "0");
123
123
  return [
124
124
  n,
125
- s,
125
+ l,
126
126
  a
127
127
  ].join(":");
128
128
  }
129
- const oe = "_time_rzj2k_1", le = "_hour_rzj2k_14", se = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
129
+ const oe = "_time_rzj2k_1", se = "_hour_rzj2k_14", le = "_minute_rzj2k_15", ie = "_period_rzj2k_16", h = {
130
130
  time: oe,
131
- hour: le,
132
- minute: se,
131
+ hour: se,
132
+ minute: le,
133
133
  period: ie
134
- }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(x, {
134
+ }, ce = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(j, {
135
135
  content: t,
136
136
  locale: n
137
137
  }), me = () => {