@burdenoff/fe-libs 2026.805.2 → 2026.805.4

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.
@@ -1,67 +1,68 @@
1
- import { TourListItemDesktop as e } from "./TourListItemDesktop.js";
2
- import { forwardRef as t } from "react";
3
- import { ExternalLink as n, Sparkles as r } from "lucide-react";
4
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
1
+ import { useShellLabel as e } from "../../providers/shell/useShellLabel.js";
2
+ import { TourListItemDesktop as t } from "./TourListItemDesktop.js";
3
+ import { forwardRef as n } from "react";
4
+ import { ExternalLink as r, Sparkles as i } from "lucide-react";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
6
  //#region src/shared/tours/tourTrigger/DesktopTourDropdown.tsx
6
- var o = t(function({ loading: t, tours: o, onStartTour: s, actions: c, onAction: l }, u) {
7
- let d = !!(c && c.length > 0);
8
- return /* @__PURE__ */ a("div", {
9
- ref: u,
7
+ var s = n(function({ loading: n, tours: s, onStartTour: c, actions: l, onAction: u }, d) {
8
+ let f = e(), p = !!(l && l.length > 0);
9
+ return /* @__PURE__ */ o("div", {
10
+ ref: d,
10
11
  className: "absolute right-0 top-full mt-2 w-80 bg-bg-elevated rounded-lg shadow-[var(--shadow-elevation-4)] border border-border-subtle z-50 animate-in fade-in slide-in-from-top-2 duration-200",
11
12
  children: [
12
- /* @__PURE__ */ a("div", {
13
+ /* @__PURE__ */ o("div", {
13
14
  className: "flex items-center gap-2 px-4 py-3 border-b border-border-subtle",
14
- children: [/* @__PURE__ */ i(r, { className: "size-4 text-action-primary-bg" }), /* @__PURE__ */ i("h3", {
15
+ children: [/* @__PURE__ */ a(i, { className: "size-4 text-action-primary-bg" }), /* @__PURE__ */ a("h3", {
15
16
  className: "font-medium text-text-primary",
16
- children: "Help & tours"
17
+ children: f("tours.helpAndTours", "Help & tours")
17
18
  })]
18
19
  }),
19
- /* @__PURE__ */ i("div", {
20
+ /* @__PURE__ */ a("div", {
20
21
  className: "max-h-80 overflow-y-auto",
21
- children: t ? /* @__PURE__ */ i("div", {
22
+ children: n ? /* @__PURE__ */ a("div", {
22
23
  className: "flex items-center justify-center py-6",
23
- children: /* @__PURE__ */ i("div", { className: "animate-spin rounded-full size-5 border-2 border-action-primary-bg border-t-transparent" })
24
- }) : o.length > 0 ? /* @__PURE__ */ i("div", {
24
+ children: /* @__PURE__ */ a("div", { className: "animate-spin rounded-full size-5 border-2 border-action-primary-bg border-t-transparent" })
25
+ }) : s.length > 0 ? /* @__PURE__ */ a("div", {
25
26
  className: "p-2",
26
- children: o.map((t) => /* @__PURE__ */ i(e, {
27
- tour: t,
28
- onStart: s
29
- }, t.id))
30
- }) : /* @__PURE__ */ i("div", {
27
+ children: s.map((e) => /* @__PURE__ */ a(t, {
28
+ tour: e,
29
+ onStart: c
30
+ }, e.id))
31
+ }) : /* @__PURE__ */ a("div", {
31
32
  className: "px-4 py-4",
32
- children: /* @__PURE__ */ i("p", {
33
+ children: /* @__PURE__ */ a("p", {
33
34
  className: "text-sm text-text-secondary",
34
- children: "No guided tours for this page yet."
35
+ children: f("tours.noneForPage", "No guided tours for this page yet.")
35
36
  })
36
37
  })
37
38
  }),
38
- d && /* @__PURE__ */ i("div", {
39
+ p && /* @__PURE__ */ a("div", {
39
40
  className: "border-t border-border-subtle p-2",
40
- children: c.map((e) => e.href ? /* @__PURE__ */ a("a", {
41
+ children: l.map((e) => e.href ? /* @__PURE__ */ o("a", {
41
42
  href: e.href,
42
43
  target: "_blank",
43
44
  rel: "noreferrer",
44
- onClick: () => l?.(e),
45
+ onClick: () => u?.(e),
45
46
  className: "flex items-center gap-3 rounded-button px-3 py-2 text-sm text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors",
46
47
  children: [
47
- e.icon && /* @__PURE__ */ i("span", {
48
+ e.icon && /* @__PURE__ */ a("span", {
48
49
  className: "flex size-4 items-center justify-center text-text-muted",
49
50
  children: e.icon
50
51
  }),
51
- /* @__PURE__ */ i("span", {
52
+ /* @__PURE__ */ a("span", {
52
53
  className: "flex-1 truncate",
53
54
  children: e.label
54
55
  }),
55
- /* @__PURE__ */ i(n, { className: "size-3.5 text-text-muted" })
56
+ /* @__PURE__ */ a(r, { className: "size-3.5 text-text-muted" })
56
57
  ]
57
- }, e.id) : /* @__PURE__ */ a("button", {
58
+ }, e.id) : /* @__PURE__ */ o("button", {
58
59
  type: "button",
59
- onClick: () => l?.(e),
60
+ onClick: () => u?.(e),
60
61
  className: "flex w-full items-center gap-3 rounded-button px-3 py-2 text-left text-sm text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors",
61
- children: [e.icon && /* @__PURE__ */ i("span", {
62
+ children: [e.icon && /* @__PURE__ */ a("span", {
62
63
  className: "flex size-4 items-center justify-center text-text-muted",
63
64
  children: e.icon
64
- }), /* @__PURE__ */ i("span", {
65
+ }), /* @__PURE__ */ a("span", {
65
66
  className: "flex-1 truncate",
66
67
  children: e.label
67
68
  })]
@@ -71,4 +72,4 @@ var o = t(function({ loading: t, tours: o, onStartTour: s, actions: c, onAction:
71
72
  });
72
73
  });
73
74
  //#endregion
74
- export { o as DesktopTourDropdown };
75
+ export { s as DesktopTourDropdown };
@@ -1 +1 @@
1
- {"version":3,"file":"TourTriggerButton.d.ts","sourceRoot":"","sources":["../../../../src/shared/tours/tourTrigger/TourTriggerButton.tsx"],"names":[],"mappings":"AAGA,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,sHAuB7B,CAAC"}
1
+ {"version":3,"file":"TourTriggerButton.d.ts","sourceRoot":"","sources":["../../../../src/shared/tours/tourTrigger/TourTriggerButton.tsx"],"names":[],"mappings":"AAIA,UAAU,sBAAsB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,sHAwB7B,CAAC"}
@@ -1,22 +1,24 @@
1
- import { forwardRef as e } from "react";
2
- import { HelpCircle as t } from "lucide-react";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
1
+ import { useShellLabel as e } from "../../providers/shell/useShellLabel.js";
2
+ import { forwardRef as t } from "react";
3
+ import { HelpCircle as n } from "lucide-react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
5
  //#region src/shared/tours/tourTrigger/TourTriggerButton.tsx
5
- var i = e(function({ isOpen: e, hasTours: i, onClick: a }, o) {
6
- return /* @__PURE__ */ r("button", {
7
- ref: o,
8
- onClick: a,
6
+ var a = t(function({ isOpen: t, hasTours: a, onClick: o }, s) {
7
+ let c = e();
8
+ return /* @__PURE__ */ i("button", {
9
+ ref: s,
10
+ onClick: o,
9
11
  className: `
10
12
  relative p-2 rounded-button transition-colors
11
- ${e ? "bg-action-ghost-bg-hover" : "hover:bg-action-ghost-bg-hover"}
12
- ${i ? "text-text-primary" : "text-text-tertiary"}
13
+ ${t ? "bg-action-ghost-bg-hover" : "hover:bg-action-ghost-bg-hover"}
14
+ ${a ? "text-text-primary" : "text-text-tertiary"}
13
15
  `,
14
- "aria-label": "Help & Tours",
15
- "aria-expanded": e,
16
+ "aria-label": c("tours.helpAndTours", "Help & Tours"),
17
+ "aria-expanded": t,
16
18
  "aria-haspopup": "true",
17
- title: "Help & Tours",
18
- children: [/* @__PURE__ */ n(t, { className: "size-5" }), i && /* @__PURE__ */ n("span", { className: "absolute top-1 right-1 size-2 bg-action-primary-bg rounded-full" })]
19
+ title: c("tours.helpAndTours", "Help & Tours"),
20
+ children: [/* @__PURE__ */ r(n, { className: "size-5" }), a && /* @__PURE__ */ r("span", { className: "absolute top-1 right-1 size-2 bg-action-primary-bg rounded-full" })]
19
21
  });
20
22
  });
21
23
  //#endregion
22
- export { i as TourTriggerButton };
24
+ export { a as TourTriggerButton };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.805.2",
3
+ "version": "2026.805.4",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "type": "module",
6
6
  "bin": {