@tryghost/shade 0.1.0-alpha.40 → 0.1.0-alpha.42

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.
Files changed (38) hide show
  1. package/es/components/ui/list.js +94 -0
  2. package/es/components/ui/list.js.map +1 -0
  3. package/es/components/ui/row-primary-action.js +48 -0
  4. package/es/components/ui/row-primary-action.js.map +1 -0
  5. package/es/components/ui/row-surface.js +18 -0
  6. package/es/components/ui/row-surface.js.map +1 -0
  7. package/es/components/ui/sortable-list.js +6 -2
  8. package/es/components/ui/sortable-list.js.map +1 -1
  9. package/es/components/ui/table.js +18 -7
  10. package/es/components/ui/table.js.map +1 -1
  11. package/es/components.js +4 -2
  12. package/es/hooks/use-row-behavior.js +94 -0
  13. package/es/hooks/use-row-behavior.js.map +1 -0
  14. package/es/hooks/use-row-press.js +63 -0
  15. package/es/hooks/use-row-press.js.map +1 -0
  16. package/es/index.js +4 -2
  17. package/package.json +1 -1
  18. package/preflight.css +0 -10
  19. package/styles.css +339 -0
  20. package/types/components/ui/list.d.ts +28 -0
  21. package/types/components/ui/list.d.ts.map +1 -0
  22. package/types/components/ui/row-primary-action.d.ts +8 -0
  23. package/types/components/ui/row-primary-action.d.ts.map +1 -0
  24. package/types/components/ui/row-surface.d.ts +11 -0
  25. package/types/components/ui/row-surface.d.ts.map +1 -0
  26. package/types/components/ui/sortable-list.d.ts.map +1 -1
  27. package/types/components/ui/table.d.ts +4 -1
  28. package/types/components/ui/table.d.ts.map +1 -1
  29. package/types/components.d.ts +3 -1
  30. package/types/components.d.ts.map +1 -1
  31. package/types/hooks/use-row-behavior.d.ts +24 -0
  32. package/types/hooks/use-row-behavior.d.ts.map +1 -0
  33. package/types/hooks/use-row-press.d.ts +11 -0
  34. package/types/hooks/use-row-press.d.ts.map +1 -0
  35. package/es/components/ui/action-list.js +0 -56
  36. package/es/components/ui/action-list.js.map +0 -1
  37. package/types/components/ui/action-list.d.ts +0 -21
  38. package/types/components/ui/action-list.d.ts.map +0 -1
package/es/index.js CHANGED
@@ -60,7 +60,6 @@ import { ListPage, ListPageBody, ListPageHeader } from "./components/page-templa
60
60
  import { ModalPage, ModalPageTitle } from "./components/page-templates/modal-page.js";
61
61
  import "./page-templates.js";
62
62
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/ui/accordion.js";
63
- import { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent } from "./components/ui/action-list.js";
64
63
  import { AnimatedNumber } from "./components/ui/animated-number.js";
65
64
  import { Avatar, AvatarFallback, AvatarImage } from "./components/ui/avatar.js";
66
65
  import { badgeVariants } from "./components/ui/badge-variants.js";
@@ -90,6 +89,8 @@ import { indicatorVariants } from "./components/ui/indicator-variants.js";
90
89
  import { Indicator } from "./components/ui/indicator.js";
91
90
  import { inputGroupVariants } from "./components/ui/input-group-variants.js";
92
91
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/ui/input-group.js";
92
+ import { rowSurface, rowSurfaceClasses } from "./components/ui/row-surface.js";
93
+ import { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, List, ListItem, ListItemActions, ListItemContent } from "./components/ui/list.js";
93
94
  import { Link } from "./components/ui/link.js";
94
95
  import { Navbar, NavbarActions, NavbarNavigation } from "./components/ui/navbar.js";
95
96
  import { NoValueLabel, NoValueLabelIcon } from "./components/ui/no-value-label.js";
@@ -110,5 +111,6 @@ import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
110
111
  import { a as XLogo, i as GoogleLogo, n as GhostLogo, r as GhostOrb, t as FacebookLogo } from "./images-DtbFINdz.js";
111
112
  import { TimePicker } from "./components/ui/time-picker.js";
112
113
  import { tokenFieldClasses } from "./components/ui/token-field.js";
114
+ import { RowPrimaryAction } from "./components/ui/row-primary-action.js";
113
115
  import { commandDefaultFilter } from "./components.js";
114
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
116
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, List, ListItem, ListItemActions, ListItemContent, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, RowPrimaryAction, RowPrimaryAction as TableRowAction, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, rowSurface, rowSurfaceClasses, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/shade",
3
- "version": "0.1.0-alpha.40",
3
+ "version": "0.1.0-alpha.42",
4
4
  "description": "Ghost design system for React apps",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",
package/preflight.css CHANGED
@@ -67,16 +67,6 @@
67
67
  sans-serif; /* 4 */
68
68
  }
69
69
 
70
- /*
71
- 1. Remove the margin in all browsers.
72
- 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
73
- */
74
-
75
- body {
76
- margin: 0; /* 1 */
77
- line-height: inherit; /* 2 */
78
- }
79
-
80
70
  /*
81
71
  1. Add the correct height in Firefox.
82
72
  2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
package/styles.css CHANGED
@@ -23,7 +23,12 @@
23
23
  * {
24
24
  @apply border-border;
25
25
  }
26
+
27
+ /* The body's reset sits here, not in preflight.css: preflight is scoped to
28
+ .shade, which is inside body. In this layer, an app's unlayered body styles,
29
+ or a later base-layer rule, win over it. */
26
30
  body {
31
+ margin: 0;
27
32
  @apply font-sans antialiased bg-background text-foreground;
28
33
  }
29
34
  }
@@ -404,3 +409,337 @@ html.theme-switching *::after {
404
409
  > :first-child:is(.border-t) {
405
410
  border-top-width: 0;
406
411
  }
412
+
413
+ /* Shared content-row chrome. The recipe opts rows in explicitly; DataList,
414
+ menus and navigation do not use these classes. Keep this in the published
415
+ stylesheet so apps receive the same behavior without scanning Shade source. */
416
+ /* A responsive table can hide its trailing cells. Mark the visible end with
417
+ this utility (e.g. max-sm:shade-row-end) at the same breakpoint. */
418
+ @utility shade-row-end {
419
+ tr.shade-row > & {
420
+ padding-inline-end: 0;
421
+ }
422
+
423
+ tr.shade-row > &::before {
424
+ inset-inline-end: calc(-4 * var(--spacing));
425
+ border-start-end-radius: var(--radius-md);
426
+ border-end-end-radius: var(--radius-md);
427
+ }
428
+
429
+ tr.shade-row-inset > &::before {
430
+ inset-inline-end: 0;
431
+ }
432
+ }
433
+
434
+ .shade-row {
435
+ position: relative;
436
+ isolation: isolate;
437
+ background-color: transparent;
438
+ }
439
+
440
+ .shade-row::before,
441
+ tr.shade-row > :is(td, th)::before {
442
+ content: '';
443
+ display: block;
444
+ position: absolute;
445
+ inset: 0 calc(-4 * var(--spacing));
446
+ z-index: -1;
447
+ border-radius: var(--radius-md);
448
+ background-color: var(--table-row-hover);
449
+ opacity: 0;
450
+ pointer-events: none;
451
+ }
452
+
453
+ :is(
454
+ .shade-row-interactive,
455
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
456
+ )::before,
457
+ tr:is(
458
+ .shade-row-interactive,
459
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
460
+ )
461
+ > :is(td, th)::before {
462
+ /* Keep row targets subject to a modal's inherited pointer blocking. */
463
+ pointer-events: inherit;
464
+ }
465
+
466
+ /* A native primary link/button stretches over blank row space and the side
467
+ gutters. Its ancestors up to the row must be static; secondary controls sit
468
+ above the transparent overlay with relative positioning and z-10. */
469
+ .shade-row .shade-row-primary:not(.absolute, .fixed, .sticky) {
470
+ position: static;
471
+ }
472
+
473
+ .shade-row:is(.shade-row-interactive, .shade-row-auto)
474
+ .shade-row-primary:not(:disabled, [aria-disabled='true'])::after {
475
+ content: '';
476
+ display: block;
477
+ position: absolute;
478
+ inset: 0 calc(-4 * var(--spacing));
479
+ z-index: 1;
480
+ }
481
+
482
+ .shade-row.shade-row-inset::before,
483
+ .shade-row-inset .shade-row-primary::after {
484
+ inset-inline: 0;
485
+ }
486
+
487
+ .shade-row > [data-row-pinned] {
488
+ background-color: var(--background);
489
+ }
490
+
491
+ /* The cell spacing between columns stays intact; only the outside inset is
492
+ removed, including row headings used in the first column. */
493
+ .shade-row > :is(td, th):first-child {
494
+ padding-inline-start: 0;
495
+ }
496
+
497
+ .shade-row > :is(td, th):last-child {
498
+ padding-inline-end: 0;
499
+ }
500
+
501
+ /* Native table-row generated content becomes an anonymous column with a fixed
502
+ colgroup, even when absolutely positioned. Paint inside the real cells. */
503
+ tr.shade-row::before {
504
+ content: none;
505
+ }
506
+
507
+ tr.shade-row > :is(td, th)::before {
508
+ inset-inline: 0;
509
+ border-radius: 0;
510
+ }
511
+
512
+ tr.shade-row > :is(td, th):first-child::before {
513
+ inset-inline-start: calc(-4 * var(--spacing));
514
+ border-start-start-radius: var(--radius-md);
515
+ border-end-start-radius: var(--radius-md);
516
+ }
517
+
518
+ tr.shade-row > :is(td, th):last-child::before {
519
+ inset-inline-end: calc(-4 * var(--spacing));
520
+ border-start-end-radius: var(--radius-md);
521
+ border-end-end-radius: var(--radius-md);
522
+ }
523
+
524
+ tr.shade-row.shade-row-inset > :is(td, th)::before {
525
+ inset-inline: 0;
526
+ }
527
+
528
+ .shade-row:where(
529
+ :is([data-state='selected'], [data-selected='true']),
530
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
531
+ .shade-row-interactive,
532
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
533
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
534
+ )::before,
535
+ tr.shade-row:where(
536
+ :is([data-state='selected'], [data-selected='true']),
537
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
538
+ .shade-row-interactive,
539
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
540
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
541
+ )
542
+ > :is(td, th)::before {
543
+ opacity: 1;
544
+ }
545
+
546
+ .shade-row:where(
547
+ :is([data-state='selected'], [data-selected='true']),
548
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
549
+ .shade-row-interactive,
550
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
551
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
552
+ )
553
+ > [data-row-pinned] {
554
+ background-color: var(--table-row-hover);
555
+ }
556
+
557
+ .shade-row:where(
558
+ :is([data-state='selected'], [data-selected='true']),
559
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
560
+ .shade-row-interactive,
561
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
562
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
563
+ )
564
+ [data-row-pinned-fade='normal'] {
565
+ opacity: 0;
566
+ }
567
+
568
+ .shade-row:where(
569
+ :is([data-state='selected'], [data-selected='true']),
570
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
571
+ .shade-row-interactive,
572
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
573
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
574
+ )
575
+ [data-row-pinned-fade='highlight'] {
576
+ opacity: 1;
577
+ }
578
+
579
+ /* Keep previous-sibling eligibility flat: CSS forbids nesting :has().
580
+ Only body separators disappear; outer rules are preserved. */
581
+ .shade-row
582
+ + .shade-row:where(
583
+ :is([data-state='selected'], [data-selected='true']),
584
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
585
+ .shade-row-interactive,
586
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
587
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
588
+ ),
589
+ .shade-row:where(
590
+ :is([data-state='selected'], [data-selected='true']),
591
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
592
+ .shade-row-interactive,
593
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
594
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
595
+ )
596
+ + .shade-row {
597
+ border-top-color: transparent;
598
+ }
599
+
600
+ .shade-row:where(
601
+ :is([data-state='selected'], [data-selected='true']),
602
+ :not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
603
+ .shade-row-interactive,
604
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
605
+ ):is([data-row-pressed='true'], :active, :focus-visible, :has(:focus-visible))
606
+ ):has(+ .shade-row),
607
+ .shade-row:has(+ .shade-row:is([data-state='selected'], [data-selected='true'])),
608
+ .shade-row:has(
609
+ + .shade-row-interactive:not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
610
+ [data-row-pressed='true'],
611
+ :active,
612
+ :focus-visible
613
+ )
614
+ ),
615
+ .shade-row:has(
616
+ + .shade-row-interactive:not([data-row-dragging='true'], [data-row-dragging='true'] *)
617
+ :focus-visible
618
+ ),
619
+ .shade-row:has(
620
+ + .shade-row-auto:not([data-row-dragging='true'], [data-row-dragging='true'] *):is(
621
+ [data-row-pressed='true'],
622
+ :active,
623
+ :focus-visible
624
+ )
625
+ ):has(+ .shade-row-auto .shade-row-primary:not(:disabled, [aria-disabled='true'])),
626
+ .shade-row:has(
627
+ + .shade-row-auto:not([data-row-dragging='true'], [data-row-dragging='true'] *) :focus-visible
628
+ ):has(+ .shade-row-auto .shade-row-primary:not(:disabled, [aria-disabled='true'])) {
629
+ border-bottom-color: transparent;
630
+ }
631
+
632
+ /* Avoid emulated, sticky :hover after a touch tap. The press hook covers touch. */
633
+ @media (hover: hover) {
634
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
635
+ :is(
636
+ .shade-row-interactive,
637
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
638
+ ):hover
639
+ )::before,
640
+ tr.shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
641
+ :is(
642
+ .shade-row-interactive,
643
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
644
+ ):hover
645
+ )
646
+ > :is(td, th)::before {
647
+ opacity: 1;
648
+ }
649
+
650
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
651
+ :is(
652
+ .shade-row-interactive,
653
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
654
+ ):hover
655
+ )
656
+ > [data-row-pinned] {
657
+ background-color: var(--table-row-hover);
658
+ }
659
+
660
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
661
+ :is(
662
+ .shade-row-interactive,
663
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
664
+ ):hover
665
+ )
666
+ [data-row-pinned-fade='normal'] {
667
+ opacity: 0;
668
+ }
669
+
670
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
671
+ :is(
672
+ .shade-row-interactive,
673
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
674
+ ):hover
675
+ )
676
+ [data-row-pinned-fade='highlight'] {
677
+ opacity: 1;
678
+ }
679
+
680
+ /* Only separators shared by body rows disappear; outer rules are preserved. */
681
+ .shade-row
682
+ + .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
683
+ :is(
684
+ .shade-row-interactive,
685
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
686
+ ):hover
687
+ ),
688
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
689
+ :is(
690
+ .shade-row-interactive,
691
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
692
+ ):hover
693
+ )
694
+ + .shade-row {
695
+ border-top-color: transparent;
696
+ }
697
+
698
+ .shade-row:where(:not([data-row-dragging='true'], [data-row-dragging='true'] *)):where(
699
+ :is(
700
+ .shade-row-interactive,
701
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
702
+ ):hover
703
+ ):has(+ .shade-row),
704
+ .shade-row:has(
705
+ + .shade-row-interactive:not([data-row-dragging='true'], [data-row-dragging='true'] *):hover
706
+ ),
707
+ .shade-row:has(
708
+ + .shade-row-auto:not([data-row-dragging='true'], [data-row-dragging='true'] *):hover
709
+ ):has(+ .shade-row-auto .shade-row-primary:not(:disabled, [aria-disabled='true'])) {
710
+ border-bottom-color: transparent;
711
+ }
712
+ }
713
+
714
+ /* Selection wins over hover and keyboard/press fills without merging adjacent
715
+ rows or changing the focused control's own ring. */
716
+ .shade-row:is([data-state='selected'], [data-selected='true'])::before,
717
+ tr.shade-row:is([data-state='selected'], [data-selected='true']) > :is(td, th)::before,
718
+ .shade-row:is([data-state='selected'], [data-selected='true']) > [data-row-pinned] {
719
+ background-color: var(--table-row-selected);
720
+ }
721
+
722
+ :is(
723
+ .shade-row-interactive,
724
+ .shade-row-auto:has(.shade-row-primary:not(:disabled, [aria-disabled='true']))
725
+ ) {
726
+ cursor: pointer;
727
+ }
728
+
729
+ .shade-row [data-row-secondary] {
730
+ position: relative;
731
+ z-index: 10;
732
+ }
733
+
734
+ /* Explicit positioning utilities take precedence over these control defaults. */
735
+ @layer base {
736
+ .shade-row:is(.shade-row-interactive, .shade-row-auto):has(
737
+ .shade-row-primary:not(:disabled, [aria-disabled='true'])
738
+ )
739
+ :is(a, button, input, select, textarea, label, [role='checkbox'], [role='button']):not(
740
+ .shade-row-primary
741
+ ) {
742
+ position: relative;
743
+ z-index: 10;
744
+ }
745
+ }
@@ -0,0 +1,28 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const List: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ interface ListItemProps extends React.HTMLAttributes<HTMLDivElement> {
5
+ asChild?: boolean;
6
+ hover?: boolean | null;
7
+ }
8
+ declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
9
+ interface ListItemContentProps extends React.HTMLAttributes<HTMLDivElement> {
10
+ asChild?: boolean;
11
+ }
12
+ declare const ListItemContent: React.ForwardRefExoticComponent<ListItemContentProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const listItemActionsVariants: (props?: ({
14
+ visibility?: "always" | "hover" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ interface ListItemActionsProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof listItemActionsVariants> {
17
+ }
18
+ declare const ListItemActions: React.ForwardRefExoticComponent<ListItemActionsProps & React.RefAttributes<HTMLDivElement>>;
19
+ /** @deprecated Use List instead. */
20
+ declare const ActionList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
21
+ /** @deprecated Use ListItem instead. */
22
+ declare const ActionListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLDivElement>>;
23
+ /** @deprecated Use ListItemActions instead. */
24
+ declare const ActionListItemActions: React.ForwardRefExoticComponent<ListItemActionsProps & React.RefAttributes<HTMLDivElement>>;
25
+ /** @deprecated Use ListItemContent instead. */
26
+ declare const ActionListItemContent: React.ForwardRefExoticComponent<ListItemContentProps & React.RefAttributes<HTMLDivElement>>;
27
+ export { List, ListItem, ListItemActions, ListItemContent, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, };
28
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,IAAI,6GAIT,CAAC;AAGF,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACxB;AAaD,QAAA,MAAM,QAAQ,sFAgDb,CAAC;AAGF,UAAU,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,eAAe,6FA6CpB,CAAC;AAGF,QAAA,MAAM,uBAAuB;;8EAc5B,CAAC;AAEF,UAAU,oBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,uBAAuB,CAAC;CAAG;AAE/F,QAAA,MAAM,eAAe,6FAUpB,CAAC;AAGF,oCAAoC;AACpC,QAAA,MAAM,UAAU,6GAAO,CAAC;AACxB,wCAAwC;AACxC,QAAA,MAAM,cAAc,sFAAW,CAAC;AAChC,+CAA+C;AAC/C,QAAA,MAAM,qBAAqB,6FAAkB,CAAC;AAC9C,+CAA+C;AAC/C,QAAA,MAAM,qBAAqB,6FAAkB,CAAC;AAE9C,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,eAAe,EACf,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ interface RowPrimaryActionProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
+ asChild?: boolean;
4
+ }
5
+ /** Makes the whole row activate its main link or button. */
6
+ declare const RowPrimaryAction: React.ForwardRefExoticComponent<RowPrimaryActionProps & React.RefAttributes<HTMLButtonElement>>;
7
+ export { RowPrimaryAction, RowPrimaryAction as TableRowAction };
8
+ //# sourceMappingURL=row-primary-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-primary-action.d.ts","sourceRoot":"","sources":["../../../src/components/ui/row-primary-action.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,UAAU,qBAAsB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACnF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,4DAA4D;AAC5D,QAAA,MAAM,gBAAgB,iGA0DrB,CAAC;AAGF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** Background and spacing classes for custom list and table rows. */
2
+ export declare const rowSurfaceClasses: {
3
+ readonly base: 'shade-row';
4
+ readonly interactive: 'shade-row-interactive';
5
+ readonly auto: 'shade-row-auto';
6
+ readonly inset: 'shade-row-inset';
7
+ readonly end: 'shade-row-end';
8
+ readonly primaryAction: 'shade-row-primary';
9
+ };
10
+ export declare function rowSurface(mode?: 'interactive' | 'static' | 'auto'): string;
11
+ //# sourceMappingURL=row-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row-surface.d.ts","sourceRoot":"","sources":["../../../src/components/ui/row-surface.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,eAAO,MAAM,iBAAiB;aAC5B,IAAI,EAAE,WAAW;aACjB,WAAW,EAAE,uBAAuB;aACpC,IAAI,EAAE,gBAAgB;aACtB,KAAK,EAAE,iBAAiB;aACxB,GAAG,EAAE,eAAe;aACpB,aAAa,EAAE,mBAAmB;CAC1B,CAAC;AAEX,wBAAgB,UAAU,CAAC,IAAI,GAAE,aAAa,GAAG,QAAQ,GAAG,MAAsB,UAMjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"sortable-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sortable-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEjC,MAAM,eAAe,CAAC;AAIvB,OAAO,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CAAC,CAAC;AAEpC,eAAO,MAAM,aAAa,qHAQvB,kBAAkB,gCAgBpB,CAAC;AA0DF,MAAM,WAAW,iBAAiB,CAChC,IAAI,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAC3B,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,SAAS,CAAC;IAC7D,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;CAClD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,IAAI,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,wLAerD,iBAAiB,CAAC,IAAI,CAAC,uCAqEzB,CAAC"}
@@ -5,7 +5,10 @@ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTa
5
5
  declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
6
  declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
7
7
  declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
8
- declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
8
+ interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
9
+ interactive?: boolean;
10
+ }
11
+ declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
9
12
  declare const headVariants: (props?: ({
10
13
  variant?: "cardhead" | "default" | null | undefined;
11
14
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,QAAA,MAAM,KAAK,iHAMV,CAAC;AAGF,QAAA,MAAM,WAAW,+HAKf,CAAC;AAGH,QAAA,MAAM,SAAS,+HAGkF,CAAC;AAGlG,QAAA,MAAM,WAAW,+HASf,CAAC;AAGH,QAAA,MAAM,QAAQ,uHAQb,CAAC;AAGF,QAAA,MAAM,YAAY;;8EAWhB,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IACvF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS,6FAId,CAAC;AAGF,KAAK,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAUnD,CAAC;AAGF,QAAA,MAAM,SAAS,2HAYb,CAAC;AAGH,QAAA,MAAM,YAAY,+HAKhB,CA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 @@
1
1
  export * from './components/ui/accordion';
2
2
  export * from './components/ui/alert-dialog';
3
- export * from './components/ui/action-list';
4
3
  export * from './components/ui/animated-number';
5
4
  export * from './components/ui/avatar';
6
5
  export * from './components/ui/badge';
@@ -42,6 +41,7 @@ export * from './components/ui/input-group';
42
41
  export * from './components/ui/input-group-variants';
43
42
  export * from './components/ui/kbd';
44
43
  export * from './components/ui/label';
44
+ export * from './components/ui/list';
45
45
  export * from './components/ui/link';
46
46
  export * from './components/ui/loading-indicator';
47
47
  export * from './components/ui/multi-select-combobox';
@@ -67,6 +67,7 @@ export * from './components/ui/input-surface';
67
67
  export * from './components/ui/sticky-footer';
68
68
  export * from './components/ui/switch';
69
69
  export * from './components/ui/table';
70
+ export { rowSurface, rowSurfaceClasses } from './components/ui/row-surface';
70
71
  export * from './components/ui/tabs';
71
72
  export * from './components/ui/tabs-variants';
72
73
  export * from './components/ui/textarea';
@@ -79,4 +80,5 @@ export { IconComponents as Icon } from './components/ui/icon';
79
80
  export { FacebookLogo, GhostLogo, GhostOrb, GoogleLogo, XLogo } from './assets/images';
80
81
  export { TimePicker, type TimePickerProps } from './components/ui/time-picker';
81
82
  export { tokenFieldClasses } from './components/ui/token-field';
83
+ export { RowPrimaryAction, TableRowAction } from './components/ui/row-primary-action';
82
84
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,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+1,24 @@
1
+ import { type HTMLAttributes, type MouseEvent } from 'react';
2
+ /** Sends clicks on empty row space to its main link or button. */
3
+ export declare function useRowBehavior<Element extends HTMLElement>(props: HTMLAttributes<Element>, interactive?: boolean): {
4
+ 'data-row-pressed'?: undefined;
5
+ onPointerDown?: undefined;
6
+ onPointerMove?: undefined;
7
+ onPointerUp?: undefined;
8
+ onPointerCancel?: undefined;
9
+ onPointerLeave?: undefined;
10
+ onClickCapture?: undefined;
11
+ onClick?: undefined;
12
+ onAuxClick?: undefined;
13
+ } | {
14
+ 'data-row-pressed': string | undefined;
15
+ onPointerDown(event: React.PointerEvent<Element>): void;
16
+ onPointerMove(event: React.PointerEvent<Element>): void;
17
+ onPointerUp(event: React.PointerEvent<Element>): void;
18
+ onPointerCancel(event: React.PointerEvent<Element>): void;
19
+ onPointerLeave(event: React.PointerEvent<Element>): void;
20
+ onClickCapture(event: MouseEvent<Element>): void;
21
+ onClick(event: MouseEvent<Element>): void;
22
+ onAuxClick(event: MouseEvent<Element>): void;
23
+ };
24
+ //# sourceMappingURL=use-row-behavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-row-behavior.d.ts","sourceRoot":"","sources":["../../src/hooks/use-row-behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAYrE,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,OAAO,SAAS,WAAW,EACxD,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,EAC9B,WAAW,CAAC,EAAE,OAAO;;;;;;;;;;;;yBAwBE,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;yBAU3B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;uBAI7B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;2BAIvB,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;0BAI5B,KAAK,CAAC,YAAY,CAAC,OAAO,CAAC;0BAI3B,UAAU,CAAC,OAAO,CAAC;mBAK1B,UAAU,CAAC,OAAO,CAAC;sBAsChB,UAAU,CAAC,OAAO,CAAC;EA6BxC"}
@@ -0,0 +1,11 @@
1
+ import { type HTMLAttributes, type PointerEvent } from 'react';
2
+ /** Touch feedback for a row, without capturing pointers or blocking scrolling. */
3
+ export declare function useRowPress<Element extends HTMLElement>(props?: HTMLAttributes<Element>, enabled?: boolean): {
4
+ 'data-row-pressed': string | undefined;
5
+ onPointerDown(event: PointerEvent<Element>): void;
6
+ onPointerMove(event: PointerEvent<Element>): void;
7
+ onPointerUp(event: PointerEvent<Element>): void;
8
+ onPointerCancel(event: PointerEvent<Element>): void;
9
+ onPointerLeave(event: PointerEvent<Element>): void;
10
+ };
11
+ //# sourceMappingURL=use-row-press.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-row-press.d.ts","sourceRoot":"","sources":["../../src/hooks/use-row-press.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5F,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,OAAO,SAAS,WAAW,EACrD,KAAK,GAAE,cAAc,CAAC,OAAO,CAAM,EACnC,OAAO,UAAO;;yBA4BS,YAAY,CAAC,OAAO,CAAC;yBAarB,YAAY,CAAC,OAAO,CAAC;uBAUvB,YAAY,CAAC,OAAO,CAAC;2BAIjB,YAAY,CAAC,OAAO,CAAC;0BAItB,YAAY,CAAC,OAAO,CAAC;EAK9C"}