react-os-shell 4.79.1 → 4.79.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +1 -0
  2. package/dist/{Browser-GI3FU3RG.js → Browser-2DFSZ3RP.js} +4 -4
  3. package/dist/{Browser-GI3FU3RG.js.map → Browser-2DFSZ3RP.js.map} +1 -1
  4. package/dist/{Documents-Z3NTYEOL.js → Documents-GIP67CHC.js} +4 -4
  5. package/dist/{Documents-Z3NTYEOL.js.map → Documents-GIP67CHC.js.map} +1 -1
  6. package/dist/{Files-VR4VONB3.js → Files-JAE2LL65.js} +7 -7
  7. package/dist/{Files-VR4VONB3.js.map → Files-JAE2LL65.js.map} +1 -1
  8. package/dist/{Notepad-MU2S4QY7.js → Notepad-SXHXJ6PC.js} +4 -4
  9. package/dist/{Notepad-MU2S4QY7.js.map → Notepad-SXHXJ6PC.js.map} +1 -1
  10. package/dist/{Preview-4V5XZ7IQ.js → Preview-5HFE6MCG.js} +18 -16
  11. package/dist/Preview-5HFE6MCG.js.map +1 -0
  12. package/dist/{Spreadsheet-NF7NBZMD.js → Spreadsheet-KZLORYAA.js} +22 -17
  13. package/dist/Spreadsheet-KZLORYAA.js.map +1 -0
  14. package/dist/apps/index.d.ts +10 -4
  15. package/dist/apps/index.js +10 -10
  16. package/dist/{chunk-BV6SQ46N.js → chunk-3L463T5H.js} +5 -3
  17. package/dist/chunk-3L463T5H.js.map +1 -0
  18. package/dist/{chunk-WXYVPGFY.js → chunk-A42MTWLI.js} +5 -5
  19. package/dist/{chunk-WXYVPGFY.js.map → chunk-A42MTWLI.js.map} +1 -1
  20. package/dist/{chunk-4SQU5YV6.js → chunk-CT3HVZRZ.js} +5 -3
  21. package/dist/chunk-CT3HVZRZ.js.map +1 -0
  22. package/dist/{chunk-TT56U4GY.js → chunk-GO2LCDHS.js} +4 -4
  23. package/dist/{chunk-TT56U4GY.js.map → chunk-GO2LCDHS.js.map} +1 -1
  24. package/dist/chunk-M2IJT4OA.js +7 -0
  25. package/dist/{chunk-6E3DBIGQ.js.map → chunk-M2IJT4OA.js.map} +1 -1
  26. package/dist/{chunk-VDKHMCWT.js → chunk-YZVJCHXV.js} +71 -62
  27. package/dist/chunk-YZVJCHXV.js.map +1 -0
  28. package/dist/{index-C_uCjbAh.d.ts → index-BjEcKEsJ.d.ts} +6 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +7 -7
  31. package/dist/ui/index.d.ts +1 -1
  32. package/dist/ui/index.js +2 -2
  33. package/package.json +1 -1
  34. package/dist/Preview-4V5XZ7IQ.js.map +0 -1
  35. package/dist/Spreadsheet-NF7NBZMD.js.map +0 -1
  36. package/dist/chunk-4SQU5YV6.js.map +0 -1
  37. package/dist/chunk-6E3DBIGQ.js +0 -7
  38. package/dist/chunk-BV6SQ46N.js.map +0 -1
  39. package/dist/chunk-VDKHMCWT.js.map +0 -1
@@ -601,9 +601,9 @@ var Radio = forwardRef(function Radio2({ checked, onChange, label, description,
601
601
  ...rest
602
602
  }
603
603
  ),
604
- /* @__PURE__ */ jsxs("span", { className: "text-sm leading-tight", children: [
605
- label && /* @__PURE__ */ jsx("span", { className: "font-medium text-gray-700", children: label }),
606
- description && /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-xs text-gray-500", children: description })
604
+ /* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1 text-sm leading-tight", children: [
605
+ label && /* @__PURE__ */ jsx("span", { className: "block min-w-0 font-medium text-gray-700", children: label }),
606
+ description && /* @__PURE__ */ jsx("span", { className: "mt-0.5 block min-w-0 text-xs text-gray-500", children: description })
607
607
  ] })
608
608
  ] });
609
609
  });
@@ -2578,8 +2578,7 @@ function SearchableSelect({
2578
2578
  top: menuPos?.top,
2579
2579
  bottom: menuPos?.bottom,
2580
2580
  minWidth: menuPos?.minWidth,
2581
- maxWidth: POPUP_MAX_WIDTH,
2582
- width: "max-content",
2581
+ width: menuPos?.minWidth,
2583
2582
  // Hidden for the first paint until the layout effect measures the
2584
2583
  // trigger, so the menu never flashes at (0,0).
2585
2584
  visibility: menuPos ? void 0 : "hidden",
@@ -2594,10 +2593,10 @@ function SearchableSelect({
2594
2593
  setOpen(false);
2595
2594
  setSearch("");
2596
2595
  },
2597
- className: `w-full text-left px-3 py-1.5 text-sm hover:bg-gray-50 flex items-center justify-between gap-2 whitespace-nowrap ${value === o.value ? "text-blue-600 font-medium bg-blue-50/50" : "text-gray-700"}`,
2596
+ className: `w-full overflow-hidden text-left px-3 py-1.5 text-sm hover:bg-gray-50 flex items-center justify-between gap-2 whitespace-nowrap ${value === o.value ? "text-blue-600 font-medium bg-blue-50/50" : "text-gray-700"}`,
2598
2597
  children: [
2599
- /* @__PURE__ */ jsx("span", { children: o.label }),
2600
- o.sublabel && /* @__PURE__ */ jsx("span", { className: "text-xs text-gray-400 shrink-0", children: o.sublabel })
2598
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1 truncate", children: o.label }),
2599
+ o.sublabel && /* @__PURE__ */ jsx("span", { className: "min-w-0 max-w-[45%] shrink-0 truncate text-xs text-gray-400", children: o.sublabel })
2601
2600
  ]
2602
2601
  },
2603
2602
  o.value
@@ -3451,59 +3450,68 @@ function Stepper({
3451
3450
  className = ""
3452
3451
  }) {
3453
3452
  const currentIndex = Math.max(0, items.findIndex((s) => s.id === value));
3454
- return /* @__PURE__ */ jsx("ol", { "aria-label": ariaLabel, className: `flex items-start ${className}`.trim(), children: items.map((step, i) => {
3455
- const state = i < currentIndex ? "complete" : i === currentIndex ? "current" : "upcoming";
3456
- const clickable = state === "complete" && !!onChange;
3457
- const circle = /* @__PURE__ */ jsx(
3458
- "span",
3459
- {
3460
- "aria-hidden": "true",
3461
- className: [
3462
- "flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold transition-colors",
3463
- state === "complete" ? "bg-blue-600 text-white" : "",
3464
- state === "current" ? "border-2 border-blue-600 bg-white text-blue-600" : "",
3465
- state === "upcoming" ? "border-2 border-gray-300 bg-white text-gray-400" : ""
3466
- ].filter(Boolean).join(" "),
3467
- children: state === "complete" ? /* @__PURE__ */ jsx(Check, {}) : i + 1
3468
- }
3469
- );
3470
- const text = /* @__PURE__ */ jsxs("span", { className: "min-w-0", children: [
3471
- /* @__PURE__ */ jsx("span", { className: `block text-sm font-medium ${state === "upcoming" ? "text-gray-400" : "text-gray-900"}`, children: step.label }),
3472
- step.description && /* @__PURE__ */ jsx("span", { className: "block text-xs text-gray-500", children: step.description })
3473
- ] });
3474
- return /* @__PURE__ */ jsxs(
3475
- "li",
3476
- {
3477
- "aria-current": state === "current" ? "step" : void 0,
3478
- className: `flex items-start gap-2 ${i > 0 ? "flex-1" : ""}`,
3479
- children: [
3480
- i > 0 && /* @__PURE__ */ jsx(
3481
- "span",
3482
- {
3483
- "aria-hidden": "true",
3484
- className: `mt-3.5 h-0.5 flex-1 rounded ${i <= currentIndex ? "bg-blue-600" : "bg-gray-200"}`
3485
- }
3486
- ),
3487
- clickable ? /* @__PURE__ */ jsxs(
3488
- "button",
3489
- {
3490
- type: "button",
3491
- onClick: () => onChange?.(step.id),
3492
- className: "flex items-start gap-2 text-left rounded focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400",
3493
- children: [
3453
+ return /* @__PURE__ */ jsx(
3454
+ "ol",
3455
+ {
3456
+ "aria-label": ariaLabel,
3457
+ className: `grid items-start ${className}`.trim(),
3458
+ style: { gridTemplateColumns: `repeat(${Math.max(items.length, 1)}, minmax(0, 1fr))` },
3459
+ children: items.map((step, i) => {
3460
+ const state = i < currentIndex ? "complete" : i === currentIndex ? "current" : "upcoming";
3461
+ const clickable = state === "complete" && !!onChange;
3462
+ const circle = /* @__PURE__ */ jsx(
3463
+ "span",
3464
+ {
3465
+ "aria-hidden": "true",
3466
+ className: [
3467
+ "flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold transition-colors",
3468
+ state === "complete" ? "bg-blue-600 text-white" : "",
3469
+ state === "current" ? "border-2 border-blue-600 bg-white text-blue-600" : "",
3470
+ state === "upcoming" ? "border-2 border-gray-300 bg-white text-gray-400" : ""
3471
+ ].filter(Boolean).join(" "),
3472
+ children: state === "complete" ? /* @__PURE__ */ jsx(Check, {}) : i + 1
3473
+ }
3474
+ );
3475
+ const text = /* @__PURE__ */ jsxs("span", { className: "min-w-0 text-center", children: [
3476
+ /* @__PURE__ */ jsx("span", { className: `block text-sm font-medium ${state === "upcoming" ? "text-gray-400" : "text-gray-900"}`, children: step.label }),
3477
+ step.description && /* @__PURE__ */ jsx("span", { className: "block text-xs text-gray-500", children: step.description })
3478
+ ] });
3479
+ return /* @__PURE__ */ jsxs(
3480
+ "li",
3481
+ {
3482
+ "aria-current": state === "current" ? "step" : void 0,
3483
+ className: "relative flex min-w-0 justify-center",
3484
+ children: [
3485
+ i < items.length - 1 && /* @__PURE__ */ jsx(
3486
+ "span",
3487
+ {
3488
+ "aria-hidden": "true",
3489
+ className: `absolute top-3.5 h-0.5 rounded ${i < currentIndex ? "bg-blue-600" : "bg-gray-200"}`,
3490
+ style: { left: "calc(50% + 0.875rem)", right: "calc(-50% + 0.875rem)" }
3491
+ }
3492
+ ),
3493
+ clickable ? /* @__PURE__ */ jsxs(
3494
+ "button",
3495
+ {
3496
+ type: "button",
3497
+ onClick: () => onChange?.(step.id),
3498
+ className: "relative z-10 flex min-w-0 flex-col items-center gap-1.5 rounded px-2 text-center focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400",
3499
+ children: [
3500
+ circle,
3501
+ text
3502
+ ]
3503
+ }
3504
+ ) : /* @__PURE__ */ jsxs("span", { className: "relative z-10 flex min-w-0 flex-col items-center gap-1.5 px-2 text-center", children: [
3494
3505
  circle,
3495
3506
  text
3496
- ]
3497
- }
3498
- ) : /* @__PURE__ */ jsxs("span", { className: "flex items-start gap-2", children: [
3499
- circle,
3500
- text
3501
- ] })
3502
- ]
3503
- },
3504
- step.id
3505
- );
3506
- }) });
3507
+ ] })
3508
+ ]
3509
+ },
3510
+ step.id
3511
+ );
3512
+ })
3513
+ }
3514
+ );
3507
3515
  }
3508
3516
  function Accordion({
3509
3517
  items,
@@ -4708,6 +4716,7 @@ function DropdownMenu({
4708
4716
  trigger,
4709
4717
  items,
4710
4718
  align = "end",
4719
+ side = "bottom",
4711
4720
  "aria-label": ariaLabel,
4712
4721
  className = "",
4713
4722
  disabled
@@ -4804,7 +4813,7 @@ function DropdownMenu({
4804
4813
  open && /* @__PURE__ */ jsx(
4805
4814
  "div",
4806
4815
  {
4807
- className: `absolute top-full z-50 mt-1 ${align === "end" ? "right-0" : "left-0"}`,
4816
+ className: `absolute z-50 ${side === "top" ? "bottom-full mb-1" : "top-full mt-1"} ${align === "end" ? "right-0" : "left-0"}`,
4808
4817
  onKeyDown: onMenuKeyDown,
4809
4818
  children: /* @__PURE__ */ jsx(PopupMenu, { portal: false, minWidth: 180, children: /* @__PURE__ */ jsx("div", { id: menuId, role: "menu", "aria-orientation": "vertical", "aria-label": ariaLabel, children: items.map((item, i) => /* @__PURE__ */ jsxs(
4810
4819
  PopupMenuItem,
@@ -6546,5 +6555,5 @@ var ALT_SHIFT_E = isMac ? "\u2325\u21E7E" : "Alt+Shift+E";
6546
6555
  var ALT_SHIFT_N = isMac ? "\u2325\u21E7N" : "Alt+Shift+N";
6547
6556
 
6548
6557
  export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, Accordion, AuthScreen, Avatar, AvatarGroup, Banner, BarChart, Button_default, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, CMD_SHIFT_Z, CMD_Z, Calendar, Card, ChatTemplate, Checkbox_default, CheckoutTemplate, ColoredBadge, ContainerFillChart, CountBadge, DashboardTemplate, DataTable, DataTablePage, DatePicker_default, DateRangePicker, DateTimePicker_default, DescriptionList, Divider, DonutChart, Drawer, DropdownMenu, ENTER, EmailTemplate, EmptyState, ErrorBoundary, ErrorPage, FilePicker, FormErrorSummary, FormField, FormLayoutPage, GROUP_COLORS, GalleryTemplate, GlobalSearch, Grid, HelpCenter, INPUT_BASE, INPUT_SIZES, IconButton_default, Inline, InputNumber_default, Input_default, Kanban, Label, LineChart, ListFooter, ListLoadError, LoadingSpinner, MAX_FRACTION_DIGITS, MOD, Markdown, MediaUploadField, MediaUploadGrid, MetricBar, MilestoneTimeline, NativeSelect, NumericKeypad, PageHeader, Pagination, Paragraph, Radio_default, Result, SHIFT, SearchableSelect, Segmented, Select_default, SidebarActionButton, SidebarGroupLabel, SidebarNavItem, Skeleton, Sparkline, Stack, StatCard, Statistic, StatusBadge, StatusBadgeProvider, Stepper, Switch_default, Tabs, TagInput, Text, Textarea_default, TileButton_default, TimePicker_default, Title, Tooltip, TopNav, appendKey, applyThemePrefs, backspace, firstEnabledIndex, formatDate, fromKey, inputClasses, isMac, isSeverityTone, lastEnabledIndex, matchTypeahead, mediaFileName, nextEnabledIndex, resolveTheme, severityOf, tabButtonId, tabPanelId, toISODate, toKey, useClickOutside, useTheme };
6549
- //# sourceMappingURL=chunk-VDKHMCWT.js.map
6550
- //# sourceMappingURL=chunk-VDKHMCWT.js.map
6558
+ //# sourceMappingURL=chunk-YZVJCHXV.js.map
6559
+ //# sourceMappingURL=chunk-YZVJCHXV.js.map