@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.
Files changed (122) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/api/APIErrors.js +1 -1
  3. package/app/Header/HeaderSection.js +1 -1
  4. package/app/NotFound/index.js +2 -10
  5. package/app/PageTitle.js +1 -1
  6. package/core/Accordion/index.js +3 -3
  7. package/core/Button/BackButton.js +1 -1
  8. package/core/Divider/index.js +1 -1
  9. package/core/ServiceBadge/index.js +1 -1
  10. package/es/api/APIErrors.js +1 -1
  11. package/es/app/Header/HeaderSection.js +1 -1
  12. package/es/app/NotFound/index.js +1 -2
  13. package/es/app/PageTitle.js +1 -1
  14. package/es/core/Accordion/index.js +3 -3
  15. package/es/core/Button/BackButton.js +1 -1
  16. package/es/core/Divider/index.js +1 -1
  17. package/es/core/ServiceBadge/index.js +1 -1
  18. package/es/govgr/Footer/index.js +0 -77
  19. package/es/layouts/Basic/Content/index.js +2 -1
  20. package/es/layouts/Basic/Side/index.js +1 -1
  21. package/es/typography/Caption.js +1 -1
  22. package/es/typography/Title.js +1 -1
  23. package/es/utils/withDeprecation.js +12 -2
  24. package/esm/api/APIErrors.js +1 -1
  25. package/esm/app/Header/HeaderSection.js +1 -1
  26. package/esm/app/NotFound/index.js +1 -2
  27. package/esm/app/PageTitle.js +1 -1
  28. package/esm/core/Accordion/index.js +3 -3
  29. package/esm/core/Button/BackButton.js +1 -1
  30. package/esm/core/Divider/index.js +1 -1
  31. package/esm/core/ServiceBadge/index.js +1 -1
  32. package/esm/govgr/Footer/index.js +0 -77
  33. package/esm/index.js +1 -1
  34. package/esm/layouts/Basic/Content/index.js +2 -1
  35. package/esm/layouts/Basic/Side/index.js +1 -1
  36. package/esm/typography/Caption.js +1 -1
  37. package/esm/typography/Title.js +1 -1
  38. package/esm/utils/withDeprecation.js +12 -2
  39. package/govgr/Footer/index.js +1 -88
  40. package/layouts/Basic/Content/index.js +2 -1
  41. package/layouts/Basic/Side/index.js +1 -1
  42. package/libs/ui/src/core/Button/index.d.ts +1 -1
  43. package/libs/ui/src/core/NavList/NavListItemBase.d.ts +1 -1
  44. package/libs/ui/src/govgr/Footer/index.d.ts +0 -4
  45. package/libs/ui/src/layouts/Basic/Content/index.d.ts +1 -1
  46. package/libs-ui/react-core/src/Breadcrumbs/index.d.ts +10 -0
  47. package/libs-ui/react-core/src/BreadcrumbsList/index.d.ts +9 -0
  48. package/libs-ui/react-core/src/BreadcrumbsListItem/index.d.ts +14 -0
  49. package/libs-ui/react-core/src/BurgerIcon/index.d.ts +16 -0
  50. package/libs-ui/react-core/src/Button/index.d.ts +5 -1
  51. package/libs-ui/react-core/src/ButtonGroup/index.d.ts +9 -0
  52. package/libs-ui/react-core/src/Card/index.d.ts +17 -0
  53. package/libs-ui/react-core/src/CardAction/index.d.ts +11 -0
  54. package/libs-ui/react-core/src/CardHeading/index.d.ts +10 -0
  55. package/libs-ui/react-core/src/CardText/index.d.ts +10 -0
  56. package/libs-ui/react-core/src/Checkbox/index.d.ts +11 -0
  57. package/libs-ui/react-core/src/CheckboxConditional/index.d.ts +15 -0
  58. package/libs-ui/react-core/src/CheckboxItem/index.d.ts +19 -0
  59. package/libs-ui/react-core/src/Confirmation/index.d.ts +9 -0
  60. package/libs-ui/react-core/src/ConfirmationBody/index.d.ts +9 -0
  61. package/libs-ui/react-core/src/ConfirmationTitle/index.d.ts +9 -0
  62. package/libs-ui/react-core/src/Container/index.d.ts +10 -2
  63. package/libs-ui/react-core/src/DateInput/index.d.ts +12 -0
  64. package/libs-ui/react-core/src/DateInputItem/index.d.ts +25 -0
  65. package/libs-ui/react-core/src/ErrorMessage/index.d.ts +11 -0
  66. package/libs-ui/react-core/src/Field/index.d.ts +13 -0
  67. package/libs-ui/react-core/src/Fieldset/index.d.ts +10 -0
  68. package/libs-ui/react-core/src/FieldsetLegend/index.d.ts +19 -0
  69. package/libs-ui/react-core/src/FileUpload/index.d.ts +14 -0
  70. package/libs-ui/react-core/src/FooterContent/index.d.ts +10 -0
  71. package/libs-ui/react-core/src/FooterContentLogos/index.d.ts +11 -0
  72. package/libs-ui/react-core/src/FooterHeading/index.d.ts +15 -0
  73. package/libs-ui/react-core/src/FooterImage/index.d.ts +11 -0
  74. package/libs-ui/react-core/src/FooterInlineList/index.d.ts +11 -0
  75. package/libs-ui/react-core/src/FooterInlineListItem/index.d.ts +9 -0
  76. package/libs-ui/react-core/src/FooterLink/index.d.ts +13 -0
  77. package/libs-ui/react-core/src/FooterList/index.d.ts +15 -0
  78. package/libs-ui/react-core/src/FooterListItem/index.d.ts +10 -0
  79. package/libs-ui/react-core/src/FooterNavigation/index.d.ts +11 -0
  80. package/libs-ui/react-core/src/FooterSection/index.d.ts +11 -0
  81. package/libs-ui/react-core/src/GovGRFooter/index.d.ts +9 -0
  82. package/libs-ui/react-core/src/HeaderContent/index.d.ts +9 -0
  83. package/libs-ui/react-core/src/HeaderSecondaryLogo/index.d.ts +17 -0
  84. package/libs-ui/react-core/src/Hidden/index.d.ts +17 -0
  85. package/libs-ui/react-core/src/Hint/index.d.ts +9 -0
  86. package/libs-ui/react-core/src/Label/index.d.ts +9 -0
  87. package/libs-ui/react-core/src/LabelTitle/index.d.ts +19 -0
  88. package/libs-ui/react-core/src/Link/index.d.ts +14 -0
  89. package/libs-ui/react-core/src/NavHorizontal/index.d.ts +16 -0
  90. package/libs-ui/react-core/src/NavHorizontalList/index.d.ts +10 -0
  91. package/libs-ui/react-core/src/NavHorizontalListItem/index.d.ts +18 -0
  92. package/libs-ui/react-core/src/NavVertical/index.d.ts +11 -0
  93. package/libs-ui/react-core/src/NavVerticalItem/index.d.ts +14 -0
  94. package/libs-ui/react-core/src/NormalText/index.d.ts +1 -1
  95. package/libs-ui/react-core/src/NotificationBannerLink/index.d.ts +15 -0
  96. package/libs-ui/react-core/src/PageTitle/index.d.ts +9 -0
  97. package/libs-ui/react-core/src/PageTitleCaption/index.d.ts +14 -0
  98. package/libs-ui/react-core/src/PageTitleHeading/index.d.ts +13 -0
  99. package/libs-ui/react-core/src/PageTitleSection/index.d.ts +10 -0
  100. package/libs-ui/react-core/src/Paragraph/index.d.ts +1 -1
  101. package/libs-ui/react-core/src/PhaseBannerText/index.d.ts +11 -0
  102. package/libs-ui/react-core/src/Radio/index.d.ts +10 -0
  103. package/libs-ui/react-core/src/RadioConditional/index.d.ts +15 -0
  104. package/libs-ui/react-core/src/RadioItem/index.d.ts +18 -0
  105. package/libs-ui/react-core/src/Select/index.d.ts +14 -0
  106. package/libs-ui/react-core/src/SelectOption/index.d.ts +18 -0
  107. package/libs-ui/react-core/src/ServiceBadge/index.d.ts +11 -0
  108. package/libs-ui/react-core/src/Table/index.d.ts +34 -0
  109. package/libs-ui/react-core/src/TableBody/index.d.ts +9 -0
  110. package/libs-ui/react-core/src/TableCaption/index.d.ts +15 -0
  111. package/libs-ui/react-core/src/TableDataCell/index.d.ts +15 -0
  112. package/libs-ui/react-core/src/TableHead/index.d.ts +9 -0
  113. package/libs-ui/react-core/src/TableHeaderCell/index.d.ts +21 -0
  114. package/libs-ui/react-core/src/TableRow/index.d.ts +9 -0
  115. package/libs-ui/react-core/src/TextArea/index.d.ts +23 -0
  116. package/libs-ui/react-core/src/TextInput/index.d.ts +28 -0
  117. package/libs-ui/react-core/src/VisuallyHidden/index.d.ts +10 -0
  118. package/libs-ui/react-core/src/index.d.ts +127 -0
  119. package/package.json +2 -2
  120. package/typography/Caption.js +1 -1
  121. package/typography/Title.js +1 -1
  122. 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 Thu, 30 Dec 2021 12:54:03 GMT and should not be manually modified.
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
@@ -111,7 +111,7 @@ var APIError = /*#__PURE__*/function (_Error) {
111
111
  return _this2;
112
112
  }
113
113
 
114
- return APIError;
114
+ return (0, _createClass2["default"])(APIError);
115
115
  }( /*#__PURE__*/(0, _wrapNativeSuper2["default"])(Error));
116
116
 
117
117
  exports.APIError = APIError;
@@ -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: '@digigov/react-core/HeaderSection.\nYou need to install the `@digigov/react-core` library to use this new component.'
16
+ rename: 'HeaderSection'
17
17
  });
18
18
  exports.HeaderSection = HeaderSection;
19
19
  var _default = HeaderSection;
@@ -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 _PageTitle = _interopRequireWildcard(require("@digigov/ui/app/PageTitle"));
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(_PageTitle["default"], null, /*#__PURE__*/_react["default"].createElement(_PageTitle.PageTitleHeading, null, t('notfound.page_not_found'))), /*#__PURE__*/_react["default"].createElement(_typography.Paragraph, null, t('notfound.wrong_key_address')), /*#__PURE__*/_react["default"].createElement(_typography.Paragraph, null, t('notfound.wrong_cp_address')), /*#__PURE__*/_react["default"].createElement(_typography.Paragraph, null, t('notfound.service_contact')));
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: '@digigov/react-core/Caption.\nYou need to install the `@digigov/react-core` library to use this new component.'
43
+ rename: 'Caption'
44
44
  });
45
45
  exports.PageTitleCaption = PageTitleCaption;
46
46
  var PageTitleHeading = (0, _withDeprecation["default"])(function (_ref3) {
@@ -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: '@digigov/react-core/AccordionSectionContent.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/AccordionSectionHeader.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/AccordionSection.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/BackLink.\nYou need to install the `@digigov/react-core` library to use this new component.',
16
+ rename: 'BackLink',
17
17
  props: {
18
18
  variant: {
19
19
  error: true
@@ -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: '@digigov/react-core/SectionBreak.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/PhaseBanner.\nYou need to install the `@digigov/react-core` library to use this new component.'
29
+ rename: 'PhaseBanner'
30
30
  });
31
31
  exports.ServiceBadge = ServiceBadge;
32
32
  var _default = ServiceBadge;
@@ -92,5 +92,5 @@ export var APIError = /*#__PURE__*/function (_Error) {
92
92
  return _this2;
93
93
  }
94
94
 
95
- return APIError;
95
+ return _createClass(APIError);
96
96
  }( /*#__PURE__*/_wrapNativeSuper(Error));
@@ -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: '@digigov/react-core/HeaderSection.\nYou need to install the `@digigov/react-core` library to use this new component.'
5
+ rename: 'HeaderSection'
6
6
  });
7
7
  export default HeaderSection;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import PageTitle, { PageTitleHeading } from '@digigov/ui/app/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(),
@@ -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: '@digigov/react-core/Caption.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/AccordionSectionContent.\nYou need to install the `@digigov/react-core` library to use this new component.'
17
+ rename: 'AccordionSectionContent'
18
18
  });
19
19
  export var AccordionItemSummary = withDeprecation(AccordionSectionHeader, {
20
20
  name: 'AccordionItemSummary',
21
- rename: '@digigov/react-core/AccordionSectionHeader.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/AccordionSection.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/BackLink.\nYou need to install the `@digigov/react-core` library to use this new component.',
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: '@digigov/react-core/SectionBreak.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/PhaseBanner.\nYou need to install the `@digigov/react-core` library to use this new component.'
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;
@@ -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: 'Header',
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: '@digigov/react-core/Aside.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/HeadingCaption.\nYou need to install the `@digigov/react-core` library to use this new component.'
5
+ rename: 'HeadingCaption'
6
6
  });
7
7
  export default Caption;
@@ -24,7 +24,7 @@ export var Title = withDeprecation(function (_ref) {
24
24
  }, props), children);
25
25
  }, {
26
26
  name: 'Title',
27
- rename: '@digigov/react-core/Heading.\nYou need to install the `@digigov/react-core` library to use this new component.',
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); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
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"));
@@ -92,5 +92,5 @@ export var APIError = /*#__PURE__*/function (_Error) {
92
92
  return _this2;
93
93
  }
94
94
 
95
- return APIError;
95
+ return _createClass(APIError);
96
96
  }( /*#__PURE__*/_wrapNativeSuper(Error));
@@ -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: '@digigov/react-core/HeaderSection.\nYou need to install the `@digigov/react-core` library to use this new component.'
5
+ rename: 'HeaderSection'
6
6
  });
7
7
  export default HeaderSection;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import PageTitle, { PageTitleHeading } from '@digigov/ui/app/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(),
@@ -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: '@digigov/react-core/Caption.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/AccordionSectionContent.\nYou need to install the `@digigov/react-core` library to use this new component.'
17
+ rename: 'AccordionSectionContent'
18
18
  });
19
19
  export var AccordionItemSummary = withDeprecation(AccordionSectionHeader, {
20
20
  name: 'AccordionItemSummary',
21
- rename: '@digigov/react-core/AccordionSectionHeader.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/AccordionSection.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/BackLink.\nYou need to install the `@digigov/react-core` library to use this new component.',
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: '@digigov/react-core/SectionBreak.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/PhaseBanner.\nYou need to install the `@digigov/react-core` library to use this new component.'
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,4 +1,4 @@
1
- /** @license Digigov v0.9.0
1
+ /** @license Digigov v0.10.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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: 'Header',
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: '@digigov/react-core/Aside.\nYou need to install the `@digigov/react-core` library to use this new component.'
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: '@digigov/react-core/HeadingCaption.\nYou need to install the `@digigov/react-core` library to use this new component.'
5
+ rename: 'HeadingCaption'
6
6
  });
7
7
  export default Caption;
@@ -24,7 +24,7 @@ export var Title = withDeprecation(function (_ref) {
24
24
  }, props), children);
25
25
  }, {
26
26
  name: 'Title',
27
- rename: '@digigov/react-core/Heading.\nYou need to install the `@digigov/react-core` library to use this new component.',
27
+ rename: 'Heading',
28
28
  props: {
29
29
  dense: {
30
30
  error: true