@sequenceholdings/atlas-ui 4.0.0 → 4.1.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.
- package/dist/index.d.ts +77 -8
- package/dist/index.mjs +53 -52
- package/dist/next.mjs +1 -1
- package/dist/shared/components/ui/alert-dialog.mjs +41 -38
- package/dist/shared/components/ui/button.mjs +13 -13
- package/dist/shared/components/ui/chart.mjs +1 -1
- package/dist/shared/components/ui/date-field.mjs +83 -66
- package/dist/shared/components/ui/dialog.mjs +43 -40
- package/dist/shared/components/ui/iso-date-field.mjs +11 -10
- package/dist/shared/components/ui/pro-data-table.mjs +274 -251
- package/dist/shared/components/ui/segmented-control.mjs +2 -2
- package/dist/shared/components/ui/spinner.mjs +11 -9
- package/dist/shared/components/ui/table-heatmap.mjs +40 -0
- package/dist/shared/components/ui/tabs.mjs +2 -2
- package/dist/shared/components/ui/toggle-group.mjs +22 -22
- package/dist/shared/components/ui/toggle.mjs +13 -8
- package/dist/shared/components/ui/use-overlay-portal-target.mjs +18 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -334,6 +334,15 @@ export declare interface BreadcrumbProps {
|
|
|
334
334
|
|
|
335
335
|
declare function BreadcrumbSeparator({ children, className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
|
|
336
336
|
|
|
337
|
+
/** Period columns for the canonical Table; the table owns the cell shading and row model. */
|
|
338
|
+
export declare function buildHeatmapPeriodColumns<T>({ periods, accessor, formatLabel, formatValue, domain, }: {
|
|
339
|
+
periods: string[];
|
|
340
|
+
accessor: (row: T) => Record<string, number>;
|
|
341
|
+
formatLabel: (period: string) => string;
|
|
342
|
+
formatValue?: (value: number) => string;
|
|
343
|
+
domain?: 'filteredRows' | HeatmapDomain;
|
|
344
|
+
}): ProColumnDef<T>[];
|
|
345
|
+
|
|
337
346
|
/**
|
|
338
347
|
* Generate heat-colored columns for time-period keys (dates, weeks, months).
|
|
339
348
|
* Each column auto-computes min/max from visible rows for relative coloring.
|
|
@@ -920,8 +929,19 @@ declare interface DateFieldCommonProps {
|
|
|
920
929
|
* helpers (e.g. scroll-to-first-error) can locate and focus this control.
|
|
921
930
|
*/
|
|
922
931
|
'aria-invalid'?: boolean;
|
|
923
|
-
/**
|
|
932
|
+
/**
|
|
933
|
+
* Render a clear (X) affordance inside the trigger when a value is set.
|
|
934
|
+
* @default true for `variant="field"`, false for `variant="pill"`
|
|
935
|
+
*/
|
|
924
936
|
clearable?: boolean;
|
|
937
|
+
/**
|
|
938
|
+
* Trigger chrome. `field` is the bordered 36px form control with a calendar
|
|
939
|
+
* icon. `pill` is a compact borderless chip for table cells and metadata
|
|
940
|
+
* rows; tint it through `className` (include a matching `hover:` class,
|
|
941
|
+
* since the pill's own hover background would otherwise replace the tint).
|
|
942
|
+
* @default 'field'
|
|
943
|
+
*/
|
|
944
|
+
variant?: DateFieldVariant;
|
|
925
945
|
/**
|
|
926
946
|
* Year-resolution direction for bare month / month-day text input
|
|
927
947
|
* (e.g. `"Jun 8"` with no year). Defaults to `'past'` — matches
|
|
@@ -962,14 +982,24 @@ declare interface DateFieldRangeProps extends DateFieldCommonProps {
|
|
|
962
982
|
mode: 'range';
|
|
963
983
|
value: DateRange | null;
|
|
964
984
|
onChange: (next: DateRange | null) => void;
|
|
985
|
+
/** Closed-trigger text for a set range. Defaults to `formatDateRange`. */
|
|
986
|
+
formatTrigger?: (value: DateRange) => string;
|
|
965
987
|
}
|
|
966
988
|
|
|
967
989
|
declare interface DateFieldSingleProps extends DateFieldCommonProps {
|
|
968
990
|
mode?: 'single';
|
|
969
991
|
value: Date | null;
|
|
970
992
|
onChange: (next: Date | null) => void;
|
|
993
|
+
/**
|
|
994
|
+
* Closed-trigger text for a set value, e.g. a relative "Due in 5 days".
|
|
995
|
+
* Defaults to `formatDate` (`Mar 14, 2025`). The placeholder still shows
|
|
996
|
+
* when the value is null.
|
|
997
|
+
*/
|
|
998
|
+
formatTrigger?: (value: Date) => string;
|
|
971
999
|
}
|
|
972
1000
|
|
|
1001
|
+
declare type DateFieldVariant = 'field' | 'pill';
|
|
1002
|
+
|
|
973
1003
|
/**
|
|
974
1004
|
* Compatibility string adapter; prefer DatePicker for one standalone calendar date.
|
|
975
1005
|
* Bridges the shared `DateField` (which works in
|
|
@@ -988,7 +1018,7 @@ declare interface DateFieldSingleProps extends DateFieldCommonProps {
|
|
|
988
1018
|
* @see DateRangePicker — use for calendar ranges
|
|
989
1019
|
* @see DateRangePill — the start–end range analogue (also string-based)
|
|
990
1020
|
*/
|
|
991
|
-
export declare function DatePicker({ value, onChange, min, max, ...rest }: DatePickerProps): JSX.Element;
|
|
1021
|
+
export declare function DatePicker({ value, onChange, min, max, formatTrigger, ...rest }: DatePickerProps): JSX.Element;
|
|
992
1022
|
|
|
993
1023
|
export declare interface DatePickerProps extends ForwardedProps {
|
|
994
1024
|
/** Date-only ISO string (`YYYY-MM-DD`) or null/undefined when unset. */
|
|
@@ -999,6 +1029,11 @@ export declare interface DatePickerProps extends ForwardedProps {
|
|
|
999
1029
|
min?: string;
|
|
1000
1030
|
/** Latest selectable day, as a `YYYY-MM-DD` string. Inclusive. */
|
|
1001
1031
|
max?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* Closed-trigger text for a set value, given the `YYYY-MM-DD` string.
|
|
1034
|
+
* Defaults to `Mar 14, 2025`. The placeholder still shows when unset.
|
|
1035
|
+
*/
|
|
1036
|
+
formatTrigger?: (value: string) => string;
|
|
1002
1037
|
}
|
|
1003
1038
|
|
|
1004
1039
|
export declare interface DateRange {
|
|
@@ -1012,6 +1047,8 @@ export declare function DateRangePicker(props: DateRangePickerProps): React_2.Re
|
|
|
1012
1047
|
export declare interface DateRangePickerProps extends DateFieldCommonProps {
|
|
1013
1048
|
value: DateRange | null;
|
|
1014
1049
|
onChange: (next: DateRange | null) => void;
|
|
1050
|
+
/** Closed-trigger text for a set range. Defaults to `formatDateRange`. */
|
|
1051
|
+
formatTrigger?: (value: DateRange) => string;
|
|
1015
1052
|
}
|
|
1016
1053
|
|
|
1017
1054
|
/** Checkbox "checked" target: clicking an unchecked row sets this. */
|
|
@@ -1805,7 +1842,7 @@ export declare interface FormFieldProps {
|
|
|
1805
1842
|
className?: string;
|
|
1806
1843
|
}
|
|
1807
1844
|
|
|
1808
|
-
declare type ForwardedProps = Omit<SingleProps, 'mode' | 'value' | 'onChange' | 'min' | 'max'>;
|
|
1845
|
+
declare type ForwardedProps = Omit<SingleProps, 'mode' | 'value' | 'onChange' | 'min' | 'max' | 'formatTrigger'>;
|
|
1809
1846
|
|
|
1810
1847
|
export declare function GenericAvatar({ size, className }: GenericAvatarProps): JSX.Element;
|
|
1811
1848
|
|
|
@@ -1819,6 +1856,11 @@ export declare function heatCellStyle(value: number, min: number, max: number):
|
|
|
1819
1856
|
backgroundColor: string;
|
|
1820
1857
|
} | undefined;
|
|
1821
1858
|
|
|
1859
|
+
export declare interface HeatmapDomain {
|
|
1860
|
+
min: number;
|
|
1861
|
+
max: number;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1822
1864
|
/**
|
|
1823
1865
|
* Sortable, paginated table with heat-colored numeric cells.
|
|
1824
1866
|
*
|
|
@@ -2526,6 +2568,10 @@ declare interface ProColumnMetaBase {
|
|
|
2526
2568
|
headerClassName?: string;
|
|
2527
2569
|
/** Extra className applied to every <td>. */
|
|
2528
2570
|
cellClassName?: string;
|
|
2571
|
+
/** Shade numeric cells by a stable positive-value scale. Server pages require an explicit domain. */
|
|
2572
|
+
heatmap?: {
|
|
2573
|
+
domain: 'filteredRows' | HeatmapDomain;
|
|
2574
|
+
};
|
|
2529
2575
|
/** Hide default sort indicator even when column is sortable. */
|
|
2530
2576
|
hideSortIndicator?: boolean;
|
|
2531
2577
|
/**
|
|
@@ -2670,9 +2716,10 @@ declare interface ProDataTableProps<T> {
|
|
|
2670
2716
|
*/
|
|
2671
2717
|
getRowLabel?: (row: T) => string;
|
|
2672
2718
|
/**
|
|
2673
|
-
*
|
|
2674
|
-
*
|
|
2675
|
-
*
|
|
2719
|
+
* Search is visible by default for client-side tables and filters the full
|
|
2720
|
+
* loaded dataset before pagination. Pass an object to customize it or
|
|
2721
|
+
* `false` when the view has its own search. Server-paginated tables default
|
|
2722
|
+
* to no search; pass controlled search to query the full remote result.
|
|
2676
2723
|
*/
|
|
2677
2724
|
searchable?: boolean | ProDataTableSearchable<T>;
|
|
2678
2725
|
/** Native segmented filter pills rendered in the toolbar. */
|
|
@@ -3310,10 +3357,24 @@ declare interface SparklineCellProps {
|
|
|
3310
3357
|
className?: string;
|
|
3311
3358
|
}
|
|
3312
3359
|
|
|
3313
|
-
|
|
3360
|
+
/**
|
|
3361
|
+
* Renders a `<span>` (not a `<div>`) so it is valid inside phrasing content such
|
|
3362
|
+
* as a `<p>` caption. By default it is a standalone `role="status"` announcing
|
|
3363
|
+
* "Loading"; pass `decorative` to place it beside text that is the status.
|
|
3364
|
+
*/
|
|
3365
|
+
export declare function Spinner({ size, decorative, className, ...props }: SpinnerProps): JSX.Element;
|
|
3366
|
+
|
|
3367
|
+
declare type SpinnerProps = VariantProps<typeof spinnerVariants> & React.ComponentProps<'span'> & {
|
|
3368
|
+
/**
|
|
3369
|
+
* Use when nearby text already says what is loading (e.g. a "Saving…"
|
|
3370
|
+
* caption). The spinner then sits inline on the text line and is hidden
|
|
3371
|
+
* from assistive tech, instead of being its own `role="status"` region.
|
|
3372
|
+
*/
|
|
3373
|
+
decorative?: boolean;
|
|
3374
|
+
};
|
|
3314
3375
|
|
|
3315
3376
|
export declare const spinnerVariants: (props?: ({
|
|
3316
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
3377
|
+
size?: "default" | "sm" | "xs" | "lg" | null | undefined;
|
|
3317
3378
|
} & ClassProp) | undefined) => string;
|
|
3318
3379
|
|
|
3319
3380
|
export declare const STATUS_TONES: {
|
|
@@ -4021,6 +4082,14 @@ export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<Tog
|
|
|
4021
4082
|
* button that represents an on/off state without a label. For slider-style
|
|
4022
4083
|
* on/off switches in forms, use `Switch` instead. For mutually-exclusive
|
|
4023
4084
|
* groups of toggles (segmented picker), use `ToggleGroup`.
|
|
4085
|
+
*
|
|
4086
|
+
* Selected vs. rest must differ on three channels so it reads in both themes:
|
|
4087
|
+
* ink (`muted-foreground` → `foreground`), fill (`foreground/N` overlay), and,
|
|
4088
|
+
* for `outline`, the edge (`input` → `border-strong`). State fills are
|
|
4089
|
+
* `foreground/N` overlays, never `bg-accent`: `accent` is a fixed surface rung
|
|
4090
|
+
* that sat one step from the resting surface in dark and doubled as the hover
|
|
4091
|
+
* fill, so a selected item looked identical to a hovered or resting one
|
|
4092
|
+
* (AGENT-1880). Hover (`/5`) stays lighter than selected (`/12`).
|
|
4024
4093
|
*/
|
|
4025
4094
|
export declare const toggleVariants: (props?: ({
|
|
4026
4095
|
variant?: "default" | "outline" | null | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -44,56 +44,57 @@ import { Dialog as ct, DialogBody as lt, DialogClose as ut, DialogContent as dt,
|
|
|
44
44
|
import { Command as yt, CommandDialog as bt, CommandEmpty as xt, CommandGroup as St, CommandInput as Ct, CommandItem as wt, CommandList as Tt, CommandSeparator as Et, CommandShortcut as Dt } from "./shared/components/ui/command.mjs";
|
|
45
45
|
import { MultiSelect as Ot, MultiSelectList as kt, SingleSelectList as At } from "./shared/components/ui/multi-select.mjs";
|
|
46
46
|
import { FilterMenu as jt } from "./shared/components/ui/filter-menu.mjs";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
47
|
+
import { buildHeatmapPeriodColumns as Mt } from "./shared/components/ui/table-heatmap.mjs";
|
|
48
|
+
import { AGENT_TINTS as Nt, AvatarTextCell as Pt, CodePillCell as Ft, LineSparklineCell as It, PercentCell as Lt, ProDataTable as Q, ProDataTablePagination as Rt, ProDataTableToolbar as zt, ProgressBarCell as Bt, RelativeTimeCell as Vt, ResultsBarCell as Ht, STATUS_TONES as Ut, ScoreBarCell as Wt, SparklineCell as Gt, StatusDotBadge as Kt, facetFilterMatches as qt, scoreBand as Jt, tintForString as Yt } from "./shared/components/ui/pro-data-table.mjs";
|
|
49
|
+
import { ContentLoadingState as Xt, EmptyState as Zt, SectionLoadingState as Qt } from "./shared/components/ui/loading-state.mjs";
|
|
50
|
+
import { HeatmapTable as $t, SortableHeader as en, buildPeriodColumns as tn, buildTotalColumn as nn, heatCellStyle as rn } from "./shared/components/ui/heatmap-table.mjs";
|
|
51
|
+
import { MetricCard as an } from "./shared/components/ui/metric-card.mjs";
|
|
52
|
+
import { KpiTile as on, KpiTileGrid as sn } from "./shared/components/ui/kpi-tile.mjs";
|
|
53
|
+
import { TrendBadge as cn } from "./shared/components/ui/trend-badge.mjs";
|
|
54
|
+
import { AsyncActionButton as ln } from "./shared/components/ui/async-action-button.mjs";
|
|
55
|
+
import { FileDropzone as un, FileDropzoneList as dn, formatBytes as $ } from "./shared/components/ui/file-dropzone.mjs";
|
|
56
|
+
import { FilterSelect as fn } from "./shared/components/ui/filter-select.mjs";
|
|
57
|
+
import { CheckboxGroup as pn } from "./shared/components/ui/checkbox-group.mjs";
|
|
58
|
+
import { Slider as mn } from "./shared/components/ui/slider.mjs";
|
|
59
|
+
import { SegmentedControl as hn } from "./shared/components/ui/segmented-control.mjs";
|
|
60
|
+
import { PageState as gn } from "./shared/components/ui/page-state.mjs";
|
|
61
|
+
import { ErrorState as _n } from "./shared/components/ui/error-state.mjs";
|
|
62
|
+
import { PageSkeleton as vn, SkeletonBlock as yn } from "./shared/components/ui/page-skeleton.mjs";
|
|
63
|
+
import { RouteLoading as bn } from "./shared/components/ui/route-loading.mjs";
|
|
64
|
+
import { ArtifactAppShell as xn } from "./shared/components/ui/artifact-app-shell.mjs";
|
|
65
|
+
import { DashboardShell as Sn } from "./shared/components/ui/dashboard-shell.mjs";
|
|
66
|
+
import { MetricGrid as Cn } from "./shared/components/ui/metric-grid.mjs";
|
|
67
|
+
import { MobileActionBar as wn } from "./shared/components/ui/mobile-action-bar.mjs";
|
|
68
|
+
import { MobileListRow as Tn } from "./shared/components/ui/mobile-list-row.mjs";
|
|
69
|
+
import { MobilePageHeader as En } from "./shared/components/ui/mobile-page-header.mjs";
|
|
70
|
+
import { formatArtifactOfflineStatus as Dn } from "./shared/components/ui/artifact-offline-status.mjs";
|
|
71
|
+
import { ArtifactOfflineControl as On } from "./shared/components/ui/artifact-offline-control.mjs";
|
|
72
|
+
import { SectionHeader as kn } from "./shared/components/ui/section-header.mjs";
|
|
73
|
+
import { MobileAppNav as An, mobileAppNavItemVariants as jn } from "./shared/components/ui/mobile-app-nav.mjs";
|
|
74
|
+
import { EditorTopBar as Mn, EditorTopBarActions as Nn, EditorTopBarBackButton as Pn, EditorTopBarIdentity as Fn, EditorTopBarStatusBadge as In } from "./shared/components/ui/editor-top-bar.mjs";
|
|
75
|
+
import { EditorSideNav as Ln, EditorSideNavGroup as Rn, EditorSideNavItem as zn } from "./shared/components/ui/editor-side-nav.mjs";
|
|
76
|
+
import { EditorPageHeader as Bn, EditorPagePane as Vn, EditorSection as Hn } from "./shared/components/ui/editor-page-header.mjs";
|
|
77
|
+
import { Sheet as Un, SheetClose as Wn, SheetContent as Gn, SheetDescription as Kn, SheetFooter as qn, SheetHeader as Jn, SheetOverlay as Yn, SheetPortal as Xn, SheetTitle as Zn, SheetTrigger as Qn } from "./shared/components/ui/sheet.mjs";
|
|
78
|
+
import { ContextMenu as $n, ContextMenuCheckboxItem as er, ContextMenuContent as tr, ContextMenuGroup as nr, ContextMenuItem as rr, ContextMenuLabel as ir, ContextMenuPortal as ar, ContextMenuRadioGroup as or, ContextMenuRadioItem as sr, ContextMenuSeparator as cr, ContextMenuShortcut as lr, ContextMenuSub as ur, ContextMenuSubContent as dr, ContextMenuSubTrigger as fr, ContextMenuTrigger as pr } from "./shared/components/ui/context-menu.mjs";
|
|
79
|
+
import { GenericAvatar as mr, UserAvatar as hr } from "./shared/components/ui/user-avatar.mjs";
|
|
80
|
+
import { HoverCard as gr, HoverCardContent as _r, HoverCardTrigger as vr } from "./shared/components/ui/hover-card.mjs";
|
|
81
|
+
import { UserChip as yr } from "./shared/components/ui/user-chip.mjs";
|
|
82
|
+
import { InlineTextCell as br } from "./shared/components/ui/inline-text-cell.mjs";
|
|
83
|
+
import { MetricAreaChart as xr } from "./shared/components/ui/metric-area-chart.mjs";
|
|
84
|
+
import { Textarea as Sr } from "./shared/components/ui/textarea.mjs";
|
|
85
|
+
import { AlertDialog as Cr, AlertDialogAction as wr, AlertDialogCancel as Tr, AlertDialogContent as Er, AlertDialogDescription as Dr, AlertDialogFooter as Or, AlertDialogHeader as kr, AlertDialogOverlay as Ar, AlertDialogPortal as jr, AlertDialogTitle as Mr, AlertDialogTrigger as Nr } from "./shared/components/ui/alert-dialog.mjs";
|
|
86
|
+
import { ConfirmDialog as Pr } from "./shared/components/ui/confirm-dialog.mjs";
|
|
87
|
+
import { FormDialog as Fr } from "./shared/components/ui/form-dialog.mjs";
|
|
88
|
+
import { AppStatusBadge as Ir } from "./shared/components/ui/app-status-badge.mjs";
|
|
89
|
+
import { Calendar as Lr } from "./shared/components/ui/calendar.mjs";
|
|
90
|
+
import { RadioGroup as Rr, RadioGroupItem as zr } from "./shared/components/ui/radio-group.mjs";
|
|
91
|
+
import { Select as Br, SelectContent as Vr, SelectGroup as Hr, SelectItem as Ur, SelectLabel as Wr, SelectScrollDownButton as Gr, SelectScrollUpButton as Kr, SelectSeparator as qr, SelectTrigger as Jr, SelectValue as Yr } from "./shared/components/ui/select.mjs";
|
|
92
|
+
import { DEFAULT_RANGE_PRESETS as Xr, DEFAULT_SINGLE_PRESETS as Zr, DateRangeField as Qr } from "./shared/components/ui/date-field.mjs";
|
|
93
|
+
import { IsoDateField as $r } from "./shared/components/ui/iso-date-field.mjs";
|
|
93
94
|
import "./shared/components/ui/date-picker.mjs";
|
|
94
|
-
import { ScrollArea as
|
|
95
|
-
import { TaskFieldChip as
|
|
96
|
-
import { DEFAULT_COMPLETE_STATUS as
|
|
97
|
-
import { TaskCreateDialog as
|
|
98
|
-
import { TaskList as
|
|
99
|
-
export {
|
|
95
|
+
import { ScrollArea as ei, ScrollBar as ti } from "./shared/components/ui/scroll-area.mjs";
|
|
96
|
+
import { TaskFieldChip as ni, fieldChipText as ri, fieldEditorValue as ii, isFieldEditable as ai, showFieldInline as oi } from "./shared/components/ui/task-field.mjs";
|
|
97
|
+
import { DEFAULT_COMPLETE_STATUS as si, DEFAULT_INCOMPLETE_STATUS as ci, DEFAULT_RESOLVED_STATUSES as li, DEFAULT_START_STATUS as ui, DEFAULT_STATUS_BOARD_ORDER as di, DEFAULT_STATUS_OPTIONS as fi, TaskRow as pi, TaskStatusIndicator as mi, statusBoardRankIn as hi, statusMetaOf as gi, statusSelectOptions as _i } from "./shared/components/ui/task-row.mjs";
|
|
98
|
+
import { TaskCreateDialog as vi } from "./shared/components/ui/task-create-dialog.mjs";
|
|
99
|
+
import { TaskList as yi } from "./shared/components/ui/task-list.mjs";
|
|
100
|
+
export { Nt as AGENT_TINTS, Cr as AlertDialog, wr as AlertDialogAction, Tr as AlertDialogCancel, Er as AlertDialogContent, Dr as AlertDialogDescription, Or as AlertDialogFooter, kr as AlertDialogHeader, Ar as AlertDialogOverlay, jr as AlertDialogPortal, Mr as AlertDialogTitle, Nr as AlertDialogTrigger, Ir as AppStatusBadge, xn as ArtifactAppShell, On as ArtifactOfflineControl, ln as AsyncActionButton, Pt as AvatarTextCell, b as Badge, Be as Breadcrumb, Ve as BreadcrumbLinkProvider, ye as BreadcrumbPrimitive, I as Button, Lr as Calendar, S as CalendarGrid, pe as Card, me as CardContent, he as CardDescription, ge as CardHeader, _e as CardTitle, X as ChartContainer, Z as ChartLegend, re as ChartLegendContent, ie as ChartTooltip, ae as ChartTooltipContent, rt as Checkbox, pn as CheckboxGroup, V as ChoiceCard, H as ChoiceCardGroup, Y as CitationChip, oe as CodeBadge, Ft as CodePillCell, yt as Command, bt as CommandDialog, xt as CommandEmpty, St as CommandGroup, Ct as CommandInput, wt as CommandItem, Tt as CommandList, Et as CommandSeparator, Dt as CommandShortcut, Pr as ConfirmDialog, Xt as ContentLoadingState, $n as ContextMenu, er as ContextMenuCheckboxItem, tr as ContextMenuContent, nr as ContextMenuGroup, rr as ContextMenuItem, ir as ContextMenuLabel, ar as ContextMenuPortal, or as ContextMenuRadioGroup, sr as ContextMenuRadioItem, cr as ContextMenuSeparator, lr as ContextMenuShortcut, ur as ContextMenuSub, dr as ContextMenuSubContent, fr as ContextMenuSubTrigger, pr as ContextMenuTrigger, si as DEFAULT_COMPLETE_STATUS, ci as DEFAULT_INCOMPLETE_STATUS, Xr as DEFAULT_RANGE_PRESETS, li as DEFAULT_RESOLVED_STATUSES, Zr as DEFAULT_SINGLE_PRESETS, ui as DEFAULT_START_STATUS, di as DEFAULT_STATUS_BOARD_ORDER, fi as DEFAULT_STATUS_OPTIONS, Sn as DashboardShell, Q as DataTable, $r as DatePicker, Qr as DateRangePicker, ct as Dialog, lt as DialogBody, ut as DialogClose, dt as DialogContent, ft as DialogDescription, pt as DialogFooter, mt as DialogHeader, be as DialogLayer, ht as DialogOverlay, gt as DialogPortal, _t as DialogTitle, vt as DialogTrigger, we as DropdownMenu, Te as DropdownMenuCheckboxItem, Ee as DropdownMenuContent, De as DropdownMenuGroup, Oe as DropdownMenuItem, ke as DropdownMenuLabel, Ae as DropdownMenuPortal, je as DropdownMenuRadioGroup, Me as DropdownMenuRadioItem, Ne as DropdownMenuSeparator, Pe as DropdownMenuShortcut, Fe as DropdownMenuSub, Ie as DropdownMenuSubContent, Le as DropdownMenuSubTrigger, Re as DropdownMenuTrigger, Bn as EditorPageHeader, Vn as EditorPagePane, Hn as EditorSection, Ln as EditorSideNav, Rn as EditorSideNavGroup, zn as EditorSideNavItem, Mn as EditorTopBar, Nn as EditorTopBarActions, Pn as EditorTopBarBackButton, Fn as EditorTopBarIdentity, In as EditorTopBarStatusBadge, Zt as EmptyState, _n as ErrorState, E as Field, D as FieldContent, O as FieldDescription, k as FieldError, A as FieldGroup, j as FieldLabel, M as FieldLegend, N as FieldSeparator, P as FieldSet, F as FieldTitle, un as FileDropzone, dn as FileDropzoneList, jt as FilterMenu, fn as FilterSelect, Fr as FormDialog, ce as FormField, mr as GenericAvatar, $t as HeatmapTable, gr as HoverCard, _r as HoverCardContent, vr as HoverCardTrigger, br as InlineTextCell, R as Input, on as KpiTile, sn as KpiTileGrid, w as Label, It as LineSparklineCell, _ as MOBILE_BREAKPOINT_PX, xr as MetricAreaChart, an as MetricCard, Cn as MetricGrid, wn as MobileActionBar, An as MobileAppNav, Tn as MobileListRow, En as MobilePageHeader, Ot as MultiSelect, kt as MultiSelectList, vn as PageSkeleton, gn as PageState, Lt as PercentCell, it as Popover, at as PopoverAnchor, ot as PopoverContent, st as PopoverTrigger, l as PortalContainerContext, u as PortalContainerProvider, Q as ProDataTable, Rt as ProDataTablePagination, zt as ProDataTableToolbar, ve as ProgressBar, Bt as ProgressBarCell, Rr as RadioGroup, zr as RadioGroupItem, Vt as RelativeTimeCell, C as RequiredMarker, Ht as ResultsBarCell, bn as RouteLoading, Ut as STATUS_TONES, Wt as ScoreBarCell, ei as ScrollArea, ti as ScrollBar, z as SearchInput, kn as SectionHeader, Qt as SectionLoadingState, hn as SegmentedControl, Br as Select, Vr as SelectContent, Hr as SelectGroup, Ur as SelectItem, Wr as SelectLabel, Gr as SelectScrollDownButton, Kr as SelectScrollUpButton, qr as SelectSeparator, Jr as SelectTrigger, Yr as SelectValue, T as Separator, Un as Sheet, Wn as SheetClose, Gn as SheetContent, Kn as SheetDescription, qn as SheetFooter, Jn as SheetHeader, Yn as SheetOverlay, Xn as SheetPortal, Zn as SheetTitle, Qn as SheetTrigger, At as SingleSelectList, ze as Skeleton, yn as SkeletonBlock, mn as Slider, en as SortableHeader, Gt as SparklineCell, He as Spinner, Kt as StatusDotBadge, B as Switch, Q as Table, Ye as TableBody, Xe as TableCaption, Ze as TableCell, Qe as TableFooter, $e as TableHead, et as TableHeader, tt as TablePrimitive, nt as TableRow, We as Tabs, Ge as TabsContent, Ke as TabsList, qe as TabsTrigger, vi as TaskCreateDialog, ni as TaskFieldChip, yi as TaskList, pi as TaskRow, mi as TaskStatusIndicator, Sr as Textarea, Je as Toaster, le as Toggle, de as ToggleGroup, fe as ToggleGroupItem, U as Tooltip, W as TooltipArrow, G as TooltipContent, K as TooltipProvider, q as TooltipTrigger, cn as TrendBadge, J as TruncatedText, hr as UserAvatar, yr as UserChip, x as badgeVariants, Mt as buildHeatmapPeriodColumns, tn as buildPeriodColumns, nn as buildTotalColumn, L as buttonVariants, ee as cn, se as codeBadgeVariants, xe as dialogStackZ, qt as facetFilterMatches, ri as fieldChipText, ii as fieldEditorValue, Dn as formatArtifactOfflineStatus, $ as formatBytes, t as formatCompact, n as formatCurrency, r as formatCurrencyPrecise, i as formatDurationMs, a as formatNumber, o as formatPercent, s as formatTimestamp, rn as heatCellStyle, te as insertTrackedMention, ai as isFieldEditable, Se as menuStackStyle, jn as mobileAppNavItemVariants, c as pctChange, ne as reconcileTrackedMentions, Jt as scoreBand, oi as showFieldInline, Ue as spinnerVariants, hi as statusBoardRankIn, gi as statusMetaOf, _i as statusSelectOptions, Yt as tintForString, y as toast, ue as toggleVariants, e as trackedMentionRecipientIds, d as useAppClassName, h as useEditableDraft, v as useIsMobileViewport, Ce as useMenuZIndex, m as useOptimisticList, p as useOptimisticResource, g as usePersistentTabValue, f as usePortalContainer };
|
package/dist/next.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
export { AGENT_TINTS, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppStatusBadge, ArtifactAppShell, ArtifactOfflineControl, AsyncActionButton, AvatarTextCell, Badge, Breadcrumb, BreadcrumbLinkProvider, BreadcrumbPrimitive, Button, Calendar, CalendarGrid, Card, CardContent, CardDescription, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxGroup, ChoiceCard, ChoiceCardGroup, CitationChip, CodeBadge, CodePillCell, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, ContentLoadingState, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_COMPLETE_STATUS, DEFAULT_INCOMPLETE_STATUS, DEFAULT_RANGE_PRESETS, DEFAULT_RESOLVED_STATUSES, DEFAULT_SINGLE_PRESETS, DEFAULT_START_STATUS, DEFAULT_STATUS_BOARD_ORDER, DEFAULT_STATUS_OPTIONS, DashboardShell, DataTable, DatePicker, DateRangePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogLayer, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditorPageHeader, EditorPagePane, EditorSection, EditorSideNav, EditorSideNavGroup, EditorSideNavItem, EditorTopBar, EditorTopBarActions, EditorTopBarBackButton, EditorTopBarIdentity, EditorTopBarStatusBadge, EmptyState, ErrorState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileDropzone, FileDropzoneList, FilterMenu, FilterSelect, FormDialog, FormField, GenericAvatar, HeatmapTable, HoverCard, HoverCardContent, HoverCardTrigger, InlineTextCell, Input, KpiTile, KpiTileGrid, Label, LineSparklineCell, MOBILE_BREAKPOINT_PX, MetricAreaChart, MetricCard, MetricGrid, MobileActionBar, MobileAppNav, MobileListRow, MobilePageHeader, MultiSelect, MultiSelectList, PageSkeleton, PageState, PercentCell, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerContext, PortalContainerProvider, ProDataTable, ProDataTablePagination, ProDataTableToolbar, ProgressBar, ProgressBarCell, RadioGroup, RadioGroupItem, RelativeTimeCell, RequiredMarker, ResultsBarCell, RouteLoading, STATUS_TONES, ScoreBarCell, ScrollArea, ScrollBar, SearchInput, SectionHeader, SectionLoadingState, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SingleSelectList, Skeleton, SkeletonBlock, Slider, SortableHeader, SparklineCell, Spinner, StatusDotBadge, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TablePrimitive, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskCreateDialog, TaskFieldChip, TaskList, TaskRow, TaskStatusIndicator, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrendBadge, TruncatedText, UserAvatar, UserChip, badgeVariants, buildPeriodColumns, buildTotalColumn, buttonVariants, cn, codeBadgeVariants, dialogStackZ, facetFilterMatches, fieldChipText, fieldEditorValue, formatArtifactOfflineStatus, formatBytes, formatCompact, formatCurrency, formatCurrencyPrecise, formatDurationMs, formatNumber, formatPercent, formatTimestamp, heatCellStyle, insertTrackedMention, isFieldEditable, menuStackStyle, mobileAppNavItemVariants, pctChange, reconcileTrackedMentions, scoreBand, showFieldInline, spinnerVariants, statusBoardRankIn, statusMetaOf, statusSelectOptions, tintForString, toast, toggleVariants, trackedMentionRecipientIds, useAppClassName, useEditableDraft, useIsMobileViewport, useMenuZIndex, useOptimisticList, useOptimisticResource, usePersistentTabValue, usePortalContainer } from './index.mjs';
|
|
3
|
+
export { AGENT_TINTS, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppStatusBadge, ArtifactAppShell, ArtifactOfflineControl, AsyncActionButton, AvatarTextCell, Badge, Breadcrumb, BreadcrumbLinkProvider, BreadcrumbPrimitive, Button, Calendar, CalendarGrid, Card, CardContent, CardDescription, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, Checkbox, CheckboxGroup, ChoiceCard, ChoiceCardGroup, CitationChip, CodeBadge, CodePillCell, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, ContentLoadingState, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_COMPLETE_STATUS, DEFAULT_INCOMPLETE_STATUS, DEFAULT_RANGE_PRESETS, DEFAULT_RESOLVED_STATUSES, DEFAULT_SINGLE_PRESETS, DEFAULT_START_STATUS, DEFAULT_STATUS_BOARD_ORDER, DEFAULT_STATUS_OPTIONS, DashboardShell, DataTable, DatePicker, DateRangePicker, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogLayer, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditorPageHeader, EditorPagePane, EditorSection, EditorSideNav, EditorSideNavGroup, EditorSideNavItem, EditorTopBar, EditorTopBarActions, EditorTopBarBackButton, EditorTopBarIdentity, EditorTopBarStatusBadge, EmptyState, ErrorState, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FileDropzone, FileDropzoneList, FilterMenu, FilterSelect, FormDialog, FormField, GenericAvatar, HeatmapTable, HoverCard, HoverCardContent, HoverCardTrigger, InlineTextCell, Input, KpiTile, KpiTileGrid, Label, LineSparklineCell, MOBILE_BREAKPOINT_PX, MetricAreaChart, MetricCard, MetricGrid, MobileActionBar, MobileAppNav, MobileListRow, MobilePageHeader, MultiSelect, MultiSelectList, PageSkeleton, PageState, PercentCell, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerContext, PortalContainerProvider, ProDataTable, ProDataTablePagination, ProDataTableToolbar, ProgressBar, ProgressBarCell, RadioGroup, RadioGroupItem, RelativeTimeCell, RequiredMarker, ResultsBarCell, RouteLoading, STATUS_TONES, ScoreBarCell, ScrollArea, ScrollBar, SearchInput, SectionHeader, SectionLoadingState, SegmentedControl, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SingleSelectList, Skeleton, SkeletonBlock, Slider, SortableHeader, SparklineCell, Spinner, StatusDotBadge, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TablePrimitive, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TaskCreateDialog, TaskFieldChip, TaskList, TaskRow, TaskStatusIndicator, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger, TrendBadge, TruncatedText, UserAvatar, UserChip, badgeVariants, buildHeatmapPeriodColumns, buildPeriodColumns, buildTotalColumn, buttonVariants, cn, codeBadgeVariants, dialogStackZ, facetFilterMatches, fieldChipText, fieldEditorValue, formatArtifactOfflineStatus, formatBytes, formatCompact, formatCurrency, formatCurrencyPrecise, formatDurationMs, formatNumber, formatPercent, formatTimestamp, heatCellStyle, insertTrackedMention, isFieldEditable, menuStackStyle, mobileAppNavItemVariants, pctChange, reconcileTrackedMentions, scoreBand, showFieldInline, spinnerVariants, statusBoardRankIn, statusMetaOf, statusSelectOptions, tintForString, toast, toggleVariants, trackedMentionRecipientIds, useAppClassName, useEditableDraft, useIsMobileViewport, useMenuZIndex, useOptimisticList, useOptimisticResource, usePersistentTabValue, usePortalContainer } from './index.mjs';
|
|
@@ -3,28 +3,31 @@ import { cn as e } from "../../lib/utils.mjs";
|
|
|
3
3
|
import { buttonVariants as t } from "./button.mjs";
|
|
4
4
|
import { DialogLayer as n } from "./dialog-layer.mjs";
|
|
5
5
|
import { useArtifactViewportOverlayBridge as r } from "./artifact-overlay-bridge.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { MODAL_SCRIM_CLASS as
|
|
8
|
-
import { Action as
|
|
9
|
-
import * as
|
|
10
|
-
import { jsx as
|
|
6
|
+
import { OverlayOpenContext as i, useOverlayPortalTarget as a } from "./use-overlay-portal-target.mjs";
|
|
7
|
+
import { MODAL_SCRIM_CLASS as o } from "./overlay-scrim.mjs";
|
|
8
|
+
import { Action as s, Cancel as c, Content as l, Description as u, Overlay as d, Portal as f, Root as p, Title as m, Trigger as h } from "../../../vendor/@radix-ui_react-alert-dialog@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.14__@type_91d5036573779c1b9f41b61cd4660f3d/dist/index.mjs";
|
|
9
|
+
import * as g from "react";
|
|
10
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
11
11
|
//#region ../../../atlas/src/shared/components/ui/alert-dialog.tsx
|
|
12
|
-
function
|
|
13
|
-
let [
|
|
14
|
-
return r(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
function y({ open: e, defaultOpen: t, onOpenChange: n, ...a }) {
|
|
13
|
+
let [o, s] = g.useState(t ?? !1), c = e ?? o;
|
|
14
|
+
return r(c), /* @__PURE__ */ _(i.Provider, {
|
|
15
|
+
value: c,
|
|
16
|
+
children: /* @__PURE__ */ _(p, {
|
|
17
|
+
open: e,
|
|
18
|
+
defaultOpen: t,
|
|
19
|
+
onOpenChange: (t) => {
|
|
20
|
+
e === void 0 && s(t), n?.(t);
|
|
21
|
+
},
|
|
22
|
+
...a
|
|
23
|
+
})
|
|
21
24
|
});
|
|
22
25
|
}
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
container:
|
|
26
|
+
y.displayName = p.displayName;
|
|
27
|
+
var b = h;
|
|
28
|
+
function x({ container: e, ...t }) {
|
|
29
|
+
return /* @__PURE__ */ _(f, {
|
|
30
|
+
container: a({
|
|
28
31
|
container: e,
|
|
29
32
|
escapeMfeContainment: !0,
|
|
30
33
|
fallbackId: "shared-alert-dialog-portal-root"
|
|
@@ -32,58 +35,58 @@ function b({ container: e, ...t }) {
|
|
|
32
35
|
...t
|
|
33
36
|
});
|
|
34
37
|
}
|
|
35
|
-
var
|
|
38
|
+
var S = g.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(d, {
|
|
36
39
|
ref: r,
|
|
37
40
|
"data-overlay-scope": "viewport",
|
|
38
|
-
className: e("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
41
|
+
className: e("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", o, t),
|
|
39
42
|
...n
|
|
40
43
|
}));
|
|
41
|
-
|
|
42
|
-
var
|
|
44
|
+
S.displayName = d.displayName;
|
|
45
|
+
var C = g.forwardRef(({ className: t, overlayClassName: r, children: i, ...a }, o) => /* @__PURE__ */ v(x, { children: [/* @__PURE__ */ _(S, { className: r }), /* @__PURE__ */ _(l, {
|
|
43
46
|
"data-density": "default",
|
|
44
47
|
"data-overlay-scope": "viewport",
|
|
45
48
|
ref: o,
|
|
46
49
|
className: e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 overflow-hidden border border-border bg-card p-6 shadow-modal duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-surface", t),
|
|
47
50
|
...a,
|
|
48
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ _(n, {
|
|
49
52
|
className: t,
|
|
50
53
|
children: i
|
|
51
54
|
})
|
|
52
55
|
})] }));
|
|
53
|
-
|
|
54
|
-
var
|
|
56
|
+
C.displayName = l.displayName;
|
|
57
|
+
var w = ({ className: t, ...n }) => /* @__PURE__ */ _("div", {
|
|
55
58
|
className: e("flex flex-col gap-1.5 text-left", t),
|
|
56
59
|
...n
|
|
57
60
|
});
|
|
58
|
-
|
|
59
|
-
var
|
|
61
|
+
w.displayName = "AlertDialogHeader";
|
|
62
|
+
var T = ({ className: t, ...n }) => /* @__PURE__ */ _("div", {
|
|
60
63
|
className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
|
|
61
64
|
...n
|
|
62
65
|
});
|
|
63
|
-
|
|
64
|
-
var
|
|
66
|
+
T.displayName = "AlertDialogFooter";
|
|
67
|
+
var E = g.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(m, {
|
|
65
68
|
ref: r,
|
|
66
69
|
className: e("text-base font-semibold leading-none tracking-tight text-foreground", t),
|
|
67
70
|
...n
|
|
68
71
|
}));
|
|
69
|
-
|
|
70
|
-
var
|
|
72
|
+
E.displayName = m.displayName;
|
|
73
|
+
var D = g.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(u, {
|
|
71
74
|
ref: r,
|
|
72
75
|
className: e("text-body-sm text-muted-foreground", t),
|
|
73
76
|
...n
|
|
74
77
|
}));
|
|
75
|
-
|
|
76
|
-
var
|
|
78
|
+
D.displayName = u.displayName;
|
|
79
|
+
var O = g.forwardRef(({ className: n, ...r }, i) => /* @__PURE__ */ _(s, {
|
|
77
80
|
ref: i,
|
|
78
81
|
className: e(t(), n),
|
|
79
82
|
...r
|
|
80
83
|
}));
|
|
81
|
-
|
|
82
|
-
var
|
|
84
|
+
O.displayName = s.displayName;
|
|
85
|
+
var k = g.forwardRef(({ className: n, ...r }, i) => /* @__PURE__ */ _(c, {
|
|
83
86
|
ref: i,
|
|
84
87
|
className: e(t({ variant: "outline" }), n),
|
|
85
88
|
...r
|
|
86
89
|
}));
|
|
87
|
-
|
|
90
|
+
k.displayName = c.displayName;
|
|
88
91
|
//#endregion
|
|
89
|
-
export {
|
|
92
|
+
export { y as AlertDialog, O as AlertDialogAction, k as AlertDialogCancel, C as AlertDialogContent, D as AlertDialogDescription, T as AlertDialogFooter, w as AlertDialogHeader, S as AlertDialogOverlay, x as AlertDialogPortal, E as AlertDialogTitle, b as AlertDialogTrigger };
|
|
@@ -4,17 +4,17 @@ import { Root as n } from "../../../vendor/@radix-ui_react-slot@1.2.4_@types_rea
|
|
|
4
4
|
import * as r from "react";
|
|
5
5
|
import { jsx as i } from "react/jsx-runtime";
|
|
6
6
|
//#region ../../../atlas/src/shared/components/ui/button.tsx
|
|
7
|
-
var a = t("inline-flex cursor-pointer items-center justify-center gap-inline whitespace-nowrap rounded-control text-control transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg
|
|
7
|
+
var a = "[&_svg:not([class*='size-']):not([class^='icon-']):not([class*='_icon-'])]:size-icon", o = t("inline-flex cursor-pointer items-center justify-center gap-inline whitespace-nowrap rounded-control text-control transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
|
-
default:
|
|
11
|
-
destructive:
|
|
12
|
-
outline:
|
|
13
|
-
secondary:
|
|
14
|
-
ghost:
|
|
10
|
+
default: `bg-primary text-primary-foreground hover:bg-primary/90 ${a}`,
|
|
11
|
+
destructive: `bg-destructive text-destructive-foreground hover:bg-destructive/90 ${a}`,
|
|
12
|
+
outline: `border border-input bg-card text-foreground hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 ${a}`,
|
|
13
|
+
secondary: `bg-secondary text-secondary-foreground hover:bg-secondary/80 ${a}`,
|
|
14
|
+
ghost: `hover:bg-accent hover:text-accent-foreground ${a}`,
|
|
15
15
|
row: "hover:bg-accent",
|
|
16
|
-
link:
|
|
17
|
-
submit:
|
|
16
|
+
link: `text-primary underline-offset-4 hover:underline ${a}`,
|
|
17
|
+
submit: `bg-success text-success-foreground hover:bg-success/90 ${a}`
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
20
|
default: "h-9 px-4 py-2",
|
|
@@ -37,15 +37,15 @@ var a = t("inline-flex cursor-pointer items-center justify-center gap-inline whi
|
|
|
37
37
|
variant: "default",
|
|
38
38
|
size: "default"
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
41
|
-
className: e(
|
|
40
|
+
}), s = r.forwardRef(({ className: t, variant: r, size: a, asChild: s = !1, ...c }, l) => /* @__PURE__ */ i(s ? n : "button", {
|
|
41
|
+
className: e(o({
|
|
42
42
|
variant: r,
|
|
43
|
-
size:
|
|
43
|
+
size: a,
|
|
44
44
|
className: t
|
|
45
45
|
})),
|
|
46
46
|
ref: l,
|
|
47
47
|
...c
|
|
48
48
|
}));
|
|
49
|
-
|
|
49
|
+
s.displayName = "Button";
|
|
50
50
|
//#endregion
|
|
51
|
-
export {
|
|
51
|
+
export { s as Button, o as buttonVariants };
|
|
@@ -160,7 +160,7 @@ var b = t;
|
|
|
160
160
|
function x({ className: t, hideIcon: n = !1, payload: r, verticalAlign: i = "bottom", nameKey: a }) {
|
|
161
161
|
let { config: c } = u();
|
|
162
162
|
return r?.length ? /* @__PURE__ */ o("div", {
|
|
163
|
-
className: e("flex items-center justify-center gap-
|
|
163
|
+
className: e("flex items-center justify-center gap-roomy", i === "top" ? "pb-default" : "pt-default", t),
|
|
164
164
|
children: r.map((e) => {
|
|
165
165
|
let t = `${a ?? e.dataKey ?? "value"}`, r = S(c, e, t);
|
|
166
166
|
return /* @__PURE__ */ s("div", {
|