@gbmtech/aurora-ui 0.6.86 → 0.6.88

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.
@@ -1 +1 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataTable:()=>DataTable});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_table_namespaceObject=require("@tanstack/react-table"),external_data_table_pagination_cjs_namespaceObject=require("./data-table-pagination.cjs"),external_table_cjs_namespaceObject=require("../table.cjs"),data_table_cjs_namespaceObject=require("../../lib/data-table.cjs"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_context_menu_cjs_namespaceObject=require("../context-menu.cjs");function DataTable({table:e,actionBar:a,onRowClick:t,contextMenuOptions:_,children:c,className:n,classNames:l,hasPagination:s=!0,hasPinningWithBorder:r=!1,...b}){return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex w-full flex-col gap-2.5 overflow-auto",n),...b,children:[c,(0,jsx_runtime_namespaceObject.jsxs)(external_table_cjs_namespaceObject.Table,{classNames:{wrapper:l?.table?.wrapper},children:[(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableHeader,{className:l?.table?.header,children:e.getHeaderGroups().map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow,{className:l?.table?.row,children:e.headers.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableHead,{colSpan:e.colSpan,style:{...(0,data_table_cjs_namespaceObject.getCommonPinningStyles)({column:e.column,withBorder:r})},className:l?.table?.head,children:e.isPlaceholder?null:(0,react_table_namespaceObject.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableBody,{children:e.getRowModel().rows?.length?e.getRowModel().rows.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(external_context_menu_cjs_namespaceObject.ContextMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_context_menu_cjs_namespaceObject.ContextMenuTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow,{"data-state":e.getIsSelected()&&"selected",onClick:()=>t?.(e.original),className:(0,utils_cjs_namespaceObject.cn)(l?.table?.row,t&&e.getIsSelected()&&"border-primary"),children:e.getVisibleCells().map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell,{style:{...(0,data_table_cjs_namespaceObject.getCommonPinningStyles)({column:e.column,withBorder:r})},className:l?.table?.cell,children:(0,react_table_namespaceObject.flexRender)(e.column.columnDef.cell,e.getContext())},e.id))},e.id)}),_&&(0,jsx_runtime_namespaceObject.jsx)(external_context_menu_cjs_namespaceObject.ContextMenuContent,{children:_(e.original).map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_context_menu_cjs_namespaceObject.ContextMenuItem,{onClick:e.onClick,children:e.label},e.label))})]},e.id)):(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow,{children:(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell,{colSpan:e.getAllColumns().length,className:"h-24 text-center",children:"Nenhum resultado"})})})]}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex flex-col gap-2.5",children:[s&&(0,jsx_runtime_namespaceObject.jsx)(external_data_table_pagination_cjs_namespaceObject.DataTablePagination,{table:e}),a&&e.getFilteredSelectedRowModel().rows.length>0&&a]})]})}for(var __webpack_i__ in exports.DataTable=__webpack_exports__.DataTable,__webpack_exports__)-1===["DataTable"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DataTable:()=>DataTable});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_table_namespaceObject=require("@tanstack/react-table"),external_data_table_pagination_cjs_namespaceObject=require("./data-table-pagination.cjs"),external_table_cjs_namespaceObject=require("../table.cjs"),data_table_cjs_namespaceObject=require("../../lib/data-table.cjs"),utils_cjs_namespaceObject=require("../../lib/utils.cjs"),external_context_menu_cjs_namespaceObject=require("../context-menu.cjs");function DataTable({table:e,actionBar:a,onRowClick:t,contextMenuOptions:_,children:c,className:n,classNames:l,getRowClassName:s,getCellClassName:r,hasPagination:b=!0,hasPinningWithBorder:i=!1,...j}){return(0,jsx_runtime_namespaceObject.jsxs)("div",{className:(0,utils_cjs_namespaceObject.cn)("flex w-full flex-col gap-2.5 overflow-auto",n),...j,children:[c,(0,jsx_runtime_namespaceObject.jsxs)(external_table_cjs_namespaceObject.Table,{classNames:{wrapper:l?.table?.wrapper},children:[(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableHeader,{className:l?.table?.header,children:e.getHeaderGroups().map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow,{className:l?.table?.row,children:e.headers.map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableHead,{colSpan:e.colSpan,style:{...(0,data_table_cjs_namespaceObject.getCommonPinningStyles)({column:e.column,withBorder:i})},className:l?.table?.head,children:e.isPlaceholder?null:(0,react_table_namespaceObject.flexRender)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableBody,{children:e.getRowModel().rows?.length?e.getRowModel().rows.map(e=>(0,jsx_runtime_namespaceObject.jsxs)(external_context_menu_cjs_namespaceObject.ContextMenu,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_context_menu_cjs_namespaceObject.ContextMenuTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow,{"data-state":e.getIsSelected()&&"selected",onClick:()=>t?.(e.original),className:(0,utils_cjs_namespaceObject.cn)(l?.table?.row,t&&e.getIsSelected()&&"border-primary",s?.(e.original)),children:e.getVisibleCells().map(a=>(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell,{style:{...(0,data_table_cjs_namespaceObject.getCommonPinningStyles)({column:a.column,withBorder:i})},className:(0,utils_cjs_namespaceObject.cn)(l?.table?.cell,r?.(e.original,a.column.id,a.getValue())),children:(0,react_table_namespaceObject.flexRender)(a.column.columnDef.cell,a.getContext())},a.id))},e.id)}),_&&(0,jsx_runtime_namespaceObject.jsx)(external_context_menu_cjs_namespaceObject.ContextMenuContent,{children:_(e.original).map(e=>(0,jsx_runtime_namespaceObject.jsx)(external_context_menu_cjs_namespaceObject.ContextMenuItem,{onClick:e.onClick,children:e.label},e.label))})]},e.id)):(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow,{children:(0,jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell,{colSpan:e.getAllColumns().length,className:"h-24 text-center",children:"Nenhum resultado"})})})]}),(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex flex-col gap-2.5",children:[b&&(0,jsx_runtime_namespaceObject.jsx)(external_data_table_pagination_cjs_namespaceObject.DataTablePagination,{table:e}),a&&e.getFilteredSelectedRowModel().rows.length>0&&a]})]})}for(var __webpack_i__ in exports.DataTable=__webpack_exports__.DataTable,__webpack_exports__)-1===["DataTable"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -17,9 +17,11 @@ interface DataTableProps<TData> extends React.ComponentProps<'div'> {
17
17
  cell?: string;
18
18
  };
19
19
  };
20
+ getRowClassName?: (row: TData) => string;
21
+ getCellClassName?: (row: TData, columnId: string, value: unknown) => string;
20
22
  hasPagination?: boolean;
21
23
  hasPinningWithBorder?: boolean;
22
24
  }
23
- export declare function DataTable<TData>({ table, actionBar, onRowClick, contextMenuOptions, children, className, classNames, hasPagination, hasPinningWithBorder, ...props }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
25
+ export declare function DataTable<TData>({ table, actionBar, onRowClick, contextMenuOptions, children, className, classNames, getRowClassName, getCellClassName, hasPagination, hasPinningWithBorder, ...props }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
24
26
  export {};
25
27
  //# sourceMappingURL=data-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAmBnC,UAAU,cAAc,CAAC,KAAK,CAAE,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAA;IACjC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAA;IAC7E,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,GAAG,CAAC,EAAE,MAAM,CAAA;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAC/B,KAAK,EACL,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,aAAoB,EACpB,oBAA4B,EAC5B,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,2CAyGvB"}
1
+ {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAmBnC,UAAU,cAAc,CAAC,KAAK,CAAE,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAA;IACjC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAA;IAC7E,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,GAAG,CAAC,EAAE,MAAM,CAAA;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,CAAA;IACxC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAC/B,KAAK,EACL,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,aAAoB,EACpB,oBAA4B,EAC5B,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,2CAiHvB"}
@@ -1 +1 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"./data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"./data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"@/components/data-table/data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"@/components/data-table/data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"./data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"@/components/data-table/data-table-view-options":function(e){e.exports=require("./data-table-view-options.cjs")},"./data-table":function(e){e.exports=require("./data-table.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table"),_={};for(var a in e)"default"!==a&&(_[a]=(function(_){return e[_]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./data-table-action-bar"),_={};for(var a in r)"default"!==a&&(_[a]=(function(e){return r[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./data-table-advanced-toolbar"),_={};for(var a in t)"default"!==a&&(_[a]=(function(e){return t[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./data-table-column-header"),_={};for(var a in i)"default"!==a&&(_[a]=(function(e){return i[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("./data-table-date-filter"),_={};for(var a in n)"default"!==a&&(_[a]=(function(e){return n[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./data-table-faceted-filter"),_={};for(var a in o)"default"!==a&&(_[a]=(function(e){return o[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./data-table-filter-list"),_={};for(var a in c)"default"!==a&&(_[a]=(function(e){return c[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var b=__webpack_require__("./data-table-filter-menu"),_={};for(var a in b)"default"!==a&&(_[a]=(function(e){return b[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("@/components/data-table/data-table-pagination"),_={};for(var a in u)"default"!==a&&(_[a]=(function(e){return u[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var d=__webpack_require__("@/components/data-table/data-table-range-filter"),_={};for(var a in d)"default"!==a&&(_[a]=(function(e){return d[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./data-table-skeleton"),_={};for(var a in p)"default"!==a&&(_[a]=(function(e){return p[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var l=__webpack_require__("./data-table-slider-filter"),_={};for(var a in l)"default"!==a&&(_[a]=(function(e){return l[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var f=__webpack_require__("./data-table-sort-list"),_={};for(var a in f)"default"!==a&&(_[a]=(function(e){return f[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("./data-table-toolbar"),_={};for(var a in s)"default"!==a&&(_[a]=(function(e){return s[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var w=__webpack_require__("@/components/data-table/data-table-view-options"),_={};for(var a in w)"default"!==a&&(_[a]=(function(e){return w[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_modules__={"./data-table-action-bar":function(e){e.exports=require("./data-table-action-bar.cjs")},"./data-table-advanced-toolbar":function(e){e.exports=require("./data-table-advanced-toolbar.cjs")},"./data-table-column-header":function(e){e.exports=require("./data-table-column-header.cjs")},"@/components/data-table/data-table-date-filter":function(e){e.exports=require("./data-table-date-filter.cjs")},"@/components/data-table/data-table-faceted-filter":function(e){e.exports=require("./data-table-faceted-filter.cjs")},"./data-table-filter-list":function(e){e.exports=require("./data-table-filter-list.cjs")},"./data-table-filter-menu":function(e){e.exports=require("./data-table-filter-menu.cjs")},"./data-table-pagination":function(e){e.exports=require("./data-table-pagination.cjs")},"./data-table-range-filter":function(e){e.exports=require("./data-table-range-filter.cjs")},"./data-table-skeleton":function(e){e.exports=require("./data-table-skeleton.cjs")},"@/components/data-table/data-table-slider-filter":function(e){e.exports=require("./data-table-slider-filter.cjs")},"./data-table-sort-list":function(e){e.exports=require("./data-table-sort-list.cjs")},"./data-table-toolbar":function(e){e.exports=require("./data-table-toolbar.cjs")},"@/components/data-table/data-table-view-options":function(e){e.exports=require("./data-table-view-options.cjs")},"./data-table":function(e){e.exports=require("./data-table.cjs")}},__webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](a,a.exports,__webpack_require__),a.exports}__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};for(var __webpack_i__ in(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./data-table"),_={};for(var a in e)"default"!==a&&(_[a]=(function(_){return e[_]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./data-table-action-bar"),_={};for(var a in r)"default"!==a&&(_[a]=(function(e){return r[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./data-table-advanced-toolbar"),_={};for(var a in t)"default"!==a&&(_[a]=(function(e){return t[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./data-table-column-header"),_={};for(var a in i)"default"!==a&&(_[a]=(function(e){return i[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var n=__webpack_require__("@/components/data-table/data-table-date-filter"),_={};for(var a in n)"default"!==a&&(_[a]=(function(e){return n[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("@/components/data-table/data-table-faceted-filter"),_={};for(var a in o)"default"!==a&&(_[a]=(function(e){return o[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./data-table-filter-list"),_={};for(var a in c)"default"!==a&&(_[a]=(function(e){return c[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var b=__webpack_require__("./data-table-filter-menu"),_={};for(var a in b)"default"!==a&&(_[a]=(function(e){return b[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./data-table-pagination"),_={};for(var a in u)"default"!==a&&(_[a]=(function(e){return u[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var d=__webpack_require__("./data-table-range-filter"),_={};for(var a in d)"default"!==a&&(_[a]=(function(e){return d[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./data-table-skeleton"),_={};for(var a in p)"default"!==a&&(_[a]=(function(e){return p[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var l=__webpack_require__("@/components/data-table/data-table-slider-filter"),_={};for(var a in l)"default"!==a&&(_[a]=(function(e){return l[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var f=__webpack_require__("./data-table-sort-list"),_={};for(var a in f)"default"!==a&&(_[a]=(function(e){return f[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("./data-table-toolbar"),_={};for(var a in s)"default"!==a&&(_[a]=(function(e){return s[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_);var w=__webpack_require__("@/components/data-table/data-table-view-options"),_={};for(var a in w)"default"!==a&&(_[a]=(function(e){return w[e]}).bind(0,a));__webpack_require__.d(__webpack_exports__,_)})(),__webpack_exports__)exports[__webpack_i__]=__webpack_exports__[__webpack_i__];Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1 +1 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TableHead:()=>TableHead,TableFooter:()=>TableFooter,TableRow:()=>TableRow,TableCaption:()=>TableCaption,TableHeader:()=>TableHeader,TableBody:()=>TableBody,TableCell:()=>TableCell,Table:()=>Table});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Table({className:e,classNames:a,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:"overflow-hidden rounded-md border",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("relative w-full overflow-auto",a?.wrapper),"data-slot":"table-container",children:(0,jsx_runtime_namespaceObject.jsx)("table",{className:(0,utils_cjs_namespaceObject.cn)("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})})}function TableHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("thead",{className:(0,utils_cjs_namespaceObject.cn)("header *:border-b *:has-aria-expanded:bg-transparent",e),"data-slot":"table-header",...a})}function TableBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("tbody",{className:(0,utils_cjs_namespaceObject.cn)("*:last-child:border-0",e),"data-slot":"table-body",...a})}function TableFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("tfoot",{className:(0,utils_cjs_namespaceObject.cn)("bg-gray-50/50 font-medium *:border-t *:last:border-b-0 *:has-aria-expanded:bg-transparent",e),"data-slot":"table-footer",...a})}function TableRow({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("tr",{className:(0,utils_cjs_namespaceObject.cn)("border-b transition-colors hover:bg-gray-50/50 has-aria-expanded:bg-gray-50/50 data-[state=selected]:bg-gray-100",e),"data-slot":"table-row",...a})}function TableHead({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("th",{className:(0,utils_cjs_namespaceObject.cn)("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-head",...a})}function TableCell({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("td",{className:(0,utils_cjs_namespaceObject.cn)("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...a})}function TableCaption({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("caption",{className:(0,utils_cjs_namespaceObject.cn)("mt-4 text-gray-400 text-sm",e),"data-slot":"table-caption",...a})}for(var __webpack_i__ in exports.Table=__webpack_exports__.Table,exports.TableBody=__webpack_exports__.TableBody,exports.TableCaption=__webpack_exports__.TableCaption,exports.TableCell=__webpack_exports__.TableCell,exports.TableFooter=__webpack_exports__.TableFooter,exports.TableHead=__webpack_exports__.TableHead,exports.TableHeader=__webpack_exports__.TableHeader,exports.TableRow=__webpack_exports__.TableRow,__webpack_exports__)-1===["Table","TableBody","TableCaption","TableCell","TableFooter","TableHead","TableHeader","TableRow"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,a)=>{for(var t in a)__webpack_require__.o(a,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},__webpack_require__.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TableHead:()=>TableHead,TableFooter:()=>TableFooter,TableRow:()=>TableRow,TableCaption:()=>TableCaption,TableHeader:()=>TableHeader,TableBody:()=>TableBody,TableCell:()=>TableCell,Table:()=>Table});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Table({className:e,classNames:a,...t}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:"overflow-hidden rounded-md border",children:(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("relative w-full overflow-auto",a?.wrapper),"data-slot":"table-container",children:(0,jsx_runtime_namespaceObject.jsx)("table",{className:(0,utils_cjs_namespaceObject.cn)("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})})}function TableHeader({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("thead",{className:(0,utils_cjs_namespaceObject.cn)("header *:border-b *:has-aria-expanded:bg-transparent",e),"data-slot":"table-header",...a})}function TableBody({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("tbody",{className:(0,utils_cjs_namespaceObject.cn)("*:last-child:border-0",e),"data-slot":"table-body",...a})}function TableFooter({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("tfoot",{className:(0,utils_cjs_namespaceObject.cn)("bg-gray-50/50 font-medium *:border-t *:last:border-b-0 *:has-aria-expanded:bg-transparent",e),"data-slot":"table-footer",...a})}function TableRow({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("tr",{className:(0,utils_cjs_namespaceObject.cn)("border-b transition-colors hover:bg-gray-50/50 has-aria-expanded:bg-gray-50/50 data-[state=selected]:bg-gray-100",e),"data-slot":"table-row",...a})}function TableHead({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("th",{className:(0,utils_cjs_namespaceObject.cn)("h-10 whitespace-nowrap bg-mist px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-head",...a})}function TableCell({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("td",{className:(0,utils_cjs_namespaceObject.cn)("whitespace-nowrap bg-background p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...a})}function TableCaption({className:e,...a}){return(0,jsx_runtime_namespaceObject.jsx)("caption",{className:(0,utils_cjs_namespaceObject.cn)("mt-4 text-gray-400 text-sm",e),"data-slot":"table-caption",...a})}for(var __webpack_i__ in exports.Table=__webpack_exports__.Table,exports.TableBody=__webpack_exports__.TableBody,exports.TableCaption=__webpack_exports__.TableCaption,exports.TableCell=__webpack_exports__.TableCell,exports.TableFooter=__webpack_exports__.TableFooter,exports.TableHead=__webpack_exports__.TableHead,exports.TableHeader=__webpack_exports__.TableHeader,exports.TableRow=__webpack_exports__.TableRow,__webpack_exports__)-1===["Table","TableBody","TableCaption","TableCell","TableFooter","TableHead","TableHeader","TableRow"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
@@ -17,9 +17,11 @@ interface DataTableProps<TData> extends React.ComponentProps<'div'> {
17
17
  cell?: string;
18
18
  };
19
19
  };
20
+ getRowClassName?: (row: TData) => string;
21
+ getCellClassName?: (row: TData, columnId: string, value: unknown) => string;
20
22
  hasPagination?: boolean;
21
23
  hasPinningWithBorder?: boolean;
22
24
  }
23
- export declare function DataTable<TData>({ table, actionBar, onRowClick, contextMenuOptions, children, className, classNames, hasPagination, hasPinningWithBorder, ...props }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
25
+ export declare function DataTable<TData>({ table, actionBar, onRowClick, contextMenuOptions, children, className, classNames, getRowClassName, getCellClassName, hasPagination, hasPinningWithBorder, ...props }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
24
26
  export {};
25
27
  //# sourceMappingURL=data-table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAmBnC,UAAU,cAAc,CAAC,KAAK,CAAE,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAA;IACjC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAA;IAC7E,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,GAAG,CAAC,EAAE,MAAM,CAAA;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAC/B,KAAK,EACL,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,aAAoB,EACpB,oBAA4B,EAC5B,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,2CAyGvB"}
1
+ {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/E,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAmBnC,UAAU,cAAc,CAAC,KAAK,CAAE,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IACjE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAA;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAA;IACjC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAA;IAC7E,UAAU,CAAC,EAAE;QACX,KAAK,CAAC,EAAE;YACN,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,GAAG,CAAC,EAAE,MAAM,CAAA;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,MAAM,CAAA;IACxC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;IAC3E,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAC/B,KAAK,EACL,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,aAAoB,EACpB,oBAA4B,EAC5B,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,2CAiHvB"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as l}from"react/jsx-runtime";import{flexRender as a}from"@tanstack/react-table";import{DataTablePagination as t}from"./data-table-pagination.js";import{Table as r,TableBody as o,TableCell as c,TableHead as i,TableHeader as n,TableRow as d}from"../table.js";import{getCommonPinningStyles as s}from"../../lib/data-table.js";import{cn as m}from"../../lib/utils.js";import{ContextMenu as h,ContextMenuContent as p,ContextMenuItem as u,ContextMenuTrigger as b}from"../context-menu.js";function g({table:g,actionBar:f,onRowClick:w,contextMenuOptions:x,children:N,className:C,classNames:j,hasPagination:S=!0,hasPinningWithBorder:k=!1,...v}){return l("div",{className:m("flex w-full flex-col gap-2.5 overflow-auto",C),...v,children:[N,l(r,{classNames:{wrapper:j?.table?.wrapper},children:[e(n,{className:j?.table?.header,children:g.getHeaderGroups().map(l=>e(d,{className:j?.table?.row,children:l.headers.map(l=>e(i,{colSpan:l.colSpan,style:{...s({column:l.column,withBorder:k})},className:j?.table?.head,children:l.isPlaceholder?null:a(l.column.columnDef.header,l.getContext())},l.id))},l.id))}),e(o,{children:g.getRowModel().rows?.length?g.getRowModel().rows.map(t=>l(h,{children:[e(b,{asChild:!0,children:e(d,{"data-state":t.getIsSelected()&&"selected",onClick:()=>w?.(t.original),className:m(j?.table?.row,w&&t.getIsSelected()&&"border-primary"),children:t.getVisibleCells().map(l=>e(c,{style:{...s({column:l.column,withBorder:k})},className:j?.table?.cell,children:a(l.column.columnDef.cell,l.getContext())},l.id))},t.id)}),x&&e(p,{children:x(t.original).map(l=>e(u,{onClick:l.onClick,children:l.label},l.label))})]},t.id)):e(d,{children:e(c,{colSpan:g.getAllColumns().length,className:"h-24 text-center",children:"Nenhum resultado"})})})]}),l("div",{className:"flex flex-col gap-2.5",children:[S&&e(t,{table:g}),f&&g.getFilteredSelectedRowModel().rows.length>0&&f]})]})}export{g as DataTable};
1
+ import{jsx as e,jsxs as l}from"react/jsx-runtime";import{flexRender as a}from"@tanstack/react-table";import{DataTablePagination as t}from"./data-table-pagination.js";import{Table as r,TableBody as o,TableCell as i,TableHead as c,TableHeader as n,TableRow as d}from"../table.js";import{getCommonPinningStyles as s}from"../../lib/data-table.js";import{cn as m}from"../../lib/utils.js";import{ContextMenu as h,ContextMenuContent as p,ContextMenuItem as u,ContextMenuTrigger as g}from"../context-menu.js";function b({table:b,actionBar:f,onRowClick:w,contextMenuOptions:x,children:N,className:C,classNames:j,getRowClassName:S,getCellClassName:k,hasPagination:v=!0,hasPinningWithBorder:y=!1,...D}){return l("div",{className:m("flex w-full flex-col gap-2.5 overflow-auto",C),...D,children:[N,l(r,{classNames:{wrapper:j?.table?.wrapper},children:[e(n,{className:j?.table?.header,children:b.getHeaderGroups().map(l=>e(d,{className:j?.table?.row,children:l.headers.map(l=>e(c,{colSpan:l.colSpan,style:{...s({column:l.column,withBorder:y})},className:j?.table?.head,children:l.isPlaceholder?null:a(l.column.columnDef.header,l.getContext())},l.id))},l.id))}),e(o,{children:b.getRowModel().rows?.length?b.getRowModel().rows.map(t=>l(h,{children:[e(g,{asChild:!0,children:e(d,{"data-state":t.getIsSelected()&&"selected",onClick:()=>w?.(t.original),className:m(j?.table?.row,w&&t.getIsSelected()&&"border-primary",S?.(t.original)),children:t.getVisibleCells().map(l=>e(i,{style:{...s({column:l.column,withBorder:y})},className:m(j?.table?.cell,k?.(t.original,l.column.id,l.getValue())),children:a(l.column.columnDef.cell,l.getContext())},l.id))},t.id)}),x&&e(p,{children:x(t.original).map(l=>e(u,{onClick:l.onClick,children:l.label},l.label))})]},t.id)):e(d,{children:e(i,{colSpan:b.getAllColumns().length,className:"h-24 text-center",children:"Nenhum resultado"})})})]}),l("div",{className:"flex flex-col gap-2.5",children:[v&&e(t,{table:b}),f&&b.getFilteredSelectedRowModel().rows.length>0&&f]})]})}export{b as DataTable};
@@ -1 +1 @@
1
- import{jsx as a}from"react/jsx-runtime";import{cn as e}from"../lib/utils.js";function t({className:t,classNames:r,...o}){return a("div",{className:"overflow-hidden rounded-md border",children:a("div",{className:e("relative w-full overflow-auto",r?.wrapper),"data-slot":"table-container",children:a("table",{className:e("w-full caption-bottom text-sm",t),"data-slot":"table",...o})})})}function r({className:t,...r}){return a("thead",{className:e("header *:border-b *:has-aria-expanded:bg-transparent",t),"data-slot":"table-header",...r})}function o({className:t,...r}){return a("tbody",{className:e("*:last-child:border-0",t),"data-slot":"table-body",...r})}function l({className:t,...r}){return a("tfoot",{className:e("bg-gray-50/50 font-medium *:border-t *:last:border-b-0 *:has-aria-expanded:bg-transparent",t),"data-slot":"table-footer",...r})}function n({className:t,...r}){return a("tr",{className:e("border-b transition-colors hover:bg-gray-50/50 has-aria-expanded:bg-gray-50/50 data-[state=selected]:bg-gray-100",t),"data-slot":"table-row",...r})}function s({className:t,...r}){return a("th",{className:e("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),"data-slot":"table-head",...r})}function d({className:t,...r}){return a("td",{className:e("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),"data-slot":"table-cell",...r})}function b({className:t,...r}){return a("caption",{className:e("mt-4 text-gray-400 text-sm",t),"data-slot":"table-caption",...r})}export{t as Table,o as TableBody,b as TableCaption,d as TableCell,l as TableFooter,s as TableHead,r as TableHeader,n as TableRow};
1
+ import{jsx as a}from"react/jsx-runtime";import{cn as e}from"../lib/utils.js";function t({className:t,classNames:r,...o}){return a("div",{className:"overflow-hidden rounded-md border",children:a("div",{className:e("relative w-full overflow-auto",r?.wrapper),"data-slot":"table-container",children:a("table",{className:e("w-full caption-bottom text-sm",t),"data-slot":"table",...o})})})}function r({className:t,...r}){return a("thead",{className:e("header *:border-b *:has-aria-expanded:bg-transparent",t),"data-slot":"table-header",...r})}function o({className:t,...r}){return a("tbody",{className:e("*:last-child:border-0",t),"data-slot":"table-body",...r})}function l({className:t,...r}){return a("tfoot",{className:e("bg-gray-50/50 font-medium *:border-t *:last:border-b-0 *:has-aria-expanded:bg-transparent",t),"data-slot":"table-footer",...r})}function n({className:t,...r}){return a("tr",{className:e("border-b transition-colors hover:bg-gray-50/50 has-aria-expanded:bg-gray-50/50 data-[state=selected]:bg-gray-100",t),"data-slot":"table-row",...r})}function s({className:t,...r}){return a("th",{className:e("h-10 whitespace-nowrap bg-mist px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),"data-slot":"table-head",...r})}function d({className:t,...r}){return a("td",{className:e("whitespace-nowrap bg-background p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),"data-slot":"table-cell",...r})}function b({className:t,...r}){return a("caption",{className:e("mt-4 text-gray-400 text-sm",t),"data-slot":"table-caption",...r})}export{t as Table,o as TableBody,b as TableCaption,d as TableCell,l as TableFooter,s as TableHead,r as TableHeader,n as TableRow};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbmtech/aurora-ui",
3
- "version": "0.6.86",
3
+ "version": "0.6.88",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",