@platned/ui 0.7.1 → 0.8.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.cjs CHANGED
@@ -91,6 +91,7 @@ __export(src_exports, {
91
91
  ContextMenuContent: () => ContextMenuContent,
92
92
  ContextMenuGroup: () => ContextMenuGroup,
93
93
  ContextMenuItem: () => ContextMenuItem,
94
+ ContextMenuItems: () => ContextMenuItems,
94
95
  ContextMenuLabel: () => ContextMenuLabel,
95
96
  ContextMenuRadioGroup: () => ContextMenuRadioGroup,
96
97
  ContextMenuRadioItem: () => ContextMenuRadioItem,
@@ -128,6 +129,7 @@ __export(src_exports, {
128
129
  DropdownMenuContent: () => DropdownMenuContent,
129
130
  DropdownMenuGroup: () => DropdownMenuGroup,
130
131
  DropdownMenuItem: () => DropdownMenuItem,
132
+ DropdownMenuItems: () => DropdownMenuItems,
131
133
  DropdownMenuLabel: () => DropdownMenuLabel,
132
134
  DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
133
135
  DropdownMenuRadioItem: () => DropdownMenuRadioItem,
@@ -186,6 +188,7 @@ __export(src_exports, {
186
188
  MenubarContent: () => MenubarContent,
187
189
  MenubarGroup: () => MenubarGroup,
188
190
  MenubarItem: () => MenubarItem,
191
+ MenubarItems: () => MenubarItems,
189
192
  MenubarLabel: () => MenubarLabel,
190
193
  MenubarMenu: () => MenubarMenu,
191
194
  MenubarRadioGroup: () => MenubarRadioGroup,
@@ -2394,7 +2397,7 @@ function Calendar({
2394
2397
  children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_lucide_react2.ChevronLeftIcon, { "aria-hidden": true, size: 16 })
2395
2398
  }
2396
2399
  ),
2397
- captionLayout === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2400
+ captionLayout === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "relative flex items-center gap-1.5", children: [
2398
2401
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2399
2402
  "select",
2400
2403
  {
@@ -3107,6 +3110,7 @@ var Toggle = (0, import_react21.forwardRef)(function Toggle2({
3107
3110
  var ToggleGroupContext = (0, import_react21.createContext)(null);
3108
3111
  function ToggleGroup({
3109
3112
  children,
3113
+ options,
3110
3114
  type = "single",
3111
3115
  value: valueProp,
3112
3116
  defaultValue,
@@ -3160,7 +3164,16 @@ function ToggleGroup({
3160
3164
  ),
3161
3165
  ...roving.containerProps,
3162
3166
  ...rest,
3163
- children
3167
+ children: options ? options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3168
+ ToggleGroupItem,
3169
+ {
3170
+ value: option.value,
3171
+ "aria-label": option["aria-label"],
3172
+ disabled: option.disabled,
3173
+ children: option.label
3174
+ },
3175
+ option.value
3176
+ )) : children
3164
3177
  }
3165
3178
  ) });
3166
3179
  }
@@ -3225,7 +3238,7 @@ var InputOTP = (0, import_react22.forwardRef)(function InputOTP2({
3225
3238
  };
3226
3239
  const chars = value.split("");
3227
3240
  const activeIndex = Math.min(value.length, length - 1);
3228
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: (0, import_clsx21.default)("inline-flex flex-col gap-1.5", className), children: [
3241
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: (0, import_clsx21.default)("relative inline-flex flex-col gap-1.5", className), children: [
3229
3242
  /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
3230
3243
  "div",
3231
3244
  {
@@ -3352,62 +3365,66 @@ function FileDropZone({
3352
3365
  const picker = useFilePicker({ accept, maxSizeBytes, onFileSelected });
3353
3366
  const { error, handleFiles } = picker;
3354
3367
  const inputRef = picker.inputProps.ref;
3355
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
3356
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { ...picker.inputProps, disabled }),
3357
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3358
- "div",
3359
- {
3360
- role: "button",
3361
- "data-state": isDragging ? "dragging" : void 0,
3362
- tabIndex: disabled ? -1 : 0,
3363
- "aria-disabled": disabled,
3364
- onClick: () => {
3365
- if (!disabled) inputRef.current?.click();
3366
- },
3367
- onKeyDown: (e) => {
3368
- if (!disabled && (e.key === "Enter" || e.key === " ")) {
3369
- e.preventDefault();
3370
- inputRef.current?.click();
3371
- }
3372
- },
3373
- onDragOver: (e) => {
3374
- e.preventDefault();
3375
- if (!disabled) setIsDragging(true);
3376
- },
3377
- onDragEnter: (e) => {
3378
- e.preventDefault();
3379
- if (!disabled) setIsDragging(true);
3380
- },
3381
- onDragLeave: () => setIsDragging(false),
3382
- onDrop: (e) => {
3383
- e.preventDefault();
3384
- setIsDragging(false);
3385
- if (!disabled) handleFiles(e.dataTransfer.files);
3386
- },
3387
- className: (0, import_clsx22.default)(
3388
- "flex flex-col items-center justify-center gap-1 rounded-lg border-2 border-dashed py-4 px-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1",
3389
- disabled ? "cursor-not-allowed border-disabled bg-disabled" : (0, import_clsx22.default)(
3390
- "cursor-pointer",
3391
- isDragging ? "border-brand bg-brand-tertiary" : "border-default bg-default-secondary hover:border-brand hover:bg-brand-tertiary"
3392
- ),
3393
- className
3394
- ),
3395
- children: [
3396
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3397
- "span",
3398
- {
3399
- "aria-hidden": true,
3400
- className: disabled ? "text-disabled" : isDragging ? "text-brand" : "text-default-secondary",
3401
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.UploadIcon, { className: "size-5" })
3368
+ return (
3369
+ // relative: the hidden input is absolutely positioned (sr-only); without a positioned
3370
+ // ancestor its box escapes a scrolling container and scrolls the page instead.
3371
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
3372
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { ...picker.inputProps, disabled }),
3373
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
3374
+ "div",
3375
+ {
3376
+ role: "button",
3377
+ "data-state": isDragging ? "dragging" : void 0,
3378
+ tabIndex: disabled ? -1 : 0,
3379
+ "aria-disabled": disabled,
3380
+ onClick: () => {
3381
+ if (!disabled) inputRef.current?.click();
3382
+ },
3383
+ onKeyDown: (e) => {
3384
+ if (!disabled && (e.key === "Enter" || e.key === " ")) {
3385
+ e.preventDefault();
3386
+ inputRef.current?.click();
3402
3387
  }
3388
+ },
3389
+ onDragOver: (e) => {
3390
+ e.preventDefault();
3391
+ if (!disabled) setIsDragging(true);
3392
+ },
3393
+ onDragEnter: (e) => {
3394
+ e.preventDefault();
3395
+ if (!disabled) setIsDragging(true);
3396
+ },
3397
+ onDragLeave: () => setIsDragging(false),
3398
+ onDrop: (e) => {
3399
+ e.preventDefault();
3400
+ setIsDragging(false);
3401
+ if (!disabled) handleFiles(e.dataTransfer.files);
3402
+ },
3403
+ className: (0, import_clsx22.default)(
3404
+ "flex flex-col items-center justify-center gap-1 rounded-lg border-2 border-dashed py-4 px-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-1",
3405
+ disabled ? "cursor-not-allowed border-disabled bg-disabled" : (0, import_clsx22.default)(
3406
+ "cursor-pointer",
3407
+ isDragging ? "border-brand bg-brand-tertiary" : "border-default bg-default-secondary hover:border-brand hover:bg-brand-tertiary"
3408
+ ),
3409
+ className
3403
3410
  ),
3404
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: (0, import_clsx22.default)("text-body-sm font-medium", disabled ? "text-disabled" : "text-default"), children: "Upload file" }),
3405
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-body-xs text-default-secondary text-center", children: description })
3406
- ]
3407
- }
3408
- ),
3409
- error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { role: "alert", className: "text-body-xs text-danger", children: error })
3410
- ] });
3411
+ children: [
3412
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3413
+ "span",
3414
+ {
3415
+ "aria-hidden": true,
3416
+ className: disabled ? "text-disabled" : isDragging ? "text-brand" : "text-default-secondary",
3417
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react6.UploadIcon, { className: "size-5" })
3418
+ }
3419
+ ),
3420
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: (0, import_clsx22.default)("text-body-sm font-medium", disabled ? "text-disabled" : "text-default"), children: "Upload file" }),
3421
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-body-xs text-default-secondary text-center", children: description })
3422
+ ]
3423
+ }
3424
+ ),
3425
+ error && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { role: "alert", className: "text-body-xs text-danger", children: error })
3426
+ ] })
3427
+ );
3411
3428
  }
3412
3429
 
3413
3430
  // src/components/forms/tag-input.tsx
@@ -4242,7 +4259,7 @@ function Command({
4242
4259
  });
4243
4260
  };
4244
4261
  let renderedGroup;
4245
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_clsx28.default)("flex w-full flex-col", className), children: [
4262
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_clsx28.default)("relative flex w-full flex-col", className), children: [
4246
4263
  /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex items-center gap-2 border-b border-default px-3.5 py-3", children: [
4247
4264
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react10.SearchIcon, { "aria-hidden": true, className: "size-4 shrink-0 text-icon-default-secondary" }),
4248
4265
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
@@ -4710,7 +4727,10 @@ var Checkbox = (0, import_react29.forwardRef)(function Checkbox2({
4710
4727
  {
4711
4728
  htmlFor: controlId,
4712
4729
  className: (0, import_clsx38.default)(
4713
- "group inline-flex items-start gap-2.5",
4730
+ // relative: the hidden input is absolutely positioned (sr-only). Without a positioned
4731
+ // ancestor here its box lands far up the page, and focusing it on click scrolled a
4732
+ // scrolling container to that spot, away from the control.
4733
+ "group relative inline-flex items-start gap-2.5",
4714
4734
  disabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
4715
4735
  ),
4716
4736
  children: [
@@ -4766,6 +4786,7 @@ var import_jsx_runtime43 = require("react/jsx-runtime");
4766
4786
  var RadioGroupContext = (0, import_react30.createContext)(null);
4767
4787
  var RadioGroup = (0, import_react30.forwardRef)(function RadioGroup2({
4768
4788
  children,
4789
+ options,
4769
4790
  value: valueProp,
4770
4791
  defaultValue,
4771
4792
  onValueChange,
@@ -4812,7 +4833,16 @@ var RadioGroup = (0, import_react30.forwardRef)(function RadioGroup2({
4812
4833
  className
4813
4834
  ),
4814
4835
  ...rest,
4815
- children
4836
+ children: options ? options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4837
+ Radio,
4838
+ {
4839
+ value: option.value,
4840
+ label: option.label,
4841
+ description: option.description,
4842
+ disabled: option.disabled
4843
+ },
4844
+ option.value
4845
+ )) : children
4816
4846
  }
4817
4847
  )
4818
4848
  }
@@ -4836,7 +4866,10 @@ var Radio = (0, import_react30.forwardRef)(function Radio2({ value, label, descr
4836
4866
  {
4837
4867
  htmlFor: controlId,
4838
4868
  className: (0, import_clsx39.default)(
4839
- "group inline-flex items-start gap-2.5",
4869
+ // relative: the hidden input is absolutely positioned (sr-only). Without a positioned
4870
+ // ancestor here its box lands far up the page, and focusing it on click scrolled a
4871
+ // scrolling container to that spot, away from the control.
4872
+ "group relative inline-flex items-start gap-2.5",
4840
4873
  isDisabled ? "cursor-not-allowed opacity-60" : "cursor-pointer"
4841
4874
  ),
4842
4875
  children: [
@@ -4892,6 +4925,7 @@ var import_jsx_runtime44 = require("react/jsx-runtime");
4892
4925
  var RadioCardsContext = (0, import_react31.createContext)(null);
4893
4926
  var RadioCards = (0, import_react31.forwardRef)(function RadioCards2({
4894
4927
  children,
4928
+ options,
4895
4929
  value: valueProp,
4896
4930
  defaultValue,
4897
4931
  onValueChange,
@@ -4923,7 +4957,7 @@ var RadioCards = (0, import_react31.forwardRef)(function RadioCards2({
4923
4957
  "data-slot": "radio-cards",
4924
4958
  className: cn("grid gap-3", className),
4925
4959
  ...rest,
4926
- children
4960
+ children: options ? options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(RadioCardsItem, { ...option }, option.value)) : children
4927
4961
  }
4928
4962
  )
4929
4963
  }
@@ -5012,6 +5046,7 @@ var import_jsx_runtime45 = require("react/jsx-runtime");
5012
5046
  var CheckboxGroupContext = (0, import_react32.createContext)(null);
5013
5047
  var CheckboxGroup = (0, import_react32.forwardRef)(function CheckboxGroup2({
5014
5048
  children,
5049
+ options,
5015
5050
  legend,
5016
5051
  value: valueProp,
5017
5052
  defaultValue = [],
@@ -5047,7 +5082,7 @@ var CheckboxGroup = (0, import_react32.forwardRef)(function CheckboxGroup2({
5047
5082
  children: legend
5048
5083
  }
5049
5084
  ),
5050
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: cn("flex", orientation === "vertical" ? "flex-col gap-2.5" : "flex-row flex-wrap gap-4"), children })
5085
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: cn("flex", orientation === "vertical" ? "flex-col gap-2.5" : "flex-row flex-wrap gap-4"), children: options ? options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CheckboxGroupItem, { ...option }, option.value)) : children })
5051
5086
  ] }) });
5052
5087
  });
5053
5088
  var CheckboxGroupItem = (0, import_react32.forwardRef)(
@@ -5758,6 +5793,18 @@ function focusMenuEdge(event, edge) {
5758
5793
  else if (document.activeElement === panel) items[0]?.focus();
5759
5794
  });
5760
5795
  }
5796
+ function visibleMenuItems(items) {
5797
+ const kept = items.filter((item) => {
5798
+ if (item.hidden) return false;
5799
+ if (item.type === "group" || item.type === "submenu") return visibleMenuItems(item.items).length > 0;
5800
+ return true;
5801
+ });
5802
+ return kept.filter((item, i) => {
5803
+ if (item.type !== "separator") return true;
5804
+ const prev = kept[i - 1];
5805
+ return i > 0 && i < kept.length - 1 && prev.type !== "separator";
5806
+ });
5807
+ }
5761
5808
  function createMenuParts(P) {
5762
5809
  const Item = (0, import_react39.forwardRef)(function MenuItem({ children, onSelect, tone = "default", disabled = false, icon, description, shortcut, textValue, className, ...rest }, ref) {
5763
5810
  const descriptionId = (0, import_react39.useId)();
@@ -5888,7 +5935,58 @@ function createMenuParts(P) {
5888
5935
  }
5889
5936
  ) });
5890
5937
  });
5938
+ function Items({ items }) {
5939
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, { children: visibleMenuItems(items).map(renderItem) });
5940
+ }
5941
+ function renderItem(item) {
5942
+ switch (item.type) {
5943
+ case "checkbox":
5944
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5945
+ CheckboxItem,
5946
+ {
5947
+ checked: item.checked,
5948
+ onCheckedChange: item.onCheckedChange,
5949
+ disabled: item.disabled,
5950
+ shortcut: item.shortcut,
5951
+ textValue: item.textValue,
5952
+ children: item.label
5953
+ },
5954
+ item.id
5955
+ );
5956
+ case "radio":
5957
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadioGroup3, { value: item.value, onValueChange: item.onValueChange, children: item.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RadioItem, { value: option.value, disabled: option.disabled, children: option.label }, option.value)) }, item.id);
5958
+ case "group":
5959
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Group, { label: item.label, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Items, { items: item.items }) }, item.id);
5960
+ case "submenu":
5961
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Sub, { children: [
5962
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SubTrigger, { icon: item.icon, disabled: item.disabled, children: item.label }),
5963
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SubContent, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Items, { items: item.items }) })
5964
+ ] }, item.id);
5965
+ case "label":
5966
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label3, { children: item.label }, item.id);
5967
+ case "separator":
5968
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Separator3, {}, item.id);
5969
+ case "custom":
5970
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react39.Fragment, { children: item.render() }, item.id);
5971
+ default:
5972
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5973
+ Item,
5974
+ {
5975
+ onSelect: item.onSelect,
5976
+ tone: item.tone,
5977
+ disabled: item.disabled,
5978
+ icon: item.icon,
5979
+ description: item.description,
5980
+ shortcut: item.shortcut,
5981
+ textValue: item.textValue,
5982
+ children: item.label
5983
+ },
5984
+ item.id
5985
+ );
5986
+ }
5987
+ }
5891
5988
  return {
5989
+ Items,
5892
5990
  Item,
5893
5991
  CheckboxItem,
5894
5992
  RadioGroup: RadioGroup3,
@@ -5905,13 +6003,16 @@ function createMenuParts(P) {
5905
6003
 
5906
6004
  // src/components/overlays/context-menu.tsx
5907
6005
  var import_jsx_runtime54 = require("react/jsx-runtime");
5908
- function ContextMenu({ children, open: openProp, defaultOpen = false, onOpenChange }) {
6006
+ function ContextMenu({ children, items, open: openProp, defaultOpen = false, onOpenChange }) {
5909
6007
  const [, setOpen] = useControllableState({
5910
6008
  value: openProp,
5911
6009
  defaultValue: defaultOpen,
5912
6010
  onChange: onOpenChange
5913
6011
  });
5914
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_radix_ui5.ContextMenu.Root, { onOpenChange: setOpen, modal: false, children });
6012
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_radix_ui5.ContextMenu.Root, { onOpenChange: setOpen, modal: false, children: items ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
6013
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ContextMenuTrigger, { children }),
6014
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ContextMenuContent, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ContextMenuItems, { items }) })
6015
+ ] }) : children });
5915
6016
  }
5916
6017
  var ContextMenuTrigger = (0, import_react40.forwardRef)(
5917
6018
  function ContextMenuTrigger2({ children, disabled = false, className, onKeyDown, ...rest }, ref) {
@@ -5976,6 +6077,7 @@ var ContextMenuContent = (0, import_react40.forwardRef)(
5976
6077
  }
5977
6078
  );
5978
6079
  var parts = createMenuParts(import_radix_ui5.ContextMenu);
6080
+ var ContextMenuItems = parts.Items;
5979
6081
  var ContextMenuItem = parts.Item;
5980
6082
  var ContextMenuCheckboxItem = parts.CheckboxItem;
5981
6083
  var ContextMenuRadioGroup = parts.RadioGroup;
@@ -5992,7 +6094,7 @@ var ContextMenuSubContent = parts.SubContent;
5992
6094
  var import_react41 = require("react");
5993
6095
  var import_radix_ui6 = require("radix-ui");
5994
6096
  var import_jsx_runtime55 = require("react/jsx-runtime");
5995
- var Menubar = (0, import_react41.forwardRef)(function Menubar2({ children, label, value, defaultValue, onValueChange, className, ...rest }, ref) {
6097
+ var Menubar = (0, import_react41.forwardRef)(function Menubar2({ children, menus, label, value, defaultValue, onValueChange, className, ...rest }, ref) {
5996
6098
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5997
6099
  import_radix_ui6.Menubar.Root,
5998
6100
  {
@@ -6005,7 +6107,10 @@ var Menubar = (0, import_react41.forwardRef)(function Menubar2({ children, label
6005
6107
  "data-slot": "menubar",
6006
6108
  className: cn("flex items-center gap-0.5", className),
6007
6109
  ...rest,
6008
- children
6110
+ children: menus ? menus.filter((menu) => !menu.hidden).map((menu) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(MenubarMenu, { value: menu.value, children: [
6111
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MenubarTrigger, { children: menu.label }),
6112
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MenubarContent, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(MenubarItems, { items: menu.items }) })
6113
+ ] }, menu.value)) : children
6009
6114
  }
6010
6115
  );
6011
6116
  });
@@ -6061,6 +6166,7 @@ var MenubarContent = (0, import_react41.forwardRef)(
6061
6166
  }
6062
6167
  );
6063
6168
  var parts2 = createMenuParts(import_radix_ui6.Menubar);
6169
+ var MenubarItems = parts2.Items;
6064
6170
  var MenubarItem = parts2.Item;
6065
6171
  var MenubarCheckboxItem = parts2.CheckboxItem;
6066
6172
  var MenubarRadioGroup = parts2.RadioGroup;
@@ -6507,6 +6613,11 @@ function useDropdownMenuState(part) {
6507
6613
  }
6508
6614
  function DropdownMenu({
6509
6615
  children,
6616
+ items,
6617
+ trigger,
6618
+ label,
6619
+ side,
6620
+ align,
6510
6621
  open: openProp,
6511
6622
  defaultOpen = false,
6512
6623
  onOpenChange,
@@ -6519,7 +6630,10 @@ function DropdownMenu({
6519
6630
  });
6520
6631
  const pendingEdge = (0, import_react46.useRef)("start");
6521
6632
  const state = (0, import_react46.useMemo)(() => ({ setOpen, pendingEdge }), [setOpen]);
6522
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_radix_ui8.DropdownMenu.Root, { open, onOpenChange: setOpen, modal, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuStateContext.Provider, { value: state, children }) });
6633
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_radix_ui8.DropdownMenu.Root, { open, onOpenChange: setOpen, modal, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuStateContext.Provider, { value: state, children: items ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
6634
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuTrigger, { asChild: trigger != null, label, children: trigger }),
6635
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuContent, { side, align, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuItems, { items }) })
6636
+ ] }) : children }) });
6523
6637
  }
6524
6638
  var DropdownMenuTrigger = (0, import_react46.forwardRef)(
6525
6639
  function DropdownMenuTrigger2({ children, asChild = false, label = "Open menu", onClick, onPointerDown, onMouseDown, onKeyDown, ...rest }, ref) {
@@ -6604,6 +6718,7 @@ var DropdownMenuContent = (0, import_react46.forwardRef)(
6604
6718
  }
6605
6719
  );
6606
6720
  var parts3 = createMenuParts(import_radix_ui8.DropdownMenu);
6721
+ var DropdownMenuItems = parts3.Items;
6607
6722
  var DropdownMenuItem = parts3.Item;
6608
6723
  var DropdownMenuCheckboxItem = parts3.CheckboxItem;
6609
6724
  var DropdownMenuRadioGroup = parts3.RadioGroup;
@@ -6841,7 +6956,8 @@ var import_lucide_react19 = require("lucide-react");
6841
6956
  var import_jsx_runtime66 = require("react/jsx-runtime");
6842
6957
  var HeadingLevel = (0, import_react50.createContext)(3);
6843
6958
  var Accordion = (0, import_react50.forwardRef)(function Accordion2({
6844
- children,
6959
+ children: childrenProp,
6960
+ items,
6845
6961
  type = "single",
6846
6962
  value,
6847
6963
  defaultValue,
@@ -6852,6 +6968,10 @@ var Accordion = (0, import_react50.forwardRef)(function Accordion2({
6852
6968
  className,
6853
6969
  ...rest
6854
6970
  }, ref) {
6971
+ const children = items ? items.filter((item) => !item.hidden).map((item) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(AccordionItem, { value: item.value, disabled: item.disabled, children: [
6972
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(AccordionTrigger, { children: item.label }),
6973
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(AccordionContent, { children: item.content })
6974
+ ] }, item.value)) : childrenProp;
6855
6975
  const shared = {
6856
6976
  ref,
6857
6977
  disabled,
@@ -8204,9 +8324,23 @@ var import_react59 = require("react");
8204
8324
  var import_clsx59 = __toESM(require("clsx"), 1);
8205
8325
  var import_lucide_react22 = require("lucide-react");
8206
8326
  var import_jsx_runtime80 = require("react/jsx-runtime");
8207
- var Breadcrumb = (0, import_react59.forwardRef)(function Breadcrumb2({ children, label = "Breadcrumb", className, ...rest }, ref) {
8208
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("ol", { className: (0, import_clsx59.default)("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children }) });
8327
+ var Breadcrumb = (0, import_react59.forwardRef)(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
8328
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("nav", { ref, "aria-label": label, "data-slot": "breadcrumb", ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("ol", { className: (0, import_clsx59.default)("flex flex-wrap items-center gap-1.5 p-0 text-body-xs", className), children: items ? renderItems(items, renderLink, maxItems) : children }) });
8209
8329
  });
8330
+ function renderItems(items, renderLink, maxItems) {
8331
+ const last = items.length - 1;
8332
+ const collapse = maxItems !== void 0 && maxItems >= 2 && items.length > maxItems;
8333
+ const shown = collapse ? [0, ...items.map((_, i) => i).slice(items.length - (maxItems - 1))] : items.map((_, i) => i);
8334
+ return shown.map((index, position) => {
8335
+ const item = items[index];
8336
+ const current = item.current ?? index === last;
8337
+ const crumb = !current && renderLink ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(BreadcrumbItem, { asChild: true, first: position === 0, children: renderLink(item) }) : /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(BreadcrumbItem, { href: item.href, current, first: position === 0, children: item.label });
8338
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react59.Fragment, { children: [
8339
+ crumb,
8340
+ collapse && position === 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(BreadcrumbEllipsis, {})
8341
+ ] }, item.id ?? index);
8342
+ });
8343
+ }
8210
8344
  var BreadcrumbItem = (0, import_react59.forwardRef)(
8211
8345
  function BreadcrumbItem2({ children, current = false, asChild = false, first = false, className, ...rest }, ref) {
8212
8346
  return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("li", { className: "flex items-center gap-1.5", children: [
@@ -9662,6 +9796,7 @@ function refusePress(event) {
9662
9796
 
9663
9797
  // src/components/lists/file-row.tsx
9664
9798
  var import_clsx80 = __toESM(require("clsx"), 1);
9799
+ var import_lucide_react25 = require("lucide-react");
9665
9800
  var import_jsx_runtime101 = require("react/jsx-runtime");
9666
9801
  function FileTypeBadge({ type }) {
9667
9802
  return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "flex size-[34px] shrink-0 items-center justify-center rounded-md bg-brand-tertiary text-body-tiny font-semibold text-brand", children: type });
@@ -9673,6 +9808,8 @@ function FileRow({
9673
9808
  leading,
9674
9809
  onDownload,
9675
9810
  downloadLabel = "Download",
9811
+ onRemove,
9812
+ removeLabel = "Remove",
9676
9813
  actions,
9677
9814
  className
9678
9815
  }) {
@@ -9690,17 +9827,10 @@ function FileRow({
9690
9827
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
9691
9828
  detail && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "text-body-xs text-default-secondary", children: detail })
9692
9829
  ] }),
9693
- (onDownload || actions) && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex shrink-0 items-center gap-3", children: [
9694
- onDownload && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
9695
- "button",
9696
- {
9697
- type: "button",
9698
- onClick: onDownload,
9699
- className: "text-body-xs font-medium text-brand hover:underline",
9700
- children: downloadLabel
9701
- }
9702
- ),
9703
- actions
9830
+ (onDownload || onRemove || actions) && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
9831
+ onDownload && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Tooltip, { title: downloadLabel, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${downloadLabel} ${name}`, onClick: onDownload, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_lucide_react25.DownloadIcon, { "aria-hidden": true }) }) }),
9832
+ onRemove && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Tooltip, { title: removeLabel, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(IconButton, { variant: "subtle", size: "sm", "aria-label": `${removeLabel} ${name}`, onClick: onRemove, className: "touch-hit", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_lucide_react25.Trash2Icon, { "aria-hidden": true }) }) }),
9833
+ actions && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "ml-2 flex items-center gap-2", children: actions })
9704
9834
  ] })
9705
9835
  ]
9706
9836
  }
@@ -9925,11 +10055,11 @@ function IconTextRow({ icon, title, detail, className }) {
9925
10055
 
9926
10056
  // src/components/lists/checklist-row.tsx
9927
10057
  var import_clsx84 = __toESM(require("clsx"), 1);
9928
- var import_lucide_react25 = require("lucide-react");
10058
+ var import_lucide_react26 = require("lucide-react");
9929
10059
  var import_jsx_runtime106 = require("react/jsx-runtime");
9930
10060
  function ChecklistRow({ label, state, className }) {
9931
10061
  return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("li", { "data-state": state, className: (0, import_clsx84.default)("flex items-center gap-3", className), children: [
9932
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react25.CheckIcon, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
10062
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "flex size-5 shrink-0 items-center justify-center", children: state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_lucide_react26.CheckIcon, { className: "size-4 text-positive", strokeWidth: 2.5, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
9933
10063
  "span",
9934
10064
  {
9935
10065
  className: (0, import_clsx84.default)(
@@ -10012,7 +10142,7 @@ function DetailGrid({ children, columns = "auto", className }) {
10012
10142
  // src/components/lists/description-list.tsx
10013
10143
  var import_react66 = require("react");
10014
10144
  var import_clsx87 = __toESM(require("clsx"), 1);
10015
- var import_lucide_react26 = require("lucide-react");
10145
+ var import_lucide_react27 = require("lucide-react");
10016
10146
  var import_jsx_runtime109 = require("react/jsx-runtime");
10017
10147
  function DescriptionList({ children, className }) {
10018
10148
  return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("dl", { className: cn("flex flex-col gap-3", className), children });
@@ -10034,26 +10164,29 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
10034
10164
  const timer = window.setTimeout(() => setCopied(false), 2e3);
10035
10165
  return () => window.clearTimeout(timer);
10036
10166
  }, [copied]);
10037
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
10038
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10039
- IconButton,
10040
- {
10041
- variant: "subtle",
10042
- size: "sm",
10043
- "aria-label": label,
10044
- "data-state": copied ? "copied" : void 0,
10045
- className: cn("-my-0.5 touch-hit", className),
10046
- onClick: () => {
10047
- void navigator.clipboard?.writeText(value).then(
10048
- () => setCopied(true),
10049
- () => void 0
10050
- );
10051
- },
10052
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_lucide_react26.CheckIcon, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_lucide_react26.CopyIcon, { "aria-hidden": true })
10053
- }
10054
- ),
10055
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
10056
- ] });
10167
+ return (
10168
+ // relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
10169
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("span", { className: "relative inline-flex", children: [
10170
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
10171
+ IconButton,
10172
+ {
10173
+ variant: "subtle",
10174
+ size: "sm",
10175
+ "aria-label": label,
10176
+ "data-state": copied ? "copied" : void 0,
10177
+ className: cn("-my-0.5 touch-hit", className),
10178
+ onClick: () => {
10179
+ void navigator.clipboard?.writeText(value).then(
10180
+ () => setCopied(true),
10181
+ () => void 0
10182
+ );
10183
+ },
10184
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_lucide_react27.CheckIcon, { "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_lucide_react27.CopyIcon, { "aria-hidden": true })
10185
+ }
10186
+ ),
10187
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
10188
+ ] })
10189
+ );
10057
10190
  }
10058
10191
  function EmailText({ email, className }) {
10059
10192
  const at = email.lastIndexOf("@");
@@ -10067,7 +10200,7 @@ function EmailText({ email, className }) {
10067
10200
 
10068
10201
  // src/components/lists/checked-group-list.tsx
10069
10202
  var import_clsx88 = __toESM(require("clsx"), 1);
10070
- var import_lucide_react27 = require("lucide-react");
10203
+ var import_lucide_react28 = require("lucide-react");
10071
10204
  var import_jsx_runtime110 = require("react/jsx-runtime");
10072
10205
  var COLUMNS4 = {
10073
10206
  1: "columns-1",
@@ -10084,7 +10217,7 @@ function CheckedGroupList({
10084
10217
  if (groups.length === 0) {
10085
10218
  return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: (0, import_clsx88.default)("text-body-xs text-default-secondary", className), children: emptyLabel });
10086
10219
  }
10087
- const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react27.CheckIcon, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
10220
+ const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_lucide_react28.CheckIcon, { className: "size-3.5", strokeWidth: 2.5, "aria-hidden": true }) : icon;
10088
10221
  return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: (0, import_clsx88.default)(COLUMNS4[columns], "gap-x-6", className), children: groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "mb-5 break-inside-avoid last:mb-0", children: [
10089
10222
  /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "mb-2 text-body-tiny font-semibold uppercase tracking-wide text-default-secondary", children: group.label }),
10090
10223
  /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("ul", { className: "space-y-1.5", children: group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("li", { className: "flex items-center gap-2 text-body-xs text-default", children: [
@@ -10097,7 +10230,7 @@ function CheckedGroupList({
10097
10230
  // src/components/lists/tree-view.tsx
10098
10231
  var import_react67 = require("react");
10099
10232
  var import_clsx89 = __toESM(require("clsx"), 1);
10100
- var import_lucide_react28 = require("lucide-react");
10233
+ var import_lucide_react29 = require("lucide-react");
10101
10234
  var import_jsx_runtime111 = require("react/jsx-runtime");
10102
10235
  var ROW = {
10103
10236
  sm: "min-h-8 py-1 text-body-xs",
@@ -10253,7 +10386,7 @@ function TreeView({
10253
10386
  focus(id);
10254
10387
  },
10255
10388
  className: "flex size-5 shrink-0 items-center justify-center rounded text-icon-default-secondary hover:bg-default-tertiary",
10256
- children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_lucide_react28.ChevronRightIcon, { className: (0, import_clsx89.default)("size-3.5 transition-transform", node.expanded && "rotate-90") })
10389
+ children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_lucide_react29.ChevronRightIcon, { className: (0, import_clsx89.default)("size-3.5 transition-transform", node.expanded && "rotate-90") })
10257
10390
  }
10258
10391
  )
10259
10392
  ) : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
@@ -10278,7 +10411,7 @@ function TreeView({
10278
10411
  // src/components/lists/table.tsx
10279
10412
  var import_react68 = require("react");
10280
10413
  var import_clsx90 = __toESM(require("clsx"), 1);
10281
- var import_lucide_react29 = require("lucide-react");
10414
+ var import_lucide_react30 = require("lucide-react");
10282
10415
  var import_jsx_runtime112 = require("react/jsx-runtime");
10283
10416
  var Table = (0, import_react68.forwardRef)(function Table2({ label, density = "default", fixed = false, maxHeight, className, children, ...rest }, ref) {
10284
10417
  return (
@@ -10402,7 +10535,7 @@ var TableHead = (0, import_react68.forwardRef)(function TableHead2({ sort, onSor
10402
10535
  ),
10403
10536
  children: [
10404
10537
  children,
10405
- sort === false ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react29.ChevronsUpDownIcon, { "aria-hidden": true, className: "size-3.5 opacity-50" }) : sort === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react29.ChevronUpIcon, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react29.ChevronDownIcon, { "aria-hidden": true, className: "size-3.5" })
10538
+ sort === false ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react30.ChevronsUpDownIcon, { "aria-hidden": true, className: "size-3.5 opacity-50" }) : sort === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react30.ChevronUpIcon, { "aria-hidden": true, className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react30.ChevronDownIcon, { "aria-hidden": true, className: "size-3.5" })
10406
10539
  ]
10407
10540
  }
10408
10541
  ) : children
@@ -10564,7 +10697,7 @@ function cardSlots(columns) {
10564
10697
  }
10565
10698
 
10566
10699
  // src/components/lists/data-table-parts.tsx
10567
- var import_lucide_react30 = require("lucide-react");
10700
+ var import_lucide_react31 = require("lucide-react");
10568
10701
  var import_jsx_runtime115 = require("react/jsx-runtime");
10569
10702
  var SELECT_COLUMN_ID = "select";
10570
10703
  function columnLabel(column) {
@@ -10584,7 +10717,7 @@ function DataTableColumnHeader({
10584
10717
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: cn(hidden ? "sr-only" : "inline-block w-max whitespace-nowrap", className), children: text });
10585
10718
  }
10586
10719
  const sorted = column.getIsSorted();
10587
- const Icon = sorted === "asc" ? import_lucide_react30.ChevronUpIcon : sorted === "desc" ? import_lucide_react30.ChevronDownIcon : import_lucide_react30.ChevronsUpDownIcon;
10720
+ const Icon = sorted === "asc" ? import_lucide_react31.ChevronUpIcon : sorted === "desc" ? import_lucide_react31.ChevronDownIcon : import_lucide_react31.ChevronsUpDownIcon;
10588
10721
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
10589
10722
  "button",
10590
10723
  {
@@ -10644,7 +10777,7 @@ function DataTableViewOptions({ table, label = "Columns" }) {
10644
10777
  const columns = table.getAllLeafColumns().filter((column) => column.getCanHide());
10645
10778
  if (columns.length === 0) return null;
10646
10779
  return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(DropdownMenu, { children: [
10647
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react30.Columns3Icon, { "aria-hidden": true }), children: label }) }),
10780
+ /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Button, { variant: "neutral", size: "md", leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_lucide_react31.Columns3Icon, { "aria-hidden": true }), children: label }) }),
10648
10781
  /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(DropdownMenuContent, { align: "end", children: [
10649
10782
  /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DropdownMenuLabel, { children: "Show columns" }),
10650
10783
  columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
@@ -11030,7 +11163,7 @@ function DataTable({
11030
11163
  getRowLabel,
11031
11164
  maxHeight
11032
11165
  };
11033
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { "data-slot": "data-table", className: cn("flex flex-col gap-3", className), children: [
11166
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { "data-slot": "data-table", className: cn("relative flex flex-col gap-3", className), children: [
11034
11167
  showToolbar && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
11035
11168
  search && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
11036
11169
  SearchInput,
@@ -11387,7 +11520,7 @@ var import_react_table2 = require("@tanstack/react-table");
11387
11520
 
11388
11521
  // src/components/feedback/inline-alert.tsx
11389
11522
  var import_clsx95 = __toESM(require("clsx"), 1);
11390
- var import_lucide_react31 = require("lucide-react");
11523
+ var import_lucide_react32 = require("lucide-react");
11391
11524
  var import_jsx_runtime118 = require("react/jsx-runtime");
11392
11525
  var toneStyles3 = {
11393
11526
  info: "border-brand-tertiary bg-brand-tertiary text-brand",
@@ -11396,10 +11529,10 @@ var toneStyles3 = {
11396
11529
  positive: "border-positive-tertiary bg-positive-tertiary text-positive"
11397
11530
  };
11398
11531
  var toneIcons = {
11399
- info: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react31.InfoIcon, { className: "size-4" }),
11400
- warning: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react31.TriangleAlertIcon, { className: "size-4" }),
11401
- danger: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react31.TriangleAlertIcon, { className: "size-4" }),
11402
- positive: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react31.CircleCheckBigIcon, { className: "size-4" })
11532
+ info: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.InfoIcon, { className: "size-4" }),
11533
+ warning: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.TriangleAlertIcon, { className: "size-4" }),
11534
+ danger: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.TriangleAlertIcon, { className: "size-4" }),
11535
+ positive: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.CircleCheckBigIcon, { className: "size-4" })
11403
11536
  };
11404
11537
  function InlineAlert({ tone, children, icon, className }) {
11405
11538
  const glyph = icon === void 0 ? toneIcons[tone] : icon;
@@ -11458,7 +11591,7 @@ var ErrorBoundary = class extends import_react72.Component {
11458
11591
  // src/components/feedback/banner.tsx
11459
11592
  var import_react73 = require("react");
11460
11593
  var import_clsx96 = __toESM(require("clsx"), 1);
11461
- var import_lucide_react32 = require("lucide-react");
11594
+ var import_lucide_react33 = require("lucide-react");
11462
11595
  var import_jsx_runtime120 = require("react/jsx-runtime");
11463
11596
  var TONE_STYLES3 = {
11464
11597
  info: "border-brand-tertiary bg-brand-tertiary text-default",
@@ -11473,10 +11606,10 @@ var TONE_ICON_COLOR = {
11473
11606
  danger: "text-icon-danger"
11474
11607
  };
11475
11608
  var TONE_ICON2 = {
11476
- info: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react32.InfoIcon, { "aria-hidden": true, className: "size-5" }),
11477
- positive: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react32.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
11478
- warning: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react32.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
11479
- danger: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react32.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" })
11609
+ info: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.InfoIcon, { "aria-hidden": true, className: "size-5" }),
11610
+ positive: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
11611
+ warning: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
11612
+ danger: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" })
11480
11613
  };
11481
11614
  var Banner = (0, import_react73.forwardRef)(function Banner2({
11482
11615
  title,
@@ -11521,7 +11654,7 @@ var Banner = (0, import_react73.forwardRef)(function Banner2({
11521
11654
  "aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
11522
11655
  onClick: onDismiss,
11523
11656
  className: "-mr-1 -mt-1 shrink-0",
11524
- children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react32.XIcon, { "aria-hidden": true, size: 16 })
11657
+ children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.XIcon, { "aria-hidden": true, size: 16 })
11525
11658
  }
11526
11659
  )
11527
11660
  ]
@@ -11532,7 +11665,7 @@ var Banner = (0, import_react73.forwardRef)(function Banner2({
11532
11665
  // src/components/feedback/toast.tsx
11533
11666
  var import_react74 = require("react");
11534
11667
  var import_clsx97 = __toESM(require("clsx"), 1);
11535
- var import_lucide_react33 = require("lucide-react");
11668
+ var import_lucide_react34 = require("lucide-react");
11536
11669
  var import_jsx_runtime121 = require("react/jsx-runtime");
11537
11670
  var ToastContext = (0, import_react74.createContext)(null);
11538
11671
  function useToast() {
@@ -11541,10 +11674,10 @@ function useToast() {
11541
11674
  return context;
11542
11675
  }
11543
11676
  var TONE_ICON3 = {
11544
- info: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react33.InfoIcon, { "aria-hidden": true, className: "size-4" }),
11545
- positive: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react33.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
11546
- warning: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react33.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
11547
- danger: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react33.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" })
11677
+ info: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.InfoIcon, { "aria-hidden": true, className: "size-4" }),
11678
+ positive: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
11679
+ warning: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
11680
+ danger: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" })
11548
11681
  };
11549
11682
  var TONE_ICON_COLOR2 = {
11550
11683
  info: "text-icon-brand",
@@ -11648,7 +11781,7 @@ function ToastItem({ toast, onDismiss }) {
11648
11781
  "aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
11649
11782
  onClick: onDismiss,
11650
11783
  className: "-mr-1 -mt-1 shrink-0",
11651
- children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react33.XIcon, { "aria-hidden": true, size: 14 })
11784
+ children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.XIcon, { "aria-hidden": true, size: 14 })
11652
11785
  }
11653
11786
  )
11654
11787
  ]
@@ -11658,7 +11791,7 @@ function ToastItem({ toast, onDismiss }) {
11658
11791
 
11659
11792
  // src/components/forms/password-input.tsx
11660
11793
  var import_react75 = require("react");
11661
- var import_lucide_react34 = require("lucide-react");
11794
+ var import_lucide_react35 = require("lucide-react");
11662
11795
  var import_jsx_runtime122 = require("react/jsx-runtime");
11663
11796
  var PasswordInput = (0, import_react75.forwardRef)(function PasswordInput2(props, ref) {
11664
11797
  const [visible, setVisible] = (0, import_react75.useState)(false);
@@ -11675,7 +11808,7 @@ var PasswordInput = (0, import_react75.forwardRef)(function PasswordInput2(props
11675
11808
  "aria-label": visible ? "Hide password" : "Show password",
11676
11809
  onClick: () => setVisible((v) => !v),
11677
11810
  className: "flex items-center justify-center rounded transition-colors hover:text-default focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
11678
- children: visible ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react34.EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react34.EyeIcon, { "aria-hidden": true, className: "size-4" })
11811
+ children: visible ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react35.EyeOffIcon, { "aria-hidden": true, className: "size-4" }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_lucide_react35.EyeIcon, { "aria-hidden": true, className: "size-4" })
11679
11812
  }
11680
11813
  )
11681
11814
  }
@@ -11684,7 +11817,7 @@ var PasswordInput = (0, import_react75.forwardRef)(function PasswordInput2(props
11684
11817
 
11685
11818
  // src/components/ai/ai-chat-bar.tsx
11686
11819
  var import_clsx98 = __toESM(require("clsx"), 1);
11687
- var import_lucide_react35 = require("lucide-react");
11820
+ var import_lucide_react36 = require("lucide-react");
11688
11821
  var import_jsx_runtime123 = require("react/jsx-runtime");
11689
11822
  function AIChatBar({
11690
11823
  placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
@@ -11698,7 +11831,7 @@ function AIChatBar({
11698
11831
  className
11699
11832
  ),
11700
11833
  children: [
11701
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react35.SearchIcon, { className: "size-4" }) }),
11834
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react36.SearchIcon, { className: "size-4" }) }),
11702
11835
  /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
11703
11836
  /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
11704
11837
  "button",
@@ -11707,7 +11840,7 @@ function AIChatBar({
11707
11840
  className: "inline-flex shrink-0 items-center gap-2 rounded-xl bg-brand px-4 py-3 text-body-sm font-semibold text-brand-on-brand hover:bg-brand-hover transition-colors",
11708
11841
  children: [
11709
11842
  "Ask",
11710
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react35.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
11843
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react36.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
11711
11844
  ]
11712
11845
  }
11713
11846
  )
@@ -11718,7 +11851,7 @@ function AIChatBar({
11718
11851
 
11719
11852
  // src/components/ai/ai-suggestion-chip.tsx
11720
11853
  var import_clsx99 = __toESM(require("clsx"), 1);
11721
- var import_lucide_react36 = require("lucide-react");
11854
+ var import_lucide_react37 = require("lucide-react");
11722
11855
  var import_jsx_runtime124 = require("react/jsx-runtime");
11723
11856
  function AISuggestionChip({ prompt, onClick, className }) {
11724
11857
  return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
@@ -11731,9 +11864,9 @@ function AISuggestionChip({ prompt, onClick, className }) {
11731
11864
  className
11732
11865
  ),
11733
11866
  children: [
11734
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react36.CpuIcon, { className: "size-4" }) }),
11867
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-brand", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react37.CpuIcon, { className: "size-4" }) }),
11735
11868
  /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { className: "flex-1 text-body-sm text-default truncate", children: prompt }),
11736
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react36.ArrowRightIcon, { className: "size-3.5", strokeWidth: 2.5 }) })
11869
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("span", { "aria-hidden": true, className: "shrink-0 text-icon-default-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(import_lucide_react37.ArrowRightIcon, { className: "size-3.5", strokeWidth: 2.5 }) })
11737
11870
  ]
11738
11871
  }
11739
11872
  );
@@ -11761,7 +11894,7 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
11761
11894
 
11762
11895
  // src/components/ai/chat.tsx
11763
11896
  var import_clsx101 = __toESM(require("clsx"), 1);
11764
- var import_lucide_react37 = require("lucide-react");
11897
+ var import_lucide_react38 = require("lucide-react");
11765
11898
  var import_jsx_runtime126 = require("react/jsx-runtime");
11766
11899
  function AiAvatar({ className, icon }) {
11767
11900
  return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
@@ -11769,7 +11902,7 @@ function AiAvatar({ className, icon }) {
11769
11902
  {
11770
11903
  "aria-hidden": true,
11771
11904
  className: cn("flex size-8 shrink-0 items-center justify-center rounded-full bg-brand text-icon-brand-on-brand", className),
11772
- children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react37.CpuIcon, { className: "size-3.5" })
11905
+ children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react38.CpuIcon, { className: "size-3.5" })
11773
11906
  }
11774
11907
  );
11775
11908
  }
@@ -11885,6 +12018,7 @@ function AuroraBackdrop() {
11885
12018
  ContextMenuContent,
11886
12019
  ContextMenuGroup,
11887
12020
  ContextMenuItem,
12021
+ ContextMenuItems,
11888
12022
  ContextMenuLabel,
11889
12023
  ContextMenuRadioGroup,
11890
12024
  ContextMenuRadioItem,
@@ -11922,6 +12056,7 @@ function AuroraBackdrop() {
11922
12056
  DropdownMenuContent,
11923
12057
  DropdownMenuGroup,
11924
12058
  DropdownMenuItem,
12059
+ DropdownMenuItems,
11925
12060
  DropdownMenuLabel,
11926
12061
  DropdownMenuRadioGroup,
11927
12062
  DropdownMenuRadioItem,
@@ -11980,6 +12115,7 @@ function AuroraBackdrop() {
11980
12115
  MenubarContent,
11981
12116
  MenubarGroup,
11982
12117
  MenubarItem,
12118
+ MenubarItems,
11983
12119
  MenubarLabel,
11984
12120
  MenubarMenu,
11985
12121
  MenubarRadioGroup,