@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/build/esm/Table/Table.js
CHANGED
|
@@ -2,21 +2,21 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "__css"];
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { Box } from '../Box';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export var Table = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
8
8
|
var children = props.children,
|
|
9
9
|
__css = props.__css,
|
|
10
10
|
rest = _objectWithoutProperties(props, _excluded);
|
|
11
11
|
|
|
12
|
-
return /*#__PURE__*/_jsx(
|
|
12
|
+
return /*#__PURE__*/_jsx(Box, _extends(_extends({
|
|
13
13
|
ref: ref,
|
|
14
14
|
role: "table",
|
|
15
|
-
display: "flex",
|
|
16
|
-
width: "100%",
|
|
17
|
-
flexDirection: "column",
|
|
18
|
-
borderRadius: "small",
|
|
19
15
|
__css: _extends({
|
|
16
|
+
display: 'flex',
|
|
17
|
+
width: '100%',
|
|
18
|
+
flexDirection: 'column',
|
|
19
|
+
borderRadius: 'small',
|
|
20
20
|
overflowX: 'auto'
|
|
21
21
|
}, __css)
|
|
22
22
|
}, rest), {}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","names":["forwardRef","
|
|
1
|
+
{"version":3,"file":"Table.js","names":["forwardRef","Box","Table","props","ref","children","__css","rest","display","width","flexDirection","borderRadius","overflowX"],"sources":["../../../src/Table/Table.tsx"],"sourcesContent":["import { forwardRef } from 'react';\n\nimport type { PaperProps } from '../Paper';\nimport { Box } from '../Box';\n\nexport type TableProps = PaperProps;\n\nexport const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {\n const { children, __css, ...rest } = props;\n\n return (\n <Box\n ref={ref}\n role=\"table\"\n __css={{\n display: 'flex',\n width: '100%',\n flexDirection: 'column',\n borderRadius: 'small',\n overflowX: 'auto',\n ...__css,\n }}\n {...rest}\n >\n {children}\n </Box>\n );\n});\n"],"mappings":";;;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAIA,OAAO,IAAMC,KAAK,gBAAGF,UAAU,CAA6B,UAACG,KAAD,EAAQC,GAAR,EAAgB;EAC1E,IAAQC,QAAR,GAAqCF,KAArC,CAAQE,QAAR;EAAA,IAAkBC,KAAlB,GAAqCH,KAArC,CAAkBG,KAAlB;EAAA,IAA4BC,IAA5B,4BAAqCJ,KAArC;;EAEA,oBACE,KAAC,GAAD;IACE,GAAG,EAAEC,GADP;IAEE,IAAI,EAAC,OAFP;IAGE,KAAK;MACHI,OAAO,EAAE,MADN;MAEHC,KAAK,EAAE,MAFJ;MAGHC,aAAa,EAAE,QAHZ;MAIHC,YAAY,EAAE,OAJX;MAKHC,SAAS,EAAE;IALR,GAMAN,KANA;EAHP,GAWMC,IAXN;IAAA,UAaGF;EAbH,GADF;AAiBD,CApB8B,CAAxB"}
|
|
@@ -13,10 +13,10 @@ export var TableCell = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13
13
|
var isHeadCell = useTableHeadContext();
|
|
14
14
|
return /*#__PURE__*/_jsx(Box, _extends(_extends({
|
|
15
15
|
ref: ref,
|
|
16
|
-
px: 1,
|
|
17
|
-
height: "2.25rem",
|
|
18
16
|
role: isHeadCell ? 'columnheader' : 'cell',
|
|
19
17
|
__css: _extends({
|
|
18
|
+
px: 1,
|
|
19
|
+
height: "2.25rem",
|
|
20
20
|
whiteSpace: 'nowrap',
|
|
21
21
|
overflow: 'hidden',
|
|
22
22
|
textOverflow: 'ellipsis',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","names":["forwardRef","Box","useTableHeadContext","TableCell","props","ref","children","__css","rest","isHeadCell","whiteSpace","overflow","textOverflow","fontWeight","undefined","color","display","alignItems"],"sources":["../../../src/Table/TableCell.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { useTableHeadContext } from './context';\n\nexport type TableCellProps = BoxProps;\n\nexport const TableCell = forwardRef<HTMLDivElement, TableCellProps>(\n (props, ref) => {\n const { children, __css, ...rest } = props;\n const isHeadCell = useTableHeadContext();\n\n return (\n <Box\n ref={ref}\n
|
|
1
|
+
{"version":3,"file":"TableCell.js","names":["forwardRef","Box","useTableHeadContext","TableCell","props","ref","children","__css","rest","isHeadCell","px","height","whiteSpace","overflow","textOverflow","fontWeight","undefined","color","display","alignItems"],"sources":["../../../src/Table/TableCell.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { useTableHeadContext } from './context';\n\nexport type TableCellProps = BoxProps;\n\nexport const TableCell = forwardRef<HTMLDivElement, TableCellProps>(\n (props, ref) => {\n const { children, __css, ...rest } = props;\n const isHeadCell = useTableHeadContext();\n\n return (\n <Box\n ref={ref}\n role={isHeadCell ? 'columnheader' : 'cell'}\n __css={{\n px: 1,\n height: rem(36),\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n fontWeight: isHeadCell ? 'medium' : undefined,\n color: 'on.surface',\n display: 'flex',\n alignItems: 'center',\n ...__css,\n }}\n {...rest}\n >\n {children}\n </Box>\n );\n }\n);\n"],"mappings":";;;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAIA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,mBAAT,QAAoC,WAApC;;AAIA,OAAO,IAAMC,SAAS,gBAAGH,UAAU,CACjC,UAACI,KAAD,EAAQC,GAAR,EAAgB;EACd,IAAQC,QAAR,GAAqCF,KAArC,CAAQE,QAAR;EAAA,IAAkBC,KAAlB,GAAqCH,KAArC,CAAkBG,KAAlB;EAAA,IAA4BC,IAA5B,4BAAqCJ,KAArC;;EACA,IAAMK,UAAU,GAAGP,mBAAmB,EAAtC;EAEA,oBACE,KAAC,GAAD;IACE,GAAG,EAAEG,GADP;IAEE,IAAI,EAAEI,UAAU,GAAG,cAAH,GAAoB,MAFtC;IAGE,KAAK;MACHC,EAAE,EAAE,CADD;MAEHC,MAAM,WAFH;MAGHC,UAAU,EAAE,QAHT;MAIHC,QAAQ,EAAE,QAJP;MAKHC,YAAY,EAAE,UALX;MAMHC,UAAU,EAAEN,UAAU,GAAG,QAAH,GAAcO,SANjC;MAOHC,KAAK,EAAE,YAPJ;MAQHC,OAAO,EAAE,MARN;MASHC,UAAU,EAAE;IATT,GAUAZ,KAVA;EAHP,GAeMC,IAfN;IAAA,UAiBGF;EAjBH,GADF;AAqBD,CA1BgC,CAA5B"}
|
|
@@ -13,12 +13,12 @@ export var TableRow = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
13
13
|
ref: ref,
|
|
14
14
|
as: "div",
|
|
15
15
|
role: "row",
|
|
16
|
-
display: "flex",
|
|
17
|
-
flexDirection: "row",
|
|
18
|
-
width: "100%",
|
|
19
16
|
variant: "body-medium",
|
|
20
17
|
px: 2,
|
|
21
18
|
__css: _extends({
|
|
19
|
+
display: 'flex',
|
|
20
|
+
flexDirection: 'row',
|
|
21
|
+
width: '100%',
|
|
22
22
|
borderBottomStyle: 'solid',
|
|
23
23
|
borderBottomWidth: "0.0625rem",
|
|
24
24
|
borderBottomColor: 'surface-variant',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableRow.js","names":["forwardRef","Text","TableRow","props","ref","children","__css","rest","borderBottomStyle","borderBottomWidth","borderBottomColor","borderBottom"],"sources":["../../../src/Table/TableRow.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { TextProps } from '../Text';\nimport { Text } from '../Text';\n\nexport type TableRowProps = TextProps;\n\nexport const TableRow = forwardRef<HTMLDivElement, TableRowProps>(\n (props, ref) => {\n const { children, __css, ...rest } = props;\n\n return (\n <Text\n ref={ref}\n as=\"div\"\n role=\"row\"\n
|
|
1
|
+
{"version":3,"file":"TableRow.js","names":["forwardRef","Text","TableRow","props","ref","children","__css","rest","display","flexDirection","width","borderBottomStyle","borderBottomWidth","borderBottomColor","borderBottom"],"sources":["../../../src/Table/TableRow.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport { rem } from 'polished';\n\nimport type { TextProps } from '../Text';\nimport { Text } from '../Text';\n\nexport type TableRowProps = TextProps;\n\nexport const TableRow = forwardRef<HTMLDivElement, TableRowProps>(\n (props, ref) => {\n const { children, __css, ...rest } = props;\n\n return (\n <Text\n ref={ref}\n as=\"div\"\n role=\"row\"\n variant=\"body-medium\"\n px={2}\n __css={{\n display: 'flex',\n flexDirection: 'row',\n width: '100%',\n borderBottomStyle: 'solid',\n borderBottomWidth: rem(1),\n borderBottomColor: 'surface-variant',\n '&:last-of-type': {\n borderBottom: 'none',\n },\n ...__css,\n }}\n {...rest}\n >\n {children}\n </Text>\n );\n }\n);\n"],"mappings":";;;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAIA,SAASC,IAAT,QAAqB,SAArB;;AAIA,OAAO,IAAMC,QAAQ,gBAAGF,UAAU,CAChC,UAACG,KAAD,EAAQC,GAAR,EAAgB;EACd,IAAQC,QAAR,GAAqCF,KAArC,CAAQE,QAAR;EAAA,IAAkBC,KAAlB,GAAqCH,KAArC,CAAkBG,KAAlB;EAAA,IAA4BC,IAA5B,4BAAqCJ,KAArC;;EAEA,oBACE,KAAC,IAAD;IACE,GAAG,EAAEC,GADP;IAEE,EAAE,EAAC,KAFL;IAGE,IAAI,EAAC,KAHP;IAIE,OAAO,EAAC,aAJV;IAKE,EAAE,EAAE,CALN;IAME,KAAK;MACHI,OAAO,EAAE,MADN;MAEHC,aAAa,EAAE,KAFZ;MAGHC,KAAK,EAAE,MAHJ;MAIHC,iBAAiB,EAAE,OAJhB;MAKHC,iBAAiB,aALd;MAMHC,iBAAiB,EAAE,iBANhB;MAOH,kBAAkB;QAChBC,YAAY,EAAE;MADE;IAPf,GAUAR,KAVA;EANP,GAkBMC,IAlBN;IAAA,UAoBGF;EApBH,GADF;AAwBD,CA5B+B,CAA3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/Table/index.ts"],"sourcesContent":["export * from './Table';\
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/Table/index.ts"],"sourcesContent":["export * from './Table';\nexport * from './TableHead';\nexport * from './TableBody';\nexport * from './TableCell';\nexport * from './TableRow';\n"],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,aAAd;AACA,cAAc,aAAd;AACA,cAAc,aAAd;AACA,cAAc,YAAd"}
|