@hamster-note/components 0.2.1-beta.3 → 0.4.0-beta.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 +341 -73
- package/dist/Icon-BuZRZcjv.js +1143 -0
- package/dist/button-mmBNcoG1.js +45 -0
- package/dist/button.js +1 -1
- package/dist/components/button/Button.d.ts +5 -3
- package/dist/components/dialog/Dialog.d.ts +3 -1
- package/dist/components/drawer/Drawer.d.ts +3 -1
- package/dist/components/icon/icon-names.d.ts +1 -15
- package/dist/components/menu/Menu.d.ts +11 -19
- package/dist/components/menu/Menu.placement.test.d.ts +1 -0
- package/dist/components/menu/MenuSubmenu.d.ts +13 -0
- package/dist/components/menu/MenuSurface.d.ts +12 -0
- package/dist/components/menu/menu-tree-context.d.ts +9 -0
- package/dist/components/popover/use-anchor-position.d.ts +16 -1
- package/dist/components/popover/use-anchor-position.test.d.ts +1 -0
- package/dist/components/theme/theme-context.d.ts +10 -0
- package/dist/components/theme/theme.d.ts +1 -87
- package/dist/{confirm-3eBmopl8.js → confirm-DKgVMWkR.js} +4 -5
- package/dist/confirm.js +1 -1
- package/dist/dialog-DI_yumUn.js +102 -0
- package/dist/dialog.js +1 -1
- package/dist/drawer-Cpe3Yf3K.js +120 -0
- package/dist/drawer.js +1 -1
- package/dist/hamster-note-components.css +1 -1
- package/dist/icon-u7jiIYal.js +5 -0
- package/dist/icon.js +2 -1
- package/dist/index.js +10 -9
- package/dist/menu-B4WwCQyw.js +179 -0
- package/dist/menu.js +1 -1
- package/dist/{popover-baLHE3lf.js → popover-D00SlGpL.js} +1 -1
- package/dist/popover.js +1 -1
- package/dist/shared/icon-names.d.ts +15 -0
- package/dist/shared/icons.d.ts +1216 -0
- package/dist/shared/theme.d.ts +87 -0
- package/dist/shared/tokens.d.ts +67 -0
- package/dist/test/fields-and-cards.test.d.ts +1 -0
- package/dist/test/imperative-apis.test.d.ts +1 -0
- package/dist/test/modals.test.d.ts +1 -0
- package/dist/test/primitives.test.d.ts +1 -0
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/shared-data.test.d.ts +1 -0
- package/dist/test/theme-and-popover.test.d.ts +1 -0
- package/dist/{theme-C0p_hpKk.js → theme-DNK-xd31.js} +30 -22
- package/dist/theme-context-CdWvVVP8.js +8 -0
- package/dist/theme.js +1 -1
- package/dist/use-anchor-position-D3QBcIet.js +166 -0
- package/dist-native/badge.d.ts +10 -0
- package/dist-native/badge.js +7 -0
- package/dist-native/button.d.ts +16 -0
- package/dist-native/button.js +7 -0
- package/dist-native/chunk-6RD26X3W.js +78 -0
- package/dist-native/chunk-6SR5ZHDD.js +13 -0
- package/dist-native/chunk-6VYUVVCP.js +27 -0
- package/dist-native/chunk-7LN4VNRB.js +124 -0
- package/dist-native/chunk-CF76TWL4.js +85 -0
- package/dist-native/chunk-ENTYQ6M4.js +256 -0
- package/dist-native/chunk-GSG6CXIE.js +1688 -0
- package/dist-native/chunk-JHT74YG3.js +186 -0
- package/dist-native/chunk-KPDK62A5.js +106 -0
- package/dist-native/chunk-PLFX4RVR.js +134 -0
- package/dist-native/chunk-QUGLAOXA.js +49 -0
- package/dist-native/chunk-S2EUKEYI.js +35 -0
- package/dist-native/chunk-VTE5RPMO.js +38 -0
- package/dist-native/chunk-YJ4H3ZBQ.js +145 -0
- package/dist-native/chunk-ZTQATW6Y.js +127 -0
- package/dist-native/confirm.d.ts +24 -0
- package/dist-native/confirm.js +14 -0
- package/dist-native/dialog.d.ts +8 -0
- package/dist-native/dialog.js +10 -0
- package/dist-native/drawer.d.ts +13 -0
- package/dist-native/drawer.js +10 -0
- package/dist-native/focus-C0k0lLui.d.ts +9 -0
- package/dist-native/icon.d.ts +28 -0
- package/dist-native/icon.js +9 -0
- package/dist-native/index.d.ts +20 -0
- package/dist-native/index.js +84 -0
- package/dist-native/kbd.d.ts +9 -0
- package/dist-native/kbd.js +7 -0
- package/dist-native/loading.d.ts +19 -0
- package/dist-native/loading.js +11 -0
- package/dist-native/menu.d.ts +31 -0
- package/dist-native/menu.js +17 -0
- package/dist-native/modal-panel-BOpp1oRC.d.ts +23 -0
- package/dist-native/note-card.d.ts +13 -0
- package/dist-native/note-card.js +7 -0
- package/dist-native/popover.d.ts +34 -0
- package/dist-native/popover.js +8 -0
- package/dist-native/position-CkPoZ5AD.d.ts +3 -0
- package/dist-native/text-field.d.ts +13 -0
- package/dist-native/text-field.js +7 -0
- package/dist-native/theme.d.ts +120 -0
- package/dist-native/theme.js +16 -0
- package/dist-native/tokens-DHoNd-yT.d.ts +41 -0
- package/package.json +151 -6
- package/dist/button-DRz0VTkf.js +0 -18
- package/dist/dialog-B4xS5zlK.js +0 -53
- package/dist/drawer-DoeuGAHD.js +0 -60
- package/dist/icon-DNZLJUqH.js +0 -517
- package/dist/menu-Dj-Dje_l.js +0 -153
- package/dist/use-anchor-position-DWle8yoL.js +0 -87
package/dist/icon-DNZLJUqH.js
DELETED
|
@@ -1,517 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/icon/Icon.tsx
|
|
4
|
-
var r = {
|
|
5
|
-
file: /* @__PURE__ */ n(e, { children: [
|
|
6
|
-
/* @__PURE__ */ t("path", { d: "M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z" }),
|
|
7
|
-
/* @__PURE__ */ t("path", { d: "M14 3v5h5" }),
|
|
8
|
-
/* @__PURE__ */ t("path", { d: "M9 13h6" }),
|
|
9
|
-
/* @__PURE__ */ t("path", { d: "M9 17h6" })
|
|
10
|
-
] }),
|
|
11
|
-
save: /* @__PURE__ */ n(e, { children: [
|
|
12
|
-
/* @__PURE__ */ t("path", { d: "M5 4h11l3 3v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z" }),
|
|
13
|
-
/* @__PURE__ */ t("path", { d: "M8 4v5h7V4" }),
|
|
14
|
-
/* @__PURE__ */ t("path", { d: "M8 14h8v7H8z" })
|
|
15
|
-
] }),
|
|
16
|
-
study: /* @__PURE__ */ n(e, { children: [
|
|
17
|
-
/* @__PURE__ */ t("path", { d: "M12 6c-1.5-1.2-3.5-2-6-2H3v13h3c2.5 0 4.5.8 6 2 1.5-1.2 3.5-2 6-2h3V4h-3c-2.5 0-4.5.8-6 2z" }),
|
|
18
|
-
/* @__PURE__ */ t("path", { d: "M12 6v13" }),
|
|
19
|
-
/* @__PURE__ */ t("path", { d: "M5.5 8.5h3" }),
|
|
20
|
-
/* @__PURE__ */ t("path", { d: "M5.5 11.5h3" }),
|
|
21
|
-
/* @__PURE__ */ t("path", { d: "M15.5 8.5h3" }),
|
|
22
|
-
/* @__PURE__ */ t("path", { d: "M15.5 11.5h3" })
|
|
23
|
-
] }),
|
|
24
|
-
switch: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("rect", {
|
|
25
|
-
height: "12",
|
|
26
|
-
rx: "6",
|
|
27
|
-
width: "18",
|
|
28
|
-
x: "3",
|
|
29
|
-
y: "6"
|
|
30
|
-
}), /* @__PURE__ */ t("circle", {
|
|
31
|
-
cx: "15",
|
|
32
|
-
cy: "12",
|
|
33
|
-
r: "3.2"
|
|
34
|
-
})] }),
|
|
35
|
-
mouse: /* @__PURE__ */ n(e, { children: [
|
|
36
|
-
/* @__PURE__ */ t("rect", {
|
|
37
|
-
height: "16",
|
|
38
|
-
rx: "8",
|
|
39
|
-
width: "11",
|
|
40
|
-
x: "6.5",
|
|
41
|
-
y: "4"
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ t("path", { d: "M12 7v4" }),
|
|
44
|
-
/* @__PURE__ */ t("path", { d: "M12 7a1 1 0 0 1 1 1v2a1 1 0 0 1-2 0V8a1 1 0 0 1 1-1z" })
|
|
45
|
-
] }),
|
|
46
|
-
line: /* @__PURE__ */ n(e, { children: [
|
|
47
|
-
/* @__PURE__ */ t("path", { d: "M5 19L19 5" }),
|
|
48
|
-
/* @__PURE__ */ t("circle", {
|
|
49
|
-
cx: "5",
|
|
50
|
-
cy: "19",
|
|
51
|
-
r: "1.2"
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ t("circle", {
|
|
54
|
-
cx: "19",
|
|
55
|
-
cy: "5",
|
|
56
|
-
r: "1.2"
|
|
57
|
-
})
|
|
58
|
-
] }),
|
|
59
|
-
curve: /* @__PURE__ */ n(e, { children: [
|
|
60
|
-
/* @__PURE__ */ t("path", { d: "M4 18C4 12 9 12 12 12S20 12 20 6" }),
|
|
61
|
-
/* @__PURE__ */ t("circle", {
|
|
62
|
-
cx: "4",
|
|
63
|
-
cy: "18",
|
|
64
|
-
r: "1.2"
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ t("circle", {
|
|
67
|
-
cx: "20",
|
|
68
|
-
cy: "6",
|
|
69
|
-
r: "1.2"
|
|
70
|
-
})
|
|
71
|
-
] }),
|
|
72
|
-
polygon: /* @__PURE__ */ n(e, { children: [
|
|
73
|
-
/* @__PURE__ */ t("path", { d: "M12 4l7 5-2.5 9h-9L5 9z" }),
|
|
74
|
-
/* @__PURE__ */ t("circle", {
|
|
75
|
-
cx: "12",
|
|
76
|
-
cy: "4",
|
|
77
|
-
r: "1.1"
|
|
78
|
-
}),
|
|
79
|
-
/* @__PURE__ */ t("circle", {
|
|
80
|
-
cx: "19",
|
|
81
|
-
cy: "9",
|
|
82
|
-
r: "1.1"
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ t("circle", {
|
|
85
|
-
cx: "16.5",
|
|
86
|
-
cy: "18",
|
|
87
|
-
r: "1.1"
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ t("circle", {
|
|
90
|
-
cx: "7.5",
|
|
91
|
-
cy: "18",
|
|
92
|
-
r: "1.1"
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ t("circle", {
|
|
95
|
-
cx: "5",
|
|
96
|
-
cy: "9",
|
|
97
|
-
r: "1.1"
|
|
98
|
-
})
|
|
99
|
-
] }),
|
|
100
|
-
lasso: /* @__PURE__ */ n(e, { children: [
|
|
101
|
-
/* @__PURE__ */ t("path", { d: "M9 6.5c3.5-2 8.5-.5 9 2.5s-2 6.5-6 6.5-7.5-2-7-5.5 2-3 4-3.5z" }),
|
|
102
|
-
/* @__PURE__ */ t("path", { d: "M8 15.5c.5 2.5-.5 4.5-3.5 4.5" }),
|
|
103
|
-
/* @__PURE__ */ t("circle", {
|
|
104
|
-
cx: "4.5",
|
|
105
|
-
cy: "20",
|
|
106
|
-
r: "1.2"
|
|
107
|
-
})
|
|
108
|
-
] }),
|
|
109
|
-
rectangle: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("rect", {
|
|
110
|
-
height: "12",
|
|
111
|
-
rx: "1.5",
|
|
112
|
-
width: "16",
|
|
113
|
-
x: "4",
|
|
114
|
-
y: "6"
|
|
115
|
-
}) }),
|
|
116
|
-
ellipse: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("ellipse", {
|
|
117
|
-
cx: "12",
|
|
118
|
-
cy: "12",
|
|
119
|
-
rx: "8",
|
|
120
|
-
ry: "6"
|
|
121
|
-
}) }),
|
|
122
|
-
pen: /* @__PURE__ */ n(e, { children: [
|
|
123
|
-
/* @__PURE__ */ t("path", { d: "M4 20l3.5-1 11-11-2.5-2.5-11 11-1 3.5z" }),
|
|
124
|
-
/* @__PURE__ */ t("path", { d: "M14.5 6.5l3 3" }),
|
|
125
|
-
/* @__PURE__ */ t("path", { d: "M4 20l1-3.5" })
|
|
126
|
-
] }),
|
|
127
|
-
eraser: /* @__PURE__ */ n(e, { children: [
|
|
128
|
-
/* @__PURE__ */ t("path", { d: "M15 4l5 5-9 9H6l-2-2 9-9z" }),
|
|
129
|
-
/* @__PURE__ */ t("path", { d: "M9 10l5 5" }),
|
|
130
|
-
/* @__PURE__ */ t("path", { d: "M13 20h7" })
|
|
131
|
-
] }),
|
|
132
|
-
magnet: /* @__PURE__ */ n(e, { children: [
|
|
133
|
-
/* @__PURE__ */ t("path", { d: "M4 10v3a6 6 0 0 0 12 0V5a1 1 0 0 0-1-1h-3a1 1 0 0 0-1 1v8a1 1 0 0 1-2 0V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1z" }),
|
|
134
|
-
/* @__PURE__ */ t("path", { d: "M11 4h4" }),
|
|
135
|
-
/* @__PURE__ */ t("path", { d: "M4 10h4" })
|
|
136
|
-
] }),
|
|
137
|
-
locate: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z" }), /* @__PURE__ */ t("circle", {
|
|
138
|
-
cx: "12",
|
|
139
|
-
cy: "10",
|
|
140
|
-
r: "2.5"
|
|
141
|
-
})] }),
|
|
142
|
-
delete: /* @__PURE__ */ n(e, { children: [
|
|
143
|
-
/* @__PURE__ */ t("path", { d: "M4 7h16" }),
|
|
144
|
-
/* @__PURE__ */ t("path", { d: "M9 7V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2" }),
|
|
145
|
-
/* @__PURE__ */ t("path", { d: "M6 7l1 13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1l1-13" }),
|
|
146
|
-
/* @__PURE__ */ t("path", { d: "M10 11v6" }),
|
|
147
|
-
/* @__PURE__ */ t("path", { d: "M14 11v6" })
|
|
148
|
-
] }),
|
|
149
|
-
add: /* @__PURE__ */ n(e, { children: [
|
|
150
|
-
/* @__PURE__ */ t("circle", {
|
|
151
|
-
cx: "12",
|
|
152
|
-
cy: "12",
|
|
153
|
-
r: "9"
|
|
154
|
-
}),
|
|
155
|
-
/* @__PURE__ */ t("path", { d: "M12 8v8" }),
|
|
156
|
-
/* @__PURE__ */ t("path", { d: "M8 12h8" })
|
|
157
|
-
] }),
|
|
158
|
-
copy: /* @__PURE__ */ n(e, { children: [
|
|
159
|
-
/* @__PURE__ */ t("rect", {
|
|
160
|
-
height: "13",
|
|
161
|
-
rx: "1.5",
|
|
162
|
-
width: "10",
|
|
163
|
-
x: "8",
|
|
164
|
-
y: "8"
|
|
165
|
-
}),
|
|
166
|
-
/* @__PURE__ */ t("path", { d: "M11 8V5a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-3" }),
|
|
167
|
-
/* @__PURE__ */ t("path", { d: "M11 12h4" }),
|
|
168
|
-
/* @__PURE__ */ t("path", { d: "M11 15h4" })
|
|
169
|
-
] }),
|
|
170
|
-
paste: /* @__PURE__ */ n(e, { children: [
|
|
171
|
-
/* @__PURE__ */ t("rect", {
|
|
172
|
-
height: "15",
|
|
173
|
-
rx: "1.5",
|
|
174
|
-
width: "12",
|
|
175
|
-
x: "6",
|
|
176
|
-
y: "5"
|
|
177
|
-
}),
|
|
178
|
-
/* @__PURE__ */ t("path", { d: "M9 5V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1" }),
|
|
179
|
-
/* @__PURE__ */ t("path", { d: "M11 11h2" }),
|
|
180
|
-
/* @__PURE__ */ t("path", { d: "M11 14h2" })
|
|
181
|
-
] }),
|
|
182
|
-
info: /* @__PURE__ */ n(e, { children: [
|
|
183
|
-
/* @__PURE__ */ t("circle", {
|
|
184
|
-
cx: "12",
|
|
185
|
-
cy: "12",
|
|
186
|
-
r: "9"
|
|
187
|
-
}),
|
|
188
|
-
/* @__PURE__ */ t("path", { d: "M12 11v5" }),
|
|
189
|
-
/* @__PURE__ */ t("circle", {
|
|
190
|
-
cx: "12",
|
|
191
|
-
cy: "8",
|
|
192
|
-
r: "0.5",
|
|
193
|
-
fill: "currentColor",
|
|
194
|
-
stroke: "none"
|
|
195
|
-
})
|
|
196
|
-
] }),
|
|
197
|
-
touch: /* @__PURE__ */ n(e, { children: [
|
|
198
|
-
/* @__PURE__ */ t("path", { d: "M9 11V5.5a1.5 1.5 0 0 1 3 0V11" }),
|
|
199
|
-
/* @__PURE__ */ t("path", { d: "M12 11v-.5a1.5 1.5 0 0 1 3 0V12" }),
|
|
200
|
-
/* @__PURE__ */ t("path", { d: "M15 12v-.5a1.5 1.5 0 0 1 3 0v5.5a5 5 0 0 1-5 5h-2a5 5 0 0 1-4-2l-3-4a1.5 1.5 0 0 1 2.4-1.8L9 16V9a1.5 1.5 0 0 1 0 0v2" }),
|
|
201
|
-
/* @__PURE__ */ t("path", { d: "M6 4.5a3 3 0 0 1 1-3" })
|
|
202
|
-
] }),
|
|
203
|
-
edit: /* @__PURE__ */ n(e, { children: [
|
|
204
|
-
/* @__PURE__ */ t("path", { d: "M14 5l5 5L8 21H3v-5z" }),
|
|
205
|
-
/* @__PURE__ */ t("path", { d: "M12 7l5 5" }),
|
|
206
|
-
/* @__PURE__ */ t("path", { d: "M3 21h18" })
|
|
207
|
-
] }),
|
|
208
|
-
keyboard: /* @__PURE__ */ n(e, { children: [
|
|
209
|
-
/* @__PURE__ */ t("rect", {
|
|
210
|
-
height: "12",
|
|
211
|
-
rx: "1.5",
|
|
212
|
-
width: "20",
|
|
213
|
-
x: "2",
|
|
214
|
-
y: "6"
|
|
215
|
-
}),
|
|
216
|
-
/* @__PURE__ */ t("path", { d: "M6 10h0" }),
|
|
217
|
-
/* @__PURE__ */ t("path", { d: "M10 10h0" }),
|
|
218
|
-
/* @__PURE__ */ t("path", { d: "M14 10h0" }),
|
|
219
|
-
/* @__PURE__ */ t("path", { d: "M18 10h0" }),
|
|
220
|
-
/* @__PURE__ */ t("path", { d: "M6 14h12" })
|
|
221
|
-
] }),
|
|
222
|
-
type: /* @__PURE__ */ n(e, { children: [
|
|
223
|
-
/* @__PURE__ */ t("path", { d: "M5 6h14" }),
|
|
224
|
-
/* @__PURE__ */ t("path", { d: "M12 6v13" }),
|
|
225
|
-
/* @__PURE__ */ t("path", { d: "M9 19h6" }),
|
|
226
|
-
/* @__PURE__ */ t("path", { d: "M16 13l1.5 4 .3.8a2 2 0 0 0 1.7 1.2c1.2 0 2-1 2-2.2 0-.8-.4-1.6-1-2.4L18 12" })
|
|
227
|
-
] }),
|
|
228
|
-
handle: /* @__PURE__ */ n(e, { children: [
|
|
229
|
-
/* @__PURE__ */ t("circle", {
|
|
230
|
-
cx: "9",
|
|
231
|
-
cy: "6",
|
|
232
|
-
r: "1.4",
|
|
233
|
-
fill: "currentColor",
|
|
234
|
-
stroke: "none"
|
|
235
|
-
}),
|
|
236
|
-
/* @__PURE__ */ t("circle", {
|
|
237
|
-
cx: "15",
|
|
238
|
-
cy: "6",
|
|
239
|
-
r: "1.4",
|
|
240
|
-
fill: "currentColor",
|
|
241
|
-
stroke: "none"
|
|
242
|
-
}),
|
|
243
|
-
/* @__PURE__ */ t("circle", {
|
|
244
|
-
cx: "9",
|
|
245
|
-
cy: "12",
|
|
246
|
-
r: "1.4",
|
|
247
|
-
fill: "currentColor",
|
|
248
|
-
stroke: "none"
|
|
249
|
-
}),
|
|
250
|
-
/* @__PURE__ */ t("circle", {
|
|
251
|
-
cx: "15",
|
|
252
|
-
cy: "12",
|
|
253
|
-
r: "1.4",
|
|
254
|
-
fill: "currentColor",
|
|
255
|
-
stroke: "none"
|
|
256
|
-
}),
|
|
257
|
-
/* @__PURE__ */ t("circle", {
|
|
258
|
-
cx: "9",
|
|
259
|
-
cy: "18",
|
|
260
|
-
r: "1.4",
|
|
261
|
-
fill: "currentColor",
|
|
262
|
-
stroke: "none"
|
|
263
|
-
}),
|
|
264
|
-
/* @__PURE__ */ t("circle", {
|
|
265
|
-
cx: "15",
|
|
266
|
-
cy: "18",
|
|
267
|
-
r: "1.4",
|
|
268
|
-
fill: "currentColor",
|
|
269
|
-
stroke: "none"
|
|
270
|
-
})
|
|
271
|
-
] }),
|
|
272
|
-
card: /* @__PURE__ */ n(e, { children: [
|
|
273
|
-
/* @__PURE__ */ t("rect", {
|
|
274
|
-
height: "14",
|
|
275
|
-
rx: "2",
|
|
276
|
-
width: "18",
|
|
277
|
-
x: "3",
|
|
278
|
-
y: "5"
|
|
279
|
-
}),
|
|
280
|
-
/* @__PURE__ */ t("path", { d: "M3 10h18" }),
|
|
281
|
-
/* @__PURE__ */ t("path", { d: "M7 14h6" }),
|
|
282
|
-
/* @__PURE__ */ t("path", { d: "M7 17h4" })
|
|
283
|
-
] }),
|
|
284
|
-
minimap: /* @__PURE__ */ n(e, { children: [
|
|
285
|
-
/* @__PURE__ */ t("rect", {
|
|
286
|
-
height: "18",
|
|
287
|
-
rx: "2",
|
|
288
|
-
width: "18",
|
|
289
|
-
x: "3",
|
|
290
|
-
y: "3"
|
|
291
|
-
}),
|
|
292
|
-
/* @__PURE__ */ t("rect", {
|
|
293
|
-
height: "7",
|
|
294
|
-
rx: "1",
|
|
295
|
-
width: "9",
|
|
296
|
-
x: "7",
|
|
297
|
-
y: "7"
|
|
298
|
-
}),
|
|
299
|
-
/* @__PURE__ */ t("path", { d: "M7 17h6" })
|
|
300
|
-
] }),
|
|
301
|
-
"font-size": /* @__PURE__ */ n(e, { children: [
|
|
302
|
-
/* @__PURE__ */ t("path", { d: "M5 16L9 7l4 9" }),
|
|
303
|
-
/* @__PURE__ */ t("path", { d: "M6.5 13h5" }),
|
|
304
|
-
/* @__PURE__ */ t("path", { d: "M15 18l2.5-5 2.5 5" }),
|
|
305
|
-
/* @__PURE__ */ t("path", { d: "M16 16.5h3" })
|
|
306
|
-
] }),
|
|
307
|
-
drag: /* @__PURE__ */ n(e, { children: [
|
|
308
|
-
/* @__PURE__ */ t("path", { d: "M18 11V6a2 2 0 0 0-4 0v5" }),
|
|
309
|
-
/* @__PURE__ */ t("path", { d: "M14 10V4a2 2 0 0 0-4 0v6" }),
|
|
310
|
-
/* @__PURE__ */ t("path", { d: "M10 10.5V6a2 2 0 0 0-4 0v8" }),
|
|
311
|
-
/* @__PURE__ */ t("path", { d: "M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15" })
|
|
312
|
-
] }),
|
|
313
|
-
search: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("circle", {
|
|
314
|
-
cx: "11",
|
|
315
|
-
cy: "11",
|
|
316
|
-
r: "7"
|
|
317
|
-
}), /* @__PURE__ */ t("path", { d: "M21 21l-4.3-4.3" })] }),
|
|
318
|
-
close: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M6 6l12 12" }), /* @__PURE__ */ t("path", { d: "M18 6L6 18" })] }),
|
|
319
|
-
check: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M5 12.5l4.5 4.5L19 7.5" }) }),
|
|
320
|
-
"chevron-down": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M6 9l6 6 6-6" }) }),
|
|
321
|
-
"chevron-up": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M6 15l6-6 6 6" }) }),
|
|
322
|
-
"chevron-left": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M15 6l-6 6 6 6" }) }),
|
|
323
|
-
"chevron-right": /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M9 6l6 6-6 6" }) }),
|
|
324
|
-
"arrow-up": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M12 19V5" }), /* @__PURE__ */ t("path", { d: "M6 11l6-6 6 6" })] }),
|
|
325
|
-
"arrow-down": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M12 5v14" }), /* @__PURE__ */ t("path", { d: "M6 13l6 6 6-6" })] }),
|
|
326
|
-
"arrow-left": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M19 12H5" }), /* @__PURE__ */ t("path", { d: "M11 6l-6 6 6 6" })] }),
|
|
327
|
-
"arrow-right": /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M5 12h14" }), /* @__PURE__ */ t("path", { d: "M13 6l6 6-6 6" })] }),
|
|
328
|
-
settings: /* @__PURE__ */ n(e, { children: [
|
|
329
|
-
/* @__PURE__ */ t("circle", {
|
|
330
|
-
cx: "12",
|
|
331
|
-
cy: "12",
|
|
332
|
-
r: "3"
|
|
333
|
-
}),
|
|
334
|
-
/* @__PURE__ */ t("path", { d: "M12 2.5v3" }),
|
|
335
|
-
/* @__PURE__ */ t("path", { d: "M12 18.5v3" }),
|
|
336
|
-
/* @__PURE__ */ t("path", { d: "M21.5 12h-3" }),
|
|
337
|
-
/* @__PURE__ */ t("path", { d: "M5.5 12h-3" }),
|
|
338
|
-
/* @__PURE__ */ t("path", { d: "M18.7 5.3l-2.1 2.1" }),
|
|
339
|
-
/* @__PURE__ */ t("path", { d: "M7.4 16.6l-2.1 2.1" }),
|
|
340
|
-
/* @__PURE__ */ t("path", { d: "M18.7 18.7l-2.1-2.1" }),
|
|
341
|
-
/* @__PURE__ */ t("path", { d: "M7.4 7.4L5.3 5.3" })
|
|
342
|
-
] }),
|
|
343
|
-
user: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("circle", {
|
|
344
|
-
cx: "12",
|
|
345
|
-
cy: "8",
|
|
346
|
-
r: "4"
|
|
347
|
-
}), /* @__PURE__ */ t("path", { d: "M4 20c0-4 4-6 8-6s8 2 8 6" })] }),
|
|
348
|
-
home: /* @__PURE__ */ n(e, { children: [
|
|
349
|
-
/* @__PURE__ */ t("path", { d: "M4 11l8-7 8 7" }),
|
|
350
|
-
/* @__PURE__ */ t("path", { d: "M6 10v9a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-9" }),
|
|
351
|
-
/* @__PURE__ */ t("path", { d: "M10 20v-5h4v5" })
|
|
352
|
-
] }),
|
|
353
|
-
star: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 17.9l-5.2 2.6 1-5.8L3.5 9.7l5.9-.9z" }) }),
|
|
354
|
-
bookmark: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M6 4h12a1 1 0 0 1 1 1v15l-7-4-7 4V5a1 1 0 0 1 1-1z" }) }),
|
|
355
|
-
link: /* @__PURE__ */ n(e, { children: [
|
|
356
|
-
/* @__PURE__ */ t("path", { d: "M9 15l6-6" }),
|
|
357
|
-
/* @__PURE__ */ t("path", { d: "M10.5 6.5l1-1a3.5 3.5 0 0 1 5 5l-1 1" }),
|
|
358
|
-
/* @__PURE__ */ t("path", { d: "M13.5 17.5l-1 1a3.5 3.5 0 0 1-5-5l1-1" })
|
|
359
|
-
] }),
|
|
360
|
-
image: /* @__PURE__ */ n(e, { children: [
|
|
361
|
-
/* @__PURE__ */ t("rect", {
|
|
362
|
-
height: "16",
|
|
363
|
-
rx: "1.5",
|
|
364
|
-
width: "18",
|
|
365
|
-
x: "3",
|
|
366
|
-
y: "4"
|
|
367
|
-
}),
|
|
368
|
-
/* @__PURE__ */ t("circle", {
|
|
369
|
-
cx: "8.5",
|
|
370
|
-
cy: "9.5",
|
|
371
|
-
r: "1.5"
|
|
372
|
-
}),
|
|
373
|
-
/* @__PURE__ */ t("path", { d: "M4 17l5-5 4 4 3-3 4 4" })
|
|
374
|
-
] }),
|
|
375
|
-
calendar: /* @__PURE__ */ n(e, { children: [
|
|
376
|
-
/* @__PURE__ */ t("rect", {
|
|
377
|
-
height: "16",
|
|
378
|
-
rx: "1.5",
|
|
379
|
-
width: "18",
|
|
380
|
-
x: "3",
|
|
381
|
-
y: "5"
|
|
382
|
-
}),
|
|
383
|
-
/* @__PURE__ */ t("path", { d: "M3 9h18" }),
|
|
384
|
-
/* @__PURE__ */ t("path", { d: "M8 3v4" }),
|
|
385
|
-
/* @__PURE__ */ t("path", { d: "M16 3v4" }),
|
|
386
|
-
/* @__PURE__ */ t("path", { d: "M7 13h2" }),
|
|
387
|
-
/* @__PURE__ */ t("path", { d: "M11 13h2" }),
|
|
388
|
-
/* @__PURE__ */ t("path", { d: "M15 13h2" })
|
|
389
|
-
] }),
|
|
390
|
-
clock: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("circle", {
|
|
391
|
-
cx: "12",
|
|
392
|
-
cy: "12",
|
|
393
|
-
r: "9"
|
|
394
|
-
}), /* @__PURE__ */ t("path", { d: "M12 7v5l3.5 2" })] }),
|
|
395
|
-
bell: /* @__PURE__ */ n(e, { children: [
|
|
396
|
-
/* @__PURE__ */ t("path", { d: "M6 17h12l-1.2-2V11a4.8 4.8 0 0 0-9.6 0v4z" }),
|
|
397
|
-
/* @__PURE__ */ t("path", { d: "M10 17a2 2 0 0 0 4 0" }),
|
|
398
|
-
/* @__PURE__ */ t("path", { d: "M12 5v1.5" })
|
|
399
|
-
] }),
|
|
400
|
-
download: /* @__PURE__ */ n(e, { children: [
|
|
401
|
-
/* @__PURE__ */ t("path", { d: "M12 4v10" }),
|
|
402
|
-
/* @__PURE__ */ t("path", { d: "M8 10l4 4 4-4" }),
|
|
403
|
-
/* @__PURE__ */ t("path", { d: "M4 19h16" })
|
|
404
|
-
] }),
|
|
405
|
-
upload: /* @__PURE__ */ n(e, { children: [
|
|
406
|
-
/* @__PURE__ */ t("path", { d: "M12 16V6" }),
|
|
407
|
-
/* @__PURE__ */ t("path", { d: "M8 10l4-4 4 4" }),
|
|
408
|
-
/* @__PURE__ */ t("path", { d: "M4 19h16" })
|
|
409
|
-
] }),
|
|
410
|
-
share: /* @__PURE__ */ n(e, { children: [
|
|
411
|
-
/* @__PURE__ */ t("circle", {
|
|
412
|
-
cx: "6",
|
|
413
|
-
cy: "12",
|
|
414
|
-
r: "2.5"
|
|
415
|
-
}),
|
|
416
|
-
/* @__PURE__ */ t("circle", {
|
|
417
|
-
cx: "18",
|
|
418
|
-
cy: "6",
|
|
419
|
-
r: "2.5"
|
|
420
|
-
}),
|
|
421
|
-
/* @__PURE__ */ t("circle", {
|
|
422
|
-
cx: "18",
|
|
423
|
-
cy: "18",
|
|
424
|
-
r: "2.5"
|
|
425
|
-
}),
|
|
426
|
-
/* @__PURE__ */ t("path", { d: "M8.2 10.8l7.6-3.6" }),
|
|
427
|
-
/* @__PURE__ */ t("path", { d: "M8.2 13.2l7.6 3.6" })
|
|
428
|
-
] }),
|
|
429
|
-
undo: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M9 7L4 12l5 5" }), /* @__PURE__ */ t("path", { d: "M4 12h11a5 5 0 0 1 0 10h-3" })] }),
|
|
430
|
-
redo: /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("path", { d: "M15 7l5 5-5 5" }), /* @__PURE__ */ t("path", { d: "M20 12H9a5 5 0 0 0 0 10h3" })] }),
|
|
431
|
-
"zoom-in": /* @__PURE__ */ n(e, { children: [
|
|
432
|
-
/* @__PURE__ */ t("circle", {
|
|
433
|
-
cx: "11",
|
|
434
|
-
cy: "11",
|
|
435
|
-
r: "7"
|
|
436
|
-
}),
|
|
437
|
-
/* @__PURE__ */ t("path", { d: "M21 21l-4.3-4.3" }),
|
|
438
|
-
/* @__PURE__ */ t("path", { d: "M11 8v6" }),
|
|
439
|
-
/* @__PURE__ */ t("path", { d: "M8 11h6" })
|
|
440
|
-
] }),
|
|
441
|
-
"zoom-out": /* @__PURE__ */ n(e, { children: [
|
|
442
|
-
/* @__PURE__ */ t("circle", {
|
|
443
|
-
cx: "11",
|
|
444
|
-
cy: "11",
|
|
445
|
-
r: "7"
|
|
446
|
-
}),
|
|
447
|
-
/* @__PURE__ */ t("path", { d: "M21 21l-4.3-4.3" }),
|
|
448
|
-
/* @__PURE__ */ t("path", { d: "M8 11h6" })
|
|
449
|
-
] }),
|
|
450
|
-
menu: /* @__PURE__ */ n(e, { children: [
|
|
451
|
-
/* @__PURE__ */ t("path", { d: "M4 7h16" }),
|
|
452
|
-
/* @__PURE__ */ t("path", { d: "M4 12h16" }),
|
|
453
|
-
/* @__PURE__ */ t("path", { d: "M4 17h16" })
|
|
454
|
-
] }),
|
|
455
|
-
more: /* @__PURE__ */ n(e, { children: [
|
|
456
|
-
/* @__PURE__ */ t("circle", {
|
|
457
|
-
cx: "12",
|
|
458
|
-
cy: "5",
|
|
459
|
-
r: "1.4",
|
|
460
|
-
fill: "currentColor",
|
|
461
|
-
stroke: "none"
|
|
462
|
-
}),
|
|
463
|
-
/* @__PURE__ */ t("circle", {
|
|
464
|
-
cx: "12",
|
|
465
|
-
cy: "12",
|
|
466
|
-
r: "1.4",
|
|
467
|
-
fill: "currentColor",
|
|
468
|
-
stroke: "none"
|
|
469
|
-
}),
|
|
470
|
-
/* @__PURE__ */ t("circle", {
|
|
471
|
-
cx: "12",
|
|
472
|
-
cy: "19",
|
|
473
|
-
r: "1.4",
|
|
474
|
-
fill: "currentColor",
|
|
475
|
-
stroke: "none"
|
|
476
|
-
})
|
|
477
|
-
] }),
|
|
478
|
-
filter: /* @__PURE__ */ t(e, { children: /* @__PURE__ */ t("path", { d: "M4 5h16l-6 8v6l-4-2v-4z" }) }),
|
|
479
|
-
sort: /* @__PURE__ */ n(e, { children: [
|
|
480
|
-
/* @__PURE__ */ t("path", { d: "M8 4v16" }),
|
|
481
|
-
/* @__PURE__ */ t("path", { d: "M5 7l3-3 3 3" }),
|
|
482
|
-
/* @__PURE__ */ t("path", { d: "M11 17l-3 3-3-3" }),
|
|
483
|
-
/* @__PURE__ */ t("path", { d: "M14 8h6" }),
|
|
484
|
-
/* @__PURE__ */ t("path", { d: "M14 12h6" }),
|
|
485
|
-
/* @__PURE__ */ t("path", { d: "M14 16h6" })
|
|
486
|
-
] })
|
|
487
|
-
};
|
|
488
|
-
function i({ label: e, name: n, className: i, ...a }) {
|
|
489
|
-
return /* @__PURE__ */ t("svg", {
|
|
490
|
-
className: [
|
|
491
|
-
"hn-icon",
|
|
492
|
-
`hn-icon--${n}`,
|
|
493
|
-
i
|
|
494
|
-
].filter(Boolean).join(" "),
|
|
495
|
-
fill: "none",
|
|
496
|
-
focusable: "false",
|
|
497
|
-
height: "1em",
|
|
498
|
-
stroke: "currentColor",
|
|
499
|
-
strokeLinecap: "round",
|
|
500
|
-
strokeLinejoin: "round",
|
|
501
|
-
strokeWidth: 1.5,
|
|
502
|
-
viewBox: "0 0 24 24",
|
|
503
|
-
width: "1em",
|
|
504
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
505
|
-
...e === void 0 ? { "aria-hidden": !0 } : {
|
|
506
|
-
"aria-label": e,
|
|
507
|
-
role: "img"
|
|
508
|
-
},
|
|
509
|
-
...a,
|
|
510
|
-
children: r[n]
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
//#endregion
|
|
514
|
-
//#region src/components/icon/icon-names.ts
|
|
515
|
-
var a = /* @__PURE__ */ "file.save.study.switch.mouse.line.curve.polygon.lasso.rectangle.ellipse.pen.eraser.magnet.locate.delete.add.copy.paste.info.touch.edit.keyboard.type.handle.card.minimap.font-size.drag.search.close.check.chevron-down.chevron-up.chevron-left.chevron-right.arrow-up.arrow-down.arrow-left.arrow-right.settings.user.home.star.bookmark.link.image.calendar.clock.bell.download.upload.share.undo.redo.zoom-in.zoom-out.menu.more.filter.sort".split(".");
|
|
516
|
-
//#endregion
|
|
517
|
-
export { i as n, a as t };
|
package/dist/menu-Dj-Dje_l.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/* empty css */
|
|
2
|
-
import { t as e } from "./use-anchor-position-DWle8yoL.js";
|
|
3
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
import { useEffect as r, useRef as i, useState as a } from "react";
|
|
5
|
-
import { createPortal as o } from "react-dom";
|
|
6
|
-
//#region src/components/menu/Menu.tsx
|
|
7
|
-
function s({ children: n, className: r, anchor: i = null, placement: a = "bottom-start", anchorOffset: s = 6, anchorCrossOffset: c = 0, viewportMargin: l = 8, ref: u, style: d, ...f }) {
|
|
8
|
-
let p = i !== null, { floatingRef: m, style: h } = e({
|
|
9
|
-
anchor: i,
|
|
10
|
-
placement: a,
|
|
11
|
-
offset: s,
|
|
12
|
-
crossOffset: c,
|
|
13
|
-
viewportMargin: l
|
|
14
|
-
}), g = [
|
|
15
|
-
"hn-menu",
|
|
16
|
-
p ? "hn-menu--floating" : void 0,
|
|
17
|
-
r
|
|
18
|
-
].filter(Boolean).join(" "), _ = p ? {
|
|
19
|
-
...h,
|
|
20
|
-
...d
|
|
21
|
-
} : d, v = (e) => {
|
|
22
|
-
m.current = e, typeof u == "function" ? u(e) : u != null && (u.current = e);
|
|
23
|
-
}, y = /* @__PURE__ */ t("div", {
|
|
24
|
-
...f,
|
|
25
|
-
className: g,
|
|
26
|
-
ref: v,
|
|
27
|
-
role: "menu",
|
|
28
|
-
style: _,
|
|
29
|
-
children: n
|
|
30
|
-
});
|
|
31
|
-
return p && typeof document < "u" ? o(y, document.body) : y;
|
|
32
|
-
}
|
|
33
|
-
function c({ children: e, className: r, shortcut: i, tone: a = "default", type: o = "button", ...s }) {
|
|
34
|
-
let c = [
|
|
35
|
-
"hn-menu__item",
|
|
36
|
-
`hn-menu__item--${a}`,
|
|
37
|
-
r
|
|
38
|
-
].filter(Boolean).join(" ");
|
|
39
|
-
return /* @__PURE__ */ n("button", {
|
|
40
|
-
...s,
|
|
41
|
-
className: c,
|
|
42
|
-
role: "menuitem",
|
|
43
|
-
type: o,
|
|
44
|
-
children: [/* @__PURE__ */ t("span", {
|
|
45
|
-
className: "hn-menu__item-label",
|
|
46
|
-
children: e
|
|
47
|
-
}), i != null && i !== "" ? /* @__PURE__ */ t("span", {
|
|
48
|
-
className: "hn-menu__shortcut",
|
|
49
|
-
children: i
|
|
50
|
-
}) : null]
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
function l({ className: e, ...n }) {
|
|
54
|
-
let r = ["hn-menu__separator", e].filter(Boolean).join(" ");
|
|
55
|
-
return /* @__PURE__ */ t("hr", {
|
|
56
|
-
...n,
|
|
57
|
-
className: r
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function u({ children: e, className: n, ...r }) {
|
|
61
|
-
let i = ["hn-menu__label", n].filter(Boolean).join(" ");
|
|
62
|
-
return /* @__PURE__ */ t("div", {
|
|
63
|
-
...r,
|
|
64
|
-
className: i,
|
|
65
|
-
children: e
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
var d = 150, f = 200;
|
|
69
|
-
function p({ label: e, children: o, className: c, disabled: l = !1, "aria-label": u, ...p }) {
|
|
70
|
-
let [m, h] = a(!1), g = i(null), _ = i(null), [v, y] = a(null), b = i(null), x = () => {
|
|
71
|
-
g.current !== null && (clearTimeout(g.current), g.current = null);
|
|
72
|
-
}, S = (e, t) => {
|
|
73
|
-
x(), g.current = setTimeout(() => {
|
|
74
|
-
h(e), g.current = null;
|
|
75
|
-
}, t);
|
|
76
|
-
};
|
|
77
|
-
r(() => () => {
|
|
78
|
-
g.current !== null && (clearTimeout(g.current), g.current = null);
|
|
79
|
-
}, []);
|
|
80
|
-
let C = () => {
|
|
81
|
-
l || S(!0, d);
|
|
82
|
-
}, w = () => {
|
|
83
|
-
S(!1, f);
|
|
84
|
-
}, T = () => {
|
|
85
|
-
l || (x(), h((e) => !e));
|
|
86
|
-
}, E = () => {
|
|
87
|
-
let e = b.current;
|
|
88
|
-
if (e === null) return;
|
|
89
|
-
let t = e.querySelector("[role=\"menuitem\"]");
|
|
90
|
-
t === null ? e.focus() : t.focus();
|
|
91
|
-
}, D = (e) => {
|
|
92
|
-
if (!l) switch (e.key) {
|
|
93
|
-
case "ArrowRight":
|
|
94
|
-
case "Enter":
|
|
95
|
-
case " ":
|
|
96
|
-
e.preventDefault(), x(), h(!0), requestAnimationFrame(() => {
|
|
97
|
-
E();
|
|
98
|
-
});
|
|
99
|
-
break;
|
|
100
|
-
}
|
|
101
|
-
}, O = (e) => {
|
|
102
|
-
switch (e.key) {
|
|
103
|
-
case "ArrowLeft":
|
|
104
|
-
case "Escape":
|
|
105
|
-
e.preventDefault(), x(), h(!1), _.current?.focus();
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}, k = u ?? (typeof e == "string" ? e : void 0), A = [
|
|
109
|
-
"hn-menu__submenu",
|
|
110
|
-
m ? "hn-menu__submenu--open" : void 0,
|
|
111
|
-
c
|
|
112
|
-
].filter(Boolean).join(" "), j = (e) => {
|
|
113
|
-
_.current = e, y(e);
|
|
114
|
-
};
|
|
115
|
-
return /* @__PURE__ */ n("div", {
|
|
116
|
-
...p,
|
|
117
|
-
className: A,
|
|
118
|
-
onPointerEnter: l ? void 0 : C,
|
|
119
|
-
onPointerLeave: l ? void 0 : w,
|
|
120
|
-
children: [/* @__PURE__ */ n("button", {
|
|
121
|
-
"aria-expanded": m,
|
|
122
|
-
"aria-haspopup": "menu",
|
|
123
|
-
className: "hn-menu__item hn-menu__submenu-trigger",
|
|
124
|
-
disabled: l,
|
|
125
|
-
onClick: T,
|
|
126
|
-
onKeyDown: D,
|
|
127
|
-
ref: j,
|
|
128
|
-
role: "menuitem",
|
|
129
|
-
type: "button",
|
|
130
|
-
children: [/* @__PURE__ */ t("span", {
|
|
131
|
-
className: "hn-menu__item-label",
|
|
132
|
-
children: e
|
|
133
|
-
}), /* @__PURE__ */ t("span", {
|
|
134
|
-
"aria-hidden": "true",
|
|
135
|
-
className: "hn-menu__submenu-chevron",
|
|
136
|
-
children: "▸"
|
|
137
|
-
})]
|
|
138
|
-
}), m ? /* @__PURE__ */ t(s, {
|
|
139
|
-
anchor: v,
|
|
140
|
-
anchorCrossOffset: -6,
|
|
141
|
-
anchorOffset: 2,
|
|
142
|
-
"aria-label": k,
|
|
143
|
-
className: "hn-menu__submenu-panel",
|
|
144
|
-
onKeyDown: O,
|
|
145
|
-
placement: "right-start",
|
|
146
|
-
ref: b,
|
|
147
|
-
tabIndex: -1,
|
|
148
|
-
children: o
|
|
149
|
-
}) : null]
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
export { p as a, l as i, c as n, u as r, s as t };
|