@basic-ui/material 1.0.0-alpha.47 → 1.0.0-alpha.49

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.
@@ -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 { Paper } from '../Paper';
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(Paper, _extends(_extends({
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","Paper","Table","props","ref","children","__css","rest","overflowX"],"sources":["../../../src/Table/Table.tsx"],"sourcesContent":["import { forwardRef } from 'react';\n\nimport type { PaperProps } from '../Paper';\nimport { Paper } from '../Paper';\n\nexport type TableProps = PaperProps;\n\nexport const Table = forwardRef<HTMLDivElement, TableProps>((props, ref) => {\n const { children, __css, ...rest } = props;\n\n return (\n <Paper\n ref={ref}\n role=\"table\"\n display=\"flex\"\n width=\"100%\"\n flexDirection=\"column\"\n borderRadius=\"small\"\n __css={{\n overflowX: 'auto',\n ...__css,\n }}\n {...rest}\n >\n {children}\n </Paper>\n );\n});\n"],"mappings":";;;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,KAAT,QAAsB,UAAtB;;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,KAAD;IACE,GAAG,EAAEC,GADP;IAEE,IAAI,EAAC,OAFP;IAGE,OAAO,EAAC,MAHV;IAIE,KAAK,EAAC,MAJR;IAKE,aAAa,EAAC,QALhB;IAME,YAAY,EAAC,OANf;IAOE,KAAK;MACHI,SAAS,EAAE;IADR,GAEAF,KAFA;EAPP,GAWMC,IAXN;IAAA,UAaGF;EAbH,GADF;AAiBD,CApB8B,CAAxB"}
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 px={1}\n height={rem(36)}\n role={isHeadCell ? 'columnheader' : 'cell'}\n __css={{\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,EAAE,EAAE,CAFN;IAGE,MAAM,WAHR;IAIE,IAAI,EAAEI,UAAU,GAAG,cAAH,GAAoB,MAJtC;IAKE,KAAK;MACHC,UAAU,EAAE,QADT;MAEHC,QAAQ,EAAE,QAFP;MAGHC,YAAY,EAAE,UAHX;MAIHC,UAAU,EAAEJ,UAAU,GAAG,QAAH,GAAcK,SAJjC;MAKHC,KAAK,EAAE,YALJ;MAMHC,OAAO,EAAE,MANN;MAOHC,UAAU,EAAE;IAPT,GAQAV,KARA;EALP,GAeMC,IAfN;IAAA,UAiBGF;EAjBH,GADF;AAqBD,CA1BgC,CAA5B"}
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 display=\"flex\"\n flexDirection=\"row\"\n width=\"100%\"\n variant=\"body-medium\"\n px={2}\n __css={{\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,MAJV;IAKE,aAAa,EAAC,KALhB;IAME,KAAK,EAAC,MANR;IAOE,OAAO,EAAC,aAPV;IAQE,EAAE,EAAE,CARN;IASE,KAAK;MACHI,iBAAiB,EAAE,OADhB;MAEHC,iBAAiB,aAFd;MAGHC,iBAAiB,EAAE,iBAHhB;MAIH,kBAAkB;QAChBC,YAAY,EAAE;MADE;IAJf,GAOAL,KAPA;EATP,GAkBMC,IAlBN;IAAA,UAoBGF;EApBH,GADF;AAwBD,CA5B+B,CAA3B"}
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';\r\nexport * from './TableHead';\r\nexport * from './TableBody';\r\nexport * from './TableCell';\r\nexport * from './TableRow';\r\n"],"mappings":"AAAA,cAAc,SAAd;AACA,cAAc,aAAd;AACA,cAAc,aAAd;AACA,cAAc,aAAd;AACA,cAAc,YAAd"}
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"}