@pingux/astro 2.43.0-alpha.0 → 2.43.0-alpha.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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TableProps } from '../../types';
3
+ declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
4
+ export default Table;
@@ -0,0 +1,5 @@
1
+ import { StoryFn } from '@storybook/react';
2
+ import { TableProps } from '../../types';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ export declare const Default: StoryFn<TableProps>;
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ body: {
3
+ borderTop: string;
4
+ borderTopColor: string;
5
+ borderBottom: string;
6
+ borderBottomColor: string;
7
+ '&& > tr:nth-of-type(odd) ': {
8
+ backgroundColor: string;
9
+ };
10
+ };
11
+ caption: {
12
+ textAlign: string;
13
+ marginBottom: string;
14
+ lineHeight: string;
15
+ };
16
+ container: {
17
+ width: string;
18
+ };
19
+ data: {
20
+ width: string;
21
+ p: string;
22
+ fontSize: string;
23
+ fontWeight: number;
24
+ color: string;
25
+ fontFamily: string;
26
+ display: string;
27
+ overflowWrap: string;
28
+ maxWidth: string;
29
+ wordWrap: string;
30
+ wordBreak: string;
31
+ };
32
+ head: {
33
+ fontWeight: number;
34
+ width: string;
35
+ flexDirection: string;
36
+ p: string;
37
+ fontSize: string;
38
+ color: string;
39
+ fontFamily: string;
40
+ display: string;
41
+ overflowWrap: string;
42
+ maxWidth: string;
43
+ wordWrap: string;
44
+ wordBreak: string;
45
+ };
46
+ row: {
47
+ width: string;
48
+ flexDirection: string;
49
+ };
50
+ };
51
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './Table';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /**
3
+ * Basic TableBody component.
4
+ *
5
+ * Renders HTML `<tbody>`
6
+ *
7
+ * Needs to be a child of the `<Table>` component. Accepts `<TableRow>` as children.
8
+ *
9
+ */
10
+ declare const TableBody: React.ForwardRefExoticComponent<import("../../types").TableChildrenProp & React.RefAttributes<HTMLTableSectionElement>>;
11
+ export default TableBody;
@@ -0,0 +1 @@
1
+ export { default } from './TableBody';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /**
3
+ * Basic TableCaption component.
4
+ *
5
+ * Renders HTML `<caption>`
6
+ *
7
+ * Needs to be a child of the `<Table>` component. Accepts text as children.
8
+ *
9
+ */
10
+ declare const TableCaption: React.ForwardRefExoticComponent<import("../../types").TableChildrenProp & React.RefAttributes<HTMLTableCaptionElement>>;
11
+ export default TableCaption;
@@ -0,0 +1 @@
1
+ export { default } from './TableCaption';
@@ -8,5 +8,5 @@ import { TableCellProps } from '../../types';
8
8
  * Accepts text as children, and needs to have a `<TableRow>` as a parent.
9
9
  *
10
10
  */
11
- declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLDivElement>>;
11
+ declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
12
12
  export default TableCell;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /**
3
+ * TableHead component.
4
+ *
5
+ * Renders a `<thead>` html element.
6
+ *
7
+ * Accepts `<TableRow>` as children. Needs to be wrapped within a `<Table>` component.
8
+ *
9
+ */
10
+ declare const TableHead: React.ForwardRefExoticComponent<import("../../types").TableChildrenProp & React.RefAttributes<HTMLTableSectionElement>>;
11
+ export default TableHead;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './TableHead';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /**
3
+ * TableRow component.
4
+ *
5
+ * Renders a `<tr>` html element.
6
+ *
7
+ * Accepts `<TableCell>` as children. Needs to be wrapped within a `<TableHead>` or a `<TableBody>`.
8
+ *
9
+ */
10
+ declare const TableRow: React.ForwardRefExoticComponent<import("../../types").TableChildrenProp & React.RefAttributes<HTMLTableRowElement>>;
11
+ export default TableRow;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default } from './TableRow';
@@ -11,5 +11,5 @@ export * from './loader';
11
11
  export * from './popoverContainer';
12
12
  export * from './separator';
13
13
  export * from './shared';
14
- export * from './tableCell';
14
+ export * from './table';
15
15
  export * from './text';
@@ -150,14 +150,14 @@ _forEachInstanceProperty(_context13 = _Object$keys(_shared)).call(_context13, fu
150
150
  }
151
151
  });
152
152
  });
153
- var _tableCell = require("./tableCell");
154
- _forEachInstanceProperty(_context14 = _Object$keys(_tableCell)).call(_context14, function (key) {
153
+ var _table = require("./table");
154
+ _forEachInstanceProperty(_context14 = _Object$keys(_table)).call(_context14, function (key) {
155
155
  if (key === "default" || key === "__esModule") return;
156
- if (key in exports && exports[key] === _tableCell[key]) return;
156
+ if (key in exports && exports[key] === _table[key]) return;
157
157
  _Object$defineProperty(exports, key, {
158
158
  enumerable: true,
159
159
  get: function get() {
160
- return _tableCell[key];
160
+ return _table[key];
161
161
  }
162
162
  });
163
163
  });
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ import { TestingAttributes } from './shared/test';
3
+ import { BoxProps } from './box';
4
+ import { DOMAttributes, StyleProps } from './shared';
5
+ export interface TableProps extends BoxProps, TestingAttributes {
6
+ }
7
+ export interface TableChildrenProp extends StyleProps, TestingAttributes {
8
+ children: ReactNode;
9
+ }
10
+ export type TableBodyProps = TableChildrenProp;
11
+ export type TableCaptionProps = TableChildrenProp;
12
+ export type TableHeadProps = TableChildrenProp;
13
+ export type TableRowProps = TableChildrenProp;
14
+ export interface TableCellProps extends StyleProps, DOMAttributes, TestingAttributes {
15
+ /** Determines whether or not the html rendered is a th or td element. */
16
+ isHeading?: boolean;
17
+ }
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["children"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import Box from '../Box';
6
-
7
6
  /**
8
7
  * Basic TableCaption component.
9
8
  *
@@ -3,7 +3,6 @@ import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectW
3
3
  var _excluded = ["children"];
4
4
  import React, { forwardRef } from 'react';
5
5
  import Box from '../Box';
6
-
7
6
  /**
8
7
  * TableHead component.
9
8
  *
@@ -11,5 +11,5 @@ export * from './loader';
11
11
  export * from './popoverContainer';
12
12
  export * from './separator';
13
13
  export * from './shared';
14
- export * from './tableCell';
14
+ export * from './table';
15
15
  export * from './text';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.43.0-alpha.0",
3
+ "version": "2.43.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +0,0 @@
1
- import { DOMAttributes, StyleProps } from './shared';
2
- export interface TableCellProps extends StyleProps, DOMAttributes {
3
- /** Determines whether or not the html rendered is a th or td element. */
4
- isHeading?: boolean;
5
- }
File without changes
File without changes