@digigov/form 0.6.1 → 0.6.4

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/Field/index.js +2 -1
  3. package/es/Field/index.js +2 -1
  4. package/es/index.js +10 -9
  5. package/es/inputs/Checkboxes/index.js +1 -3
  6. package/es/inputs/DateInput/index.js +1 -2
  7. package/es/inputs/FileInput/index.js +20 -9
  8. package/es/inputs/Input/index.js +1 -1
  9. package/es/inputs/Select/index.js +3 -8
  10. package/esm/Field/index.js +2 -1
  11. package/esm/index.js +12 -11
  12. package/esm/inputs/Checkboxes/index.js +1 -3
  13. package/esm/inputs/DateInput/index.js +1 -2
  14. package/esm/inputs/FileInput/index.js +20 -9
  15. package/esm/inputs/Input/index.js +1 -1
  16. package/esm/inputs/Select/index.js +3 -8
  17. package/index.js +12 -12
  18. package/inputs/Checkboxes/index.js +2 -1
  19. package/inputs/DateInput/index.js +2 -1
  20. package/inputs/FileInput/index.js +23 -9
  21. package/inputs/Input/index.js +2 -1
  22. package/inputs/Select/index.js +3 -7
  23. package/libs/form/src/index.d.ts +2 -2
  24. package/libs/form/src/inputs/Checkboxes/index.d.ts +1 -1
  25. package/libs/form/src/inputs/DateInput/index.d.ts +1 -1
  26. package/libs/form/src/inputs/FileInput/index.d.ts +1 -1
  27. package/libs/form/src/inputs/Input/index.d.ts +1 -1
  28. package/libs/ui/src/app/CopyToClipboard.d.ts +8 -0
  29. package/libs/ui/src/app/I18nText.d.ts +10 -0
  30. package/libs/ui/src/app/PhaseBannerHeader.d.ts +8 -0
  31. package/libs/ui/src/app/i18n.d.ts +2 -0
  32. package/libs/ui/src/app/index.d.ts +3 -0
  33. package/libs/ui/src/core/Accordion/index.d.ts +4 -2
  34. package/libs/ui/src/core/Card/index.d.ts +2 -0
  35. package/libs/ui/src/core/FileUpload/index.d.ts +3 -0
  36. package/libs/ui/src/core/ServiceBadge/index.d.ts +0 -1
  37. package/libs/ui/src/core/SvgIcon/index.d.ts +9 -0
  38. package/libs/ui/src/core/Table/index.d.ts +2 -0
  39. package/libs/ui/src/core/index.d.ts +2 -0
  40. package/libs/ui/src/locales/el.d.ts +10 -0
  41. package/libs-ui/react-core/src/AccordionSection/index.d.ts +1 -0
  42. package/libs-ui/react-core/src/AccordionSectionHeader/index.d.ts +1 -1
  43. package/libs-ui/react-core/src/AccordionSectionSummary/index.d.ts +9 -0
  44. package/libs-ui/react-core/src/AccordionSectionSummaryHeading/index.d.ts +9 -0
  45. package/libs-ui/react-core/src/BurgerIcon/index.d.ts +28 -0
  46. package/libs-ui/react-core/src/Card/index.d.ts +14 -2
  47. package/libs-ui/react-core/src/CloseIcon/index.d.ts +16 -0
  48. package/libs-ui/react-core/src/List/index.d.ts +2 -2
  49. package/libs-ui/react-core/src/MoreVertIcon/index.d.ts +15 -0
  50. package/libs-ui/react-core/src/PhaseBannerHeaderContainer/index.d.ts +8 -0
  51. package/libs-ui/react-core/src/TableContainer/index.d.ts +13 -0
  52. package/libs-ui/react-core/src/TableNoDataRow/index.d.ts +10 -0
  53. package/libs-ui/react-core/src/UncheckIcon/index.d.ts +15 -0
  54. package/libs-ui/react-extensions/src/admin/CopyToClipboardMessage/index.d.ts +21 -0
  55. package/package.json +3 -3
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ declare type TdElementAttributes = JSX.IntrinsicElements['td'];
3
+ export interface TableNoDataRowProps extends TdElementAttributes {
4
+ }
5
+ /**
6
+ * Use TableNoDataRow inside the Table component when there is no data to show.
7
+ * you can use colSpan prop attribute to expand the td width
8
+ */
9
+ export declare const TableNoDataRow: React.ForwardRefExoticComponent<Pick<TableNoDataRowProps, "className" | "style" | "abbr" | "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" | "height" | "width" | "align" | "colSpan" | "headers" | "rowSpan" | "scope" | "valign"> & React.RefAttributes<HTMLTableCellElement>>;
10
+ export default TableNoDataRow;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { SvgIconProps } from '@digigov/react-core/SvgIcon';
3
+ export interface UnCheckIconProps extends SvgIconProps {
4
+ /**
5
+ * ref is optional.
6
+ * ref prop declares the reference of the svg icon component.
7
+ * It can be used to to access the DOM element and the React element.
8
+ */
9
+ ref?: React.Ref<SVGSVGElement>;
10
+ }
11
+ /**
12
+ * Use UnunCheckIcon component when you need a uncheck/decline icon.
13
+ */
14
+ export declare const UnCheckIcon: React.FC<UnCheckIconProps>;
15
+ export default UnCheckIcon;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ declare type DivElementAttributes = JSX.IntrinsicElements['div'];
3
+ export interface CopyToClipboardMessageProps extends DivElementAttributes {
4
+ /**
5
+ * 'tooltip' is used when you want to show the message inside a tooltip.
6
+ * 'banner' is used when you want to show the message inside a banner.
7
+ */
8
+ variant?: 'tooltip' | 'banner';
9
+ /**
10
+ * enabled is a boolean prop passed from the CopyToClipboard component.
11
+ * When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.
12
+ * When it's false it resets the animations of the CopyToClipboardMessage.
13
+ */
14
+ enabled?: boolean;
15
+ }
16
+ /**
17
+ * CopyToClipboardMessage is used to show a message that a text is being copied.
18
+ * This component is used inside the CopyToClipboard component that lies inside the digigov/ui library
19
+ */
20
+ export declare const CopyToClipboardMessage: React.ForwardRefExoticComponent<Pick<CopyToClipboardMessageProps, "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" | "enabled" | "variant"> & React.RefAttributes<HTMLDivElement>>;
21
+ export default CopyToClipboardMessage;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@digigov/form",
3
- "version": "0.6.1",
3
+ "version": "0.6.4",
4
4
  "description": "@digigov form builder",
5
5
  "author": "GRNET Developers <devs@lists.grnet.gr>",
6
- "license": "MIT",
6
+ "license": "BSD-2-Clause",
7
7
  "main": "./index.js",
8
8
  "module": "./esm/index.js",
9
9
  "publishConfig": {
@@ -17,7 +17,7 @@
17
17
  "dayjs": "1.10.4"
18
18
  },
19
19
  "peerDependencies": {
20
- "@digigov/ui": "0.15.1",
20
+ "@digigov/ui": "0.20.0",
21
21
  "@material-ui/core": "4.11.3",
22
22
  "@material-ui/icons": "4.11.2",
23
23
  "clsx": "1.1.1",