@digigov/ui 0.9.0 → 0.10.1
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 +28 -1
- package/api/APIErrors.js +1 -1
- package/app/Header/HeaderSection.js +1 -1
- package/app/NotFound/index.js +2 -10
- package/app/PageTitle.js +1 -1
- package/core/Accordion/index.js +3 -3
- package/core/Button/BackButton.js +1 -1
- package/core/Divider/index.js +1 -1
- package/core/ServiceBadge/index.js +1 -1
- package/es/api/APIErrors.js +1 -1
- package/es/app/Header/HeaderSection.js +1 -1
- package/es/app/NotFound/index.js +1 -2
- package/es/app/PageTitle.js +1 -1
- package/es/core/Accordion/index.js +3 -3
- package/es/core/Button/BackButton.js +1 -1
- package/es/core/Divider/index.js +1 -1
- package/es/core/ServiceBadge/index.js +1 -1
- package/es/govgr/Footer/index.js +0 -77
- package/es/layouts/Basic/Content/index.js +2 -1
- package/es/layouts/Basic/Side/index.js +1 -1
- package/es/typography/Caption.js +1 -1
- package/es/typography/Title.js +1 -1
- package/es/utils/withDeprecation.js +12 -2
- package/esm/api/APIErrors.js +1 -1
- package/esm/app/Header/HeaderSection.js +1 -1
- package/esm/app/NotFound/index.js +1 -2
- package/esm/app/PageTitle.js +1 -1
- package/esm/core/Accordion/index.js +3 -3
- package/esm/core/Button/BackButton.js +1 -1
- package/esm/core/Divider/index.js +1 -1
- package/esm/core/ServiceBadge/index.js +1 -1
- package/esm/govgr/Footer/index.js +0 -77
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/Content/index.js +2 -1
- package/esm/layouts/Basic/Side/index.js +1 -1
- package/esm/typography/Caption.js +1 -1
- package/esm/typography/Title.js +1 -1
- package/esm/utils/withDeprecation.js +12 -2
- package/govgr/Footer/index.js +1 -88
- package/layouts/Basic/Content/index.js +2 -1
- package/layouts/Basic/Side/index.js +1 -1
- package/libs/ui/src/core/Button/index.d.ts +1 -1
- package/libs/ui/src/core/NavList/NavListItemBase.d.ts +1 -1
- package/libs/ui/src/govgr/Footer/index.d.ts +0 -4
- package/libs/ui/src/layouts/Basic/Content/index.d.ts +1 -1
- package/libs-ui/react-core/src/Breadcrumbs/index.d.ts +10 -0
- package/libs-ui/react-core/src/BreadcrumbsList/index.d.ts +9 -0
- package/libs-ui/react-core/src/BreadcrumbsListItem/index.d.ts +14 -0
- package/libs-ui/react-core/src/BurgerIcon/index.d.ts +16 -0
- package/libs-ui/react-core/src/Button/index.d.ts +5 -1
- package/libs-ui/react-core/src/ButtonGroup/index.d.ts +9 -0
- package/libs-ui/react-core/src/Card/index.d.ts +17 -0
- package/libs-ui/react-core/src/CardAction/index.d.ts +11 -0
- package/libs-ui/react-core/src/CardHeading/index.d.ts +10 -0
- package/libs-ui/react-core/src/CardText/index.d.ts +10 -0
- package/libs-ui/react-core/src/Checkbox/index.d.ts +11 -0
- package/libs-ui/react-core/src/CheckboxConditional/index.d.ts +15 -0
- package/libs-ui/react-core/src/CheckboxItem/index.d.ts +19 -0
- package/libs-ui/react-core/src/Confirmation/index.d.ts +9 -0
- package/libs-ui/react-core/src/ConfirmationBody/index.d.ts +9 -0
- package/libs-ui/react-core/src/ConfirmationTitle/index.d.ts +9 -0
- package/libs-ui/react-core/src/Container/index.d.ts +10 -2
- package/libs-ui/react-core/src/DateInput/index.d.ts +12 -0
- package/libs-ui/react-core/src/DateInputItem/index.d.ts +25 -0
- package/libs-ui/react-core/src/ErrorMessage/index.d.ts +11 -0
- package/libs-ui/react-core/src/Field/index.d.ts +13 -0
- package/libs-ui/react-core/src/Fieldset/index.d.ts +10 -0
- package/libs-ui/react-core/src/FieldsetLegend/index.d.ts +19 -0
- package/libs-ui/react-core/src/FileUpload/index.d.ts +14 -0
- package/libs-ui/react-core/src/FooterContent/index.d.ts +10 -0
- package/libs-ui/react-core/src/FooterContentLogos/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterHeading/index.d.ts +15 -0
- package/libs-ui/react-core/src/FooterImage/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterInlineList/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterInlineListItem/index.d.ts +9 -0
- package/libs-ui/react-core/src/FooterLink/index.d.ts +13 -0
- package/libs-ui/react-core/src/FooterList/index.d.ts +15 -0
- package/libs-ui/react-core/src/FooterListItem/index.d.ts +10 -0
- package/libs-ui/react-core/src/FooterNavigation/index.d.ts +11 -0
- package/libs-ui/react-core/src/FooterSection/index.d.ts +11 -0
- package/libs-ui/react-core/src/GovGRFooter/index.d.ts +9 -0
- package/libs-ui/react-core/src/HeaderContent/index.d.ts +9 -0
- package/libs-ui/react-core/src/HeaderSecondaryLogo/index.d.ts +17 -0
- package/libs-ui/react-core/src/Hidden/index.d.ts +17 -0
- package/libs-ui/react-core/src/Hint/index.d.ts +9 -0
- package/libs-ui/react-core/src/Label/index.d.ts +9 -0
- package/libs-ui/react-core/src/LabelTitle/index.d.ts +19 -0
- package/libs-ui/react-core/src/Link/index.d.ts +14 -0
- package/libs-ui/react-core/src/NavHorizontal/index.d.ts +16 -0
- package/libs-ui/react-core/src/NavHorizontalList/index.d.ts +10 -0
- package/libs-ui/react-core/src/NavHorizontalListItem/index.d.ts +18 -0
- package/libs-ui/react-core/src/NavVertical/index.d.ts +11 -0
- package/libs-ui/react-core/src/NavVerticalItem/index.d.ts +14 -0
- package/libs-ui/react-core/src/NormalText/index.d.ts +1 -1
- package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +15 -0
- package/libs-ui/react-core/src/PageTitle/index.d.ts +9 -0
- package/libs-ui/react-core/src/PageTitleCaption/index.d.ts +14 -0
- package/libs-ui/react-core/src/PageTitleHeading/index.d.ts +13 -0
- package/libs-ui/react-core/src/PageTitleSection/index.d.ts +10 -0
- package/libs-ui/react-core/src/Paragraph/index.d.ts +1 -1
- package/libs-ui/react-core/src/PhaseBannerText/index.d.ts +11 -0
- package/libs-ui/react-core/src/Radio/index.d.ts +10 -0
- package/libs-ui/react-core/src/RadioConditional/index.d.ts +15 -0
- package/libs-ui/react-core/src/RadioItem/index.d.ts +18 -0
- package/libs-ui/react-core/src/Select/index.d.ts +14 -0
- package/libs-ui/react-core/src/SelectOption/index.d.ts +18 -0
- package/libs-ui/react-core/src/ServiceBadge/index.d.ts +11 -0
- package/libs-ui/react-core/src/Table/index.d.ts +34 -0
- package/libs-ui/react-core/src/TableBody/index.d.ts +9 -0
- package/libs-ui/react-core/src/TableCaption/index.d.ts +15 -0
- package/libs-ui/react-core/src/TableDataCell/index.d.ts +15 -0
- package/libs-ui/react-core/src/TableHead/index.d.ts +9 -0
- package/libs-ui/react-core/src/TableHeaderCell/index.d.ts +21 -0
- package/libs-ui/react-core/src/TableRow/index.d.ts +9 -0
- package/libs-ui/react-core/src/TextArea/index.d.ts +23 -0
- package/libs-ui/react-core/src/TextInput/index.d.ts +28 -0
- package/libs-ui/react-core/src/VisuallyHidden/index.d.ts +10 -0
- package/libs-ui/react-core/src/index.d.ts +127 -0
- package/package.json +2 -2
- package/typography/Caption.js +1 -1
- package/typography/Title.js +1 -1
- package/utils/withDeprecation.js +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
# Change Log - @digigov/ui
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 02 Feb 2022 15:44:29 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.10.1
|
|
6
|
+
Wed, 02 Feb 2022 15:44:29 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 0.10.0
|
|
11
|
+
Fri, 28 Jan 2022 13:37:24 GMT
|
|
12
|
+
|
|
13
|
+
### Minor changes
|
|
14
|
+
|
|
15
|
+
- Remove Feedback-related code
|
|
16
|
+
|
|
17
|
+
## 0.9.2
|
|
18
|
+
Thu, 30 Dec 2021 14:56:45 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- handle depracation logs better
|
|
23
|
+
|
|
24
|
+
## 0.9.1
|
|
25
|
+
Thu, 30 Dec 2021 14:11:34 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Change name for Content in withDeprecation
|
|
30
|
+
- Change the renames of components using withDeprecation
|
|
4
31
|
|
|
5
32
|
## 0.9.0
|
|
6
33
|
Thu, 30 Dec 2021 12:54:03 GMT
|
package/api/APIErrors.js
CHANGED
|
@@ -13,7 +13,7 @@ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDep
|
|
|
13
13
|
|
|
14
14
|
var HeaderSection = (0, _withDeprecation["default"])(_HeaderSection["default"], {
|
|
15
15
|
name: 'HeaderSection',
|
|
16
|
-
rename: '
|
|
16
|
+
rename: 'HeaderSection'
|
|
17
17
|
});
|
|
18
18
|
exports.HeaderSection = HeaderSection;
|
|
19
19
|
var _default = HeaderSection;
|
package/app/NotFound/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
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
|
});
|
|
@@ -11,21 +9,15 @@ exports["default"] = exports.NotFound = void 0;
|
|
|
11
9
|
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var _typography = require("@digigov/ui/typography");
|
|
12
|
+
var _reactCore = require("@digigov/react-core");
|
|
17
13
|
|
|
18
14
|
var _app = require("@digigov/ui/app");
|
|
19
15
|
|
|
20
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
24
16
|
var NotFound = function NotFound() {
|
|
25
17
|
var _useTranslation = (0, _app.useTranslation)(),
|
|
26
18
|
t = _useTranslation.t;
|
|
27
19
|
|
|
28
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(
|
|
20
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactCore.PageTitle, null, /*#__PURE__*/_react["default"].createElement(_reactCore.PageTitleHeading, null, t('notfound.page_not_found'))), /*#__PURE__*/_react["default"].createElement(_reactCore.Paragraph, null, t('notfound.wrong_key_address')), /*#__PURE__*/_react["default"].createElement(_reactCore.Paragraph, null, t('notfound.wrong_cp_address')), /*#__PURE__*/_react["default"].createElement(_reactCore.Paragraph, null, t('notfound.service_contact')));
|
|
29
21
|
};
|
|
30
22
|
|
|
31
23
|
exports.NotFound = NotFound;
|
package/app/PageTitle.js
CHANGED
|
@@ -40,7 +40,7 @@ var PageTitleSection = (0, _withDeprecation["default"])(function (_ref2) {
|
|
|
40
40
|
exports.PageTitleSection = PageTitleSection;
|
|
41
41
|
var PageTitleCaption = (0, _withDeprecation["default"])(_Caption["default"], {
|
|
42
42
|
name: 'PageTitleCaption',
|
|
43
|
-
rename: '
|
|
43
|
+
rename: 'Caption'
|
|
44
44
|
});
|
|
45
45
|
exports.PageTitleCaption = PageTitleCaption;
|
|
46
46
|
var PageTitleHeading = (0, _withDeprecation["default"])(function (_ref3) {
|
package/core/Accordion/index.js
CHANGED
|
@@ -70,19 +70,19 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
70
70
|
|
|
71
71
|
var AccordionItemDetails = (0, _withDeprecation["default"])(_AccordionSectionContent["default"], {
|
|
72
72
|
name: 'AccordionItemDetails',
|
|
73
|
-
rename: '
|
|
73
|
+
rename: 'AccordionSectionContent'
|
|
74
74
|
});
|
|
75
75
|
exports.AccordionItemDetails = AccordionItemDetails;
|
|
76
76
|
var AccordionItemSummary = (0, _withDeprecation["default"])(_AccordionSectionHeader["default"], {
|
|
77
77
|
name: 'AccordionItemSummary',
|
|
78
|
-
rename: '
|
|
78
|
+
rename: 'AccordionSectionHeader'
|
|
79
79
|
});
|
|
80
80
|
exports.AccordionItemSummary = AccordionItemSummary;
|
|
81
81
|
var AccordionItem = (0, _withDeprecation["default"])( /*#__PURE__*/_react["default"].memo(_AccordionSection["default"], function (prev, next) {
|
|
82
82
|
return prev.open === next.open;
|
|
83
83
|
}), {
|
|
84
84
|
name: 'AccordionItem',
|
|
85
|
-
rename: '
|
|
85
|
+
rename: 'AccordionSection'
|
|
86
86
|
});
|
|
87
87
|
exports.AccordionItem = AccordionItem;
|
|
88
88
|
|
|
@@ -13,7 +13,7 @@ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDep
|
|
|
13
13
|
|
|
14
14
|
var BackButton = (0, _withDeprecation["default"])(_BackLink["default"], {
|
|
15
15
|
name: 'BackButton',
|
|
16
|
-
rename: '
|
|
16
|
+
rename: 'BackLink',
|
|
17
17
|
props: {
|
|
18
18
|
variant: {
|
|
19
19
|
error: true
|
package/core/Divider/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDep
|
|
|
13
13
|
|
|
14
14
|
var SectionBreak = (0, _withDeprecation["default"])(_SectionBreak["default"], {
|
|
15
15
|
name: 'Divider',
|
|
16
|
-
rename: '
|
|
16
|
+
rename: 'SectionBreak'
|
|
17
17
|
});
|
|
18
18
|
exports.SectionBreak = SectionBreak;
|
|
19
19
|
var _default = SectionBreak;
|
|
@@ -26,7 +26,7 @@ var ServiceBadge = (0, _withDeprecation["default"])(function (_ref) {
|
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement(_PhaseBanner["default"], props, /*#__PURE__*/_react["default"].createElement(_PhaseBannerTag["default"], null, children || label));
|
|
27
27
|
}, {
|
|
28
28
|
name: 'ServiceBadge',
|
|
29
|
-
rename: '
|
|
29
|
+
rename: 'PhaseBanner'
|
|
30
30
|
});
|
|
31
31
|
exports.ServiceBadge = ServiceBadge;
|
|
32
32
|
var _default = ServiceBadge;
|
package/es/api/APIErrors.js
CHANGED
|
@@ -2,6 +2,6 @@ import CoreHeaderSection from '@digigov/react-core/HeaderSection';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var HeaderSection = withDeprecation(CoreHeaderSection, {
|
|
4
4
|
name: 'HeaderSection',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'HeaderSection'
|
|
6
6
|
});
|
|
7
7
|
export default HeaderSection;
|
package/es/app/NotFound/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PageTitle,
|
|
3
|
-
import { Paragraph } from '@digigov/ui/typography';
|
|
2
|
+
import { PageTitle, PageTitleHeading, Paragraph } from '@digigov/react-core';
|
|
4
3
|
import { useTranslation } from '@digigov/ui/app';
|
|
5
4
|
export var NotFound = function NotFound() {
|
|
6
5
|
var _useTranslation = useTranslation(),
|
package/es/app/PageTitle.js
CHANGED
|
@@ -22,7 +22,7 @@ export var PageTitleSection = withDeprecation(function (_ref2) {
|
|
|
22
22
|
});
|
|
23
23
|
export var PageTitleCaption = withDeprecation(Caption, {
|
|
24
24
|
name: 'PageTitleCaption',
|
|
25
|
-
rename: '
|
|
25
|
+
rename: 'Caption'
|
|
26
26
|
});
|
|
27
27
|
export var PageTitleHeading = withDeprecation(function (_ref3) {
|
|
28
28
|
var component = _ref3.component,
|
|
@@ -14,17 +14,17 @@ import { useTogglableSections } from '@digigov/ui/hooks/useTogglableSections';
|
|
|
14
14
|
import React, { useCallback, useMemo } from 'react';
|
|
15
15
|
export var AccordionItemDetails = withDeprecation(AccordionSectionContent, {
|
|
16
16
|
name: 'AccordionItemDetails',
|
|
17
|
-
rename: '
|
|
17
|
+
rename: 'AccordionSectionContent'
|
|
18
18
|
});
|
|
19
19
|
export var AccordionItemSummary = withDeprecation(AccordionSectionHeader, {
|
|
20
20
|
name: 'AccordionItemSummary',
|
|
21
|
-
rename: '
|
|
21
|
+
rename: 'AccordionSectionHeader'
|
|
22
22
|
});
|
|
23
23
|
export var AccordionItem = withDeprecation( /*#__PURE__*/React.memo(AccordionSection, function (prev, next) {
|
|
24
24
|
return prev.open === next.open;
|
|
25
25
|
}), {
|
|
26
26
|
name: 'AccordionItem',
|
|
27
|
-
rename: '
|
|
27
|
+
rename: 'AccordionSection'
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
var useAccordion = function useAccordion(props) {
|
|
@@ -2,7 +2,7 @@ import BackLink from '@digigov/react-core/BackLink';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var BackButton = withDeprecation(BackLink, {
|
|
4
4
|
name: 'BackButton',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'BackLink',
|
|
6
6
|
props: {
|
|
7
7
|
variant: {
|
|
8
8
|
error: true
|
package/es/core/Divider/index.js
CHANGED
|
@@ -2,6 +2,6 @@ import CoreSectionBreak from '@digigov/react-core/SectionBreak';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var SectionBreak = withDeprecation(CoreSectionBreak, {
|
|
4
4
|
name: 'Divider',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'SectionBreak'
|
|
6
6
|
});
|
|
7
7
|
export default SectionBreak;
|
|
@@ -13,6 +13,6 @@ export var ServiceBadge = withDeprecation(function (_ref) {
|
|
|
13
13
|
return /*#__PURE__*/React.createElement(PhaseBanner, props, /*#__PURE__*/React.createElement(PhaseBannerTag, null, children || label));
|
|
14
14
|
}, {
|
|
15
15
|
name: 'ServiceBadge',
|
|
16
|
-
rename: '
|
|
16
|
+
rename: 'PhaseBanner'
|
|
17
17
|
});
|
|
18
18
|
export default ServiceBadge;
|
package/es/govgr/Footer/index.js
CHANGED
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
-
var _excluded = ["reportBugs"];
|
|
3
1
|
import React from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
6
|
-
import Grid from '@digigov/react-core/Grid';
|
|
7
|
-
import { Content } from '@digigov/ui/layouts/Basic';
|
|
8
|
-
import Button from '@digigov/ui/core/Button';
|
|
9
|
-
import Title from '@digigov/ui/typography/Title';
|
|
10
2
|
import Copyright from '@digigov/ui/govgr/Footer/Copyright';
|
|
11
3
|
import HellenicRepublicLogo from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
12
4
|
import Footer from '@digigov/react-core/Footer';
|
|
@@ -26,73 +18,4 @@ export var GovGRFooter = function GovGRFooter(_ref) {
|
|
|
26
18
|
minDigitalCopyright: minDigitalCopyright
|
|
27
19
|
})), _ref2)));
|
|
28
20
|
};
|
|
29
|
-
var useFeedbackStyles = makeStyles(function (theme) {
|
|
30
|
-
return {
|
|
31
|
-
root: {
|
|
32
|
-
width: '100%',
|
|
33
|
-
background: theme.palette.primary.main,
|
|
34
|
-
padding: theme.spacing(2),
|
|
35
|
-
color: theme.palette.getContrastText(theme.palette.primary.main)
|
|
36
|
-
},
|
|
37
|
-
title: {
|
|
38
|
-
margin: 0,
|
|
39
|
-
display: 'inline',
|
|
40
|
-
fontWeight: 'normal',
|
|
41
|
-
marginRight: theme.spacing(4),
|
|
42
|
-
lineHeight: '1.5rem'
|
|
43
|
-
},
|
|
44
|
-
link: {
|
|
45
|
-
margin: theme.spacing(0, 1, 2, 1),
|
|
46
|
-
padding: theme.spacing(1, 4),
|
|
47
|
-
border: "1px solid ".concat(theme.palette.common.white),
|
|
48
|
-
color: theme.palette.common.white,
|
|
49
|
-
background: theme.palette.primary.light,
|
|
50
|
-
'&:hover': {
|
|
51
|
-
background: theme.palette.primary.dark
|
|
52
|
-
},
|
|
53
|
-
'&:visited': {
|
|
54
|
-
color: theme.palette.common.white
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
wrong: {}
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
name: 'MuiFeedback'
|
|
61
|
-
});
|
|
62
|
-
export var Feedback = function Feedback(_ref3) {
|
|
63
|
-
var _ref3$reportBugs = _ref3.reportBugs,
|
|
64
|
-
reportBugs = _ref3$reportBugs === void 0 ? false : _ref3$reportBugs,
|
|
65
|
-
props = _objectWithoutProperties(_ref3, _excluded);
|
|
66
|
-
|
|
67
|
-
var classes = useFeedbackStyles();
|
|
68
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: classes.root
|
|
70
|
-
}, /*#__PURE__*/React.createElement(Content, props, /*#__PURE__*/React.createElement(Grid, {
|
|
71
|
-
container: true
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
73
|
-
item: true,
|
|
74
|
-
xs: 12,
|
|
75
|
-
sm: 6,
|
|
76
|
-
md: 6
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
78
|
-
className: classes.title,
|
|
79
|
-
size: "sm"
|
|
80
|
-
}, "\u0395\u03AF\u03BD\u03B1\u03B9 \u03C7\u03C1\u03AE\u03C3\u03B9\u03BC\u03B7 \u03B1\u03C5\u03C4\u03AE \u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1;")), /*#__PURE__*/React.createElement(Grid, {
|
|
81
|
-
item: true,
|
|
82
|
-
xs: 12,
|
|
83
|
-
sm: 6,
|
|
84
|
-
md: 6
|
|
85
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
86
|
-
className: classes.link
|
|
87
|
-
}, "\u039D\u03B1\u03B9"), /*#__PURE__*/React.createElement(Button, {
|
|
88
|
-
className: classes.link
|
|
89
|
-
}, "\u038C\u03C7\u03B9")), reportBugs && /*#__PURE__*/React.createElement(Grid, {
|
|
90
|
-
item: true,
|
|
91
|
-
xs: 12,
|
|
92
|
-
sm: 12,
|
|
93
|
-
md: 4
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
95
|
-
className: clsx(classes.link, classes.wrong)
|
|
96
|
-
}, "\u03A5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03BB\u03AC\u03B8\u03BF\u03C2 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1")))));
|
|
97
|
-
};
|
|
98
21
|
export default GovGRFooter;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import CoreContainer from '@digigov/react-core/Container';
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var Content = withDeprecation(CoreContainer, {
|
|
4
|
-
name: '
|
|
4
|
+
name: 'Content',
|
|
5
|
+
rename: 'Container',
|
|
5
6
|
props: {
|
|
6
7
|
maxWidth: {
|
|
7
8
|
error: true
|
|
@@ -2,6 +2,6 @@ import Aside from '@digigov/react-core/Aside';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var Side = withDeprecation(Aside, {
|
|
4
4
|
name: 'Side',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'Aside'
|
|
6
6
|
});
|
|
7
7
|
export default Side;
|
package/es/typography/Caption.js
CHANGED
|
@@ -2,6 +2,6 @@ import HeadingCaption from '@digigov/react-core/HeadingCaption';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var Caption = withDeprecation(HeadingCaption, {
|
|
4
4
|
name: 'Caption',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'HeadingCaption'
|
|
6
6
|
});
|
|
7
7
|
export default Caption;
|
package/es/typography/Title.js
CHANGED
|
@@ -24,7 +24,7 @@ export var Title = withDeprecation(function (_ref) {
|
|
|
24
24
|
}, props), children);
|
|
25
25
|
}, {
|
|
26
26
|
name: 'Title',
|
|
27
|
-
rename: '
|
|
27
|
+
rename: 'Heading',
|
|
28
28
|
props: {
|
|
29
29
|
dense: {
|
|
30
30
|
error: true
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
3
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
@@ -27,9 +28,11 @@ var DigigovError = /*#__PURE__*/function (_Error) {
|
|
|
27
28
|
return _this;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
return DigigovError;
|
|
31
|
+
return _createClass(DigigovError);
|
|
31
32
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
32
33
|
|
|
34
|
+
var loggedDeprecations = new Set();
|
|
35
|
+
|
|
33
36
|
var handleErrorWarning = function handleErrorWarning(componentName, name, _ref, type) {
|
|
34
37
|
var error = _ref.error,
|
|
35
38
|
warning = _ref.warning;
|
|
@@ -52,9 +55,16 @@ export default function withDeprecation(Component, deprecations) {
|
|
|
52
55
|
|
|
53
56
|
var componentName = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
54
57
|
// @ts-ignore
|
|
55
|
-
deprecations.name || Component.name || (Component === null || Component === void 0 ? void 0 : (_Component$render = Component.render) === null || _Component$render === void 0 ? void 0 : _Component$render.name);
|
|
58
|
+
deprecations.name || Component.name || (Component === null || Component === void 0 ? void 0 : (_Component$render = Component.render) === null || _Component$render === void 0 ? void 0 : _Component$render.name);
|
|
59
|
+
|
|
60
|
+
if (loggedDeprecations.has(componentName)) {
|
|
61
|
+
return Component;
|
|
62
|
+
} else {
|
|
63
|
+
loggedDeprecations.add(componentName);
|
|
64
|
+
} // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
56
65
|
// @ts-ignore
|
|
57
66
|
|
|
67
|
+
|
|
58
68
|
return function withDeprecationComponent(props) {
|
|
59
69
|
if (deprecations.rename) {
|
|
60
70
|
console.warn("\u267B\uFE0F ".concat(componentName, " is renamed to ").concat(deprecations.rename, "\n"));
|
package/esm/api/APIErrors.js
CHANGED
|
@@ -2,6 +2,6 @@ import CoreHeaderSection from '@digigov/react-core/HeaderSection';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var HeaderSection = withDeprecation(CoreHeaderSection, {
|
|
4
4
|
name: 'HeaderSection',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'HeaderSection'
|
|
6
6
|
});
|
|
7
7
|
export default HeaderSection;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PageTitle,
|
|
3
|
-
import { Paragraph } from '@digigov/ui/typography';
|
|
2
|
+
import { PageTitle, PageTitleHeading, Paragraph } from '@digigov/react-core';
|
|
4
3
|
import { useTranslation } from '@digigov/ui/app';
|
|
5
4
|
export var NotFound = function NotFound() {
|
|
6
5
|
var _useTranslation = useTranslation(),
|
package/esm/app/PageTitle.js
CHANGED
|
@@ -22,7 +22,7 @@ export var PageTitleSection = withDeprecation(function (_ref2) {
|
|
|
22
22
|
});
|
|
23
23
|
export var PageTitleCaption = withDeprecation(Caption, {
|
|
24
24
|
name: 'PageTitleCaption',
|
|
25
|
-
rename: '
|
|
25
|
+
rename: 'Caption'
|
|
26
26
|
});
|
|
27
27
|
export var PageTitleHeading = withDeprecation(function (_ref3) {
|
|
28
28
|
var component = _ref3.component,
|
|
@@ -14,17 +14,17 @@ import { useTogglableSections } from '@digigov/ui/hooks/useTogglableSections';
|
|
|
14
14
|
import React, { useCallback, useMemo } from 'react';
|
|
15
15
|
export var AccordionItemDetails = withDeprecation(AccordionSectionContent, {
|
|
16
16
|
name: 'AccordionItemDetails',
|
|
17
|
-
rename: '
|
|
17
|
+
rename: 'AccordionSectionContent'
|
|
18
18
|
});
|
|
19
19
|
export var AccordionItemSummary = withDeprecation(AccordionSectionHeader, {
|
|
20
20
|
name: 'AccordionItemSummary',
|
|
21
|
-
rename: '
|
|
21
|
+
rename: 'AccordionSectionHeader'
|
|
22
22
|
});
|
|
23
23
|
export var AccordionItem = withDeprecation( /*#__PURE__*/React.memo(AccordionSection, function (prev, next) {
|
|
24
24
|
return prev.open === next.open;
|
|
25
25
|
}), {
|
|
26
26
|
name: 'AccordionItem',
|
|
27
|
-
rename: '
|
|
27
|
+
rename: 'AccordionSection'
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
var useAccordion = function useAccordion(props) {
|
|
@@ -2,7 +2,7 @@ import BackLink from '@digigov/react-core/BackLink';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var BackButton = withDeprecation(BackLink, {
|
|
4
4
|
name: 'BackButton',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'BackLink',
|
|
6
6
|
props: {
|
|
7
7
|
variant: {
|
|
8
8
|
error: true
|
|
@@ -2,6 +2,6 @@ import CoreSectionBreak from '@digigov/react-core/SectionBreak';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var SectionBreak = withDeprecation(CoreSectionBreak, {
|
|
4
4
|
name: 'Divider',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'SectionBreak'
|
|
6
6
|
});
|
|
7
7
|
export default SectionBreak;
|
|
@@ -13,6 +13,6 @@ export var ServiceBadge = withDeprecation(function (_ref) {
|
|
|
13
13
|
return /*#__PURE__*/React.createElement(PhaseBanner, props, /*#__PURE__*/React.createElement(PhaseBannerTag, null, children || label));
|
|
14
14
|
}, {
|
|
15
15
|
name: 'ServiceBadge',
|
|
16
|
-
rename: '
|
|
16
|
+
rename: 'PhaseBanner'
|
|
17
17
|
});
|
|
18
18
|
export default ServiceBadge;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
-
var _excluded = ["reportBugs"];
|
|
3
1
|
import React from 'react';
|
|
4
|
-
import clsx from 'clsx';
|
|
5
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
6
|
-
import Grid from '@digigov/react-core/Grid';
|
|
7
|
-
import { Content } from '@digigov/ui/layouts/Basic';
|
|
8
|
-
import Button from '@digigov/ui/core/Button';
|
|
9
|
-
import Title from '@digigov/ui/typography/Title';
|
|
10
2
|
import Copyright from '@digigov/ui/govgr/Footer/Copyright';
|
|
11
3
|
import HellenicRepublicLogo from '@digigov/ui/govgr/Footer/HellenicRepublicLogo';
|
|
12
4
|
import Footer from '@digigov/react-core/Footer';
|
|
@@ -26,73 +18,4 @@ export var GovGRFooter = function GovGRFooter(_ref) {
|
|
|
26
18
|
minDigitalCopyright: minDigitalCopyright
|
|
27
19
|
})), _ref2)));
|
|
28
20
|
};
|
|
29
|
-
var useFeedbackStyles = makeStyles(function (theme) {
|
|
30
|
-
return {
|
|
31
|
-
root: {
|
|
32
|
-
width: '100%',
|
|
33
|
-
background: theme.palette.primary.main,
|
|
34
|
-
padding: theme.spacing(2),
|
|
35
|
-
color: theme.palette.getContrastText(theme.palette.primary.main)
|
|
36
|
-
},
|
|
37
|
-
title: {
|
|
38
|
-
margin: 0,
|
|
39
|
-
display: 'inline',
|
|
40
|
-
fontWeight: 'normal',
|
|
41
|
-
marginRight: theme.spacing(4),
|
|
42
|
-
lineHeight: '1.5rem'
|
|
43
|
-
},
|
|
44
|
-
link: {
|
|
45
|
-
margin: theme.spacing(0, 1, 2, 1),
|
|
46
|
-
padding: theme.spacing(1, 4),
|
|
47
|
-
border: "1px solid ".concat(theme.palette.common.white),
|
|
48
|
-
color: theme.palette.common.white,
|
|
49
|
-
background: theme.palette.primary.light,
|
|
50
|
-
'&:hover': {
|
|
51
|
-
background: theme.palette.primary.dark
|
|
52
|
-
},
|
|
53
|
-
'&:visited': {
|
|
54
|
-
color: theme.palette.common.white
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
wrong: {}
|
|
58
|
-
};
|
|
59
|
-
}, {
|
|
60
|
-
name: 'MuiFeedback'
|
|
61
|
-
});
|
|
62
|
-
export var Feedback = function Feedback(_ref3) {
|
|
63
|
-
var _ref3$reportBugs = _ref3.reportBugs,
|
|
64
|
-
reportBugs = _ref3$reportBugs === void 0 ? false : _ref3$reportBugs,
|
|
65
|
-
props = _objectWithoutProperties(_ref3, _excluded);
|
|
66
|
-
|
|
67
|
-
var classes = useFeedbackStyles();
|
|
68
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
69
|
-
className: classes.root
|
|
70
|
-
}, /*#__PURE__*/React.createElement(Content, props, /*#__PURE__*/React.createElement(Grid, {
|
|
71
|
-
container: true
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Grid, {
|
|
73
|
-
item: true,
|
|
74
|
-
xs: 12,
|
|
75
|
-
sm: 6,
|
|
76
|
-
md: 6
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
78
|
-
className: classes.title,
|
|
79
|
-
size: "sm"
|
|
80
|
-
}, "\u0395\u03AF\u03BD\u03B1\u03B9 \u03C7\u03C1\u03AE\u03C3\u03B9\u03BC\u03B7 \u03B1\u03C5\u03C4\u03AE \u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1;")), /*#__PURE__*/React.createElement(Grid, {
|
|
81
|
-
item: true,
|
|
82
|
-
xs: 12,
|
|
83
|
-
sm: 6,
|
|
84
|
-
md: 6
|
|
85
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
86
|
-
className: classes.link
|
|
87
|
-
}, "\u039D\u03B1\u03B9"), /*#__PURE__*/React.createElement(Button, {
|
|
88
|
-
className: classes.link
|
|
89
|
-
}, "\u038C\u03C7\u03B9")), reportBugs && /*#__PURE__*/React.createElement(Grid, {
|
|
90
|
-
item: true,
|
|
91
|
-
xs: 12,
|
|
92
|
-
sm: 12,
|
|
93
|
-
md: 4
|
|
94
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
95
|
-
className: clsx(classes.link, classes.wrong)
|
|
96
|
-
}, "\u03A5\u03C0\u03AC\u03C1\u03C7\u03B5\u03B9 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03BB\u03AC\u03B8\u03BF\u03C2 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1")))));
|
|
97
|
-
};
|
|
98
21
|
export default GovGRFooter;
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import CoreContainer from '@digigov/react-core/Container';
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var Content = withDeprecation(CoreContainer, {
|
|
4
|
-
name: '
|
|
4
|
+
name: 'Content',
|
|
5
|
+
rename: 'Container',
|
|
5
6
|
props: {
|
|
6
7
|
maxWidth: {
|
|
7
8
|
error: true
|
|
@@ -2,6 +2,6 @@ import Aside from '@digigov/react-core/Aside';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var Side = withDeprecation(Aside, {
|
|
4
4
|
name: 'Side',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'Aside'
|
|
6
6
|
});
|
|
7
7
|
export default Side;
|
|
@@ -2,6 +2,6 @@ import HeadingCaption from '@digigov/react-core/HeadingCaption';
|
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
3
|
export var Caption = withDeprecation(HeadingCaption, {
|
|
4
4
|
name: 'Caption',
|
|
5
|
-
rename: '
|
|
5
|
+
rename: 'HeadingCaption'
|
|
6
6
|
});
|
|
7
7
|
export default Caption;
|
package/esm/typography/Title.js
CHANGED
|
@@ -24,7 +24,7 @@ export var Title = withDeprecation(function (_ref) {
|
|
|
24
24
|
}, props), children);
|
|
25
25
|
}, {
|
|
26
26
|
name: 'Title',
|
|
27
|
-
rename: '
|
|
27
|
+
rename: 'Heading',
|
|
28
28
|
props: {
|
|
29
29
|
dense: {
|
|
30
30
|
error: true
|