@brightlocal/ui-components 2.25.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.
- package/README.md +4 -2
- package/component-meta.json +3809 -182
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +23 -9
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +95 -87
- package/dist/blocks/progress-screen.cjs +1 -0
- package/dist/blocks/progress-screen.d.ts +109 -0
- package/dist/blocks/progress-screen.d.ts.map +1 -0
- package/dist/blocks/progress-screen.js +339 -0
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +155 -153
- package/dist/brand-illustration-motif.d.ts +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +44 -40
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +28 -28
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +42 -41
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +4 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +161 -161
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +155 -4
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +462 -309
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +31 -5
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +276 -194
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +462 -451
- package/dist/lib/motion.cjs +1 -1
- package/dist/lib/motion.js +10 -8
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +5 -2
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +97 -91
- package/dist/list.cjs +1 -1
- package/dist/list.js +65 -63
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +61 -3
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +142 -65
- package/dist/route-progress.cjs +1 -0
- package/dist/route-progress.d.ts +103 -0
- package/dist/route-progress.d.ts.map +1 -0
- package/dist/route-progress.js +106 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +35 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +102 -65
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +11 -15
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +57 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.js +35 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.d.ts.map +1 -1
- package/dist/stepper.js +26 -25
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +6 -2
- package/package.json +15 -6
- package/src/blocks/progress-screen.tsx +481 -0
- package/src/blocks/sidebar.tsx +22 -15
- package/src/components/alert.tsx +68 -33
- package/src/components/breadcrumb.tsx +9 -4
- package/src/components/button.tsx +2 -5
- package/src/components/chip.tsx +4 -3
- package/src/components/combobox.tsx +15 -8
- package/src/components/data-table.tsx +358 -16
- package/src/components/global-layout.tsx +228 -62
- package/src/components/link.tsx +88 -63
- package/src/components/list.tsx +5 -5
- package/src/components/progress.tsx +217 -30
- package/src/components/route-progress.tsx +354 -0
- package/src/components/sheet.tsx +87 -5
- package/src/components/sonner.tsx +3 -12
- package/src/components/spinner.tsx +94 -0
- package/src/components/stepper.tsx +3 -4
- package/src/components/table.tsx +6 -2
- package/src/index.ts +3 -0
- package/dist/browser-entry.d.ts +0 -19
- package/dist/browser-entry.d.ts.map +0 -1
- package/src/browser-entry.ts +0 -99
- package/src/browser-tokens.css +0 -1
package/dist/progress.d.ts
CHANGED
|
@@ -8,6 +8,17 @@ import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
|
8
8
|
* - `red` — critical / urgent
|
|
9
9
|
*/
|
|
10
10
|
type ProgressColor = "green" | "red" | "orange" | "yellow";
|
|
11
|
+
/**
|
|
12
|
+
* Text size of the label and value.
|
|
13
|
+
* - `sm` — 14px (`text-sm`), the default for metric rows in cards
|
|
14
|
+
* - `md` — 16px (`text-base`) for roomier layouts
|
|
15
|
+
*/
|
|
16
|
+
type ProgressSize = "sm" | "md";
|
|
17
|
+
/**
|
|
18
|
+
* Width of the label column as a share of the row, or `auto` to hug the text.
|
|
19
|
+
* Mirrors the Figma `Progress / Label` Width options.
|
|
20
|
+
*/
|
|
21
|
+
type ProgressLabelWidth = "auto" | "20%" | "30%" | "40%" | "50%";
|
|
11
22
|
/**
|
|
12
23
|
* Props for the Progress component.
|
|
13
24
|
*/
|
|
@@ -30,14 +41,31 @@ interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Ro
|
|
|
30
41
|
*/
|
|
31
42
|
ariaLabel?: string;
|
|
32
43
|
/**
|
|
33
|
-
* Optional visible label text displayed to the left of the progress bar
|
|
44
|
+
* Optional visible label text displayed to the left of the progress bar.
|
|
45
|
+
* Rendered inside a fixed-width column (see `labelWidth`); longer labels
|
|
46
|
+
* wrap onto further lines while the bar and value stay in their columns.
|
|
34
47
|
*/
|
|
35
48
|
label?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Width of the label column: `"20%"` … `"50%"` of the row in 10% steps, or
|
|
51
|
+
* `"auto"`. Every row that uses the same percentage starts its bar at the
|
|
52
|
+
* same x-position, so stacked rows inside a card line up — pick the step that
|
|
53
|
+
* keeps the labels in that card to one or two lines. Use `"auto"` for a
|
|
54
|
+
* single row that isn't aligned with others: the label hugs its text (capped
|
|
55
|
+
* at 40% of the row) and the bar starts right after it.
|
|
56
|
+
* @default "40%"
|
|
57
|
+
*/
|
|
58
|
+
labelWidth?: ProgressLabelWidth;
|
|
36
59
|
/**
|
|
37
60
|
* Brand color for the indicator.
|
|
38
61
|
* @default "green"
|
|
39
62
|
*/
|
|
40
63
|
color?: ProgressColor;
|
|
64
|
+
/**
|
|
65
|
+
* Row size: `sm` = 14px text with an 8px bar, `md` = 16px text with a 12px bar.
|
|
66
|
+
* @default "sm"
|
|
67
|
+
*/
|
|
68
|
+
size?: ProgressSize;
|
|
41
69
|
/**
|
|
42
70
|
* Whether to render the numeric value to the right of the progress bar.
|
|
43
71
|
* Falls back to `–` when no value is provided so the layout stays consistent.
|
|
@@ -53,9 +81,33 @@ interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Ro
|
|
|
53
81
|
unit?: string;
|
|
54
82
|
/**
|
|
55
83
|
* Custom class name for the indicator (progress fill)
|
|
56
|
-
* Use this to customize the color, e.g., "bg-red
|
|
84
|
+
* Use this to customize the color, e.g., "bg-chart-red"
|
|
57
85
|
*/
|
|
58
86
|
indicatorClassName?: string;
|
|
87
|
+
/**
|
|
88
|
+
* A line describing what the run is doing right now — the step, not the
|
|
89
|
+
* number. Renders on its own line above the bar's row, so `label` stays on
|
|
90
|
+
* the left and the value on the right. It takes the row's `size`, so it reads
|
|
91
|
+
* as a peer of the value rather than a second scale.
|
|
92
|
+
*
|
|
93
|
+
* It is a polite live region, and it never becomes the bar's accessible name
|
|
94
|
+
* (`ariaLabel` still owns that) — which is what makes it the right slot for a
|
|
95
|
+
* status that moves, where `label` is not.
|
|
96
|
+
* @example "Scanning search results across your area"
|
|
97
|
+
*/
|
|
98
|
+
statusDescription?: React.ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* Runs the bar as an indeterminate sweep: a short pill travelling the track
|
|
101
|
+
* for "running, and we cannot say how far". Use when work is genuinely
|
|
102
|
+
* underway but the backend reports no percentage — never as a stand-in for a
|
|
103
|
+
* number you could have fetched.
|
|
104
|
+
*
|
|
105
|
+
* `value` is ignored while this is set, the numeric readout is suppressed
|
|
106
|
+
* (there is nothing to report), and the bar drops `aria-valuenow` so assistive
|
|
107
|
+
* technology announces it as indeterminate rather than as 0%.
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
indeterminate?: boolean;
|
|
59
111
|
/**
|
|
60
112
|
* Whether the progress is in a disabled state
|
|
61
113
|
* When disabled, the component renders with 50% opacity
|
|
@@ -65,8 +117,14 @@ interface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Ro
|
|
|
65
117
|
/**
|
|
66
118
|
* Progress component for displaying loading states and task completion.
|
|
67
119
|
* Built on Radix UI Progress primitive with Framer Motion animation.
|
|
120
|
+
*
|
|
121
|
+
* With a `label` and/or `showValue` the bar renders as a three-column row:
|
|
122
|
+
* a fixed-width label column, the bar filling the remaining space, and a
|
|
123
|
+
* right-aligned value column sized to the widest value it can show — so rows
|
|
124
|
+
* stacked in a card share the same bar start position and width, even when
|
|
125
|
+
* a label wraps onto two lines.
|
|
68
126
|
*/
|
|
69
127
|
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
70
128
|
export { Progress };
|
|
71
|
-
export type { ProgressProps, ProgressColor };
|
|
129
|
+
export type { ProgressProps, ProgressColor, ProgressSize, ProgressLabelWidth };
|
|
72
130
|
//# sourceMappingURL=progress.d.ts.map
|
package/dist/progress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAO9D;;;;;;GAMG;AACH,KAAK,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAO9D;;;;;;GAMG;AACH,KAAK,aAAa,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3D;;;;GAIG;AACH,KAAK,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AA6ChC;;;GAGG;AACH,KAAK,kBAAkB,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAkCjE;;GAEG;AACH,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAClD,OAAO,iBAAiB,CAAC,IAAI,CAC9B;IACC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,mGAiNb,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
package/dist/progress.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import { motion as
|
|
5
|
-
import { cn as
|
|
6
|
-
import { usePrefersReducedMotion as
|
|
7
|
-
import { SPRING_GENTLE as
|
|
8
|
-
const
|
|
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
|
|
27
|
-
if (
|
|
28
|
+
}, O = "40%";
|
|
29
|
+
function E(s, a, r) {
|
|
30
|
+
if (s == null)
|
|
28
31
|
return "–";
|
|
29
|
-
if (
|
|
30
|
-
return `${
|
|
31
|
-
const
|
|
32
|
-
return
|
|
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
|
|
37
|
+
const Y = L.forwardRef(
|
|
35
38
|
({
|
|
36
|
-
className:
|
|
37
|
-
value:
|
|
38
|
-
max:
|
|
39
|
-
dataHook:
|
|
40
|
-
trackingEl:
|
|
41
|
-
trackingLabel:
|
|
42
|
-
ariaLabel:
|
|
43
|
-
label:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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":
|
|
56
|
-
"aria-labelledby":
|
|
57
|
-
className:
|
|
58
|
-
"relative
|
|
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
|
-
!
|
|
61
|
-
|
|
71
|
+
!o && !d && g && "opacity-50",
|
|
72
|
+
s
|
|
62
73
|
),
|
|
63
|
-
"data-hook":
|
|
74
|
+
"data-hook": l,
|
|
64
75
|
"data-slot": "progress",
|
|
65
|
-
"data-tracking-el":
|
|
66
|
-
"data-tracking-label":
|
|
67
|
-
max:
|
|
68
|
-
value:
|
|
69
|
-
...
|
|
70
|
-
children:
|
|
71
|
-
|
|
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 -
|
|
101
|
+
transform: `translateX(-${100 - B}%)`
|
|
75
102
|
},
|
|
76
|
-
className:
|
|
103
|
+
className: e(
|
|
77
104
|
"h-full w-full flex-1",
|
|
78
105
|
f.indicator,
|
|
79
|
-
|
|
106
|
+
y
|
|
80
107
|
),
|
|
81
108
|
"data-slot": "progress-indicator",
|
|
82
109
|
initial: !1,
|
|
83
|
-
transition:
|
|
110
|
+
transition: k ? { duration: 0 } : H
|
|
84
111
|
}
|
|
85
112
|
) })
|
|
86
113
|
}
|
|
87
114
|
);
|
|
88
|
-
|
|
115
|
+
if (!o && !d && !u)
|
|
116
|
+
return R;
|
|
117
|
+
const S = /* @__PURE__ */ p(
|
|
89
118
|
"div",
|
|
90
119
|
{
|
|
91
|
-
className:
|
|
120
|
+
className: e(
|
|
92
121
|
"flex w-full items-center gap-2",
|
|
93
|
-
|
|
122
|
+
!u && g && "opacity-50"
|
|
94
123
|
),
|
|
95
124
|
"data-slot": "progress-wrapper",
|
|
96
125
|
children: [
|
|
97
|
-
|
|
126
|
+
o && /* @__PURE__ */ t(
|
|
98
127
|
"span",
|
|
99
128
|
{
|
|
100
|
-
className:
|
|
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:
|
|
103
|
-
|
|
138
|
+
id: N,
|
|
139
|
+
style: m ? void 0 : { width: x },
|
|
140
|
+
children: w
|
|
104
141
|
}
|
|
105
142
|
),
|
|
106
|
-
|
|
107
|
-
|
|
143
|
+
R,
|
|
144
|
+
d && /* @__PURE__ */ p(
|
|
108
145
|
"span",
|
|
109
146
|
{
|
|
110
|
-
className:
|
|
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:
|
|
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
|
-
|
|
197
|
+
Y.displayName = "Progress";
|
|
121
198
|
export {
|
|
122
|
-
|
|
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"),
|
|
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;
|