@brightlocal/ui-components 2.10.0 → 2.12.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 +3 -1
- package/component-meta.json +200 -17
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +42 -25
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.d.ts +16 -4
- package/dist/blocks/data-table.d.ts.map +1 -1
- package/dist/blocks/data-table.js +57 -53
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts +7 -1
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +82 -81
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +19 -10
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +173 -169
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts +14 -2
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +37 -37
- package/dist/button.cjs +1 -1
- package/dist/button.js +25 -25
- package/dist/callout.cjs +1 -1
- package/dist/callout.d.ts +3 -3
- package/dist/callout.d.ts.map +1 -1
- package/dist/callout.js +2 -1
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +10 -1
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +85 -82
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +37 -4
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.js +213 -163
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +11 -0
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +43 -38
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +12 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +235 -230
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +106 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +385 -120
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +10 -0
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +96 -96
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +38 -30
- package/dist/drawer.d.ts +2 -2
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +5 -0
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +15 -7
- package/dist/hooks/use-breakpoint.cjs +1 -1
- package/dist/hooks/use-breakpoint.d.ts.map +1 -1
- package/dist/hooks/use-breakpoint.js +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +406 -395
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.d.ts +8 -5
- package/dist/input-chip.d.ts.map +1 -1
- package/dist/input-chip.js +164 -170
- package/dist/input-group.d.ts +1 -1
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +10 -0
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +108 -106
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +1 -1
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +36 -37
- package/dist/list.d.ts +1 -1
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts +6 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +25 -22
- package/dist/map.cjs +1 -0
- package/dist/map.d.ts +207 -0
- package/dist/map.d.ts.map +1 -0
- package/dist/map.js +256 -0
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +29 -3
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +26 -25
- package/dist/rating.cjs +1 -1
- package/dist/rating.d.ts +6 -0
- package/dist/rating.d.ts.map +1 -1
- package/dist/rating.js +27 -19
- package/dist/resizable.d.ts +1 -1
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +7 -1
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +52 -51
- package/dist/separator.cjs +1 -1
- package/dist/separator.d.ts +16 -4
- package/dist/separator.d.ts.map +1 -1
- package/dist/separator.js +38 -35
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +6 -1
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +42 -41
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +5 -0
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +13 -11
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +32 -30
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +4 -0
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +101 -52
- package/dist/text-reveal-motion.cjs +1 -1
- package/dist/text-reveal-motion.d.ts +5 -0
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/text-reveal-motion.js +111 -110
- package/dist/typography.cjs +1 -1
- package/dist/typography.d.ts +1 -2
- package/dist/typography.d.ts.map +1 -1
- package/dist/typography.js +49 -50
- package/package.json +4 -5
- package/src/blocks/data-table.tsx +26 -9
- package/src/blocks/input-list.tsx +12 -1
- package/src/blocks/sidebar.tsx +61 -44
- package/src/components/badge.tsx +22 -5
- package/src/components/breadcrumb.tsx +43 -26
- package/src/components/button.tsx +13 -13
- package/src/components/callout.tsx +5 -4
- package/src/components/card.tsx +35 -19
- package/src/components/carousel.tsx +134 -13
- package/src/components/chip.tsx +22 -2
- package/src/components/combobox.tsx +18 -3
- package/src/components/command.tsx +644 -17
- package/src/components/date-picker.tsx +17 -3
- package/src/components/dialog.tsx +17 -4
- package/src/components/drawer.tsx +2 -2
- package/src/components/global-layout.tsx +15 -2
- package/src/components/input-chip.tsx +114 -66
- package/src/components/input-password.tsx +73 -49
- package/src/components/link.tsx +29 -17
- package/src/components/logo.tsx +10 -2
- package/src/components/map.tsx +597 -0
- package/src/components/pagination.tsx +44 -11
- package/src/components/rating.tsx +20 -2
- package/src/components/select.tsx +9 -1
- package/src/components/separator.tsx +40 -25
- package/src/components/sheet.tsx +28 -20
- package/src/components/skeleton.tsx +13 -2
- package/src/components/sonner.tsx +9 -3
- package/src/components/tabs.tsx +118 -22
- package/src/components/text-reveal-motion.tsx +7 -1
- package/src/components/typography.tsx +6 -7
- package/src/hooks/use-breakpoint.ts +2 -3
- package/src/index.ts +1 -0
|
@@ -1,107 +1,108 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as o, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
3
|
import { AnimatePresence as K, motion as $ } from "framer-motion";
|
|
4
4
|
import { X as P } from "@brightlocal/icons";
|
|
5
5
|
import { cn as g } from "@brightlocal/ui-components/lib/utils";
|
|
6
6
|
import { Button as B } from "../button.js";
|
|
7
7
|
import { Input as S } from "../input.js";
|
|
8
8
|
import { Item as k, ItemContent as V, ItemTitle as _, ItemActions as j } from "../list.js";
|
|
9
|
-
const
|
|
9
|
+
const w = s.createContext(
|
|
10
10
|
null
|
|
11
11
|
);
|
|
12
12
|
function x() {
|
|
13
|
-
const t =
|
|
13
|
+
const t = s.useContext(w);
|
|
14
14
|
if (!t)
|
|
15
15
|
throw new Error("InputList components must be used within an <InputList>");
|
|
16
16
|
return t;
|
|
17
17
|
}
|
|
18
18
|
function E({
|
|
19
19
|
value: t,
|
|
20
|
-
onValueChange:
|
|
21
|
-
children:
|
|
22
|
-
className:
|
|
23
|
-
dataHook:
|
|
24
|
-
trackingEl:
|
|
20
|
+
onValueChange: i,
|
|
21
|
+
children: d,
|
|
22
|
+
className: a,
|
|
23
|
+
dataHook: c,
|
|
24
|
+
trackingEl: l,
|
|
25
25
|
trackingLabel: I
|
|
26
26
|
}) {
|
|
27
|
-
const [p,
|
|
28
|
-
() => t.map((
|
|
29
|
-
), [
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
...
|
|
27
|
+
const [p, f] = s.useState(""), r = s.useRef(t.length), e = s.useRef(t.length), [y, h] = s.useState(
|
|
28
|
+
() => t.map((m, n) => n)
|
|
29
|
+
), [A, C] = s.useState(0);
|
|
30
|
+
s.useEffect(() => {
|
|
31
|
+
const m = r.current;
|
|
32
|
+
r.current = t.length, t.length > m && f(""), h((n) => n.length === t.length ? n : t.length > n.length ? [
|
|
33
|
+
...n,
|
|
34
34
|
...Array.from(
|
|
35
|
-
{ length: t.length -
|
|
36
|
-
() =>
|
|
35
|
+
{ length: t.length - n.length },
|
|
36
|
+
() => e.current++
|
|
37
37
|
)
|
|
38
|
-
] :
|
|
39
|
-
}, [t,
|
|
40
|
-
const L =
|
|
41
|
-
(
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
...
|
|
45
|
-
...
|
|
46
|
-
]),
|
|
38
|
+
] : n.slice(0, t.length));
|
|
39
|
+
}, [t, A]);
|
|
40
|
+
const L = s.useCallback(
|
|
41
|
+
(m) => {
|
|
42
|
+
const n = m.map((u) => u.trim()).filter(Boolean);
|
|
43
|
+
n.length && (h((u) => [
|
|
44
|
+
...u,
|
|
45
|
+
...n.map(() => e.current++)
|
|
46
|
+
]), i([...t, ...n]), C((u) => u + 1));
|
|
47
47
|
},
|
|
48
|
-
[t,
|
|
49
|
-
), b =
|
|
50
|
-
(
|
|
51
|
-
h((
|
|
48
|
+
[t, i]
|
|
49
|
+
), b = s.useCallback(
|
|
50
|
+
(m) => {
|
|
51
|
+
h((n) => n.filter((u, R) => R !== m)), i(t.filter((n, u) => u !== m));
|
|
52
52
|
},
|
|
53
|
-
[t,
|
|
54
|
-
), N =
|
|
53
|
+
[t, i]
|
|
54
|
+
), N = s.useMemo(
|
|
55
55
|
() => ({
|
|
56
56
|
value: t,
|
|
57
57
|
inputValue: p,
|
|
58
|
-
setInputValue:
|
|
58
|
+
setInputValue: f,
|
|
59
59
|
addItems: L,
|
|
60
60
|
removeItem: b,
|
|
61
61
|
stableKeys: y
|
|
62
62
|
}),
|
|
63
63
|
[t, p, L, b, y]
|
|
64
64
|
);
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ o(w.Provider, { value: N, children: /* @__PURE__ */ o(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
|
-
className: g("flex flex-col gap-4",
|
|
69
|
-
"data-hook":
|
|
68
|
+
className: g("flex flex-col gap-4", a),
|
|
69
|
+
"data-hook": c,
|
|
70
70
|
"data-slot": "input-list",
|
|
71
|
-
"data-tracking-el":
|
|
71
|
+
"data-tracking-el": l,
|
|
72
72
|
"data-tracking-label": I,
|
|
73
|
-
children:
|
|
73
|
+
children: d
|
|
74
74
|
}
|
|
75
75
|
) });
|
|
76
76
|
}
|
|
77
77
|
E.displayName = "InputList";
|
|
78
78
|
function z({
|
|
79
79
|
dataHook: t = "input-list",
|
|
80
|
-
loading:
|
|
81
|
-
skeletonCount:
|
|
82
|
-
disabled:
|
|
80
|
+
loading: i = !1,
|
|
81
|
+
skeletonCount: d = 5,
|
|
82
|
+
disabled: a = !1,
|
|
83
|
+
removeAriaLabel: c,
|
|
83
84
|
className: l
|
|
84
85
|
}) {
|
|
85
|
-
const { value:
|
|
86
|
-
return
|
|
86
|
+
const { value: I, removeItem: p, stableKeys: f } = x();
|
|
87
|
+
return i ? /* @__PURE__ */ o(
|
|
87
88
|
"ul",
|
|
88
89
|
{
|
|
89
90
|
className: g("flex flex-col gap-2", l),
|
|
90
91
|
"data-slot": "input-list-skeleton",
|
|
91
|
-
children: Array.from({ length:
|
|
92
|
+
children: Array.from({ length: d }).map((r, e) => /* @__PURE__ */ o(k, { variant: "loading" }, e))
|
|
92
93
|
}
|
|
93
|
-
) : /* @__PURE__ */
|
|
94
|
+
) : /* @__PURE__ */ o(
|
|
94
95
|
"ul",
|
|
95
96
|
{
|
|
96
97
|
className: g("flex flex-col gap-2", l),
|
|
97
98
|
"data-hook": `${t}-list`,
|
|
98
99
|
"data-slot": "list",
|
|
99
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ o(K, { initial: !1, mode: "popLayout", children: I.map((r, e) => /* @__PURE__ */ o(
|
|
100
101
|
$.li,
|
|
101
102
|
{
|
|
102
103
|
layout: !0,
|
|
103
104
|
animate: { opacity: 1, scale: 1 },
|
|
104
|
-
"data-hook": `${t}-item-${
|
|
105
|
+
"data-hook": `${t}-item-${e}`,
|
|
105
106
|
exit: {
|
|
106
107
|
opacity: 0,
|
|
107
108
|
scale: 0.8,
|
|
@@ -120,12 +121,12 @@ function z({
|
|
|
120
121
|
damping: 35
|
|
121
122
|
}
|
|
122
123
|
},
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
124
|
+
children: /* @__PURE__ */ o(k, { asChild: !0, variant: "filled", children: /* @__PURE__ */ D("div", { children: [
|
|
125
|
+
/* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(_, { children: r }) }),
|
|
126
|
+
/* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(
|
|
126
127
|
"button",
|
|
127
128
|
{
|
|
128
|
-
"aria-label": `Remove ${
|
|
129
|
+
"aria-label": c ? c.replace("{item}", r) : `Remove ${r}`,
|
|
129
130
|
className: g(
|
|
130
131
|
"inline-flex size-9 cursor-pointer items-center justify-center rounded-full",
|
|
131
132
|
"text-muted-foreground",
|
|
@@ -133,59 +134,59 @@ function z({
|
|
|
133
134
|
"transition-colors duration-150 ease-in-out",
|
|
134
135
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
135
136
|
),
|
|
136
|
-
"data-hook": `${t}-remove-${
|
|
137
|
-
disabled:
|
|
137
|
+
"data-hook": `${t}-remove-${e}`,
|
|
138
|
+
disabled: a,
|
|
138
139
|
type: "button",
|
|
139
|
-
onClick: () =>
|
|
140
|
-
children: /* @__PURE__ */
|
|
140
|
+
onClick: () => p(e),
|
|
141
|
+
children: /* @__PURE__ */ o(P, {})
|
|
141
142
|
}
|
|
142
143
|
) })
|
|
143
144
|
] }) })
|
|
144
145
|
},
|
|
145
|
-
|
|
146
|
+
f[e]
|
|
146
147
|
)) })
|
|
147
148
|
}
|
|
148
149
|
);
|
|
149
150
|
}
|
|
150
151
|
z.displayName = "InputListItems";
|
|
151
|
-
const M =
|
|
152
|
-
({ dataHook: t, error:
|
|
153
|
-
const { inputValue:
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
const h =
|
|
152
|
+
const M = s.forwardRef(
|
|
153
|
+
({ dataHook: t, error: i = !1, className: d, ...a }, c) => {
|
|
154
|
+
const { inputValue: l, setInputValue: I, addItems: p } = x(), f = (e) => {
|
|
155
|
+
e.key === "Enter" && (e.preventDefault(), p([l])), a.onKeyDown?.(e);
|
|
156
|
+
}, r = (e) => {
|
|
157
|
+
const h = e.clipboardData.getData("text").split(`
|
|
157
158
|
`);
|
|
158
|
-
h.length > 1 && (
|
|
159
|
+
h.length > 1 && (e.preventDefault(), p(h)), a.onPaste?.(e);
|
|
159
160
|
};
|
|
160
|
-
return /* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ o(
|
|
161
162
|
S,
|
|
162
163
|
{
|
|
163
|
-
ref:
|
|
164
|
-
...
|
|
165
|
-
className: g("flex-1",
|
|
164
|
+
ref: c,
|
|
165
|
+
...a,
|
|
166
|
+
className: g("flex-1", d),
|
|
166
167
|
dataHook: t,
|
|
167
|
-
error:
|
|
168
|
-
value:
|
|
169
|
-
onChange: (
|
|
170
|
-
I(
|
|
168
|
+
error: i,
|
|
169
|
+
value: l,
|
|
170
|
+
onChange: (e) => {
|
|
171
|
+
I(e.target.value), a.onChange?.(e);
|
|
171
172
|
},
|
|
172
|
-
onKeyDown:
|
|
173
|
-
onPaste:
|
|
173
|
+
onKeyDown: f,
|
|
174
|
+
onPaste: r
|
|
174
175
|
}
|
|
175
176
|
);
|
|
176
177
|
}
|
|
177
178
|
);
|
|
178
179
|
M.displayName = "InputListInput";
|
|
179
|
-
const T =
|
|
180
|
-
const { inputValue:
|
|
181
|
-
return /* @__PURE__ */
|
|
180
|
+
const T = s.forwardRef(({ dataHook: t, children: i, ...d }, a) => {
|
|
181
|
+
const { inputValue: c, addItems: l } = x();
|
|
182
|
+
return /* @__PURE__ */ o(
|
|
182
183
|
B,
|
|
183
184
|
{
|
|
184
|
-
ref:
|
|
185
|
-
...
|
|
185
|
+
ref: a,
|
|
186
|
+
...d,
|
|
186
187
|
dataHook: t,
|
|
187
|
-
onClick: () =>
|
|
188
|
-
children:
|
|
188
|
+
onClick: () => l([c]),
|
|
189
|
+
children: i
|
|
189
190
|
}
|
|
190
191
|
);
|
|
191
192
|
});
|
package/dist/blocks/sidebar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),Se=require("react"),N=require("@radix-ui/react-slot"),D=require("class-variance-authority"),u=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils"),we=require("../button.cjs"),ke=require("../input.cjs"),Ne=require("../separator.cjs"),C=require("../sheet.cjs"),I=require("../accordion.cjs"),ye=require("@radix-ui/react-accordion"),je=require("../scroll-area.cjs"),_=require("../skeleton.cjs"),M=require("../tooltip.cjs"),Ce=require("../hooks/use-breakpoint.cjs");function B(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=B(Se),Me=B(ye);var L=(e=>(e.LEFT="left",e))(L||{}),P=(e=>(e.SIDEBAR="sidebar",e))(P||{}),q=(e=>(e.OFFCANVAS="offcanvas",e.ICON="icon",e.NONE="none",e))(q||{}),G=(e=>(e.DEFAULT="default",e.SM="sm",e.XS="xs",e))(G||{}),H=(e=>(e.DEFAULT="default",e.COLLAPSIBLE="collapsible",e.ACTION="action",e))(H||{}),F=(e=>(e.SIMPLE="simple",e.COLLAPSIBLE="collapsible",e.DROPDOWN="dropdown",e.TREE="tree",e.BADGE="badge",e.BIG_ICON="bigIcon",e.CHECKBOX="checkbox",e))(F||{}),K=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e))(K||{}),U=(e=>(e.DEFAULT="default",e.BORDER="border",e.INDENT="indent",e))(U||{}),V=(e=>(e.SM="sm",e.MD="md",e))(V||{}),W=(e=>(e.CARET="caret",e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e.UP_DOWN="upDown",e.PLUS_MINUS="plusMinus",e.DOTS="dots",e))(W||{});const Re="sidebar:state",Ie=3600*24*7,De="224px",Ae="336px",Ee="48px",Oe="b",X=n.createContext(null);function k(){const e=n.useContext(X);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const $=n.forwardRef(({dataHook:e,trackingEl:a,trackingLabel:t,defaultOpen:o=!0,open:i,onOpenChange:s,className:l,style:c,children:S,...x},m)=>{const b=Ce.useIsBelowBreakpoint("lg"),[p,h]=n.useState(!1),[f,R]=n.useState(o),w=i??f,y=n.useCallback(g=>{const v=typeof g=="function"?g(w):g;s?s(v):R(v),document.cookie=`${Re}=${v}; path=/; max-age=${Ie}`},[s,w]),j=n.useCallback(()=>b?h(g=>!g):y(g=>!g),[b,y,h]);n.useEffect(()=>{const g=v=>{v.key===Oe&&(v.metaKey||v.ctrlKey)&&(v.preventDefault(),j())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[j]);const z=w?"expanded":"collapsed",ve=n.useMemo(()=>({state:z,open:w,setOpen:y,isMobile:b,openMobile:p,setOpenMobile:h,toggleSidebar:j}),[z,w,y,b,p,h,j]);return r.jsx(X.Provider,{value:ve,children:r.jsx(M.TooltipProvider,{delayDuration:0,children:r.jsx("div",{ref:m,className:d.cn("group/sidebar-wrapper flex min-h-svh w-full",l),"data-hook":e,"data-slot":"sidebar-provider","data-tracking-el":a||"sidebar-provider","data-tracking-label":t,style:{"--sidebar-width":De,"--sidebar-width-icon":Ee,...c},...x,children:S})})})});$.displayName="SidebarProvider";const Y=n.forwardRef(({dataHook:e,trackingEl:a,trackingLabel:t,side:o="left",variant:i="sidebar",collapsible:s="offcanvas",embedded:l,mobileTitle:c="Navigation",mobileDescription:S="Main navigation menu",className:x,children:m,...b},p)=>{const{isMobile:h,state:f,openMobile:R,setOpenMobile:w}=k();return s==="none"?r.jsx("div",{ref:p,className:d.cn("text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",x),"data-hook":e,"data-slot":"sidebar","data-tracking-el":a||"sidebar","data-tracking-label":t,...b,children:m}):h?r.jsx(C.Sheet,{open:R,onOpenChange:w,children:r.jsxs(C.SheetContent,{className:"bg-sidebar-background text-sidebar-foreground w-[var(--sidebar-width)] p-6","data-hook":`${e}-mobile-content`,"data-mobile":"true","data-sidebar":"sidebar",side:"left",style:{"--sidebar-width":`min(${Ae}, calc(100vw - 40px))`},children:[r.jsx(C.SheetTitle,{className:"sr-only",children:c}),r.jsx(C.SheetDescription,{className:"sr-only",children:S}),r.jsx("div",{className:"flex h-full w-full flex-col",children:m})]})}):r.jsx("div",{ref:p,className:d.cn("group text-sidebar-foreground flex h-full shrink-0 flex-col overflow-hidden transition-[width] duration-200 ease-linear",f==="expanded"&&"w-[var(--sidebar-width)]",s==="icon"&&f==="collapsed"&&"w-[var(--sidebar-width-icon)]",s==="offcanvas"&&f==="collapsed"&&"w-0",x),"data-collapsible":f==="collapsed"?s:"","data-hook":e,"data-side":o,"data-slot":"sidebar","data-state":f,"data-tracking-el":a||"sidebar","data-tracking-label":t,"data-variant":i,...b,children:m})});Y.displayName="Sidebar";const A=n.forwardRef(({className:e,onClick:a,dataHook:t="sidebar-trigger",children:o,...i},s)=>{const{toggleSidebar:l}=k();return r.jsxs(we.Button,{ref:s,iconOnly:!0,"aria-label":"Toggle Sidebar",className:d.cn("h-7 w-7",e),"data-slot":"sidebar-trigger",dataHook:t,size:"sm",variant:"ghost",onClick:c=>{a?.(c),l()},...i,children:[o||r.jsx(u.PanelLeft,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});A.displayName="SidebarTrigger";const Z=n.forwardRef(({className:e,...a},t)=>{const{toggleSidebar:o}=k();return r.jsx("button",{ref:t,"aria-label":"Toggle Sidebar",className:d.cn("hover:after:bg-sidebar-border absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","cursor-w-resize","[[data-state=collapsed]_&]:cursor-e-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar-background group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-collapsible=offcanvas]_&]:-right-2",e),"data-slot":"sidebar-rail",tabIndex:-1,title:"Toggle Sidebar",onClick:o,...a})});Z.displayName="SidebarRail";const J=n.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:o,...i},s)=>r.jsx("main",{ref:s,className:d.cn("bg-background relative flex min-h-svh flex-1 flex-col",e),"data-hook":a,"data-slot":"sidebar-inset","data-tracking-el":t||"sidebar-inset","data-tracking-label":o,...i}));J.displayName="SidebarInset";const Q=n.forwardRef(({className:e,...a},t)=>r.jsx(ke.Input,{ref:t,className:d.cn("bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",e),"data-slot":"sidebar-input",dataHook:"sidebar-input",...a}));Q.displayName="SidebarInput";const ee=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("div",{ref:o,className:d.cn("pr-section-xs flex flex-col gap-2 pt-2 pb-9 pl-8",e),"data-hook":a,"data-slot":"sidebar-header",...t}));ee.displayName="SidebarHeader";const ae=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("div",{ref:o,className:d.cn("flex flex-col gap-2 p-2",e),"data-hook":a,"data-slot":"sidebar-footer",...t}));ae.displayName="SidebarFooter";const te=n.forwardRef(({className:e,...a},t)=>r.jsx(Ne.Separator,{ref:t,className:d.cn("bg-sidebar-border mx-2 my-2 w-auto group-data-[collapsible=icon]:mx-0",e),"data-slot":"sidebar-separator",...a}));te.displayName="SidebarSeparator";const re=n.forwardRef(({className:e,dataHook:a,ariaLabel:t="Sidebar",children:o,...i},s)=>{const{isMobile:l}=k();return r.jsx(je.ScrollArea,{ref:s,className:d.cn("min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden [&>[data-slot=scroll-area-viewport]]:p-0",e),dataHook:a??"sidebar-content-scroll",scrollOrientation:l?"both":"vertical",...i,children:r.jsx("nav",{"aria-label":t,className:"flex flex-col gap-2","data-slot":"sidebar-content",children:o})})});re.displayName="SidebarContent";const oe=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("div",{ref:o,className:d.cn("relative flex w-full min-w-0 flex-col p-2",e),"data-hook":a,"data-slot":"sidebar-group",...t}));oe.displayName="SidebarGroup";const Te=D.cva("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",{variants:{size:{default:"text-sm",sm:"text-sm",xs:"text-xs"},variant:{default:"",collapsible:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",action:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"}},defaultVariants:{size:"sm",variant:"default"}}),ie=n.forwardRef(({className:e,dataHook:a,asChild:t=!1,size:o="sm",variant:i="default",isOpen:s=!1,onToggle:l,onAction:c,children:S,...x},m)=>{const b=t?N.Slot:"div",p=()=>{i==="collapsible"&&l?l():i==="action"&&c&&c()},h=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),p())};return r.jsxs(b,{ref:m,className:d.cn(Te({size:o,variant:i}),e),"data-hook":a,"data-slot":"sidebar-group-label","data-variant":i,role:i!=="default"?"button":void 0,tabIndex:i!=="default"?0:void 0,onClick:i!=="default"?p:void 0,onKeyDown:i!=="default"?h:void 0,...x,children:[r.jsx("span",{children:S}),i==="collapsible"&&r.jsx(u.ChevronDown,{className:d.cn("shrink-0 transition-transform duration-200",s&&"rotate-180"),size:16}),i==="action"&&r.jsx(u.Plus,{className:"shrink-0",size:16})]})});ie.displayName="SidebarGroupLabel";const se=n.forwardRef(({className:e,asChild:a=!1,...t},o)=>{const i=a?N.Slot:"button";return r.jsx(i,{ref:o,className:d.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-group-action",...t})});se.displayName="SidebarGroupAction";const ne=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("div",{ref:o,className:d.cn("w-full text-sm",e),"data-hook":a,"data-slot":"sidebar-group-content",...t}));ne.displayName="SidebarGroupContent";const de=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("ul",{ref:o,className:d.cn("flex w-full min-w-0 flex-col gap-1",e),"data-hook":a,"data-slot":"sidebar-menu",...t}));de.displayName="SidebarMenu";const E=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("li",{ref:o,className:d.cn("group/menu-item relative",e),"data-hook":a,"data-slot":"sidebar-menu-item",...t}));E.displayName="SidebarMenuItem";const le=n.forwardRef(({type:e="caret",isActive:a=!1,className:t,...o},i)=>{const s={ref:i,className:d.cn("shrink-0 transition-transform",a&&e==="caret"&&"rotate-90",t),"data-slot":"sidebar-collapse-icon",...o};switch(e){case"horizontal":return r.jsx(u.ChevronRight,{...s});case"vertical":return r.jsx(u.ChevronDown,{...s});case"upDown":return r.jsx(u.ChevronsUpDown,{...s});case"plusMinus":return a?r.jsx(u.Minus,{...s}):r.jsx(u.Plus,{...s});case"dots":return r.jsx(u.Ellipsis,{...s});default:return r.jsx(u.ChevronRight,{...s})}});le.displayName="SidebarCollapseIcon";const ze=D.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none ring-sidebar-ring transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-150 ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:last-child]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",{variants:{variant:{simple:"",collapsible:"[&>[data-collapse-icon]]:ml-auto [&>[data-collapse-icon]]:transition-transform data-[state=open]:[&>[data-collapse-icon]]:rotate-90",dropdown:"group-has-[[data-sidebar=menu-action]]/menu-item:pr-8",tree:"[&>[data-tree-icon]]:size-4 [&>[data-tree-icon]]:shrink-0 [&>[data-tree-icon]]:opacity-70 [&>[data-tree-icon]]:transition-transform data-[state=open]:[&>[data-tree-icon]]:rotate-90 group-data-[collapsible=icon]:[&>[data-tree-icon]]:hidden",badge:"group-has-[[data-sidebar=menu-badge]]/menu-item:pr-16",bigIcon:"h-auto flex-col items-start gap-1 rounded-lg p-3 [&>svg]:size-6 [&>svg]:rounded-md [&>svg]:bg-sidebar-foreground [&>svg]:p-1 [&>svg]:text-sidebar-background [&>svg]:opacity-100 hover:[&>svg]:bg-sidebar-foreground hover:[&>svg]:text-sidebar-background group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:[&>svg]:size-6",checkbox:"[&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground"},size:{default:"h-12 text-sm/4",sm:"h-7 text-xs/4",lg:"h-12 text-sm/4 group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"simple",size:"default"}}),O=n.forwardRef(({asChild:e=!1,isActive:a=!1,variant:t="simple",size:o="default",tooltip:i,className:s,dataHook:l,...c},S)=>{const x=e?N.Slot:"button",{isMobile:m,state:b}=k(),p=r.jsx(x,{ref:S,className:d.cn(ze({variant:t,size:o}),s),"data-active":a,"data-hook":l,"data-size":o,"data-slot":"sidebar-menu-button","data-variant":t,...c});return i?(typeof i=="string"&&(i={children:i,dataHook:"sidebar-menu-button-tooltip"}),r.jsxs(M.Tooltip,{children:[r.jsx(M.TooltipTrigger,{asChild:!0,children:p}),r.jsx(M.TooltipContent,{hideArrow:!0,...i,align:"center",className:d.cn("bg-foreground text-background border-none",i.className),hidden:b!=="collapsed"||m,side:"right",sideOffset:8})]})):p});O.displayName="SidebarMenuButton";const ce=n.forwardRef(({className:e,asChild:a=!1,showOnHover:t=!1,...o},i)=>{const s=a?N.Slot:"button";return r.jsx(s,{ref:i,className:d.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","peer-data-[size=bigIcon]/menu-button:top-2.5","peer-data-[size=tree]/menu-button:top-1.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),"data-slot":"sidebar-menu-action",...o})});ce.displayName="SidebarMenuAction";const ue=n.forwardRef(({className:e,...a},t)=>r.jsx("div",{ref:t,className:d.cn("text-sidebar-foreground pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-menu-badge",...a}));ue.displayName="SidebarMenuBadge";const be=n.forwardRef(({className:e,showIcon:a=!1,...t},o)=>{const i=n.useId(),s=n.useMemo(()=>{let l=0;for(let c=0;c<i.length;c++)l=(l<<5)-l+i.charCodeAt(c),l|=0;return`${Math.abs(l)%40+50}%`},[i]);return r.jsxs("div",{ref:o,className:d.cn("flex h-8 items-center gap-2 rounded-md px-2",e),"data-slot":"sidebar-menu-skeleton",...t,children:[a&&r.jsx(_.Skeleton,{className:"size-4 rounded-md","data-slot":"sidebar-menu-skeleton-icon"}),r.jsx(_.Skeleton,{className:"h-4 max-w-[--skeleton-width] flex-1","data-slot":"sidebar-menu-skeleton-text",style:{"--skeleton-width":s}})]})});be.displayName="SidebarMenuSkeleton";const _e=D.cva("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",{variants:{variant:{default:"",border:"border-l border-sidebar-border",indent:"ml-0 border-l-0"}},defaultVariants:{variant:"border"}}),T=n.forwardRef(({className:e,variant:a="border",dataHook:t,...o},i)=>r.jsx("ul",{ref:i,className:d.cn(_e({variant:a}),e),"data-hook":t,"data-slot":"sidebar-menu-sub",...o}));T.displayName="SidebarMenuSub";const pe=n.forwardRef(({dataHook:e,...a},t)=>r.jsx("li",{ref:t,"data-hook":e,"data-slot":"sidebar-menu-sub-item",...a}));pe.displayName="SidebarMenuSubItem";const fe=n.forwardRef(({asChild:e=!1,size:a="md",isActive:t,className:o,dataHook:i,...s},l)=>{const c=e?N.Slot:"a";return r.jsx(c,{ref:l,className:d.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] duration-150 ease-in-out outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),"data-active":t,"data-hook":i,"data-size":a,"data-slot":"sidebar-menu-sub-button",...s})});fe.displayName="SidebarMenuSubButton";function ge({dataHook:e,className:a,children:t,defaultOpen:o,open:i,onOpenChange:s}){return r.jsx(E,{children:r.jsx(I.Accordion,{collapsible:!0,className:a,dataHook:e??"sidebar-menu-collapsible",defaultValue:o?"item":void 0,type:"single",value:i!==void 0?i?"item":"":void 0,onValueChange:s?l=>s(l==="item"):void 0,children:r.jsx(I.AccordionItem,{className:"group/collapsible border-none",value:"item",children:t})})})}ge.displayName="SidebarMenuCollapsible";const me=n.forwardRef(({children:e,className:a,...t},o)=>r.jsx(Me.Trigger,{asChild:!0,children:r.jsxs(O,{ref:o,className:d.cn("relative",a),variant:"collapsible",...t,children:[r.jsx(u.ChevronRight,{"data-collapse-icon":!0,className:"absolute left-2.5 !opacity-100 transition-transform duration-200 ease-out group-data-[state=open]/collapsible:rotate-90",size:12}),e]})}));me.displayName="SidebarMenuCollapsibleTrigger";const xe=n.forwardRef(({dataHook:e,children:a,...t},o)=>r.jsx(I.AccordionContent,{className:"p-0",children:r.jsx(T,{ref:o,dataHook:e,...t,children:a})}));xe.displayName="SidebarMenuCollapsibleContent";const he=n.forwardRef(({className:e,dataHook:a="sidebar-drawer",trackingEl:t,trackingLabel:o,children:i,...s},l)=>r.jsx("div",{ref:l,className:e,"data-hook":a,"data-slot":"sidebar-drawer","data-tracking-el":t,"data-tracking-label":o,...s,children:r.jsx(A,{dataHook:`${a}-trigger`,children:r.jsx(u.Menu,{size:24})})}));he.displayName="SidebarDrawer";exports.Sidebar=Y;exports.SidebarCollapseIcon=le;exports.SidebarCollapseIconType=W;exports.SidebarCollapsible=q;exports.SidebarContent=re;exports.SidebarDrawer=he;exports.SidebarFooter=ae;exports.SidebarGroup=oe;exports.SidebarGroupAction=se;exports.SidebarGroupContent=ne;exports.SidebarGroupLabel=ie;exports.SidebarGroupLabelSize=G;exports.SidebarGroupLabelVariant=H;exports.SidebarHeader=ee;exports.SidebarInput=Q;exports.SidebarInset=J;exports.SidebarMenu=de;exports.SidebarMenuAction=ce;exports.SidebarMenuBadge=ue;exports.SidebarMenuButton=O;exports.SidebarMenuButtonSize=K;exports.SidebarMenuButtonVariant=F;exports.SidebarMenuCollapsible=ge;exports.SidebarMenuCollapsibleContent=xe;exports.SidebarMenuCollapsibleTrigger=me;exports.SidebarMenuItem=E;exports.SidebarMenuSkeleton=be;exports.SidebarMenuSub=T;exports.SidebarMenuSubButton=fe;exports.SidebarMenuSubButtonSize=V;exports.SidebarMenuSubItem=pe;exports.SidebarMenuSubVariant=U;exports.SidebarProvider=$;exports.SidebarRail=Z;exports.SidebarSeparator=te;exports.SidebarSide=L;exports.SidebarTrigger=A;exports.SidebarVariant=P;exports.useSidebar=k;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),Se=require("react"),y=require("@radix-ui/react-slot"),D=require("class-variance-authority"),u=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils"),we=require("../button.cjs"),ke=require("../input.cjs"),ye=require("../separator.cjs"),M=require("../sheet.cjs"),I=require("../accordion.cjs"),Ne=require("@radix-ui/react-accordion"),je=require("../scroll-area.cjs"),L=require("../skeleton.cjs"),C=require("../tooltip.cjs"),Me=require("../hooks/use-breakpoint.cjs");function _(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=_(Se),Ce=_(Ne);var z=(e=>(e.LEFT="left",e))(z||{}),P=(e=>(e.SIDEBAR="sidebar",e))(P||{}),q=(e=>(e.OFFCANVAS="offcanvas",e.ICON="icon",e.NONE="none",e))(q||{}),G=(e=>(e.DEFAULT="default",e.SM="sm",e.XS="xs",e))(G||{}),H=(e=>(e.DEFAULT="default",e.COLLAPSIBLE="collapsible",e.ACTION="action",e))(H||{}),F=(e=>(e.SIMPLE="simple",e.COLLAPSIBLE="collapsible",e.DROPDOWN="dropdown",e.BADGE="badge",e.BIG_ICON="bigIcon",e.CHECKBOX="checkbox",e))(F||{}),K=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e))(K||{}),U=(e=>(e.DEFAULT="default",e.BORDER="border",e.INDENT="indent",e))(U||{}),V=(e=>(e.SM="sm",e.MD="md",e))(V||{}),W=(e=>(e.CARET="caret",e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e.UP_DOWN="upDown",e.PLUS_MINUS="plusMinus",e.DOTS="dots",e))(W||{});const Re="sidebar:state",Ie=3600*24*7,De="224px",Ae="336px",Oe="48px",Ee="b",X=n.createContext(null);function k(){const e=n.useContext(X);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const $=n.forwardRef(({dataHook:e,trackingEl:a,trackingLabel:t,defaultOpen:o=!0,open:s,onOpenChange:i,className:l,style:c,children:m,...g},x)=>{const b=Me.useIsBelowBreakpoint("lg"),[p,v]=n.useState(!1),[f,R]=n.useState(o),w=s??f,N=n.useCallback(h=>{const S=typeof h=="function"?h(w):h;i?i(S):R(S),document.cookie=`${Re}=${S}; path=/; max-age=${Ie}`},[i,w]),j=n.useCallback(()=>b?v(h=>!h):N(h=>!h),[b,N,v]);n.useEffect(()=>{const h=S=>{S.key===Ee&&(S.metaKey||S.ctrlKey)&&(S.preventDefault(),j())};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[j]);const B=w?"expanded":"collapsed",ve=n.useMemo(()=>({state:B,open:w,setOpen:N,isMobile:b,openMobile:p,setOpenMobile:v,toggleSidebar:j}),[B,w,N,b,p,v,j]);return r.jsx(X.Provider,{value:ve,children:r.jsx(C.TooltipProvider,{delayDuration:0,children:r.jsx("div",{ref:x,className:d.cn("group/sidebar-wrapper flex min-h-svh w-full",l),"data-hook":e,"data-slot":"sidebar-provider","data-tracking-el":a||"sidebar-provider","data-tracking-label":t,style:{"--sidebar-width":De,"--sidebar-width-icon":Oe,...c},...g,children:m})})})});$.displayName="SidebarProvider";const Y=n.forwardRef(({dataHook:e,trackingEl:a,trackingLabel:t,side:o="left",variant:s="sidebar",collapsible:i="offcanvas",embedded:l,mobileTitle:c,mobileDescription:m,className:g,children:x,...b},p)=>{const{isMobile:v,state:f,openMobile:R,setOpenMobile:w}=k();return i==="none"?r.jsx("div",{ref:p,className:d.cn("text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",g),"data-hook":e,"data-slot":"sidebar","data-tracking-el":a||"sidebar","data-tracking-label":t,...b,children:x}):v?r.jsx(M.Sheet,{open:R,onOpenChange:w,children:r.jsxs(M.SheetContent,{className:"bg-sidebar-background text-sidebar-foreground w-(--sidebar-width) p-6","data-hook":`${e}-mobile-content`,"data-mobile":"true","data-sidebar":"sidebar",side:"left",style:{"--sidebar-width":`min(${Ae}, calc(100vw - 40px))`},children:[r.jsx(M.SheetTitle,{className:"sr-only",children:c??"Navigation"}),r.jsx(M.SheetDescription,{className:"sr-only",children:m??"Main navigation menu"}),r.jsx("div",{className:"flex h-full w-full flex-col",children:x})]})}):r.jsx("div",{ref:p,className:d.cn("group text-sidebar-foreground flex h-full shrink-0 flex-col overflow-hidden transition-[width] duration-200 ease-linear",f==="expanded"&&"w-(--sidebar-width)",i==="icon"&&f==="collapsed"&&"w-(--sidebar-width-icon)",i==="offcanvas"&&f==="collapsed"&&"w-0",g),"data-collapsible":f==="collapsed"?i:"","data-hook":e,"data-side":o,"data-slot":"sidebar","data-state":f,"data-tracking-el":a||"sidebar","data-tracking-label":t,"data-variant":s,...b,children:x})});Y.displayName="Sidebar";const A=n.forwardRef(({className:e,onClick:a,dataHook:t="sidebar-trigger",toggleAriaLabel:o,children:s,...i},l)=>{const{toggleSidebar:c}=k(),m=o??"Toggle Sidebar";return r.jsxs(we.Button,{ref:l,iconOnly:!0,"aria-label":m,className:d.cn("h-7 w-7",e),"data-slot":"sidebar-trigger",dataHook:t,size:"sm",variant:"ghost",onClick:g=>{a?.(g),c()},...i,children:[s||r.jsx(u.PanelLeft,{}),r.jsx("span",{className:"sr-only",children:m})]})});A.displayName="SidebarTrigger";const Z=n.forwardRef(({className:e,toggleAriaLabel:a,...t},o)=>{const{toggleSidebar:s}=k(),i=a??"Toggle Sidebar";return r.jsx("button",{ref:o,"aria-label":i,className:d.cn("hover:after:bg-sidebar-border absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 sm:flex","cursor-w-resize","in-data-[state=collapsed]:cursor-e-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar-background group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","in-data-[collapsible=offcanvas]:-right-2",e),"data-slot":"sidebar-rail",tabIndex:-1,title:i,onClick:s,...t})});Z.displayName="SidebarRail";const J=n.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:o,...s},i)=>r.jsx("main",{ref:i,className:d.cn("bg-background relative flex min-h-svh flex-1 flex-col",e),"data-hook":a,"data-slot":"sidebar-inset","data-tracking-el":t||"sidebar-inset","data-tracking-label":o,...s}));J.displayName="SidebarInset";const Q=n.forwardRef(({className:e,...a},t)=>r.jsx(ke.Input,{ref:t,className:d.cn("bg-background focus-visible:ring-sidebar-ring h-8 w-full shadow-none focus-visible:ring-2",e),"data-slot":"sidebar-input",dataHook:"sidebar-input",...a}));Q.displayName="SidebarInput";const ee=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("header",{ref:o,className:d.cn("pr-section-xs flex flex-col gap-2 pt-2 pb-9 pl-8",e),"data-hook":a,"data-slot":"sidebar-header",...t}));ee.displayName="SidebarHeader";const ae=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("footer",{ref:o,className:d.cn("flex flex-col gap-2 p-2",e),"data-hook":a,"data-slot":"sidebar-footer",...t}));ae.displayName="SidebarFooter";const te=n.forwardRef(({className:e,...a},t)=>r.jsx(ye.Separator,{ref:t,className:d.cn("bg-sidebar-border mx-2 my-5 w-auto group-data-[collapsible=icon]:mx-0",e),"data-slot":"sidebar-separator",...a}));te.displayName="SidebarSeparator";const re=n.forwardRef(({className:e,dataHook:a,ariaLabel:t="Sidebar",children:o,...s},i)=>{const{isMobile:l}=k();return r.jsx(je.ScrollArea,{ref:i,className:d.cn("min-h-0 flex-1 group-data-[collapsible=icon]:overflow-hidden *:data-[slot=scroll-area-viewport]:p-0 [&_[data-slot=scroll-area-viewport]>div]:block!",e),dataHook:a??"sidebar-content-scroll",scrollOrientation:l?"both":"vertical",...s,children:r.jsx("nav",{"aria-label":t,className:"flex flex-col gap-2","data-slot":"sidebar-content",children:o})})});re.displayName="SidebarContent";const oe=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("div",{ref:o,className:d.cn("relative flex w-full min-w-0 flex-col p-2",e),"data-hook":a,"data-slot":"sidebar-group",...t}));oe.displayName="SidebarGroup";const Te=D.cva("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:shrink-0 group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",{variants:{size:{default:"text-sm",sm:"text-sm",xs:"text-xs"},variant:{default:"",collapsible:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",action:"w-full justify-between cursor-pointer hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"}},defaultVariants:{size:"sm",variant:"default"}}),se=n.forwardRef(({className:e,dataHook:a,asChild:t=!1,size:o="sm",variant:s="default",isOpen:i=!1,onToggle:l,onAction:c,children:m,...g},x)=>{const b=t?y.Slot:"div",p=()=>{s==="collapsible"&&l?l():s==="action"&&c&&c()},v=f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),p())};return r.jsxs(b,{ref:x,className:d.cn(Te({size:o,variant:s}),e),"data-hook":a,"data-slot":"sidebar-group-label","data-variant":s,role:s!=="default"?"button":void 0,tabIndex:s!=="default"?0:void 0,onClick:s!=="default"?p:void 0,onKeyDown:s!=="default"?v:void 0,...g,children:[r.jsx("span",{children:m}),s==="collapsible"&&r.jsx(u.ChevronDown,{className:d.cn("shrink-0 transition-transform duration-200",i&&"rotate-180"),size:16}),s==="action"&&r.jsx(u.Plus,{className:"shrink-0",size:16})]})});se.displayName="SidebarGroupLabel";const ie=n.forwardRef(({className:e,asChild:a=!1,...t},o)=>{const s=a?y.Slot:"button";return r.jsx(s,{ref:o,className:d.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-group-action",...t})});ie.displayName="SidebarGroupAction";const ne=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("div",{ref:o,className:d.cn("w-full text-sm",e),"data-hook":a,"data-slot":"sidebar-group-content",...t}));ne.displayName="SidebarGroupContent";const de=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("ul",{ref:o,className:d.cn("flex w-full min-w-0 flex-col gap-1",e),"data-hook":a,"data-slot":"sidebar-menu",...t}));de.displayName="SidebarMenu";const O=n.forwardRef(({className:e,dataHook:a,...t},o)=>r.jsx("li",{ref:o,className:d.cn("group/menu-item relative",e),"data-hook":a,"data-slot":"sidebar-menu-item",...t}));O.displayName="SidebarMenuItem";const le=n.forwardRef(({type:e="caret",isActive:a=!1,className:t,...o},s)=>{const i={ref:s,className:d.cn("shrink-0 transition-transform",a&&e==="caret"&&"rotate-90",t),"data-slot":"sidebar-collapse-icon",...o};switch(e){case"horizontal":return r.jsx(u.ChevronRight,{...i});case"vertical":return r.jsx(u.ChevronDown,{...i});case"upDown":return r.jsx(u.ChevronsUpDown,{...i});case"plusMinus":return a?r.jsx(u.Minus,{...i}):r.jsx(u.Plus,{...i});case"dots":return r.jsx(u.Ellipsis,{...i});default:return r.jsx(u.ChevronRight,{...i})}});le.displayName="SidebarCollapseIcon";const Be=D.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-full px-6 py-2 text-left text-sm font-medium outline-none ring-sidebar-ring transition-[color,background-color,border-color,box-shadow,opacity,width,height,padding] duration-150 ease-in-out hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:rounded-md [&>span:last-of-type]:truncate [&>svg]:shrink-0 [&>svg]:opacity-70 data-[active=true]:[&>svg]:opacity-100 group-data-[collapsible=icon]:[&>span]:hidden group-data-[collapsible=icon]:[&>div]:hidden",{variants:{variant:{simple:"",collapsible:"[&>[data-collapse-icon]]:ml-auto [&>[data-collapse-icon]]:transition-transform data-[state=open]:[&>[data-collapse-icon]]:rotate-90",dropdown:"group-has-[[data-sidebar=menu-action]]/menu-item:pr-8",badge:"group-has-[[data-sidebar=menu-badge]]/menu-item:pr-16",bigIcon:"h-auto flex-col items-start gap-1 rounded-lg p-3 [&>svg]:size-6 [&>svg]:rounded-md [&>svg]:bg-sidebar-foreground [&>svg]:p-1 [&>svg]:text-sidebar-background [&>svg]:opacity-100 hover:[&>svg]:bg-sidebar-foreground hover:[&>svg]:text-sidebar-background group-data-[collapsible=icon]:!size-10 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:[&>svg]:size-6",checkbox:"px-3 [&>[data-checkbox]]:size-4 [&>[data-checkbox]]:shrink-0 [&>[data-checkbox]]:rounded [&>[data-checkbox]]:border [&>[data-checkbox]]:border-sidebar-foreground/30 data-[checked=true]:[&>[data-checkbox]]:bg-primary data-[checked=true]:[&>[data-checkbox]]:border-primary data-[checked=true]:[&>[data-checkbox]]:text-primary-foreground"},size:{default:"h-12 text-sm/4",sm:"h-7 text-xs/4",lg:"h-12 text-sm/4 group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"simple",size:"default"}}),E=n.forwardRef(({asChild:e=!1,isActive:a=!1,variant:t="simple",size:o="default",tooltip:s,className:i,dataHook:l,...c},m)=>{const g=e?y.Slot:"button",{isMobile:x,state:b}=k(),p=r.jsx(g,{ref:m,className:d.cn(Be({variant:t,size:o}),i),"data-active":a,"data-hook":l,"data-size":o,"data-slot":"sidebar-menu-button","data-variant":t,...c});return s?(typeof s=="string"&&(s={children:s,dataHook:"sidebar-menu-button-tooltip"}),r.jsxs(C.Tooltip,{children:[r.jsx(C.TooltipTrigger,{asChild:!0,children:p}),r.jsx(C.TooltipContent,{hideArrow:!0,...s,align:"center",className:d.cn("bg-foreground text-background border-none",s.className),hidden:b!=="collapsed"||x,side:"right",sideOffset:8})]})):p});E.displayName="SidebarMenuButton";const ce=n.forwardRef(({className:e,asChild:a=!1,showOnHover:t=!1,...o},s)=>{const i=a?y.Slot:"button";return r.jsx(i,{ref:s,className:d.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 transition-transform outline-none focus-visible:ring-2 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","peer-data-[size=bigIcon]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),"data-slot":"sidebar-menu-action",...o})});ce.displayName="SidebarMenuAction";const ue=n.forwardRef(({className:e,...a},t)=>r.jsx("div",{ref:t,className:d.cn("text-sidebar-foreground pointer-events-none absolute inset-y-0 right-4 my-auto flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","group-data-[collapsible=icon]:hidden",e),"data-slot":"sidebar-menu-badge",...a}));ue.displayName="SidebarMenuBadge";const be=n.forwardRef(({className:e,showIcon:a=!1,...t},o)=>{const s=n.useId(),i=n.useMemo(()=>{let l=0;for(let c=0;c<s.length;c++)l=(l<<5)-l+s.charCodeAt(c),l|=0;return`${Math.abs(l)%40+50}%`},[s]);return r.jsxs("div",{ref:o,className:d.cn("flex h-8 items-center gap-2 rounded-md px-2",e),"data-slot":"sidebar-menu-skeleton",...t,children:[a&&r.jsx(L.Skeleton,{className:"size-4 rounded-md","data-slot":"sidebar-menu-skeleton-icon"}),r.jsx(L.Skeleton,{className:"h-4 max-w-[--skeleton-width] flex-1","data-slot":"sidebar-menu-skeleton-text",style:{"--skeleton-width":i}})]})});be.displayName="SidebarMenuSkeleton";const Le=D.cva("flex min-w-0 flex-col items-start gap-1 py-0.5 group-data-[collapsible=icon]:hidden",{variants:{variant:{default:"px-10",border:"border-l border-sidebar-border ml-10 pl-1 pr-10",indent:"px-10"}},defaultVariants:{variant:"border"}}),T=n.forwardRef(({className:e,variant:a="border",dataHook:t,...o},s)=>r.jsx("ul",{ref:s,className:d.cn(Le({variant:a}),e),"data-hook":t,"data-slot":"sidebar-menu-sub",...o}));T.displayName="SidebarMenuSub";const pe=n.forwardRef(({dataHook:e,...a},t)=>r.jsx("li",{ref:t,"data-hook":e,"data-slot":"sidebar-menu-sub-item",...a}));pe.displayName="SidebarMenuSubItem";const fe=n.forwardRef(({asChild:e=!1,size:a="md",isActive:t,className:o,dataHook:s,...i},l)=>{const c=e?y.Slot:"a";return r.jsx(c,{ref:l,className:d.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-foreground flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 transition-[color,background-color,box-shadow,opacity] duration-150 ease-in-out outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-of-type]:truncate [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",a==="sm"&&"text-xs",a==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),"data-active":t,"data-hook":s,"data-size":a,"data-slot":"sidebar-menu-sub-button",...i})});fe.displayName="SidebarMenuSubButton";function me({dataHook:e,className:a,children:t,defaultOpen:o,open:s,onOpenChange:i}){return r.jsx(O,{children:r.jsx(I.Accordion,{collapsible:!0,className:a,dataHook:e??"sidebar-menu-collapsible",defaultValue:o?"item":void 0,type:"single",value:s!==void 0?s?"item":"":void 0,onValueChange:i?l=>i(l==="item"):void 0,children:r.jsx(I.AccordionItem,{className:"group/collapsible border-none",value:"item",children:t})})})}me.displayName="SidebarMenuCollapsible";const ge=n.forwardRef(({children:e,className:a,...t},o)=>r.jsx(Ce.Trigger,{asChild:!0,children:r.jsxs(E,{ref:o,className:a,variant:"collapsible",...t,children:[e,r.jsx(u.ChevronRight,{"data-collapse-icon":!0,className:"opacity-100! transition-transform duration-200 ease-out group-data-[collapsible=icon]:hidden",size:12})]})}));ge.displayName="SidebarMenuCollapsibleTrigger";const he=n.forwardRef(({dataHook:e,children:a,...t},o)=>r.jsx(I.AccordionContent,{className:"p-0",children:r.jsx(T,{ref:o,dataHook:e,...t,children:a})}));he.displayName="SidebarMenuCollapsibleContent";const xe=n.forwardRef(({className:e,dataHook:a="sidebar-drawer",trackingEl:t,trackingLabel:o,children:s,...i},l)=>r.jsx("div",{ref:l,className:e,"data-hook":a,"data-slot":"sidebar-drawer","data-tracking-el":t,"data-tracking-label":o,...i,children:r.jsx(A,{dataHook:`${a}-trigger`,children:r.jsx(u.Menu,{size:24})})}));xe.displayName="SidebarDrawer";exports.Sidebar=Y;exports.SidebarCollapseIcon=le;exports.SidebarCollapseIconType=W;exports.SidebarCollapsible=q;exports.SidebarContent=re;exports.SidebarDrawer=xe;exports.SidebarFooter=ae;exports.SidebarGroup=oe;exports.SidebarGroupAction=ie;exports.SidebarGroupContent=ne;exports.SidebarGroupLabel=se;exports.SidebarGroupLabelSize=G;exports.SidebarGroupLabelVariant=H;exports.SidebarHeader=ee;exports.SidebarInput=Q;exports.SidebarInset=J;exports.SidebarMenu=de;exports.SidebarMenuAction=ce;exports.SidebarMenuBadge=ue;exports.SidebarMenuButton=E;exports.SidebarMenuButtonSize=K;exports.SidebarMenuButtonVariant=F;exports.SidebarMenuCollapsible=me;exports.SidebarMenuCollapsibleContent=he;exports.SidebarMenuCollapsibleTrigger=ge;exports.SidebarMenuItem=O;exports.SidebarMenuSkeleton=be;exports.SidebarMenuSub=T;exports.SidebarMenuSubButton=fe;exports.SidebarMenuSubButtonSize=V;exports.SidebarMenuSubItem=pe;exports.SidebarMenuSubVariant=U;exports.SidebarProvider=$;exports.SidebarRail=Z;exports.SidebarSeparator=te;exports.SidebarSide=z;exports.SidebarTrigger=A;exports.SidebarVariant=P;exports.useSidebar=k;
|
package/dist/blocks/sidebar.d.ts
CHANGED
|
@@ -61,8 +61,6 @@ export declare enum SidebarMenuButtonVariant {
|
|
|
61
61
|
COLLAPSIBLE = "collapsible",
|
|
62
62
|
/** Has action menu (dots) on hover */
|
|
63
63
|
DROPDOWN = "dropdown",
|
|
64
|
-
/** Has a chevron for tree navigation */
|
|
65
|
-
TREE = "tree",
|
|
66
64
|
/** Has a number badge on the right */
|
|
67
65
|
BADGE = "badge",
|
|
68
66
|
/** Larger icon with title and subtitle */
|
|
@@ -221,13 +219,24 @@ interface SidebarTriggerProps extends Omit<React.ComponentProps<typeof Button>,
|
|
|
221
219
|
* @default "sidebar-trigger"
|
|
222
220
|
*/
|
|
223
221
|
dataHook?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Accessible label for the toggle button.
|
|
224
|
+
* @default "Toggle Sidebar"
|
|
225
|
+
*/
|
|
226
|
+
toggleAriaLabel?: string;
|
|
224
227
|
}
|
|
225
228
|
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<SidebarTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
226
229
|
/**
|
|
227
230
|
* Props for the SidebarRail component
|
|
228
231
|
*/
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
interface SidebarRailProps extends React.ComponentProps<"button"> {
|
|
233
|
+
/**
|
|
234
|
+
* Accessible label and tooltip for the rail toggle.
|
|
235
|
+
* @default "Toggle Sidebar"
|
|
236
|
+
*/
|
|
237
|
+
toggleAriaLabel?: string;
|
|
238
|
+
}
|
|
239
|
+
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<SidebarRailProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
231
240
|
/**
|
|
232
241
|
* Props for the SidebarInset component
|
|
233
242
|
*/
|
|
@@ -256,24 +265,24 @@ declare const SidebarInput: React.ForwardRefExoticComponent<Omit<SidebarInputPro
|
|
|
256
265
|
/**
|
|
257
266
|
* Props for the SidebarHeader component
|
|
258
267
|
*/
|
|
259
|
-
interface SidebarHeaderProps extends React.ComponentProps<"
|
|
268
|
+
interface SidebarHeaderProps extends React.ComponentProps<"header"> {
|
|
260
269
|
/** Data hook for automated testing */
|
|
261
270
|
dataHook?: string;
|
|
262
271
|
}
|
|
263
|
-
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<SidebarHeaderProps, "ref"> & React.RefAttributes<
|
|
272
|
+
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<SidebarHeaderProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
264
273
|
/**
|
|
265
274
|
* Props for the SidebarFooter component
|
|
266
275
|
*/
|
|
267
|
-
interface SidebarFooterProps extends React.ComponentProps<"
|
|
276
|
+
interface SidebarFooterProps extends React.ComponentProps<"footer"> {
|
|
268
277
|
/** Data hook for automated testing */
|
|
269
278
|
dataHook?: string;
|
|
270
279
|
}
|
|
271
|
-
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<SidebarFooterProps, "ref"> & React.RefAttributes<
|
|
280
|
+
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<SidebarFooterProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
272
281
|
/**
|
|
273
282
|
* Props for the SidebarSeparator component
|
|
274
283
|
*/
|
|
275
284
|
type SidebarSeparatorProps = React.ComponentProps<typeof Separator>;
|
|
276
|
-
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<
|
|
285
|
+
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<import('..').SeparatorProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
277
286
|
/**
|
|
278
287
|
* Props for the SidebarContent component
|
|
279
288
|
*/
|
|
@@ -382,7 +391,7 @@ interface SidebarCollapseIconProps extends React.ComponentProps<"svg"> {
|
|
|
382
391
|
}
|
|
383
392
|
declare const SidebarCollapseIcon: React.ForwardRefExoticComponent<Omit<SidebarCollapseIconProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
384
393
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
385
|
-
variant?: "checkbox" | "
|
|
394
|
+
variant?: "checkbox" | "badge" | "collapsible" | "dropdown" | "simple" | "bigIcon" | null | undefined;
|
|
386
395
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
387
396
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
388
397
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/blocks/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAepD,OAAO,EAEL,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAG/B;;GAEG;AACH,oBAAY,WAAW;IACrB,qCAAqC;IACrC,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,wCAAwC;IACxC,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,uCAAuC;IACvC,SAAS,cAAc;IACvB,kCAAkC;IAClC,IAAI,SAAS;IACb,8BAA8B;IAC9B,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,mBAAmB;IACnB,OAAO,YAAY;IACnB,iBAAiB;IACjB,EAAE,OAAO;IACT,uBAAuB;IACvB,EAAE,OAAO;CACV;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC,mBAAmB;IACnB,OAAO,YAAY;IACnB,qCAAqC;IACrC,WAAW,gBAAgB;IAC3B,kCAAkC;IAClC,MAAM,WAAW;CAClB;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC,yCAAyC;IACzC,MAAM,WAAW;IACjB,qDAAqD;IACrD,WAAW,gBAAgB;IAC3B,sCAAsC;IACtC,QAAQ,aAAa;IACrB,
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../src/blocks/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAepD,OAAO,EAEL,cAAc,EAGf,MAAM,uBAAuB,CAAC;AAG/B;;GAEG;AACH,oBAAY,WAAW;IACrB,qCAAqC;IACrC,IAAI,SAAS;CACd;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB,wCAAwC;IACxC,OAAO,YAAY;CACpB;AAED;;GAEG;AACH,oBAAY,kBAAkB;IAC5B,uCAAuC;IACvC,SAAS,cAAc;IACvB,kCAAkC;IAClC,IAAI,SAAS;IACb,8BAA8B;IAC9B,IAAI,SAAS;CACd;AA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