@platned/ui 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +280 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +217 -16
- package/dist/index.d.ts +217 -16
- package/dist/index.js +416 -277
- package/dist/index.js.map +1 -1
- package/dist/sidebar.cjs +73 -1
- package/dist/sidebar.cjs.map +1 -1
- package/dist/sidebar.js +87 -14
- package/dist/sidebar.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
{
|
|
3360
|
-
|
|
3361
|
-
"
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
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
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -6342,6 +6448,7 @@ function ConfirmDialog({
|
|
|
6342
6448
|
confirmVariant = "primary",
|
|
6343
6449
|
isConfirming = false,
|
|
6344
6450
|
confirmingLabel = "Working\u2026",
|
|
6451
|
+
confirmDisabled = false,
|
|
6345
6452
|
children,
|
|
6346
6453
|
className,
|
|
6347
6454
|
onConfirm,
|
|
@@ -6390,6 +6497,7 @@ function ConfirmDialog({
|
|
|
6390
6497
|
size: "md",
|
|
6391
6498
|
loading: isConfirming,
|
|
6392
6499
|
loadingLabel: confirmingLabel,
|
|
6500
|
+
disabled: confirmDisabled,
|
|
6393
6501
|
onClick: onConfirm,
|
|
6394
6502
|
children: isConfirming ? confirmingLabel : confirmLabel
|
|
6395
6503
|
}
|
|
@@ -6507,6 +6615,11 @@ function useDropdownMenuState(part) {
|
|
|
6507
6615
|
}
|
|
6508
6616
|
function DropdownMenu({
|
|
6509
6617
|
children,
|
|
6618
|
+
items,
|
|
6619
|
+
trigger,
|
|
6620
|
+
label,
|
|
6621
|
+
side,
|
|
6622
|
+
align,
|
|
6510
6623
|
open: openProp,
|
|
6511
6624
|
defaultOpen = false,
|
|
6512
6625
|
onOpenChange,
|
|
@@ -6519,7 +6632,10 @@ function DropdownMenu({
|
|
|
6519
6632
|
});
|
|
6520
6633
|
const pendingEdge = (0, import_react46.useRef)("start");
|
|
6521
6634
|
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
|
|
6635
|
+
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: [
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuTrigger, { asChild: trigger != null, label, children: trigger }),
|
|
6637
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuContent, { side, align, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(DropdownMenuItems, { items }) })
|
|
6638
|
+
] }) : children }) });
|
|
6523
6639
|
}
|
|
6524
6640
|
var DropdownMenuTrigger = (0, import_react46.forwardRef)(
|
|
6525
6641
|
function DropdownMenuTrigger2({ children, asChild = false, label = "Open menu", onClick, onPointerDown, onMouseDown, onKeyDown, ...rest }, ref) {
|
|
@@ -6604,6 +6720,7 @@ var DropdownMenuContent = (0, import_react46.forwardRef)(
|
|
|
6604
6720
|
}
|
|
6605
6721
|
);
|
|
6606
6722
|
var parts3 = createMenuParts(import_radix_ui8.DropdownMenu);
|
|
6723
|
+
var DropdownMenuItems = parts3.Items;
|
|
6607
6724
|
var DropdownMenuItem = parts3.Item;
|
|
6608
6725
|
var DropdownMenuCheckboxItem = parts3.CheckboxItem;
|
|
6609
6726
|
var DropdownMenuRadioGroup = parts3.RadioGroup;
|
|
@@ -6841,7 +6958,8 @@ var import_lucide_react19 = require("lucide-react");
|
|
|
6841
6958
|
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6842
6959
|
var HeadingLevel = (0, import_react50.createContext)(3);
|
|
6843
6960
|
var Accordion = (0, import_react50.forwardRef)(function Accordion2({
|
|
6844
|
-
children,
|
|
6961
|
+
children: childrenProp,
|
|
6962
|
+
items,
|
|
6845
6963
|
type = "single",
|
|
6846
6964
|
value,
|
|
6847
6965
|
defaultValue,
|
|
@@ -6852,6 +6970,10 @@ var Accordion = (0, import_react50.forwardRef)(function Accordion2({
|
|
|
6852
6970
|
className,
|
|
6853
6971
|
...rest
|
|
6854
6972
|
}, ref) {
|
|
6973
|
+
const children = items ? items.filter((item) => !item.hidden).map((item) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(AccordionItem, { value: item.value, disabled: item.disabled, children: [
|
|
6974
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(AccordionTrigger, { children: item.label }),
|
|
6975
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(AccordionContent, { children: item.content })
|
|
6976
|
+
] }, item.value)) : childrenProp;
|
|
6855
6977
|
const shared = {
|
|
6856
6978
|
ref,
|
|
6857
6979
|
disabled,
|
|
@@ -8204,9 +8326,23 @@ var import_react59 = require("react");
|
|
|
8204
8326
|
var import_clsx59 = __toESM(require("clsx"), 1);
|
|
8205
8327
|
var import_lucide_react22 = require("lucide-react");
|
|
8206
8328
|
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 }) });
|
|
8329
|
+
var Breadcrumb = (0, import_react59.forwardRef)(function Breadcrumb2({ children, items, renderLink, maxItems, label = "Breadcrumb", className, ...rest }, ref) {
|
|
8330
|
+
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
8331
|
});
|
|
8332
|
+
function renderItems(items, renderLink, maxItems) {
|
|
8333
|
+
const last = items.length - 1;
|
|
8334
|
+
const collapse = maxItems !== void 0 && maxItems >= 2 && items.length > maxItems;
|
|
8335
|
+
const shown = collapse ? [0, ...items.map((_, i) => i).slice(items.length - (maxItems - 1))] : items.map((_, i) => i);
|
|
8336
|
+
return shown.map((index, position) => {
|
|
8337
|
+
const item = items[index];
|
|
8338
|
+
const current = item.current ?? index === last;
|
|
8339
|
+
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 });
|
|
8340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react59.Fragment, { children: [
|
|
8341
|
+
crumb,
|
|
8342
|
+
collapse && position === 0 && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(BreadcrumbEllipsis, {})
|
|
8343
|
+
] }, item.id ?? index);
|
|
8344
|
+
});
|
|
8345
|
+
}
|
|
8210
8346
|
var BreadcrumbItem = (0, import_react59.forwardRef)(
|
|
8211
8347
|
function BreadcrumbItem2({ children, current = false, asChild = false, first = false, className, ...rest }, ref) {
|
|
8212
8348
|
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("li", { className: "flex items-center gap-1.5", children: [
|
|
@@ -9662,6 +9798,7 @@ function refusePress(event) {
|
|
|
9662
9798
|
|
|
9663
9799
|
// src/components/lists/file-row.tsx
|
|
9664
9800
|
var import_clsx80 = __toESM(require("clsx"), 1);
|
|
9801
|
+
var import_lucide_react25 = require("lucide-react");
|
|
9665
9802
|
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
9666
9803
|
function FileTypeBadge({ type }) {
|
|
9667
9804
|
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 +9810,8 @@ function FileRow({
|
|
|
9673
9810
|
leading,
|
|
9674
9811
|
onDownload,
|
|
9675
9812
|
downloadLabel = "Download",
|
|
9813
|
+
onRemove,
|
|
9814
|
+
removeLabel = "Remove",
|
|
9676
9815
|
actions,
|
|
9677
9816
|
className
|
|
9678
9817
|
}) {
|
|
@@ -9690,17 +9829,10 @@ function FileRow({
|
|
|
9690
9829
|
/* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "truncate text-body-sm font-medium text-default", children: name }),
|
|
9691
9830
|
detail && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "text-body-xs text-default-secondary", children: detail })
|
|
9692
9831
|
] }),
|
|
9693
|
-
(onDownload || actions) && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex shrink-0 items-center gap-
|
|
9694
|
-
onDownload && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
9695
|
-
|
|
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
|
|
9832
|
+
(onDownload || onRemove || actions) && /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex shrink-0 items-center gap-1", children: [
|
|
9833
|
+
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 }) }) }),
|
|
9834
|
+
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 }) }) }),
|
|
9835
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "ml-2 flex items-center gap-2", children: actions })
|
|
9704
9836
|
] })
|
|
9705
9837
|
]
|
|
9706
9838
|
}
|
|
@@ -9925,11 +10057,11 @@ function IconTextRow({ icon, title, detail, className }) {
|
|
|
9925
10057
|
|
|
9926
10058
|
// src/components/lists/checklist-row.tsx
|
|
9927
10059
|
var import_clsx84 = __toESM(require("clsx"), 1);
|
|
9928
|
-
var
|
|
10060
|
+
var import_lucide_react26 = require("lucide-react");
|
|
9929
10061
|
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
9930
10062
|
function ChecklistRow({ label, state, className }) {
|
|
9931
10063
|
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)(
|
|
10064
|
+
/* @__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
10065
|
"span",
|
|
9934
10066
|
{
|
|
9935
10067
|
className: (0, import_clsx84.default)(
|
|
@@ -10012,7 +10144,7 @@ function DetailGrid({ children, columns = "auto", className }) {
|
|
|
10012
10144
|
// src/components/lists/description-list.tsx
|
|
10013
10145
|
var import_react66 = require("react");
|
|
10014
10146
|
var import_clsx87 = __toESM(require("clsx"), 1);
|
|
10015
|
-
var
|
|
10147
|
+
var import_lucide_react27 = require("lucide-react");
|
|
10016
10148
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
10017
10149
|
function DescriptionList({ children, className }) {
|
|
10018
10150
|
return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("dl", { className: cn("flex flex-col gap-3", className), children });
|
|
@@ -10034,26 +10166,29 @@ function CopyButton({ value, label, copiedLabel = "Copied", className }) {
|
|
|
10034
10166
|
const timer = window.setTimeout(() => setCopied(false), 2e3);
|
|
10035
10167
|
return () => window.clearTimeout(timer);
|
|
10036
10168
|
}, [copied]);
|
|
10037
|
-
return
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
()
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10169
|
+
return (
|
|
10170
|
+
// relative: keeps the sr-only status (absolutely positioned) inside a scrolling container.
|
|
10171
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("span", { className: "relative inline-flex", children: [
|
|
10172
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
10173
|
+
IconButton,
|
|
10174
|
+
{
|
|
10175
|
+
variant: "subtle",
|
|
10176
|
+
size: "sm",
|
|
10177
|
+
"aria-label": label,
|
|
10178
|
+
"data-state": copied ? "copied" : void 0,
|
|
10179
|
+
className: cn("-my-0.5 touch-hit", className),
|
|
10180
|
+
onClick: () => {
|
|
10181
|
+
void navigator.clipboard?.writeText(value).then(
|
|
10182
|
+
() => setCopied(true),
|
|
10183
|
+
() => void 0
|
|
10184
|
+
);
|
|
10185
|
+
},
|
|
10186
|
+
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 })
|
|
10187
|
+
}
|
|
10188
|
+
),
|
|
10189
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { role: "status", className: "sr-only", children: copied ? copiedLabel : "" })
|
|
10190
|
+
] })
|
|
10191
|
+
);
|
|
10057
10192
|
}
|
|
10058
10193
|
function EmailText({ email, className }) {
|
|
10059
10194
|
const at = email.lastIndexOf("@");
|
|
@@ -10067,7 +10202,7 @@ function EmailText({ email, className }) {
|
|
|
10067
10202
|
|
|
10068
10203
|
// src/components/lists/checked-group-list.tsx
|
|
10069
10204
|
var import_clsx88 = __toESM(require("clsx"), 1);
|
|
10070
|
-
var
|
|
10205
|
+
var import_lucide_react28 = require("lucide-react");
|
|
10071
10206
|
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
10072
10207
|
var COLUMNS4 = {
|
|
10073
10208
|
1: "columns-1",
|
|
@@ -10084,7 +10219,7 @@ function CheckedGroupList({
|
|
|
10084
10219
|
if (groups.length === 0) {
|
|
10085
10220
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: (0, import_clsx88.default)("text-body-xs text-default-secondary", className), children: emptyLabel });
|
|
10086
10221
|
}
|
|
10087
|
-
const glyph = icon === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
10222
|
+
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
10223
|
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
10224
|
/* @__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
10225
|
/* @__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 +10232,7 @@ function CheckedGroupList({
|
|
|
10097
10232
|
// src/components/lists/tree-view.tsx
|
|
10098
10233
|
var import_react67 = require("react");
|
|
10099
10234
|
var import_clsx89 = __toESM(require("clsx"), 1);
|
|
10100
|
-
var
|
|
10235
|
+
var import_lucide_react29 = require("lucide-react");
|
|
10101
10236
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
10102
10237
|
var ROW = {
|
|
10103
10238
|
sm: "min-h-8 py-1 text-body-xs",
|
|
@@ -10253,7 +10388,7 @@ function TreeView({
|
|
|
10253
10388
|
focus(id);
|
|
10254
10389
|
},
|
|
10255
10390
|
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)(
|
|
10391
|
+
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
10392
|
}
|
|
10258
10393
|
)
|
|
10259
10394
|
) : /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { "aria-hidden": true, className: "size-5 shrink-0" }),
|
|
@@ -10278,7 +10413,7 @@ function TreeView({
|
|
|
10278
10413
|
// src/components/lists/table.tsx
|
|
10279
10414
|
var import_react68 = require("react");
|
|
10280
10415
|
var import_clsx90 = __toESM(require("clsx"), 1);
|
|
10281
|
-
var
|
|
10416
|
+
var import_lucide_react30 = require("lucide-react");
|
|
10282
10417
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
10283
10418
|
var Table = (0, import_react68.forwardRef)(function Table2({ label, density = "default", fixed = false, maxHeight, className, children, ...rest }, ref) {
|
|
10284
10419
|
return (
|
|
@@ -10402,7 +10537,7 @@ var TableHead = (0, import_react68.forwardRef)(function TableHead2({ sort, onSor
|
|
|
10402
10537
|
),
|
|
10403
10538
|
children: [
|
|
10404
10539
|
children,
|
|
10405
|
-
sort === false ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
10540
|
+
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
10541
|
]
|
|
10407
10542
|
}
|
|
10408
10543
|
) : children
|
|
@@ -10564,7 +10699,7 @@ function cardSlots(columns) {
|
|
|
10564
10699
|
}
|
|
10565
10700
|
|
|
10566
10701
|
// src/components/lists/data-table-parts.tsx
|
|
10567
|
-
var
|
|
10702
|
+
var import_lucide_react31 = require("lucide-react");
|
|
10568
10703
|
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
10569
10704
|
var SELECT_COLUMN_ID = "select";
|
|
10570
10705
|
function columnLabel(column) {
|
|
@@ -10584,7 +10719,7 @@ function DataTableColumnHeader({
|
|
|
10584
10719
|
return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: cn(hidden ? "sr-only" : "inline-block w-max whitespace-nowrap", className), children: text });
|
|
10585
10720
|
}
|
|
10586
10721
|
const sorted = column.getIsSorted();
|
|
10587
|
-
const Icon = sorted === "asc" ?
|
|
10722
|
+
const Icon = sorted === "asc" ? import_lucide_react31.ChevronUpIcon : sorted === "desc" ? import_lucide_react31.ChevronDownIcon : import_lucide_react31.ChevronsUpDownIcon;
|
|
10588
10723
|
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
|
|
10589
10724
|
"button",
|
|
10590
10725
|
{
|
|
@@ -10644,7 +10779,7 @@ function DataTableViewOptions({ table, label = "Columns" }) {
|
|
|
10644
10779
|
const columns = table.getAllLeafColumns().filter((column) => column.getCanHide());
|
|
10645
10780
|
if (columns.length === 0) return null;
|
|
10646
10781
|
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)(
|
|
10782
|
+
/* @__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
10783
|
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(DropdownMenuContent, { align: "end", children: [
|
|
10649
10784
|
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(DropdownMenuLabel, { children: "Show columns" }),
|
|
10650
10785
|
columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
@@ -11030,7 +11165,7 @@ function DataTable({
|
|
|
11030
11165
|
getRowLabel,
|
|
11031
11166
|
maxHeight
|
|
11032
11167
|
};
|
|
11033
|
-
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { "data-slot": "data-table", className: cn("flex flex-col gap-3", className), children: [
|
|
11168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { "data-slot": "data-table", className: cn("relative flex flex-col gap-3", className), children: [
|
|
11034
11169
|
showToolbar && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
11035
11170
|
search && /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
11036
11171
|
SearchInput,
|
|
@@ -11387,7 +11522,7 @@ var import_react_table2 = require("@tanstack/react-table");
|
|
|
11387
11522
|
|
|
11388
11523
|
// src/components/feedback/inline-alert.tsx
|
|
11389
11524
|
var import_clsx95 = __toESM(require("clsx"), 1);
|
|
11390
|
-
var
|
|
11525
|
+
var import_lucide_react32 = require("lucide-react");
|
|
11391
11526
|
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
11392
11527
|
var toneStyles3 = {
|
|
11393
11528
|
info: "border-brand-tertiary bg-brand-tertiary text-brand",
|
|
@@ -11396,10 +11531,10 @@ var toneStyles3 = {
|
|
|
11396
11531
|
positive: "border-positive-tertiary bg-positive-tertiary text-positive"
|
|
11397
11532
|
};
|
|
11398
11533
|
var toneIcons = {
|
|
11399
|
-
info: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
11400
|
-
warning: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
11401
|
-
danger: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
11402
|
-
positive: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
11534
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.InfoIcon, { className: "size-4" }),
|
|
11535
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.TriangleAlertIcon, { className: "size-4" }),
|
|
11536
|
+
danger: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.TriangleAlertIcon, { className: "size-4" }),
|
|
11537
|
+
positive: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_lucide_react32.CircleCheckBigIcon, { className: "size-4" })
|
|
11403
11538
|
};
|
|
11404
11539
|
function InlineAlert({ tone, children, icon, className }) {
|
|
11405
11540
|
const glyph = icon === void 0 ? toneIcons[tone] : icon;
|
|
@@ -11458,7 +11593,7 @@ var ErrorBoundary = class extends import_react72.Component {
|
|
|
11458
11593
|
// src/components/feedback/banner.tsx
|
|
11459
11594
|
var import_react73 = require("react");
|
|
11460
11595
|
var import_clsx96 = __toESM(require("clsx"), 1);
|
|
11461
|
-
var
|
|
11596
|
+
var import_lucide_react33 = require("lucide-react");
|
|
11462
11597
|
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
11463
11598
|
var TONE_STYLES3 = {
|
|
11464
11599
|
info: "border-brand-tertiary bg-brand-tertiary text-default",
|
|
@@ -11473,10 +11608,10 @@ var TONE_ICON_COLOR = {
|
|
|
11473
11608
|
danger: "text-icon-danger"
|
|
11474
11609
|
};
|
|
11475
11610
|
var TONE_ICON2 = {
|
|
11476
|
-
info: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
11477
|
-
positive: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
11478
|
-
warning: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
11479
|
-
danger: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
11611
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.InfoIcon, { "aria-hidden": true, className: "size-5" }),
|
|
11612
|
+
positive: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.CircleCheckBigIcon, { "aria-hidden": true, className: "size-5" }),
|
|
11613
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" }),
|
|
11614
|
+
danger: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.TriangleAlertIcon, { "aria-hidden": true, className: "size-5" })
|
|
11480
11615
|
};
|
|
11481
11616
|
var Banner = (0, import_react73.forwardRef)(function Banner2({
|
|
11482
11617
|
title,
|
|
@@ -11521,7 +11656,7 @@ var Banner = (0, import_react73.forwardRef)(function Banner2({
|
|
|
11521
11656
|
"aria-label": typeof title === "string" ? `Dismiss: ${title}` : "Dismiss",
|
|
11522
11657
|
onClick: onDismiss,
|
|
11523
11658
|
className: "-mr-1 -mt-1 shrink-0",
|
|
11524
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
11659
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_lucide_react33.XIcon, { "aria-hidden": true, size: 16 })
|
|
11525
11660
|
}
|
|
11526
11661
|
)
|
|
11527
11662
|
]
|
|
@@ -11532,7 +11667,7 @@ var Banner = (0, import_react73.forwardRef)(function Banner2({
|
|
|
11532
11667
|
// src/components/feedback/toast.tsx
|
|
11533
11668
|
var import_react74 = require("react");
|
|
11534
11669
|
var import_clsx97 = __toESM(require("clsx"), 1);
|
|
11535
|
-
var
|
|
11670
|
+
var import_lucide_react34 = require("lucide-react");
|
|
11536
11671
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
11537
11672
|
var ToastContext = (0, import_react74.createContext)(null);
|
|
11538
11673
|
function useToast() {
|
|
@@ -11541,10 +11676,10 @@ function useToast() {
|
|
|
11541
11676
|
return context;
|
|
11542
11677
|
}
|
|
11543
11678
|
var TONE_ICON3 = {
|
|
11544
|
-
info: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11545
|
-
positive: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11546
|
-
warning: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11547
|
-
danger: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11679
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.InfoIcon, { "aria-hidden": true, className: "size-4" }),
|
|
11680
|
+
positive: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.CircleCheckBigIcon, { "aria-hidden": true, className: "size-4" }),
|
|
11681
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" }),
|
|
11682
|
+
danger: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.TriangleAlertIcon, { "aria-hidden": true, className: "size-4" })
|
|
11548
11683
|
};
|
|
11549
11684
|
var TONE_ICON_COLOR2 = {
|
|
11550
11685
|
info: "text-icon-brand",
|
|
@@ -11648,7 +11783,7 @@ function ToastItem({ toast, onDismiss }) {
|
|
|
11648
11783
|
"aria-label": typeof toast.title === "string" ? `Dismiss: ${toast.title}` : "Dismiss",
|
|
11649
11784
|
onClick: onDismiss,
|
|
11650
11785
|
className: "-mr-1 -mt-1 shrink-0",
|
|
11651
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
11786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react34.XIcon, { "aria-hidden": true, size: 14 })
|
|
11652
11787
|
}
|
|
11653
11788
|
)
|
|
11654
11789
|
]
|
|
@@ -11658,7 +11793,7 @@ function ToastItem({ toast, onDismiss }) {
|
|
|
11658
11793
|
|
|
11659
11794
|
// src/components/forms/password-input.tsx
|
|
11660
11795
|
var import_react75 = require("react");
|
|
11661
|
-
var
|
|
11796
|
+
var import_lucide_react35 = require("lucide-react");
|
|
11662
11797
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
11663
11798
|
var PasswordInput = (0, import_react75.forwardRef)(function PasswordInput2(props, ref) {
|
|
11664
11799
|
const [visible, setVisible] = (0, import_react75.useState)(false);
|
|
@@ -11675,7 +11810,7 @@ var PasswordInput = (0, import_react75.forwardRef)(function PasswordInput2(props
|
|
|
11675
11810
|
"aria-label": visible ? "Hide password" : "Show password",
|
|
11676
11811
|
onClick: () => setVisible((v) => !v),
|
|
11677
11812
|
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)(
|
|
11813
|
+
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
11814
|
}
|
|
11680
11815
|
)
|
|
11681
11816
|
}
|
|
@@ -11684,7 +11819,7 @@ var PasswordInput = (0, import_react75.forwardRef)(function PasswordInput2(props
|
|
|
11684
11819
|
|
|
11685
11820
|
// src/components/ai/ai-chat-bar.tsx
|
|
11686
11821
|
var import_clsx98 = __toESM(require("clsx"), 1);
|
|
11687
|
-
var
|
|
11822
|
+
var import_lucide_react36 = require("lucide-react");
|
|
11688
11823
|
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
11689
11824
|
function AIChatBar({
|
|
11690
11825
|
placeholder = "Ask Intelligence about any entity, supplier, or risk\u2026",
|
|
@@ -11698,7 +11833,7 @@ function AIChatBar({
|
|
|
11698
11833
|
className
|
|
11699
11834
|
),
|
|
11700
11835
|
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)(
|
|
11836
|
+
/* @__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
11837
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { className: "flex-1 text-body-sm text-default-tertiary truncate", children: placeholder }),
|
|
11703
11838
|
/* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
11704
11839
|
"button",
|
|
@@ -11707,7 +11842,7 @@ function AIChatBar({
|
|
|
11707
11842
|
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
11843
|
children: [
|
|
11709
11844
|
"Ask",
|
|
11710
|
-
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
11845
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_lucide_react36.ArrowRightIcon, { "aria-hidden": true, className: "size-4" })
|
|
11711
11846
|
]
|
|
11712
11847
|
}
|
|
11713
11848
|
)
|
|
@@ -11718,7 +11853,7 @@ function AIChatBar({
|
|
|
11718
11853
|
|
|
11719
11854
|
// src/components/ai/ai-suggestion-chip.tsx
|
|
11720
11855
|
var import_clsx99 = __toESM(require("clsx"), 1);
|
|
11721
|
-
var
|
|
11856
|
+
var import_lucide_react37 = require("lucide-react");
|
|
11722
11857
|
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
11723
11858
|
function AISuggestionChip({ prompt, onClick, className }) {
|
|
11724
11859
|
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
|
|
@@ -11731,9 +11866,9 @@ function AISuggestionChip({ prompt, onClick, className }) {
|
|
|
11731
11866
|
className
|
|
11732
11867
|
),
|
|
11733
11868
|
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)(
|
|
11869
|
+
/* @__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
11870
|
/* @__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)(
|
|
11871
|
+
/* @__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
11872
|
]
|
|
11738
11873
|
}
|
|
11739
11874
|
);
|
|
@@ -11761,7 +11896,7 @@ function QuickActionsBar({ actions, active, onSelect, className }) {
|
|
|
11761
11896
|
|
|
11762
11897
|
// src/components/ai/chat.tsx
|
|
11763
11898
|
var import_clsx101 = __toESM(require("clsx"), 1);
|
|
11764
|
-
var
|
|
11899
|
+
var import_lucide_react38 = require("lucide-react");
|
|
11765
11900
|
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
11766
11901
|
function AiAvatar({ className, icon }) {
|
|
11767
11902
|
return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
@@ -11769,7 +11904,7 @@ function AiAvatar({ className, icon }) {
|
|
|
11769
11904
|
{
|
|
11770
11905
|
"aria-hidden": true,
|
|
11771
11906
|
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)(
|
|
11907
|
+
children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_lucide_react38.CpuIcon, { className: "size-3.5" })
|
|
11773
11908
|
}
|
|
11774
11909
|
);
|
|
11775
11910
|
}
|
|
@@ -11885,6 +12020,7 @@ function AuroraBackdrop() {
|
|
|
11885
12020
|
ContextMenuContent,
|
|
11886
12021
|
ContextMenuGroup,
|
|
11887
12022
|
ContextMenuItem,
|
|
12023
|
+
ContextMenuItems,
|
|
11888
12024
|
ContextMenuLabel,
|
|
11889
12025
|
ContextMenuRadioGroup,
|
|
11890
12026
|
ContextMenuRadioItem,
|
|
@@ -11922,6 +12058,7 @@ function AuroraBackdrop() {
|
|
|
11922
12058
|
DropdownMenuContent,
|
|
11923
12059
|
DropdownMenuGroup,
|
|
11924
12060
|
DropdownMenuItem,
|
|
12061
|
+
DropdownMenuItems,
|
|
11925
12062
|
DropdownMenuLabel,
|
|
11926
12063
|
DropdownMenuRadioGroup,
|
|
11927
12064
|
DropdownMenuRadioItem,
|
|
@@ -11980,6 +12117,7 @@ function AuroraBackdrop() {
|
|
|
11980
12117
|
MenubarContent,
|
|
11981
12118
|
MenubarGroup,
|
|
11982
12119
|
MenubarItem,
|
|
12120
|
+
MenubarItems,
|
|
11983
12121
|
MenubarLabel,
|
|
11984
12122
|
MenubarMenu,
|
|
11985
12123
|
MenubarRadioGroup,
|