@wix/form-elements 1.72.0 → 1.73.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 (105) hide show
  1. package/dist/component/{appointment-rac-CvecMhTP.js → appointment-rac-Bze1s2XD.js} +4 -4
  2. package/dist/component/{bookings-address-rac-Bzh6N9eV.js → bookings-address-rac-BcrkXf63.js} +1 -1
  3. package/dist/component/{bookings-email-rac-kh4HZ9zW.js → bookings-email-rac-DYq5RxOP.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DIe5Nxtm.js → bookings-first-name-rac-ZJ_sQ-01.js} +1 -1
  5. package/dist/component/{bookings-header-rac-CcZrhPWt.js → bookings-header-rac-Cv8kl01f.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-DynAXyOh.js → bookings-last-name-rac-BmnulSZ6.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CiAreT-B.js → bookings-login-bar-rac-Bdi4xs9y.js} +2 -2
  8. package/dist/component/{bookings-phone-rac-Be7XP3CC.js → bookings-phone-rac-C8DjSzUY.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CsOSjxCm.js → bookings-rich-text-rac-DYu011oy.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-YmbfJMcm.js → checkbox-field-rac-BH3yEE5j.js} +42 -42
  11. package/dist/component/{checkbox-group-field-headless-DnI-niUS.js → checkbox-group-field-headless-D_GG5LHM.js} +3 -3
  12. package/dist/component/{checkbox-group-field-rac-Cbv9r_IR.js → checkbox-group-field-rac-Cj7Erubs.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-6W04r6Nz.js → checkbox-group-rac-CgW0DnhX.js} +1 -1
  14. package/dist/component/{checkbox-rac-Dv96xsq2.js → checkbox-rac-DOAYMMsi.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BQSEdyVn.js → contacts-address-rac-DXJa4J_k.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-CNZp5aiS.js → contacts-birthdate-rac-CVsuRq3B.js} +1 -1
  17. package/dist/component/{contacts-company-rac-BwY-2pG_.js → contacts-company-rac-b2bwHSNC.js} +1 -1
  18. package/dist/component/{contacts-email-rac-CX9LDVtk.js → contacts-email-rac-DMPcpQ1c.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-CXzh7vHC.js → contacts-first-name-rac-CL2BsHuJ.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-y93LJlBv.js → contacts-last-name-rac-hdBsWaqb.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-zO2Y3fGa.js → contacts-phone-rac-DQF6aV9B.js} +1 -1
  22. package/dist/component/{contacts-position-rac-y7Nd4s6j.js → contacts-position-rac-CVX-WCfx.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-D5usboPe.js → contacts-subscribe-rac-Dl1ot9qw.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-DT42qK_C.js → contacts-tax-id-rac-0KTXvF81.js} +1 -1
  25. package/dist/component/{date-availability-BUg7fwNs.js → date-availability-DBljhBgO.js} +1 -1
  26. package/dist/component/{date-input-field-rac-97DJQbSL.js → date-input-field-rac-CfflD2Ar.js} +4 -4
  27. package/dist/component/{date-input-rac-BTetYZVn.js → date-input-rac-fQclCKoa.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BOzUTQ53.js → date-picker-field-rac-BSmFOaH-.js} +5 -5
  29. package/dist/component/{date-picker-rac-Cz8QZr18.js → date-picker-rac-D7I3ramu.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-Cx4a-dzv.js → date-time-input-field-rac-vjZDQ_Fp.js} +4 -4
  31. package/dist/component/{date-time-input-rac-BlSvC4v4.js → date-time-input-rac-CDbS0VZR.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-ijVB8NX2.js → dext-checkbox-group-rac-BBiPt6_a.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-0F6rTc_y.js → dext-checkbox-rac-Cqp--0SO.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-vjt7d8gT.js → dext-date-picker-rac-5Wft0w9m.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CpJz0KtU.js → dext-date-time-input-rac-Bbs7bgtn.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-yUJT-sKU.js → dext-dropdown-rac-CSvhtqbc.js} +1 -1
  37. package/dist/component/{dext-email-rac-D1K34PtX.js → dext-email-rac-BoLeXqyI.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-D-7zudVq.js → dext-number-input-rac-DzaJYTSz.js} +1 -1
  39. package/dist/component/{dext-phone-rac-B4HebC40.js → dext-phone-rac-BagPg_CT.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-DWL6wrD6.js → dext-radio-group-rac-B5HSQt7a.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-p_FwVz4F.js → dext-rating-input-rac-DrtaAf-E.js} +1 -1
  42. package/dist/component/{dext-tags-rac-DNZ06TfG.js → dext-tags-rac-Cg4jJ4jr.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D9Ra_RXC.js → dext-text-area-rac-C_t-W7lk.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-gms4VXn_.js → dext-text-input-rac-ChvV21Jf.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-CDZnjVL0.js → dext-url-input-rac-DclbSYTr.js} +1 -1
  46. package/dist/component/{donation-rac-BPy2Dkj_.js → donation-rac-FYQIMm5m.js} +16 -16
  47. package/dist/component/{dropdown-field-headless-CiK1C6eu.js → dropdown-field-headless-CTZ-zGqZ.js} +3 -3
  48. package/dist/component/{dropdown-field-rac-ByUgK0Dh.js → dropdown-field-rac-C1KVtxwv.js} +4 -4
  49. package/dist/component/{dropdown-rac-BZQe_0qb.js → dropdown-rac-CkkDEDje.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Du8bSZKs.js → ecom-address-rac-BOuugSxX.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-ZgT_Mx5b.js → ecom-subscription-checkbox-rac-IZeMlljb.js} +3 -3
  52. package/dist/component/{email-input-field-rac-DWXEywOx.js → email-input-field-rac-CNzmm1j7.js} +26 -26
  53. package/dist/component/{events-repeater-rac-DBofzCIJ.js → events-repeater-rac-CMV0Lmwz.js} +3 -3
  54. package/dist/component/{events-rsvp-rac-CYwLg3Mp.js → events-rsvp-rac-BmjboAco.js} +2 -2
  55. package/dist/component/{field-error-headless-BAVGL8JO.js → field-error-headless-DQZ5XAdn.js} +1 -1
  56. package/dist/component/{field-label-headless-CwSCKtI1.js → field-label-headless-DoxfHHaj.js} +1 -1
  57. package/dist/component/{file-upload-rac-BI_SxUFD.js → file-upload-rac-YEQ7uXhm.js} +46 -46
  58. package/dist/component/{fixed-payment-rac-m2iFI5v_.js → fixed-payment-rac-DDufIQBT.js} +4 -4
  59. package/dist/component/{form-VD2Og15y.js → form-C6WwBcGP.js} +69 -69
  60. package/dist/component/{form-element-classes-BSMjWijd.js → form-element-classes-DDKCTFQj.js} +24 -22
  61. package/dist/component/form-element-keys-D0sEdpFo.js +8 -0
  62. package/dist/component/form.css +1 -1
  63. package/dist/component/form.js +1 -1
  64. package/dist/component/{header-field-rac-C7EKGD8f.js → header-field-rac-DGfjrjQC.js} +3 -3
  65. package/dist/component/{header-rac-CE4fzveg.js → header-rac-C_JE2cTg.js} +1 -1
  66. package/dist/component/{image-choice-rac-CXABLqND.js → image-choice-rac-LDLPQwrN.js} +8 -8
  67. package/dist/component/{index-DI0IAMNV.js → index-C2srcuHD.js} +4 -4
  68. package/dist/component/{index-CHqhveZ1.js → index-CIOoaQ8Z.js} +2 -2
  69. package/dist/component/{isObjectLike-D_6b_ESv.js → isObjectLike-E5QfEa1u.js} +1 -1
  70. package/dist/component/{multiline-address-field-rac-3wB7fWdZ.js → multiline-address-field-rac-Biyj2tIN.js} +5 -5
  71. package/dist/component/{multiline-address-rac-RnXiGQRs.js → multiline-address-rac-BCqCvG7a.js} +1 -1
  72. package/dist/component/{number-input-field-rac-BiC2NsZQ.js → number-input-field-rac-CwUoIbM8.js} +4 -4
  73. package/dist/component/{number-input-rac-BphPpAvr.js → number-input-rac-CdYdTDem.js} +1 -1
  74. package/dist/component/{password-rac-DBk3CNX3.js → password-rac-D62npVHY.js} +9 -9
  75. package/dist/component/{payment-input-rac-DNYLuIV-.js → payment-input-rac-D4u-3vcW.js} +6 -6
  76. package/dist/component/{phone-input-field-rac-C30S0p_Y.js → phone-input-field-rac-uHxR3ozd.js} +14 -14
  77. package/dist/component/{phone-rac-vzh9GsbA.js → phone-rac-Bf99_BGi.js} +1 -1
  78. package/dist/component/{product-list-rac-DMdxtFZ1.js → product-list-rac-iRf6Ra7i.js} +4 -4
  79. package/dist/component/{quiz-radio-group-rac-CX9W6rGY.js → quiz-radio-group-rac-CPGS0LEb.js} +2 -2
  80. package/dist/component/{radio-group-field-rac-D7MwZqH6.js → radio-group-field-rac-BWpTNAbO.js} +2 -2
  81. package/dist/component/{radio-group-field-rac.module-DxEUzWwB.js → radio-group-field-rac.module-WxU5zxvM.js} +3 -3
  82. package/dist/component/{radio-group-rac-BK7qn-h2.js → radio-group-rac-dA4WZ1Vj.js} +1 -1
  83. package/dist/component/rating-input-field-rac-CJnFsBvH.js +127 -0
  84. package/dist/component/{rating-input-rac-Dy335I62.js → rating-input-rac-DXVYozFV.js} +1 -1
  85. package/dist/component/{rich-content-rac.module-DrHi1MSI.js → rich-content-rac.module-DkKwzJS7.js} +1 -1
  86. package/dist/component/{rich-text-field-rac-CMnH_2lB.js → rich-text-field-rac-8FWCRrpb.js} +3 -3
  87. package/dist/component/{rich-text-rac-Cebhj1Mq.js → rich-text-rac-OeM_mPRy.js} +1 -1
  88. package/dist/component/{service-dropdown-rac-BKsuPUHs.js → service-dropdown-rac-mvUMpcS_.js} +14 -14
  89. package/dist/component/{services-multi-choice-rac-BCzzyhJY.js → services-multi-choice-rac-DrgUrn_N.js} +9 -9
  90. package/dist/component/{signature-rac-TuOQR74M.js → signature-rac-D44U9Uyp.js} +52 -52
  91. package/dist/component/{submit-button-rac-Ct4NVia5.js → submit-button-rac-BqtcgVAn.js} +2 -2
  92. package/dist/component/{tags-field-rac-DYdaPvQc.js → tags-field-rac-CemsTKWz.js} +13 -13
  93. package/dist/component/{tags-rac-BvyXZ_95.js → tags-rac-fVjCf6qo.js} +1 -1
  94. package/dist/component/{text-area-field-rac-YmesRjRH.js → text-area-field-rac-BPciZlZb.js} +6 -6
  95. package/dist/component/{text-area-rac-Bk0bbyrK.js → text-area-rac-CRTORdZM.js} +1 -1
  96. package/dist/component/{text-input-field-rac-CW0ZR1y2.js → text-input-field-rac-CvFoWlRN.js} +2 -2
  97. package/dist/component/{text-input-headless-C1m6gpFi.js → text-input-headless-BQ3TWU9G.js} +3 -3
  98. package/dist/component/{text-input-rac-5S5KE2Qr.js → text-input-rac-DSFkEmob.js} +1 -1
  99. package/dist/component/{time-input-rac-CfoKMXeX.js → time-input-rac-CGgs7ncp.js} +8 -8
  100. package/dist/component/{url-input-field-rac-aQiV0Sti.js → url-input-field-rac-CqvgTc-F.js} +12 -12
  101. package/dist/component/{url-input-rac-Ko5uylZw.js → url-input-rac-C45KOwnr.js} +1 -1
  102. package/dist/component/{use-service-options-base-BagPjcuW.js → use-service-options-base-D4Zl-iGW.js} +1 -1
  103. package/package.json +2 -2
  104. package/dist/component/form-element-keys-P3mtjfCv.js +0 -7
  105. package/dist/component/rating-input-field-rac-CUTqEPPd.js +0 -130
@@ -1,130 +0,0 @@
1
- import { RicosViewer as D } from "@wix/ricos/viewer";
2
- import d from "classnames";
3
- import e, { useCallback as N, useState as y, useRef as O } from "react";
4
- import { ai as v, af as I, as as A } from "./form-VD2Og15y.js";
5
- import { RadioGroup as w, RadioField as M, RadioButton as B } from "react-aria-components";
6
- import { f as m, a as T } from "./find-child-C60k4CxG.js";
7
- import { D as P, E as q } from "./field-error-headless-BAVGL8JO.js";
8
- import { L as H } from "./field-label-headless-CwSCKtI1.js";
9
- import { E as x } from "./error-icon-hZxQ6DEy.js";
10
- import { s as u } from "./field-rac.module-Cac83bU5.js";
11
- import { z, P as k, O as G, q as j, j as Q } from "./form-element-classes-BSMjWijd.js";
12
- const t = ({ children: r }) => {
13
- const { id: n, value: s, onChange: o, disabled: l, required: c, hasError: i, onBlur: C, onFocus: L, FieldLayout: E } = v(), { labelId: p } = I(), R = N((F) => o(Number(F)), [
14
- o
15
- ]), f = m(r, t.Label), a = m(r, t.Ratings), g = m(r, t.Description), S = m(r, t.Error);
16
- return /* @__PURE__ */ e.createElement(E, {
17
- fieldId: n,
18
- renderLabel: () => f,
19
- renderInput: () => /* @__PURE__ */ e.createElement(w, {
20
- "aria-labelledby": p,
21
- value: s ? String(s) : void 0,
22
- onChange: R,
23
- isDisabled: l,
24
- isRequired: c,
25
- isInvalid: i,
26
- onBlur: C,
27
- onFocus: L,
28
- orientation: "horizontal"
29
- }, a),
30
- renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, S, g)
31
- });
32
- }, h = ({ children: r, className: n, getReactionLabel: s }) => {
33
- const { value: o, hasError: l } = v(), { inputId: c, ariaDescribedBy: i } = I(), [C, L] = y(), E = O(null), p = m(r, h.Rating), R = [
34
- "1",
35
- "2",
36
- "3",
37
- "4",
38
- "5"
39
- ], f = (a) => C ? C >= a : !!o && o >= Number(a);
40
- return /* @__PURE__ */ e.createElement("div", {
41
- ref: E,
42
- id: c,
43
- "aria-describedby": i,
44
- className: n,
45
- "data-invalid": l
46
- }, R.map((a) => T(p, {
47
- key: a,
48
- value: a,
49
- isSelected: f(a),
50
- onHoverChange: (g) => L(g ? a : void 0),
51
- label: s == null ? void 0 : s(Number(a))
52
- })));
53
- }, U = {
54
- border: 0,
55
- clipPath: "inset(50%)",
56
- height: 1,
57
- margin: -1,
58
- overflow: "hidden",
59
- padding: 0,
60
- position: "absolute",
61
- width: 1,
62
- whiteSpace: "nowrap"
63
- }, _ = ({ className: r, children: n, ...s }) => {
64
- const { value: o, isSelected: l, onHoverChange: c, label: i } = s;
65
- return /* @__PURE__ */ e.createElement(M, {
66
- value: o
67
- }, /* @__PURE__ */ e.createElement(B, {
68
- className: r,
69
- "data-active": l || void 0,
70
- onHoverChange: c
71
- }, typeof n == "function" ? n({
72
- isSelected: l
73
- }) : n, i ? /* @__PURE__ */ e.createElement("span", {
74
- style: U
75
- }, i) : null));
76
- };
77
- h.Rating = _;
78
- t.Label = H;
79
- t.Ratings = h;
80
- t.Rating = _;
81
- t.Description = P;
82
- t.Error = q;
83
- const Z = (r) => /* @__PURE__ */ e.createElement("svg", {
84
- viewBox: "0 0 32 32",
85
- width: 32,
86
- height: 32,
87
- fill: "currentColor",
88
- "aria-hidden": "true",
89
- ...r
90
- }, /* @__PURE__ */ e.createElement("path", {
91
- fillRule: "evenodd",
92
- d: "M28.6265,13.6325 C28.9655,13.3015 29.0845,12.8175 28.9385,12.3665 C28.7925,11.9165 28.4105,11.5945 27.9415,11.5265 L20.5785,10.4565 C20.5015,10.4445 20.4345,10.3965 20.4005,10.3275 L17.1075,3.6545 L17.1075,3.6535 C16.8975,3.2295 16.4735,2.9655 16.0005,2.9655 L15.9995,2.9655 C15.5255,2.9655 15.1025,3.2295 14.8925,3.6545 L11.5985,10.3275 C11.5645,10.3965 11.4985,10.4445 11.4225,10.4565 L4.0575,11.5265 C3.5895,11.5945 3.2075,11.9165 3.0615,12.3665 C2.9155,12.8175 3.0345,13.3015 3.3735,13.6325 L8.7025,18.8265 C8.7575,18.8805 8.7835,18.9585 8.7705,19.0345 L7.5125,26.3695 C7.4325,26.8355 7.6205,27.2985 8.0035,27.5765 C8.2195,27.7345 8.4735,27.8145 8.7285,27.8145 C8.9245,27.8145 9.1215,27.7665 9.3045,27.6705 L15.8895,24.2085 C15.9595,24.1725 16.0415,24.1725 16.1085,24.2075 L22.6955,27.6705 C23.1155,27.8915 23.6135,27.8555 23.9965,27.5765 C24.3795,27.2985 24.5675,26.8355 24.4875,26.3695 L23.2305,19.0355 C23.2165,18.9585 23.2425,18.8805 23.2975,18.8265 L28.6265,13.6325 Z"
93
- })), J = (r) => /* @__PURE__ */ e.createElement("svg", {
94
- viewBox: "0 0 32 32",
95
- width: 32,
96
- height: 32,
97
- fill: "currentColor",
98
- "aria-hidden": "true",
99
- ...r
100
- }, /* @__PURE__ */ e.createElement("path", {
101
- fillRule: "evenodd",
102
- d: "M16,3.966 C15.956,3.966 15.848,3.979 15.789,4.097 L12.496,10.77 C12.317,11.133 11.969,11.386 11.567,11.445 L4.202,12.515 C4.072,12.534 4.026,12.634 4.012,12.675 C3.999,12.717 3.978,12.824 4.072,12.917 L9.4,18.111 C9.691,18.394 9.824,18.803 9.755,19.204 L8.498,26.538 C8.476,26.668 8.556,26.742 8.591,26.768 C8.627,26.793 8.721,26.846 8.838,26.786 L15.426,23.323 C15.785,23.133 16.215,23.134 16.574,23.322 L23.162,26.786 C23.277,26.846 23.374,26.793 23.409,26.768 C23.444,26.742 23.524,26.668 23.502,26.538 L22.245,19.204 C22.176,18.803 22.309,18.394 22.6,18.111 L27.928,12.917 C28.022,12.824 28.001,12.717 27.988,12.675 C27.974,12.634 27.928,12.534 27.798,12.515 L20.434,11.445 C20.031,11.386 19.683,11.133 19.504,10.769 L16.211,4.097 C16.152,3.979 16.044,3.966 16,3.966 M8.728,27.814 C8.473,27.814 8.22,27.734 8.003,27.577 C7.62,27.299 7.432,26.836 7.512,26.369 L8.77,19.035 C8.783,18.958 8.758,18.881 8.702,18.826 L3.374,13.633 C3.035,13.302 2.915,12.817 3.061,12.367 C3.208,11.916 3.589,11.594 4.058,11.526 L11.422,10.456 C11.499,10.445 11.565,10.397 11.599,10.328 L14.893,3.654 C15.102,3.23 15.526,2.966 16,2.966 C16.474,2.966 16.898,3.23 17.107,3.654 L20.401,10.327 C20.435,10.397 20.501,10.445 20.579,10.456 L27.942,11.526 C28.411,11.594 28.792,11.916 28.939,12.367 C29.085,12.817 28.965,13.302 28.626,13.633 L23.298,18.826 C23.242,18.881 23.217,18.958 23.23,19.035 L24.488,26.369 C24.568,26.836 24.38,27.299 23.997,27.577 C23.614,27.855 23.116,27.892 22.696,27.671 L16.109,24.208 C16.042,24.173 15.959,24.172 15.891,24.208 L9.304,27.671 C9.122,27.767 8.924,27.814 8.728,27.814"
103
- })), K = "_ratings_112z7_1", W = "_rating_112z7_1", b = {
104
- ratings: K,
105
- rating: W
106
- }, X = ({ content: r, locale: n }) => /* @__PURE__ */ e.createElement(D, {
107
- content: r,
108
- locale: n
109
- }), i2 = () => {
110
- const { t: r } = A();
111
- return /* @__PURE__ */ e.createElement(t, null, /* @__PURE__ */ e.createElement(t.Label, {
112
- className: d(z, u.label)
113
- }, /* @__PURE__ */ e.createElement(t.Label.Required, {
114
- className: d(k, u.requiredMark)
115
- })), /* @__PURE__ */ e.createElement(t.Ratings, {
116
- className: b.ratings,
117
- getReactionLabel: (n) => r("rating-input.a11y.reaction-label", {
118
- count: n
119
- })
120
- }, /* @__PURE__ */ e.createElement(t.Rating, {
121
- className: d(G, b.rating)
122
- }, ({ isSelected: n }) => n ? /* @__PURE__ */ e.createElement(Z, null) : /* @__PURE__ */ e.createElement(J, null))), /* @__PURE__ */ e.createElement(t.Error, {
123
- className: d(j, u.error)
124
- }, /* @__PURE__ */ e.createElement(x, null), /* @__PURE__ */ e.createElement(t.Error.Text, null)), /* @__PURE__ */ e.createElement(t.Description, {
125
- className: d(Q, u.description)
126
- }, X));
127
- };
128
- export {
129
- i2 as R
130
- };