@digigov/ui 0.20.2 → 0.21.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/admin/Pagination/index.d.ts +20 -0
- package/admin/Pagination/index.js +27 -2
- package/app/Header/Header.stories.d.ts +6 -6
- package/app/Header/Header.stories.js +59 -64
- package/app/Header/HeaderLogo.d.ts +1 -1
- package/app/Header/HeaderSecondaryLogo.d.ts +3 -0
- package/app/Header/HeaderSecondaryLogo.js +19 -0
- package/app/Header/HeaderSubtitle.d.ts +3 -0
- package/app/Header/HeaderSubtitle.js +19 -0
- package/app/Header/__snapshots__/index.spec.tsx.snap +3 -0
- package/app/Header/__stories__/Default.d.ts +3 -0
- package/app/Header/__stories__/Default.js +31 -0
- package/app/Header/__stories__/WithNavigation.d.ts +3 -0
- package/app/Header/__stories__/WithNavigation.js +39 -0
- package/app/Header/__stories__/WithServiceName.d.ts +3 -0
- package/app/Header/__stories__/WithServiceName.js +33 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.d.ts +3 -0
- package/app/Header/__stories__/WithServiceNameAndLogo.js +38 -0
- package/app/Header/index.d.ts +3 -3
- package/app/Header/index.js +3 -3
- package/app/Header/index.mdx +4 -16
- package/app/Header/index.spec.js +2 -1
- package/app/I18nText.js +0 -2
- package/core/Button/Button.mdx +8 -3
- package/core/Button/Button.stories.d.ts +10 -10
- package/core/Button/__stories__/GroupingButtonsAndLinks.d.ts +0 -4
- package/core/Button/__stories__/GroupingButtonsAndLinks.js +4 -18
- package/core/Button/__stories__/Primary.d.ts +5 -1
- package/core/Button/__stories__/Primary.js +1 -1
- package/core/Button/__stories__/Secondary.d.ts +5 -1
- package/core/Button/__stories__/Warning.d.ts +2 -1
- package/core/index.d.ts +0 -1
- package/core/index.js +0 -14
- package/es/admin/Pagination/index.js +17 -0
- package/es/app/Header/Header.stories.js +6 -47
- package/es/app/Header/HeaderSecondaryLogo.js +3 -0
- package/es/app/Header/HeaderSubtitle.js +3 -0
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +3 -0
- package/es/app/Header/__stories__/Default.js +15 -0
- package/es/app/Header/__stories__/WithNavigation.js +20 -0
- package/es/app/Header/__stories__/WithServiceName.js +16 -0
- package/es/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/es/app/Header/index.js +3 -3
- package/es/app/Header/index.mdx +4 -16
- package/es/app/Header/index.spec.js +2 -1
- package/es/app/I18nText.js +0 -2
- package/es/core/Button/Button.mdx +8 -3
- package/es/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -14
- package/es/core/Button/__stories__/Primary.js +1 -1
- package/es/core/index.js +0 -1
- package/es/locales/el.js +2 -0
- package/es/locales/en.js +2 -0
- package/es/registry.js +251 -0
- package/es/themes/grnet.js +2 -1
- package/esm/admin/Pagination/index.js +17 -0
- package/esm/app/Header/Header.stories.js +6 -47
- package/esm/app/Header/HeaderSecondaryLogo.js +3 -0
- package/esm/app/Header/HeaderSubtitle.js +3 -0
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +3 -0
- package/esm/app/Header/__stories__/Default.js +15 -0
- package/esm/app/Header/__stories__/WithNavigation.js +20 -0
- package/esm/app/Header/__stories__/WithServiceName.js +16 -0
- package/esm/app/Header/__stories__/WithServiceNameAndLogo.js +20 -0
- package/esm/app/Header/index.js +3 -3
- package/esm/app/Header/index.mdx +4 -16
- package/esm/app/Header/index.spec.js +2 -1
- package/esm/app/I18nText.js +0 -2
- package/esm/core/Button/Button.mdx +8 -3
- package/esm/core/Button/__stories__/GroupingButtonsAndLinks.js +3 -14
- package/esm/core/Button/__stories__/Primary.js +1 -1
- package/esm/core/index.js +0 -1
- package/esm/index.js +1 -1
- package/esm/locales/el.js +2 -0
- package/esm/locales/en.js +2 -0
- package/esm/registry.js +251 -0
- package/esm/themes/grnet.js +2 -1
- package/locales/el.d.ts +2 -0
- package/locales/el.js +2 -0
- package/locales/en.d.ts +2 -0
- package/locales/en.js +2 -0
- package/package.json +3 -3
- package/registry.d.ts +121 -0
- package/registry.js +382 -0
- package/themes/grnet.js +2 -1
- package/core/PaginationLabel/index.d.ts +0 -21
- package/core/PaginationLabel/index.js +0 -32
- package/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/es/core/PaginationLabel/index.js +0 -18
- package/es/core/ServiceBadge/ServiceBadge.mdx +0 -0
- package/esm/core/PaginationLabel/index.js +0 -18
- package/esm/core/ServiceBadge/ServiceBadge.mdx +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Change Log - @digigov/ui
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 08 Jun 2022 12:26:07 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.21.0
|
|
6
|
+
Wed, 08 Jun 2022 12:26:07 GMT
|
|
7
|
+
|
|
8
|
+
### Minor changes
|
|
9
|
+
|
|
10
|
+
- add missing a11y props to commponents
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- add translation content text for each validation type
|
|
15
|
+
- move PaginationLabel component from core to admin ui path
|
|
4
16
|
|
|
5
17
|
## 0.20.2
|
|
6
18
|
Tue, 24 May 2022 09:13:18 GMT
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaginationLabelProps as CorePaginationLabelProps } from '@digigov/react-extensions/admin/PaginationLabel';
|
|
3
|
+
export interface PaginationLabelProps extends CorePaginationLabelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Use start to set the value of the start point of the results shown.
|
|
6
|
+
*/
|
|
7
|
+
start: number;
|
|
8
|
+
/**
|
|
9
|
+
* Use end to set the value of the end point of the results shown.
|
|
10
|
+
*/
|
|
11
|
+
end: number;
|
|
12
|
+
/**
|
|
13
|
+
* Use total to set the value of the total results.
|
|
14
|
+
*/
|
|
15
|
+
total: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* PaginationLabel component is used for placing the pagination results label.
|
|
19
|
+
*/
|
|
20
|
+
export declare const PaginationLabel: React.ForwardRefExoticComponent<Pick<PaginationLabelProps, "color" | "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "end" | "start" | "total"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1
21
|
export * from '@digigov/react-extensions/admin/Pagination';
|
|
2
22
|
export * from '@digigov/react-extensions/admin/PaginationList';
|
|
3
23
|
export * from '@digigov/react-extensions/admin/PaginationListItem';
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
3
5
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
8
|
-
var _exportNames = {
|
|
9
|
-
|
|
10
|
+
var _exportNames = {
|
|
11
|
+
PaginationLabel: true
|
|
12
|
+
};
|
|
13
|
+
exports["default"] = exports.PaginationLabel = void 0;
|
|
14
|
+
|
|
15
|
+
var _react = _interopRequireDefault(require("react"));
|
|
16
|
+
|
|
17
|
+
var _PaginationLabel = _interopRequireDefault(require("@digigov/react-extensions/admin/PaginationLabel"));
|
|
18
|
+
|
|
19
|
+
var _I18nText = require("@digigov/ui/app/I18nText");
|
|
10
20
|
|
|
11
21
|
var _Pagination = _interopRequireWildcard(require("@digigov/react-extensions/admin/Pagination"));
|
|
12
22
|
|
|
@@ -54,5 +64,20 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
54
64
|
|
|
55
65
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
56
66
|
|
|
67
|
+
/**
|
|
68
|
+
* PaginationLabel component is used for placing the pagination results label.
|
|
69
|
+
*/
|
|
70
|
+
var PaginationLabel = /*#__PURE__*/_react["default"].forwardRef(function PaginationLabel(_ref, ref) {
|
|
71
|
+
var start = _ref.start,
|
|
72
|
+
end = _ref.end,
|
|
73
|
+
total = _ref.total;
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement(_PaginationLabel["default"], {
|
|
75
|
+
ref: ref
|
|
76
|
+
}, /*#__PURE__*/_react["default"].createElement(_I18nText.I18nText, {
|
|
77
|
+
i18nKey: "pagination.label"
|
|
78
|
+
}, "Showing ", /*#__PURE__*/_react["default"].createElement("b", null, start), " to ", /*#__PURE__*/_react["default"].createElement("b", null, end), " of ", /*#__PURE__*/_react["default"].createElement("b", null, total), " results."));
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
exports.PaginationLabel = PaginationLabel;
|
|
57
82
|
var _default = _Pagination["default"];
|
|
58
83
|
exports["default"] = _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/src/Header").HeaderProps, "color" | "className" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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"> & import("react").RefAttributes<HTMLElement>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
10
|
+
export * from '@digigov/ui/app/Header/__stories__/Default';
|
|
11
|
+
export * from '@digigov/ui/app/Header/__stories__/WithServiceName';
|
|
12
|
+
export * from '@digigov/ui/app/Header/__stories__/WithServiceNameAndLogo';
|
|
13
|
+
export * from '@digigov/ui/app/Header/__stories__/WithNavigation';
|
|
@@ -2,80 +2,75 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
var _exportNames = {};
|
|
9
|
+
exports["default"] = void 0;
|
|
10
|
+
|
|
11
|
+
var _Header = _interopRequireDefault(require("@digigov/ui/app/Header"));
|
|
12
|
+
|
|
13
|
+
var _Default = require("@digigov/ui/app/Header/__stories__/Default");
|
|
14
|
+
|
|
15
|
+
Object.keys(_Default).forEach(function (key) {
|
|
16
|
+
if (key === "default" || key === "__esModule") return;
|
|
17
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
18
|
+
if (key in exports && exports[key] === _Default[key]) return;
|
|
19
|
+
Object.defineProperty(exports, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _Default[key];
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
});
|
|
17
26
|
|
|
18
|
-
|
|
27
|
+
var _WithServiceName = require("@digigov/ui/app/Header/__stories__/WithServiceName");
|
|
28
|
+
|
|
29
|
+
Object.keys(_WithServiceName).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
32
|
+
if (key in exports && exports[key] === _WithServiceName[key]) return;
|
|
33
|
+
Object.defineProperty(exports, key, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function get() {
|
|
36
|
+
return _WithServiceName[key];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
19
40
|
|
|
20
|
-
|
|
41
|
+
var _WithServiceNameAndLogo = require("@digigov/ui/app/Header/__stories__/WithServiceNameAndLogo");
|
|
42
|
+
|
|
43
|
+
Object.keys(_WithServiceNameAndLogo).forEach(function (key) {
|
|
44
|
+
if (key === "default" || key === "__esModule") return;
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
46
|
+
if (key in exports && exports[key] === _WithServiceNameAndLogo[key]) return;
|
|
47
|
+
Object.defineProperty(exports, key, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _WithServiceNameAndLogo[key];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
21
54
|
|
|
55
|
+
var _WithNavigation = require("@digigov/ui/app/Header/__stories__/WithNavigation");
|
|
56
|
+
|
|
57
|
+
Object.keys(_WithNavigation).forEach(function (key) {
|
|
58
|
+
if (key === "default" || key === "__esModule") return;
|
|
59
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
60
|
+
if (key in exports && exports[key] === _WithNavigation[key]) return;
|
|
61
|
+
Object.defineProperty(exports, key, {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function get() {
|
|
64
|
+
return _WithNavigation[key];
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
22
68
|
var _default = {
|
|
23
|
-
title: 'Digigov UI/
|
|
69
|
+
title: 'Digigov UI/app/Header',
|
|
24
70
|
component: _Header["default"],
|
|
25
71
|
parameters: {
|
|
26
72
|
// More on Story layout: https://storybook.js.org/docs/react/configure/story-layout
|
|
27
73
|
layout: 'fullscreen'
|
|
28
74
|
}
|
|
29
75
|
};
|
|
30
|
-
exports["default"] = _default;
|
|
31
|
-
|
|
32
|
-
var _ref = /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderSection, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderLogo, {
|
|
33
|
-
src: "https://www.gov.gr/gov_gr_logo.svg",
|
|
34
|
-
href: "#"
|
|
35
|
-
}))));
|
|
36
|
-
|
|
37
|
-
var Default = function Default() {
|
|
38
|
-
return _ref;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
exports.Default = Default;
|
|
42
|
-
|
|
43
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderSection, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderLogo, {
|
|
44
|
-
src: "https://www.gov.gr/gov_gr_logo.svg",
|
|
45
|
-
href: "#"
|
|
46
|
-
}), /*#__PURE__*/_react["default"].createElement(_Header.HeaderTitle, null, "Service name"))));
|
|
47
|
-
|
|
48
|
-
var WithServiceName = function WithServiceName() {
|
|
49
|
-
return _ref2;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
exports.WithServiceName = WithServiceName;
|
|
53
|
-
|
|
54
|
-
var _ref3 = /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderSection, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderLogo, {
|
|
55
|
-
src: "https://www.gov.gr/gov_gr_logo.svg",
|
|
56
|
-
href: "#"
|
|
57
|
-
}), /*#__PURE__*/_react["default"].createElement(_Header.HeaderSecondaryLogo, {
|
|
58
|
-
src: "https://dilosi.services.gov.gr/minedu-logo.svg",
|
|
59
|
-
href: "#"
|
|
60
|
-
}), /*#__PURE__*/_react["default"].createElement(_Header.HeaderTitle, null, "Service name"))));
|
|
61
|
-
|
|
62
|
-
var WithServiceLogoAndName = function WithServiceLogoAndName() {
|
|
63
|
-
return _ref3;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
exports.WithServiceLogoAndName = WithServiceLogoAndName;
|
|
67
|
-
|
|
68
|
-
var _ref4 = /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderSection, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_Header.HeaderLogo, {
|
|
69
|
-
src: "https://www.gov.gr/gov_gr_logo.svg",
|
|
70
|
-
href: "#"
|
|
71
|
-
}))));
|
|
72
|
-
|
|
73
|
-
var _ref5 = /*#__PURE__*/_react["default"].createElement(_reactCore.NavHorizontal, null, /*#__PURE__*/_react["default"].createElement(_reactCore.NavHorizontalList, null, /*#__PURE__*/_react["default"].createElement(_reactCore.NavHorizontalListItem, {
|
|
74
|
-
active: true
|
|
75
|
-
}, "Home"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavHorizontalListItem, null, "Form registration"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavHorizontalListItem, null, "News"), /*#__PURE__*/_react["default"].createElement(_reactCore.NavHorizontalListItem, null, "Contact")));
|
|
76
|
-
|
|
77
|
-
var WithNavigation = function WithNavigation() {
|
|
78
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _ref4, _ref5);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
exports.WithNavigation = WithNavigation;
|
|
76
|
+
exports["default"] = _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const HeaderLogo: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/HeaderLogo").HeaderLogoProps, "color" | "className" | "children" | "key" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "media" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "src"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
2
|
+
export declare const HeaderLogo: import("react").ForwardRefExoticComponent<Pick<import("@digigov/react-core/HeaderLogo").HeaderLogoProps, "color" | "className" | "children" | "key" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "media" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy" | "src" | "altText"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
3
3
|
export default HeaderLogo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "HeaderSecondaryLogo", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _HeaderSecondaryLogo["default"];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
exports["default"] = void 0;
|
|
15
|
+
|
|
16
|
+
var _HeaderSecondaryLogo = _interopRequireDefault(require("@digigov/react-core/HeaderSecondaryLogo"));
|
|
17
|
+
|
|
18
|
+
var _default = _HeaderSecondaryLogo["default"];
|
|
19
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "HeaderSubtitle", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _HeaderSubtitle["default"];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
exports["default"] = void 0;
|
|
15
|
+
|
|
16
|
+
var _HeaderSubtitle = _interopRequireDefault(require("@digigov/react-core/HeaderSubtitle"));
|
|
17
|
+
|
|
18
|
+
var _default = _HeaderSubtitle["default"];
|
|
19
|
+
exports["default"] = _default;
|