@kismet-ux/constellation 1.13.0 → 1.14.0

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/dist/form/Checkbox/checkbox.js +1 -0
  2. package/dist/form/Checkbox/checkbox.js.map +1 -1
  3. package/dist/form/DatePicker/date-picker.js +1 -0
  4. package/dist/form/DatePicker/date-picker.js.map +1 -1
  5. package/dist/form.d.ts +1 -1
  6. package/dist/index-BG8HSyxu.d.ts +647 -0
  7. package/dist/index-BaoN_cal.d.ts +647 -0
  8. package/dist/index-Bv5TTKOD.d.ts +647 -0
  9. package/dist/index.d.ts +6 -6
  10. package/dist/index.js +1 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/layout/AppSidebarHeader/app-sidebar-header.js +1 -0
  13. package/dist/layout/AppSidebarHeader/app-sidebar-header.js.map +1 -1
  14. package/dist/layout.d.ts +2 -2
  15. package/dist/navigation/Sheet/sheet.js +1 -0
  16. package/dist/navigation/Sheet/sheet.js.map +1 -1
  17. package/dist/navigation.d.ts +1 -1
  18. package/dist/settings/AppearanceTabs/appearance-tabs.js +1 -0
  19. package/dist/settings/AppearanceTabs/appearance-tabs.js.map +1 -1
  20. package/dist/ui/SwipeRow/index.d.ts +2 -0
  21. package/dist/ui/SwipeRow/index.d.ts.map +1 -0
  22. package/dist/ui/SwipeRow/swipe-row-variants.d.ts +4 -0
  23. package/dist/ui/SwipeRow/swipe-row-variants.d.ts.map +1 -0
  24. package/dist/ui/SwipeRow/swipe-row-variants.js +22 -0
  25. package/dist/ui/SwipeRow/swipe-row-variants.js.map +1 -0
  26. package/dist/ui/SwipeRow/swipe-row.css +77 -0
  27. package/dist/ui/SwipeRow/swipe-row.d.ts +14 -0
  28. package/dist/ui/SwipeRow/swipe-row.d.ts.map +1 -0
  29. package/dist/ui/SwipeRow/swipe-row.js +178 -0
  30. package/dist/ui/SwipeRow/swipe-row.js.map +1 -0
  31. package/dist/ui/SwipeRow/swipe-row.module.scss.js +6 -0
  32. package/dist/ui/SwipeRow/swipe-row.module.scss.js.map +1 -0
  33. package/dist/ui/index.d.ts +1 -0
  34. package/dist/ui/index.d.ts.map +1 -1
  35. package/dist/ui.d.ts +2 -2
  36. package/dist/ui.js +1 -0
  37. package/dist/ui.js.map +1 -1
  38. package/package.json +216 -216
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  export { Logo, LogoProps } from './brand.js';
2
- export { C as Checkbox, a as CheckboxProps, b as Combobox, c as ComboboxOption, d as ComboboxProps, D as DatePicker, e as DatePickerProps, F as FormTheme, L as Label, f as LabelProps, S as Select, g as SelectAlign, h as SelectContent, i as SelectContentProps, j as SelectField, k as SelectFieldProps, l as SelectGroup, m as SelectItem, n as SelectPosition, o as SelectProps, p as SelectSeparator, q as SelectSide, r as SelectTrigger, s as SelectValue, t as __Surface } from './index-DhS2nQjt.js';
2
+ export { C as Checkbox, a as CheckboxProps, b as Combobox, c as ComboboxOption, d as ComboboxProps, D as DatePicker, e as DatePickerProps, F as FormTheme, L as Label, f as LabelProps, S as Select, g as SelectAlign, h as SelectContent, i as SelectContentProps, j as SelectField, k as SelectFieldProps, l as SelectGroup, m as SelectItem, n as SelectPosition, o as SelectProps, p as SelectSeparator, q as SelectSide, r as SelectTrigger, s as SelectValue, t as __Surface } from './index-2nHZOukj.js';
3
3
  export { I as Input, a as InputBaseProps } from './input-Cp5LET5i.js';
4
4
  import * as React from 'react';
5
- import { S as SidebarContextValue } from './index-DxbOGj5Y.js';
6
- export { A as AppContent, a as AppContentFooter, b as AppContentFooterProps, c as AppContentMain, d as AppContentMainProps, e as AppFooter, f as AppFooterProps, g as AppShell, h as AppShellProps, i as AppSidebar, j as AppSidebarHeader, k as AppSidebarHeaderProps, l as AppSidebarProps, C as Collapse, m as CollapseProps, n as Column, o as ColumnProps, p as Container, q as ContainerProps, G as Grid, r as GridColumns, s as GridProps, R as Row, t as Sidebar, u as SidebarContent, v as SidebarFooter, w as SidebarGroup, x as SidebarGroupAction, y as SidebarGroupContent, z as SidebarGroupLabel, B as SidebarHeader, D as SidebarInput, E as SidebarInset, F as SidebarMenu, H as SidebarMenuAction, I as SidebarMenuBadge, J as SidebarMenuButton, K as SidebarMenuItem, L as SidebarMenuSkeleton, M as SidebarMenuSub, N as SidebarMenuSubButton, O as SidebarMenuSubItem, P as SidebarProvider, Q as SidebarRail, T as SidebarTrigger, U as SidebarVariant, V as Skeleton } from './index-DxbOGj5Y.js';
7
- import { A as AlertContextValue, S as SortState } from './index-p7kVnzRy.js';
8
- export { a as Alert, b as AlertBanner, c as AlertBannerProps, d as AlertDescription, e as AlertMessage, f as AlertProps, g as AlertProvider, h as AlertTheme, i as AlertTitle, j as Avatar, k as AvatarFallback, l as AvatarFallbackProps, m as AvatarImage, n as AvatarImageProps, o as AvatarProps, C as Chip, p as ChipProps, q as ChipSelect, r as ChipSelectOption, s as ChipSelectProps, t as CodeBlock, u as CodeBlockProps, D as DevIndicator, v as DevIndicatorProps, w as Dialog, x as DialogClose, y as DialogCloseProps, z as DialogContent, B as DialogContentProps, E as DialogDescription, F as DialogFooter, G as DialogHeader, H as DialogOverlay, I as DialogPortal, J as DialogProps, K as DialogTitle, L as DialogTrigger, M as DialogTriggerProps, N as EmptyState, O as EmptyStateProps, P as Icon, Q as IconProps, R as List, T as ListItem, U as ListItemProps, V as ListProps, W as Pagination, X as PaginationProps, Y as ProgressBar, Z as ProgressBarProps, _ as PushAlertInput, $ as Separator, a0 as SeparatorProps, a1 as SortContextValue, a2 as SortDirection, a3 as StatCard, a4 as StatCardDirection, a5 as StatCardProps, a6 as StatCardSize, a7 as StatCardTheme, a8 as StatCardVariant, a9 as StatusDot, aa as StatusDotProps, ab as Step, ac as StepProgress, ad as StepProgressProps, ae as Switch, af as SwitchProps, ag as Table, ah as TableActionCell, ai as TableActionCellProps, aj as TableActionItem, ak as TableBody, al as TableBodyProps, am as TableCard, an as TableCell, ao as TableFooter, ap as TableHead, aq as TableHeader, ar as TableRow, as as TableSortableHeader, at as TableSortableHeaderProps, au as TableToolbar, av as TableToolbarProps, aw as Toggle, ax as ToggleGroup, ay as ToggleGroupProps, az as ToggleProps, aA as TrendDirection, aB as persistAlert, aC as statusDotVariants } from './index-p7kVnzRy.js';
5
+ import { S as SidebarContextValue } from './index-BgAs5Dmg.js';
6
+ export { A as AppContent, a as AppContentFooter, b as AppContentFooterProps, c as AppContentMain, d as AppContentMainProps, e as AppFooter, f as AppFooterProps, g as AppShell, h as AppShellProps, i as AppSidebar, j as AppSidebarHeader, k as AppSidebarHeaderProps, l as AppSidebarProps, C as Collapse, m as CollapseProps, n as Column, o as ColumnProps, p as Container, q as ContainerProps, G as Grid, r as GridColumns, s as GridProps, R as Row, t as Sidebar, u as SidebarContent, v as SidebarFooter, w as SidebarGroup, x as SidebarGroupAction, y as SidebarGroupContent, z as SidebarGroupLabel, B as SidebarHeader, D as SidebarInput, E as SidebarInset, F as SidebarMenu, H as SidebarMenuAction, I as SidebarMenuBadge, J as SidebarMenuButton, K as SidebarMenuItem, L as SidebarMenuSkeleton, M as SidebarMenuSub, N as SidebarMenuSubButton, O as SidebarMenuSubItem, P as SidebarProvider, Q as SidebarRail, T as SidebarTrigger, U as SidebarVariant, V as Skeleton } from './index-BgAs5Dmg.js';
7
+ import { A as AlertContextValue, S as SortState } from './index-BG8HSyxu.js';
8
+ export { a as Alert, b as AlertBanner, c as AlertBannerProps, d as AlertDescription, e as AlertMessage, f as AlertProps, g as AlertProvider, h as AlertTheme, i as AlertTitle, j as Avatar, k as AvatarFallback, l as AvatarFallbackProps, m as AvatarImage, n as AvatarImageProps, o as AvatarProps, C as Chip, p as ChipProps, q as ChipSelect, r as ChipSelectOption, s as ChipSelectProps, t as CodeBlock, u as CodeBlockProps, D as DevIndicator, v as DevIndicatorProps, w as Dialog, x as DialogClose, y as DialogCloseProps, z as DialogContent, B as DialogContentProps, E as DialogDescription, F as DialogFooter, G as DialogHeader, H as DialogOverlay, I as DialogPortal, J as DialogProps, K as DialogTitle, L as DialogTrigger, M as DialogTriggerProps, N as EmptyState, O as EmptyStateProps, P as Icon, Q as IconProps, R as List, T as ListItem, U as ListItemProps, V as ListProps, W as Pagination, X as PaginationProps, Y as ProgressBar, Z as ProgressBarProps, _ as PushAlertInput, $ as Separator, a0 as SeparatorProps, a1 as SortContextValue, a2 as SortDirection, a3 as StatCard, a4 as StatCardDirection, a5 as StatCardProps, a6 as StatCardSize, a7 as StatCardTheme, a8 as StatCardVariant, a9 as StatusDot, aa as StatusDotProps, ab as Step, ac as StepProgress, ad as StepProgressProps, ae as SwipeRow, af as SwipeRowProps, ag as Switch, ah as SwitchProps, ai as Table, aj as TableActionCell, ak as TableActionCellProps, al as TableActionItem, am as TableBody, an as TableBodyProps, ao as TableCard, ap as TableCell, aq as TableFooter, ar as TableHead, as as TableHeader, at as TableRow, au as TableSortableHeader, av as TableSortableHeaderProps, aw as TableToolbar, ax as TableToolbarProps, ay as Toggle, az as ToggleGroup, aA as ToggleGroupProps, aB as ToggleProps, aC as TrendDirection, aD as persistAlert, aE as statusDotVariants } from './index-BG8HSyxu.js';
9
9
  export { R as RowProps } from './row-CuhTBQhK.js';
10
10
  export { Breadcrumbs, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuProps, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownMenuTriggerProps, Link, LinkProps, RouterAdapter, RouterProvider, Sheet, SheetBody, SheetClose, SheetCloseProps, SheetContent, SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetProps, SheetTitle, SheetTrigger, SheetTriggerProps, useRouterAdapter } from './navigation.js';
11
11
  export { B as BreadcrumbItemData, N as NavGroup, a as NavItem, b as NavUser, c as NavUserProps, S as SidebarNavItem, d as SidebarSection } from './nav-user-CilmWvtr.js';
@@ -13,7 +13,7 @@ export { AppearanceTabs, AppearanceToggleDropdown } from './settings.js';
13
13
  export { a as User, b as UserMenuContent, U as UserMenuContentProps, c as UserMenuItem } from './user-menu-content-D0Ldzigm.js';
14
14
  export { Heading, TruncatedText, TruncatedTextProps } from './typography.js';
15
15
  export { T as Typography, a as TypographyAlign, b as TypographyProps, c as TypographySize, d as TypographyTheme, e as TypographyTransform, f as TypographyVariant, g as TypographyWeight } from './typography-CTGVc_Gg.js';
16
- export { B as Button, a as ButtonProps, T as Tooltip, b as TooltipContent, c as TooltipContentProps, d as TooltipProps, e as TooltipProvider, f as TooltipTrigger, g as TooltipTriggerProps } from './tooltip-DXoSckt9.js';
16
+ export { B as Button, a as ButtonProps, T as Tooltip, b as TooltipContent, c as TooltipContentProps, d as TooltipProps, e as TooltipProvider, f as TooltipTrigger, g as TooltipTriggerProps } from './tooltip-BpAJwi3K.js';
17
17
  export { UserInfo } from './user.js';
18
18
  export { CONSTELLATION_PORTAL_SELECTOR, getCsrfToken, isInConstellationPortal } from './utils.js';
19
19
  import 'class-variance-authority';
package/dist/index.js CHANGED
@@ -60,6 +60,7 @@ export { StatCard } from './ui/StatCard/stat-card.js';
60
60
  export { StatusDot } from './ui/StatusDot/status-dot.js';
61
61
  export { statusDotVariants } from './ui/StatusDot/status-dot-variants.js';
62
62
  export { StepProgress } from './ui/StepProgress/step-progress.js';
63
+ export { SwipeRow } from './ui/SwipeRow/swipe-row.js';
63
64
  export { Switch } from './ui/Switch/switch.js';
64
65
  export { Table, TableBody, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableSortableHeader } from './ui/Table/table.js';
65
66
  export { TableActionCell } from './ui/TableActionCell/table-action-cell.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -29,6 +29,7 @@ import '../../ui/StatCard/stat-card.js';
29
29
  import '../../ui/StatusDot/status-dot.js';
30
30
  import '../../ui/StatusDot/status-dot-variants.js';
31
31
  import '../../ui/StepProgress/step-progress.js';
32
+ import '../../ui/SwipeRow/swipe-row.js';
32
33
  import '../../ui/Switch/switch.js';
33
34
  import '../../ui/Table/table.js';
34
35
  import '../../ui/TableActionCell/table-action-cell.js';
@@ -1 +1 @@
1
- {"version":3,"file":"app-sidebar-header.js","sources":["../../../src/layout/AppSidebarHeader/app-sidebar-header.tsx"],"sourcesContent":["import { useSidebar } from '@constellation/hooks';\nimport { Row } from '@constellation/layout/Row';\nimport { SidebarTrigger } from '@constellation/layout/Sidebar';\nimport { Breadcrumbs } from '@constellation/navigation/Breadcrumbs';\nimport { NavUser, type NavUserProps } from '@constellation/navigation/NavUser';\nimport { AppearanceToggleDropdown } from '@constellation/settings';\nimport { type BreadcrumbItemData } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './app-sidebar-header.module.scss';\n\nexport interface AppSidebarHeaderProps extends React.HTMLAttributes<HTMLElement> {\n breadcrumbs?: BreadcrumbItemData[];\n /** Omit to hide the account menu (e.g. on signed-out chrome). */\n user?: NavUserProps['user'];\n userMenu?: Omit<NavUserProps, 'user'>;\n /** Extra controls between the appearance toggle and the account menu. */\n actions?: React.ReactNode;\n}\n\n/**\n * The header band of a content area.\n *\n * `className` and any other DOM props reach the `header` element. They used to\n * be dropped on the floor — the component took four named props and spread\n * nothing — so a caller passing `className` got no error and no class, and\n * spent the difference looking at its own stylesheet.\n */\nexport function AppSidebarHeader({\n breadcrumbs = [],\n user,\n userMenu,\n actions,\n className,\n ...props\n}: AppSidebarHeaderProps) {\n const { state } = useSidebar();\n\n return (\n <Row\n data-slot={'app-sidebar-header'}\n el={'header'}\n align={'center'}\n gap={1}\n justify={'space-between'}\n className={cn(\n s['app-sidebar-header'],\n state === 'collapsed' && s['sidebar-header-collapsed'],\n className,\n )}\n {...props}\n >\n <Row gap={1}>\n <SidebarTrigger />\n <Breadcrumbs breadcrumbs={breadcrumbs} />\n </Row>\n <Row gap={1} align={'center'}>\n {actions}\n <AppearanceToggleDropdown />\n {user && <NavUser user={user} {...userMenu} />}\n </Row>\n </Row>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA;;;;;;;AAOG;SACa,gBAAgB,CAAC,EAC/B,WAAW,GAAG,EAAE,EAChB,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACc,EAAA;AACtB,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE;IAE9B,QACEA,KAAC,GAAG,EAAA,EAAA,WAAA,EACS,oBAAoB,EAC/B,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAE,QAAQ,EACf,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,EAAE,CACX,CAAC,CAAC,oBAAoB,CAAC,EACvB,KAAK,KAAK,WAAW,IAAI,CAAC,CAAC,0BAA0B,CAAC,EACtD,SAAS,CACV,EAAA,GACG,KAAK,EAAA,QAAA,EAAA,CAETA,IAAA,CAAC,GAAG,EAAA,EAAC,GAAG,EAAE,CAAC,aACTC,GAAA,CAAC,cAAc,KAAG,EAClBA,GAAA,CAAC,WAAW,EAAA,EAAC,WAAW,EAAE,WAAW,EAAA,CAAI,IACrC,EACND,IAAA,CAAC,GAAG,EAAA,EAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAA,QAAA,EAAA,CACzB,OAAO,EACRC,GAAA,CAAC,wBAAwB,EAAA,EAAA,CAAG,EAC3B,IAAI,IAAIA,GAAA,CAAC,OAAO,EAAA,EAAC,IAAI,EAAE,IAAI,EAAA,GAAM,QAAQ,EAAA,CAAI,CAAA,EAAA,CAC1C,CAAA,EAAA,CACF;AAEV;;"}
1
+ {"version":3,"file":"app-sidebar-header.js","sources":["../../../src/layout/AppSidebarHeader/app-sidebar-header.tsx"],"sourcesContent":["import { useSidebar } from '@constellation/hooks';\nimport { Row } from '@constellation/layout/Row';\nimport { SidebarTrigger } from '@constellation/layout/Sidebar';\nimport { Breadcrumbs } from '@constellation/navigation/Breadcrumbs';\nimport { NavUser, type NavUserProps } from '@constellation/navigation/NavUser';\nimport { AppearanceToggleDropdown } from '@constellation/settings';\nimport { type BreadcrumbItemData } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './app-sidebar-header.module.scss';\n\nexport interface AppSidebarHeaderProps extends React.HTMLAttributes<HTMLElement> {\n breadcrumbs?: BreadcrumbItemData[];\n /** Omit to hide the account menu (e.g. on signed-out chrome). */\n user?: NavUserProps['user'];\n userMenu?: Omit<NavUserProps, 'user'>;\n /** Extra controls between the appearance toggle and the account menu. */\n actions?: React.ReactNode;\n}\n\n/**\n * The header band of a content area.\n *\n * `className` and any other DOM props reach the `header` element. They used to\n * be dropped on the floor — the component took four named props and spread\n * nothing — so a caller passing `className` got no error and no class, and\n * spent the difference looking at its own stylesheet.\n */\nexport function AppSidebarHeader({\n breadcrumbs = [],\n user,\n userMenu,\n actions,\n className,\n ...props\n}: AppSidebarHeaderProps) {\n const { state } = useSidebar();\n\n return (\n <Row\n data-slot={'app-sidebar-header'}\n el={'header'}\n align={'center'}\n gap={1}\n justify={'space-between'}\n className={cn(\n s['app-sidebar-header'],\n state === 'collapsed' && s['sidebar-header-collapsed'],\n className,\n )}\n {...props}\n >\n <Row gap={1}>\n <SidebarTrigger />\n <Breadcrumbs breadcrumbs={breadcrumbs} />\n </Row>\n <Row gap={1} align={'center'}>\n {actions}\n <AppearanceToggleDropdown />\n {user && <NavUser user={user} {...userMenu} />}\n </Row>\n </Row>\n );\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA;;;;;;;AAOG;SACa,gBAAgB,CAAC,EAC/B,WAAW,GAAG,EAAE,EAChB,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACc,EAAA;AACtB,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE;IAE9B,QACEA,KAAC,GAAG,EAAA,EAAA,WAAA,EACS,oBAAoB,EAC/B,EAAE,EAAE,QAAQ,EACZ,KAAK,EAAE,QAAQ,EACf,GAAG,EAAE,CAAC,EACN,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,EAAE,CACX,CAAC,CAAC,oBAAoB,CAAC,EACvB,KAAK,KAAK,WAAW,IAAI,CAAC,CAAC,0BAA0B,CAAC,EACtD,SAAS,CACV,EAAA,GACG,KAAK,EAAA,QAAA,EAAA,CAETA,IAAA,CAAC,GAAG,EAAA,EAAC,GAAG,EAAE,CAAC,aACTC,GAAA,CAAC,cAAc,KAAG,EAClBA,GAAA,CAAC,WAAW,EAAA,EAAC,WAAW,EAAE,WAAW,EAAA,CAAI,IACrC,EACND,IAAA,CAAC,GAAG,EAAA,EAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAA,QAAA,EAAA,CACzB,OAAO,EACRC,GAAA,CAAC,wBAAwB,EAAA,EAAA,CAAG,EAC3B,IAAI,IAAIA,GAAA,CAAC,OAAO,EAAA,EAAC,IAAI,EAAE,IAAI,EAAA,GAAM,QAAQ,EAAA,CAAI,CAAA,EAAA,CAC1C,CAAA,EAAA,CACF;AAEV;;"}
package/dist/layout.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { A as AppContent, a as AppContentFooter, b as AppContentFooterProps, c as AppContentMain, d as AppContentMainProps, e as AppFooter, f as AppFooterProps, g as AppShell, h as AppShellProps, i as AppSidebar, j as AppSidebarHeader, k as AppSidebarHeaderProps, l as AppSidebarProps, C as Collapse, m as CollapseProps, n as Column, o as ColumnProps, p as Container, G as Grid, R as Row, t as Sidebar, u as SidebarContent, v as SidebarFooter, w as SidebarGroup, x as SidebarGroupAction, y as SidebarGroupContent, z as SidebarGroupLabel, B as SidebarHeader, D as SidebarInput, E as SidebarInset, F as SidebarMenu, H as SidebarMenuAction, I as SidebarMenuBadge, J as SidebarMenuButton, K as SidebarMenuItem, L as SidebarMenuSkeleton, M as SidebarMenuSub, N as SidebarMenuSubButton, O as SidebarMenuSubItem, P as SidebarProvider, Q as SidebarRail, T as SidebarTrigger, V as Skeleton } from './index-DxbOGj5Y.js';
1
+ export { A as AppContent, a as AppContentFooter, b as AppContentFooterProps, c as AppContentMain, d as AppContentMainProps, e as AppFooter, f as AppFooterProps, g as AppShell, h as AppShellProps, i as AppSidebar, j as AppSidebarHeader, k as AppSidebarHeaderProps, l as AppSidebarProps, C as Collapse, m as CollapseProps, n as Column, o as ColumnProps, p as Container, G as Grid, R as Row, t as Sidebar, u as SidebarContent, v as SidebarFooter, w as SidebarGroup, x as SidebarGroupAction, y as SidebarGroupContent, z as SidebarGroupLabel, B as SidebarHeader, D as SidebarInput, E as SidebarInset, F as SidebarMenu, H as SidebarMenuAction, I as SidebarMenuBadge, J as SidebarMenuButton, K as SidebarMenuItem, L as SidebarMenuSkeleton, M as SidebarMenuSub, N as SidebarMenuSubButton, O as SidebarMenuSubItem, P as SidebarProvider, Q as SidebarRail, T as SidebarTrigger, V as Skeleton } from './index-BgAs5Dmg.js';
2
2
  export { R as RowProps } from './row-CuhTBQhK.js';
3
3
  import 'react';
4
4
  import './nav-user-CilmWvtr.js';
5
5
  import 'lucide-react';
6
6
  import './user-menu-content-D0Ldzigm.js';
7
7
  import './input-Cp5LET5i.js';
8
- import './tooltip-DXoSckt9.js';
8
+ import './tooltip-BpAJwi3K.js';
9
9
  import 'class-variance-authority';
10
10
  import 'class-variance-authority/types';
@@ -22,6 +22,7 @@ import '../../ui/StatCard/stat-card.js';
22
22
  import '../../ui/StatusDot/status-dot.js';
23
23
  import '../../ui/StatusDot/status-dot-variants.js';
24
24
  import '../../ui/StepProgress/step-progress.js';
25
+ import '../../ui/SwipeRow/swipe-row.js';
25
26
  import '../../ui/Switch/switch.js';
26
27
  import '../../ui/Table/table.js';
27
28
  import '../../ui/TableActionCell/table-action-cell.js';
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.js","sources":["../../../src/navigation/Sheet/sheet.tsx"],"sourcesContent":["import { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { XIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { Slot } from '../../internal/slot';\nimport { useAnimationState } from '../../internal/use-animation-state';\nimport { useFocusTrap } from '../../internal/use-focus-trap';\nimport { useScrollLock } from '../../internal/use-scroll-lock';\nimport s from './sheet.module.scss';\n\n// ── Context ──────────────────────────────────────────────\n\ntype SheetContextValue = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n titleId: string;\n descriptionId: string;\n};\n\nconst SheetContext = React.createContext<SheetContextValue | null>(null);\n\nfunction useSheet() {\n const ctx = React.useContext(SheetContext);\n if (!ctx) throw new Error('Sheet compound components must be used within <Sheet>');\n return ctx;\n}\n\n// ── Root ─────────────────────────────────────────────────\n\nexport interface SheetProps {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n children?: React.ReactNode;\n}\n\nfunction Sheet({ open: controlledOpen, defaultOpen = false, onOpenChange, children }: SheetProps) {\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : internalOpen;\n const titleId = React.useId();\n const descriptionId = React.useId();\n\n const handleOpenChange = React.useCallback(\n (next: boolean) => {\n if (!isControlled) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [isControlled, onOpenChange],\n );\n\n return (\n <SheetContext.Provider value={{ open, onOpenChange: handleOpenChange, titleId, descriptionId }}>\n {children}\n </SheetContext.Provider>\n );\n}\n\n// ── Trigger ──────────────────────────────────────────────\n\nexport interface SheetTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetTrigger = React.forwardRef<HTMLButtonElement, SheetTriggerProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(true);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-trigger'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetTrigger.displayName = 'SheetTrigger';\n\n// ── Close ────────────────────────────────────────────────\n\nexport interface SheetCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetClose = React.forwardRef<HTMLButtonElement, SheetCloseProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(false);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-close'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetClose.displayName = 'SheetClose';\n\n// ── Content ──────────────────────────────────────────────\n\nconst sideClassMap = {\n right: s['content-right'],\n left: s['content-left'],\n top: s['content-top'],\n bottom: s['content-bottom'],\n} as const;\n\ntype SheetSide = keyof typeof sideClassMap;\n\nexport type SheetContentProps = React.HTMLAttributes<HTMLDivElement> & {\n side?: SheetSide;\n /**\n * How much room the panel gets. `sm` suits a confirm or a short form; `lg`\n * is for a working surface — a queue of editable cards needs the width or\n * its own content starts scrolling sideways.\n */\n size?: 'sm' | 'md' | 'lg';\n /**\n * Float the panel off the viewport edge instead of sitting flush to it.\n * Reads as a card over the page rather than a second wall of it.\n */\n inset?: boolean;\n};\n\nconst SheetContent = React.forwardRef<HTMLDivElement, SheetContentProps>(\n ({ className, children, side = 'right', size = 'md', inset = false, ...props }, ref) => {\n const { open, onOpenChange, titleId, descriptionId } = useSheet();\n const { mounted, state } = useAnimationState(open, 250);\n const focusTrapRef = useFocusTrap(open);\n useScrollLock(mounted);\n\n React.useEffect(() => {\n if (!open) return;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n // A nested layer (an open Select, DatePicker or menu) marks Escape as\n // handled with preventDefault. Escape should dismiss the topmost layer\n // only, so the modal ignores an event something inside it already took.\n if (e.key === 'Escape' && !e.defaultPrevented) {\n onOpenChange(false);\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n return () => document.removeEventListener('keydown', handleKeyDown);\n }, [open, onOpenChange]);\n\n if (!mounted || state === 'idle') return null;\n\n return createPortal(\n <div data-constellation-portal={''} ref={focusTrapRef}>\n <div\n data-slot={'sheet-overlay'}\n data-state={state}\n className={s.overlay}\n onClick={() => onOpenChange(false)}\n aria-hidden={'true'}\n />\n <div\n ref={ref}\n data-slot={'sheet-content'}\n data-state={state}\n role={'dialog'}\n aria-modal={'true'}\n aria-labelledby={titleId}\n aria-describedby={descriptionId}\n className={cn(\n s['sheet-content'],\n sideClassMap[side],\n s[`size-${size}`],\n inset && s['content-inset'],\n className,\n )}\n onClick={e => e.stopPropagation()}\n {...props}\n >\n {children}\n <SheetClose className={s['close-button']} asChild>\n <Button variant={'ghost'} theme={'inherit'} iconOnly size={'sm'}>\n <XIcon />\n <span className={'srOnly'}>Close</span>\n </Button>\n </SheetClose>\n </div>\n </div>,\n document.body,\n );\n },\n);\nSheetContent.displayName = 'SheetContent';\n\n// ── Semantic sub-components ──────────────────────────────\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-header'} className={cn(s.header, className)} {...props} />;\n}\n\nfunction SheetBody({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-body'} className={cn(s.body, className)} {...props} />;\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-footer'} className={cn(s.footer, className)} {...props} />;\n}\n\nfunction SheetTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n const { titleId } = useSheet();\n\n return (\n <h2 id={titleId} data-slot={'sheet-title'} className={cn(s.title, className)} {...props} />\n );\n}\n\nfunction SheetDescription({ className, ...props }: React.ComponentProps<'p'>) {\n const { descriptionId } = useSheet();\n\n return (\n <p\n id={descriptionId}\n data-slot={'sheet-description'}\n className={cn(s.description, className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAA2B,IAAI,CAAC;AAExE,SAAS,QAAQ,GAAA;IACf,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;AAC1C,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;AAClF,IAAA,OAAO,GAAG;AACZ;AAWA,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,GAAG,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAc,EAAA;AAC9F,IAAA,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;AACnE,IAAA,MAAM,YAAY,GAAG,cAAc,KAAK,SAAS;IACjD,MAAM,IAAI,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY;AACzD,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE;AAC7B,I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EAAE,EAAE,OAAO,EAAA,WAAA,EAAa,aAAa,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,EAAA,GAAM,KAAK,EAAA,CAAI;AAE/F;AAEA,SAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA6B,EAAA;AAC1E,IAAA,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE;IAEpC,QACEA,WACE,EAAE,EAAE,aAAa,EAAA,WAAA,EACN,mBAAmB,EAC9B,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,EAAA,GACnC,KAAK,EAAA,CACT;AAEN;;"}
1
+ {"version":3,"file":"sheet.js","sources":["../../../src/navigation/Sheet/sheet.tsx"],"sourcesContent":["import { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { XIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { Slot } from '../../internal/slot';\nimport { useAnimationState } from '../../internal/use-animation-state';\nimport { useFocusTrap } from '../../internal/use-focus-trap';\nimport { useScrollLock } from '../../internal/use-scroll-lock';\nimport s from './sheet.module.scss';\n\n// ── Context ──────────────────────────────────────────────\n\ntype SheetContextValue = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n titleId: string;\n descriptionId: string;\n};\n\nconst SheetContext = React.createContext<SheetContextValue | null>(null);\n\nfunction useSheet() {\n const ctx = React.useContext(SheetContext);\n if (!ctx) throw new Error('Sheet compound components must be used within <Sheet>');\n return ctx;\n}\n\n// ── Root ─────────────────────────────────────────────────\n\nexport interface SheetProps {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n children?: React.ReactNode;\n}\n\nfunction Sheet({ open: controlledOpen, defaultOpen = false, onOpenChange, children }: SheetProps) {\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : internalOpen;\n const titleId = React.useId();\n const descriptionId = React.useId();\n\n const handleOpenChange = React.useCallback(\n (next: boolean) => {\n if (!isControlled) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [isControlled, onOpenChange],\n );\n\n return (\n <SheetContext.Provider value={{ open, onOpenChange: handleOpenChange, titleId, descriptionId }}>\n {children}\n </SheetContext.Provider>\n );\n}\n\n// ── Trigger ──────────────────────────────────────────────\n\nexport interface SheetTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetTrigger = React.forwardRef<HTMLButtonElement, SheetTriggerProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(true);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-trigger'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetTrigger.displayName = 'SheetTrigger';\n\n// ── Close ────────────────────────────────────────────────\n\nexport interface SheetCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetClose = React.forwardRef<HTMLButtonElement, SheetCloseProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(false);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-close'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetClose.displayName = 'SheetClose';\n\n// ── Content ──────────────────────────────────────────────\n\nconst sideClassMap = {\n right: s['content-right'],\n left: s['content-left'],\n top: s['content-top'],\n bottom: s['content-bottom'],\n} as const;\n\ntype SheetSide = keyof typeof sideClassMap;\n\nexport type SheetContentProps = React.HTMLAttributes<HTMLDivElement> & {\n side?: SheetSide;\n /**\n * How much room the panel gets. `sm` suits a confirm or a short form; `lg`\n * is for a working surface — a queue of editable cards needs the width or\n * its own content starts scrolling sideways.\n */\n size?: 'sm' | 'md' | 'lg';\n /**\n * Float the panel off the viewport edge instead of sitting flush to it.\n * Reads as a card over the page rather than a second wall of it.\n */\n inset?: boolean;\n};\n\nconst SheetContent = React.forwardRef<HTMLDivElement, SheetContentProps>(\n ({ className, children, side = 'right', size = 'md', inset = false, ...props }, ref) => {\n const { open, onOpenChange, titleId, descriptionId } = useSheet();\n const { mounted, state } = useAnimationState(open, 250);\n const focusTrapRef = useFocusTrap(open);\n useScrollLock(mounted);\n\n React.useEffect(() => {\n if (!open) return;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n // A nested layer (an open Select, DatePicker or menu) marks Escape as\n // handled with preventDefault. Escape should dismiss the topmost layer\n // only, so the modal ignores an event something inside it already took.\n if (e.key === 'Escape' && !e.defaultPrevented) {\n onOpenChange(false);\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n return () => document.removeEventListener('keydown', handleKeyDown);\n }, [open, onOpenChange]);\n\n if (!mounted || state === 'idle') return null;\n\n return createPortal(\n <div data-constellation-portal={''} ref={focusTrapRef}>\n <div\n data-slot={'sheet-overlay'}\n data-state={state}\n className={s.overlay}\n onClick={() => onOpenChange(false)}\n aria-hidden={'true'}\n />\n <div\n ref={ref}\n data-slot={'sheet-content'}\n data-state={state}\n role={'dialog'}\n aria-modal={'true'}\n aria-labelledby={titleId}\n aria-describedby={descriptionId}\n className={cn(\n s['sheet-content'],\n sideClassMap[side],\n s[`size-${size}`],\n inset && s['content-inset'],\n className,\n )}\n onClick={e => e.stopPropagation()}\n {...props}\n >\n {children}\n <SheetClose className={s['close-button']} asChild>\n <Button variant={'ghost'} theme={'inherit'} iconOnly size={'sm'}>\n <XIcon />\n <span className={'srOnly'}>Close</span>\n </Button>\n </SheetClose>\n </div>\n </div>,\n document.body,\n );\n },\n);\nSheetContent.displayName = 'SheetContent';\n\n// ── Semantic sub-components ──────────────────────────────\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-header'} className={cn(s.header, className)} {...props} />;\n}\n\nfunction SheetBody({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-body'} className={cn(s.body, className)} {...props} />;\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-footer'} className={cn(s.footer, className)} {...props} />;\n}\n\nfunction SheetTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n const { titleId } = useSheet();\n\n return (\n <h2 id={titleId} data-slot={'sheet-title'} className={cn(s.title, className)} {...props} />\n );\n}\n\nfunction SheetDescription({ className, ...props }: React.ComponentProps<'p'>) {\n const { descriptionId } = useSheet();\n\n return (\n <p\n id={descriptionId}\n data-slot={'sheet-description'}\n className={cn(s.description, className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAA2B,IAAI,CAAC;AAExE,SAAS,QAAQ,GAAA;IACf,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;AAC1C,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;AAClF,IAAA,OAAO,GAAG;AACZ;AAWA,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,GAAG,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAc,EAAA;AAC9F,IAAA,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;AACnE,IAAA,MAAM,YAAY,GAAG,cAA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,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA8B,EAAA;AACrE,IAAA,MAAM,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE;IAE9B,QACEA,YAAI,EAAE,EAAE,OAAO,EAAA,WAAA,EAAa,aAAa,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,EAAA,GAAM,KAAK,EAAA,CAAI;AAE/F;AAEA,SAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA6B,EAAA;AAC1E,IAAA,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE;IAEpC,QACEA,WACE,EAAE,EAAE,aAAa,EAAA,WAAA,EACN,mBAAmB,EAC9B,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,EAAA,GACnC,KAAK,EAAA,CACT;AAEN;;"}
@@ -62,7 +62,7 @@ declare function DropdownMenuSubContent({ className, ...props }: React.HTMLAttri
62
62
  declare const linkVariants: (props?: ({
63
63
  underline?: boolean | null | undefined;
64
64
  hover?: "default" | "none" | null | undefined;
65
- theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
65
+ theme?: "primary" | "secondary" | "destructive" | "success" | "warning" | "info" | "slate" | "inherit" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
 
68
68
  interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick'>, VariantProps<typeof linkVariants> {
@@ -25,6 +25,7 @@ import '../../ui/StatCard/stat-card.js';
25
25
  import '../../ui/StatusDot/status-dot.js';
26
26
  import '../../ui/StatusDot/status-dot-variants.js';
27
27
  import '../../ui/StepProgress/step-progress.js';
28
+ import '../../ui/SwipeRow/swipe-row.js';
28
29
  import '../../ui/Switch/switch.js';
29
30
  import '../../ui/Table/table.js';
30
31
  import '../../ui/TableActionCell/table-action-cell.js';
@@ -1 +1 @@
1
- {"version":3,"file":"appearance-tabs.js","sources":["../../../src/settings/AppearanceTabs/appearance-tabs.tsx"],"sourcesContent":["import { type Appearance, useAppearance } from '@constellation/hooks';\nimport { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { type LucideIcon, MonitorIcon, MoonIcon, SunIcon } from 'lucide-react';\nimport * as React from 'react';\nimport s from './appearance-tabs.module.scss';\n\ntype AppearanceTabsProps = React.HTMLAttributes<HTMLDivElement> & {\n iconOnly?: boolean;\n};\n\nexport function AppearanceTabs({\n className = '',\n iconOnly = false,\n ...props\n}: AppearanceTabsProps) {\n const { appearance, updateAppearance } = useAppearance();\n\n const tabs: { value: Appearance; icon: LucideIcon; label: string }[] = [\n { value: 'light', icon: SunIcon, label: 'Light' },\n { value: 'dark', icon: MoonIcon, label: 'Dark' },\n { value: 'system', icon: MonitorIcon, label: 'System' },\n ];\n\n return (\n <div data-slot={'appearance-tabs'} className={cn(s['tabs-root'], className)} {...props}>\n {tabs.map(({ value, icon: Icon, label }) => (\n <Button\n key={value}\n variant={'ghost'}\n theme={'inherit'}\n rounded\n onClick={() => updateAppearance(value)}\n aria-label={label}\n iconOnly={iconOnly}\n aria-pressed={appearance === value}\n className={cn(s['tab-button'], appearance === value && s['tab-button-active'])}\n title={iconOnly ? label : undefined}\n >\n <Icon />\n {!iconOnly && <span>{label}</span>}\n </Button>\n ))}\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWM,SAAU,cAAc,CAAC,EAC7B,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,KAAK,EAChB,GAAG,KAAK,EACY,EAAA;IACpB,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,aAAa,EAAE;AAExD,IAAA,MAAM,IAAI,GAA6D;QACrE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QACjD,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;QAChD,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;KACxD;IAED,QACEA,GAAA,CAAA,KAAA,EAAA,EAAA,WAAA,EAAgB,iBAAiB,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,EAAA,GAAM,KAAK,EAAA,QAAA,EACnF,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MACrCC,IAAA,CAAC,MAAM,EAAA,EAEL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAA,IAAA,EACP,OAAO,EAAE,MAAM,gBAAgB,CAAC,KAAK,CAAC,gBAC1B,KAAK,EACjB,QAAQ,EAAE,QAAQ,EAAA,cAAA,EACJ,UAAU,KAAK,KAAK,EAClC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,UAAU,KAAK,KAAK,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC,EAC9E,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,EAAA,QAAA,EAAA,CAEnCD,GAAA,CAAC,IAAI,EAAA,EAAA,CAAG,EACP,CAAC,QAAQ,IAAIA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,KAAK,EAAA,CAAQ,CAAA,EAAA,EAZ7B,KAAK,CAaH,CACV,CAAC,EAAA,CACE;AAEV;;"}
1
+ {"version":3,"file":"appearance-tabs.js","sources":["../../../src/settings/AppearanceTabs/appearance-tabs.tsx"],"sourcesContent":["import { type Appearance, useAppearance } from '@constellation/hooks';\nimport { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { type LucideIcon, MonitorIcon, MoonIcon, SunIcon } from 'lucide-react';\nimport * as React from 'react';\nimport s from './appearance-tabs.module.scss';\n\ntype AppearanceTabsProps = React.HTMLAttributes<HTMLDivElement> & {\n iconOnly?: boolean;\n};\n\nexport function AppearanceTabs({\n className = '',\n iconOnly = false,\n ...props\n}: AppearanceTabsProps) {\n const { appearance, updateAppearance } = useAppearance();\n\n const tabs: { value: Appearance; icon: LucideIcon; label: string }[] = [\n { value: 'light', icon: SunIcon, label: 'Light' },\n { value: 'dark', icon: MoonIcon, label: 'Dark' },\n { value: 'system', icon: MonitorIcon, label: 'System' },\n ];\n\n return (\n <div data-slot={'appearance-tabs'} className={cn(s['tabs-root'], className)} {...props}>\n {tabs.map(({ value, icon: Icon, label }) => (\n <Button\n key={value}\n variant={'ghost'}\n theme={'inherit'}\n rounded\n onClick={() => updateAppearance(value)}\n aria-label={label}\n iconOnly={iconOnly}\n aria-pressed={appearance === value}\n className={cn(s['tab-button'], appearance === value && s['tab-button-active'])}\n title={iconOnly ? label : undefined}\n >\n <Icon />\n {!iconOnly && <span>{label}</span>}\n </Button>\n ))}\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWM,SAAU,cAAc,CAAC,EAC7B,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,KAAK,EAChB,GAAG,KAAK,EACY,EAAA;IACpB,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,aAAa,EAAE;AAExD,IAAA,MAAM,IAAI,GAA6D;QACrE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QACjD,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;QAChD,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;KACxD;IAED,QACEA,GAAA,CAAA,KAAA,EAAA,EAAA,WAAA,EAAgB,iBAAiB,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,EAAA,GAAM,KAAK,EAAA,QAAA,EACnF,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MACrCC,IAAA,CAAC,MAAM,EAAA,EAEL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAA,IAAA,EACP,OAAO,EAAE,MAAM,gBAAgB,CAAC,KAAK,CAAC,gBAC1B,KAAK,EACjB,QAAQ,EAAE,QAAQ,EAAA,cAAA,EACJ,UAAU,KAAK,KAAK,EAClC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,UAAU,KAAK,KAAK,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC,EAC9E,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,EAAA,QAAA,EAAA,CAEnCD,GAAA,CAAC,IAAI,EAAA,EAAA,CAAG,EACP,CAAC,QAAQ,IAAIA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,KAAK,EAAA,CAAQ,CAAA,EAAA,EAZ7B,KAAK,CAaH,CACV,CAAC,EAAA,CACE;AAEV;;"}
@@ -0,0 +1,2 @@
1
+ export * from './swipe-row';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/SwipeRow/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const swipeRowVariants: (props?: ({
2
+ theme?: "primary" | "secondary" | "destructive" | "warning" | "success" | "info" | "slate" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
+ //# sourceMappingURL=swipe-row-variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipe-row-variants.d.ts","sourceRoot":"","sources":["../../../src/ui/SwipeRow/swipe-row-variants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;8EAe3B,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { cva } from 'class-variance-authority';
2
+ import s from './swipe-row.module.scss.js';
3
+
4
+ const swipeRowVariants = cva(s['swipe-row'], {
5
+ variants: {
6
+ theme: {
7
+ primary: s['swipe-row--primary'],
8
+ secondary: s['swipe-row--secondary'],
9
+ destructive: s['swipe-row--destructive'],
10
+ warning: s['swipe-row--warning'],
11
+ success: s['swipe-row--success'],
12
+ info: s['swipe-row--info'],
13
+ slate: s['swipe-row--slate'],
14
+ },
15
+ },
16
+ defaultVariants: {
17
+ theme: 'destructive',
18
+ },
19
+ });
20
+
21
+ export { swipeRowVariants };
22
+ //# sourceMappingURL=swipe-row-variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipe-row-variants.js","sources":["../../../src/ui/SwipeRow/swipe-row-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\r\nimport s from './swipe-row.module.scss';\r\n\r\nexport const swipeRowVariants = cva(s['swipe-row'], {\r\n variants: {\r\n theme: {\r\n primary: s['swipe-row--primary'],\r\n secondary: s['swipe-row--secondary'],\r\n destructive: s['swipe-row--destructive'],\r\n warning: s['swipe-row--warning'],\r\n success: s['swipe-row--success'],\r\n info: s['swipe-row--info'],\r\n slate: s['swipe-row--slate'],\r\n },\r\n },\r\n defaultVariants: {\r\n theme: 'destructive',\r\n },\r\n});\r\n"],"names":[],"mappings":";;;AAGO,MAAM,gBAAgB,GAAG,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;AAClD,IAAA,QAAQ,EAAE;AACR,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAE,CAAC,CAAC,oBAAoB,CAAC;AAChC,YAAA,SAAS,EAAE,CAAC,CAAC,sBAAsB,CAAC;AACpC,YAAA,WAAW,EAAE,CAAC,CAAC,wBAAwB,CAAC;AACxC,YAAA,OAAO,EAAE,CAAC,CAAC,oBAAoB,CAAC;AAChC,YAAA,OAAO,EAAE,CAAC,CAAC,oBAAoB,CAAC;AAChC,YAAA,IAAI,EAAE,CAAC,CAAC,iBAAiB,CAAC;AAC1B,YAAA,KAAK,EAAE,CAAC,CAAC,kBAAkB,CAAC;AAC7B,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,KAAK,EAAE,aAAa;AACrB,KAAA;AACF,CAAA;;"}
@@ -0,0 +1,77 @@
1
+ .swipe-row-module_swipe-row__szPTg {
2
+ --swipe-row-fill: var(--destructive-main);
3
+ --swipe-row-ink: var(--destructive-contrast);
4
+ position: relative;
5
+ touch-action: pan-y;
6
+ }
7
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--primary__XMstW {
8
+ --swipe-row-fill: var(--primary-main);
9
+ --swipe-row-ink: var(--primary-contrast);
10
+ }
11
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--secondary__TfWxG {
12
+ --swipe-row-fill: var(--secondary-main);
13
+ --swipe-row-ink: var(--secondary-contrast);
14
+ }
15
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--destructive__NAjaS {
16
+ --swipe-row-fill: var(--destructive-main);
17
+ --swipe-row-ink: var(--destructive-contrast);
18
+ }
19
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--warning__ZbWIk {
20
+ --swipe-row-fill: var(--warning-main);
21
+ --swipe-row-ink: var(--warning-contrast);
22
+ }
23
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--success__rRTCs {
24
+ --swipe-row-fill: var(--success-main);
25
+ --swipe-row-ink: var(--success-contrast);
26
+ }
27
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--info__-gMEY {
28
+ --swipe-row-fill: var(--info-main);
29
+ --swipe-row-ink: var(--info-contrast);
30
+ }
31
+ .swipe-row-module_swipe-row__szPTg.swipe-row-module_swipe-row--slate__nhTJY {
32
+ --swipe-row-fill: var(--slate-main);
33
+ --swipe-row-ink: var(--slate-contrast);
34
+ }
35
+ .swipe-row-module_swipe-row__szPTg[data-open] {
36
+ border-radius: var(--radius-sm);
37
+ overflow: hidden;
38
+ }
39
+
40
+ .swipe-row-module_swipe-row__content__NzX4E {
41
+ position: relative;
42
+ }
43
+ .swipe-row-module_swipe-row__szPTg[data-open] > .swipe-row-module_swipe-row__content__NzX4E {
44
+ background: var(--surface);
45
+ }
46
+ .swipe-row-module_swipe-row__szPTg[data-settling] > .swipe-row-module_swipe-row__content__NzX4E {
47
+ transition: transform 180ms var(--easing-default);
48
+ }
49
+
50
+ .swipe-row-module_swipe-row__action__xQhsj {
51
+ align-items: center;
52
+ background: var(--swipe-row-fill);
53
+ border: 0;
54
+ color: var(--swipe-row-ink);
55
+ cursor: pointer;
56
+ display: flex;
57
+ font: inherit;
58
+ font-size: 0.875rem;
59
+ font-weight: 600;
60
+ inset: 0;
61
+ justify-content: flex-end;
62
+ padding: 0 var(--size-3);
63
+ position: absolute;
64
+ transition: filter 120ms;
65
+ }
66
+ .swipe-row-module_swipe-row__action__xQhsj[data-armed] {
67
+ filter: brightness(1.15);
68
+ }
69
+
70
+ @media (prefers-reduced-motion: reduce) {
71
+ :root:not([data-motion=full]) .swipe-row-module_swipe-row__szPTg[data-settling] > .swipe-row-module_swipe-row__content__NzX4E {
72
+ transition: none;
73
+ }
74
+ }
75
+ :root[data-motion=reduced] .swipe-row-module_swipe-row__szPTg[data-settling] > .swipe-row-module_swipe-row__content__NzX4E {
76
+ transition: none;
77
+ }
@@ -0,0 +1,14 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import { swipeRowVariants } from './swipe-row-variants';
4
+ export interface SwipeRowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof swipeRowVariants> {
5
+ children: React.ReactNode;
6
+ /** What the revealed action says. */
7
+ label?: React.ReactNode;
8
+ /** Runs once the row has slid away, from a long swipe or a tap on the action. */
9
+ onAction: () => void;
10
+ disabled?: boolean;
11
+ }
12
+ declare const SwipeRow: React.ForwardRefExoticComponent<SwipeRowProps & React.RefAttributes<HTMLDivElement>>;
13
+ export { SwipeRow };
14
+ //# sourceMappingURL=swipe-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipe-row.d.ts","sourceRoot":"","sources":["../../../src/ui/SwipeRow/swipe-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAkCxD,MAAM,WAAW,aACf,SACE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EACtD,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,iFAAiF;IACjF,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,QAAQ,sFA4Kb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,178 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import cn from 'clsx';
3
+ import * as React from 'react';
4
+ import { swipeRowVariants } from './swipe-row-variants.js';
5
+ import s from './swipe-row.module.scss.js';
6
+
7
+ /*
8
+ * Swipe left to act on a row, the way a phone's own lists do.
9
+ *
10
+ * Short swipe: the row rests open on its action, and a tap on the action does
11
+ * it. Long swipe, past half the row: it is done on release. A tap anywhere
12
+ * else on an open row only closes it, so a swipe cannot also open what the row
13
+ * opens.
14
+ *
15
+ * Touch and pen only. A mouse drag is how text gets selected, and a desktop
16
+ * already has the row's own button one click away. A swipe row is an
17
+ * accelerator, never the only way to the action.
18
+ *
19
+ * ⚠️ No transform at rest. A transformed ancestor becomes the containing block
20
+ * for `position: fixed` children, so a card that lifts out of its row would
21
+ * centre itself in the row instead of on the screen. The offset is written
22
+ * only while the row is off centre and removed at zero.
23
+ *
24
+ * ⚠️ `touch-action: pan-y` gives vertical scrolling to the browser and leaves
25
+ * horizontal movement to us. A gesture is not claimed until it has clearly
26
+ * gone sideways, so a slightly diagonal scroll still scrolls.
27
+ */
28
+ const DECIDE_PX = 8;
29
+ const COMMIT_SHARE = 0.5;
30
+ const LEAVE_MS = 160;
31
+ const SWALLOW_MS = 350;
32
+ const FIELD_SELECTOR = 'input, textarea, select, [contenteditable]:not([contenteditable="false"])';
33
+ const SwipeRow = React.forwardRef(({ children, label = 'Delete', onAction, disabled, theme, className, ...props }, ref) => {
34
+ const root = React.useRef(null);
35
+ const content = React.useRef(null);
36
+ const gesture = React.useRef(null);
37
+ const swallowUntil = React.useRef(0);
38
+ const [offset, setOffset] = React.useState(0);
39
+ const [settling, setSettling] = React.useState(false);
40
+ const [leaving, setLeaving] = React.useState(false);
41
+ const setRoot = (el) => {
42
+ root.current = el;
43
+ if (typeof ref === 'function')
44
+ ref(el);
45
+ else if (ref)
46
+ ref.current = el;
47
+ };
48
+ const width = () => root.current?.offsetWidth || 320;
49
+ const moveTo = (x) => {
50
+ setOffset(x);
51
+ const el = content.current;
52
+ if (!el)
53
+ return;
54
+ if (x)
55
+ el.style.transform = `translateX(${x}px)`;
56
+ else
57
+ el.style.removeProperty('transform');
58
+ };
59
+ // A row resting open closes when anything else on the page is touched.
60
+ React.useEffect(() => {
61
+ if (!offset || gesture.current || leaving)
62
+ return undefined;
63
+ const away = (e) => {
64
+ if (root.current?.contains(e.target))
65
+ return;
66
+ setSettling(true);
67
+ moveTo(0);
68
+ };
69
+ document.addEventListener('pointerdown', away, true);
70
+ return () => document.removeEventListener('pointerdown', away, true);
71
+ }, [offset, leaving]);
72
+ React.useEffect(() => {
73
+ if (disabled && offset && !leaving)
74
+ moveTo(0);
75
+ }, [disabled, offset, leaving]);
76
+ // The action that runs is the one current when the slide ends, not the one
77
+ // the slide started under.
78
+ const action = React.useRef(onAction);
79
+ action.current = onAction;
80
+ // The host removes the row on action; if it keeps it instead (a staple
81
+ // marked out stays on its shelf), the row comes back to centre.
82
+ React.useEffect(() => {
83
+ if (!leaving)
84
+ return undefined;
85
+ const t = window.setTimeout(() => {
86
+ action.current();
87
+ setLeaving(false);
88
+ setSettling(false);
89
+ moveTo(0);
90
+ }, LEAVE_MS);
91
+ return () => window.clearTimeout(t);
92
+ }, [leaving]);
93
+ const commit = () => {
94
+ setSettling(true);
95
+ setLeaving(true);
96
+ moveTo(-width());
97
+ };
98
+ const onPointerDown = (e) => {
99
+ props.onPointerDown?.(e);
100
+ if (disabled || leaving || e.pointerType === 'mouse' || !e.isPrimary)
101
+ return;
102
+ // A drag inside a field moves its caret or selection; it is not a swipe.
103
+ if (e.target.closest?.(FIELD_SELECTOR))
104
+ return;
105
+ gesture.current = {
106
+ x: e.clientX,
107
+ y: e.clientY,
108
+ base: offset,
109
+ claimed: false,
110
+ id: e.pointerId,
111
+ };
112
+ setSettling(false);
113
+ };
114
+ const onPointerMove = (e) => {
115
+ props.onPointerMove?.(e);
116
+ const g = gesture.current;
117
+ if (!g || e.pointerId !== g.id)
118
+ return;
119
+ const dx = e.clientX - g.x;
120
+ const dy = e.clientY - g.y;
121
+ if (!g.claimed) {
122
+ if (Math.abs(dy) > DECIDE_PX && Math.abs(dy) > Math.abs(dx)) {
123
+ gesture.current = null;
124
+ return;
125
+ }
126
+ if (Math.abs(dx) < DECIDE_PX || Math.abs(dx) < Math.abs(dy) * 1.2)
127
+ return;
128
+ g.claimed = true;
129
+ root.current?.setPointerCapture?.(e.pointerId);
130
+ }
131
+ moveTo(Math.min(0, g.base + dx));
132
+ };
133
+ const onPointerEnd = (e) => {
134
+ if (e.type === 'pointerup')
135
+ props.onPointerUp?.(e);
136
+ else
137
+ props.onPointerCancel?.(e);
138
+ const g = gesture.current;
139
+ gesture.current = null;
140
+ if (!g || e.pointerId !== g.id)
141
+ return;
142
+ if (!g.claimed) {
143
+ // A plain tap on a row resting open closes it rather than opening it.
144
+ if (g.base) {
145
+ swallowUntil.current = performance.now() + SWALLOW_MS;
146
+ setSettling(true);
147
+ moveTo(0);
148
+ }
149
+ return;
150
+ }
151
+ swallowUntil.current = performance.now() + SWALLOW_MS;
152
+ setSettling(true);
153
+ if (e.type !== 'pointercancel' && offset < -width() * COMMIT_SHARE)
154
+ commit();
155
+ else
156
+ moveTo(offset < -56 ? -88 : 0);
157
+ };
158
+ // The click a swipe ends with belongs to the swipe, not to the row under it.
159
+ // ⚠️ Time-boxed, not a flag: a drag usually produces NO click, and a flag
160
+ // left standing ate the next real tap — the one on the action itself.
161
+ const onClickCapture = (e) => {
162
+ props.onClickCapture?.(e);
163
+ if (performance.now() > swallowUntil.current)
164
+ return;
165
+ swallowUntil.current = 0;
166
+ e.stopPropagation();
167
+ e.preventDefault();
168
+ };
169
+ return (jsxs("div", { ...props, ref: setRoot, className: cn(swipeRowVariants({ theme }), className), "data-slot": 'swipe-row', "data-open": offset ? '' : undefined, "data-settling": settling ? '' : undefined, "data-leaving": leaving ? '' : undefined, onPointerDown: onPointerDown, onPointerMove: onPointerMove, onPointerUp: onPointerEnd, onPointerCancel: onPointerEnd, onClickCapture: onClickCapture, children: [offset ? (jsx("button", { type: 'button', className: s['swipe-row__action'], "data-slot": 'swipe-row-action', "data-armed": offset < -width() * COMMIT_SHARE ? '' : undefined, onPointerDown: e => e.stopPropagation(), onClick: e => {
170
+ e.stopPropagation();
171
+ if (!leaving)
172
+ commit();
173
+ }, children: label })) : null, jsx("div", { ref: content, className: s['swipe-row__content'], "data-slot": 'swipe-row-content', onTransitionEnd: () => setSettling(false), children: children })] }));
174
+ });
175
+ SwipeRow.displayName = 'SwipeRow';
176
+
177
+ export { SwipeRow };
178
+ //# sourceMappingURL=swipe-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipe-row.js","sources":["../../../src/ui/SwipeRow/swipe-row.tsx"],"sourcesContent":["import { type VariantProps } from 'class-variance-authority';\r\nimport cn from 'clsx';\r\nimport * as React from 'react';\r\nimport { swipeRowVariants } from './swipe-row-variants';\r\nimport s from './swipe-row.module.scss';\r\n\r\n/*\r\n * Swipe left to act on a row, the way a phone's own lists do.\r\n *\r\n * Short swipe: the row rests open on its action, and a tap on the action does\r\n * it. Long swipe, past half the row: it is done on release. A tap anywhere\r\n * else on an open row only closes it, so a swipe cannot also open what the row\r\n * opens.\r\n *\r\n * Touch and pen only. A mouse drag is how text gets selected, and a desktop\r\n * already has the row's own button one click away. A swipe row is an\r\n * accelerator, never the only way to the action.\r\n *\r\n * ⚠️ No transform at rest. A transformed ancestor becomes the containing block\r\n * for `position: fixed` children, so a card that lifts out of its row would\r\n * centre itself in the row instead of on the screen. The offset is written\r\n * only while the row is off centre and removed at zero.\r\n *\r\n * ⚠️ `touch-action: pan-y` gives vertical scrolling to the browser and leaves\r\n * horizontal movement to us. A gesture is not claimed until it has clearly\r\n * gone sideways, so a slightly diagonal scroll still scrolls.\r\n */\r\nconst DECIDE_PX = 8;\r\nconst REST_PX = 88;\r\nconst OPEN_AT_PX = 56;\r\nconst COMMIT_SHARE = 0.5;\r\nconst LEAVE_MS = 160;\r\nconst SWALLOW_MS = 350;\r\nconst FIELD_SELECTOR = 'input, textarea, select, [contenteditable]:not([contenteditable=\"false\"])';\r\n\r\ntype Gesture = { x: number; y: number; base: number; claimed: boolean; id: number };\r\n\r\nexport interface SwipeRowProps\r\n extends\r\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>,\r\n VariantProps<typeof swipeRowVariants> {\r\n children: React.ReactNode;\r\n /** What the revealed action says. */\r\n label?: React.ReactNode;\r\n /** Runs once the row has slid away, from a long swipe or a tap on the action. */\r\n onAction: () => void;\r\n disabled?: boolean;\r\n}\r\n\r\nconst SwipeRow = React.forwardRef<HTMLDivElement, SwipeRowProps>(\r\n ({ children, label = 'Delete', onAction, disabled, theme, className, ...props }, ref) => {\r\n const root = React.useRef<HTMLDivElement | null>(null);\r\n const content = React.useRef<HTMLDivElement | null>(null);\r\n const gesture = React.useRef<Gesture | null>(null);\r\n const swallowUntil = React.useRef(0);\r\n const [offset, setOffset] = React.useState(0);\r\n const [settling, setSettling] = React.useState(false);\r\n const [leaving, setLeaving] = React.useState(false);\r\n\r\n const setRoot = (el: HTMLDivElement | null) => {\r\n root.current = el;\r\n if (typeof ref === 'function') ref(el);\r\n else if (ref) ref.current = el;\r\n };\r\n\r\n const width = () => root.current?.offsetWidth || 320;\r\n\r\n const moveTo = (x: number) => {\r\n setOffset(x);\r\n const el = content.current;\r\n if (!el) return;\r\n if (x) el.style.transform = `translateX(${x}px)`;\r\n else el.style.removeProperty('transform');\r\n };\r\n\r\n // A row resting open closes when anything else on the page is touched.\r\n React.useEffect(() => {\r\n if (!offset || gesture.current || leaving) return undefined;\r\n const away = (e: PointerEvent) => {\r\n if (root.current?.contains(e.target as Node)) return;\r\n setSettling(true);\r\n moveTo(0);\r\n };\r\n document.addEventListener('pointerdown', away, true);\r\n return () => document.removeEventListener('pointerdown', away, true);\r\n }, [offset, leaving]);\r\n\r\n React.useEffect(() => {\r\n if (disabled && offset && !leaving) moveTo(0);\r\n }, [disabled, offset, leaving]);\r\n\r\n // The action that runs is the one current when the slide ends, not the one\r\n // the slide started under.\r\n const action = React.useRef(onAction);\r\n action.current = onAction;\r\n\r\n // The host removes the row on action; if it keeps it instead (a staple\r\n // marked out stays on its shelf), the row comes back to centre.\r\n React.useEffect(() => {\r\n if (!leaving) return undefined;\r\n const t = window.setTimeout(() => {\r\n action.current();\r\n setLeaving(false);\r\n setSettling(false);\r\n moveTo(0);\r\n }, LEAVE_MS);\r\n return () => window.clearTimeout(t);\r\n }, [leaving]);\r\n\r\n const commit = () => {\r\n setSettling(true);\r\n setLeaving(true);\r\n moveTo(-width());\r\n };\r\n\r\n const onPointerDown = (e: React.PointerEvent<HTMLDivElement>) => {\r\n props.onPointerDown?.(e);\r\n if (disabled || leaving || e.pointerType === 'mouse' || !e.isPrimary) return;\r\n // A drag inside a field moves its caret or selection; it is not a swipe.\r\n if ((e.target as Element).closest?.(FIELD_SELECTOR)) return;\r\n gesture.current = {\r\n x: e.clientX,\r\n y: e.clientY,\r\n base: offset,\r\n claimed: false,\r\n id: e.pointerId,\r\n };\r\n setSettling(false);\r\n };\r\n\r\n const onPointerMove = (e: React.PointerEvent<HTMLDivElement>) => {\r\n props.onPointerMove?.(e);\r\n const g = gesture.current;\r\n if (!g || e.pointerId !== g.id) return;\r\n const dx = e.clientX - g.x;\r\n const dy = e.clientY - g.y;\r\n if (!g.claimed) {\r\n if (Math.abs(dy) > DECIDE_PX && Math.abs(dy) > Math.abs(dx)) {\r\n gesture.current = null;\r\n return;\r\n }\r\n if (Math.abs(dx) < DECIDE_PX || Math.abs(dx) < Math.abs(dy) * 1.2) return;\r\n g.claimed = true;\r\n root.current?.setPointerCapture?.(e.pointerId);\r\n }\r\n moveTo(Math.min(0, g.base + dx));\r\n };\r\n\r\n const onPointerEnd = (e: React.PointerEvent<HTMLDivElement>) => {\r\n if (e.type === 'pointerup') props.onPointerUp?.(e);\r\n else props.onPointerCancel?.(e);\r\n const g = gesture.current;\r\n gesture.current = null;\r\n if (!g || e.pointerId !== g.id) return;\r\n if (!g.claimed) {\r\n // A plain tap on a row resting open closes it rather than opening it.\r\n if (g.base) {\r\n swallowUntil.current = performance.now() + SWALLOW_MS;\r\n setSettling(true);\r\n moveTo(0);\r\n }\r\n return;\r\n }\r\n swallowUntil.current = performance.now() + SWALLOW_MS;\r\n setSettling(true);\r\n if (e.type !== 'pointercancel' && offset < -width() * COMMIT_SHARE) commit();\r\n else moveTo(offset < -OPEN_AT_PX ? -REST_PX : 0);\r\n };\r\n\r\n // The click a swipe ends with belongs to the swipe, not to the row under it.\r\n // ⚠️ Time-boxed, not a flag: a drag usually produces NO click, and a flag\r\n // left standing ate the next real tap — the one on the action itself.\r\n const onClickCapture = (e: React.MouseEvent<HTMLDivElement>) => {\r\n props.onClickCapture?.(e);\r\n if (performance.now() > swallowUntil.current) return;\r\n swallowUntil.current = 0;\r\n e.stopPropagation();\r\n e.preventDefault();\r\n };\r\n\r\n return (\r\n <div\r\n {...props}\r\n ref={setRoot}\r\n className={cn(swipeRowVariants({ theme }), className)}\r\n data-slot={'swipe-row'}\r\n data-open={offset ? '' : undefined}\r\n data-settling={settling ? '' : undefined}\r\n data-leaving={leaving ? '' : undefined}\r\n onPointerDown={onPointerDown}\r\n onPointerMove={onPointerMove}\r\n onPointerUp={onPointerEnd}\r\n onPointerCancel={onPointerEnd}\r\n onClickCapture={onClickCapture}\r\n >\r\n {offset ? (\r\n <button\r\n type={'button'}\r\n className={s['swipe-row__action']}\r\n data-slot={'swipe-row-action'}\r\n data-armed={offset < -width() * COMMIT_SHARE ? '' : undefined}\r\n onPointerDown={e => e.stopPropagation()}\r\n onClick={e => {\r\n e.stopPropagation();\r\n if (!leaving) commit();\r\n }}\r\n >\r\n {label}\r\n </button>\r\n ) : null}\r\n <div\r\n ref={content}\r\n className={s['swipe-row__content']}\r\n data-slot={'swipe-row-content'}\r\n onTransitionEnd={() => setSettling(false)}\r\n >\r\n {children}\r\n </div>\r\n </div>\r\n );\r\n },\r\n);\r\nSwipeRow.displayName = 'SwipeRow';\r\n\r\nexport { SwipeRow };\r\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAMA;;;;;;;;;;;;;;;;;;;;AAoBG;AACH,MAAM,SAAS,GAAG,CAAC;AAGnB,MAAM,YAAY,GAAG,GAAG;AACxB,MAAM,QAAQ,GAAG,GAAG;AACpB,MAAM,UAAU,GAAG,GAAG;AACtB,MAAM,cAAc,GAAG,2EAA2E;AAgBlG,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,QAAQ,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AG,EAAE,GAAG,SAAS,EAC7D,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,EACvC,OAAO,EAAE,CAAC,IAAG;oBACX,CAAC,CAAC,eAAe,EAAE;AACnB,oBAAA,IAAI,CAAC,OAAO;AAAE,wBAAA,MAAM,EAAE;AACxB,gBAAA,CAAC,YAEA,KAAK,EAAA,CACC,IACP,IAAI,EACRA,GAAA,CAAA,KAAA,EAAA,EACE,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,CAAC,CAAC,oBAAoB,CAAC,eACvB,mBAAmB,EAC9B,eAAe,EAAE,MAAM,WAAW,CAAC,KAAK,CAAC,EAAA,QAAA,EAExC,QAAQ,EAAA,CACL,CAAA,EAAA,CACF;AAEV,CAAC;AAEH,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
@@ -0,0 +1,6 @@
1
+ import './swipe-row.css';
2
+
3
+ var s = {"swipe-row":"swipe-row-module_swipe-row__szPTg","swipe-row--primary":"swipe-row-module_swipe-row--primary__XMstW","swipe-row--secondary":"swipe-row-module_swipe-row--secondary__TfWxG","swipe-row--destructive":"swipe-row-module_swipe-row--destructive__NAjaS","swipe-row--warning":"swipe-row-module_swipe-row--warning__ZbWIk","swipe-row--success":"swipe-row-module_swipe-row--success__rRTCs","swipe-row--info":"swipe-row-module_swipe-row--info__-gMEY","swipe-row--slate":"swipe-row-module_swipe-row--slate__nhTJY","swipe-row__content":"swipe-row-module_swipe-row__content__NzX4E","swipe-row__action":"swipe-row-module_swipe-row__action__xQhsj"};
4
+
5
+ export { s as default };
6
+ //# sourceMappingURL=swipe-row.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swipe-row.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -15,6 +15,7 @@ export * from './Separator';
15
15
  export * from './StatCard';
16
16
  export * from './StatusDot';
17
17
  export * from './StepProgress';
18
+ export * from './SwipeRow';
18
19
  export * from './Switch';
19
20
  export * from './Table';
20
21
  export * from './TableActionCell';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,C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