@pingux/astro 2.17.0-alpha.1 → 2.17.0-alpha.2

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.
@@ -1,5 +1,6 @@
1
1
  export * from './box';
2
2
  export * from './icon';
3
+ export * from './item';
3
4
  export * from './loader';
4
5
  export * from './popoverContainer';
5
6
  export * from './shared';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _context, _context2, _context3, _context4, _context5, _context6, _context7;
3
+ var _context, _context2, _context3, _context4, _context5, _context6, _context7, _context8;
4
4
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
5
5
  var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
6
6
  var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
@@ -29,8 +29,19 @@ _forEachInstanceProperty(_context2 = _Object$keys(_icon)).call(_context2, functi
29
29
  }
30
30
  });
31
31
  });
32
+ var _item = require("./item");
33
+ _forEachInstanceProperty(_context3 = _Object$keys(_item)).call(_context3, function (key) {
34
+ if (key === "default" || key === "__esModule") return;
35
+ if (key in exports && exports[key] === _item[key]) return;
36
+ _Object$defineProperty(exports, key, {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _item[key];
40
+ }
41
+ });
42
+ });
32
43
  var _loader = require("./loader");
33
- _forEachInstanceProperty(_context3 = _Object$keys(_loader)).call(_context3, function (key) {
44
+ _forEachInstanceProperty(_context4 = _Object$keys(_loader)).call(_context4, function (key) {
34
45
  if (key === "default" || key === "__esModule") return;
35
46
  if (key in exports && exports[key] === _loader[key]) return;
36
47
  _Object$defineProperty(exports, key, {
@@ -41,7 +52,7 @@ _forEachInstanceProperty(_context3 = _Object$keys(_loader)).call(_context3, func
41
52
  });
42
53
  });
43
54
  var _popoverContainer = require("./popoverContainer");
44
- _forEachInstanceProperty(_context4 = _Object$keys(_popoverContainer)).call(_context4, function (key) {
55
+ _forEachInstanceProperty(_context5 = _Object$keys(_popoverContainer)).call(_context5, function (key) {
45
56
  if (key === "default" || key === "__esModule") return;
46
57
  if (key in exports && exports[key] === _popoverContainer[key]) return;
47
58
  _Object$defineProperty(exports, key, {
@@ -52,7 +63,7 @@ _forEachInstanceProperty(_context4 = _Object$keys(_popoverContainer)).call(_cont
52
63
  });
53
64
  });
54
65
  var _shared = require("./shared");
55
- _forEachInstanceProperty(_context5 = _Object$keys(_shared)).call(_context5, function (key) {
66
+ _forEachInstanceProperty(_context6 = _Object$keys(_shared)).call(_context6, function (key) {
56
67
  if (key === "default" || key === "__esModule") return;
57
68
  if (key in exports && exports[key] === _shared[key]) return;
58
69
  _Object$defineProperty(exports, key, {
@@ -63,7 +74,7 @@ _forEachInstanceProperty(_context5 = _Object$keys(_shared)).call(_context5, func
63
74
  });
64
75
  });
65
76
  var _tableCell = require("./tableCell");
66
- _forEachInstanceProperty(_context6 = _Object$keys(_tableCell)).call(_context6, function (key) {
77
+ _forEachInstanceProperty(_context7 = _Object$keys(_tableCell)).call(_context7, function (key) {
67
78
  if (key === "default" || key === "__esModule") return;
68
79
  if (key in exports && exports[key] === _tableCell[key]) return;
69
80
  _Object$defineProperty(exports, key, {
@@ -74,7 +85,7 @@ _forEachInstanceProperty(_context6 = _Object$keys(_tableCell)).call(_context6, f
74
85
  });
75
86
  });
76
87
  var _text = require("./text");
77
- _forEachInstanceProperty(_context7 = _Object$keys(_text)).call(_context7, function (key) {
88
+ _forEachInstanceProperty(_context8 = _Object$keys(_text)).call(_context8, function (key) {
78
89
  if (key === "default" || key === "__esModule") return;
79
90
  if (key in exports && exports[key] === _text[key]) return;
80
91
  _Object$defineProperty(exports, key, {
@@ -0,0 +1,29 @@
1
+ import { CSSProperties, ElementType } from 'react';
2
+ import type { ItemProps } from '@react-types/shared';
3
+ import { DOMAttributes, StyleProps } from './shared';
4
+ export interface StylingProps extends DOMAttributes, StyleProps {
5
+ style?: CSSProperties | string;
6
+ }
7
+ declare module '@react-types/shared' {
8
+ interface ItemProps<T> extends StyleProps, DOMAttributes {
9
+ /** The rendered label for the item. */
10
+ label?: string;
11
+ /** Props for the accordion item content element. */
12
+ regionProps?: StylingProps;
13
+ /** Props for the accordion item content element. */
14
+ containerProps?: StylingProps;
15
+ /** Whether the item has a separator */
16
+ isSeparator?: boolean;
17
+ /** Whether the item is pressed */
18
+ isPressed?: boolean;
19
+ /** The HTML element type that will be used to render the item. */
20
+ elementType?: string | ElementType;
21
+ /** Indicates the status of item */
22
+ status?: 'default' | 'error' | 'success' | 'warning';
23
+ /** A URL to link to if elementType="a". */
24
+ href?: string;
25
+ /** Inline styling prop for item */
26
+ sx?: StylingProps;
27
+ }
28
+ }
29
+ export default ItemProps;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
@@ -1,5 +1,6 @@
1
1
  export * from './box';
2
2
  export * from './icon';
3
+ export * from './item';
3
4
  export * from './loader';
4
5
  export * from './popoverContainer';
5
6
  export * from './shared';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.17.0-alpha.1",
3
+ "version": "2.17.0-alpha.2",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -75,6 +75,7 @@
75
75
  "@react-stately/list": "~3.4.1",
76
76
  "@react-stately/table": "~3.3.0",
77
77
  "@react-stately/virtualizer": "^3.2.1",
78
+ "@react-types/shared": "^3.20.0",
78
79
  "@storybook/addon-actions": "^7.1.0",
79
80
  "@storybook/api": "^7.1.0",
80
81
  "@storybook/components": "^7.1.0",