@digigov/form 1.2.0-39d8f7d2 → 1.2.0-dcbd7ded

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.
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
3
3
  import { FieldBase } from '@digigov/form/Field/FieldBase';
4
4
  import { calculateField } from '@digigov/form/Field/utils';
5
5
  import Fieldset, { FieldsetCaption } from '@digigov/form/Fieldset';
6
- import { FieldsetLegend } from '@digigov/react-core';
6
+ import { FieldsetLegend } from '@digigov/react-core/FieldsetLegend';
7
7
  import { useTranslation } from '@digigov/ui/i18n';
8
8
  export var FieldObject = function FieldObject(_ref) {
9
9
  var name = _ref.name,
@@ -6,7 +6,12 @@ import { useFieldArray } from 'react-hook-form';
6
6
  import FieldContainer from '@digigov/form/Field/FieldBaseContainer';
7
7
  import FieldObject from '@digigov/form/FieldObject';
8
8
  import AddObjects from '@digigov/form/MultiplicityField/add-objects';
9
- import { Card, CardContent, CardAction, Button, Heading, CardHeading } from '@digigov/react-core';
9
+ import { Card } from '@digigov/react-core/Card';
10
+ import { CardContent } from '@digigov/react-core/CardContent';
11
+ import { CardAction } from '@digigov/react-core/CardAction';
12
+ import { Button } from '@digigov/react-core/Button';
13
+ import { Heading } from '@digigov/react-core/Heading';
14
+ import { CardHeading } from '@digigov/react-core/CardHeading';
10
15
  // epeidh einai forwardRef to ref mas to dinei xwrista apo ta props
11
16
  export var Multiplicity = function Multiplicity(_ref) {
12
17
  var extra = _ref.extra,
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _FieldBase = require("@digigov/form/Field/FieldBase");
12
12
  var _utils = require("@digigov/form/Field/utils");
13
13
  var _Fieldset = _interopRequireWildcard(require("@digigov/form/Fieldset"));
14
- var _reactCore = require("@digigov/react-core");
14
+ var _FieldsetLegend = require("@digigov/react-core/cjs/FieldsetLegend");
15
15
  var _i18n = require("@digigov/ui/cjs/i18n");
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
@@ -25,7 +25,7 @@ var FieldObject = exports.FieldObject = function FieldObject(_ref) {
25
25
  formState = _ref.formState;
26
26
  var _useTranslation = (0, _i18n.useTranslation)(),
27
27
  t = _useTranslation.t;
28
- return /*#__PURE__*/_react["default"].createElement(_Fieldset["default"], null, (label === null || label === void 0 ? void 0 : label.primary) && /*#__PURE__*/_react["default"].createElement(_reactCore.FieldsetLegend, {
28
+ return /*#__PURE__*/_react["default"].createElement(_Fieldset["default"], null, (label === null || label === void 0 ? void 0 : label.primary) && /*#__PURE__*/_react["default"].createElement(_FieldsetLegend.FieldsetLegend, {
29
29
  size: "sm"
30
30
  }, t(label.primary)), (label === null || label === void 0 ? void 0 : label.secondary) && /*#__PURE__*/_react["default"].createElement(_Fieldset.FieldsetCaption, null, t(label.secondary)), extra === null || extra === void 0 ? void 0 : extra.fields.map(function (field) {
31
31
  return /*#__PURE__*/_react["default"].createElement(FieldObjectItem, {
@@ -14,7 +14,12 @@ var _reactHookForm = require("react-hook-form");
14
14
  var _FieldBaseContainer = _interopRequireDefault(require("@digigov/form/Field/FieldBaseContainer"));
15
15
  var _FieldObject = _interopRequireDefault(require("@digigov/form/FieldObject"));
16
16
  var _addObjects = _interopRequireDefault(require("@digigov/form/MultiplicityField/add-objects"));
17
- var _reactCore = require("@digigov/react-core");
17
+ var _Card = require("@digigov/react-core/cjs/Card");
18
+ var _CardContent = require("@digigov/react-core/cjs/CardContent");
19
+ var _CardAction = require("@digigov/react-core/cjs/CardAction");
20
+ var _Button = require("@digigov/react-core/cjs/Button");
21
+ var _Heading = require("@digigov/react-core/cjs/Heading");
22
+ var _CardHeading = require("@digigov/react-core/cjs/CardHeading");
18
23
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
24
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
25
  // epeidh einai forwardRef to ref mas to dinei xwrista apo ta props
@@ -59,7 +64,7 @@ var Multiplicity = exports.Multiplicity = function Multiplicity(_ref) {
59
64
  error: formState.isSubmitted && !formState.isSubmitting && error !== null && error !== void 0 && error.message ? error : undefined,
60
65
  wrapper: "fieldset",
61
66
  name: name
62
- }, stashedObjects.length > 0 ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactCore.Heading, {
67
+ }, stashedObjects.length > 0 ? /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Heading.Heading, {
63
68
  size: "md"
64
69
  }, extra === null || extra === void 0 ? void 0 : extra.label.object.title_added), stashedObjects.map(function (_Object, index) {
65
70
  return /*#__PURE__*/_react["default"].createElement(ListObject, {
@@ -101,14 +106,14 @@ var ListObject = exports.ListObject = function ListObject(_ref2) {
101
106
  onDelete = _ref2.onDelete,
102
107
  formState = _ref2.formState;
103
108
  var currentName = "".concat(name, ".").concat(index);
104
- return /*#__PURE__*/_react["default"].createElement(_reactCore.Card, {
109
+ return /*#__PURE__*/_react["default"].createElement(_Card.Card, {
105
110
  variant: (extra === null || extra === void 0 ? void 0 : extra.border) && 'border'
106
- }, /*#__PURE__*/_react["default"].createElement(_reactCore.CardHeading, null, extra === null || extra === void 0 ? void 0 : extra.label.object.title, " #", index + 1), /*#__PURE__*/_react["default"].createElement(_reactCore.CardContent, null, /*#__PURE__*/_react["default"].createElement(_FieldObject["default"], (0, _extends2["default"])({
111
+ }, /*#__PURE__*/_react["default"].createElement(_CardHeading.CardHeading, null, extra === null || extra === void 0 ? void 0 : extra.label.object.title, " #", index + 1), /*#__PURE__*/_react["default"].createElement(_CardContent.CardContent, null, /*#__PURE__*/_react["default"].createElement(_FieldObject["default"], (0, _extends2["default"])({
107
112
  name: currentName,
108
113
  formState: formState,
109
114
  register: register,
110
115
  control: control
111
- }, extra === null || extra === void 0 ? void 0 : extra.of))), /*#__PURE__*/_react["default"].createElement(_reactCore.CardAction, null, /*#__PURE__*/_react["default"].createElement(_reactCore.Button, {
116
+ }, extra === null || extra === void 0 ? void 0 : extra.of))), /*#__PURE__*/_react["default"].createElement(_CardAction.CardAction, null, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
112
117
  type: "button",
113
118
  variant: "link",
114
119
  onClick: function onClick() {
@@ -9,7 +9,7 @@ exports["default"] = exports.AutoCompleteInput = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _reactCore = require("@digigov/react-core");
12
+ var _Hint = require("@digigov/react-core/cjs/Hint");
13
13
  var _AutoComplete = _interopRequireDefault(require("@digigov/ui/cjs/form/AutoComplete"));
14
14
  var _excluded = ["name", "extra", "onChange", "value"];
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -35,7 +35,7 @@ var AutoCompleteInput = exports.AutoCompleteInput = function AutoCompleteInput(_
35
35
  suggestion: function suggestion(_ref2) {
36
36
  var label = _ref2.label,
37
37
  value = _ref2.value;
38
- return /*#__PURE__*/_react["default"].createElement("div", null, label && label.primary && label.primary || value, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_reactCore.Hint, null, label.secondary));
38
+ return /*#__PURE__*/_react["default"].createElement("div", null, label && label.primary && label.primary || value, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint.Hint, null, label.secondary));
39
39
  },
40
40
  inputValue: function inputValue(option) {
41
41
  if (!option) {
@@ -11,7 +11,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _form = require("@digigov/form");
14
- var _reactCore = require("@digigov/react-core");
14
+ var _CheckboxConditional = require("@digigov/react-core/cjs/CheckboxConditional");
15
15
  var _Checkbox = _interopRequireDefault(require("@digigov/react-core/cjs/Checkbox"));
16
16
  var _CheckboxItem = _interopRequireDefault(require("@digigov/react-core/cjs/CheckboxItem"));
17
17
  var _Hint = _interopRequireDefault(require("@digigov/react-core/cjs/Hint"));
@@ -90,7 +90,7 @@ var Checkboxes = exports.Checkboxes = function Checkboxes(_ref) {
90
90
  required: undefined,
91
91
  'aria-describedby': undefined,
92
92
  type: 'checkbox'
93
- })), label && label.primary && t(label.primary) || value, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary))), !!checked[index] && show && /*#__PURE__*/_react["default"].createElement(_reactCore.CheckboxConditional, null, show.map(function (fieldName) {
93
+ })), label && label.primary && t(label.primary) || value, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary))), !!checked[index] && show && /*#__PURE__*/_react["default"].createElement(_CheckboxConditional.CheckboxConditional, null, show.map(function (fieldName) {
94
94
  return /*#__PURE__*/_react["default"].createElement(_form.Field, {
95
95
  name: fieldName,
96
96
  key: fieldName
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _reactHookForm = require("react-hook-form");
12
- var _reactCore = require("@digigov/react-core");
12
+ var _Hint = require("@digigov/react-core/cjs/Hint");
13
13
  var _TextArea = _interopRequireDefault(require("@digigov/react-core/cjs/TextArea"));
14
14
  var _TextInput = _interopRequireDefault(require("@digigov/react-core/cjs/TextInput"));
15
15
  var _i18n = require("@digigov/ui/cjs/i18n");
@@ -56,7 +56,7 @@ var Input = exports.Input = /*#__PURE__*/_react["default"].forwardRef(function W
56
56
  reset: undefined,
57
57
  required: undefined,
58
58
  type: fieldType
59
- }))), (limit === null || limit === void 0 ? void 0 : limit.max) && /*#__PURE__*/_react["default"].createElement(_reactCore.Hint, null, currentValue === undefined || (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) >= 0 && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) <= (limit === null || limit === void 0 ? void 0 : limit.max) ? /*#__PURE__*/_react["default"].createElement("span", null, t('form.info.text.you_have'), ' ', /*#__PURE__*/_react["default"].createElement("b", null, !currentValue ? limit.max : (limit === null || limit === void 0 ? void 0 : limit.max) - (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length)), ' ', currentValue && (limit === null || limit === void 0 ? void 0 : limit.max) - (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) === 1 ? "".concat(t('form.info.text.character')) : "".concat(t('form.info.text.characters')), ' ', t('form.info.text.remaining'), ".") : /*#__PURE__*/_react["default"].createElement("span", {
59
+ }))), (limit === null || limit === void 0 ? void 0 : limit.max) && /*#__PURE__*/_react["default"].createElement(_Hint.Hint, null, currentValue === undefined || (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) >= 0 && (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) <= (limit === null || limit === void 0 ? void 0 : limit.max) ? /*#__PURE__*/_react["default"].createElement("span", null, t('form.info.text.you_have'), ' ', /*#__PURE__*/_react["default"].createElement("b", null, !currentValue ? limit.max : (limit === null || limit === void 0 ? void 0 : limit.max) - (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length)), ' ', currentValue && (limit === null || limit === void 0 ? void 0 : limit.max) - (currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) === 1 ? "".concat(t('form.info.text.character')) : "".concat(t('form.info.text.characters')), ' ', t('form.info.text.remaining'), ".") : /*#__PURE__*/_react["default"].createElement("span", {
60
60
  style: {
61
61
  color: '#b60202'
62
62
  }
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _reactHookForm = require("react-hook-form");
12
12
  var _form = require("@digigov/form");
13
- var _reactCore = require("@digigov/react-core");
13
+ var _RadioConditional = require("@digigov/react-core/cjs/RadioConditional");
14
14
  var _Hint = _interopRequireDefault(require("@digigov/react-core/cjs/Hint"));
15
15
  var _RadioContainer = _interopRequireDefault(require("@digigov/react-core/cjs/RadioContainer"));
16
16
  var _RadioItem = _interopRequireDefault(require("@digigov/react-core/cjs/RadioItem"));
@@ -53,7 +53,7 @@ var RadioButtonsGroup = exports.RadioButtonsGroup = function RadioButtonsGroup(_
53
53
  required: undefined,
54
54
  'aria-describedby': undefined,
55
55
  type: 'radio'
56
- })), label && label.primary && t(label.primary) || v, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary))), selected && selected(), currentValue === v && show && /*#__PURE__*/_react["default"].createElement(_reactCore.RadioConditional, null, show.map(function (fieldName) {
56
+ })), label && label.primary && t(label.primary) || v, label && label.secondary && /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, t(label.secondary))), selected && selected(), currentValue === v && show && /*#__PURE__*/_react["default"].createElement(_RadioConditional.RadioConditional, null, show.map(function (fieldName) {
57
57
  return /*#__PURE__*/_react["default"].createElement(_form.Field, {
58
58
  name: fieldName,
59
59
  key: fieldName
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v1.2.0-39d8f7d2
1
+ /** @license Digigov v1.2.0-dcbd7ded
2
2
  *
3
3
  * This source code is licensed under the BSD-2-Clause license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["name", "extra", "onChange", "value"];
4
4
  import React, { useCallback } from 'react';
5
- import { Hint } from '@digigov/react-core';
5
+ import { Hint } from '@digigov/react-core/Hint';
6
6
  import UIAutoComplete from '@digigov/ui/form/AutoComplete';
7
7
  export var AutoCompleteInput = function AutoCompleteInput(_ref) {
8
8
  var name = _ref.name,
@@ -5,7 +5,7 @@ var _excluded = ["name", "onChange", "value", "extra", "disabled"],
5
5
  _excluded2 = ["label", "value", "show", "disabled", "selected"];
6
6
  import React, { useState } from 'react';
7
7
  import { Field } from '@digigov/form';
8
- import { CheckboxConditional } from '@digigov/react-core';
8
+ import { CheckboxConditional } from '@digigov/react-core/CheckboxConditional';
9
9
  import CoreCheckboxes from '@digigov/react-core/Checkbox';
10
10
  import CheckboxItem from '@digigov/react-core/CheckboxItem';
11
11
  import Hint from '@digigov/react-core/Hint';
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["name", "control", "type", "extra"];
4
4
  import React from 'react';
5
5
  import { useWatch } from 'react-hook-form';
6
- import { Hint } from '@digigov/react-core';
6
+ import { Hint } from '@digigov/react-core/Hint';
7
7
  import TextArea from '@digigov/react-core/TextArea';
8
8
  import TextInput from '@digigov/react-core/TextInput';
9
9
  import { useTranslation } from '@digigov/ui/i18n';
@@ -5,7 +5,7 @@ var _excluded = ["name", "control", "register", "extra", "disabled"],
5
5
  import React from 'react';
6
6
  import { useWatch } from 'react-hook-form';
7
7
  import { Field } from '@digigov/form';
8
- import { RadioConditional } from '@digigov/react-core';
8
+ import { RadioConditional } from '@digigov/react-core/RadioConditional';
9
9
  import Hint from '@digigov/react-core/Hint';
10
10
  import RadioContainer from '@digigov/react-core/RadioContainer';
11
11
  import RadioItem from '@digigov/react-core/RadioItem';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/form",
3
- "version": "1.2.0-39d8f7d2",
3
+ "version": "1.2.0-dcbd7ded",
4
4
  "description": "@digigov form builder",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "BSD-2-Clause",
@@ -15,11 +15,11 @@
15
15
  "dayjs": "1.10.4",
16
16
  "@hookform/resolvers": "2.9.6",
17
17
  "publint": "0.1.8",
18
- "@digigov/react-icons": "1.2.0-39d8f7d2"
18
+ "@digigov/react-icons": "1.2.0-dcbd7ded"
19
19
  },
20
20
  "peerDependencies": {
21
- "@digigov/ui": "1.2.0-39d8f7d2",
22
- "@digigov/react-core": "1.3.0-39d8f7d2",
21
+ "@digigov/ui": "1.2.0-dcbd7ded",
22
+ "@digigov/react-core": "1.3.0-dcbd7ded",
23
23
  "clsx": "1.1.1",
24
24
  "react": "^16.8.0 || ^17.0.0",
25
25
  "react-dom": "^16.8.0 || ^17.0.0"
@@ -5,7 +5,7 @@ import { CalculatedField, FieldProps } from '@digigov/form/Field/types';
5
5
  import { calculateField } from '@digigov/form/Field/utils';
6
6
  import Fieldset, { FieldsetCaption } from '@digigov/form/Fieldset';
7
7
  import { FieldSpec } from '@digigov/form/types';
8
- import { FieldsetLegend } from '@digigov/react-core';
8
+ import { FieldsetLegend } from '@digigov/react-core/FieldsetLegend';
9
9
  import { useTranslation } from '@digigov/ui/i18n';
10
10
 
11
11
  export interface FieldObjectProps extends Omit<FieldProps, 'key'> {
@@ -5,14 +5,13 @@ import FieldContainer from '@digigov/form/Field/FieldBaseContainer';
5
5
  import { ControlledFieldProps } from '@digigov/form/Field/types';
6
6
  import FieldObject from '@digigov/form/FieldObject';
7
7
  import AddObjects from '@digigov/form/MultiplicityField/add-objects';
8
- import {
9
- Card,
10
- CardContent,
11
- CardAction,
12
- Button,
13
- Heading,
14
- CardHeading,
15
- } from '@digigov/react-core';
8
+ import { Card } from '@digigov/react-core/Card';
9
+ import { CardContent } from '@digigov/react-core/CardContent';
10
+ import { CardAction } from '@digigov/react-core/CardAction';
11
+ import { Button } from '@digigov/react-core/Button';
12
+ import { Heading } from '@digigov/react-core/Heading';
13
+ import { CardHeading } from '@digigov/react-core/CardHeading';
14
+
16
15
 
17
16
  export interface MultiplicityProps
18
17
  extends Omit<ControlledFieldProps, 'value' | 'onChange' | 'error' | 'extra'> {
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { ControlledFieldProps } from '@digigov/form/Field/types';
3
3
  import { FieldOptionProps } from '@digigov/form/inputs/Label';
4
- import { Hint } from '@digigov/react-core';
4
+ import { Hint } from '@digigov/react-core/Hint';
5
5
  import UIAutoComplete, {
6
6
  AutoCompleteProps as UIAutoCompleteProps,
7
7
  } from '@digigov/ui/form/AutoComplete';
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import { Field } from '@digigov/form';
3
3
  import { ControlledFieldProps } from '@digigov/form/Field/types';
4
4
  import { FieldOptionProps } from '@digigov/form/inputs/Label';
5
- import { CheckboxConditional } from '@digigov/react-core';
5
+ import { CheckboxConditional } from '@digigov/react-core/CheckboxConditional';
6
6
  import CoreCheckboxes from '@digigov/react-core/Checkbox';
7
7
  import CheckboxItem from '@digigov/react-core/CheckboxItem';
8
8
  import Hint from '@digigov/react-core/Hint';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { useWatch } from 'react-hook-form';
3
3
  import { UncontrolledFieldProps } from '@digigov/form/Field/types';
4
- import { Hint } from '@digigov/react-core';
4
+ import { Hint } from '@digigov/react-core/Hint';
5
5
  import TextArea from '@digigov/react-core/TextArea';
6
6
  import TextInput from '@digigov/react-core/TextInput';
7
7
  import { useTranslation } from '@digigov/ui/i18n';
@@ -3,7 +3,7 @@ import { useWatch } from 'react-hook-form';
3
3
  import { Field } from '@digigov/form';
4
4
  import { UncontrolledFieldProps } from '@digigov/form/Field/types';
5
5
  import { FieldOptionProps } from '@digigov/form/inputs/Label';
6
- import { RadioConditional } from '@digigov/react-core';
6
+ import { RadioConditional } from '@digigov/react-core/RadioConditional';
7
7
  import Hint from '@digigov/react-core/Hint';
8
8
  import RadioContainer from '@digigov/react-core/RadioContainer';
9
9
  import RadioItem from '@digigov/react-core/RadioItem';