@digigov/nextjs 1.1.0-2a507fd6 → 1.1.0
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 +13 -1
- package/cjs/Link/index.js +1 -1
- package/index.js +1 -1
- package/package.json +3 -2
- package/libs/ui/src/app/App.d.ts +0 -7
- package/libs/ui/src/i18n/index.d.ts +0 -12
- package/libs/ui/src/i18n/locales/el.d.ts +0 -110
- package/libs/ui/src/navigation/Link/index.d.ts +0 -13
- package/libs-ui/react-core/src/Base/index.d.ts +0 -66
- package/libs-ui/react-core/src/LinkBase/index.d.ts +0 -16
- /package/{libs/nextjs/src/App.d.ts → App.d.ts} +0 -0
- /package/{libs/nextjs/src/Document.d.ts → Document.d.ts} +0 -0
- /package/{libs/nextjs/src/Image.d.ts → Image.d.ts} +0 -0
- /package/{libs/nextjs/src/Link.d.ts → Link.d.ts} +0 -0
- /package/{libs/nextjs/src/hooks.d.ts → hooks.d.ts} +0 -0
- /package/{libs/nextjs/src/i18n.d.ts → i18n.d.ts} +0 -0
- /package/{libs/nextjs/src/index.d.ts → index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @digigov/nextjs
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 29 Jan 2024 10:46:50 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 1.1.0
|
|
6
|
+
Mon, 29 Jan 2024 10:46:50 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- Upgrade typescript to v5
|
|
11
|
+
|
|
12
|
+
## 1.0.1
|
|
13
|
+
Tue, 19 Dec 2023 15:00:14 GMT
|
|
14
|
+
|
|
15
|
+
_Version update only_
|
|
4
16
|
|
|
5
17
|
## 1.0.0
|
|
6
18
|
Fri, 15 Dec 2023 15:23:56 GMT
|
package/cjs/Link/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _link = _interopRequireDefault(require("next/link"));
|
|
13
13
|
var _router = require("next/router");
|
|
14
|
-
var _LinkBase = _interopRequireDefault(require("@digigov/react-core/LinkBase"));
|
|
14
|
+
var _LinkBase = _interopRequireDefault(require("@digigov/react-core/cjs/LinkBase"));
|
|
15
15
|
var _excluded = ["href"];
|
|
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; }
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/nextjs",
|
|
3
|
-
"version": "1.1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "next specific utilities for @digigov apps",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
7
|
"main": "./cjs/index.js",
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@digigov/ui": "1.1.0
|
|
10
|
+
"@digigov/ui": "1.1.0",
|
|
11
|
+
"@digigov/react-core": "1.1.0",
|
|
11
12
|
"@material-ui/core": "4.11.3",
|
|
12
13
|
"@material-ui/icons": "4.11.2",
|
|
13
14
|
"clsx": "1.1.1",
|
package/libs/ui/src/app/App.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface I18NContextProps {
|
|
3
|
-
Trans?: any;
|
|
4
|
-
t: (str: string, context?: any) => string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
i18n?: any;
|
|
7
|
-
}
|
|
8
|
-
export declare const defaultTranslate: (key: string, context?: Record<string, any>) => string;
|
|
9
|
-
export declare const I18NContext: React.Context<I18NContextProps>;
|
|
10
|
-
export declare const I18NProvider: React.FC<I18NContextProps>;
|
|
11
|
-
export declare const useTranslation: () => I18NContextProps;
|
|
12
|
-
export default I18NProvider;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
form: {
|
|
3
|
-
label: {
|
|
4
|
-
day: string;
|
|
5
|
-
month: string;
|
|
6
|
-
year: string;
|
|
7
|
-
};
|
|
8
|
-
error: {
|
|
9
|
-
required: string;
|
|
10
|
-
number: string;
|
|
11
|
-
positive_integer_number: string;
|
|
12
|
-
string: string;
|
|
13
|
-
email: string;
|
|
14
|
-
afm: string;
|
|
15
|
-
file_size: string;
|
|
16
|
-
image_size: string;
|
|
17
|
-
mobile_phone: string;
|
|
18
|
-
phone_number: string;
|
|
19
|
-
landline: string;
|
|
20
|
-
uuid4: string;
|
|
21
|
-
iban: string;
|
|
22
|
-
postalCode: string;
|
|
23
|
-
'needs-more': string;
|
|
24
|
-
array: {
|
|
25
|
-
min: string;
|
|
26
|
-
max: string;
|
|
27
|
-
length: string;
|
|
28
|
-
};
|
|
29
|
-
date: {
|
|
30
|
-
invalid: string;
|
|
31
|
-
earlier_than: string;
|
|
32
|
-
later_than: string;
|
|
33
|
-
};
|
|
34
|
-
otp: {
|
|
35
|
-
invalid: string;
|
|
36
|
-
less_than: string;
|
|
37
|
-
};
|
|
38
|
-
image: {
|
|
39
|
-
image_dimension_size: string;
|
|
40
|
-
};
|
|
41
|
-
text: {
|
|
42
|
-
more_than: string;
|
|
43
|
-
less_than: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
info: {
|
|
47
|
-
text: {
|
|
48
|
-
you_have: string;
|
|
49
|
-
need_at_least: string;
|
|
50
|
-
characters: string;
|
|
51
|
-
character: string;
|
|
52
|
-
remaining: string;
|
|
53
|
-
too_many: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
button: {
|
|
58
|
-
start: string;
|
|
59
|
-
login: string;
|
|
60
|
-
back: string;
|
|
61
|
-
continue: string;
|
|
62
|
-
search_ref: string;
|
|
63
|
-
scan: string;
|
|
64
|
-
save: string;
|
|
65
|
-
logout: string;
|
|
66
|
-
submit: string;
|
|
67
|
-
delete: string;
|
|
68
|
-
};
|
|
69
|
-
footer: {
|
|
70
|
-
created_by: string;
|
|
71
|
-
grnet: string;
|
|
72
|
-
created_for: string;
|
|
73
|
-
mindigital: string;
|
|
74
|
-
using: string;
|
|
75
|
-
open_source: string;
|
|
76
|
-
creative_commons: string;
|
|
77
|
-
};
|
|
78
|
-
notfound: {
|
|
79
|
-
page_not_found: string;
|
|
80
|
-
wrong_key_address: string;
|
|
81
|
-
wrong_cp_address: string;
|
|
82
|
-
service_contact: string;
|
|
83
|
-
};
|
|
84
|
-
outdated: {
|
|
85
|
-
mobile: string;
|
|
86
|
-
web: string;
|
|
87
|
-
};
|
|
88
|
-
pagination: {
|
|
89
|
-
show: string;
|
|
90
|
-
to: string;
|
|
91
|
-
of: string;
|
|
92
|
-
results: string;
|
|
93
|
-
label: string;
|
|
94
|
-
};
|
|
95
|
-
upload: {
|
|
96
|
-
file: string;
|
|
97
|
-
choose_file: string;
|
|
98
|
-
change_file: string;
|
|
99
|
-
no_file: string;
|
|
100
|
-
reset_file: string;
|
|
101
|
-
image: string;
|
|
102
|
-
no_image: string;
|
|
103
|
-
change_image: string;
|
|
104
|
-
choose_image: string;
|
|
105
|
-
};
|
|
106
|
-
'copy-to-clipboard': {
|
|
107
|
-
message: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import LinkBase, { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
3
|
-
export interface LinkComponentContextProps {
|
|
4
|
-
component: React.ElementType<LinkProps>;
|
|
5
|
-
}
|
|
6
|
-
export declare const CommonLink: React.FC<LinkProps>;
|
|
7
|
-
export declare const LinkProvider: React.FC<LinkComponentContextProps>;
|
|
8
|
-
export interface LinkProps extends LinkBaseProps {
|
|
9
|
-
ref?: React.Ref<HTMLAnchorElement>;
|
|
10
|
-
}
|
|
11
|
-
declare const Link: React.ExoticComponent<LinkProps>;
|
|
12
|
-
export default Link;
|
|
13
|
-
export { Link, LinkBase };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type AsProp<C extends React.ElementType> = {
|
|
3
|
-
as?: C;
|
|
4
|
-
};
|
|
5
|
-
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
6
|
-
type PolymorphicComponentProp<C extends React.ElementType, Props = Record<string, unknown>> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
7
|
-
type PolymorphicComponentPropWithRef<C extends React.ElementType, Props = Record<string, unknown>> = PolymorphicComponentProp<C, Props> & {
|
|
8
|
-
ref?: any;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
12
|
-
*/
|
|
13
|
-
export type BaseProps<C extends React.ElementType> = PolymorphicComponentPropWithRef<C, {
|
|
14
|
-
/** margin is optional. It has not a default value. */
|
|
15
|
-
margin?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
16
|
-
/** marginTop is optional. It has not a default value. */
|
|
17
|
-
marginTop?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
18
|
-
/** marginBottom is optional. It has not a default value. */
|
|
19
|
-
marginBottom?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
20
|
-
/** marginLeft is optional. It has not a default value. */
|
|
21
|
-
marginLeft?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
22
|
-
/** marginRight is optional. It has not a default value. */
|
|
23
|
-
marginRight?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
24
|
-
/** padding is optional. It has not a default value. */
|
|
25
|
-
padding?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
26
|
-
/** paddingTop is optional. It has not a default value. */
|
|
27
|
-
paddingTop?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
28
|
-
/** paddingBottom is optional. It has not a default value. */
|
|
29
|
-
paddingBottom?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
30
|
-
/** paddingLeft is optional. It has not a default value. */
|
|
31
|
-
paddingLeft?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
32
|
-
/** paddingRight is optional. It has not a default value. */
|
|
33
|
-
paddingRight?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
34
|
-
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
35
|
-
printHidden?: boolean;
|
|
36
|
-
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
37
|
-
printVisible?: 'block' | 'inline';
|
|
38
|
-
/** Components will be hidden at all screen sizes. */
|
|
39
|
-
hidden?: boolean;
|
|
40
|
-
/** Components will be hidden from 'xs' screen size and up. */
|
|
41
|
-
xsUpHidden?: boolean;
|
|
42
|
-
/** Components will be hidden from 'sm' screen size and up. */
|
|
43
|
-
smUpHidden?: boolean;
|
|
44
|
-
/** Components will be hidden from 'md' screen size and up. */
|
|
45
|
-
mdUpHidden?: boolean;
|
|
46
|
-
/** Components will be hidden from 'lg' screen size and up. */
|
|
47
|
-
lgUpHidden?: boolean;
|
|
48
|
-
/** Components will be hidden from 'xl' screen size and up. */
|
|
49
|
-
xlUpHidden?: boolean;
|
|
50
|
-
/** Components will be hidden between xs and sm screen size. */
|
|
51
|
-
xsHidden?: boolean;
|
|
52
|
-
/** Components will be hidden between sm and md screen size. */
|
|
53
|
-
smHidden?: boolean;
|
|
54
|
-
/** Components will be hidden between md and lg screen size. */
|
|
55
|
-
mdHidden?: boolean;
|
|
56
|
-
/** Components will be hidden between lg and xl screen size. */
|
|
57
|
-
lgHidden?: boolean;
|
|
58
|
-
/** Components will be hidden between xl and 2xl screen size. */
|
|
59
|
-
xlHidden?: boolean;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* This is the type used in the type annotation for the component
|
|
63
|
-
*/
|
|
64
|
-
type BaseComponent = <C extends React.ElementType = 'span'>(props: BaseProps<C>) => React.ReactElement | null;
|
|
65
|
-
export declare const Base: BaseComponent;
|
|
66
|
-
export default Base;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface LinkBaseProps extends BaseProps<'a'> {
|
|
4
|
-
/**
|
|
5
|
-
* underline is optional. The default value is 'true'.
|
|
6
|
-
* Make it 'false' only if the context tells the user that the text is a link, even without the underline.
|
|
7
|
-
* @value true
|
|
8
|
-
* @value false
|
|
9
|
-
*/
|
|
10
|
-
underline?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* This component defines a hyperlink, which is used to link from one page to another.
|
|
14
|
-
*/
|
|
15
|
-
export declare const LinkBase: React.ForwardRefExoticComponent<Pick<LinkBaseProps, "slot" | "style" | "title" | "as" | "className" | "color" | "id" | "lang" | "media" | "target" | "type" | "role" | "tabIndex" | "href" | "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" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "underline"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
16
|
-
export default LinkBase;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|