@brightlocal/ui-components 2.26.0 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +4 -2
  2. package/component-meta.json +3761 -360
  3. package/dist/blocks/progress-screen.cjs +1 -0
  4. package/dist/blocks/progress-screen.d.ts +109 -0
  5. package/dist/blocks/progress-screen.d.ts.map +1 -0
  6. package/dist/blocks/progress-screen.js +339 -0
  7. package/dist/blocks/sidebar.cjs +1 -1
  8. package/dist/blocks/sidebar.d.ts.map +1 -1
  9. package/dist/blocks/sidebar.js +155 -153
  10. package/dist/brand-illustration-motif.d.ts +1 -1
  11. package/dist/breadcrumb.cjs +1 -1
  12. package/dist/breadcrumb.d.ts.map +1 -1
  13. package/dist/breadcrumb.js +44 -40
  14. package/dist/button.cjs +1 -1
  15. package/dist/button.d.ts.map +1 -1
  16. package/dist/button.js +28 -28
  17. package/dist/chip.cjs +1 -1
  18. package/dist/chip.d.ts +1 -1
  19. package/dist/chip.d.ts.map +1 -1
  20. package/dist/chip.js +42 -41
  21. package/dist/combobox.cjs +3 -3
  22. package/dist/combobox.d.ts +4 -2
  23. package/dist/combobox.d.ts.map +1 -1
  24. package/dist/combobox.js +161 -161
  25. package/dist/data-table.cjs +1 -1
  26. package/dist/data-table.d.ts +138 -3
  27. package/dist/data-table.d.ts.map +1 -1
  28. package/dist/data-table.js +455 -309
  29. package/dist/global-layout.cjs +1 -1
  30. package/dist/global-layout.d.ts +31 -5
  31. package/dist/global-layout.d.ts.map +1 -1
  32. package/dist/global-layout.js +276 -194
  33. package/dist/index.cjs +1 -1
  34. package/dist/index.d.ts +3 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +462 -451
  37. package/dist/lib/motion.cjs +1 -1
  38. package/dist/lib/motion.js +10 -8
  39. package/dist/link.cjs +1 -1
  40. package/dist/link.d.ts +8 -6
  41. package/dist/link.d.ts.map +1 -1
  42. package/dist/link.js +52 -20
  43. package/dist/list.cjs +1 -1
  44. package/dist/list.js +65 -63
  45. package/dist/progress.cjs +1 -1
  46. package/dist/progress.d.ts +61 -3
  47. package/dist/progress.d.ts.map +1 -1
  48. package/dist/progress.js +142 -65
  49. package/dist/route-progress.cjs +1 -0
  50. package/dist/route-progress.d.ts +103 -0
  51. package/dist/route-progress.d.ts.map +1 -0
  52. package/dist/route-progress.js +106 -0
  53. package/dist/sheet.cjs +1 -1
  54. package/dist/sheet.d.ts +35 -2
  55. package/dist/sheet.d.ts.map +1 -1
  56. package/dist/sheet.js +102 -65
  57. package/dist/sonner.cjs +1 -1
  58. package/dist/sonner.d.ts.map +1 -1
  59. package/dist/sonner.js +11 -15
  60. package/dist/spinner.cjs +1 -0
  61. package/dist/spinner.d.ts +57 -0
  62. package/dist/spinner.d.ts.map +1 -0
  63. package/dist/spinner.js +35 -0
  64. package/dist/stepper.cjs +1 -1
  65. package/dist/stepper.d.ts.map +1 -1
  66. package/dist/stepper.js +26 -25
  67. package/dist/table.cjs +1 -1
  68. package/dist/table.d.ts +1 -1
  69. package/dist/table.d.ts.map +1 -1
  70. package/dist/table.js +6 -2
  71. package/package.json +14 -2
  72. package/src/blocks/progress-screen.tsx +481 -0
  73. package/src/blocks/sidebar.tsx +22 -15
  74. package/src/components/breadcrumb.tsx +9 -4
  75. package/src/components/button.tsx +2 -5
  76. package/src/components/chip.tsx +4 -3
  77. package/src/components/combobox.tsx +15 -8
  78. package/src/components/data-table.tsx +333 -14
  79. package/src/components/global-layout.tsx +228 -62
  80. package/src/components/link.tsx +39 -5
  81. package/src/components/list.tsx +5 -5
  82. package/src/components/progress.tsx +217 -30
  83. package/src/components/route-progress.tsx +354 -0
  84. package/src/components/sheet.tsx +87 -5
  85. package/src/components/sonner.tsx +3 -12
  86. package/src/components/spinner.tsx +94 -0
  87. package/src/components/stepper.tsx +3 -4
  88. package/src/components/table.tsx +6 -2
  89. package/src/index.ts +3 -0
package/dist/progress.js CHANGED
@@ -1,11 +1,14 @@
1
- import { jsx as o, jsxs as R } from "react/jsx-runtime";
2
- import * as p from "react";
3
- import * as b from "@radix-ui/react-progress";
4
- import { motion as I } from "framer-motion";
5
- import { cn as i } from "@brightlocal/ui-components/lib/utils";
6
- import { usePrefersReducedMotion as L } from "@brightlocal/ui-components/hooks/use-prefers-reduced-motion";
7
- import { SPRING_GENTLE as S } from "./lib/motion.js";
8
- const u = {
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
+ import * as L from "react";
3
+ import * as h from "@radix-ui/react-progress";
4
+ import { motion as C } from "framer-motion";
5
+ import { cn as e } from "@brightlocal/ui-components/lib/utils";
6
+ import { usePrefersReducedMotion as G } from "@brightlocal/ui-components/hooks/use-prefers-reduced-motion";
7
+ import { SPRING_GENTLE as H } from "./lib/motion.js";
8
+ const P = {
9
+ sm: { text: "text-sm", bar: "h-2" },
10
+ md: { text: "text-base", bar: "h-3" }
11
+ }, $ = {
9
12
  green: {
10
13
  track: "bg-brand-primary-foreground/20",
11
14
  indicator: "bg-green-400"
@@ -22,102 +25,176 @@ const u = {
22
25
  track: "bg-brand-yellow/20",
23
26
  indicator: "bg-brand-yellow"
24
27
  }
25
- };
26
- function v(t, r, e) {
27
- if (t == null)
28
+ }, O = "40%";
29
+ function E(s, a, r) {
30
+ if (s == null)
28
31
  return "–";
29
- if (e === "%")
30
- return `${r > 0 ? Math.min(100, Math.max(0, Math.round(t / r * 100))) : 0}%`;
31
- const n = e ? ` ${e}` : "";
32
- return r > 0 ? `${t} / ${r}${n}` : `${t}${n}`;
32
+ if (r === "%")
33
+ return `${a > 0 ? Math.min(100, Math.max(0, Math.round(s / a * 100))) : 0}%`;
34
+ const l = r ? ` ${r}` : "";
35
+ return a > 0 ? `${s} / ${a}${l}` : `${s}${l}`;
33
36
  }
34
- const E = p.forwardRef(
37
+ const Y = L.forwardRef(
35
38
  ({
36
- className: t,
37
- value: r,
38
- max: e = 100,
39
- dataHook: n,
40
- trackingEl: d,
41
- trackingLabel: h,
42
- ariaLabel: k = "Progress",
43
- label: l,
44
- color: y = "green",
45
- showValue: s = !1,
46
- unit: x = "%",
47
- indicatorClassName: N,
48
- disabled: c,
49
- ...P
50
- }, $) => {
51
- const g = p.useId(), a = !!l, w = L(), f = u[y] ?? u.green, M = e > 0 ? Math.min(100, Math.max(0, (r ?? 0) / e * 100)) : 0, m = /* @__PURE__ */ o(
52
- b.Root,
39
+ className: s,
40
+ value: a,
41
+ max: r = 100,
42
+ dataHook: l,
43
+ trackingEl: b,
44
+ trackingLabel: I,
45
+ ariaLabel: M = "Progress",
46
+ label: w,
47
+ labelWidth: x = O,
48
+ color: T = "green",
49
+ size: _ = "sm",
50
+ showValue: V = !1,
51
+ unit: v = "%",
52
+ indicatorClassName: y,
53
+ statusDescription: n,
54
+ indeterminate: c = !1,
55
+ disabled: g,
56
+ ...j
57
+ }, z) => {
58
+ const N = L.useId(), o = !!w, k = G(), f = $[T] ?? $.green, i = P[_] ?? P.sm, m = x === "auto", d = V && !c, u = n != null && n !== !1, A = o || d, B = r > 0 ? Math.min(100, Math.max(0, (a ?? 0) / r * 100)) : 0, R = /* @__PURE__ */ t(
59
+ h.Root,
53
60
  {
54
- ref: $,
55
- "aria-label": a ? void 0 : k,
56
- "aria-labelledby": a ? g : void 0,
57
- className: i(
58
- "relative h-2 w-full overflow-hidden rounded-full",
61
+ ref: z,
62
+ "aria-label": o ? void 0 : M,
63
+ "aria-labelledby": o ? N : void 0,
64
+ className: e(
65
+ "relative w-full overflow-hidden rounded-full",
66
+ // Inside the row wrapper the bar fills whatever the fixed label and
67
+ // value columns leave over; standalone it must not flex at all.
68
+ A && "min-w-0 flex-1",
69
+ i.bar,
59
70
  f.track,
60
- !a && !s && c && "opacity-50",
61
- t
71
+ !o && !d && g && "opacity-50",
72
+ s
62
73
  ),
63
- "data-hook": n,
74
+ "data-hook": l,
64
75
  "data-slot": "progress",
65
- "data-tracking-el": d,
66
- "data-tracking-label": h,
67
- max: e,
68
- value: r,
69
- ...P,
70
- children: /* @__PURE__ */ o(b.Indicator, { asChild: !0, children: /* @__PURE__ */ o(
71
- I.div,
76
+ "data-tracking-el": b,
77
+ "data-tracking-label": I,
78
+ max: r,
79
+ value: c ? null : a ?? 0,
80
+ ...j,
81
+ children: c ? (
82
+ /* A short pill travelling the track. Under reduced motion it rests
83
+ mid-track instead: the global CSS reset would freeze the sweep on
84
+ its last frame, which is off-screen, leaving an empty bar. */
85
+ /* @__PURE__ */ t(h.Indicator, { asChild: !0, children: /* @__PURE__ */ t(
86
+ "div",
87
+ {
88
+ className: e(
89
+ "h-full w-2/5 rounded-full",
90
+ f.indicator,
91
+ k ? "translate-x-[75%]" : "animate-ambient-sweep",
92
+ y
93
+ ),
94
+ "data-slot": "progress-indicator"
95
+ }
96
+ ) })
97
+ ) : /* @__PURE__ */ t(h.Indicator, { asChild: !0, children: /* @__PURE__ */ t(
98
+ C.div,
72
99
  {
73
100
  animate: {
74
- transform: `translateX(-${100 - M}%)`
101
+ transform: `translateX(-${100 - B}%)`
75
102
  },
76
- className: i(
103
+ className: e(
77
104
  "h-full w-full flex-1",
78
105
  f.indicator,
79
- N
106
+ y
80
107
  ),
81
108
  "data-slot": "progress-indicator",
82
109
  initial: !1,
83
- transition: w ? { duration: 0 } : S
110
+ transition: k ? { duration: 0 } : H
84
111
  }
85
112
  ) })
86
113
  }
87
114
  );
88
- return !a && !s ? m : /* @__PURE__ */ R(
115
+ if (!o && !d && !u)
116
+ return R;
117
+ const S = /* @__PURE__ */ p(
89
118
  "div",
90
119
  {
91
- className: i(
120
+ className: e(
92
121
  "flex w-full items-center gap-2",
93
- c && "opacity-50"
122
+ !u && g && "opacity-50"
94
123
  ),
95
124
  "data-slot": "progress-wrapper",
96
125
  children: [
97
- a && /* @__PURE__ */ o(
126
+ o && /* @__PURE__ */ t(
98
127
  "span",
99
128
  {
100
- className: "text-foreground text-xs leading-none font-medium",
129
+ className: e(
130
+ "text-foreground shrink-0 font-medium break-words",
131
+ // `auto`: hug the text but never take more than 40% of the row,
132
+ // so an overlong label still wraps instead of squeezing the bar.
133
+ m && "max-w-2/5",
134
+ i.text
135
+ ),
136
+ "data-label-width": m ? "auto" : void 0,
101
137
  "data-slot": "progress-label",
102
- id: g,
103
- children: l
138
+ id: N,
139
+ style: m ? void 0 : { width: x },
140
+ children: w
104
141
  }
105
142
  ),
106
- m,
107
- s && /* @__PURE__ */ o(
143
+ R,
144
+ d && /* @__PURE__ */ p(
108
145
  "span",
109
146
  {
110
- className: "text-muted-foreground shrink-0 text-xs leading-none tabular-nums",
147
+ className: e(
148
+ "text-muted-foreground grid min-w-10 shrink-0 text-right tabular-nums",
149
+ i.text
150
+ ),
111
151
  "data-slot": "progress-value",
112
- children: v(r, e, x)
152
+ children: [
153
+ /* @__PURE__ */ t(
154
+ "span",
155
+ {
156
+ "aria-hidden": "true",
157
+ className: "invisible col-start-1 row-start-1",
158
+ "data-slot": "progress-value-sizer",
159
+ children: E(r, r, v)
160
+ }
161
+ ),
162
+ /* @__PURE__ */ t(
163
+ "span",
164
+ {
165
+ className: "col-start-1 row-start-1",
166
+ "data-slot": "progress-value-text",
167
+ children: E(a, r, v)
168
+ }
169
+ )
170
+ ]
113
171
  }
114
172
  )
115
173
  ]
116
174
  }
117
175
  );
176
+ return u ? /* @__PURE__ */ p(
177
+ "div",
178
+ {
179
+ className: e("flex w-full flex-col gap-2", g && "opacity-50"),
180
+ "data-slot": "progress-status-wrapper",
181
+ children: [
182
+ /* @__PURE__ */ t(
183
+ "span",
184
+ {
185
+ "aria-live": "polite",
186
+ className: e("text-muted-foreground", i.text),
187
+ "data-slot": "progress-status",
188
+ children: n
189
+ }
190
+ ),
191
+ S
192
+ ]
193
+ }
194
+ ) : S;
118
195
  }
119
196
  );
120
- E.displayName = "Progress";
197
+ Y.displayName = "Progress";
121
198
  export {
122
- E as Progress
199
+ Y as Progress
123
200
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),A=require("react"),O=require("@brightlocal/ui-components/hooks/use-prefers-reduced-motion"),h=require("@brightlocal/ui-components/lib/utils"),m=require("./lib/motion.cjs");function M(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const o in r)if(o!=="default"){const l=Object.getOwnPropertyDescriptor(r,o);Object.defineProperty(s,o,l.get?l:{enumerable:!0,get:()=>r[o]})}}return s.default=r,Object.freeze(s)}const c=M(A),P=12,y=90,v=12e3,N="var(--ds-motion-ease-emphasized)",j=m.MOTION_DURATION_FAST_MS,F=50,g=c.forwardRef(({className:r,active:s,dataHook:o,trackingEl:l,trackingLabel:T,navigatingLabel:R="Loading page",style:_,...S},E)=>{const a=O.usePrefersReducedMotion(),[e,u]=c.useState("idle");c.useEffect(()=>{if(s){u(t=>t==="start"||t==="creep"?t:"start");return}const n=setTimeout(()=>u(t=>t==="idle"?"idle":"complete"),j);return()=>clearTimeout(n)},[s]),c.useEffect(()=>{if(e!=="start"||a)return;let n=0;const t=requestAnimationFrame(()=>{n=requestAnimationFrame(()=>u(f=>f==="start"?"creep":f))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(n)}},[e,a]),c.useEffect(()=>{if(e!=="complete")return;const n=setTimeout(()=>u(t=>t==="complete"?"idle":t),a?0:m.MOTION_DURATION_BASE_MS+m.MOTION_DURATION_FAST_MS);return()=>clearTimeout(n)},[e,a]);const p=e==="start"||e==="creep",b=e==="complete"?100:e==="creep"?y:e==="start"&&a?F:P;let d="none";return a||(e==="creep"?d=`clip-path ${v}ms ${N}`:e==="complete"&&(d="clip-path var(--ds-motion-duration-base) ease-out, opacity var(--ds-motion-duration-fast) ease-out var(--ds-motion-duration-base)")),i.jsxs(i.Fragment,{children:[i.jsx("div",{ref:E,"aria-hidden":"true",className:h.cn("pointer-events-none fixed inset-x-0 top-0 z-60 h-0.5 overflow-hidden",r),"data-hook":o,"data-slot":"route-progress","data-state":e,"data-tracking-el":l,"data-tracking-label":T,style:_,...S,children:i.jsx("span",{className:"bg-primary absolute inset-0 dark:bg-[var(--ds-colors-primary-light)]","data-slot":"route-progress-bar",style:{clipPath:`inset(0 ${100-b}% 0 0)`,opacity:p?1:0,transition:d}})}),i.jsx("span",{"aria-atomic":"true","aria-live":"polite",className:"sr-only fixed","data-slot":"route-progress-status",children:p?R:""})]})});g.displayName="RouteProgress";exports.RouteProgress=g;
@@ -0,0 +1,103 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Props for the RouteProgress component.
4
+ */
5
+ interface RouteProgressProps extends Omit<React.ComponentPropsWithoutRef<"div">, "children"> {
6
+ /**
7
+ * Required data-hook attribute for testing and component identification
8
+ */
9
+ dataHook: string;
10
+ /**
11
+ * Whether a full route navigation is in flight.
12
+ *
13
+ * Derive it from the router rather than from a click handler — that is what
14
+ * gives the remaining pattern guarantees for free: browser back and forward
15
+ * run the bar too, and in-page changes (tabs, filter changes, pagination
16
+ * refetches, modals) never touch it, because none of them are route
17
+ * navigations.
18
+ *
19
+ * ```tsx
20
+ * const navigating = useRouterState({
21
+ * select: (state) => state.status === "pending",
22
+ * });
23
+ * <RouteProgress active={navigating} dataHook="route-progress" />
24
+ * ```
25
+ *
26
+ * Prefer `status === "pending"` over `isLoading`: `isLoading` clears as soon
27
+ * as the route's loaders resolve, whereas `status` returns to `"idle"` only
28
+ * once `isLoading`, `isTransitioning` and `hasPendingMatches` are all false
29
+ * — so it also covers the React transition that commits the new route. And
30
+ * always pass `select`; `useRouterState()` with no selector re-renders the
31
+ * whole subtree on any router state change.
32
+ *
33
+ * **Router pending alone only means "the page is here", not "the page is
34
+ * ready."** It is the whole answer when the route declares its
35
+ * route-critical data in a loader — with TanStack Router,
36
+ * `loader: () => queryClient.ensureQueryData(...)` keeps `status` pending
37
+ * until that data has landed, which is exactly the signal this bar wants.
38
+ *
39
+ * Where components instead fetch on mount, the router goes idle as soon as
40
+ * the route commits and the bar finishes while skeletons are still
41
+ * rendering. Add the destination's own queries — **scoped to the route**,
42
+ * never a global `useIsFetching()`, which a polling or failing section would
43
+ * hold open forever:
44
+ *
45
+ * ```tsx
46
+ * const navigating = useRouterState({ select: (s) => s.status === "pending" });
47
+ * const loadingPage = useIsFetching({ queryKey: ["location", locationId] }) > 0;
48
+ * <RouteProgress active={navigating || loadingPage} dataHook="route-progress" />
49
+ * ```
50
+ *
51
+ * Handing off between two such signals is safe: the bar debounces the
52
+ * falling edge, so it stays continuous through the gap instead of sweeping
53
+ * and restarting. The rising edge is never debounced.
54
+ *
55
+ * Aim at *route-critical* content, not every query on the page. A
56
+ * below-the-fold widget that is slow, failing, or polling must keep its own
57
+ * skeleton and let the bar finish — a bar still running on a usable page
58
+ * reads as a hang.
59
+ */
60
+ active: boolean;
61
+ /**
62
+ * Optional tracking element identifier for analytics
63
+ */
64
+ trackingEl?: string;
65
+ /**
66
+ * Optional tracking label for analytics
67
+ */
68
+ trackingLabel?: string;
69
+ /**
70
+ * Announced politely to screen readers while `active` is true. The bar
71
+ * itself is decorative — its fill is a trickle, not measured progress, so
72
+ * it exposes no `progressbar` role or `aria-valuenow`.
73
+ * @default "Loading page"
74
+ */
75
+ navigatingLabel?: string;
76
+ }
77
+ /**
78
+ * A slim bar pinned to the top edge of the viewport that reports a full route
79
+ * navigation: it starts the moment the navigation begins and completes when
80
+ * the destination's route-critical content has settled.
81
+ *
82
+ * Its appearance answers *did my click work?*; its completion answers *is the
83
+ * page here yet?* It runs alongside the destination's own skeletons rather
84
+ * than instead of them — the two work at different scopes, and
85
+ * `RouteProgress (the navigation) over destination skeletons (each section) →
86
+ * content` is the normal lifecycle.
87
+ *
88
+ * Position is `fixed` at the viewport's top edge, so the bar blocks nothing
89
+ * and shifts nothing. Per the className policy the outer box is the
90
+ * consumer's: pass `className` to re-anchor it (for example `absolute` inside
91
+ * a positioned container), and the bar's own identity stays ours.
92
+ *
93
+ * Keeping the current page mounted until the destination commits is the
94
+ * router's job, not the bar's — tearing down a working screen costs people
95
+ * their context.
96
+ *
97
+ * See `Patterns/Loading → Page loading → Route transitions` in Storybook for
98
+ * the full guidance and the end-to-end demo.
99
+ */
100
+ declare const RouteProgress: React.ForwardRefExoticComponent<RouteProgressProps & React.RefAttributes<HTMLDivElement>>;
101
+ export { RouteProgress };
102
+ export type { RouteProgressProps };
103
+ //# sourceMappingURL=route-progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route-progress.d.ts","sourceRoot":"","sources":["../../src/components/route-progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAuF/B;;GAEG;AACH,UAAU,kBAAmB,SAAQ,IAAI,CACvC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EACrC,UAAU,CACX;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,aAAa,2FA6JlB,CAAC;AAIF,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,106 @@
1
+ import { jsxs as _, Fragment as S, jsx as n } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { usePrefersReducedMotion as v } from "@brightlocal/ui-components/hooks/use-prefers-reduced-motion";
4
+ import { cn as F } from "@brightlocal/ui-components/lib/utils";
5
+ import { MOTION_DURATION_FAST_MS as d, MOTION_DURATION_BASE_MS as M } from "./lib/motion.js";
6
+ const N = 12, P = 90, b = 12e3, y = "var(--ds-motion-ease-emphasized)", I = d, x = 50, L = o.forwardRef(
7
+ ({
8
+ className: p,
9
+ active: c,
10
+ dataHook: u,
11
+ trackingEl: f,
12
+ trackingLabel: T,
13
+ navigatingLabel: E = "Loading page",
14
+ style: g,
15
+ ...h
16
+ }, R) => {
17
+ const a = v(), [e, s] = o.useState("idle");
18
+ o.useEffect(() => {
19
+ if (c) {
20
+ s(
21
+ (t) => t === "start" || t === "creep" ? t : "start"
22
+ );
23
+ return;
24
+ }
25
+ const r = setTimeout(
26
+ () => s((t) => t === "idle" ? "idle" : "complete"),
27
+ I
28
+ );
29
+ return () => clearTimeout(r);
30
+ }, [c]), o.useEffect(() => {
31
+ if (e !== "start" || a)
32
+ return;
33
+ let r = 0;
34
+ const t = requestAnimationFrame(() => {
35
+ r = requestAnimationFrame(
36
+ () => s((l) => l === "start" ? "creep" : l)
37
+ );
38
+ });
39
+ return () => {
40
+ cancelAnimationFrame(t), cancelAnimationFrame(r);
41
+ };
42
+ }, [e, a]), o.useEffect(() => {
43
+ if (e !== "complete")
44
+ return;
45
+ const r = setTimeout(
46
+ () => s((t) => t === "complete" ? "idle" : t),
47
+ a ? 0 : M + d
48
+ );
49
+ return () => clearTimeout(r);
50
+ }, [e, a]);
51
+ const m = e === "start" || e === "creep", A = e === "complete" ? 100 : e === "creep" ? P : e === "start" && a ? x : N;
52
+ let i = "none";
53
+ return a || (e === "creep" ? i = `clip-path ${b}ms ${y}` : e === "complete" && (i = "clip-path var(--ds-motion-duration-base) ease-out, opacity var(--ds-motion-duration-fast) ease-out var(--ds-motion-duration-base)")), /* @__PURE__ */ _(S, { children: [
54
+ /* @__PURE__ */ n(
55
+ "div",
56
+ {
57
+ ref: R,
58
+ "aria-hidden": "true",
59
+ className: F(
60
+ // z-60, not z-50: every DS overlay (Dialog, Sheet, Drawer,
61
+ // AlertDialog) is `fixed inset-0 z-50` and portals to <body>, so at
62
+ // an equal z-index it would paint over the bar by DOM order. A
63
+ // navigation started from inside a modal must still be reported.
64
+ "pointer-events-none fixed inset-x-0 top-0 z-60 h-0.5 overflow-hidden",
65
+ p
66
+ ),
67
+ "data-hook": u,
68
+ "data-slot": "route-progress",
69
+ "data-state": e,
70
+ "data-tracking-el": f,
71
+ "data-tracking-label": T,
72
+ style: g,
73
+ ...h,
74
+ children: /* @__PURE__ */ n(
75
+ "span",
76
+ {
77
+ className: "bg-primary absolute inset-0 dark:bg-[var(--ds-colors-primary-light)]",
78
+ "data-slot": "route-progress-bar",
79
+ style: {
80
+ /* Painted across the full track and revealed by clip-path, so
81
+ the fill's colour is identical at every width. */
82
+ clipPath: `inset(0 ${100 - A}% 0 0)`,
83
+ opacity: m ? 1 : 0,
84
+ transition: i
85
+ }
86
+ }
87
+ )
88
+ }
89
+ ),
90
+ /* @__PURE__ */ n(
91
+ "span",
92
+ {
93
+ "aria-atomic": "true",
94
+ "aria-live": "polite",
95
+ className: "sr-only fixed",
96
+ "data-slot": "route-progress-status",
97
+ children: m ? E : ""
98
+ }
99
+ )
100
+ ] });
101
+ }
102
+ );
103
+ L.displayName = "RouteProgress";
104
+ export {
105
+ L as RouteProgress
106
+ };
package/dist/sheet.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),w=require("react"),k=require("@radix-ui/react-dialog"),O=require("class-variance-authority"),R=require("@brightlocal/icons"),i=require("@brightlocal/ui-components/lib/utils"),C=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const n=f(w),o=f(k),P=O.cva(["bg-background","data-[state=open]:animate-in","data-[state=closed]:animate-out","fixed","z-50","flex","flex-col","gap-4","p-6","shadow-lg","ease-out","data-[state=closed]:ease-in","data-[state=open]:duration-slow","data-[state=closed]:duration-250"],{variants:{side:{top:["data-[state=closed]:slide-out-to-top","data-[state=open]:slide-in-from-top","inset-x-0","top-0","h-auto","border-b"],right:["data-[state=closed]:slide-out-to-right","data-[state=open]:slide-in-from-right","inset-y-0","right-0","h-full","w-3/4","border-l","sm:max-w-sm"],bottom:["data-[state=closed]:slide-out-to-bottom","data-[state=open]:slide-in-from-bottom","inset-x-0","bottom-0","h-auto","border-t"],left:["data-[state=closed]:slide-out-to-left","data-[state=open]:slide-in-from-left","inset-y-0","left-0","h-full","w-3/4","border-r","sm:max-w-sm"]}},defaultVariants:{side:"right"}});function u({...e}){return s.jsx(o.Root,{"data-slot":"sheet",modal:!0,...e})}u.displayName="Sheet";const m=n.forwardRef(({dataHook:e,...t},a)=>s.jsx(o.Trigger,{ref:a,"data-slot":"sheet-trigger",...e!=null&&{"data-hook":e},...t}));m.displayName="SheetTrigger";const p=n.forwardRef(({...e},t)=>s.jsx(o.Close,{ref:t,"data-slot":"sheet-close",...e}));p.displayName="SheetClose";function c({...e}){return s.jsx(o.Portal,{"data-slot":"sheet-portal",...e})}c.displayName="SheetPortal";const h=n.forwardRef(({className:e,...t},a)=>s.jsx(o.Overlay,{ref:a,className:i.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),"data-slot":"sheet-overlay",...t}));h.displayName="SheetOverlay";const g=n.forwardRef(({className:e,children:t,side:a,dataHook:r,trackingEl:l,trackingLabel:d,closeLabel:v,...j},N)=>(C.useOverlayPointerLock(),s.jsxs(c,{children:[s.jsx(h,{}),s.jsxs(o.Content,{ref:N,className:i.cn(P({side:a}),e),"data-hook":r,"data-slot":"sheet-content","data-tracking-el":l,"data-tracking-label":d,...j,children:[t,s.jsxs(o.Close,{className:"ring-offset-background focus-visible:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground duration-fast absolute top-4 right-4 rounded-xs opacity-70 outline-hidden transition-opacity ease-out hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[s.jsx(R.X,{}),s.jsx("span",{className:"sr-only",children:v??"Close"})]})]})]})));g.displayName="SheetContent";const x=n.forwardRef(({className:e,...t},a)=>s.jsx("div",{ref:a,className:i.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"sheet-header",...t}));x.displayName="SheetHeader";const S=n.forwardRef(({className:e,...t},a)=>s.jsx("div",{ref:a,className:i.cn("mt-auto flex flex-col gap-2 sm:flex-row sm:justify-end",e),"data-slot":"sheet-footer",...t}));S.displayName="SheetFooter";const b=n.forwardRef(({className:e,icon:t,children:a,dataHook:r,...l},d)=>s.jsxs(o.Title,{ref:d,className:i.cn("text-foreground text-lg font-semibold",t&&"flex items-center gap-2",e),"data-hook":r,"data-slot":"sheet-title",...l,children:[t&&s.jsx("span",{className:"shrink-0 [&_svg]:size-5","data-slot":"sheet-title-icon",children:t}),a]}));b.displayName="SheetTitle";const y=n.forwardRef(({className:e,dataHook:t,...a},r)=>s.jsx(o.Description,{ref:r,className:i.cn("text-muted-foreground text-sm",e),"data-hook":t,"data-slot":"sheet-description",...a}));y.displayName="SheetDescription";exports.Sheet=u;exports.SheetClose=p;exports.SheetContent=g;exports.SheetDescription=y;exports.SheetFooter=S;exports.SheetHeader=x;exports.SheetOverlay=h;exports.SheetPortal=c;exports.SheetTitle=b;exports.SheetTrigger=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),R=require("react"),O=require("@radix-ui/react-dialog"),C=require("class-variance-authority"),P=require("@brightlocal/icons"),n=require("@brightlocal/ui-components/lib/utils"),T=require("@brightlocal/ui-components/scroll-area"),q=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const i=f(R),r=f(O),z=C.cva(["bg-background","data-[state=open]:animate-in","data-[state=closed]:animate-out","fixed","z-50","flex","flex-col","gap-4","p-6","shadow-lg","ease-out","data-[state=closed]:ease-in","data-[state=open]:duration-slow","data-[state=closed]:duration-250"],{variants:{side:{top:["data-[state=closed]:slide-out-to-top","data-[state=open]:slide-in-from-top","inset-x-0","top-0","h-auto","border-b"],right:["data-[state=closed]:slide-out-to-right","data-[state=open]:slide-in-from-right","inset-y-0","right-0","h-full","border-l"],bottom:["data-[state=closed]:slide-out-to-bottom","data-[state=open]:slide-in-from-bottom","inset-x-0","bottom-0","h-auto","border-t"],left:["data-[state=closed]:slide-out-to-left","data-[state=open]:slide-in-from-left","inset-y-0","left-0","h-full","border-r"]},size:{default:[],sm:[]}},compoundVariants:[{side:["left","right"],size:"default",className:["w-3/4","sm:max-w-sm"]},{side:["left","right"],size:"sm",className:["w-fit","min-w-(--ds-container-2xs)","max-w-(--ds-container-xs)"]}],defaultVariants:{side:"right",size:"default"}});function u({...e}){return s.jsx(r.Root,{"data-slot":"sheet",modal:!0,...e})}u.displayName="Sheet";const m=i.forwardRef(({dataHook:e,...t},a)=>s.jsx(r.Trigger,{ref:a,"data-slot":"sheet-trigger",...e!=null&&{"data-hook":e},...t}));m.displayName="SheetTrigger";const p=i.forwardRef(({...e},t)=>s.jsx(r.Close,{ref:t,"data-slot":"sheet-close",...e}));p.displayName="SheetClose";function c({...e}){return s.jsx(r.Portal,{"data-slot":"sheet-portal",...e})}c.displayName="SheetPortal";const h=i.forwardRef(({className:e,...t},a)=>s.jsx(r.Overlay,{ref:a,className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),"data-slot":"sheet-overlay",...t}));h.displayName="SheetOverlay";const g=i.forwardRef(({className:e,children:t,side:a,size:o,dataHook:l,trackingEl:d,trackingLabel:v,closeLabel:N,...w},k)=>(q.useOverlayPointerLock(),s.jsxs(c,{children:[s.jsx(h,{}),s.jsxs(r.Content,{ref:k,className:n.cn(z({side:a,size:o}),e),"data-hook":l,"data-slot":"sheet-content","data-tracking-el":d,"data-tracking-label":v,...w,children:[t,s.jsxs(r.Close,{className:"ring-offset-background focus-visible:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground duration-fast absolute top-4 right-4 rounded-xs opacity-70 outline-hidden transition-opacity ease-out hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[s.jsx(P.X,{}),s.jsx("span",{className:"sr-only",children:N??"Close"})]})]})]})));g.displayName="SheetContent";const x=i.forwardRef(({className:e,...t},a)=>s.jsx("div",{ref:a,className:n.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"sheet-header",...t}));x.displayName="SheetHeader";const S=i.forwardRef(({className:e,children:t,dataHook:a,...o},l)=>s.jsx(T.ScrollArea,{ref:l,className:n.cn("-mx-6 min-h-0 flex-1",e),"data-slot":"sheet-body",dataHook:a??"sheet-body",...o,children:s.jsx("div",{className:"px-5","data-slot":"sheet-body-content",children:t})}));S.displayName="SheetBody";const y=i.forwardRef(({className:e,...t},a)=>s.jsx("div",{ref:a,className:n.cn("mt-auto flex flex-col gap-2 sm:flex-row sm:justify-end",e),"data-slot":"sheet-footer",...t}));y.displayName="SheetFooter";const b=i.forwardRef(({className:e,icon:t,children:a,dataHook:o,...l},d)=>s.jsxs(r.Title,{ref:d,className:n.cn("text-foreground text-lg font-semibold",t&&"flex items-center gap-2",e),"data-hook":o,"data-slot":"sheet-title",...l,children:[t&&s.jsx("span",{className:"shrink-0 [&_svg]:size-5","data-slot":"sheet-title-icon",children:t}),a]}));b.displayName="SheetTitle";const j=i.forwardRef(({className:e,dataHook:t,...a},o)=>s.jsx(r.Description,{ref:o,className:n.cn("text-muted-foreground text-sm",e),"data-hook":t,"data-slot":"sheet-description",...a}));j.displayName="SheetDescription";exports.Sheet=u;exports.SheetBody=S;exports.SheetClose=p;exports.SheetContent=g;exports.SheetDescription=j;exports.SheetFooter=y;exports.SheetHeader=x;exports.SheetOverlay=h;exports.SheetPortal=c;exports.SheetTitle=b;exports.SheetTrigger=m;
package/dist/sheet.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ import { ScrollArea } from './scroll-area';
2
3
  import * as React from "react";
3
4
  import * as SheetPrimitive from "@radix-ui/react-dialog";
4
5
  /**
@@ -9,8 +10,16 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
9
10
  * - left: Sheet slides in from the left
10
11
  */
11
12
  export type SheetSide = "top" | "right" | "bottom" | "left";
13
+ /**
14
+ * Available sheet size variants (side panels only — ignored for top/bottom)
15
+ * - default: Panel fills 75% of the viewport up to 384px
16
+ * - sm: Panel hugs its content between 288 and 320px, keeping the page
17
+ * partly visible behind it on phones (used by the Sidebar mobile nav)
18
+ */
19
+ export type SheetSize = "default" | "sm";
12
20
  declare const sheetContentVariants: (props?: ({
13
21
  side?: "left" | "right" | "bottom" | "top" | null | undefined;
22
+ size?: "default" | "sm" | null | undefined;
14
23
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
15
24
  /**
16
25
  * Sheet root component that provides context for the sheet dialog.
@@ -61,6 +70,13 @@ interface SheetContentProps extends React.ComponentProps<typeof SheetPrimitive.C
61
70
  * @default "right"
62
71
  */
63
72
  side?: SheetSide;
73
+ /**
74
+ * Width preset for side panels. `sm` hugs the content between 288 and
75
+ * 320px; `default` keeps the classic 75%-up-to-384px drawer width.
76
+ * Ignored for top/bottom sheets.
77
+ * @default "default"
78
+ */
79
+ size?: SheetSize;
64
80
  /**
65
81
  * Data hook for automated testing
66
82
  */
@@ -89,6 +105,23 @@ declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetContentPro
89
105
  * Centers text on mobile, left-aligns on larger screens.
90
106
  */
91
107
  declare const SheetHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
108
+ /**
109
+ * Props for the SheetBody component
110
+ */
111
+ interface SheetBodyProps extends Omit<React.ComponentProps<typeof ScrollArea>, "dataHook"> {
112
+ /**
113
+ * Data hook for automated testing
114
+ * @default "sheet-body"
115
+ */
116
+ dataHook?: string;
117
+ }
118
+ /**
119
+ * Sheet body — the scrollable region between a pinned SheetHeader and
120
+ * SheetFooter. Wraps ScrollArea so long content scrolls with DS-styled
121
+ * scrollbars inside a keyboard-focusable viewport, while the close button,
122
+ * header, and footer stay visible.
123
+ */
124
+ declare const SheetBody: React.ForwardRefExoticComponent<Omit<SheetBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
92
125
  /**
93
126
  * Sheet footer section for actions and buttons.
94
127
  * Stacks buttons on mobile, aligns to end on larger screens.
@@ -130,6 +163,6 @@ interface SheetDescriptionProps extends React.ComponentProps<typeof SheetPrimiti
130
163
  * Should be used within SheetHeader below SheetTitle.
131
164
  */
132
165
  declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
133
- export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, };
134
- export type { SheetContentProps, SheetDescriptionProps, SheetTitleProps, SheetTriggerProps, };
166
+ export { Sheet, SheetBody, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, };
167
+ export type { SheetBodyProps, SheetContentProps, SheetDescriptionProps, SheetTitleProps, SheetTriggerProps, };
135
168
  //# sourceMappingURL=sheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OA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