@brightlocal/ui-components 2.22.0 → 2.23.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 +2 -1
- package/component-meta.json +19 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +31 -31
- package/dist/blocks/data-table.cjs +1 -1
- package/dist/blocks/data-table.js +2 -2
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +111 -109
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +109 -121
- 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 +295 -293
- package/dist/loading.cjs +1 -0
- package/dist/loading.d.ts +46 -0
- package/dist/loading.d.ts.map +1 -0
- package/dist/loading.js +142 -0
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +97 -99
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +27 -26
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +29 -35
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +21 -2
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +35 -32
- package/package.json +1 -1
- package/src/blocks/data-table.tsx +2 -2
- package/src/components/alert.tsx +9 -13
- package/src/components/context-menu.tsx +8 -3
- package/src/components/dropdown-menu.tsx +6 -15
- package/src/components/loading.tsx +322 -0
- package/src/components/map.tsx +3 -1
- package/src/components/menubar.tsx +6 -5
- package/src/components/popover.tsx +6 -2
- package/src/components/select.tsx +5 -8
- package/src/components/tooltip.tsx +28 -3
- package/src/index.ts +1 -0
package/dist/context-menu.js
CHANGED
|
@@ -1,117 +1,119 @@
|
|
|
1
1
|
import { jsx as t, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import * as
|
|
4
|
-
import { Check as p, Circle as f, ChevronRight as
|
|
5
|
-
import { cn as s } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
import { useOverlayPointerLock as
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */ t(
|
|
3
|
+
import * as a from "@radix-ui/react-context-menu";
|
|
4
|
+
import { Check as p, Circle as f, ChevronRight as b } from "@brightlocal/icons";
|
|
5
|
+
import { cn as s, FLOATING_CONTENT_ANIMATION as x } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
import { useOverlayPointerLock as g } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
|
|
7
|
+
function C({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ t(a.Root, { "data-slot": "context-menu", ...e });
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
C.displayName = "ContextMenu";
|
|
11
|
+
const N = r.forwardRef(({ dataHook: e, ...o }, n) => /* @__PURE__ */ t(
|
|
12
|
+
a.Trigger,
|
|
13
13
|
{
|
|
14
|
-
ref:
|
|
14
|
+
ref: n,
|
|
15
15
|
"data-hook": e,
|
|
16
16
|
"data-slot": "context-menu-trigger",
|
|
17
|
-
...
|
|
17
|
+
...o
|
|
18
18
|
}
|
|
19
19
|
));
|
|
20
|
-
|
|
21
|
-
function h({ ...e }) {
|
|
22
|
-
return /* @__PURE__ */ t(n.Group, { "data-slot": "context-menu-group", ...e });
|
|
23
|
-
}
|
|
24
|
-
h.displayName = "ContextMenuGroup";
|
|
20
|
+
N.displayName = "ContextMenuTrigger";
|
|
25
21
|
function M({ ...e }) {
|
|
26
|
-
return /* @__PURE__ */ t(
|
|
22
|
+
return /* @__PURE__ */ t(a.Group, { "data-slot": "context-menu-group", ...e });
|
|
27
23
|
}
|
|
28
|
-
M.displayName = "
|
|
29
|
-
function
|
|
30
|
-
return /* @__PURE__ */ t(
|
|
24
|
+
M.displayName = "ContextMenuGroup";
|
|
25
|
+
function h({ ...e }) {
|
|
26
|
+
return /* @__PURE__ */ t(a.Portal, { "data-slot": "context-menu-portal", ...e });
|
|
31
27
|
}
|
|
32
|
-
|
|
28
|
+
h.displayName = "ContextMenuPortal";
|
|
33
29
|
function y({ ...e }) {
|
|
30
|
+
return /* @__PURE__ */ t(a.Sub, { "data-slot": "context-menu-sub", ...e });
|
|
31
|
+
}
|
|
32
|
+
y.displayName = "ContextMenuSub";
|
|
33
|
+
function k({ ...e }) {
|
|
34
34
|
return /* @__PURE__ */ t(
|
|
35
|
-
|
|
35
|
+
a.RadioGroup,
|
|
36
36
|
{
|
|
37
37
|
"data-slot": "context-menu-radio-group",
|
|
38
38
|
...e
|
|
39
39
|
}
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
const
|
|
42
|
+
k.displayName = "ContextMenuRadioGroup";
|
|
43
|
+
const R = r.forwardRef(
|
|
44
44
|
({
|
|
45
45
|
className: e,
|
|
46
|
-
inset:
|
|
47
|
-
children:
|
|
46
|
+
inset: o,
|
|
47
|
+
children: n,
|
|
48
48
|
dataHook: d,
|
|
49
|
-
trackingEl:
|
|
50
|
-
trackingLabel:
|
|
51
|
-
...
|
|
52
|
-
},
|
|
53
|
-
|
|
49
|
+
trackingEl: c,
|
|
50
|
+
trackingLabel: u,
|
|
51
|
+
...l
|
|
52
|
+
}, i) => /* @__PURE__ */ m(
|
|
53
|
+
a.SubTrigger,
|
|
54
54
|
{
|
|
55
|
-
ref:
|
|
55
|
+
ref: i,
|
|
56
56
|
className: s(
|
|
57
57
|
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none",
|
|
58
|
-
|
|
58
|
+
o && "pl-8",
|
|
59
59
|
e
|
|
60
60
|
),
|
|
61
61
|
"data-hook": d,
|
|
62
62
|
"data-slot": "context-menu-sub-trigger",
|
|
63
|
-
"data-tracking-el":
|
|
64
|
-
"data-tracking-label":
|
|
65
|
-
...
|
|
63
|
+
"data-tracking-el": c,
|
|
64
|
+
"data-tracking-label": u,
|
|
65
|
+
...l,
|
|
66
66
|
children: [
|
|
67
|
-
|
|
68
|
-
/* @__PURE__ */ t(
|
|
67
|
+
n,
|
|
68
|
+
/* @__PURE__ */ t(b, { className: "ml-auto" })
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
);
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
|
|
73
|
+
R.displayName = "ContextMenuSubTrigger";
|
|
74
|
+
const w = r.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
75
|
+
a.SubContent,
|
|
76
76
|
{
|
|
77
|
-
ref:
|
|
77
|
+
ref: n,
|
|
78
78
|
className: s(
|
|
79
|
-
"border-border bg-popover text-popover-foreground
|
|
79
|
+
"border-border bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",
|
|
80
|
+
x,
|
|
80
81
|
e
|
|
81
82
|
),
|
|
82
83
|
"data-slot": "context-menu-sub-content",
|
|
83
|
-
...
|
|
84
|
+
...o
|
|
84
85
|
}
|
|
85
86
|
));
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
w.displayName = "ContextMenuSubContent";
|
|
88
|
+
const I = r.forwardRef(({ className: e, ...o }, n) => (g(), /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ t(
|
|
89
|
+
a.Content,
|
|
89
90
|
{
|
|
90
|
-
ref:
|
|
91
|
+
ref: n,
|
|
91
92
|
className: s(
|
|
92
|
-
"border-border bg-popover text-popover-foreground
|
|
93
|
+
"border-border bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md",
|
|
94
|
+
x,
|
|
93
95
|
e
|
|
94
96
|
),
|
|
95
97
|
"data-slot": "context-menu-content",
|
|
96
|
-
...
|
|
98
|
+
...o
|
|
97
99
|
}
|
|
98
100
|
) })));
|
|
99
|
-
|
|
101
|
+
I.displayName = "ContextMenuContent";
|
|
100
102
|
const v = r.forwardRef(
|
|
101
|
-
({ className: e, inset:
|
|
102
|
-
|
|
103
|
+
({ className: e, inset: o, dataHook: n, trackingEl: d, trackingLabel: c, ...u }, l) => /* @__PURE__ */ t(
|
|
104
|
+
a.Item,
|
|
103
105
|
{
|
|
104
|
-
ref:
|
|
106
|
+
ref: l,
|
|
105
107
|
className: s(
|
|
106
108
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
107
|
-
|
|
109
|
+
o && "pl-8",
|
|
108
110
|
e
|
|
109
111
|
),
|
|
110
|
-
"data-hook":
|
|
112
|
+
"data-hook": n,
|
|
111
113
|
"data-slot": "context-menu-item",
|
|
112
114
|
"data-tracking-el": d,
|
|
113
|
-
"data-tracking-label":
|
|
114
|
-
...
|
|
115
|
+
"data-tracking-label": c,
|
|
116
|
+
...u
|
|
115
117
|
}
|
|
116
118
|
)
|
|
117
119
|
);
|
|
@@ -119,107 +121,107 @@ v.displayName = "ContextMenuItem";
|
|
|
119
121
|
const S = r.forwardRef(
|
|
120
122
|
({
|
|
121
123
|
className: e,
|
|
122
|
-
children:
|
|
123
|
-
checked:
|
|
124
|
+
children: o,
|
|
125
|
+
checked: n,
|
|
124
126
|
dataHook: d,
|
|
125
|
-
trackingEl:
|
|
126
|
-
trackingLabel:
|
|
127
|
-
...
|
|
128
|
-
},
|
|
129
|
-
|
|
127
|
+
trackingEl: c,
|
|
128
|
+
trackingLabel: u,
|
|
129
|
+
...l
|
|
130
|
+
}, i) => /* @__PURE__ */ m(
|
|
131
|
+
a.CheckboxItem,
|
|
130
132
|
{
|
|
131
|
-
ref:
|
|
132
|
-
checked:
|
|
133
|
+
ref: i,
|
|
134
|
+
checked: n,
|
|
133
135
|
className: s(
|
|
134
136
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
135
137
|
e
|
|
136
138
|
),
|
|
137
139
|
"data-hook": d,
|
|
138
140
|
"data-slot": "context-menu-checkbox-item",
|
|
139
|
-
"data-tracking-el":
|
|
140
|
-
"data-tracking-label":
|
|
141
|
-
...
|
|
141
|
+
"data-tracking-el": c,
|
|
142
|
+
"data-tracking-label": u,
|
|
143
|
+
...l,
|
|
142
144
|
children: [
|
|
143
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(
|
|
144
|
-
|
|
145
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(p, {}) }) }),
|
|
146
|
+
o
|
|
145
147
|
]
|
|
146
148
|
}
|
|
147
149
|
)
|
|
148
150
|
);
|
|
149
151
|
S.displayName = "ContextMenuCheckboxItem";
|
|
150
|
-
const
|
|
151
|
-
({ className: e, children:
|
|
152
|
-
|
|
152
|
+
const T = r.forwardRef(
|
|
153
|
+
({ className: e, children: o, dataHook: n, trackingEl: d, trackingLabel: c, ...u }, l) => /* @__PURE__ */ m(
|
|
154
|
+
a.RadioItem,
|
|
153
155
|
{
|
|
154
|
-
ref:
|
|
156
|
+
ref: l,
|
|
155
157
|
className: s(
|
|
156
158
|
"focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
157
159
|
e
|
|
158
160
|
),
|
|
159
|
-
"data-hook":
|
|
161
|
+
"data-hook": n,
|
|
160
162
|
"data-slot": "context-menu-radio-item",
|
|
161
163
|
"data-tracking-el": d,
|
|
162
|
-
"data-tracking-label":
|
|
163
|
-
...
|
|
164
|
+
"data-tracking-label": c,
|
|
165
|
+
...u,
|
|
164
166
|
children: [
|
|
165
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(
|
|
166
|
-
|
|
167
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(f, { className: "fill-current", size: 8 }) }) }),
|
|
168
|
+
o
|
|
167
169
|
]
|
|
168
170
|
}
|
|
169
171
|
)
|
|
170
172
|
);
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
173
|
+
T.displayName = "ContextMenuRadioItem";
|
|
174
|
+
const G = r.forwardRef(({ className: e, inset: o, ...n }, d) => /* @__PURE__ */ t(
|
|
175
|
+
a.Label,
|
|
174
176
|
{
|
|
175
177
|
ref: d,
|
|
176
178
|
className: s(
|
|
177
179
|
"text-foreground px-2 py-1.5 text-sm font-semibold",
|
|
178
|
-
|
|
180
|
+
o && "pl-8",
|
|
179
181
|
e
|
|
180
182
|
),
|
|
181
183
|
"data-slot": "context-menu-label",
|
|
182
|
-
...
|
|
184
|
+
...n
|
|
183
185
|
}
|
|
184
186
|
));
|
|
185
|
-
|
|
186
|
-
const
|
|
187
|
-
|
|
187
|
+
G.displayName = "ContextMenuLabel";
|
|
188
|
+
const P = r.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
189
|
+
a.Separator,
|
|
188
190
|
{
|
|
189
|
-
ref:
|
|
191
|
+
ref: n,
|
|
190
192
|
className: s("bg-border -mx-1 my-1 h-px", e),
|
|
191
193
|
"data-slot": "context-menu-separator",
|
|
192
|
-
...
|
|
194
|
+
...o
|
|
193
195
|
}
|
|
194
196
|
));
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
+
P.displayName = "ContextMenuSeparator";
|
|
198
|
+
const z = r.forwardRef(({ className: e, ...o }, n) => /* @__PURE__ */ t(
|
|
197
199
|
"span",
|
|
198
200
|
{
|
|
199
|
-
ref:
|
|
201
|
+
ref: n,
|
|
200
202
|
className: s(
|
|
201
203
|
"text-muted-foreground ml-auto text-xs tracking-widest",
|
|
202
204
|
e
|
|
203
205
|
),
|
|
204
206
|
"data-slot": "context-menu-shortcut",
|
|
205
|
-
...
|
|
207
|
+
...o
|
|
206
208
|
}
|
|
207
209
|
));
|
|
208
|
-
|
|
210
|
+
z.displayName = "ContextMenuShortcut";
|
|
209
211
|
export {
|
|
210
|
-
|
|
212
|
+
C as ContextMenu,
|
|
211
213
|
S as ContextMenuCheckboxItem,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
+
I as ContextMenuContent,
|
|
215
|
+
M as ContextMenuGroup,
|
|
214
216
|
v as ContextMenuItem,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
217
|
+
G as ContextMenuLabel,
|
|
218
|
+
h as ContextMenuPortal,
|
|
219
|
+
k as ContextMenuRadioGroup,
|
|
220
|
+
T as ContextMenuRadioItem,
|
|
221
|
+
P as ContextMenuSeparator,
|
|
222
|
+
z as ContextMenuShortcut,
|
|
223
|
+
y as ContextMenuSub,
|
|
224
|
+
w as ContextMenuSubContent,
|
|
225
|
+
R as ContextMenuSubTrigger,
|
|
226
|
+
N as ContextMenuTrigger
|
|
225
227
|
};
|
package/dist/dropdown-menu.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),O=require("react"),P=require("@radix-ui/react-dropdown-menu"),p=require("@brightlocal/icons"),l=require("@brightlocal/ui-components/lib/utils"),G=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock");function m(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const u=m(O),a=m(P);function g({...e}){return n.jsx(a.Root,{...e})}g.displayName="DropdownMenu";function w({...e}){return n.jsx(a.Portal,{...e})}w.displayName="DropdownMenuPortal";const f=u.forwardRef(({className:e,dataHook:o,trackingEl:t,trackingLabel:r,...d},s)=>n.jsx(a.Trigger,{ref:s,className:e,"data-slot":"dropdown-menu-trigger","data-tracking-el":t,"data-tracking-label":r,...o!=null&&{"data-hook":o},...d}));f.displayName="DropdownMenuTrigger";const x=u.forwardRef(({className:e,sideOffset:o=4,align:t="start",dataHook:r,trackingEl:d,trackingLabel:s,...i},c)=>(G.useOverlayPointerLock(),n.jsx(a.Portal,{children:n.jsx(a.Content,{ref:c,align:t,className:l.cn(["bg-popover text-popover-foreground","z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-x-hidden overflow-y-auto","rounded-md border p-1 shadow-md",l.FLOATING_CONTENT_ANIMATION],e),"data-hook":r,"data-slot":"dropdown-menu-content","data-tracking-el":d,"data-tracking-label":s,sideOffset:o,...i})})));x.displayName="DropdownMenuContent";function b({...e}){return n.jsx(a.Group,{...e})}b.displayName="DropdownMenuGroup";const h=u.forwardRef(({className:e,inset:o,dataHook:t,trackingEl:r,trackingLabel:d,...s},i)=>n.jsx(a.Item,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 self-stretch select-none","rounded-sm px-2 py-1.5 text-sm leading-normal outline-hidden","[&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":t,"data-inset":o,"data-slot":"dropdown-menu-item","data-tracking-el":r,"data-tracking-label":d,...s}));h.displayName="DropdownMenuItem";const M=u.forwardRef(({className:e,children:o,checked:t,dataHook:r,trackingEl:d,trackingLabel:s,...i},c)=>n.jsxs(a.CheckboxItem,{ref:c,checked:t,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":r,"data-slot":"dropdown-menu-checkbox-item","data-tracking-el":d,"data-tracking-label":s,...i,children:[n.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsx(a.ItemIndicator,{children:n.jsx(p.Check,{})})}),o]}));M.displayName="DropdownMenuCheckboxItem";function D({...e}){return n.jsx(a.RadioGroup,{...e})}D.displayName="DropdownMenuRadioGroup";const v=u.forwardRef(({className:e,children:o,dataHook:t,trackingEl:r,trackingLabel:d,...s},i)=>n.jsxs(a.RadioItem,{ref:i,className:l.cn(["relative flex cursor-default items-center gap-2 select-none","rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":t,"data-slot":"dropdown-menu-radio-item","data-tracking-el":r,"data-tracking-label":d,...s,children:[n.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsx(a.ItemIndicator,{children:n.jsx(p.Circle,{className:"fill-current",size:8})})}),o]}));v.displayName="DropdownMenuRadioItem";const N=u.forwardRef(({className:e,inset:o,dataHook:t,...r},d)=>n.jsx(a.Label,{ref:d,className:l.cn(["px-2 py-1.5 text-sm leading-normal font-semibold","data-[inset]:pl-8"],e),"data-hook":t,"data-inset":o,"data-slot":"dropdown-menu-label",...r}));N.displayName="DropdownMenuLabel";const y=u.forwardRef(({className:e,...o},t)=>n.jsx(a.Separator,{ref:t,className:l.cn(["bg-border -mx-1 my-1 h-px"],e),"data-slot":"dropdown-menu-separator",...o}));y.displayName="DropdownMenuSeparator";function j({className:e,...o}){return n.jsx("span",{className:l.cn(["text-popover-foreground ml-auto text-xs leading-normal opacity-60"],e),"data-slot":"dropdown-menu-shortcut",...o})}j.displayName="DropdownMenuShortcut";function k({...e}){return n.jsx(a.Sub,{...e})}k.displayName="DropdownMenuSub";const R=u.forwardRef(({className:e,inset:o,children:t,dataHook:r,trackingEl:d,trackingLabel:s,...i},c)=>n.jsxs(a.SubTrigger,{ref:c,className:l.cn(["flex cursor-default items-center gap-2 select-none","rounded-sm px-2 py-1.5 text-sm outline-hidden","focus:bg-accent focus:text-accent-foreground","data-[state=open]:bg-accent data-[state=open]:text-accent-foreground","data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0"],e),"data-hook":r,"data-inset":o,"data-slot":"dropdown-menu-sub-trigger","data-tracking-el":d,"data-tracking-label":s,...i,children:[t,n.jsx(p.ChevronRight,{className:"ml-auto"})]}));R.displayName="DropdownMenuSubTrigger";const S=u.forwardRef(({className:e,...o},t)=>n.jsx(a.SubContent,{ref:t,className:l.cn(["bg-popover text-popover-foreground","z-50 min-w-[8rem]","origin-(--radix-dropdown-menu-content-transform-origin)","overflow-hidden rounded-md border p-1 shadow-lg",l.FLOATING_CONTENT_ANIMATION],e),"data-slot":"dropdown-menu-sub-content",...o}));S.displayName="DropdownMenuSubContent";const I=u.forwardRef(({className:e,dataHook:o,trackingEl:t,trackingLabel:r,avatar:d,title:s,description:i,disabled:c,ariaLabel:T,...C},_)=>n.jsxs(a.Trigger,{ref:_,"aria-label":T??s,className:l.cn(["flex items-center gap-2 rounded-lg border px-3 py-2","bg-popover shadow-sm","outline-none","hover:bg-accent","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50"],e),"data-hook":o,"data-slot":"dropdown-menu-trigger-avatar","data-tracking-el":t,"data-tracking-label":r,disabled:c,...C,children:[d,n.jsxs("div",{className:"flex min-w-0 flex-1 flex-col items-start",children:[n.jsx("span",{className:"w-full overflow-hidden text-sm leading-normal font-semibold text-ellipsis whitespace-nowrap",children:s}),i&&n.jsx("span",{className:"text-muted-foreground w-full overflow-hidden text-xs leading-normal text-ellipsis whitespace-nowrap",children:i})]}),n.jsx(p.ChevronsUpDown,{className:"text-muted-foreground opacity-50"})]}));I.displayName="DropdownMenuTriggerAvatar";exports.DropdownMenu=g;exports.DropdownMenuCheckboxItem=M;exports.DropdownMenuContent=x;exports.DropdownMenuGroup=b;exports.DropdownMenuItem=h;exports.DropdownMenuLabel=N;exports.DropdownMenuPortal=w;exports.DropdownMenuRadioGroup=D;exports.DropdownMenuRadioItem=v;exports.DropdownMenuSeparator=y;exports.DropdownMenuShortcut=j;exports.DropdownMenuSub=k;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=R;exports.DropdownMenuTrigger=f;exports.DropdownMenuTriggerAvatar=I;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAcvE;;GAEG;AACH,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAA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