@overmap-ai/blocks 1.0.40-TableStyling.2 → 1.0.40-TableStyling.4
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/Table/cva.d.ts +0 -6
- package/dist/blocks.js +2 -27
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +2 -27
- package/dist/blocks.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/Table/cva.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ export declare const tableRootCva: (props?: ({
|
|
|
2
2
|
variant?: "surface" | "ghost" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
-
export declare const tableHeaderCellCva: (props?: ({
|
|
6
|
-
variant?: "surface" | "ghost" | null | undefined;
|
|
7
|
-
cell?: boolean | null | undefined;
|
|
8
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
-
border?: "none" | "col" | "grid" | "row" | null | undefined;
|
|
10
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
5
|
export declare const tableCellCva: (props?: ({
|
|
12
6
|
variant?: "surface" | "ghost" | null | undefined;
|
|
13
7
|
cell?: boolean | null | undefined;
|
package/dist/blocks.js
CHANGED
|
@@ -5754,7 +5754,7 @@ const tableRootCva = cva(["border-collapse text-left"], {
|
|
|
5754
5754
|
}
|
|
5755
5755
|
}
|
|
5756
5756
|
});
|
|
5757
|
-
const
|
|
5757
|
+
const tableCellCva = cva([], {
|
|
5758
5758
|
variants: {
|
|
5759
5759
|
variant: {
|
|
5760
5760
|
surface: [],
|
|
@@ -5779,31 +5779,6 @@ const tableHeaderCellCva = cva([], {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
}
|
|
5781
5781
|
});
|
|
5782
|
-
const tableCellCva = cva([], {
|
|
5783
|
-
variants: {
|
|
5784
|
-
variant: {
|
|
5785
|
-
surface: [],
|
|
5786
|
-
ghost: []
|
|
5787
|
-
},
|
|
5788
|
-
cell: {
|
|
5789
|
-
true: [],
|
|
5790
|
-
false: []
|
|
5791
|
-
},
|
|
5792
|
-
size: {
|
|
5793
|
-
xs: ["p-1"],
|
|
5794
|
-
sm: ["p-2"],
|
|
5795
|
-
md: ["p-3"],
|
|
5796
|
-
lg: ["p-4"],
|
|
5797
|
-
xl: ["p-5"]
|
|
5798
|
-
},
|
|
5799
|
-
border: {
|
|
5800
|
-
grid: ["box-border", "border", "border-(--accent-a6)"],
|
|
5801
|
-
row: ["box-border", "border-b", "border-(--accent-a6)"],
|
|
5802
|
-
col: ["box-border", "border-x", "border-(--accent-a6)"],
|
|
5803
|
-
none: []
|
|
5804
|
-
}
|
|
5805
|
-
}
|
|
5806
|
-
});
|
|
5807
5782
|
const TableCell = memo((props) => {
|
|
5808
5783
|
const { ref, className, ...rest } = props;
|
|
5809
5784
|
const { size: size2, border, variant } = useContext(TableContext);
|
|
@@ -5813,7 +5788,7 @@ TableCell.displayName = "TableCell";
|
|
|
5813
5788
|
const TableColumnHeaderCell = memo((props) => {
|
|
5814
5789
|
const { ref, className, ...rest } = props;
|
|
5815
5790
|
const { size: size2, border, variant } = useContext(TableContext);
|
|
5816
|
-
return /* @__PURE__ */ jsx("th", { ref, className: cx(
|
|
5791
|
+
return /* @__PURE__ */ jsx("th", { ref, className: cx(tableCellCva({ size: size2, border, cell: false, variant }), className), ...rest });
|
|
5817
5792
|
});
|
|
5818
5793
|
TableColumnHeaderCell.displayName = "TableColumnHeaderCell";
|
|
5819
5794
|
const TableFooter = memo((props) => {
|