@digigov/nextjs 0.6.23 → 1.0.0-079f34f3d
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/App.js +2 -2
- package/README.md +1 -1
- package/es/App.js +2 -2
- package/esm/App.js +2 -2
- package/esm/index.js +1 -1
- package/libs/nextjs/src/Link.d.ts +1 -1
- package/libs-ui/react-core/src/Base/index.d.ts +3 -0
- package/libs-ui/react-core/src/LinkBase/index.d.ts +5 -3
- package/package.json +2 -2
- package/src/App.tsx +2 -2
- package/src/Link.tsx +1 -1
- /package/libs/ui/src/{app/i18n.d.ts → i18n/index.d.ts} +0 -0
- /package/libs/ui/src/{locales → i18n/locales}/el.d.ts +0 -0
- /package/libs/ui/src/{core → navigation}/Link/index.d.ts +0 -0
package/App.js
CHANGED
|
@@ -25,13 +25,13 @@ var _app = _interopRequireDefault(require("next/app"));
|
|
|
25
25
|
|
|
26
26
|
var _head = _interopRequireDefault(require("next/head"));
|
|
27
27
|
|
|
28
|
-
var _Link = require("@digigov/ui/
|
|
28
|
+
var _Link = require("@digigov/ui/navigation/Link");
|
|
29
29
|
|
|
30
30
|
var _Link2 = _interopRequireDefault(require("@digigov/nextjs/Link"));
|
|
31
31
|
|
|
32
32
|
var _dynamic = _interopRequireDefault(require("next/dynamic"));
|
|
33
33
|
|
|
34
|
-
var _i18n = require("@digigov/ui/
|
|
34
|
+
var _i18n = require("@digigov/ui/i18n");
|
|
35
35
|
|
|
36
36
|
var _reactI18next = require("react-i18next");
|
|
37
37
|
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Included,
|
|
|
7
7
|
* common `_app` and `_document` components with support for,
|
|
8
8
|
- SSR style handling.
|
|
9
9
|
- `@digigov/ui/app/App` component.
|
|
10
|
-
- use `@digigov/ui/
|
|
10
|
+
- use `@digigov/ui/navigation/Link/LinkProvider` to set `next/Link` as the default
|
|
11
11
|
Link component across app.
|
|
12
12
|
|
|
13
13
|
* react-i18next initializer
|
package/es/App.js
CHANGED
|
@@ -11,10 +11,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import App from 'next/app';
|
|
13
13
|
import Head from 'next/head';
|
|
14
|
-
import { LinkProvider } from '@digigov/ui/
|
|
14
|
+
import { LinkProvider } from '@digigov/ui/navigation/Link';
|
|
15
15
|
import NextLink from '@digigov/nextjs/Link';
|
|
16
16
|
import dynamic from 'next/dynamic';
|
|
17
|
-
import { I18NProvider } from '@digigov/ui/
|
|
17
|
+
import { I18NProvider } from '@digigov/ui/i18n';
|
|
18
18
|
import { withTranslation } from 'react-i18next';
|
|
19
19
|
var DigiGOVApp = dynamic(function () {
|
|
20
20
|
return import('@digigov/ui/app/App');
|
package/esm/App.js
CHANGED
|
@@ -11,10 +11,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import App from 'next/app';
|
|
13
13
|
import Head from 'next/head';
|
|
14
|
-
import { LinkProvider } from '@digigov/ui/
|
|
14
|
+
import { LinkProvider } from '@digigov/ui/navigation/Link';
|
|
15
15
|
import NextLink from '@digigov/nextjs/Link';
|
|
16
16
|
import dynamic from 'next/dynamic';
|
|
17
|
-
import { I18NProvider } from '@digigov/ui/
|
|
17
|
+
import { I18NProvider } from '@digigov/ui/i18n';
|
|
18
18
|
import { withTranslation } from 'react-i18next';
|
|
19
19
|
var DigiGOVApp = dynamic(function () {
|
|
20
20
|
return import('@digigov/ui/app/App');
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LinkProps } from '@digigov/ui/
|
|
2
|
+
import { LinkProps } from '@digigov/ui/navigation/Link';
|
|
3
3
|
declare const _default: React.ForwardRefExoticComponent<Pick<LinkProps, "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>>;
|
|
4
4
|
export default _default;
|
|
@@ -33,7 +33,10 @@ export declare type BaseProps<C extends React.ElementType> = PolymorphicComponen
|
|
|
33
33
|
paddingRight?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
34
34
|
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
35
35
|
printHidden?: boolean;
|
|
36
|
+
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
36
37
|
printVisible?: 'block' | 'inline';
|
|
38
|
+
/** Components will be hidden at all screen sizes. */
|
|
39
|
+
hidden?: boolean;
|
|
37
40
|
/** Components will be hidden from 'xs' screen size and up. */
|
|
38
41
|
xsUpHidden?: boolean;
|
|
39
42
|
/** Components will be hidden from 'sm' screen size and up. */
|
|
@@ -2,9 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
3
|
export interface LinkBaseProps extends BaseProps<'a'> {
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
*/
|
|
8
10
|
underline?: boolean;
|
|
9
11
|
}
|
|
10
12
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/nextjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-079f34f3d",
|
|
4
4
|
"description": "next specific utilities for @digigov apps",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"main": "dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@digigov/ui": "0.
|
|
13
|
+
"@digigov/ui": "1.0.0-079f34f3d",
|
|
14
14
|
"@material-ui/core": "4.11.3",
|
|
15
15
|
"@material-ui/icons": "4.11.2",
|
|
16
16
|
"clsx": "1.1.1",
|
package/src/App.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import App from 'next/app';
|
|
3
3
|
import Head from 'next/head';
|
|
4
|
-
import { LinkProvider } from '@digigov/ui/
|
|
4
|
+
import { LinkProvider } from '@digigov/ui/navigation/Link';
|
|
5
5
|
import NextLink from '@digigov/nextjs/Link';
|
|
6
6
|
import dynamic from 'next/dynamic';
|
|
7
7
|
import type { AppProps } from '@digigov/ui/app/App';
|
|
8
|
-
import { I18NProvider } from '@digigov/ui/
|
|
8
|
+
import { I18NProvider } from '@digigov/ui/i18n';
|
|
9
9
|
import { withTranslation, WithTranslation } from 'react-i18next';
|
|
10
10
|
import { i18n } from 'i18next';
|
|
11
11
|
|
package/src/Link.tsx
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|