@digigov/form 0.6.2 → 0.6.3

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/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/form
2
2
 
3
- This log was last generated on Thu, 14 Apr 2022 12:32:51 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 18 Apr 2022 13:00:33 GMT and should not be manually modified.
4
+
5
+ ## 0.6.3
6
+ Mon, 18 Apr 2022 13:00:33 GMT
7
+
8
+ ### Patches
9
+
10
+ - Do a minor refactor in React components to generate documentation more easily
4
11
 
5
12
  ## 0.6.2
6
13
  Thu, 14 Apr 2022 12:32:51 GMT
@@ -4,8 +4,7 @@ import { useTranslation } from '@digigov/ui/app/i18n';
4
4
  import CoreCheckboxes from '@digigov/react-core/Checkbox';
5
5
  import CheckboxItem from '@digigov/react-core/CheckboxItem';
6
6
  import Hint from '@digigov/react-core/Hint';
7
-
8
- var Checkboxes = function Checkboxes(_ref) {
7
+ export var Checkboxes = function Checkboxes(_ref) {
9
8
  var name = _ref.name,
10
9
  onChange = _ref.onChange,
11
10
  value = _ref.value,
@@ -52,5 +51,4 @@ var Checkboxes = function Checkboxes(_ref) {
52
51
  }, option), option.label && option.label.primary && t(option.label.primary) || value, option.label && option.label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(option.label.secondary)));
53
52
  }));
54
53
  };
55
-
56
54
  export default Checkboxes;
@@ -93,7 +93,7 @@ var DatePart = function DatePart(_ref) {
93
93
  return /*#__PURE__*/React.createElement(CoreDateInputItem, props, label);
94
94
  };
95
95
 
96
- var DateInput = function DateInput(_ref2) {
96
+ export var DateInput = function DateInput(_ref2) {
97
97
  var name = _ref2.name,
98
98
  type = _ref2.type,
99
99
  props = _objectWithoutProperties(_ref2, _excluded2);
@@ -145,5 +145,4 @@ var DateInput = function DateInput(_ref2) {
145
145
  disabled: props.disabled
146
146
  }));
147
147
  };
148
-
149
148
  export default DateInput;
@@ -5,7 +5,7 @@ import { useTranslation } from '@digigov/ui/app/i18n';
5
5
  import Paragraph from '@digigov/ui/typography/Paragraph';
6
6
  import CoreHint from '@digigov/react-core/Hint';
7
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
- var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
8
+ export var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
9
9
  var name = _ref.name,
10
10
  _ref$extra = _ref.extra,
11
11
  extra = _ref$extra === void 0 ? {} : _ref$extra,
@@ -10,7 +10,7 @@ var TYPES_MAP = {
10
10
  text: 'text',
11
11
  date: 'date'
12
12
  };
13
- var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
13
+ export var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
14
14
  var name = _ref.name,
15
15
  type = _ref.type,
16
16
  extra = _ref.extra,
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.6.2
1
+ /** @license Digigov v0.6.3
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -4,8 +4,7 @@ import { useTranslation } from '@digigov/ui/app/i18n';
4
4
  import CoreCheckboxes from '@digigov/react-core/Checkbox';
5
5
  import CheckboxItem from '@digigov/react-core/CheckboxItem';
6
6
  import Hint from '@digigov/react-core/Hint';
7
-
8
- var Checkboxes = function Checkboxes(_ref) {
7
+ export var Checkboxes = function Checkboxes(_ref) {
9
8
  var name = _ref.name,
10
9
  onChange = _ref.onChange,
11
10
  value = _ref.value,
@@ -52,5 +51,4 @@ var Checkboxes = function Checkboxes(_ref) {
52
51
  }, option), option.label && option.label.primary && t(option.label.primary) || value, option.label && option.label.secondary && /*#__PURE__*/React.createElement(Hint, null, t(option.label.secondary)));
53
52
  }));
54
53
  };
55
-
56
54
  export default Checkboxes;
@@ -93,7 +93,7 @@ var DatePart = function DatePart(_ref) {
93
93
  return /*#__PURE__*/React.createElement(CoreDateInputItem, props, label);
94
94
  };
95
95
 
96
- var DateInput = function DateInput(_ref2) {
96
+ export var DateInput = function DateInput(_ref2) {
97
97
  var name = _ref2.name,
98
98
  type = _ref2.type,
99
99
  props = _objectWithoutProperties(_ref2, _excluded2);
@@ -145,5 +145,4 @@ var DateInput = function DateInput(_ref2) {
145
145
  disabled: props.disabled
146
146
  }));
147
147
  };
148
-
149
148
  export default DateInput;
@@ -5,7 +5,7 @@ import { useTranslation } from '@digigov/ui/app/i18n';
5
5
  import Paragraph from '@digigov/ui/typography/Paragraph';
6
6
  import CoreHint from '@digigov/react-core/Hint';
7
7
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
- var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
8
+ export var FileInput = /*#__PURE__*/React.forwardRef(function FileInput(_ref, ref) {
9
9
  var name = _ref.name,
10
10
  _ref$extra = _ref.extra,
11
11
  extra = _ref$extra === void 0 ? {} : _ref$extra,
@@ -10,7 +10,7 @@ var TYPES_MAP = {
10
10
  text: 'text',
11
11
  date: 'date'
12
12
  };
13
- var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
13
+ export var Input = /*#__PURE__*/React.forwardRef(function WrappedInput(_ref, ref) {
14
14
  var name = _ref.name,
15
15
  type = _ref.type,
16
16
  extra = _ref.extra,
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports["default"] = exports.Checkboxes = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -67,5 +67,6 @@ var Checkboxes = function Checkboxes(_ref) {
67
67
  }));
68
68
  };
69
69
 
70
+ exports.Checkboxes = Checkboxes;
70
71
  var _default = Checkboxes;
71
72
  exports["default"] = _default;
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports["default"] = void 0;
10
+ exports["default"] = exports.DateInput = void 0;
11
11
 
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
 
@@ -169,5 +169,6 @@ var DateInput = function DateInput(_ref2) {
169
169
  }));
170
170
  };
171
171
 
172
+ exports.DateInput = DateInput;
172
173
  var _default = DateInput;
173
174
  exports["default"] = _default;
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports["default"] = void 0;
10
+ exports["default"] = exports.FileInput = void 0;
11
11
 
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
 
@@ -66,5 +66,6 @@ var FileInput = /*#__PURE__*/_react["default"].forwardRef(function FileInput(_re
66
66
  }), files.length ? t('upload.change_file') : t('upload.choose_file')));
67
67
  });
68
68
 
69
+ exports.FileInput = FileInput;
69
70
  var _default = FileInput;
70
71
  exports["default"] = _default;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports["default"] = void 0;
8
+ exports["default"] = exports.Input = void 0;
9
9
 
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
11
 
@@ -63,5 +63,6 @@ var Input = /*#__PURE__*/_react["default"].forwardRef(function WrappedInput(_ref
63
63
  }
64
64
  });
65
65
 
66
+ exports.Input = Input;
66
67
  var _default = Input;
67
68
  exports["default"] = _default;
@@ -8,5 +8,5 @@ export interface CheckboxesProps extends Omit<ControlledFieldProps, 'extra' | 'v
8
8
  options: Array<FieldOptionProps>;
9
9
  };
10
10
  }
11
- declare const Checkboxes: React.FC<CheckboxesProps>;
11
+ export declare const Checkboxes: React.FC<CheckboxesProps>;
12
12
  export default Checkboxes;
@@ -6,7 +6,7 @@ export interface DateInputProps extends Omit<UncontrolledFieldProps, 'extra'> {
6
6
  min?: string;
7
7
  };
8
8
  }
9
- declare const DateInput: ({ name, type, ...props }: {
9
+ export declare const DateInput: ({ name, type, ...props }: {
10
10
  [x: string]: any;
11
11
  name: any;
12
12
  type: any;
@@ -8,5 +8,5 @@ export interface FileInputProps extends Omit<UncontrolledFieldProps, 'extra'> {
8
8
  maxSize?: number;
9
9
  };
10
10
  }
11
- declare const FileInput: React.FC<any>;
11
+ export declare const FileInput: React.FC<any>;
12
12
  export default FileInput;
@@ -8,5 +8,5 @@ export interface InputProps extends Omit<UncontrolledFieldProps, 'extra'> {
8
8
  rows?: any;
9
9
  };
10
10
  }
11
- declare const Input: React.ExoticComponent<InputProps>;
11
+ export declare const Input: React.ExoticComponent<InputProps>;
12
12
  export default Input;
@@ -9,6 +9,7 @@ export interface AccordionSectionProps extends DivElementAttributes {
9
9
  }
10
10
  /**
11
11
  * AccordionSection should be inside the Accordion component.
12
+ *
12
13
  * Inside this component must place the AccordionSectionHeader and the AccordionSectionContent components.
13
14
  */
14
15
  export declare const AccordionSection: React.ForwardRefExoticComponent<Pick<AccordionSectionProps, "className" | "style" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "open"> & React.RefAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/form",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "@digigov form builder",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "dayjs": "1.10.4"
18
18
  },
19
19
  "peerDependencies": {
20
- "@digigov/ui": "0.16.0",
20
+ "@digigov/ui": "0.17.0",
21
21
  "@material-ui/core": "4.11.3",
22
22
  "@material-ui/icons": "4.11.2",
23
23
  "clsx": "1.1.1",