@basic-ui/material 1.0.0-alpha.47 → 1.0.0-alpha.48
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/build/cjs/index.js +10 -10
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Table/Table.js +6 -6
- package/build/esm/Table/Table.js.map +1 -1
- package/build/esm/Table/TableCell.js +2 -2
- package/build/esm/Table/TableCell.js.map +1 -1
- package/build/esm/Table/TableRow.js +3 -3
- package/build/esm/Table/TableRow.js.map +1 -1
- package/build/esm/Table/index.js.map +1 -1
- package/build/tsconfig-build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Table/Table.tsx +7 -7
- package/src/Table/TableCell.tsx +2 -2
- package/src/Table/TableRow.tsx +3 -3
- package/src/Table/index.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basic-ui/material",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.48",
|
|
4
4
|
"description": "Accessible React Components used as building blocks for UI patterns",
|
|
5
5
|
"author": "Lucas Terra <lucasterra7@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0",
|
|
63
63
|
"tailwindcss": "^3.0.0"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "38fd099ab13b9ce7a4df02e9bc634a858cf1782a"
|
|
66
66
|
}
|
package/src/Table/Table.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { forwardRef } from 'react';
|
|
2
2
|
|
|
3
3
|
import type { PaperProps } from '../Paper';
|
|
4
|
-
import {
|
|
4
|
+
import { Box } from '../Box';
|
|
5
5
|
|
|
6
6
|
export type TableProps = PaperProps;
|
|
7
7
|
|
|
@@ -9,20 +9,20 @@ export const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {
|
|
|
9
9
|
const { children, __css, ...rest } = props;
|
|
10
10
|
|
|
11
11
|
return (
|
|
12
|
-
<
|
|
12
|
+
<Box
|
|
13
13
|
ref={ref}
|
|
14
14
|
role="table"
|
|
15
|
-
display="flex"
|
|
16
|
-
width="100%"
|
|
17
|
-
flexDirection="column"
|
|
18
|
-
borderRadius="small"
|
|
19
15
|
__css={{
|
|
16
|
+
display: 'flex',
|
|
17
|
+
width: '100%',
|
|
18
|
+
flexDirection: 'column',
|
|
19
|
+
borderRadius: 'small',
|
|
20
20
|
overflowX: 'auto',
|
|
21
21
|
...__css,
|
|
22
22
|
}}
|
|
23
23
|
{...rest}
|
|
24
24
|
>
|
|
25
25
|
{children}
|
|
26
|
-
</
|
|
26
|
+
</Box>
|
|
27
27
|
);
|
|
28
28
|
});
|
package/src/Table/TableCell.tsx
CHANGED
|
@@ -15,10 +15,10 @@ export const TableCell = forwardRef<HTMLDivElement, TableCellProps>(
|
|
|
15
15
|
return (
|
|
16
16
|
<Box
|
|
17
17
|
ref={ref}
|
|
18
|
-
px={1}
|
|
19
|
-
height={rem(36)}
|
|
20
18
|
role={isHeadCell ? 'columnheader' : 'cell'}
|
|
21
19
|
__css={{
|
|
20
|
+
px: 1,
|
|
21
|
+
height: rem(36),
|
|
22
22
|
whiteSpace: 'nowrap',
|
|
23
23
|
overflow: 'hidden',
|
|
24
24
|
textOverflow: 'ellipsis',
|
package/src/Table/TableRow.tsx
CHANGED
|
@@ -15,12 +15,12 @@ export const TableRow = forwardRef<HTMLDivElement, TableRowProps>(
|
|
|
15
15
|
ref={ref}
|
|
16
16
|
as="div"
|
|
17
17
|
role="row"
|
|
18
|
-
display="flex"
|
|
19
|
-
flexDirection="row"
|
|
20
|
-
width="100%"
|
|
21
18
|
variant="body-medium"
|
|
22
19
|
px={2}
|
|
23
20
|
__css={{
|
|
21
|
+
display: 'flex',
|
|
22
|
+
flexDirection: 'row',
|
|
23
|
+
width: '100%',
|
|
24
24
|
borderBottomStyle: 'solid',
|
|
25
25
|
borderBottomWidth: rem(1),
|
|
26
26
|
borderBottomColor: 'surface-variant',
|
package/src/Table/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Table';
|
|
2
|
-
export * from './TableHead';
|
|
3
|
-
export * from './TableBody';
|
|
4
|
-
export * from './TableCell';
|
|
5
|
-
export * from './TableRow';
|
|
1
|
+
export * from './Table';
|
|
2
|
+
export * from './TableHead';
|
|
3
|
+
export * from './TableBody';
|
|
4
|
+
export * from './TableCell';
|
|
5
|
+
export * from './TableRow';
|