@wix/form-elements 1.147.0 → 1.149.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.
- package/dist/component/{appointment-rac-BG5-bIZU.js → appointment-rac-CeJ6tmgt.js} +93 -89
- package/dist/component/{bookings-address-rac-8e8PqKsp.js → bookings-address-rac-CEObYEbj.js} +1 -1
- package/dist/component/{bookings-email-rac-CtlnU8ws.js → bookings-email-rac-DmW99D5W.js} +1 -1
- package/dist/component/{bookings-first-name-rac-CrivNlXM.js → bookings-first-name-rac-GmKet4hL.js} +1 -1
- package/dist/component/{bookings-header-rac-DWDAjfqq.js → bookings-header-rac-C_J1YzAq.js} +1 -1
- package/dist/component/{bookings-last-name-rac-qAthWem2.js → bookings-last-name-rac-Bj-gwK0F.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BNyUDqlM.js → bookings-login-bar-rac-ol4QLAP6.js} +1 -1
- package/dist/component/{bookings-phone-rac-Tc39XLr7.js → bookings-phone-rac-oaCG294y.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CPNaPtFK.js → bookings-rich-text-rac-sMiikQgk.js} +1 -1
- package/dist/component/{checkbox-field-rac-DEa78Tpf.js → checkbox-field-rac-DxGaRbDj.js} +9 -7
- package/dist/component/{checkbox-group-field-headless-BxBaMg29.js → checkbox-group-field-headless-C3ZaCvQz.js} +3 -3
- package/dist/component/{checkbox-group-field-rac-CRRP03Qk.js → checkbox-group-field-rac-CMj-kfFN.js} +6 -6
- package/dist/component/{checkbox-group-rac-TOofMGl3.js → checkbox-group-rac-DpOT4H7g.js} +1 -1
- package/dist/component/{checkbox-indicator-module-classes-6173wvuW.js → checkbox-indicator-module-classes-akWZsZNn.js} +1 -1
- package/dist/component/{checkbox-rac-CHMHr8Ry.js → checkbox-rac-CwdOkW8r.js} +1 -1
- package/dist/component/{contacts-address-rac-Bc5yDvTL.js → contacts-address-rac-CQvt1Epy.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-Ubtg5ncv.js → contacts-birthdate-rac-VRGtjIMf.js} +1 -1
- package/dist/component/{contacts-company-rac-BksH9IoV.js → contacts-company-rac-B_XDJTL9.js} +1 -1
- package/dist/component/{contacts-email-rac-DDPEtMAm.js → contacts-email-rac-BJ0EdzZo.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DUlCvEdx.js → contacts-first-name-rac-DzBzJXj7.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BikqNgUr.js → contacts-last-name-rac-DAHlHpW7.js} +1 -1
- package/dist/component/{contacts-phone-rac-B4OEgM_8.js → contacts-phone-rac-C4D1TMqv.js} +1 -1
- package/dist/component/{contacts-position-rac-BfybzySV.js → contacts-position-rac-g0CJQJLc.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-CMHb33v1.js → contacts-subscribe-rac-C54jQIum.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-C-qEqwO5.js → contacts-tax-id-rac-D_JlmKJb.js} +1 -1
- package/dist/component/{date-availability-DZ3J3LLm.js → date-availability-CFp_AHpE.js} +1 -1
- package/dist/component/{date-input-field-rac-DeL5vuE7.js → date-input-field-rac-CxOU5_P5.js} +75 -69
- package/dist/component/{date-input-rac-Di6TQvFf.js → date-input-rac-CEuyvgIp.js} +1 -1
- package/dist/component/{date-picker-field-rac-BcdpTkjV.js → date-picker-field-rac-DC8gw2Qe.js} +10 -8
- package/dist/component/{date-picker-rac-Brne65gr.js → date-picker-rac-B8prCy1F.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BtQfAxRp.js → date-time-input-field-rac-FwScqIVQ.js} +115 -109
- package/dist/component/{date-time-input-rac-DM_HXiqV.js → date-time-input-rac-gdstXM2G.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-WTVwhGG0.js → dext-checkbox-group-rac-DdEAXUYC.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BR5YwmLQ.js → dext-checkbox-rac-DYgl82IR.js} +1 -1
- package/dist/component/{dext-date-picker-rac-DvDuRGYi.js → dext-date-picker-rac-SaO61461.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-C6RgbaVv.js → dext-date-time-input-rac-CQ2klkyf.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CWjSdcZx.js → dext-dropdown-rac-CYINWMm2.js} +1 -1
- package/dist/component/{dext-email-rac-D-C1gVTq.js → dext-email-rac-7e49-L1S.js} +1 -1
- package/dist/component/{dext-number-input-rac-YKzZS2ZG.js → dext-number-input-rac-BxECUZaK.js} +1 -1
- package/dist/component/{dext-phone-rac-CFZlEH2a.js → dext-phone-rac-BCUCWcrF.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DiH0wIIl.js → dext-radio-group-rac-Bs_64hFW.js} +2 -2
- package/dist/component/{dext-rating-input-rac-D0s-i0qO.js → dext-rating-input-rac-Bl-MBjGQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Br48OQQ5.js → dext-tags-rac-D98sEqwj.js} +2 -2
- package/dist/component/{dext-text-area-rac-6jG8gJ7i.js → dext-text-area-rac-Dsbsk2z4.js} +1 -1
- package/dist/component/{dext-text-input-rac-FAJTCXuf.js → dext-text-input-rac-vYtTnV5G.js} +1 -1
- package/dist/component/{dext-url-input-rac-BoMP8sQB.js → dext-url-input-rac-tJJZOvtn.js} +1 -1
- package/dist/component/{donation-rac-DNi4p-v5.js → donation-rac-CPPSHRbF.js} +60 -58
- package/dist/component/{dropdown-field-headless-7SCC-xOC.js → dropdown-field-headless-BWbsB155.js} +29 -27
- package/dist/component/{dropdown-field-rac-CMzZh6J6.js → dropdown-field-rac-BYyLHTVV.js} +4 -4
- package/dist/component/{dropdown-rac-qeugpHXY.js → dropdown-rac-CyWVQHvW.js} +1 -1
- package/dist/component/{ecom-address-rac-D8b_L5md.js → ecom-address-rac-DLWEUZg7.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BnAuR9La.js → ecom-subscription-checkbox-rac-DY-Vzmr5.js} +2 -2
- package/dist/component/{email-input-field-rac-CunXRyc5.js → email-input-field-rac-00Q0cH3p.js} +4 -4
- package/dist/component/{events-repeater-rac-DMjyIOkB.js → events-repeater-rac-C_TDB0VL.js} +12 -8
- package/dist/component/{events-rsvp-rac-BsuDPq2K.js → events-rsvp-rac-Cly4TgEv.js} +4 -4
- package/dist/component/{field-error-headless-E8WjFr_n.js → field-error-headless-sUpR20_V.js} +1 -1
- package/dist/component/{field-label-headless-BakLOu5E.js → field-label-headless-xEHyxl62.js} +1 -1
- package/dist/component/field-rac.module-DP0lkkEv.js +25 -0
- package/dist/component/{file-upload-rac-Clu_c--0.js → file-upload-rac-BLTYhgrR.js} +148 -144
- package/dist/component/{fixed-payment-rac-CzAXxsb-.js → fixed-payment-rac-BBSzAU8U.js} +4 -4
- package/dist/component/{form-DHAKwnLt.js → form-DbRjIc40.js} +2212 -2217
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-CwmVpz3r.js → header-field-rac-DdF0EtGw.js} +2 -2
- package/dist/component/{header-rac-ahkGRjSy.js → header-rac-CQzVj2se.js} +1 -1
- package/dist/component/{image-choice-rac-BwxkkdUu.js → image-choice-rac-F4il5nrs.js} +32 -32
- package/dist/component/{index-BFi_n6B7.js → index-3lV2ezGk.js} +2 -2
- package/dist/component/{index-BQf23zZi.js → index-ClGqqyFk.js} +4 -4
- package/dist/component/{isObjectLike-DHcMRYYH.js → isObjectLike-CbFuWC1b.js} +1 -1
- package/dist/component/{multiline-address-field-rac-C6xaqNOk.js → multiline-address-field-rac-Bhkmy-UH.js} +106 -88
- package/dist/component/{multiline-address-rac-DF4TFuDx.js → multiline-address-rac-CH6ZAJ_l.js} +1 -1
- package/dist/component/{number-input-field-rac-uVJ3SBv2.js → number-input-field-rac-DEBHQQqw.js} +16 -14
- package/dist/component/{number-input-rac-D6ERhrSM.js → number-input-rac-DL3ReqMc.js} +1 -1
- package/dist/component/{password-rac-CAiC0ZKl.js → password-rac-Bo7Va46-.js} +13 -11
- package/dist/component/{payment-input-rac-Bu25xvby.js → payment-input-rac-CyT2kcLF.js} +13 -11
- package/dist/component/{phone-input-field-rac-32qUvCsC.js → phone-input-field-rac-CKCkS2mG.js} +7 -7
- package/dist/component/{phone-rac-mNrpj30q.js → phone-rac-BcW_3aA5.js} +1 -1
- package/dist/component/{product-list-rac-zHdM9rHw.js → product-list-rac-Cxu5KYQ1.js} +49 -49
- package/dist/component/{quiz-radio-group-rac-BaSlT8w3.js → quiz-radio-group-rac-Bam3nw3m.js} +1 -1
- package/dist/component/radio-button-module-classes-D6cil49f.js +134 -0
- package/dist/component/{radio-group-field-rac-DI0UgTBr.js → radio-group-field-rac-BgWnXO5Q.js} +5 -5
- package/dist/component/{radio-group-rac-D2ESG8J4.js → radio-group-rac-BMepx9xD.js} +1 -1
- package/dist/component/{rating-input-field-rac-BYT2XqOK.js → rating-input-field-rac-BmdQzQ1t.js} +5 -5
- package/dist/component/{rating-input-rac-D-5CmVAX.js → rating-input-rac-BuNTgro2.js} +1 -1
- package/dist/component/{rich-content-rac.module-Dp9Advo9.js → rich-content-rac.module-DIShgYK1.js} +1 -1
- package/dist/component/{rich-text-field-rac-COEUwoXQ.js → rich-text-field-rac-CfcWsMcr.js} +2 -2
- package/dist/component/{rich-text-rac-CQZLjBQ0.js → rich-text-rac-CbpbC1i1.js} +1 -1
- package/dist/component/{service-dropdown-rac-BTtJVFv8.js → service-dropdown-rac-_ph-8eMR.js} +5 -5
- package/dist/component/{services-multi-choice-rac-hbY3g0Kb.js → services-multi-choice-rac-VS-18f_N.js} +7 -7
- package/dist/component/{signature-rac-CTCNclwL.js → signature-rac-CgCdt4im.js} +286 -284
- package/dist/component/{submit-button-rac-kKGeVgsG.js → submit-button-rac-CAnahSZG.js} +2 -2
- package/dist/component/{tags-field-rac-CVf7oQr_.js → tags-field-rac-TdxHJoT1.js} +75 -75
- package/dist/component/{tags-rac-DiX1_nTT.js → tags-rac-ivZy_kqq.js} +1 -1
- package/dist/component/{text-area-field-rac-IhBNXiDl.js → text-area-field-rac-C4dg7l8s.js} +15 -13
- package/dist/component/{text-area-rac-DHevCtFF.js → text-area-rac-Dqcg7ApJ.js} +1 -1
- package/dist/component/{text-input-field-rac-Da3_wTdh.js → text-input-field-rac-C6VjmvWa.js} +4 -4
- package/dist/component/text-input-headless-CUsCjQmX.js +47 -0
- package/dist/component/{text-input-rac-564LIZ1_.js → text-input-rac-CMFWBJKG.js} +1 -1
- package/dist/component/{time-input-rac-p-Nnsxp_.js → time-input-rac-cbG7WRTS.js} +29 -27
- package/dist/component/{url-input-field-rac-DjrcpRtm.js → url-input-field-rac-7yh9eqH3.js} +20 -18
- package/dist/component/{url-input-rac-B3brpyop.js → url-input-rac-D_rkLxU0.js} +1 -1
- package/dist/component/{use-dropdown-trigger-class-name-BWTT7ltv.js → use-dropdown-trigger-class-name-B53A0SXh.js} +4 -4
- package/dist/component/{use-element-state-class-name-CUZuhFvZ.js → use-element-state-class-name-glM9I1ZZ.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-ugX8-g4E.js → use-hoverable-input-class-name-DpOCZ2hg.js} +3 -3
- package/dist/component/{use-is-forced-open-dropdown-DUZMvWpk.js → use-is-forced-open-dropdown-B0M0FaQ-.js} +1 -1
- package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-CqZd8Yl3.js} +1 -1
- package/dist/component/use-text-input-class-name-DPUN9lls.js +6 -0
- package/dist/form.d.ts +3 -3
- package/package.json +2 -2
- package/dist/component/field-rac.module-DfEb7pBp.js +0 -25
- package/dist/component/radio-button-module-classes-BdWjkBlX.js +0 -132
- package/dist/component/text-input-headless-DcZRRXCp.js +0 -45
- package/dist/component/use-text-input-class-name-wp9dzpEy.js +0 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import d, { useContext as N, useRef as x, useState as f, Children as y, useLayoutEffect as p, useMemo as I } from "react";
|
|
2
2
|
import { CollectionRendererContext as g, DefaultCollectionRenderer as E, ListBox as L } from "react-aria-components";
|
|
3
3
|
import M from "classnames";
|
|
4
|
-
import { s as R } from "./field-rac.module-
|
|
5
|
-
import { z as T, G as P } from "./form-
|
|
6
|
-
import { u as H } from "./use-element-state-class-name-
|
|
7
|
-
import { u as B } from "./use-hoverable-input-class-name-
|
|
4
|
+
import { s as R } from "./field-rac.module-DP0lkkEv.js";
|
|
5
|
+
import { z as T, G as P } from "./form-DbRjIc40.js";
|
|
6
|
+
import { u as H } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
7
|
+
import { u as B } from "./use-hoverable-input-class-name-DpOCZ2hg.js";
|
|
8
8
|
const h = 1 / 0, A = {
|
|
9
9
|
position: "absolute",
|
|
10
10
|
width: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "classnames";
|
|
2
|
-
import { bh as s, aQ as v } from "./form-
|
|
2
|
+
import { bh as s, aQ as v } from "./form-DbRjIc40.js";
|
|
3
3
|
const x = ({ globalClasses: e, moduleClasses: r }) => {
|
|
4
4
|
var d;
|
|
5
5
|
const c = ((d = s(...v(e))) == null ? void 0 : d.split(/\s+/)) ?? [], o = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bo as n } from "./form-
|
|
2
|
-
import { s as e } from "./field-rac.module-
|
|
3
|
-
import { u } from "./use-element-state-class-name-
|
|
1
|
+
import { bo as n } from "./form-DbRjIc40.js";
|
|
2
|
+
import { s as e } from "./field-rac.module-DP0lkkEv.js";
|
|
3
|
+
import { u } from "./use-element-state-class-name-glM9I1ZZ.js";
|
|
4
4
|
const b = (s, a) => {
|
|
5
5
|
const { disabled: t, readOnly: o } = n(), r = u({
|
|
6
6
|
globalClasses: s,
|
package/dist/component/{use-service-options-base-hqO9Ev38.js → use-service-options-base-CqZd8Yl3.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as o, useCallback as y, useEffect as m, useMemo as D } from "react";
|
|
2
|
-
import { bn as v } from "./form-
|
|
2
|
+
import { bn as v } from "./form-DbRjIc40.js";
|
|
3
3
|
const k = (I) => {
|
|
4
4
|
const { fieldType: L, isEditor: t = !1, postProcessOptions: i, customFetchLogic: n, onInitialDataLoaded: a } = I, [O, h] = o(!1), [g, p] = o([]), [E, u] = o(!1), [c, f] = o(!1), s = v(L), r = y((e) => {
|
|
5
5
|
let d = e.map((l) => ({
|
package/dist/form.d.ts
CHANGED
|
@@ -6992,9 +6992,9 @@ type ElementProps = ElementTree & {
|
|
|
6992
6992
|
}> & {
|
|
6993
6993
|
open?: boolean;
|
|
6994
6994
|
};
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6995
|
+
signature?: ElementEntry<ElementTree & {
|
|
6996
|
+
dropZone?: ElementEntry<{
|
|
6997
|
+
uploadButton?: ElementEntry<{
|
|
6998
6998
|
icon?: IconEntry;
|
|
6999
6999
|
label?: LeafEntry;
|
|
7000
7000
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/form-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.149.0",
|
|
4
4
|
"description": "The Wix Forms rendering element for Builder apps, loaded at runtime as @wix/form-elements/Form",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -156,5 +156,5 @@
|
|
|
156
156
|
]
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
"falconPackageHash": "
|
|
159
|
+
"falconPackageHash": "3f6767e3b966663fec0224da0ba742df6c6fdde4aca27005944f9ca2"
|
|
160
160
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const o = "_label_1l2r2_1", e = "_requiredMark_1l2r2_11", t = "_input_1l2r2_16", r = "_inputGroup_1l2r2_17", n = "_inputHover_1l2r2_70", c = "_innerInput_1l2r2_141", _ = "_dropdownTrigger_1l2r2_191", p = "_dropdownIcon_1l2r2_201", l = "_dropdownPopover_1l2r2_220", s = "_selectPopover_1l2r2_226", i = "_selectOption_1l2r2_253", u = "_selectOptionHover_1l2r2_276", d = "_selectOptionSelected_1l2r2_280", h = "_selectOptionWithoutFocusRing_1l2r2_284", b = "_description_1l2r2_290", k = "_error_1l2r2_306", v = "_checkbox_1l2r2_325", I = "_checkboxInput_1l2r2_348", x = "_checkboxInputSelected_1l2r2_387", O = "_checkboxInputHover_1l2r2_391", g = {
|
|
2
|
-
label: o,
|
|
3
|
-
requiredMark: e,
|
|
4
|
-
input: t,
|
|
5
|
-
inputGroup: r,
|
|
6
|
-
inputHover: n,
|
|
7
|
-
innerInput: c,
|
|
8
|
-
dropdownTrigger: _,
|
|
9
|
-
dropdownIcon: p,
|
|
10
|
-
dropdownPopover: l,
|
|
11
|
-
selectPopover: s,
|
|
12
|
-
selectOption: i,
|
|
13
|
-
selectOptionHover: u,
|
|
14
|
-
selectOptionSelected: d,
|
|
15
|
-
selectOptionWithoutFocusRing: h,
|
|
16
|
-
description: b,
|
|
17
|
-
error: k,
|
|
18
|
-
checkbox: v,
|
|
19
|
-
checkboxInput: I,
|
|
20
|
-
checkboxInputSelected: x,
|
|
21
|
-
checkboxInputHover: O
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
g as s
|
|
25
|
-
};
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import a, { useRef as F, useState as V, useEffect as T, useCallback as B } from "react";
|
|
2
|
-
import { RadioGroup as H, RadioField as k, RadioButton as A, TextField as G, Input as P } from "react-aria-components";
|
|
3
|
-
import { bo as g, bl as $, by as D, bq as x } from "./form-DHAKwnLt.js";
|
|
4
|
-
import { f as d, a as v } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as U, E as M } from "./field-error-headless-E8WjFr_n.js";
|
|
6
|
-
import { L as j } from "./field-label-headless-BakLOu5E.js";
|
|
7
|
-
import { S as w } from "./selection-indicator-XQ8MYHUQ.js";
|
|
8
|
-
const L = "Other", z = (e, t) => e == null ? void 0 : e.find((n) => (n.value ?? n.label) === t), S = (e, t) => !!t && !z(e, t), J = (e, t) => {
|
|
9
|
-
const l = t ? t.length + 2 : 0;
|
|
10
|
-
return e.slice(l);
|
|
11
|
-
}, i = ({ children: e, className: t }) => {
|
|
12
|
-
const { id: n, value: l, onChange: O, disabled: p, readOnly: f, required: b, onBlur: E, onFocus: m, hasError: r, FieldLayout: c, options: o } = g(), { inputId: h, labelId: C, ariaDescribedBy: I } = $(), s = d(e, i.Label), _ = d(e, i.Options), R = d(e, i.Description), q = d(e, i.Error), N = S(o, l) ? L : l || null;
|
|
13
|
-
return /* @__PURE__ */ a.createElement(c, {
|
|
14
|
-
fieldId: n,
|
|
15
|
-
renderLabel: () => v(s, {
|
|
16
|
-
as: "div"
|
|
17
|
-
}),
|
|
18
|
-
renderInput: () => /* @__PURE__ */ a.createElement(H, {
|
|
19
|
-
id: h,
|
|
20
|
-
className: t,
|
|
21
|
-
"aria-labelledby": C,
|
|
22
|
-
"aria-describedby": I,
|
|
23
|
-
value: N,
|
|
24
|
-
onChange: O,
|
|
25
|
-
isDisabled: p,
|
|
26
|
-
isReadOnly: f,
|
|
27
|
-
isRequired: b,
|
|
28
|
-
isInvalid: r,
|
|
29
|
-
onBlur: E,
|
|
30
|
-
onFocus: m
|
|
31
|
-
}, _),
|
|
32
|
-
renderDescription: () => /* @__PURE__ */ a.createElement(a.Fragment, null, q, R)
|
|
33
|
-
});
|
|
34
|
-
}, K = ({ children: e, className: t }) => {
|
|
35
|
-
const { options: n, addOther: l, addOtherLabel: O, id: p, numberOfColumns: f, hasError: b } = g(), { t: E } = D(), m = d(e, i.Option), r = F(null), c = O || E("add-other.default-other-option-label") || L;
|
|
36
|
-
return x(() => {
|
|
37
|
-
var o;
|
|
38
|
-
(o = r.current) == null || o.focus();
|
|
39
|
-
}, p), /* @__PURE__ */ a.createElement("div", {
|
|
40
|
-
className: t,
|
|
41
|
-
"data-columns": f,
|
|
42
|
-
"data-invalid": b
|
|
43
|
-
}, n.map((o, h) => v(m, {
|
|
44
|
-
key: o.value ?? o.label,
|
|
45
|
-
value: o.value ?? o.label,
|
|
46
|
-
label: o.label,
|
|
47
|
-
index: h,
|
|
48
|
-
radioRef: h === 0 ? r : void 0
|
|
49
|
-
})), l && v(m, {
|
|
50
|
-
key: L,
|
|
51
|
-
value: L,
|
|
52
|
-
label: c,
|
|
53
|
-
isOther: !0
|
|
54
|
-
}));
|
|
55
|
-
}, u = ({ children: e, className: t, ...n }) => {
|
|
56
|
-
var I;
|
|
57
|
-
const { value: l, label: O, isOther: p = !1, radioRef: f } = n, { value: b, options: E } = g(), m = d(e, u.Label), r = d(e, u.Input), c = d(e, u.Control), o = d(e, u.OtherInput), h = p ? S(E, b) : b === l, C = (I = r == null ? void 0 : r.props) == null ? void 0 : I.className;
|
|
58
|
-
return /* @__PURE__ */ a.createElement("div", {
|
|
59
|
-
className: t
|
|
60
|
-
}, /* @__PURE__ */ a.createElement(k, {
|
|
61
|
-
value: l
|
|
62
|
-
}, /* @__PURE__ */ a.createElement(A, {
|
|
63
|
-
ref: f,
|
|
64
|
-
className: C
|
|
65
|
-
}, ({ isSelected: s, isHovered: _, isFocused: R }) => /* @__PURE__ */ a.createElement(a.Fragment, null, v(c, {
|
|
66
|
-
isSelected: s,
|
|
67
|
-
isHovered: _,
|
|
68
|
-
isFocused: R
|
|
69
|
-
}), v(m, {
|
|
70
|
-
label: O
|
|
71
|
-
})))), p && h && o);
|
|
72
|
-
}, Q = ({ className: e, ...t }) => {
|
|
73
|
-
const { label: n } = t;
|
|
74
|
-
return /* @__PURE__ */ a.createElement("span", {
|
|
75
|
-
className: e
|
|
76
|
-
}, n);
|
|
77
|
-
}, W = (e) => null, X = ({ className: e }) => {
|
|
78
|
-
const { value: t, onChange: n, addOtherLabel: l, addOtherPlaceholder: O, otherInputCharacterLimit: p, disabled: f, readOnly: b, options: E } = g(), { t: m } = D(), r = F(null), c = S(E, t), o = l || m("add-other.default-other-option-label") || L, [h, C] = V(c && t ? J(t, l) : "");
|
|
79
|
-
T(() => {
|
|
80
|
-
var s;
|
|
81
|
-
c && r.current && ((s = r.current) == null || s.focus());
|
|
82
|
-
}, [
|
|
83
|
-
c
|
|
84
|
-
]);
|
|
85
|
-
const I = B((s) => {
|
|
86
|
-
let _;
|
|
87
|
-
s ? _ = `${l}: ${s}` : _ = o, n(_), C(s);
|
|
88
|
-
}, [
|
|
89
|
-
n,
|
|
90
|
-
l,
|
|
91
|
-
o
|
|
92
|
-
]);
|
|
93
|
-
return /* @__PURE__ */ a.createElement(G, {
|
|
94
|
-
"aria-label": o,
|
|
95
|
-
value: h,
|
|
96
|
-
onChange: I,
|
|
97
|
-
isDisabled: f,
|
|
98
|
-
isReadOnly: b
|
|
99
|
-
}, /* @__PURE__ */ a.createElement(P, {
|
|
100
|
-
ref: r,
|
|
101
|
-
className: e,
|
|
102
|
-
placeholder: O,
|
|
103
|
-
maxLength: p
|
|
104
|
-
}));
|
|
105
|
-
};
|
|
106
|
-
u.Label = Q;
|
|
107
|
-
u.Input = W;
|
|
108
|
-
u.Control = w;
|
|
109
|
-
u.OtherInput = X;
|
|
110
|
-
i.Label = j;
|
|
111
|
-
i.Options = K;
|
|
112
|
-
i.Option = u;
|
|
113
|
-
i.Description = U;
|
|
114
|
-
i.Error = M;
|
|
115
|
-
const Y = "_labelImage_1bq4s_1", Z = "_option_1bq4s_26", ee = "_optionInput_1bq4s_32", te = "_optionControl_1bq4s_50", oe = "_optionControlHover_1bq4s_72", ne = "_optionControlSelected_1bq4s_90", le = "_optionLabel_1bq4s_125", y = {
|
|
116
|
-
labelImage: Y,
|
|
117
|
-
option: Z,
|
|
118
|
-
optionInput: ee,
|
|
119
|
-
optionControl: te,
|
|
120
|
-
optionControlHover: oe,
|
|
121
|
-
optionControlSelected: ne,
|
|
122
|
-
optionLabel: le
|
|
123
|
-
}, pe = {
|
|
124
|
-
base: y.optionControl,
|
|
125
|
-
selected: y.optionControlSelected,
|
|
126
|
-
hover: y.optionControlHover
|
|
127
|
-
};
|
|
128
|
-
export {
|
|
129
|
-
pe as R,
|
|
130
|
-
i as a,
|
|
131
|
-
y as s
|
|
132
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import t, { useRef as C } from "react";
|
|
2
|
-
import { TextField as R, Input as v } from "react-aria-components";
|
|
3
|
-
import { bo as d, bl as c, bq as T } from "./form-DHAKwnLt.js";
|
|
4
|
-
import { f as s } from "./find-child-C60k4CxG.js";
|
|
5
|
-
import { D as g, E as h } from "./field-error-headless-E8WjFr_n.js";
|
|
6
|
-
import { L as q } from "./field-label-headless-BakLOu5E.js";
|
|
7
|
-
const e = ({ children: r }) => {
|
|
8
|
-
const { id: a, value: l, onChange: i, disabled: u, readOnly: n, required: o, hasError: p, onBlur: m, onFocus: b, autoComplete: f, FieldLayout: E } = d(), { labelId: I } = c(), F = s(r, e.Label), y = s(r, e.Input), D = s(r, e.Description), L = s(r, e.Error);
|
|
9
|
-
return /* @__PURE__ */ t.createElement(E, {
|
|
10
|
-
fieldId: a,
|
|
11
|
-
renderLabel: () => F,
|
|
12
|
-
renderInput: () => /* @__PURE__ */ t.createElement(R, {
|
|
13
|
-
autoComplete: f,
|
|
14
|
-
"aria-labelledby": I,
|
|
15
|
-
value: l ?? "",
|
|
16
|
-
onChange: i,
|
|
17
|
-
isDisabled: u,
|
|
18
|
-
isReadOnly: n,
|
|
19
|
-
isRequired: o,
|
|
20
|
-
isInvalid: p,
|
|
21
|
-
onBlur: m,
|
|
22
|
-
onFocus: b
|
|
23
|
-
}, y),
|
|
24
|
-
renderDescription: () => /* @__PURE__ */ t.createElement(t.Fragment, null, L, D)
|
|
25
|
-
});
|
|
26
|
-
}, x = ({ className: r }) => {
|
|
27
|
-
const { id: a, placeholder: l } = d(), { inputId: i, ariaDescribedBy: u } = c(), n = C(null);
|
|
28
|
-
return T(() => {
|
|
29
|
-
var o;
|
|
30
|
-
(o = n.current) == null || o.focus();
|
|
31
|
-
}, a), /* @__PURE__ */ t.createElement(v, {
|
|
32
|
-
ref: n,
|
|
33
|
-
id: i,
|
|
34
|
-
"aria-describedby": u,
|
|
35
|
-
className: r,
|
|
36
|
-
placeholder: l
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
e.Label = q;
|
|
40
|
-
e.Input = x;
|
|
41
|
-
e.Description = g;
|
|
42
|
-
e.Error = h;
|
|
43
|
-
export {
|
|
44
|
-
e as T
|
|
45
|
-
};
|