@raystack/apsara 0.11.4 → 0.11.5

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/dist/index.js CHANGED
@@ -5957,8 +5957,8 @@ const $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2f
5957
5957
  var styles$n = {"dialogContent":"dialog-module_dialogContent__bljTL","overlay":"dialog-module_overlay__t-jUE","close":"dialog-module_close__n9JNt"};
5958
5958
 
5959
5959
  const dialogContent = cva(styles$n.dialogContent);
5960
- const DialogContent = forwardRef(({ className, children, close, ...props }, forwardedRef) => {
5961
- return (jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [jsxRuntimeExports.jsx(Overlay$1, {}), jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton$1, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] })] }));
5960
+ const DialogContent = forwardRef(({ className, children, close, overlayStyle, overlayClassname, ...props }, forwardedRef) => {
5961
+ return (jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [jsxRuntimeExports.jsx(Overlay$1, { className: overlayClassname, style: overlayStyle }), jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton$1, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] })] }));
5962
5962
  });
5963
5963
  const overlay$1 = cva(styles$n.overlay);
5964
5964
  const Overlay$1 = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay$1({ className }), ...props })));
@@ -15651,6 +15651,9 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, Shoul
15651
15651
  rowSelection,
15652
15652
  },
15653
15653
  });
15654
+ const tableStyle = table.getRowModel().rows?.length
15655
+ ? { width: "100%" }
15656
+ : { width: "100%", height: "100%" };
15654
15657
  return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$3.wrapper, children: jsxRuntimeExports.jsxs(TableContext.Provider, { value: {
15655
15658
  table,
15656
15659
  globalFilter,
@@ -15660,7 +15663,7 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, Shoul
15660
15663
  resetColumns,
15661
15664
  onGlobalFilterChange: setGlobalFilter,
15662
15665
  onChange: () => ({}),
15663
- }, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$3.datatable, children: [header, jsxRuntimeExports.jsxs(Flex, { className: styles$3.tableContainer, style: parentStyle, children: [jsxRuntimeExports.jsxs(Table, { ...props, children: [jsxRuntimeExports.jsx(Table.Header, { children: ShouldShowHeader
15666
+ }, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$3.datatable, children: [header, jsxRuntimeExports.jsxs(Flex, { className: styles$3.tableContainer, style: parentStyle, children: [jsxRuntimeExports.jsxs(Table, { ...props, style: tableStyle, children: [jsxRuntimeExports.jsx(Table.Header, { children: ShouldShowHeader
15664
15667
  ? table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
15665
15668
  return (jsxRuntimeExports.jsx(Table.Head, { style: {
15666
15669
  ...(header.column.columnDef?.meta?.style ?? {}),