@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.
- package/lib/cjs/components/Table/Table.d.ts +4 -0
- package/lib/cjs/components/Table/Table.stories.d.ts +5 -0
- package/lib/cjs/components/Table/Table.styles.d.ts +51 -0
- package/lib/cjs/components/Table/Table.test.d.ts +1 -0
- package/lib/cjs/components/Table/index.d.ts +1 -0
- package/lib/cjs/components/TableBody/TableBody.d.ts +11 -0
- package/lib/cjs/components/TableBody/index.d.ts +1 -0
- package/lib/cjs/components/TableCaption/TableCaption.d.ts +11 -0
- package/lib/cjs/components/TableCaption/TableCaption.test.d.ts +1 -0
- package/lib/cjs/components/TableCaption/index.d.ts +1 -0
- package/lib/cjs/components/TableCell/TableCell.d.ts +1 -1
- package/lib/cjs/components/TableHead/TableHead.d.ts +11 -0
- package/lib/cjs/components/TableHead/TableHead.test.d.ts +1 -0
- package/lib/cjs/components/TableHead/index.d.ts +1 -0
- package/lib/cjs/components/TableRow/TableRow.d.ts +11 -0
- package/lib/cjs/components/TableRow/TableRow.test.d.ts +1 -0
- package/lib/cjs/components/TableRow/index.d.ts +1 -0
- package/lib/cjs/types/index.d.ts +1 -1
- package/lib/cjs/types/index.js +4 -4
- package/lib/cjs/types/table.d.ts +17 -0
- package/lib/components/TableCaption/TableCaption.js +0 -1
- package/lib/components/TableHead/TableHead.js +0 -1
- package/lib/types/index.js +1 -1
- package/package.json +1 -1
- package/lib/cjs/types/tableCell.d.ts +0 -5
- /package/lib/cjs/types/{tableCell.js → table.js} +0 -0
- /package/lib/types/{tableCell.js → table.js} +0 -0
@@ -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 {};
|
@@ -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<
|
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';
|
package/lib/cjs/types/index.d.ts
CHANGED
package/lib/cjs/types/index.js
CHANGED
@@ -150,14 +150,14 @@ _forEachInstanceProperty(_context13 = _Object$keys(_shared)).call(_context13, fu
|
|
150
150
|
}
|
151
151
|
});
|
152
152
|
});
|
153
|
-
var
|
154
|
-
_forEachInstanceProperty(_context14 = _Object$keys(
|
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] ===
|
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
|
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
|
+
}
|
package/lib/types/index.js
CHANGED
package/package.json
CHANGED
File without changes
|
File without changes
|