@bigbinary/neeto-form-frontend 1.2.22 → 1.2.23
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/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import React__default, { useState, useRef, useEffect, useContext, useLayoutEffec
|
|
|
3
3
|
import { useField, useFormikContext, FieldArray, Form as Form$1, Formik, Field, FastField } from 'formik';
|
|
4
4
|
import { noop as noop$4, slugify, findBy, filterBy, removeBy, isPresent as isPresent$1, isNotEmpty, findById, notEqualsDeep } from '@bigbinary/neeto-cist';
|
|
5
5
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
6
|
-
import { Typography, Dropdown as Dropdown$2, Tooltip, Button as Button$1, Label, Checkbox as Checkbox$1, Alert, Toastr, MultiEmailInput, DatePicker, Radio, Select, Textarea as Textarea$1, Input as Input$2, Spinner as Spinner$2 } from '@bigbinary/neetoui';
|
|
6
|
+
import { Typography, Dropdown as Dropdown$2, Tooltip, Button as Button$1, Label, Checkbox as Checkbox$1, Alert, Toastr, MultiEmailInput, DatePicker, Radio as Radio$1, Select, Textarea as Textarea$1, Input as Input$2, Spinner as Spinner$2 } from '@bigbinary/neetoui';
|
|
7
7
|
import { assoc, prop, isEmpty, path, values, compose as compose$1, trim, useWith, split, either, isNil, equals, difference, reject, pluck, keys, pick, omit, insert, not, pipe as pipe$1, toLower, map, includes, isNotNil, times } from 'ramda';
|
|
8
8
|
import { useQuery, useQueryClient, useMutation } from 'react-query';
|
|
9
9
|
import i18next, { t as t$4 } from 'i18next';
|
|
10
|
-
import { Input, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, Info, Delete, Plus, NeetoInvisible,
|
|
10
|
+
import { Input, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, Info, Delete, Plus, NeetoInvisible, Checkbox as Checkbox$2, Radio, Dropdown as Dropdown$3, Rating as Rating$4, Smiley, Calendar, Upload, Check, Close, FileGeneric } from '@bigbinary/neeto-icons';
|
|
11
11
|
import axios from 'axios';
|
|
12
12
|
import ReactDOM, { unstable_batchedUpdates, flushSync as flushSync$1 } from 'react-dom';
|
|
13
13
|
import { Input as Input$1, Textarea, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
@@ -11144,7 +11144,7 @@ var QUESTION_KINDS = [{
|
|
|
11144
11144
|
type: "checkbox",
|
|
11145
11145
|
label: t$4("neetoForm.fields.mcf"),
|
|
11146
11146
|
isSingular: false,
|
|
11147
|
-
icon:
|
|
11147
|
+
icon: Checkbox$2,
|
|
11148
11148
|
component: MultipleChoice,
|
|
11149
11149
|
defaults: {
|
|
11150
11150
|
label: "",
|
|
@@ -11157,7 +11157,7 @@ var QUESTION_KINDS = [{
|
|
|
11157
11157
|
type: "radio",
|
|
11158
11158
|
label: t$4("neetoForm.fields.scf"),
|
|
11159
11159
|
isSingular: false,
|
|
11160
|
-
icon:
|
|
11160
|
+
icon: Radio,
|
|
11161
11161
|
component: SingleChoice,
|
|
11162
11162
|
defaults: {
|
|
11163
11163
|
label: "",
|
|
@@ -26301,8 +26301,8 @@ var Choices = function Choices(_ref) {
|
|
|
26301
26301
|
onChange = _ref.onChange,
|
|
26302
26302
|
error = _ref.error;
|
|
26303
26303
|
var isCheckBox = type === "checkbox";
|
|
26304
|
-
var ChoiceWrapper = isCheckBox ? "div" : Radio;
|
|
26305
|
-
var Component = isCheckBox ? Checkbox$1 : Radio.Item;
|
|
26304
|
+
var ChoiceWrapper = isCheckBox ? "div" : Radio$1;
|
|
26305
|
+
var Component = isCheckBox ? Checkbox$1 : Radio$1.Item;
|
|
26306
26306
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26307
26307
|
className: "neeto-form-engine-choices__wrapper"
|
|
26308
26308
|
}, /*#__PURE__*/React__default.createElement("label", {
|