@digigov/ui 0.9.0 → 0.9.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 CHANGED
@@ -1,6 +1,14 @@
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 Thu, 30 Dec 2021 14:11:34 GMT and should not be manually modified.
4
+
5
+ ## 0.9.1
6
+ Thu, 30 Dec 2021 14:11:34 GMT
7
+
8
+ ### Patches
9
+
10
+ - Change name for Content in withDeprecation
11
+ - Change the renames of components using withDeprecation
4
12
 
5
13
  ## 0.9.0
6
14
  Thu, 30 Dec 2021 12:54:03 GMT
@@ -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;
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;
@@ -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;
@@ -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,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
@@ -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;
@@ -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;
package/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Digigov v0.9.0
1
+ /** @license Digigov v0.9.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
@@ -12,7 +12,8 @@ var _Container = _interopRequireDefault(require("@digigov/react-core/Container")
12
12
  var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDeprecation"));
13
13
 
14
14
  var Content = (0, _withDeprecation["default"])(_Container["default"], {
15
- name: 'Header',
15
+ name: 'Content',
16
+ rename: 'Container',
16
17
  props: {
17
18
  maxWidth: {
18
19
  error: true
@@ -13,7 +13,7 @@ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDep
13
13
 
14
14
  var Side = (0, _withDeprecation["default"])(_Aside["default"], {
15
15
  name: 'Side',
16
- rename: '@digigov/react-core/Aside.\nYou need to install the `@digigov/react-core` library to use this new component.'
16
+ rename: 'Aside'
17
17
  });
18
18
  exports.Side = Side;
19
19
  var _default = Side;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/ui",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "@digigov reusable components toolkit",
5
5
  "module": "./esm/index.js",
6
6
  "publishConfig": {
@@ -13,7 +13,7 @@ var _withDeprecation = _interopRequireDefault(require("@digigov/ui/utils/withDep
13
13
 
14
14
  var Caption = (0, _withDeprecation["default"])(_HeadingCaption["default"], {
15
15
  name: 'Caption',
16
- rename: '@digigov/react-core/HeadingCaption.\nYou need to install the `@digigov/react-core` library to use this new component.'
16
+ rename: 'HeadingCaption'
17
17
  });
18
18
  exports.Caption = Caption;
19
19
  var _default = Caption;
@@ -37,7 +37,7 @@ var Title = (0, _withDeprecation["default"])(function (_ref) {
37
37
  }, props), children);
38
38
  }, {
39
39
  name: 'Title',
40
- rename: '@digigov/react-core/Heading.\nYou need to install the `@digigov/react-core` library to use this new component.',
40
+ rename: 'Heading',
41
41
  props: {
42
42
  dense: {
43
43
  error: true