@itera-web/react-ui-table 1.20.0

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/LICENSE.md ADDED
File without changes
package/README.md ADDED
@@ -0,0 +1 @@
1
+ ### [使用文档](http://iterative.keyboardecho.com/)
package/es/Table.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
package/es/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption } from './Table';
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ import*as e from"react";import*as a from"@itera-web/utils-cn";var r={d:(e,a)=>{for(var t in a)r.o(a,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a)},t={};r.d(t,{iA:()=>c,RM:()=>f,Rn:()=>p,pj:()=>u,yt:()=>d,ss:()=>b,xD:()=>m,SC:()=>i});const l=(e=>{var a={};return r.d(a,e),a})({createElement:()=>e.createElement,forwardRef:()=>e.forwardRef});const o=(e=>{var a={};return r.d(a,e),a})({cn:()=>a.cn});var s=function(){return s=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var l in a=arguments[r])Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l]);return e},s.apply(this,arguments)},n=function(e,a){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(t=Object.getOwnPropertySymbols(e);l<t.length;l++)a.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]])}return r},c=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("div",{className:"relative w-full h-full overflow-auto"},l.createElement("table",s({className:(0,o.cn)("w-full h-full caption-bottom text-sm",r),ref:a},t)))});c.displayName="Table";var m=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("thead",s({className:(0,o.cn)("[&_tr]:border-b",r),ref:a},t))});m.displayName="TableHeader";var f=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("tbody",s({className:(0,o.cn)("[&_tr:last-child]:border-0",r),ref:a},t))});f.displayName="TableBody";var d=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("tfoot",s({className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),ref:a},t))});d.displayName="TableFooter";var i=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("tr",s({className:(0,o.cn)("border-b border-border transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),ref:a},t))});i.displayName="TableRow";var b=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("th",s({className:(0,o.cn)("h-12 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r),ref:a},t))});b.displayName="TableHead";var u=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("td",s({className:(0,o.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0",r),ref:a},t))});u.displayName="TableCell";var p=l.forwardRef(function(e,a){var r=e.className,t=n(e,["className"]);return l.createElement("caption",s({className:(0,o.cn)("mt-4 text-sm text-muted-foreground",r),ref:a},t))});p.displayName="TableCaption";var N=t.iA,v=t.RM,y=t.Rn,w=t.pj,h=t.yt,R=t.ss,T=t.xD,O=t.SC;export{N as Table,v as TableBody,y as TableCaption,w as TableCell,h as TableFooter,R as TableHead,T as TableHeader,O as TableRow};
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@itera-web/react-ui-table",
3
+ "description": "表格",
4
+ "version": "1.20.0",
5
+ "main": "es/index.js",
6
+ "types": "es/index.d.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "license": "MIT",
11
+ "scripts": {
12
+ "build": "itera-cli package",
13
+ "up": "npm publish"
14
+ },
15
+ "dependencies": {
16
+ "@itera-web/utils-cn": "^1.20.0"
17
+ },
18
+ "peerDependencies": {
19
+ "react": ">=17.0.0",
20
+ "react-dom": ">=17.0.0"
21
+ },
22
+ "devDependencies": {
23
+ "@itera-web/cli": "^1.1.45"
24
+ },
25
+ "gitHead": "691b2592db8668e5d52c9712bb906484b92cb79b"
26
+ }