@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.
@@ -6,6 +6,8 @@ export interface DialogContentProps extends ComponentPropsWithoutRef<typeof Dial
6
6
  }
7
7
  export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & {
8
8
  close?: boolean | undefined;
9
+ overlayStyle?: import("react").CSSProperties | undefined;
10
+ overlayClassname?: string | undefined;
9
11
  } & import("react").RefAttributes<HTMLDivElement>>;
10
12
  declare const overlay: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
11
13
  export interface OverlayProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>, VariantProps<typeof overlay> {
@@ -16,6 +18,8 @@ export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps> & {
16
18
  Trigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
17
19
  Content: import("react").ForwardRefExoticComponent<DialogContentProps & {
18
20
  close?: boolean | undefined;
21
+ overlayStyle?: import("react").CSSProperties | undefined;
22
+ overlayClassname?: string | undefined;
19
23
  } & import("react").RefAttributes<HTMLDivElement>>;
20
24
  Close: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
21
25
  Title: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,cAAc,EACd,wBAAwB,EAGzB,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,aAAa,yFAA4B,CAAC;AAEhD,MAAM,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AQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAMlB;AAED,eAAO,MAAM,MAAM;;;;;;;;;;CAMjB,CAAC"}
package/dist/index.cjs CHANGED
@@ -5977,8 +5977,8 @@ const $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2f
5977
5977
  var styles$n = {"dialogContent":"dialog-module_dialogContent__bljTL","overlay":"dialog-module_overlay__t-jUE","close":"dialog-module_close__n9JNt"};
5978
5978
 
5979
5979
  const dialogContent = cva(styles$n.dialogContent);
5980
- const DialogContent = React.forwardRef(({ className, children, close, ...props }, forwardedRef) => {
5981
- 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, {}) }))] })] }));
5980
+ const DialogContent = React.forwardRef(({ className, children, close, overlayStyle, overlayClassname, ...props }, forwardedRef) => {
5981
+ 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, {}) }))] })] }));
5982
5982
  });
5983
5983
  const overlay$1 = cva(styles$n.overlay);
5984
5984
  const Overlay$1 = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay$1({ className }), ...props })));
@@ -15671,6 +15671,9 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, Shoul
15671
15671
  rowSelection,
15672
15672
  },
15673
15673
  });
15674
+ const tableStyle = table.getRowModel().rows?.length
15675
+ ? { width: "100%" }
15676
+ : { width: "100%", height: "100%" };
15674
15677
  return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$3.wrapper, children: jsxRuntimeExports.jsxs(TableContext.Provider, { value: {
15675
15678
  table,
15676
15679
  globalFilter,
@@ -15680,7 +15683,7 @@ function DataTableRoot({ columns, data, emptyState, children, parentStyle, Shoul
15680
15683
  resetColumns,
15681
15684
  onGlobalFilterChange: setGlobalFilter,
15682
15685
  onChange: () => ({}),
15683
- }, 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
15686
+ }, 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
15684
15687
  ? table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
15685
15688
  return (jsxRuntimeExports.jsx(Table.Head, { style: {
15686
15689
  ...(header.column.columnDef?.meta?.style ?? {}),