@burdenoff/fe-libs 2026.527.2 → 2026.527.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 (78) hide show
  1. package/dist/button/Button.js +18 -16
  2. package/dist/chrome/AccountSwitcher.js +10 -7
  3. package/dist/chrome/AutoBreadcrumbs.js +2 -0
  4. package/dist/chrome/Breadcrumbs.js +2 -0
  5. package/dist/chrome/CommandPalette.js +5 -3
  6. package/dist/chrome/ContextSwitcher.js +12 -11
  7. package/dist/chrome/DynamicFooter.js +7 -7
  8. package/dist/chrome/Footer.js +5 -5
  9. package/dist/chrome/GeographySwitcher.js +3 -3
  10. package/dist/chrome/GlobalSearch.js +18 -9
  11. package/dist/chrome/HeaderBar.js +6 -1
  12. package/dist/chrome/LanguagePickerSheet.js +1 -1
  13. package/dist/chrome/LanguageSwitcher.js +2 -2
  14. package/dist/chrome/NotificationCenter.js +19 -10
  15. package/dist/chrome/PanelTabs.js +7 -4
  16. package/dist/chrome/PluginContextMenuTarget.js +1 -1
  17. package/dist/chrome/ProductPickerSheet.js +4 -4
  18. package/dist/chrome/ProductSideNav.js +1 -1
  19. package/dist/chrome/ProductSwitcher.js +3 -3
  20. package/dist/chrome/ProfileSwitcher.js +13 -8
  21. package/dist/chrome/ShortcutHelpDialog.js +2 -1
  22. package/dist/chrome/SideNavigation.js +7 -3
  23. package/dist/chrome/Sidebar.js +1 -0
  24. package/dist/form/Checkbox.js +17 -15
  25. package/dist/form/FormDescription.js +9 -10
  26. package/dist/form/FormField.js +11 -12
  27. package/dist/form/FormLabel.js +13 -13
  28. package/dist/form/FormMessage.js +10 -11
  29. package/dist/form/Input.js +11 -10
  30. package/dist/form/Radio.js +25 -21
  31. package/dist/form/Select.js +81 -66
  32. package/dist/form/Textarea.js +10 -9
  33. package/dist/shared/components/AccessDenied.js +8 -4
  34. package/dist/shared/components/AppErrorBoundary.js +2 -0
  35. package/dist/shared/components/ContextConversationWidget.js +15 -15
  36. package/dist/shared/components/ErrorFallback.js +3 -0
  37. package/dist/shared/components/PWAInstallBanner.js +8 -4
  38. package/dist/shared/components/RequireAuth.js +4 -4
  39. package/dist/shared/components/SSORedirectGuard.js +1 -1
  40. package/dist/shared/feature-flags/FeatureFlagProvider.js +21 -21
  41. package/dist/shared/geography/GeographyProvider.js +20 -20
  42. package/dist/shared/graphql/GatewayContext.js +1 -1
  43. package/dist/shared/motion/MotionList.js +1 -1
  44. package/dist/shared/pages/AiPage.js +3 -3
  45. package/dist/shared/pages/SearchPage.js +38 -33
  46. package/dist/shared/plugins/PluginRuntimeProvider.js +1 -1
  47. package/dist/shared/providers/shell/ActiveContextProvider.js +12 -12
  48. package/dist/shared/providers/shell/AppShellContext.js +1 -1
  49. package/dist/shared/providers/shell/AuthProvider.js +17 -17
  50. package/dist/shared/providers/shell/AuthTokenProvider.js +6 -6
  51. package/dist/shared/providers/shell/ContextManagerProvider.js +1 -1
  52. package/dist/shared/providers/shell/FeatureFlagsProvider.js +5 -5
  53. package/dist/shared/providers/shell/GlobalUiProvider.js +17 -17
  54. package/dist/shared/providers/shell/I18nProvider.js +15 -15
  55. package/dist/shared/providers/shell/PageConversationContextProvider.js +14 -14
  56. package/dist/shared/providers/shell/PermissionProvider.js +16 -16
  57. package/dist/shared/providers/shell/ShellUiProvider.js +13 -13
  58. package/dist/shared/providers/shell/ThemeProvider.js +9 -9
  59. package/dist/shared/tours/TourPlayer.js +1 -0
  60. package/dist/shared/tours/TourPlayerProvider.js +1 -1
  61. package/dist/shared/tours/TourTooltip.js +3 -0
  62. package/dist/shared/tours/TourTrigger.js +12 -9
  63. package/dist/shared/tours/ToursContext.js +11 -11
  64. package/dist/shared-events.js +3 -3
  65. package/dist/shared-hooks.js +1 -1
  66. package/dist/storage/SaveToFilesButton.js +3 -3
  67. package/dist/storage/SaveToFilesDialog.js +1 -1
  68. package/dist/tag/TagBadge.js +1 -1
  69. package/dist/tag/TagsWidget.js +6 -6
  70. package/dist/ui/card.js +44 -39
  71. package/dist/ui/dropdown-menu.js +82 -66
  72. package/dist/ui/input.js +10 -10
  73. package/dist/ui/label.js +13 -11
  74. package/dist/ui/select.js +80 -66
  75. package/dist/ui/table.js +61 -54
  76. package/dist/ui/textarea.js +9 -9
  77. package/dist/ui/tooltip.js +13 -11
  78. package/package.json +1 -1
@@ -161,7 +161,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
161
161
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), p || t(i), f && r(f));
162
162
  },
163
163
  children: [
164
- !p && /* @__PURE__ */ a("div", { className: "absolute top-3 left-1.5 w-2 h-2 rounded-full bg-action-primary-bg" }),
164
+ !p && /* @__PURE__ */ a("div", { className: "absolute top-3 left-1.5 size-2 rounded-full bg-action-primary-bg" }),
165
165
  /* @__PURE__ */ a("div", {
166
166
  className: "flex-shrink-0 mt-0.5 ml-2",
167
167
  children: /* @__PURE__ */ a("span", {
@@ -181,6 +181,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
181
181
  }), /* @__PURE__ */ o("div", {
182
182
  className: "flex-shrink-0 flex items-center gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity",
183
183
  children: [!p && /* @__PURE__ */ a("button", {
184
+ type: "button",
184
185
  onClick: (e) => {
185
186
  e.stopPropagation(), t(i);
186
187
  },
@@ -188,7 +189,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
188
189
  title: "Mark as read",
189
190
  "aria-label": "Mark as read",
190
191
  children: /* @__PURE__ */ a("svg", {
191
- className: "w-3.5 h-3.5",
192
+ className: "size-3.5",
192
193
  fill: "none",
193
194
  stroke: "currentColor",
194
195
  viewBox: "0 0 24 24",
@@ -200,6 +201,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
200
201
  })
201
202
  })
202
203
  }), /* @__PURE__ */ a("button", {
204
+ type: "button",
203
205
  onClick: (e) => {
204
206
  e.stopPropagation(), n(i);
205
207
  },
@@ -207,7 +209,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
207
209
  title: "Dismiss",
208
210
  "aria-label": "Dismiss notification",
209
211
  children: /* @__PURE__ */ a("svg", {
210
- className: "w-3.5 h-3.5",
212
+ className: "size-3.5",
211
213
  fill: "none",
212
214
  stroke: "currentColor",
213
215
  viewBox: "0 0 24 24",
@@ -241,13 +243,14 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
241
243
  children: y(m)
242
244
  }),
243
245
  f && /* @__PURE__ */ o("button", {
246
+ type: "button",
244
247
  onClick: (e) => {
245
248
  e.stopPropagation(), r(f);
246
249
  },
247
250
  className: "inline-flex items-center gap-0.5 text-[10px] text-action-primary-bg hover:underline",
248
251
  "aria-label": "Open link",
249
252
  children: ["Open", /* @__PURE__ */ a("svg", {
250
- className: "w-2.5 h-2.5",
253
+ className: "size-2.5",
251
254
  fill: "none",
252
255
  stroke: "currentColor",
253
256
  viewBox: "0 0 24 24",
@@ -267,7 +270,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
267
270
  });
268
271
  }, b = () => /* @__PURE__ */ o("div", {
269
272
  className: "flex gap-3 p-3 rounded-card border border-border-subtle animate-pulse",
270
- children: [/* @__PURE__ */ a("div", { className: "w-6 h-6 rounded bg-bg-muted flex-shrink-0" }), /* @__PURE__ */ o("div", {
273
+ children: [/* @__PURE__ */ a("div", { className: "size-6 rounded bg-bg-muted flex-shrink-0" }), /* @__PURE__ */ o("div", {
271
274
  className: "flex-1 space-y-2",
272
275
  children: [
273
276
  /* @__PURE__ */ a("div", { className: "h-4 bg-bg-muted rounded w-3/4" }),
@@ -444,11 +447,12 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
444
447
  className: "flex items-center gap-2",
445
448
  children: [
446
449
  T && /* @__PURE__ */ a("button", {
450
+ type: "button",
447
451
  onClick: () => w(!1),
448
452
  className: "p-1 rounded-button hover:bg-action-ghost-bg-hover text-text-primary",
449
453
  "aria-label": "Close",
450
454
  children: /* @__PURE__ */ a("svg", {
451
- className: "w-5 h-5",
455
+ className: "size-5",
452
456
  fill: "none",
453
457
  stroke: "currentColor",
454
458
  viewBox: "0 0 24 24",
@@ -461,7 +465,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
461
465
  })
462
466
  }),
463
467
  /* @__PURE__ */ a("svg", {
464
- className: "w-5 h-5 text-text-primary",
468
+ className: "size-5 text-text-primary",
465
469
  fill: "none",
466
470
  stroke: "currentColor",
467
471
  viewBox: "0 0 24 24",
@@ -484,15 +488,17 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
484
488
  }), /* @__PURE__ */ o("div", {
485
489
  className: "flex items-center gap-2",
486
490
  children: [k > 0 && /* @__PURE__ */ a("button", {
491
+ type: "button",
487
492
  onClick: se,
488
493
  className: "text-xs text-action-primary-bg hover:underline font-medium",
489
494
  children: "Mark all read"
490
495
  }), !T && /* @__PURE__ */ a("button", {
496
+ type: "button",
491
497
  onClick: () => w(!1),
492
498
  className: "p-1 rounded-button hover:bg-action-ghost-bg-hover text-text-tertiary",
493
499
  "aria-label": "Close panel",
494
500
  children: /* @__PURE__ */ a("svg", {
495
- className: "w-4 h-4",
501
+ className: "size-4",
496
502
  fill: "none",
497
503
  stroke: "currentColor",
498
504
  viewBox: "0 0 24 24",
@@ -581,7 +587,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
581
587
  className: "flex flex-col items-center justify-center p-8 text-center",
582
588
  children: [
583
589
  /* @__PURE__ */ a("svg", {
584
- className: "w-10 h-10 text-status-error-text mb-3",
590
+ className: "size-10 text-status-error-text mb-3",
585
591
  fill: "none",
586
592
  stroke: "currentColor",
587
593
  viewBox: "0 0 24 24",
@@ -597,6 +603,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
597
603
  children: "Failed to load notifications"
598
604
  }),
599
605
  /* @__PURE__ */ a("button", {
606
+ type: "button",
600
607
  onClick: Y,
601
608
  className: "text-xs text-action-primary-bg hover:underline font-medium",
602
609
  children: "Try again"
@@ -606,7 +613,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
606
613
  className: "flex flex-col items-center justify-center p-8 text-center",
607
614
  children: [
608
615
  /* @__PURE__ */ a("svg", {
609
- className: "w-12 h-12 text-text-tertiary mb-3",
616
+ className: "size-12 text-text-tertiary mb-3",
610
617
  fill: "none",
611
618
  stroke: "currentColor",
612
619
  viewBox: "0 0 24 24",
@@ -648,6 +655,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
648
655
  N === 1 ? "" : "s"
649
656
  ]
650
657
  }), h && /* @__PURE__ */ a("button", {
658
+ type: "button",
651
659
  onClick: ue,
652
660
  className: "text-xs text-action-primary-bg hover:underline font-medium",
653
661
  children: "View All"
@@ -661,6 +669,7 @@ var te = ({ notification: e, onMarkAsRead: t, onDelete: n, onRedirect: r }) => {
661
669
  className: "relative",
662
670
  children: [
663
671
  /* @__PURE__ */ o("button", {
672
+ type: "button",
664
673
  onClick: ae,
665
674
  className: "relative p-2 hover:bg-action-ghost-bg-hover rounded-button text-text-primary",
666
675
  "aria-label": `Notifications${k > 0 ? ` (${k} unread)` : ""}`,
@@ -10,29 +10,32 @@ var o = ({ tabs: o, activeTabId: s, onTabClick: c, onClose: l, onMinimize: u, on
10
10
  return /* @__PURE__ */ a("button", {
11
11
  onClick: () => c(e.id),
12
12
  className: `flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-t transition-colors ${e.id === s ? "bg-bg-surface text-text-primary border-b-2 border-action-primary-bg" : "text-text-secondary hover:text-text-primary hover:bg-bg-surface-hover"}`,
13
- children: [t && /* @__PURE__ */ i(t, { className: "w-3.5 h-3.5" }), /* @__PURE__ */ i("span", { children: e.title })]
13
+ children: [t && /* @__PURE__ */ i(t, { className: "size-3.5" }), /* @__PURE__ */ i("span", { children: e.title })]
14
14
  }, e.id);
15
15
  })
16
16
  }), /* @__PURE__ */ a("div", {
17
17
  className: "flex items-center gap-0.5",
18
18
  children: [
19
19
  u && /* @__PURE__ */ i("button", {
20
+ type: "button",
20
21
  onClick: u,
21
22
  className: "p-1 rounded text-text-tertiary hover:text-text-primary hover:bg-bg-surface-hover transition-colors",
22
23
  "aria-label": "Minimize panel",
23
- children: /* @__PURE__ */ i(n, { className: "w-3.5 h-3.5" })
24
+ children: /* @__PURE__ */ i(n, { className: "size-3.5" })
24
25
  }),
25
26
  d && /* @__PURE__ */ i("button", {
27
+ type: "button",
26
28
  onClick: d,
27
29
  className: "p-1 rounded text-text-tertiary hover:text-text-primary hover:bg-bg-surface-hover transition-colors",
28
30
  "aria-label": f ? "Restore panel" : "Maximize panel",
29
- children: i(f ? t : e, { className: "w-3.5 h-3.5" })
31
+ children: i(f ? t : e, { className: "size-3.5" })
30
32
  }),
31
33
  /* @__PURE__ */ i("button", {
34
+ type: "button",
32
35
  onClick: l,
33
36
  className: "p-1 rounded text-text-tertiary hover:text-text-primary hover:bg-bg-surface-hover transition-colors",
34
37
  "aria-label": "Close panel",
35
- children: /* @__PURE__ */ i(r, { className: "w-3.5 h-3.5" })
38
+ children: /* @__PURE__ */ i(r, { className: "size-3.5" })
36
39
  })
37
40
  ]
38
41
  })]
@@ -57,7 +57,7 @@ var o = ({ targetId: o, children: s, className: c }) => {
57
57
  role: "menuitem",
58
58
  children: [/* @__PURE__ */ a("span", {
59
59
  className: "flex items-center gap-2",
60
- children: [t ? /* @__PURE__ */ i(t, { className: "h-4 w-4" }) : null, /* @__PURE__ */ i("span", { children: e.label })]
60
+ children: [t ? /* @__PURE__ */ i(t, { className: "size-4" }) : null, /* @__PURE__ */ i("span", { children: e.label })]
61
61
  }), e.shortcut ? /* @__PURE__ */ i("span", {
62
62
  className: "text-xs text-text-secondary",
63
63
  children: e.shortcut
@@ -24,10 +24,10 @@ var o = ({ open: o, onOpenChange: s, products: c, currentProductId: l, onProduct
24
24
  className: `w-full flex items-center gap-4 px-4 py-3.5 text-body-sm transition-colors ${e.id === l ? "bg-action-ghost-bg-hover" : "hover:bg-action-ghost-bg-hover"}`,
25
25
  children: [
26
26
  e.icon ? /* @__PURE__ */ i("div", {
27
- className: "w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center flex-shrink-0",
27
+ className: "size-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center flex-shrink-0",
28
28
  children: e.icon
29
29
  }) : /* @__PURE__ */ i("div", {
30
- className: "w-10 h-10 rounded-lg bg-action-primary-bg flex items-center justify-center flex-shrink-0",
30
+ className: "size-10 rounded-lg bg-action-primary-bg flex items-center justify-center flex-shrink-0",
31
31
  children: /* @__PURE__ */ i("span", {
32
32
  className: "text-action-primary-text font-bold text-sm",
33
33
  children: e.name.substring(0, 2).toUpperCase()
@@ -44,7 +44,7 @@ var o = ({ open: o, onOpenChange: s, products: c, currentProductId: l, onProduct
44
44
  })]
45
45
  }),
46
46
  e.id === l && /* @__PURE__ */ i("svg", {
47
- className: "w-5 h-5 text-action-primary-bg flex-shrink-0",
47
+ className: "size-5 text-action-primary-bg flex-shrink-0",
48
48
  fill: "currentColor",
49
49
  viewBox: "0 0 20 20",
50
50
  children: /* @__PURE__ */ i("path", {
@@ -54,7 +54,7 @@ var o = ({ open: o, onOpenChange: s, products: c, currentProductId: l, onProduct
54
54
  })
55
55
  }),
56
56
  e.url && e.id !== l && /* @__PURE__ */ i("svg", {
57
- className: "w-4 h-4 text-text-tertiary flex-shrink-0",
57
+ className: "size-4 text-text-tertiary flex-shrink-0",
58
58
  fill: "none",
59
59
  stroke: "currentColor",
60
60
  viewBox: "0 0 24 24",
@@ -20,7 +20,7 @@ function c({ logo: c, appName: l, groupOrder: u, groupLabels: d, mobileActions:
20
20
  },
21
21
  "aria-label": m,
22
22
  children: [/* @__PURE__ */ i("div", {
23
- className: "w-8 h-8 bg-action-primary-bg rounded-md flex items-center justify-center flex-shrink-0",
23
+ className: "size-8 bg-action-primary-bg rounded-md flex items-center justify-center flex-shrink-0",
24
24
  children: /* @__PURE__ */ i("span", {
25
25
  className: "text-action-primary-text font-bold text-sm",
26
26
  children: c
@@ -22,7 +22,7 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
22
22
  "aria-expanded": l,
23
23
  children: [
24
24
  /* @__PURE__ */ r("div", {
25
- className: "w-6 h-6 rounded flex items-center justify-center flex-shrink-0 text-white font-semibold text-xs",
25
+ className: "size-6 rounded flex items-center justify-center flex-shrink-0 text-white font-semibold text-xs",
26
26
  style: { backgroundColor: f?.color || "#3b82f6" },
27
27
  children: f?.icon || f?.name.charAt(0)
28
28
  }),
@@ -61,7 +61,7 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
61
61
  className: `w-full flex items-center gap-3 px-4 py-2.5 text-body-sm transition-colors ${e.comingSoon ? "text-text-tertiary cursor-not-allowed opacity-60" : e.id === o ? "bg-action-ghost-bg-hover text-text-primary font-medium" : "text-text-primary hover:bg-action-ghost-bg-hover"}`,
62
62
  children: [
63
63
  /* @__PURE__ */ r("div", {
64
- className: "w-8 h-8 rounded flex items-center justify-center flex-shrink-0 text-white font-semibold text-sm",
64
+ className: "size-8 rounded flex items-center justify-center flex-shrink-0 text-white font-semibold text-sm",
65
65
  style: { backgroundColor: e.color || "#3b82f6" },
66
66
  children: e.icon || e.name.charAt(0)
67
67
  }),
@@ -73,7 +73,7 @@ var a = ({ products: a, currentProductId: o, onProductChange: s, compact: c = !1
73
73
  className: "text-body-xs px-2 py-0.5 rounded-full bg-bg-sunken text-text-secondary border border-border-subtle",
74
74
  children: "Coming soon"
75
75
  }) : e.id === o && /* @__PURE__ */ r("svg", {
76
- className: "w-5 h-5 text-action-primary-text",
76
+ className: "size-5 text-action-primary-text",
77
77
  fill: "currentColor",
78
78
  viewBox: "0 0 20 20",
79
79
  children: /* @__PURE__ */ r("path", {
@@ -20,7 +20,7 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
20
20
  "aria-expanded": h,
21
21
  children: [
22
22
  /* @__PURE__ */ i("div", {
23
- className: "w-8 h-8 rounded-full bg-action-primary-bg flex items-center justify-center flex-shrink-0",
23
+ className: "size-8 rounded-full bg-action-primary-bg flex items-center justify-center flex-shrink-0",
24
24
  children: o.avatar ? /* @__PURE__ */ i("img", {
25
25
  src: o.avatar,
26
26
  alt: `${o.firstName} ${o.lastName}`,
@@ -39,7 +39,7 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
39
39
  ]
40
40
  }),
41
41
  !m && y && /* @__PURE__ */ i("span", {
42
- className: "text-xs bg-action-primary-bg text-action-primary-text rounded-full w-5 h-5 flex items-center justify-center font-semibold",
42
+ className: "text-xs bg-action-primary-bg text-action-primary-text rounded-full size-5 flex items-center justify-center font-semibold",
43
43
  children: s.length
44
44
  }),
45
45
  !m && /* @__PURE__ */ i("svg", {
@@ -62,7 +62,7 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
62
62
  className: "px-6 py-4 text-center border-b border-border-subtle",
63
63
  children: [
64
64
  /* @__PURE__ */ i("div", {
65
- className: "w-20 h-20 mx-auto mb-3 rounded-full bg-action-primary-bg flex items-center justify-center",
65
+ className: "size-20 mx-auto mb-3 rounded-full bg-action-primary-bg flex items-center justify-center",
66
66
  children: o.avatar ? /* @__PURE__ */ i("img", {
67
67
  src: o.avatar,
68
68
  alt: o.firstName,
@@ -103,6 +103,7 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
103
103
  l && /* @__PURE__ */ i("div", {
104
104
  className: "px-4 py-2",
105
105
  children: /* @__PURE__ */ i("button", {
106
+ type: "button",
106
107
  onClick: () => {
107
108
  l(), g(!1);
108
109
  },
@@ -126,7 +127,7 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
126
127
  className: "flex items-center gap-3",
127
128
  children: [
128
129
  /* @__PURE__ */ i("div", {
129
- className: "w-10 h-10 rounded-full bg-action-primary-bg flex items-center justify-center flex-shrink-0",
130
+ className: "size-10 rounded-full bg-action-primary-bg flex items-center justify-center flex-shrink-0",
130
131
  children: e.avatar ? /* @__PURE__ */ i("img", {
131
132
  src: e.avatar,
132
133
  alt: e.name,
@@ -137,6 +138,7 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
137
138
  })
138
139
  }),
139
140
  /* @__PURE__ */ a("button", {
141
+ type: "button",
140
142
  onClick: () => {
141
143
  d && (d(e), g(!1));
142
144
  },
@@ -154,13 +156,14 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
154
156
  })]
155
157
  }),
156
158
  p && /* @__PURE__ */ i("button", {
159
+ type: "button",
157
160
  onClick: (t) => {
158
161
  t.stopPropagation(), p(e.id);
159
162
  },
160
- className: "w-6 h-6 flex items-center justify-center rounded-full hover:bg-status-error-bg/20 text-text-tertiary hover:text-status-error-text transition-colors opacity-0 group-hover:opacity-100",
163
+ className: "size-6 flex items-center justify-center rounded-full hover:bg-status-error-bg/20 text-text-tertiary hover:text-status-error-text transition-colors opacity-0 group-hover:opacity-100",
161
164
  "aria-label": "Remove account",
162
165
  children: /* @__PURE__ */ i("svg", {
163
- className: "w-4 h-4",
166
+ className: "size-4",
164
167
  fill: "none",
165
168
  stroke: "currentColor",
166
169
  viewBox: "0 0 24 24",
@@ -182,12 +185,13 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
182
185
  children: /* @__PURE__ */ a("div", {
183
186
  className: "grid grid-cols-2 gap-2",
184
187
  children: [f && /* @__PURE__ */ a("button", {
188
+ type: "button",
185
189
  onClick: () => {
186
190
  f(), g(!1);
187
191
  },
188
192
  className: "flex items-center justify-center gap-2 px-3 py-2.5 text-body-sm font-medium text-text-primary bg-action-ghost-bg hover:bg-action-ghost-bg-hover rounded-button border border-border-default transition-colors",
189
193
  children: [/* @__PURE__ */ i("svg", {
190
- className: "w-4 h-4",
194
+ className: "size-4",
191
195
  fill: "none",
192
196
  stroke: "currentColor",
193
197
  viewBox: "0 0 24 24",
@@ -199,12 +203,13 @@ var o = ({ user: o, accounts: s = [], activeAccountId: c, onViewProfile: l, onLo
199
203
  })
200
204
  }), /* @__PURE__ */ i("span", { children: "Add account" })]
201
205
  }), u && /* @__PURE__ */ a("button", {
206
+ type: "button",
202
207
  onClick: () => {
203
208
  u(), g(!1);
204
209
  },
205
210
  className: "flex items-center justify-center gap-2 px-3 py-2.5 text-body-sm font-medium text-text-primary bg-action-ghost-bg hover:bg-action-ghost-bg-hover rounded-button border border-border-default transition-colors",
206
211
  children: [/* @__PURE__ */ i("svg", {
207
- className: "w-4 h-4",
212
+ className: "size-4",
208
213
  fill: "none",
209
214
  stroke: "currentColor",
210
215
  viewBox: "0 0 24 24",
@@ -56,10 +56,11 @@ var s = ({ isOpen: s, onClose: c, shortcuts: l }) => {
56
56
  className: "text-text-secondary text-sm mt-1",
57
57
  children: "Quickly navigate and perform actions using your keyboard"
58
58
  })] }), /* @__PURE__ */ a("button", {
59
+ type: "button",
59
60
  onClick: c,
60
61
  className: "p-2 hover:bg-action-ghost-bg-hover rounded-button text-text-secondary transition-colors",
61
62
  "aria-label": "Close",
62
- children: /* @__PURE__ */ a(i, { className: "w-5 h-5" })
63
+ children: /* @__PURE__ */ a(i, { className: "size-5" })
63
64
  })]
64
65
  }),
65
66
  /* @__PURE__ */ a("div", {
@@ -22,6 +22,7 @@ var p = (e, t) => f(e, t) ? !0 : e.children ? e.children.some((e) => p(e, t)) :
22
22
  return /* @__PURE__ */ u("li", { children: [/* @__PURE__ */ l("div", {
23
23
  className: "relative",
24
24
  children: /* @__PURE__ */ u("button", {
25
+ type: "button",
25
26
  onClick: () => {
26
27
  if (c && t === 0 && d) {
27
28
  o(e.homePath || e.children?.[0]?.path || e.path);
@@ -169,11 +170,12 @@ var p = (e, t) => f(e, t) ? !0 : e.children ? e.children.some((e) => p(e, t)) :
169
170
  !p && _ && /* @__PURE__ */ l("div", {
170
171
  className: "md:hidden flex justify-end px-2 pt-2",
171
172
  children: /* @__PURE__ */ l("button", {
173
+ type: "button",
172
174
  onClick: _,
173
175
  className: "p-2 rounded-button hover:bg-action-ghost-bg-hover text-text-secondary hover:text-text-primary transition-colors",
174
176
  "aria-label": "Close sidebar",
175
177
  children: /* @__PURE__ */ l("svg", {
176
- className: "w-5 h-5",
178
+ className: "size-5",
177
179
  fill: "none",
178
180
  stroke: "currentColor",
179
181
  viewBox: "0 0 24 24",
@@ -192,6 +194,7 @@ var p = (e, t) => f(e, t) ? !0 : e.children ? e.children.some((e) => p(e, t)) :
192
194
  className: T.size > 0 && !p ? "mr-8" : "",
193
195
  children: y
194
196
  }), !p && T.size > 0 && /* @__PURE__ */ l("button", {
197
+ type: "button",
195
198
  onClick: () => {
196
199
  E(/* @__PURE__ */ new Set());
197
200
  },
@@ -199,7 +202,7 @@ var p = (e, t) => f(e, t) ? !0 : e.children ? e.children.some((e) => p(e, t)) :
199
202
  title: "Collapse all",
200
203
  "aria-label": "Collapse all menu items",
201
204
  children: /* @__PURE__ */ l("svg", {
202
- className: "w-4 h-4",
205
+ className: "size-4",
203
206
  fill: "none",
204
207
  stroke: "currentColor",
205
208
  viewBox: "0 0 24 24",
@@ -283,7 +286,7 @@ var p = (e, t) => f(e, t) ? !0 : e.children ? e.children.some((e) => p(e, t)) :
283
286
  "aria-label": e.label,
284
287
  title: e.label,
285
288
  children: /* @__PURE__ */ l("span", {
286
- className: "w-5 h-5",
289
+ className: "size-5",
287
290
  children: e.icon
288
291
  })
289
292
  }, e.id))
@@ -292,6 +295,7 @@ var p = (e, t) => f(e, t) ? !0 : e.children ? e.children.some((e) => p(e, t)) :
292
295
  _ && /* @__PURE__ */ l("div", {
293
296
  className: `hidden md:block py-4 border-t border-border-subtle ${p ? "px-2" : "px-card-padding"}`,
294
297
  children: /* @__PURE__ */ u("button", {
298
+ type: "button",
295
299
  onClick: _,
296
300
  className: `w-full flex items-center gap-icon-gap py-2 rounded-button text-text-secondary hover:bg-action-ghost-bg-hover hover:text-text-primary transition-colors ${p ? "justify-center px-2" : "px-card-padding"}`,
297
301
  "aria-label": p ? "Expand sidebar" : "Collapse sidebar",
@@ -26,6 +26,7 @@ var a = ({ sections: a, isCollapsed: o = !1, onToggleCollapse: s, header: c, foo
26
26
  children: [!o && /* @__PURE__ */ r("div", {
27
27
  className: "px-card-padding mb-2",
28
28
  children: t.collapsible ? /* @__PURE__ */ i("button", {
29
+ type: "button",
29
30
  onClick: () => h(t.title),
30
31
  className: "flex items-center justify-between w-full text-text-tertiary text-xs font-semibold uppercase tracking-wider hover:text-text-secondary transition-colors",
31
32
  "aria-expanded": !a,
@@ -1,18 +1,20 @@
1
1
  import { cn as e } from "../shared-utils.js";
2
- import * as t from "react";
3
- import { Check as n } from "lucide-react";
4
- import { jsx as r } from "react/jsx-runtime";
5
- import * as i from "@radix-ui/react-checkbox";
2
+ import "react";
3
+ import { Check as t } from "lucide-react";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import * as r from "@radix-ui/react-checkbox";
6
6
  //#region src/form/Checkbox.tsx
7
- var a = t.forwardRef(({ className: t, ...a }, o) => /* @__PURE__ */ r(i.Root, {
8
- ref: o,
9
- className: e("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", "disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", t),
10
- ...a,
11
- children: /* @__PURE__ */ r(i.Indicator, {
12
- className: e("flex items-center justify-center text-current"),
13
- children: /* @__PURE__ */ r(n, { className: "h-4 w-4" })
14
- })
15
- }));
16
- a.displayName = i.Root.displayName;
7
+ function i({ ref: i, className: a, ...o }) {
8
+ return /* @__PURE__ */ n(r.Root, {
9
+ ref: i,
10
+ className: e("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", "disabled:cursor-not-allowed disabled:opacity-50", "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", a),
11
+ ...o,
12
+ children: /* @__PURE__ */ n(r.Indicator, {
13
+ className: e("flex items-center justify-center text-current"),
14
+ children: /* @__PURE__ */ n(t, { className: "size-4" })
15
+ })
16
+ });
17
+ }
18
+ i.displayName = r.Root.displayName;
17
19
  //#endregion
18
- export { a as Checkbox };
20
+ export { i as Checkbox };
@@ -1,17 +1,16 @@
1
1
  import { cn as e } from "../shared-utils.js";
2
2
  import { useFormField as t } from "./FormField.js";
3
- import * as n from "react";
4
- import { jsx as r } from "react/jsx-runtime";
3
+ import "react";
4
+ import { jsx as n } from "react/jsx-runtime";
5
5
  //#region src/form/FormDescription.tsx
6
- var i = n.forwardRef(({ className: n, ...i }, a) => {
6
+ function r({ ref: r, className: i, ...a }) {
7
7
  let { formDescriptionId: o } = t();
8
- return /* @__PURE__ */ r("p", {
9
- ref: a,
8
+ return /* @__PURE__ */ n("p", {
9
+ ref: r,
10
10
  id: o,
11
- className: e("text-sm text-muted-foreground", n),
12
- ...i
11
+ className: e("text-sm text-muted-foreground", i),
12
+ ...a
13
13
  });
14
- });
15
- i.displayName = "FormDescription";
14
+ }
16
15
  //#endregion
17
- export { i as FormDescription };
16
+ export { r as FormDescription };
@@ -5,7 +5,7 @@ import { Controller as r, useFormContext as i } from "react-hook-form";
5
5
  //#region src/form/FormField.tsx
6
6
  var a = t.createContext({});
7
7
  function o() {
8
- let e = t.useContext(a), n = t.useContext(c), { getFieldState: r, formState: o } = i(), s = r(e.name, o);
8
+ let e = t.use(a), n = t.use(c), { getFieldState: r, formState: o } = i(), s = r(e.name, o);
9
9
  if (!e) throw Error("useFormField must be used within a FormField");
10
10
  let { id: l } = n;
11
11
  return {
@@ -23,28 +23,27 @@ function s({ ...e }) {
23
23
  children: /* @__PURE__ */ n(r, { ...e })
24
24
  });
25
25
  }
26
- var c = t.createContext({}), l = t.forwardRef(({ className: r, ...i }, a) => {
26
+ var c = t.createContext({});
27
+ function l({ ref: r, className: i, ...a }) {
27
28
  let o = t.useId();
28
29
  return /* @__PURE__ */ n(c.Provider, {
29
30
  value: { id: o },
30
31
  children: /* @__PURE__ */ n("div", {
31
- ref: a,
32
- className: e("space-y-2", r),
33
- ...i
32
+ ref: r,
33
+ className: e("space-y-2", i),
34
+ ...a
34
35
  })
35
36
  });
36
- });
37
- l.displayName = "FormItem";
38
- var u = t.forwardRef(({ ...e }, t) => {
37
+ }
38
+ function u({ ref: e, ...t }) {
39
39
  let { error: r, formItemId: i, formDescriptionId: a, formMessageId: s } = o();
40
40
  return /* @__PURE__ */ n("div", {
41
- ref: t,
41
+ ref: e,
42
42
  id: i,
43
43
  "aria-describedby": r ? `${a} ${s}` : `${a}`,
44
44
  "aria-invalid": !!r,
45
- ...e
45
+ ...t
46
46
  });
47
- });
48
- u.displayName = "FormControl";
47
+ }
49
48
  //#endregion
50
49
  export { u as FormControl, s as FormField, l as FormItem, o as useFormField };
@@ -1,24 +1,24 @@
1
1
  import { cn as e } from "../shared-utils.js";
2
2
  import { useFormField as t } from "./FormField.js";
3
- import * as n from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { cva as a } from "class-variance-authority";
6
- import * as o from "@radix-ui/react-label";
3
+ import "react";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ import { cva as i } from "class-variance-authority";
6
+ import * as a from "@radix-ui/react-label";
7
7
  //#region src/form/FormLabel.tsx
8
- var s = a("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), c = n.forwardRef(({ className: n, required: a, children: c, ...l }, u) => {
8
+ var o = i("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70");
9
+ function s({ ref: i, className: s, required: c, children: l, ...u }) {
9
10
  let { error: d, formItemId: f } = t();
10
- return /* @__PURE__ */ i(o.Root, {
11
- ref: u,
12
- className: e(s(), d && "text-destructive", n),
11
+ return /* @__PURE__ */ r(a.Root, {
12
+ ref: i,
13
+ className: e(o(), d && "text-destructive", s),
13
14
  htmlFor: f,
14
- ...l,
15
- children: [c, a && /* @__PURE__ */ r("span", {
15
+ ...u,
16
+ children: [l, c && /* @__PURE__ */ n("span", {
16
17
  className: "ml-1 text-destructive",
17
18
  "aria-label": "required",
18
19
  children: "*"
19
20
  })]
20
21
  });
21
- });
22
- c.displayName = "FormLabel";
22
+ }
23
23
  //#endregion
24
- export { c as FormLabel };
24
+ export { s as FormLabel };
@@ -1,20 +1,19 @@
1
1
  import { cn as e } from "../shared-utils.js";
2
2
  import { useFormField as t } from "./FormField.js";
3
- import * as n from "react";
4
- import { jsx as r } from "react/jsx-runtime";
3
+ import "react";
4
+ import { jsx as n } from "react/jsx-runtime";
5
5
  //#region src/form/FormMessage.tsx
6
- var i = n.forwardRef(({ className: n, children: i, ...a }, o) => {
7
- let { error: s, formMessageId: c } = t(), l = s ? String(s?.message) : i;
8
- return l ? /* @__PURE__ */ r("p", {
9
- ref: o,
6
+ function r({ ref: r, className: i, children: a, ...o }) {
7
+ let { error: s, formMessageId: c } = t(), l = s ? String(s?.message) : a;
8
+ return l ? /* @__PURE__ */ n("p", {
9
+ ref: r,
10
10
  id: c,
11
- className: e("text-sm font-medium text-destructive", n),
11
+ className: e("text-sm font-medium text-destructive", i),
12
12
  role: "alert",
13
13
  "aria-live": "polite",
14
- ...a,
14
+ ...o,
15
15
  children: l
16
16
  }) : null;
17
- });
18
- i.displayName = "FormMessage";
17
+ }
19
18
  //#endregion
20
- export { i as FormMessage };
19
+ export { r as FormMessage };