@wix/form-elements 1.84.0 → 1.86.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 (107) hide show
  1. package/dist/component/{appointment-rac-BSy3u0GK.js → appointment-rac-DiPF4326.js} +78 -78
  2. package/dist/component/{bookings-address-rac-CL7Bh1yH.js → bookings-address-rac-DuqMUPYH.js} +1 -1
  3. package/dist/component/{bookings-email-rac-Bw9tj_tv.js → bookings-email-rac-C4uKdWr-.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-BOOu_AXM.js → bookings-first-name-rac-D8Iu-SNH.js} +1 -1
  5. package/dist/component/{bookings-header-rac-3kBei7GF.js → bookings-header-rac-Df7inEbP.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-CUKbu22q.js → bookings-last-name-rac-3GrFylkJ.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-CLrUhdX2.js → bookings-login-bar-rac-Cmm93hGY.js} +6 -6
  8. package/dist/component/{bookings-phone-rac-7DViellg.js → bookings-phone-rac-CfdQ5qR1.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-CIUZX--G.js → bookings-rich-text-rac-CAFLGrDr.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C_jth3RK.js → checkbox-field-rac-D4TSHtYp.js} +5 -5
  11. package/dist/component/{checkbox-group-field-headless-D-c9Kyj8.js → checkbox-group-field-headless-BtorRj0k.js} +30 -30
  12. package/dist/component/{checkbox-group-field-rac-MgGUuYII.js → checkbox-group-field-rac-CSZjtiTd.js} +6 -6
  13. package/dist/component/{checkbox-group-rac-rr1mN2EJ.js → checkbox-group-rac-DVa2KhXh.js} +1 -1
  14. package/dist/component/{checkbox-rac-CRsLQKhN.js → checkbox-rac-BEAyFkKn.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BFlNbQKh.js → contacts-address-rac-DRiJ7oWN.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-D7Ww3iAz.js → contacts-birthdate-rac-pFthm4vI.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DLl4nqH-.js → contacts-company-rac-Bkf19ZXI.js} +1 -1
  18. package/dist/component/{contacts-email-rac-K8fCs8qS.js → contacts-email-rac-eG6dMktK.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-BOTxHl3m.js → contacts-first-name-rac-BGM8vurp.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-bFnG-7Hm.js → contacts-last-name-rac-CB3YwF_-.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-B4teqDIV.js → contacts-phone-rac-C-k6Np0j.js} +1 -1
  22. package/dist/component/{contacts-position-rac-CnWoXO5h.js → contacts-position-rac-DbBwVhvF.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-Bco722BU.js → contacts-subscribe-rac-DPFEKv8D.js} +2 -2
  24. package/dist/component/{contacts-tax-id-rac-QQsKhAx3.js → contacts-tax-id-rac-DUe69xy2.js} +1 -1
  25. package/dist/component/{date-availability-DMbyb1GZ.js → date-availability-LsRBBF2w.js} +1 -1
  26. package/dist/component/{date-input-field-rac-CVRjO19U.js → date-input-field-rac-8tT_tvxK.js} +43 -43
  27. package/dist/component/{date-input-rac-zi7AQ8Ai.js → date-input-rac-XNgfU9bx.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-5H10gH9D.js → date-picker-field-rac-BrVIS9sI.js} +20 -20
  29. package/dist/component/{date-picker-rac-CxWNDsyJ.js → date-picker-rac-ldp-6ccS.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CDa-nyf8.js → date-time-input-field-rac-CoHc9hOG.js} +5 -5
  31. package/dist/component/{date-time-input-rac-DglwFYb0.js → date-time-input-rac-BaCayitG.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-BBB652Uy.js → dext-checkbox-group-rac-Zhmol3mv.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-BVtiGV3w.js → dext-checkbox-rac-ByYJS2iR.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-Di4x6sI_.js → dext-date-picker-rac-DsKWfvPj.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-agWHwUo7.js → dext-date-time-input-rac-BEinQWMz.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-U3FZTA2-.js → dext-dropdown-rac-FuoCb4hK.js} +1 -1
  37. package/dist/component/{dext-email-rac-CZ9AQw_k.js → dext-email-rac-CfTAbFH5.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-DFr_9ZX5.js → dext-number-input-rac-CwGC_pv7.js} +1 -1
  39. package/dist/component/{dext-phone-rac-BYsfNwXn.js → dext-phone-rac-CgMCLDYK.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-B_jm5YAT.js → dext-radio-group-rac-XB40HDWO.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-CNlhMKt-.js → dext-rating-input-rac-BeoGv6No.js} +1 -1
  42. package/dist/component/{dext-tags-rac-y9x8Fg54.js → dext-tags-rac-DJ0DWl1v.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-BgRxIpn9.js → dext-text-area-rac-3X-i3Lf_.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-CdzgUZ38.js → dext-text-input-rac-DJa5OTo5.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Cg1TYyNV.js → dext-url-input-rac-DgsZYkzF.js} +1 -1
  46. package/dist/component/{donation-rac-Deiw7Tl9.js → donation-rac-DvklUsO9.js} +43 -43
  47. package/dist/component/{dropdown-field-headless-BKj2rdy9.js → dropdown-field-headless-CMvvmkUR.js} +11 -11
  48. package/dist/component/{dropdown-field-rac-CIdC2_O3.js → dropdown-field-rac-Dogcbl1j.js} +5 -5
  49. package/dist/component/{dropdown-rac-CYxaJrXP.js → dropdown-rac-CMCVoUmd.js} +1 -1
  50. package/dist/component/{ecom-address-rac-Crr3A_iU.js → ecom-address-rac-B-x688-1.js} +1 -1
  51. package/dist/component/{ecom-subscription-checkbox-rac-DdXAex4c.js → ecom-subscription-checkbox-rac-2SO8p_Mh.js} +3 -3
  52. package/dist/component/{email-input-field-rac-C516Fm0v.js → email-input-field-rac-CWVqDqUg.js} +54 -54
  53. package/dist/component/{events-repeater-rac-DL49KaIU.js → events-repeater-rac-Br-ida6_.js} +30 -30
  54. package/dist/component/{events-rsvp-rac-B5EvAP8x.js → events-rsvp-rac-BwABDdyN.js} +3 -3
  55. package/dist/component/{field-error-headless-D2CJ4Qk7.js → field-error-headless-D4iJBghM.js} +1 -1
  56. package/dist/component/{field-label-headless-D2-WvVKT.js → field-label-headless-CzJhv-wS.js} +7 -7
  57. package/dist/component/{file-upload-rac-BG3msdbn.js → file-upload-rac-DU6INU4J.js} +85 -85
  58. package/dist/component/{fixed-payment-rac-3bI_h_W0.js → fixed-payment-rac-DEn6L3zu.js} +12 -12
  59. package/dist/component/{form-B3KiRFhB.js → form-Dt3W_RUv.js} +2229 -2203
  60. package/dist/component/{form-element-classes-Ct1UaxuQ.js → form-element-classes-BhFk9Jrj.js} +85 -54
  61. package/dist/component/form.css +1 -1
  62. package/dist/component/form.js +1 -1
  63. package/dist/component/{header-field-rac-Bp7hStrt.js → header-field-rac-D0K0BqUG.js} +5 -5
  64. package/dist/component/{header-rac-yVYId2B_.js → header-rac-DyIg-Ltz.js} +1 -1
  65. package/dist/component/{image-choice-rac-D1mqJfcn.js → image-choice-rac-DMjIkxUy.js} +42 -42
  66. package/dist/component/{index-B0PANcv8.js → index-BovDughA.js} +4 -4
  67. package/dist/component/{index-LrdDmlej.js → index-DiFa7GGa.js} +2 -2
  68. package/dist/component/{isObjectLike-DH7T0Txd.js → isObjectLike-CUZBx88n.js} +1 -1
  69. package/dist/component/{multiline-address-field-rac-C-gtuNCU.js → multiline-address-field-rac-CK5u9I0i.js} +128 -128
  70. package/dist/component/{multiline-address-rac-B3ixmNqi.js → multiline-address-rac-w0tpyTzt.js} +1 -1
  71. package/dist/component/{number-input-field-rac-BNPMYFay.js → number-input-field-rac-CVOSoBnw.js} +30 -30
  72. package/dist/component/{number-input-rac-BaEBt2uf.js → number-input-rac-DXEMqaqN.js} +1 -1
  73. package/dist/component/{password-rac-B0H_ILkt.js → password-rac-9pZro4oK.js} +19 -19
  74. package/dist/component/{payment-input-rac-LIk9MP5a.js → payment-input-rac-D9oGt1IQ.js} +17 -17
  75. package/dist/component/{phone-input-field-rac-CUUAacDK.js → phone-input-field-rac-B_MnDM0g.js} +40 -40
  76. package/dist/component/{phone-rac-BYqYOw60.js → phone-rac-BqoY5RbY.js} +1 -1
  77. package/dist/component/{product-list-rac-CvoI6ajr.js → product-list-rac-B_ZzTsCB.js} +41 -41
  78. package/dist/component/{quiz-radio-group-rac-D0IJGSh0.js → quiz-radio-group-rac-Ct2fFqIn.js} +2 -2
  79. package/dist/component/{radio-button-module-classes-CWfSY9kQ.js → radio-button-module-classes-PHiNEQN2.js} +7 -7
  80. package/dist/component/{radio-group-field-rac-DisEhh0b.js → radio-group-field-rac-Dfs4JSH_.js} +4 -4
  81. package/dist/component/{radio-group-rac-DrwjFNWh.js → radio-group-rac-D9SSPWcI.js} +1 -1
  82. package/dist/component/{rating-input-field-rac-BLMQWT7z.js → rating-input-field-rac-BFdsvsk2.js} +16 -16
  83. package/dist/component/{rating-input-rac-CGJY2HSO.js → rating-input-rac-hG1mVqe-.js} +1 -1
  84. package/dist/component/{rich-content-rac.module-C9cKdumu.js → rich-content-rac.module-BnJHWZW_.js} +1 -1
  85. package/dist/component/{rich-text-field-rac-DTSRvaTK.js → rich-text-field-rac-CYRioe4F.js} +3 -3
  86. package/dist/component/{rich-text-rac-Blk3neHN.js → rich-text-rac-BVFGMc9w.js} +1 -1
  87. package/dist/component/{service-dropdown-rac-C9P5IWrV.js → service-dropdown-rac-BDrEc7Zb.js} +20 -20
  88. package/dist/component/{services-multi-choice-rac-Cnhwy1a9.js → services-multi-choice-rac-RauhMlXM.js} +7 -7
  89. package/dist/component/{signature-rac-Benar-ci.js → signature-rac-eZQzl11r.js} +41 -41
  90. package/dist/component/submit-button-rac-DeGY6ugG.js +142 -0
  91. package/dist/component/{tags-field-rac-wA_0ZinI.js → tags-field-rac-CZ5TvoyT.js} +72 -72
  92. package/dist/component/{tags-rac-BcVGekA6.js → tags-rac-DXznht8H.js} +1 -1
  93. package/dist/component/{text-area-field-rac-VpuojNac.js → text-area-field-rac-B5qohjUV.js} +25 -25
  94. package/dist/component/{text-area-rac-DDvi8u5M.js → text-area-rac-B1KlbayF.js} +1 -1
  95. package/dist/component/{text-input-field-rac-C6LohBtn.js → text-input-field-rac-CHQcR47F.js} +3 -3
  96. package/dist/component/{text-input-headless-5yKhWpLD.js → text-input-headless-CRm8bo7P.js} +10 -10
  97. package/dist/component/{text-input-rac-C8hsNUp6.js → text-input-rac-BfQViUSp.js} +1 -1
  98. package/dist/component/{time-input-rac-fOT-pjju.js → time-input-rac-BhhojlSG.js} +19 -19
  99. package/dist/component/{url-input-field-rac-DxR6Hymf.js → url-input-field-rac-cvzCBb8W.js} +19 -19
  100. package/dist/component/{url-input-rac-B928R10o.js → url-input-rac-C_sH1Z5C.js} +1 -1
  101. package/dist/component/use-element-state-class-name-CeL6xkSj.js +22 -0
  102. package/dist/component/{use-service-options-base-UyJmT2P6.js → use-service-options-base-_vksQyAH.js} +5 -5
  103. package/dist/component/{use-text-input-class-name-Qk2v8a6-.js → use-text-input-class-name-DLHJl2sm.js} +5 -5
  104. package/dist/form.d.ts +105 -2
  105. package/package.json +6 -3
  106. package/dist/component/submit-button-rac-BDJQsZC3.js +0 -116
  107. package/dist/component/use-element-state-class-name-CBjBYCW5.js +0 -20
@@ -1,116 +0,0 @@
1
- import t from "react";
2
- import l from "classnames";
3
- import { ai as c } from "./form-B3KiRFhB.js";
4
- import { ProgressBar as g, Button as b } from "react-aria-components";
5
- import { f as i } from "./find-child-C60k4CxG.js";
6
- import { a4 as v, a3 as N, a6 as f } from "./form-element-classes-Ct1UaxuQ.js";
7
- function C(e) {
8
- const s = "calc(50% - 2px)";
9
- return /* @__PURE__ */ t.createElement(g, {
10
- ...e,
11
- isIndeterminate: !0
12
- }, ({ percentage: o, isIndeterminate: a }) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", {
13
- fill: "none",
14
- width: "100%",
15
- height: "100%",
16
- viewBox: "0 0 32 32"
17
- }, /* @__PURE__ */ t.createElement("circle", {
18
- cx: "50%",
19
- cy: "50%",
20
- r: s
21
- }), /* @__PURE__ */ t.createElement("circle", {
22
- cx: "50%",
23
- cy: "50%",
24
- r: s,
25
- // Normalize the path length to 100 so we can easily set stroke-dasharray/-offset to a percentage.
26
- pathLength: "100",
27
- strokeDasharray: a || o == null ? "25 100" : "100 100",
28
- strokeDashoffset: a || o == null ? 0 : 100 - o,
29
- strokeLinecap: "round"
30
- }, a && /* @__PURE__ */ t.createElement("animateTransform", {
31
- attributeName: "transform",
32
- type: "rotate",
33
- // Rotate around the circle's own center (viewBox is 32x32), not the SVG origin.
34
- values: "0 16 16;360 16 16",
35
- dur: "0.75s",
36
- repeatCount: "indefinite"
37
- })))));
38
- }
39
- const u = ({ children: e }) => {
40
- const { id: n, FieldLayout: s } = c(), o = i(e, u.SubmitButton);
41
- return /* @__PURE__ */ t.createElement(s, {
42
- fieldId: n,
43
- renderLabel: () => null,
44
- renderInput: () => /* @__PURE__ */ t.createElement(t.Fragment, null, o),
45
- renderDescription: () => null
46
- });
47
- }, m = ({ className: e, children: n }) => {
48
- const s = i(n, d), o = i(n, x), a = i(n, B);
49
- return /* @__PURE__ */ t.createElement("div", {
50
- className: e
51
- }, s, o, a);
52
- }, d = ({ className: e }) => {
53
- const { showPreviousButton: n, onPreviousClick: s, previousText: o } = c();
54
- return n ? /* @__PURE__ */ t.createElement(b, {
55
- className: e,
56
- onPress: s
57
- }, o) : null;
58
- }, x = ({ className: e }) => {
59
- const { showNextButton: n, onNextClick: s, nextText: o } = c();
60
- return n ? /* @__PURE__ */ t.createElement(b, {
61
- className: e,
62
- onPress: s
63
- }, o) : null;
64
- }, B = ({ className: e, children: n }) => {
65
- const { showSubmitButton: s, onSubmitClick: o, submitText: a, isDisabled: E, isInProgress: p, isSubmitting: h } = c();
66
- if (!s)
67
- return null;
68
- const _ = i(n, B.Loader), S = h || p;
69
- return /* @__PURE__ */ t.createElement(b, {
70
- className: e,
71
- onPress: S ? void 0 : o,
72
- isDisabled: E && !S,
73
- "aria-disabled": S || void 0,
74
- "data-in-progress": p
75
- }, p && _ ? _ : a);
76
- }, P = ({ className: e }) => /* @__PURE__ */ t.createElement("span", {
77
- className: e
78
- }, /* @__PURE__ */ t.createElement(C, null));
79
- B.Loader = P;
80
- m.PreviousButton = d;
81
- m.NextButton = x;
82
- m.SubmitButton = B;
83
- u.SubmitButton = m;
84
- const T = "_navigationContainer_1thzx_1", L = "_rowSpacing_1thzx_6", w = "_navigationButton_1thzx_10", z = "_nextButton_1thzx_24", k = "_previousButton_1thzx_47", y = "_button_1thzx_90", F = "_buttonNoSteps_1thzx_122", O = "_buttonWithSteps_1thzx_126", R = "_progress_1thzx_154", r = {
85
- navigationContainer: T,
86
- rowSpacing: L,
87
- navigationButton: w,
88
- nextButton: z,
89
- previousButton: k,
90
- button: y,
91
- buttonNoSteps: F,
92
- buttonWithSteps: O,
93
- progress: R
94
- }, W = () => {
95
- const { hasSteps: e, showPreviousButton: n } = c();
96
- return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement(u.SubmitButton, {
97
- className: l({
98
- [r.navigationContainer]: e,
99
- [r.rowSpacing]: n
100
- })
101
- }, /* @__PURE__ */ t.createElement(u.SubmitButton.PreviousButton, {
102
- className: l(v, r.navigationButton, r.previousButton)
103
- }), /* @__PURE__ */ t.createElement(u.SubmitButton.NextButton, {
104
- className: l(N, r.navigationButton, r.nextButton)
105
- }), /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton, {
106
- className: l(f, r.button, {
107
- [r.buttonNoSteps]: !e,
108
- [r.buttonWithSteps]: e
109
- })
110
- }, /* @__PURE__ */ t.createElement(u.SubmitButton.SubmitButton.Loader, {
111
- className: r.progress
112
- }))));
113
- }, X = () => /* @__PURE__ */ t.createElement(W, null);
114
- export {
115
- X as SubmitButtonRAC
116
- };
@@ -1,20 +0,0 @@
1
- import p from "classnames";
2
- import { ac as E } from "./form-B3KiRFhB.js";
3
- const k = ({ globalClasses: e, moduleClasses: c }) => {
4
- var d;
5
- const r = ((d = E(e.key)) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
6
- e.selected,
7
- e.hover
8
- ], u = !!e.selected && r.includes(e.selected), N = r.includes(e.hover);
9
- return ({ isSelected: m, isHovered: n, isInteractive: t = !0 }) => p(e.base, c.base, t ? r : r.filter((h) => !o.includes(h)), {
10
- [e.hover]: t && n,
11
- [c.hover]: t && (n || N)
12
- }, e.selected && {
13
- [e.selected]: t && m
14
- }, c.selected && {
15
- [c.selected]: t && (m || u)
16
- });
17
- };
18
- export {
19
- k as u
20
- };