@eqtylab/equality 1.5.0 → 1.5.1
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.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/table-components.module.module.css.module.css +18 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -667,6 +667,7 @@ declare const TableContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttr
|
|
|
667
667
|
elevation?: string | number | null | undefined;
|
|
668
668
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
669
669
|
tableLayout?: "auto" | "fixed";
|
|
670
|
+
border?: boolean;
|
|
670
671
|
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
671
672
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & {
|
|
672
673
|
sticky?: boolean;
|
|
@@ -711,6 +712,7 @@ interface TableProps extends VariantProps<typeof tableElevationVariants> {
|
|
|
711
712
|
declare const tableElevationVariants: (props?: ({
|
|
712
713
|
elevation?: string | number | null | undefined;
|
|
713
714
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
715
|
+
/** @deprecated Use the compositional table primitives (`TableContainer`, `TableHeader`, `TableBody`, `TableRow`, `TableHead`, `TableCell`) instead. */
|
|
714
716
|
declare const Table: ({ columns, rows, className, border, elevation, emptyState, tableLayout, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
715
717
|
|
|
716
718
|
declare const TabsContainer: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -667,6 +667,7 @@ declare const TableContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttr
|
|
|
667
667
|
elevation?: string | number | null | undefined;
|
|
668
668
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
669
669
|
tableLayout?: "auto" | "fixed";
|
|
670
|
+
border?: boolean;
|
|
670
671
|
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
671
672
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & {
|
|
672
673
|
sticky?: boolean;
|
|
@@ -711,6 +712,7 @@ interface TableProps extends VariantProps<typeof tableElevationVariants> {
|
|
|
711
712
|
declare const tableElevationVariants: (props?: ({
|
|
712
713
|
elevation?: string | number | null | undefined;
|
|
713
714
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
715
|
+
/** @deprecated Use the compositional table primitives (`TableContainer`, `TableHeader`, `TableBody`, `TableRow`, `TableHead`, `TableCell`) instead. */
|
|
714
716
|
declare const Table: ({ columns, rows, className, border, elevation, emptyState, tableLayout, }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
715
717
|
|
|
716
718
|
declare const TabsContainer: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
package/dist/index.js
CHANGED
|
@@ -2702,10 +2702,15 @@ function SortButton({
|
|
|
2702
2702
|
] });
|
|
2703
2703
|
}
|
|
2704
2704
|
var tableElevationVariants = generateElevationVariants(styles50, "table", ELEVATION.RAISED);
|
|
2705
|
-
var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, tableLayout, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2705
|
+
var TableContainer = React15.forwardRef(({ className, style, elevation = ELEVATION.RAISED, tableLayout, border, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
2706
2706
|
"div",
|
|
2707
2707
|
{
|
|
2708
|
-
className: cn(
|
|
2708
|
+
className: cn(
|
|
2709
|
+
styles50["table"],
|
|
2710
|
+
tableElevationVariants({ elevation }),
|
|
2711
|
+
border && styles50["table-border"],
|
|
2712
|
+
className
|
|
2713
|
+
),
|
|
2709
2714
|
style,
|
|
2710
2715
|
children: /* @__PURE__ */ jsx(
|
|
2711
2716
|
"table",
|