Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jan 23, 2025
1 parent c86bd6b commit 6c9f38f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions packages/admin-ui/src/DataTable/DataTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const WithCustomCellRenderer: Story<Entry> = {
...columns.name,
cell: (entry: Entry) => {
return (
<div className={"flex items-center gap-sm-extra"}>
<div className={"wby-flex wby-items-center wby-gap-sm-extra"}>
<Avatar
image={
<Avatar.Image
Expand All @@ -150,13 +150,13 @@ export const WithCustomCellRenderer: Story<Entry> = {
<div>
<Text
text={entry.name}
className={"text-neutral-primary font-semibold"}
className={"wby-text-neutral-primary wby-font-semibold"}
as={"div"}
/>
<Text
text={`Last updated: ${entry.lastModified}`}
size={"sm"}
className={"text-neutral-strong"}
className={"wby-text-neutral-strong"}
as={"div"}
/>
</div>
Expand Down Expand Up @@ -188,11 +188,11 @@ export const WithCustomColumnClassName: Story<Entry> = {
...columns,
lastModified: {
...columns.lastModified,
className: "bg-primary-subtle"
className: "wby-bg-primary-subtle"
},
status: {
...columns.status,
className: "text-right"
className: "wby-text-right"
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions packages/admin-ui/src/DataTable/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const defineColumns = <T,>(
accessorKey: firstColumn.id as string,
header: props => {
return (
<div className={"flex items-center gap-xl"}>
<div className={"wby-flex wby-items-center wby-gap-xl"}>
<CheckboxPrimitive
indeterminate={props.table.getIsSomeRowsSelected()}
checked={props.table.getIsAllRowsSelected()}
Expand All @@ -222,13 +222,13 @@ const defineColumns = <T,>(
},
cell: props => {
return (
<div className={"flex items-center gap-xl"}>
<div className={"wby-flex wby-items-center wby-gap-xl"}>
<CheckboxPrimitive
checked={props.row.getIsSelected()}
onCheckedChange={value => props.row.toggleSelected(!!value)}
disabled={!props.row.getCanSelect()}
aria-label="Select row"
className={cn(!props.row.getCanSelect() ? "invisible" : "")}
className={cn(!props.row.getCanSelect() ? "wby-invisible" : "")}
/>
{firstColumn.cell
? React.createElement(firstColumn.cell, props)
Expand All @@ -245,7 +245,7 @@ const defineColumns = <T,>(
if (loading) {
return {
...column,
cell: () => <Skeleton className={"w-full h-md"} />
cell: () => <Skeleton className={"wby-w-full wby-h-md"} />
};
}

Expand Down Expand Up @@ -448,7 +448,7 @@ const DataTable = <T extends Record<string, any> & DataTableDefaultData>({
onClick={header.column.getToggleSortingHandler()}
sortable={header.column.getCanSort()}
>
<div className="w-full overflow-hidden whitespace-nowrap truncate">
<div className="wby-w-full wby-overflow-hidden wby-whitespace-nowrap wby-truncate">
{flexRender(
header.column.columnDef.header,
header.getContext()
Expand Down
4 changes: 2 additions & 2 deletions packages/admin-ui/src/DataTable/components/ColumnSorter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import { cn, cva, VariantProps } from "~/utils";

const columnSorterVariants = cva("flex items-center gap-xxs cursor-auto", {
const columnSorterVariants = cva("wby-flex wby-items-center wby-gap-xxs wby-cursor-auto", {
variants: {
sortable: {
true: "cursor-pointer"
true: "wby-cursor-pointer"
}
}
});
Expand Down

0 comments on commit 6c9f38f

Please sign in to comment.