@placetostand/ui 0.0.0-stage → 0.1.1

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 (85) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +21 -0
  3. package/README.md +91 -2
  4. package/accordion.d.ts +7 -0
  5. package/accordion.js +18 -0
  6. package/alert-dialog.d.ts +18 -0
  7. package/alert-dialog.js +43 -0
  8. package/alert.d.ts +12 -0
  9. package/alert.js +32 -0
  10. package/avatar.d.ts +16 -0
  11. package/avatar.js +29 -0
  12. package/badge-tints.d.ts +20 -0
  13. package/badge-tints.js +69 -0
  14. package/badge.d.ts +9 -0
  15. package/badge.js +22 -0
  16. package/breadcrumb.d.ts +11 -0
  17. package/breadcrumb.js +36 -0
  18. package/button.d.ts +14 -0
  19. package/button.js +34 -0
  20. package/calendar.d.ts +8 -0
  21. package/calendar.js +76 -0
  22. package/card.d.ts +9 -0
  23. package/card.js +24 -0
  24. package/checkbox.d.ts +4 -0
  25. package/checkbox.js +9 -0
  26. package/cn.d.ts +2 -0
  27. package/cn.js +8 -0
  28. package/collapsible.d.ts +6 -0
  29. package/collapsible.js +13 -0
  30. package/company-time-zone.d.ts +3 -0
  31. package/company-time-zone.js +6 -0
  32. package/confirm-dialog.d.ts +16 -0
  33. package/confirm-dialog.js +29 -0
  34. package/context-menu.d.ts +32 -0
  35. package/context-menu.js +51 -0
  36. package/dates.d.ts +16 -0
  37. package/dates.js +129 -0
  38. package/dialog.d.ts +21 -0
  39. package/dialog.js +43 -0
  40. package/dropdown-menu.d.ts +38 -0
  41. package/dropdown-menu.js +70 -0
  42. package/empty-state.d.ts +12 -0
  43. package/empty-state.js +13 -0
  44. package/hooks/use-mobile.d.ts +1 -0
  45. package/hooks/use-mobile.js +15 -0
  46. package/input.d.ts +3 -0
  47. package/input.js +6 -0
  48. package/kbd.d.ts +9 -0
  49. package/kbd.js +10 -0
  50. package/label.d.ts +3 -0
  51. package/label.js +7 -0
  52. package/numbers.d.ts +14 -0
  53. package/numbers.js +50 -0
  54. package/package.json +203 -4
  55. package/popover.d.ts +12 -0
  56. package/popover.js +38 -0
  57. package/popup-align.d.ts +1 -0
  58. package/popup-align.js +1 -0
  59. package/progress.d.ts +4 -0
  60. package/progress.js +8 -0
  61. package/row-action-button.d.ts +11 -0
  62. package/row-action-button.js +11 -0
  63. package/segmented-control.d.ts +18 -0
  64. package/segmented-control.js +9 -0
  65. package/select.d.ts +27 -0
  66. package/select.js +78 -0
  67. package/separator.d.ts +6 -0
  68. package/separator.js +8 -0
  69. package/skeleton.d.ts +3 -0
  70. package/skeleton.js +6 -0
  71. package/slot.d.ts +8 -0
  72. package/slot.js +30 -0
  73. package/styles/theme.css +192 -0
  74. package/switch.d.ts +6 -0
  75. package/switch.js +8 -0
  76. package/table.d.ts +18 -0
  77. package/table.js +47 -0
  78. package/tabs.d.ts +17 -0
  79. package/tabs.js +26 -0
  80. package/textarea.d.ts +3 -0
  81. package/textarea.js +6 -0
  82. package/theme-provider.d.ts +13 -0
  83. package/theme-provider.js +57 -0
  84. package/tooltip.d.ts +16 -0
  85. package/tooltip.js +23 -0
package/calendar.js ADDED
@@ -0,0 +1,76 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import * as React from 'react';
4
+ import { cn } from './cn.js';
5
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, } from 'lucide-react';
6
+ import { DayPicker, getDefaultClassNames, } from 'react-day-picker';
7
+ import { buttonVariants } from './button.js';
8
+ function Calendar({ className, classNames, showOutsideDays = true, captionLayout = 'label', buttonVariant = 'ghost', formatters, components, ...props }) {
9
+ const defaultClassNames = getDefaultClassNames();
10
+ return (_jsx(DayPicker, { showOutsideDays: showOutsideDays, className: cn('group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent', String.raw `rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw `rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className), captionLayout: captionLayout, formatters: {
11
+ formatMonthDropdown: date => date.toLocaleString('default', { month: 'short' }),
12
+ ...formatters,
13
+ }, classNames: {
14
+ root: cn('w-fit', defaultClassNames.root),
15
+ months: cn('relative flex flex-col gap-4 md:flex-row', defaultClassNames.months),
16
+ month: cn('flex w-full flex-col gap-4', defaultClassNames.month),
17
+ nav: cn('absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1', defaultClassNames.nav),
18
+ button_previous: cn(buttonVariants({ variant: buttonVariant }), 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50', defaultClassNames.button_previous),
19
+ button_next: cn(buttonVariants({ variant: buttonVariant }), 'size-(--cell-size) p-0 select-none aria-disabled:opacity-50', defaultClassNames.button_next),
20
+ month_caption: cn('flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)', defaultClassNames.month_caption),
21
+ dropdowns: cn('flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium', defaultClassNames.dropdowns),
22
+ dropdown_root: cn('border-input has-focus:border-ring has-focus:ring-ring/50 relative rounded-md border shadow-xs has-focus:ring-[3px]', defaultClassNames.dropdown_root),
23
+ dropdown: cn('bg-popover absolute inset-0 opacity-0', defaultClassNames.dropdown),
24
+ caption_label: cn('font-medium select-none', captionLayout === 'label'
25
+ ? 'text-sm'
26
+ : '[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5', defaultClassNames.caption_label),
27
+ month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),
28
+ weekdays: cn('flex', defaultClassNames.weekdays),
29
+ weekday: cn('text-muted-foreground flex-1 rounded-md text-[0.8rem] font-normal select-none', defaultClassNames.weekday),
30
+ week: cn('mt-2 flex w-full', defaultClassNames.week),
31
+ week_number_header: cn('w-(--cell-size) select-none', defaultClassNames.week_number_header),
32
+ week_number: cn('text-muted-foreground text-[0.8rem] select-none', defaultClassNames.week_number),
33
+ day: cn('group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md', props.showWeekNumber
34
+ ? '[&:nth-child(2)[data-selected=true]_button]:rounded-l-md'
35
+ : '[&:first-child[data-selected=true]_button]:rounded-l-md', defaultClassNames.day),
36
+ range_start: cn('bg-accent rounded-l-md', defaultClassNames.range_start),
37
+ range_middle: cn('rounded-none', defaultClassNames.range_middle),
38
+ range_end: cn('bg-accent rounded-r-md', defaultClassNames.range_end),
39
+ today: cn('bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none', defaultClassNames.today),
40
+ outside: cn('text-muted-foreground aria-selected:text-muted-foreground', defaultClassNames.outside),
41
+ disabled: cn('text-muted-foreground opacity-50', defaultClassNames.disabled),
42
+ hidden: cn('invisible', defaultClassNames.hidden),
43
+ ...classNames,
44
+ }, components: {
45
+ Root: ({ className, rootRef, ...props }) => {
46
+ return (_jsx("div", { "data-slot": 'calendar', ref: rootRef, className: cn(className), ...props }));
47
+ },
48
+ Chevron: ({ className, orientation, ...props }) => {
49
+ if (orientation === 'left') {
50
+ return (_jsx(ChevronLeftIcon, { className: cn('size-4', className), ...props }));
51
+ }
52
+ if (orientation === 'right') {
53
+ return (_jsx(ChevronRightIcon, { className: cn('size-4', className), ...props }));
54
+ }
55
+ return (_jsx(ChevronDownIcon, { className: cn('size-4', className), ...props }));
56
+ },
57
+ DayButton: CalendarDayButton,
58
+ WeekNumber: ({ children, ...props }) => {
59
+ return (_jsx("td", { ...props, children: _jsx("div", { className: 'flex size-(--cell-size) items-center justify-center text-center', children: children }) }));
60
+ },
61
+ ...components,
62
+ }, ...props }));
63
+ }
64
+ function CalendarDayButton({ className, day, modifiers, ...props }) {
65
+ const defaultClassNames = getDefaultClassNames();
66
+ const ref = React.useRef(null);
67
+ React.useEffect(() => {
68
+ if (modifiers.focused)
69
+ ref.current?.focus();
70
+ }, [modifiers.focused]);
71
+ return (_jsx("button", { ref: ref, "data-slot": 'button', "data-day": day.isoDate, "data-selected-single": modifiers.selected &&
72
+ !modifiers.range_start &&
73
+ !modifiers.range_end &&
74
+ !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn(buttonVariants({ variant: 'ghost', size: 'icon' }), 'group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70', defaultClassNames.day, className), ...props }));
75
+ }
76
+ export { Calendar, CalendarDayButton };
package/card.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ declare function Card({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
6
+ declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
7
+ declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
8
+ declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
9
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
package/card.js ADDED
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from './cn.js';
3
+ function Card({ className, ...props }) {
4
+ return (_jsx("div", { "data-slot": 'card', className: cn('bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm', className), ...props }));
5
+ }
6
+ function CardHeader({ className, ...props }) {
7
+ return (_jsx("div", { "data-slot": 'card-header', className: cn('@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6', className), ...props }));
8
+ }
9
+ function CardTitle({ className, ...props }) {
10
+ return (_jsx("div", { "data-slot": 'card-title', className: cn('leading-none font-semibold', className), ...props }));
11
+ }
12
+ function CardDescription({ className, ...props }) {
13
+ return (_jsx("div", { "data-slot": 'card-description', className: cn('text-muted-foreground text-sm', className), ...props }));
14
+ }
15
+ function CardAction({ className, ...props }) {
16
+ return (_jsx("div", { "data-slot": 'card-action', className: cn('col-start-2 row-span-2 row-start-1 self-start justify-self-end', className), ...props }));
17
+ }
18
+ function CardContent({ className, ...props }) {
19
+ return (_jsx("div", { "data-slot": 'card-content', className: cn('px-6', className), ...props }));
20
+ }
21
+ function CardFooter({ className, ...props }) {
22
+ return (_jsx("div", { "data-slot": 'card-footer', className: cn('flex items-center px-6 [.border-t]:pt-6', className), ...props }));
23
+ }
24
+ export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
package/checkbox.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
3
+ declare function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props): React.JSX.Element;
4
+ export { Checkbox };
package/checkbox.js ADDED
@@ -0,0 +1,9 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
4
+ import { CheckIcon, MinusIcon } from 'lucide-react';
5
+ import { cn } from './cn.js';
6
+ function Checkbox({ className, ...props }) {
7
+ return (_jsx(CheckboxPrimitive.Root, { "data-slot": 'checkbox', className: cn('peer border-input dark:bg-input/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground dark:data-indeterminate:bg-primary data-indeterminate:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50', className), ...props, children: _jsxs(CheckboxPrimitive.Indicator, { "data-slot": 'checkbox-indicator', className: 'group grid place-content-center text-current transition-none', children: [_jsx(CheckIcon, { className: 'size-3.5 group-data-indeterminate:hidden' }), _jsx(MinusIcon, { className: 'hidden size-3.5 group-data-indeterminate:block' })] }) }));
8
+ }
9
+ export { Checkbox };
package/cn.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
package/cn.js ADDED
@@ -0,0 +1,8 @@
1
+ import { clsx } from 'clsx';
2
+ import { extendTailwindMerge } from 'tailwind-merge';
3
+ const twMerge = extendTailwindMerge({
4
+ extend: { classGroups: { 'font-size': [{ text: ['overline', 'micro'] }] } },
5
+ });
6
+ export function cn(...inputs) {
7
+ return twMerge(clsx(inputs));
8
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
3
+ declare function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props): React.JSX.Element;
4
+ declare function CollapsibleTrigger({ ...props }: CollapsiblePrimitive.Trigger.Props): React.JSX.Element;
5
+ declare function CollapsibleContent({ ...props }: CollapsiblePrimitive.Panel.Props): React.JSX.Element;
6
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
package/collapsible.js ADDED
@@ -0,0 +1,13 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
4
+ function Collapsible({ ...props }) {
5
+ return _jsx(CollapsiblePrimitive.Root, { "data-slot": 'collapsible', ...props });
6
+ }
7
+ function CollapsibleTrigger({ ...props }) {
8
+ return (_jsx(CollapsiblePrimitive.Trigger, { "data-slot": 'collapsible-trigger', ...props }));
9
+ }
10
+ function CollapsibleContent({ ...props }) {
11
+ return (_jsx(CollapsiblePrimitive.Panel, { "data-slot": 'collapsible-content', ...props }));
12
+ }
13
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -0,0 +1,3 @@
1
+ export declare function CompanyTimeZone({ timeZone }: {
2
+ timeZone: string;
3
+ }): null;
@@ -0,0 +1,6 @@
1
+ 'use client';
2
+ import { setCompanyTimeZone } from './dates.js';
3
+ export function CompanyTimeZone({ timeZone }) {
4
+ setCompanyTimeZone(timeZone);
5
+ return null;
6
+ }
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
3
+ type ConfirmDialogProps = {
4
+ open: boolean;
5
+ title: string;
6
+ description?: string;
7
+ confirmLabel?: string;
8
+ cancelLabel?: string;
9
+ confirmVariant?: ButtonVariant;
10
+ confirmDisabled?: boolean;
11
+ onConfirm: () => void;
12
+ onCancel: () => void;
13
+ children?: React.ReactNode;
14
+ };
15
+ export declare function ConfirmDialog({ open, title, description, confirmLabel, cancelLabel, confirmVariant, confirmDisabled, onConfirm, onCancel, children, }: ConfirmDialogProps): React.JSX.Element;
16
+ export {};
@@ -0,0 +1,29 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from 'react';
4
+ import { Button } from './button.js';
5
+ import { AlertDialog, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from './alert-dialog.js';
6
+ export function ConfirmDialog({ open, title, description, confirmLabel = 'Confirm', cancelLabel = 'Cancel', confirmVariant = 'default', confirmDisabled = false, onConfirm, onCancel, children, }) {
7
+ const live = {
8
+ title,
9
+ description,
10
+ confirmLabel,
11
+ cancelLabel,
12
+ confirmVariant,
13
+ };
14
+ const [shown, setShown] = React.useState(live);
15
+ if (open &&
16
+ (shown.title !== title ||
17
+ shown.description !== description ||
18
+ shown.confirmLabel !== confirmLabel ||
19
+ shown.cancelLabel !== cancelLabel ||
20
+ shown.confirmVariant !== confirmVariant)) {
21
+ setShown(live);
22
+ }
23
+ const content = open ? live : shown;
24
+ return (_jsx(AlertDialog, { open: open, onOpenChange: next => {
25
+ if (!next) {
26
+ onCancel();
27
+ }
28
+ }, children: _jsxs(AlertDialogContent, { onBackdropClick: onCancel, children: [_jsxs(AlertDialogHeader, { children: [_jsx(AlertDialogTitle, { children: content.title }), content.description ? (_jsx(AlertDialogDescription, { children: content.description })) : null] }), children, _jsxs(AlertDialogFooter, { children: [_jsx(Button, { type: 'button', variant: 'outline', onClick: onCancel, children: content.cancelLabel }), _jsx(Button, { type: 'button', variant: content.confirmVariant, onClick: onConfirm, disabled: confirmDisabled, children: content.confirmLabel })] })] }) }));
29
+ }
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import { ContextMenu as ContextMenuPrimitive } from '@base-ui/react/context-menu';
3
+ import type { PopupAlign } from './popup-align.js';
4
+ declare function ContextMenu({ ...props }: ContextMenuPrimitive.Root.Props): React.JSX.Element;
5
+ declare function ContextMenuPortal({ ...props }: ContextMenuPrimitive.Portal.Props): React.JSX.Element;
6
+ declare function ContextMenuTrigger({ className, ...props }: ContextMenuPrimitive.Trigger.Props): React.JSX.Element;
7
+ declare function ContextMenuContent({ className, align, alignOffset, side, sideOffset, ...props }: ContextMenuPrimitive.Popup.Props & Pick<ContextMenuPrimitive.Positioner.Props, 'alignOffset' | 'side' | 'sideOffset'> & {
8
+ align?: PopupAlign;
9
+ }): React.JSX.Element;
10
+ declare function ContextMenuGroup({ ...props }: ContextMenuPrimitive.Group.Props): React.JSX.Element;
11
+ declare function ContextMenuLabel({ className, inset, ...props }: ContextMenuPrimitive.GroupLabel.Props & {
12
+ inset?: boolean;
13
+ }): React.JSX.Element;
14
+ declare function ContextMenuItem({ className, inset, variant, ...props }: ContextMenuPrimitive.Item.Props & {
15
+ inset?: boolean;
16
+ variant?: 'default' | 'destructive';
17
+ }): React.JSX.Element;
18
+ declare function ContextMenuSub({ ...props }: ContextMenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
19
+ declare function ContextMenuSubTrigger({ className, inset, children, ...props }: ContextMenuPrimitive.SubmenuTrigger.Props & {
20
+ inset?: boolean;
21
+ }): React.JSX.Element;
22
+ declare function ContextMenuSubContent({ ...props }: React.ComponentProps<typeof ContextMenuContent>): React.JSX.Element;
23
+ declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: ContextMenuPrimitive.CheckboxItem.Props & {
24
+ inset?: boolean;
25
+ }): React.JSX.Element;
26
+ declare function ContextMenuRadioGroup({ ...props }: ContextMenuPrimitive.RadioGroup.Props): React.JSX.Element;
27
+ declare function ContextMenuRadioItem({ className, children, inset, ...props }: ContextMenuPrimitive.RadioItem.Props & {
28
+ inset?: boolean;
29
+ }): React.JSX.Element;
30
+ declare function ContextMenuSeparator({ className, ...props }: ContextMenuPrimitive.Separator.Props): React.JSX.Element;
31
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
32
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -0,0 +1,51 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { ContextMenu as ContextMenuPrimitive } from '@base-ui/react/context-menu';
4
+ import { CheckIcon, ChevronRightIcon } from 'lucide-react';
5
+ import { cn } from './cn.js';
6
+ function ContextMenu({ ...props }) {
7
+ return _jsx(ContextMenuPrimitive.Root, { "data-slot": 'context-menu', ...props });
8
+ }
9
+ function ContextMenuPortal({ ...props }) {
10
+ return (_jsx(ContextMenuPrimitive.Portal, { "data-slot": 'context-menu-portal', ...props }));
11
+ }
12
+ function ContextMenuTrigger({ className, ...props }) {
13
+ return (_jsx(ContextMenuPrimitive.Trigger, { "data-slot": 'context-menu-trigger', className: cn('pointer-coarse:select-none', className), ...props }));
14
+ }
15
+ function ContextMenuContent({ className, align, alignOffset = 4, side = 'right', sideOffset = 0, ...props }) {
16
+ return (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Positioner, { className: 'isolate z-50 outline-none', align: align ?? 'start', alignOffset: alignOffset, side: side, sideOffset: sideOffset, children: _jsx(ContextMenuPrimitive.Popup, { "data-slot": 'context-menu-content', className: cn('bg-popover text-popover-foreground shadow-popover data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 duration-100 outline-none', className), ...props }) }) }));
17
+ }
18
+ function ContextMenuGroup({ ...props }) {
19
+ return (_jsx(ContextMenuPrimitive.Group, { "data-slot": 'context-menu-group', ...props }));
20
+ }
21
+ function ContextMenuLabel({ className, inset, ...props }) {
22
+ return (_jsx(ContextMenuPrimitive.GroupLabel, { "data-slot": 'context-menu-label', "data-inset": inset, className: cn('text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7', className), ...props }));
23
+ }
24
+ function ContextMenuItem({ className, inset, variant = 'default', ...props }) {
25
+ return (_jsx(ContextMenuPrimitive.Item, { "data-slot": 'context-menu-item', "data-inset": inset, "data-variant": variant, className: cn("group/context-menu-item focus:bg-accent focus:text-accent-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground hover:bg-accent hover:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:hover:bg-destructive/10 data-[variant=destructive]:hover:text-destructive [&_svg]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props }));
26
+ }
27
+ function ContextMenuSub({ ...props }) {
28
+ return (_jsx(ContextMenuPrimitive.SubmenuRoot, { "data-slot": 'context-menu-sub', ...props }));
29
+ }
30
+ function ContextMenuSubTrigger({ className, inset, children, ...props }) {
31
+ return (_jsxs(ContextMenuPrimitive.SubmenuTrigger, { "data-slot": 'context-menu-sub-trigger', "data-inset": inset, className: cn("focus:bg-accent focus:text-accent-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground hover:bg-accent hover:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:text-muted-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [children, _jsx("span", { "aria-hidden": true, className: 'ml-auto flex pl-4', children: _jsx(ChevronRightIcon, {}) })] }));
32
+ }
33
+ function ContextMenuSubContent({ ...props }) {
34
+ return (_jsx(ContextMenuContent, { "data-slot": 'context-menu-sub-content', className: 'shadow-lg', side: 'right', ...props }));
35
+ }
36
+ function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }) {
37
+ return (_jsxs(ContextMenuPrimitive.CheckboxItem, { "data-slot": 'context-menu-checkbox-item', "data-inset": inset, className: cn("focus:bg-accent focus:text-accent-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground hover:bg-accent hover:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), checked: checked, ...props, children: [_jsx("span", { className: 'pointer-events-none absolute right-2', children: _jsx(ContextMenuPrimitive.CheckboxItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
38
+ }
39
+ function ContextMenuRadioGroup({ ...props }) {
40
+ return (_jsx(ContextMenuPrimitive.RadioGroup, { "data-slot": 'context-menu-radio-group', ...props }));
41
+ }
42
+ function ContextMenuRadioItem({ className, children, inset, ...props }) {
43
+ return (_jsxs(ContextMenuPrimitive.RadioItem, { "data-slot": 'context-menu-radio-item', "data-inset": inset, className: cn("focus:bg-accent focus:text-accent-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground hover:bg-accent hover:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), ...props, children: [_jsx("span", { className: 'pointer-events-none absolute right-2', children: _jsx(ContextMenuPrimitive.RadioItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
44
+ }
45
+ function ContextMenuSeparator({ className, ...props }) {
46
+ return (_jsx(ContextMenuPrimitive.Separator, { "data-slot": 'context-menu-separator', className: cn('bg-border -mx-1 my-1 h-px', className), ...props }));
47
+ }
48
+ function ContextMenuShortcut({ className, ...props }) {
49
+ return (_jsx("span", { "data-slot": 'context-menu-shortcut', className: cn('text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest', className), ...props }));
50
+ }
51
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
package/dates.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ export declare const DEFAULT_COMPANY_TIME_ZONE = "America/Chicago";
2
+ export declare function getCompanyTimeZone(): string;
3
+ export declare function setCompanyTimeZone(timeZone: string | null | undefined): void;
4
+ export type TimeZoneDescription = {
5
+ genericName: string | null;
6
+ shortGeneric: string | null;
7
+ offsetLabel: string;
8
+ offsetMinutes: number;
9
+ };
10
+ export declare function describeTimeZone(timeZone: string, now?: Date): TimeZoneDescription | null;
11
+ type CalendarDateStyle = Pick<Intl.DateTimeFormatOptions, 'year' | 'month' | 'day' | 'weekday' | 'hour' | 'minute'>;
12
+ export declare function formatCalendarDate(value: string | Date | null | undefined, style?: CalendarDateStyle): string | null;
13
+ export declare function formatRelativeTime(value: string | Date | null | undefined, now?: Date): string | null;
14
+ export declare function companyCalendarDate(now?: Date): string;
15
+ export declare function companyMonthEndCutoff(year: number, month: number, timeZone?: string): Date;
16
+ export {};
package/dates.js ADDED
@@ -0,0 +1,129 @@
1
+ export const DEFAULT_COMPANY_TIME_ZONE = 'America/Chicago';
2
+ const store = globalThis;
3
+ export function getCompanyTimeZone() {
4
+ return store.__ptsCompanyTimeZone ?? DEFAULT_COMPANY_TIME_ZONE;
5
+ }
6
+ export function setCompanyTimeZone(timeZone) {
7
+ if (!timeZone || timeZone === store.__ptsCompanyTimeZone)
8
+ return;
9
+ try {
10
+ new Intl.DateTimeFormat('en-US', { timeZone });
11
+ store.__ptsCompanyTimeZone = timeZone;
12
+ }
13
+ catch {
14
+ store.__ptsCompanyTimeZone = DEFAULT_COMPANY_TIME_ZONE;
15
+ }
16
+ }
17
+ const OFFSET_RE = /^(?:GMT|UTC)(?:([+-\u2212])(\d{1,2})(?::(\d{2}))?)?$/;
18
+ export function describeTimeZone(timeZone, now = new Date()) {
19
+ const part = (timeZoneName) => {
20
+ try {
21
+ return (new Intl.DateTimeFormat('en-US', { timeZone, timeZoneName })
22
+ .formatToParts(now)
23
+ .find(entry => entry.type === 'timeZoneName')?.value ?? null);
24
+ }
25
+ catch {
26
+ return undefined;
27
+ }
28
+ };
29
+ const offset = part('shortOffset');
30
+ if (offset === undefined || offset === null)
31
+ return null;
32
+ const match = OFFSET_RE.exec(offset);
33
+ const sign = match?.[1] ? (match[1] === '+' ? 1 : -1) : 1;
34
+ const hours = Number(match?.[2] ?? 0);
35
+ const minutes = Number(match?.[3] ?? 0);
36
+ const offsetMinutes = sign * (hours * 60 + minutes);
37
+ const offsetLabel = offsetMinutes === 0
38
+ ? 'GMT'
39
+ : offset.replace(/^UTC/, 'GMT').replace('-', '\u2212');
40
+ const named = (value) => value && !OFFSET_RE.test(value) ? value : null;
41
+ return {
42
+ genericName: named(part('longGeneric')),
43
+ shortGeneric: named(part('shortGeneric')),
44
+ offsetLabel,
45
+ offsetMinutes,
46
+ };
47
+ }
48
+ const DATE_ONLY_RE = /^\d{4}-\d{2}-\d{2}$/;
49
+ const DEFAULT_STYLE = {
50
+ month: 'short',
51
+ day: 'numeric',
52
+ year: 'numeric',
53
+ };
54
+ const formatterCache = new Map();
55
+ const getFormatter = (style, timeZone) => {
56
+ const key = `${timeZone}|${JSON.stringify(style)}`;
57
+ let formatter = formatterCache.get(key);
58
+ if (!formatter) {
59
+ formatter = new Intl.DateTimeFormat('en-US', { ...style, timeZone });
60
+ formatterCache.set(key, formatter);
61
+ }
62
+ return formatter;
63
+ };
64
+ export function formatCalendarDate(value, style = DEFAULT_STYLE) {
65
+ if (!value)
66
+ return null;
67
+ if (typeof value === 'string' && DATE_ONLY_RE.test(value)) {
68
+ const [year, month, day] = value.split('-').map(Number);
69
+ return getFormatter(style, 'UTC').format(new Date(Date.UTC(year, month - 1, day)));
70
+ }
71
+ const parsed = typeof value === 'string' ? new Date(value) : value;
72
+ if (Number.isNaN(parsed.getTime()))
73
+ return null;
74
+ return getFormatter(style, getCompanyTimeZone()).format(parsed);
75
+ }
76
+ const RELATIVE_UNITS = [
77
+ ['year', 365 * 24 * 60 * 60],
78
+ ['month', 30 * 24 * 60 * 60],
79
+ ['week', 7 * 24 * 60 * 60],
80
+ ['day', 24 * 60 * 60],
81
+ ['hour', 60 * 60],
82
+ ['minute', 60],
83
+ ];
84
+ const relativeFormatter = new Intl.RelativeTimeFormat('en-US', {
85
+ numeric: 'auto',
86
+ });
87
+ export function formatRelativeTime(value, now = new Date()) {
88
+ if (!value)
89
+ return null;
90
+ const parsed = typeof value === 'string' ? new Date(value) : value;
91
+ if (Number.isNaN(parsed.getTime()))
92
+ return null;
93
+ const seconds = Math.round((parsed.getTime() - now.getTime()) / 1000);
94
+ for (const [unit, unitSeconds] of RELATIVE_UNITS) {
95
+ if (Math.abs(seconds) >= unitSeconds) {
96
+ return relativeFormatter.format(Math.round(seconds / unitSeconds), unit);
97
+ }
98
+ }
99
+ return 'just now';
100
+ }
101
+ export function companyCalendarDate(now = new Date()) {
102
+ return new Intl.DateTimeFormat('en-CA', {
103
+ timeZone: getCompanyTimeZone(),
104
+ year: 'numeric',
105
+ month: '2-digit',
106
+ day: '2-digit',
107
+ }).format(now);
108
+ }
109
+ function zoneOffsetMs(utcMs, timeZone) {
110
+ const parts = new Intl.DateTimeFormat('en-US', {
111
+ timeZone,
112
+ hourCycle: 'h23',
113
+ year: 'numeric',
114
+ month: '2-digit',
115
+ day: '2-digit',
116
+ hour: '2-digit',
117
+ minute: '2-digit',
118
+ second: '2-digit',
119
+ }).formatToParts(new Date(utcMs));
120
+ const get = (type) => Number(parts.find(part => part.type === type)?.value ?? 0);
121
+ const wallAsUtc = Date.UTC(get('year'), get('month') - 1, get('day'), get('hour'), get('minute'), get('second'));
122
+ return wallAsUtc - utcMs;
123
+ }
124
+ export function companyMonthEndCutoff(year, month, timeZone = getCompanyTimeZone()) {
125
+ const naive = Date.UTC(year, month, 1);
126
+ let utc = naive - zoneOffsetMs(naive, timeZone);
127
+ utc = naive - zoneOffsetMs(utc, timeZone);
128
+ return new Date(utc);
129
+ }
package/dialog.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
3
+ declare function Dialog({ ...props }: Omit<DialogPrimitive.Root.Props, 'children'> & {
4
+ children?: React.ReactNode;
5
+ }): React.JSX.Element;
6
+ declare function DialogTrigger({ asChild, children, ...props }: DialogPrimitive.Trigger.Props & {
7
+ asChild?: boolean;
8
+ }): React.JSX.Element;
9
+ declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): React.JSX.Element;
10
+ declare function DialogClose({ asChild, children, ...props }: DialogPrimitive.Close.Props & {
11
+ asChild?: boolean;
12
+ }): React.JSX.Element;
13
+ declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): React.JSX.Element;
14
+ declare function DialogContent({ className, children, showCloseButton, ...props }: DialogPrimitive.Popup.Props & {
15
+ showCloseButton?: boolean;
16
+ }): React.JSX.Element;
17
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
18
+ declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
19
+ declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props): React.JSX.Element;
20
+ declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): React.JSX.Element;
21
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
package/dialog.js ADDED
@@ -0,0 +1,43 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import * as React from 'react';
4
+ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
5
+ import { XIcon } from 'lucide-react';
6
+ import { cn } from './cn.js';
7
+ function Dialog({ ...props }) {
8
+ return _jsx(DialogPrimitive.Root, { "data-slot": 'dialog', ...props });
9
+ }
10
+ function DialogTrigger({ asChild, children, ...props }) {
11
+ if (asChild && React.isValidElement(children)) {
12
+ return (_jsx(DialogPrimitive.Trigger, { "data-slot": 'dialog-trigger', render: children, ...props }));
13
+ }
14
+ return (_jsx(DialogPrimitive.Trigger, { "data-slot": 'dialog-trigger', ...props, children: children }));
15
+ }
16
+ function DialogPortal({ ...props }) {
17
+ return _jsx(DialogPrimitive.Portal, { "data-slot": 'dialog-portal', ...props });
18
+ }
19
+ function DialogClose({ asChild, children, ...props }) {
20
+ if (asChild && React.isValidElement(children)) {
21
+ return (_jsx(DialogPrimitive.Close, { "data-slot": 'dialog-close', render: children, ...props }));
22
+ }
23
+ return (_jsx(DialogPrimitive.Close, { "data-slot": 'dialog-close', ...props, children: children }));
24
+ }
25
+ function DialogOverlay({ className, ...props }) {
26
+ return (_jsx(DialogPrimitive.Backdrop, { "data-slot": 'dialog-overlay', forceRender: true, className: cn('data-open:animate-in data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-open:fade-in-0 pointer-events-auto fixed inset-0 z-50 bg-black/70', className), ...props }));
27
+ }
28
+ function DialogContent({ className, children, showCloseButton = true, ...props }) {
29
+ return (_jsxs(DialogPortal, { "data-slot": 'dialog-portal', children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Popup, { "data-slot": 'dialog-content', className: cn('bg-background data-open:animate-in data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 pointer-events-auto fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', className), ...props, children: [children, showCloseButton && (_jsxs(DialogPrimitive.Close, { "data-slot": 'dialog-close', className: 'ring-offset-background focus:ring-ring data-open:bg-accent data-open:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', children: [_jsx(XIcon, {}), _jsx("span", { className: 'sr-only', children: "Close" })] }))] })] }));
30
+ }
31
+ function DialogHeader({ className, ...props }) {
32
+ return (_jsx("div", { "data-slot": 'dialog-header', className: cn('flex flex-col gap-2 text-center sm:text-left', className), ...props }));
33
+ }
34
+ function DialogFooter({ className, ...props }) {
35
+ return (_jsx("div", { "data-slot": 'dialog-footer', className: cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className), ...props }));
36
+ }
37
+ function DialogTitle({ className, ...props }) {
38
+ return (_jsx(DialogPrimitive.Title, { "data-slot": 'dialog-title', className: cn('text-lg leading-none font-semibold', className), ...props }));
39
+ }
40
+ function DialogDescription({ className, ...props }) {
41
+ return (_jsx(DialogPrimitive.Description, { "data-slot": 'dialog-description', className: cn('text-muted-foreground text-sm', className), ...props }));
42
+ }
43
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import { Menu as MenuPrimitive } from '@base-ui/react/menu';
3
+ import type { PopupAlign } from './popup-align.js';
4
+ declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
5
+ declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
6
+ declare function DropdownMenuTrigger({ asChild, children, ...props }: MenuPrimitive.Trigger.Props & {
7
+ asChild?: boolean;
8
+ }): React.JSX.Element;
9
+ declare function DropdownMenuContent({ className, align, alignOffset, side, sideOffset, forceMount, style, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'alignOffset' | 'side' | 'sideOffset'> & {
10
+ align?: PopupAlign;
11
+ } & {
12
+ forceMount?: boolean;
13
+ }): React.JSX.Element;
14
+ declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): React.JSX.Element;
15
+ type RadixItemCompatProps = {
16
+ onSelect?: (event: Event) => void;
17
+ textValue?: string;
18
+ };
19
+ declare function DropdownMenuItem({ className, inset, variant, onSelect, onClick, textValue, ...props }: MenuPrimitive.Item.Props & {
20
+ inset?: boolean;
21
+ variant?: 'default' | 'destructive';
22
+ } & RadixItemCompatProps): React.JSX.Element;
23
+ declare function DropdownMenuCheckboxItem({ className, children, checked, onSelect, onClick, textValue, ...props }: MenuPrimitive.CheckboxItem.Props & RadixItemCompatProps): React.JSX.Element;
24
+ declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): React.JSX.Element;
25
+ declare function DropdownMenuRadioItem({ className, children, onSelect, onClick, textValue, ...props }: MenuPrimitive.RadioItem.Props & RadixItemCompatProps): React.JSX.Element;
26
+ declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<'div'> & {
27
+ inset?: boolean;
28
+ }): React.JSX.Element;
29
+ declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): React.JSX.Element;
30
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
31
+ declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
32
+ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
33
+ inset?: boolean;
34
+ }): React.JSX.Element;
35
+ declare function DropdownMenuSubContent({ className, align, alignOffset, side, sideOffset, style, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, 'alignOffset' | 'side' | 'sideOffset'> & {
36
+ align?: PopupAlign;
37
+ }): React.JSX.Element;
38
+ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };