@bigbinary/neeto-form-frontend 4.4.62 → 4.4.64
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/.ready +1 -1
- package/dist/cjs/v2/BuildForm.js +21 -16
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/cjs/v2/ExternalForm.js +1 -1
- package/dist/cjs/v2/UrlBuilder.js +1 -1
- package/dist/cjs/v2/index.js +1 -1
- package/dist/cjs/v2/{utils-7UuaGLVa.js → utils-BxQH8Suh.js} +10 -8
- package/dist/cjs/v2/utils-BxQH8Suh.js.map +1 -0
- package/dist/v2/BuildForm.js +21 -16
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/ExternalForm.js +1 -1
- package/dist/v2/UrlBuilder.js +1 -1
- package/dist/v2/index.js +1 -1
- package/dist/v2/{utils-BsydubqS.js → utils-DIJEwwvP.js} +10 -8
- package/dist/v2/utils-DIJEwwvP.js.map +1 -0
- package/package.json +18 -18
- package/dist/cjs/v2/utils-7UuaGLVa.js.map +0 -1
- package/dist/v2/utils-BsydubqS.js.map +0 -1
|
@@ -20,7 +20,7 @@ var reactI18next = require('react-i18next');
|
|
|
20
20
|
var useFormApi = require('./useFormApi-BpB-Kqbw.js');
|
|
21
21
|
var index$1 = require('./index-NFq_E15P.js');
|
|
22
22
|
var jsxRuntime = require('react/jsx-runtime');
|
|
23
|
-
var utils = require('./utils-
|
|
23
|
+
var utils = require('./utils-BxQH8Suh.js');
|
|
24
24
|
var yup = require('./yup-D2FUYjqU.js');
|
|
25
25
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
26
26
|
var reactUtils = require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
@@ -12,7 +12,7 @@ var PageLoader = require('@bigbinary/neeto-molecules/v2/PageLoader');
|
|
|
12
12
|
var ramda = require('ramda');
|
|
13
13
|
var reactI18next = require('react-i18next');
|
|
14
14
|
var useFormApi = require('./useFormApi-BpB-Kqbw.js');
|
|
15
|
-
var utils = require('./utils-
|
|
15
|
+
var utils = require('./utils-BxQH8Suh.js');
|
|
16
16
|
var libphonenumberJs = require('libphonenumber-js');
|
|
17
17
|
var yup = require('./yup-D2FUYjqU.js');
|
|
18
18
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/cjs/v2/index.js
CHANGED
|
@@ -52,7 +52,7 @@ require('@babel/runtime/regenerator');
|
|
|
52
52
|
require('@bigbinary/neeto-molecules/v2/HelpPopover');
|
|
53
53
|
require('@bigbinary/neeto-hotkeys');
|
|
54
54
|
require('@bigbinary/neeto-molecules/v2/PageLoader');
|
|
55
|
-
require('./utils-
|
|
55
|
+
require('./utils-BxQH8Suh.js');
|
|
56
56
|
require('libphonenumber-js');
|
|
57
57
|
require('@bigbinary/neeto-editor-frontend/v2/EditorContent');
|
|
58
58
|
require('@bigbinary/neeto-molecules/v2/PhoneNumber');
|
|
@@ -1571,7 +1571,6 @@ var ResendVerificationCode = function ResendVerificationCode(_ref) {
|
|
|
1571
1571
|
button: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
1572
1572
|
"data-testid": "otp-resend-button",
|
|
1573
1573
|
disabled: isResendDisabled,
|
|
1574
|
-
size: "sm",
|
|
1575
1574
|
variant: "link",
|
|
1576
1575
|
onClick: handleResendClick
|
|
1577
1576
|
})
|
|
@@ -2204,7 +2203,15 @@ var Choices = function Choices(_ref) {
|
|
|
2204
2203
|
handleChoiceValueChange("");
|
|
2205
2204
|
};
|
|
2206
2205
|
var handleChoiceCardClick = function handleChoiceCardClick(event, option, index, isChecked) {
|
|
2207
|
-
|
|
2206
|
+
// Radix re-dispatches an untrusted, bubbling click from its hidden input
|
|
2207
|
+
// whenever a radio/checkbox's checked state changes. Treating that as a
|
|
2208
|
+
// card click toggles the value again, which fires another one — an
|
|
2209
|
+
// infinite update loop. Only react to real user clicks.
|
|
2210
|
+
if (!event.nativeEvent.isTrusted) return;
|
|
2211
|
+
|
|
2212
|
+
// atoms RadioGroup.Item has no `field` wrapper (Checkbox does), so match
|
|
2213
|
+
// the radio button and its label explicitly.
|
|
2214
|
+
var clickedOutsideControl = !event.target.closest("[data-slot='field'], [role='radio'], label");
|
|
2208
2215
|
if (!disabled && clickedOutsideControl) {
|
|
2209
2216
|
if (isCheckBox) {
|
|
2210
2217
|
onChange({
|
|
@@ -2289,11 +2296,6 @@ var Choices = function Choices(_ref) {
|
|
|
2289
2296
|
id: option.id,
|
|
2290
2297
|
label: option.label,
|
|
2291
2298
|
value: option.id,
|
|
2292
|
-
labelProps: {
|
|
2293
|
-
className: classnames({
|
|
2294
|
-
"cursor-not-allowed": disabled
|
|
2295
|
-
})
|
|
2296
|
-
},
|
|
2297
2299
|
onKeyDown: function onKeyDown(event) {
|
|
2298
2300
|
return handleChoiceKeyDown(event, option.id);
|
|
2299
2301
|
}
|
|
@@ -3008,4 +3010,4 @@ exports.getFieldComponent = getFieldComponent;
|
|
|
3008
3010
|
exports.getWithExpiry = getWithExpiry;
|
|
3009
3011
|
exports.mergeRefs = mergeRefs;
|
|
3010
3012
|
exports.renderButtonsInOrder = renderButtonsInOrder;
|
|
3011
|
-
//# sourceMappingURL=utils-
|
|
3013
|
+
//# sourceMappingURL=utils-BxQH8Suh.js.map
|