@pingux/astro 1.1.0-alpha.8 → 1.1.0-alpha.9

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.1.0-alpha.9](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.8...@pingux/astro@1.1.0-alpha.9) (2022-01-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * [UIP-5111] Deprecate List Component ([3cd9b69](https://gitlab.corp.pingidentity.com/ux/pingux/commit/3cd9b699c48ac43e34d9cfd61b07f33b4b7d4fc4))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.1.0-alpha.8](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.7...@pingux/astro@1.1.0-alpha.8) (2022-01-24)
7
18
 
8
19
 
@@ -20,6 +20,8 @@ var _react = _interopRequireWildcard(require("react"));
20
20
 
21
21
  var _Box = _interopRequireDefault(require("../Box/Box"));
22
22
 
23
+ var _hooks = require("../../hooks");
24
+
23
25
  var _react2 = require("@emotion/react");
24
26
 
25
27
  /**
@@ -29,6 +31,7 @@ var _react2 = require("@emotion/react");
29
31
  var List = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
30
32
  var children = props.children,
31
33
  others = (0, _objectWithoutProperties2["default"])(props, ["children"]);
34
+ (0, _hooks.useDeprecationWarning)('The List component will be deprecated in Astro-UI 2.0.0, use ListView instead.');
32
35
  return (0, _react2.jsx)(_Box["default"], (0, _extends2["default"])({
33
36
  ref: ref,
34
37
  role: "list",
@@ -20,11 +20,16 @@ var _Text = _interopRequireDefault(require("../Text"));
20
20
 
21
21
  var _Separator = _interopRequireDefault(require("../Separator"));
22
22
 
23
+ var _withDeprecationWarning = _interopRequireDefault(require("../../utils/devUtils/decorators/withDeprecationWarning"));
24
+
23
25
  var _react2 = require("@emotion/react");
24
26
 
25
27
  var _default = {
26
- title: 'List',
27
- component: [_["default"], _ListItem["default"]]
28
+ title: 'Deprecated/List',
29
+ component: [_["default"], _ListItem["default"]],
30
+ decorators: [function (Story, context) {
31
+ return (0, _withDeprecationWarning["default"])(Story, context, 'The `List` component will be deprecated in Astro-UI 2.0.0, use `ListView` instead.');
32
+ }]
28
33
  };
29
34
  exports["default"] = _default;
30
35
 
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
3
3
  import React, { forwardRef } from 'react';
4
4
  import Box from '../Box/Box';
5
+ import { useDeprecationWarning } from '../../hooks';
5
6
  /**
6
7
  * The intended use of List is to hold a collection of <ListItem/> components.
7
8
  * Accepts most of the styling props from [styled-system](https://styled-system.com/table).
@@ -12,6 +13,7 @@ var List = /*#__PURE__*/forwardRef(function (props, ref) {
12
13
  var children = props.children,
13
14
  others = _objectWithoutProperties(props, ["children"]);
14
15
 
16
+ useDeprecationWarning('The List component will be deprecated in Astro-UI 2.0.0, use ListView instead.');
15
17
  return ___EmotionJSX(Box, _extends({
16
18
  ref: ref,
17
19
  role: "list",
@@ -3,10 +3,14 @@ import List from '.';
3
3
  import ListItem from '../ListItem';
4
4
  import Text from '../Text';
5
5
  import Separator from '../Separator';
6
+ import withDeprecationWarning from '../../utils/devUtils/decorators/withDeprecationWarning';
6
7
  import { jsx as ___EmotionJSX } from "@emotion/react";
7
8
  export default {
8
- title: 'List',
9
- component: [List, ListItem]
9
+ title: 'Deprecated/List',
10
+ component: [List, ListItem],
11
+ decorators: [function (Story, context) {
12
+ return withDeprecationWarning(Story, context, 'The `List` component will be deprecated in Astro-UI 2.0.0, use `ListView` instead.');
13
+ }]
10
14
  };
11
15
  export var Default = function Default() {
12
16
  return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(Text, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.1.0-alpha.8",
3
+ "version": "1.1.0-alpha.9",
4
4
  "description": "PingUX themeable React component library",
5
5
  "author": "uxdev@pingidentity.com",
6
6
  "license": "Apache-2.0",