@nearform/quantum 1.6.1 → 1.6.3

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.d.mts CHANGED
@@ -1169,17 +1169,34 @@ declare const StepsIndicator: React.ForwardRefExoticComponent<StepsIndicatorProp
1169
1169
  declare const tableBodyVariants: (props?: ({
1170
1170
  variant?: "zebra" | null | undefined;
1171
1171
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1172
+ type TableAlign = 'left' | 'center' | 'right';
1173
+ type TableSortDirection = 'asc' | 'desc' | false;
1172
1174
  interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
1173
1175
  containerClassName?: string;
1174
1176
  }
1175
1177
  declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
1176
1178
  declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
1177
- declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
1179
+ interface TableHeadProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'align'> {
1180
+ align?: TableAlign;
1181
+ sortDirection?: TableSortDirection;
1182
+ onSort?: React.MouseEventHandler<HTMLButtonElement>;
1183
+ }
1184
+ declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
1178
1185
  interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, VariantProps<typeof tableBodyVariants> {
1179
1186
  }
1180
1187
  declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
1181
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
1182
- declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
1188
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
1189
+ selected?: boolean;
1190
+ }
1191
+ declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
1192
+ interface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'align'> {
1193
+ align?: TableAlign;
1194
+ }
1195
+ declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
1196
+ interface TableEmptyProps extends TableCellProps {
1197
+ colSpan: number;
1198
+ }
1199
+ declare const TableEmpty: React.ForwardRefExoticComponent<TableEmptyProps & React.RefAttributes<HTMLTableCellElement>>;
1183
1200
  declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
1184
1201
  declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
1185
1202
 
@@ -1275,4 +1292,4 @@ interface LinkColumnProps extends React__default.ComponentPropsWithoutRef<'div'>
1275
1292
  }
1276
1293
  declare const LinkColumn: React__default.ForwardRefExoticComponent<LinkColumnProps & React__default.RefAttributes<HTMLDivElement>>;
1277
1294
 
1278
- export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Avatar, type AvatarProps, BackLink, type BackLinkProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardDescription, type CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CodeBlock, type CodeBlockProps, ControlLabel, DateInput, type DateInputInvalidReason, type DateInputProps, type DateInputValueDetails, FieldDescription, FieldError, type FieldMessageProps, FooterStatement, type FooterStatementProps, FormGroup, type FormGroupProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, PageHeader, PageHeaderActions, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SortAndShow, SortAndShowControl, type SortAndShowControlProps, type SortAndShowOption, SplitButton, SplitButtonItem, type SplitButtonProps, SplitButtonSeparator, Stat, type StatProps, Stats, Step, type StepProps, type StepStatus, Stepper, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, type StepperProps, StepsIndicator, type StepsIndicatorProp, Subnav, SubnavHeading, type SubnavHeadingProps, SubnavItem, SubnavLink, type SubnavLinkProps, SubnavList, Switch, SwitchCard, type SwitchCardProps, Table, TableBody, type TableBodyProps, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, type ToastCloseProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, ToggleList, ToggleListItem, type ToggleListItemProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, backLinkVariants, buttonVariants, cardVariants, _default as colors, formVariants, iconButtonVariants, pageHeaderVariants, splitButtonSegmentVariants, splitButtonVariants, tabsListVariants, tabsTriggerVariants, tabsVariants, textareaVariants, useCheckboxGroup, useFormGroup };
1295
+ export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Avatar, type AvatarProps, BackLink, type BackLinkProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardDescription, type CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CodeBlock, type CodeBlockProps, ControlLabel, DateInput, type DateInputInvalidReason, type DateInputProps, type DateInputValueDetails, FieldDescription, FieldError, type FieldMessageProps, FooterStatement, type FooterStatementProps, FormGroup, type FormGroupProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, PageHeader, PageHeaderActions, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SortAndShow, SortAndShowControl, type SortAndShowControlProps, type SortAndShowOption, SplitButton, SplitButtonItem, type SplitButtonProps, SplitButtonSeparator, Stat, type StatProps, Stats, Step, type StepProps, type StepStatus, Stepper, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, type StepperProps, StepsIndicator, type StepsIndicatorProp, Subnav, SubnavHeading, type SubnavHeadingProps, SubnavItem, SubnavLink, type SubnavLinkProps, SubnavList, Switch, SwitchCard, type SwitchCardProps, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, TableCell, type TableCellProps, TableEmpty, type TableEmptyProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSortDirection, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, type ToastCloseProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, ToggleList, ToggleListItem, type ToggleListItemProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, backLinkVariants, buttonVariants, cardVariants, _default as colors, formVariants, iconButtonVariants, pageHeaderVariants, splitButtonSegmentVariants, splitButtonVariants, tabsListVariants, tabsTriggerVariants, tabsVariants, textareaVariants, useCheckboxGroup, useFormGroup };
package/dist/index.d.ts CHANGED
@@ -1169,17 +1169,34 @@ declare const StepsIndicator: React.ForwardRefExoticComponent<StepsIndicatorProp
1169
1169
  declare const tableBodyVariants: (props?: ({
1170
1170
  variant?: "zebra" | null | undefined;
1171
1171
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1172
+ type TableAlign = 'left' | 'center' | 'right';
1173
+ type TableSortDirection = 'asc' | 'desc' | false;
1172
1174
  interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
1173
1175
  containerClassName?: string;
1174
1176
  }
1175
1177
  declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
1176
1178
  declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
1177
- declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
1179
+ interface TableHeadProps extends Omit<React.ThHTMLAttributes<HTMLTableCellElement>, 'align'> {
1180
+ align?: TableAlign;
1181
+ sortDirection?: TableSortDirection;
1182
+ onSort?: React.MouseEventHandler<HTMLButtonElement>;
1183
+ }
1184
+ declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
1178
1185
  interface TableBodyProps extends React.HTMLAttributes<HTMLTableSectionElement>, VariantProps<typeof tableBodyVariants> {
1179
1186
  }
1180
1187
  declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
1181
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
1182
- declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
1188
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
1189
+ selected?: boolean;
1190
+ }
1191
+ declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
1192
+ interface TableCellProps extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'align'> {
1193
+ align?: TableAlign;
1194
+ }
1195
+ declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
1196
+ interface TableEmptyProps extends TableCellProps {
1197
+ colSpan: number;
1198
+ }
1199
+ declare const TableEmpty: React.ForwardRefExoticComponent<TableEmptyProps & React.RefAttributes<HTMLTableCellElement>>;
1183
1200
  declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
1184
1201
  declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
1185
1202
 
@@ -1275,4 +1292,4 @@ interface LinkColumnProps extends React__default.ComponentPropsWithoutRef<'div'>
1275
1292
  }
1276
1293
  declare const LinkColumn: React__default.ForwardRefExoticComponent<LinkColumnProps & React__default.RefAttributes<HTMLDivElement>>;
1277
1294
 
1278
- export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Avatar, type AvatarProps, BackLink, type BackLinkProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardDescription, type CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CodeBlock, type CodeBlockProps, ControlLabel, DateInput, type DateInputInvalidReason, type DateInputProps, type DateInputValueDetails, FieldDescription, FieldError, type FieldMessageProps, FooterStatement, type FooterStatementProps, FormGroup, type FormGroupProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, PageHeader, PageHeaderActions, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SortAndShow, SortAndShowControl, type SortAndShowControlProps, type SortAndShowOption, SplitButton, SplitButtonItem, type SplitButtonProps, SplitButtonSeparator, Stat, type StatProps, Stats, Step, type StepProps, type StepStatus, Stepper, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, type StepperProps, StepsIndicator, type StepsIndicatorProp, Subnav, SubnavHeading, type SubnavHeadingProps, SubnavItem, SubnavLink, type SubnavLinkProps, SubnavList, Switch, SwitchCard, type SwitchCardProps, Table, TableBody, type TableBodyProps, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, type ToastCloseProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, ToggleList, ToggleListItem, type ToggleListItemProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, backLinkVariants, buttonVariants, cardVariants, _default as colors, formVariants, iconButtonVariants, pageHeaderVariants, splitButtonSegmentVariants, splitButtonVariants, tabsListVariants, tabsTriggerVariants, tabsVariants, textareaVariants, useCheckboxGroup, useFormGroup };
1295
+ export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Avatar, type AvatarProps, BackLink, type BackLinkProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardDescription, type CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CodeBlock, type CodeBlockProps, ControlLabel, DateInput, type DateInputInvalidReason, type DateInputProps, type DateInputValueDetails, FieldDescription, FieldError, type FieldMessageProps, FooterStatement, type FooterStatementProps, FormGroup, type FormGroupProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, PageHeader, PageHeaderActions, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SortAndShow, SortAndShowControl, type SortAndShowControlProps, type SortAndShowOption, SplitButton, SplitButtonItem, type SplitButtonProps, SplitButtonSeparator, Stat, type StatProps, Stats, Step, type StepProps, type StepStatus, Stepper, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, type StepperProps, StepsIndicator, type StepsIndicatorProp, Subnav, SubnavHeading, type SubnavHeadingProps, SubnavItem, SubnavLink, type SubnavLinkProps, SubnavList, Switch, SwitchCard, type SwitchCardProps, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, TableCell, type TableCellProps, TableEmpty, type TableEmptyProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableSortDirection, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, type ToastCloseProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, ToggleList, ToggleListItem, type ToggleListItemProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, backLinkVariants, buttonVariants, cardVariants, _default as colors, formVariants, iconButtonVariants, pageHeaderVariants, splitButtonSegmentVariants, splitButtonVariants, tabsListVariants, tabsTriggerVariants, tabsVariants, textareaVariants, useCheckboxGroup, useFormGroup };
package/dist/index.js CHANGED
@@ -157,6 +157,7 @@ __export(index_exports, {
157
157
  TableBody: () => TableBody,
158
158
  TableCaption: () => TableCaption,
159
159
  TableCell: () => TableCell,
160
+ TableEmpty: () => TableEmpty,
160
161
  TableFooter: () => TableFooter,
161
162
  TableHead: () => TableHead,
162
163
  TableHeader: () => TableHeader,
@@ -5209,16 +5210,35 @@ SubnavLink.displayName = "SubnavLink";
5209
5210
  var React37 = __toESM(require("react"));
5210
5211
  var import_class_variance_authority30 = require("class-variance-authority");
5211
5212
  var import_jsx_runtime40 = require("react/jsx-runtime");
5212
- var tableBodyVariants = (0, import_class_variance_authority30.cva)("bg-background dark:bg-grey-900", {
5213
+ var tableBodyVariants = (0, import_class_variance_authority30.cva)("bg-background dark:bg-background-dark", {
5213
5214
  variants: {
5214
5215
  variant: {
5215
5216
  zebra: [
5216
- "[&>*:nth-child(even)]:bg-background-subtle",
5217
- "dark:[&>*:nth-child(even)]:bg-background-subtle-dark"
5217
+ "[:where(&>*:nth-child(even))]:bg-background-subtle",
5218
+ "dark:[:where(&>*:nth-child(even))]:bg-background-subtle-dark"
5218
5219
  ]
5219
5220
  }
5220
5221
  }
5221
5222
  });
5223
+ var alignVariants2 = (0, import_class_variance_authority30.cva)("", {
5224
+ variants: {
5225
+ align: {
5226
+ left: "text-left",
5227
+ center: "text-center",
5228
+ right: "text-right"
5229
+ }
5230
+ }
5231
+ });
5232
+ var ariaSortFor = (direction) => {
5233
+ if (direction === "asc") return "ascending";
5234
+ if (direction === "desc") return "descending";
5235
+ return void 0;
5236
+ };
5237
+ var SortIcon = ({ direction }) => {
5238
+ if (direction === "asc") return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(assets_exports.BsArrowUp, { "aria-hidden": "true" });
5239
+ if (direction === "desc") return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(assets_exports.BsArrowDown, { "aria-hidden": "true" });
5240
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(assets_exports.BsArrowDownUp, { "aria-hidden": "true" });
5241
+ };
5222
5242
  var Table = React37.forwardRef(
5223
5243
  (_a, ref) => {
5224
5244
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
@@ -5235,7 +5255,10 @@ var Table = React37.forwardRef(
5235
5255
  "table",
5236
5256
  __spreadValues({
5237
5257
  ref,
5238
- className: cn("caption-bottom text-sm dark:text-white", className)
5258
+ className: cn(
5259
+ "caption-bottom text-sm text-foreground dark:text-foreground-dark",
5260
+ className
5261
+ )
5239
5262
  }, props)
5240
5263
  )
5241
5264
  }
@@ -5250,23 +5273,48 @@ var TableHeader = React37.forwardRef((_a, ref) => {
5250
5273
  __spreadValues({
5251
5274
  ref,
5252
5275
  className: cn(
5253
- "bg-background-subtle dark:bg-background-subtle-dark text-left",
5276
+ "bg-background-subtle dark:bg-background-subtle-dark text-left",
5254
5277
  className
5255
5278
  )
5256
5279
  }, props)
5257
5280
  );
5258
5281
  });
5259
5282
  TableHeader.displayName = "TableHeader";
5260
- var TableHead = React37.forwardRef((_a, ref) => {
5261
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5262
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5263
- "th",
5264
- __spreadValues({
5265
- ref,
5266
- className: cn("px-4 py-5 leading-[21px] font-bold", className)
5267
- }, props)
5268
- );
5269
- });
5283
+ var TableHead = React37.forwardRef(
5284
+ (_a, ref) => {
5285
+ var _b = _a, { className, align, sortDirection, onSort, children } = _b, props = __objRest(_b, ["className", "align", "sortDirection", "onSort", "children"]);
5286
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5287
+ "th",
5288
+ __spreadProps(__spreadValues({
5289
+ ref,
5290
+ "aria-sort": onSort ? ariaSortFor(sortDirection) : void 0,
5291
+ className: cn(
5292
+ "px-4 py-5 leading-[21px] font-bold",
5293
+ alignVariants2({ align }),
5294
+ className
5295
+ )
5296
+ }, props), {
5297
+ children: onSort ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
5298
+ "button",
5299
+ {
5300
+ type: "button",
5301
+ onClick: onSort,
5302
+ className: cn(
5303
+ "inline-flex min-h-6 items-center gap-2 rounded-xs font-bold",
5304
+ "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-current",
5305
+ "[&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0",
5306
+ align === "right" && "flex-row-reverse"
5307
+ ),
5308
+ children: [
5309
+ children,
5310
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SortIcon, { direction: sortDirection })
5311
+ ]
5312
+ }
5313
+ ) : children
5314
+ })
5315
+ );
5316
+ }
5317
+ );
5270
5318
  TableHead.displayName = "TableHead";
5271
5319
  var TableBody = React37.forwardRef(
5272
5320
  (_a, ref) => {
@@ -5281,25 +5329,57 @@ var TableBody = React37.forwardRef(
5281
5329
  }
5282
5330
  );
5283
5331
  TableBody.displayName = "TableBody";
5284
- var TableRow = React37.forwardRef((_a, ref) => {
5285
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5286
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5287
- "tr",
5288
- __spreadValues({
5289
- ref,
5290
- className: cn(
5291
- "h-[50px] self-stretch items-center gap-2 font-normal text-left",
5292
- className
5293
- )
5294
- }, props)
5295
- );
5296
- });
5332
+ var TableRow = React37.forwardRef(
5333
+ (_a, ref) => {
5334
+ var _b = _a, { className, selected } = _b, props = __objRest(_b, ["className", "selected"]);
5335
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5336
+ "tr",
5337
+ __spreadValues({
5338
+ ref,
5339
+ "data-state": selected ? "selected" : void 0,
5340
+ className: cn(
5341
+ "h-[50px] self-stretch items-center gap-2 font-normal text-left",
5342
+ "data-[state=selected]:bg-background-alt",
5343
+ "dark:data-[state=selected]:bg-background-alt-dark",
5344
+ className
5345
+ )
5346
+ }, props)
5347
+ );
5348
+ }
5349
+ );
5297
5350
  TableRow.displayName = "TableRow";
5298
- var TableCell = React37.forwardRef((_a, ref) => {
5299
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5300
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("td", __spreadValues({ ref, className: cn("p-4", className) }, props));
5301
- });
5351
+ var TableCell = React37.forwardRef(
5352
+ (_a, ref) => {
5353
+ var _b = _a, { className, align } = _b, props = __objRest(_b, ["className", "align"]);
5354
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5355
+ "td",
5356
+ __spreadValues({
5357
+ ref,
5358
+ className: cn("p-4", alignVariants2({ align }), className)
5359
+ }, props)
5360
+ );
5361
+ }
5362
+ );
5302
5363
  TableCell.displayName = "TableCell";
5364
+ var TableEmpty = React37.forwardRef(
5365
+ (_a, ref) => {
5366
+ var _b = _a, { className, children = "No results." } = _b, props = __objRest(_b, ["className", "children"]);
5367
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5368
+ TableCell,
5369
+ __spreadProps(__spreadValues({
5370
+ ref,
5371
+ align: "center",
5372
+ className: cn(
5373
+ "h-24 text-foreground-muted dark:text-foreground-muted-dark",
5374
+ className
5375
+ )
5376
+ }, props), {
5377
+ children
5378
+ })
5379
+ ) });
5380
+ }
5381
+ );
5382
+ TableEmpty.displayName = "TableEmpty";
5303
5383
  var TableCaption = React37.forwardRef((_a, ref) => {
5304
5384
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5305
5385
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("caption", __spreadValues({ ref, className: cn("mt-4", className) }, props));
@@ -5311,7 +5391,10 @@ var TableFooter = React37.forwardRef((_a, ref) => {
5311
5391
  "tfoot",
5312
5392
  __spreadValues({
5313
5393
  ref,
5314
- className: cn("bg-primary text-primary-foreground", className)
5394
+ className: cn(
5395
+ "bg-background-subtle dark:bg-background-subtle-dark font-bold",
5396
+ className
5397
+ )
5315
5398
  }, props)
5316
5399
  );
5317
5400
  });
@@ -6132,6 +6215,7 @@ __reExport(index_exports, assets_exports, module.exports);
6132
6215
  TableBody,
6133
6216
  TableCaption,
6134
6217
  TableCell,
6218
+ TableEmpty,
6135
6219
  TableFooter,
6136
6220
  TableHead,
6137
6221
  TableHeader,