@wix/site-ui 1.29.0 → 1.31.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/dist/1268.js +99 -0
- package/dist/1279.js +7 -0
- package/dist/1457.js +10 -0
- package/dist/1477.js +106 -0
- package/dist/1500.js +111 -0
- package/dist/167.js +6 -0
- package/dist/2274.js +34 -0
- package/dist/2287.js +17 -0
- package/dist/2418.js +31 -0
- package/dist/2801.js +20 -0
- package/dist/285.js +86 -0
- package/dist/2861.js +6 -0
- package/dist/3020.js +7 -0
- package/dist/3021.js +72 -0
- package/dist/3056.js +229 -0
- package/dist/3140.js +4 -0
- package/dist/3248.js +307 -0
- package/dist/3296.js +4 -0
- package/dist/3319.js +400 -0
- package/dist/3395.js +4 -0
- package/dist/3485.js +854 -0
- package/dist/353.js +14 -0
- package/dist/3670.js +418 -0
- package/dist/3829.js +113 -0
- package/dist/4026.js +12 -0
- package/dist/4143.js +46 -0
- package/dist/42.js +32 -0
- package/dist/4281.js +30 -0
- package/dist/4346.js +2 -0
- package/dist/4388.js +418 -0
- package/dist/4490.js +32 -0
- package/dist/4495.js +9 -0
- package/dist/4549.js +24 -0
- package/dist/4586.js +41 -0
- package/dist/4586.js.LICENSE.txt +19 -0
- package/dist/4707.js +19 -0
- package/dist/4723.js +7 -0
- package/dist/4745.js +7 -0
- package/dist/4768.js +35 -0
- package/dist/4922.js +15 -0
- package/dist/5036.js +17 -0
- package/dist/5085.js +20 -0
- package/dist/5299.js +597 -0
- package/dist/5659.js +4 -0
- package/dist/5778.js +10 -0
- package/dist/5864.js +86 -0
- package/dist/5992.js +913 -0
- package/dist/5992.js.LICENSE.txt +19 -0
- package/dist/6003.js +10 -0
- package/dist/6046.js +29 -0
- package/dist/6089.js +2355 -0
- package/dist/6107.js +10 -0
- package/dist/6247.js +20 -0
- package/dist/6270.js +487 -0
- package/dist/6329.js +32 -0
- package/dist/6330.js +30 -0
- package/dist/6499.js +7 -0
- package/dist/6535.js +71 -0
- package/dist/6588.js +382 -0
- package/dist/6706.js +16 -0
- package/dist/6825.js +7 -0
- package/dist/6882.js +1562 -0
- package/dist/6914.js +30 -0
- package/dist/7021.js +13 -0
- package/dist/7366.js +83 -0
- package/dist/7373.js +25 -0
- package/dist/7541.js +25 -0
- package/dist/7564.js +10 -0
- package/dist/7642.js +20 -0
- package/dist/7725.js +10 -0
- package/dist/7871.js +38 -0
- package/dist/8052.js +352 -0
- package/dist/8106.js +238 -0
- package/dist/8171.js +346 -0
- package/dist/8225.js +21 -0
- package/dist/8272.js +333 -0
- package/dist/8527.js +58 -0
- package/dist/8724.js +10 -0
- package/dist/8750.js +1920 -0
- package/dist/8758.js +43 -0
- package/dist/880.js +149 -0
- package/dist/8935.js +8 -0
- package/dist/8960.js +22 -0
- package/dist/8971.js +40 -0
- package/dist/8979.js +10 -0
- package/dist/8996.js +71 -0
- package/dist/904.js +121 -0
- package/dist/9048.js +52 -0
- package/dist/9087.js +256 -0
- package/dist/9189.js +158 -0
- package/dist/9255.js +136 -0
- package/dist/9352.js +148 -0
- package/dist/951.js +22 -0
- package/dist/9635.js +22 -0
- package/dist/9829.js +4 -0
- package/dist/9863.js +8 -0
- package/dist/Accordion/index.d.ts +569 -12
- package/dist/Accordion/index.js +423 -8
- package/dist/AlertDialog/index.d.ts +1417 -18
- package/dist/AlertDialog/index.js +34 -14
- package/dist/Autocomplete/index.d.ts +1861 -38
- package/dist/Autocomplete/index.js +98 -24
- package/dist/Avatar/index.d.ts +129 -7
- package/dist/Avatar/index.js +149 -6
- package/dist/Badge/index.css +44 -0
- package/dist/Badge/index.d.ts +22 -0
- package/dist/Badge/index.js +23 -0
- package/dist/Breadcrumbs/index.d.ts +960 -7
- package/dist/Breadcrumbs/index.js +5 -5
- package/dist/Button/index.d.ts +88 -6
- package/dist/Button/index.js +27 -3
- package/dist/Checkbox/index.d.ts +425 -5
- package/dist/Checkbox/index.js +45 -5
- package/dist/CheckboxGroup/index.d.ts +318 -3
- package/dist/CheckboxGroup/index.js +166 -3
- package/dist/Collapsible/index.d.ts +377 -7
- package/dist/Collapsible/index.js +160 -6
- package/dist/Combobox/index.d.ts +1984 -48
- package/dist/Combobox/index.js +352 -29
- package/dist/ContextMenu/index.d.ts +2340 -36
- package/dist/ContextMenu/index.js +197 -22
- package/dist/Dialog/index.d.ts +1355 -18
- package/dist/Dialog/index.js +16 -14
- package/dist/Drawer/index.d.ts +1653 -18
- package/dist/Drawer/index.js +2797 -20
- package/dist/Field/index.d.ts +655 -15
- package/dist/Field/index.js +677 -10
- package/dist/Fieldset/index.d.ts +94 -5
- package/dist/Fieldset/index.js +68 -5
- package/dist/Form/index.d.ts +331 -2
- package/dist/Form/index.js +106 -3
- package/dist/Input/index.d.ts +692 -3
- package/dist/Input/index.js +10 -3
- package/dist/Menu/index.d.ts +2301 -36
- package/dist/Menu/index.js +365 -26
- package/dist/Menubar/index.d.ts +2301 -3
- package/dist/Menubar/index.js +105 -3
- package/dist/Meter/index.d.ts +175 -11
- package/dist/Meter/index.js +129 -9
- package/dist/NavigationMenu/index.d.ts +978 -28
- package/dist/NavigationMenu/index.js +1034 -17
- package/dist/NumberField/index.d.ts +612 -15
- package/dist/NumberField/index.js +1409 -11
- package/dist/Popover/index.d.ts +1655 -20
- package/dist/Popover/index.js +792 -17
- package/dist/PreviewCard/index.d.ts +1523 -14
- package/dist/PreviewCard/index.js +679 -14
- package/dist/Progress/index.d.ts +183 -11
- package/dist/Progress/index.js +181 -9
- package/dist/Radio/index.d.ts +185 -6
- package/dist/Radio/index.js +253 -6
- package/dist/RadioGroup/index.d.ts +341 -2
- package/dist/RadioGroup/index.js +154 -3
- package/dist/ScrollArea/index.d.ts +265 -13
- package/dist/ScrollArea/index.js +892 -10
- package/dist/Select/index.d.ts +1493 -38
- package/dist/Select/index.js +1824 -23
- package/dist/Separator/index.d.ts +80 -6
- package/dist/Separator/index.js +3 -3
- package/dist/Slider/index.d.ts +678 -16
- package/dist/Slider/index.js +1199 -11
- package/dist/Switch/index.d.ts +393 -5
- package/dist/Switch/index.js +208 -6
- package/dist/Tabs/index.d.ts +523 -12
- package/dist/Tabs/index.js +685 -9
- package/dist/Toggle/index.d.ts +305 -2
- package/dist/Toggle/index.js +76 -3
- package/dist/ToggleGroup/index.d.ts +316 -2
- package/dist/ToggleGroup/index.js +102 -3
- package/dist/Toolbar/index.d.ts +282 -13
- package/dist/Toolbar/index.js +230 -9
- package/dist/Tooltip/index.d.ts +1572 -14
- package/dist/Tooltip/index.js +965 -14
- package/dist/index.d.ts +12758 -646
- package/dist/index.js +1 -0
- package/dist/rslib-runtime.js +18 -0
- package/package.json +3 -3
|
@@ -1,7 +1,182 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ContextMenu } from "@base-ui/react/context-menu";
|
|
3
2
|
import clsx from "clsx";
|
|
3
|
+
import { MenuBackdrop_MenuBackdrop, MenuPositioner_MenuPositioner, MenuGroupLabel_MenuGroupLabel, MenuPopup_MenuPopup, MenuArrow_MenuArrow, MenuRootContext, MenuItem_MenuItem, MenuLinkItem_MenuLinkItem, MenuRadioItem_MenuRadioItem, ContextMenuRootContext, MenuSubmenuTrigger_MenuSubmenuTrigger, MenuGroup_MenuGroup, findRootOwnerId, useMenuRootContext, MenuSubmenuRoot, MenuPortal_MenuPortal, useContextMenuRootContext, MenuCheckboxItemIndicator_MenuCheckboxItemIndicator, MenuCheckboxItem_MenuCheckboxItem, MenuRadioItemIndicator_MenuRadioItemIndicator, MenuRadioGroup_MenuRadioGroup, MenuRoot_MenuRoot } from "../6882.js";
|
|
4
|
+
import { useTimeout } from "../42.js";
|
|
5
|
+
import { createChangeEventDetails } from "../4768.js";
|
|
6
|
+
import { triggerPress, cancelOpen } from "../2418.js";
|
|
7
|
+
import { stopEvent } from "../6330.js";
|
|
8
|
+
import { ownerDocument } from "../9829.js";
|
|
9
|
+
import { addEventListener } from "../4723.js";
|
|
10
|
+
import { getTarget, contains } from "../4549.js";
|
|
11
|
+
import { useRenderElement } from "../8272.js";
|
|
12
|
+
import { pressableTriggerOpenStateMapping } from "../4388.js";
|
|
13
|
+
import { useId } from "../6046.js";
|
|
14
|
+
import { Separator } from "../9635.js";
|
|
4
15
|
import * as __rspack_external_react from "react";
|
|
16
|
+
const LONG_PRESS_DELAY = 500;
|
|
17
|
+
const ContextMenuTrigger_ContextMenuTrigger = /*#__PURE__*/ __rspack_external_react.forwardRef(function(componentProps, forwardedRef) {
|
|
18
|
+
const { render, className, style, ...elementProps } = componentProps;
|
|
19
|
+
const { setAnchor, actionsRef, internalBackdropRef, backdropRef, positionerRef, allowMouseUpTriggerRef, initialCursorPointRef, rootId } = useContextMenuRootContext(false);
|
|
20
|
+
const { store } = useMenuRootContext(false);
|
|
21
|
+
const open = store.useState('open');
|
|
22
|
+
const disabled = store.useState('disabled');
|
|
23
|
+
const triggerRef = __rspack_external_react.useRef(null);
|
|
24
|
+
const touchPositionRef = __rspack_external_react.useRef(null);
|
|
25
|
+
const longPressTimeout = useTimeout();
|
|
26
|
+
const allowMouseUpTimeout = useTimeout();
|
|
27
|
+
const allowMouseUpRef = __rspack_external_react.useRef(false);
|
|
28
|
+
function handleLongPress(x, y, event) {
|
|
29
|
+
const isTouchEvent = event.type.startsWith('touch');
|
|
30
|
+
initialCursorPointRef.current = {
|
|
31
|
+
x,
|
|
32
|
+
y
|
|
33
|
+
};
|
|
34
|
+
setAnchor({
|
|
35
|
+
getBoundingClientRect () {
|
|
36
|
+
return DOMRect.fromRect({
|
|
37
|
+
width: isTouchEvent ? 10 : 0,
|
|
38
|
+
height: isTouchEvent ? 10 : 0,
|
|
39
|
+
x,
|
|
40
|
+
y
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
allowMouseUpRef.current = false;
|
|
45
|
+
actionsRef.current?.setOpen(true, createChangeEventDetails(triggerPress, event));
|
|
46
|
+
allowMouseUpTimeout.start(LONG_PRESS_DELAY, ()=>{
|
|
47
|
+
allowMouseUpRef.current = true;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function handleContextMenu(event) {
|
|
51
|
+
if (disabled) return;
|
|
52
|
+
allowMouseUpTriggerRef.current = true;
|
|
53
|
+
stopEvent(event);
|
|
54
|
+
handleLongPress(event.clientX, event.clientY, event.nativeEvent);
|
|
55
|
+
const doc = ownerDocument(triggerRef.current);
|
|
56
|
+
addEventListener(doc, 'mouseup', (mouseEvent)=>{
|
|
57
|
+
allowMouseUpTriggerRef.current = false;
|
|
58
|
+
if (!allowMouseUpRef.current) return;
|
|
59
|
+
allowMouseUpTimeout.clear();
|
|
60
|
+
allowMouseUpRef.current = false;
|
|
61
|
+
const mouseUpTarget = getTarget(mouseEvent);
|
|
62
|
+
if (contains(positionerRef.current, mouseUpTarget)) return;
|
|
63
|
+
if (rootId && mouseUpTarget && findRootOwnerId(mouseUpTarget) === rootId) return;
|
|
64
|
+
actionsRef.current?.setOpen(false, createChangeEventDetails(cancelOpen, mouseEvent));
|
|
65
|
+
}, {
|
|
66
|
+
once: true
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function handleTouchStart(event) {
|
|
70
|
+
if (disabled) return;
|
|
71
|
+
allowMouseUpTriggerRef.current = false;
|
|
72
|
+
if (1 === event.touches.length) {
|
|
73
|
+
event.stopPropagation();
|
|
74
|
+
const touch = event.touches[0];
|
|
75
|
+
touchPositionRef.current = {
|
|
76
|
+
x: touch.clientX,
|
|
77
|
+
y: touch.clientY
|
|
78
|
+
};
|
|
79
|
+
longPressTimeout.start(LONG_PRESS_DELAY, ()=>{
|
|
80
|
+
if (touchPositionRef.current) handleLongPress(touchPositionRef.current.x, touchPositionRef.current.y, event.nativeEvent);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function handleTouchMove(event) {
|
|
85
|
+
if (longPressTimeout.isStarted() && touchPositionRef.current && 1 === event.touches.length) {
|
|
86
|
+
const touch = event.touches[0];
|
|
87
|
+
const moveThreshold = 10;
|
|
88
|
+
const deltaX = Math.abs(touch.clientX - touchPositionRef.current.x);
|
|
89
|
+
const deltaY = Math.abs(touch.clientY - touchPositionRef.current.y);
|
|
90
|
+
if (deltaX > moveThreshold || deltaY > moveThreshold) longPressTimeout.clear();
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function handleTouchEnd() {
|
|
94
|
+
longPressTimeout.clear();
|
|
95
|
+
touchPositionRef.current = null;
|
|
96
|
+
}
|
|
97
|
+
__rspack_external_react.useEffect(()=>{
|
|
98
|
+
function handleDocumentContextMenu(event) {
|
|
99
|
+
if (disabled) return;
|
|
100
|
+
const target = getTarget(event);
|
|
101
|
+
const targetElement = target;
|
|
102
|
+
if (contains(triggerRef.current, targetElement) || contains(internalBackdropRef.current, targetElement) || contains(backdropRef.current, targetElement)) event.preventDefault();
|
|
103
|
+
}
|
|
104
|
+
const doc = ownerDocument(triggerRef.current);
|
|
105
|
+
return addEventListener(doc, 'contextmenu', handleDocumentContextMenu);
|
|
106
|
+
}, [
|
|
107
|
+
backdropRef,
|
|
108
|
+
disabled,
|
|
109
|
+
internalBackdropRef
|
|
110
|
+
]);
|
|
111
|
+
const state = {
|
|
112
|
+
open
|
|
113
|
+
};
|
|
114
|
+
const element = useRenderElement('div', componentProps, {
|
|
115
|
+
state,
|
|
116
|
+
ref: [
|
|
117
|
+
triggerRef,
|
|
118
|
+
forwardedRef
|
|
119
|
+
],
|
|
120
|
+
props: [
|
|
121
|
+
{
|
|
122
|
+
onContextMenu: handleContextMenu,
|
|
123
|
+
onTouchStart: handleTouchStart,
|
|
124
|
+
onTouchMove: handleTouchMove,
|
|
125
|
+
onTouchEnd: handleTouchEnd,
|
|
126
|
+
onTouchCancel: handleTouchEnd,
|
|
127
|
+
style: {
|
|
128
|
+
WebkitTouchCallout: 'none'
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
elementProps
|
|
132
|
+
],
|
|
133
|
+
stateAttributesMapping: pressableTriggerOpenStateMapping
|
|
134
|
+
});
|
|
135
|
+
return element;
|
|
136
|
+
});
|
|
137
|
+
if ("production" !== process.env.NODE_ENV) ContextMenuTrigger_ContextMenuTrigger.displayName = "ContextMenuTrigger";
|
|
138
|
+
function ContextMenuRoot(props) {
|
|
139
|
+
const [anchor, setAnchor] = __rspack_external_react.useState({
|
|
140
|
+
getBoundingClientRect () {
|
|
141
|
+
return DOMRect.fromRect({
|
|
142
|
+
width: 0,
|
|
143
|
+
height: 0,
|
|
144
|
+
x: 0,
|
|
145
|
+
y: 0
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const backdropRef = __rspack_external_react.useRef(null);
|
|
150
|
+
const internalBackdropRef = __rspack_external_react.useRef(null);
|
|
151
|
+
const actionsRef = __rspack_external_react.useRef(null);
|
|
152
|
+
const positionerRef = __rspack_external_react.useRef(null);
|
|
153
|
+
const allowMouseUpTriggerRef = __rspack_external_react.useRef(true);
|
|
154
|
+
const initialCursorPointRef = __rspack_external_react.useRef(null);
|
|
155
|
+
const id = useId();
|
|
156
|
+
const contextValue = __rspack_external_react.useMemo(()=>({
|
|
157
|
+
anchor,
|
|
158
|
+
setAnchor,
|
|
159
|
+
actionsRef,
|
|
160
|
+
backdropRef,
|
|
161
|
+
internalBackdropRef,
|
|
162
|
+
positionerRef,
|
|
163
|
+
allowMouseUpTriggerRef,
|
|
164
|
+
initialCursorPointRef,
|
|
165
|
+
rootId: id
|
|
166
|
+
}), [
|
|
167
|
+
anchor,
|
|
168
|
+
id
|
|
169
|
+
]);
|
|
170
|
+
return /*#__PURE__*/ jsx(ContextMenuRootContext.Provider, {
|
|
171
|
+
value: contextValue,
|
|
172
|
+
children: /*#__PURE__*/ jsx(MenuRootContext.Provider, {
|
|
173
|
+
value: void 0,
|
|
174
|
+
children: /*#__PURE__*/ jsx(MenuRoot_MenuRoot, {
|
|
175
|
+
...props
|
|
176
|
+
})
|
|
177
|
+
})
|
|
178
|
+
});
|
|
179
|
+
}
|
|
5
180
|
const ContextMenu_module = {
|
|
6
181
|
popup: "popup-exWvLg",
|
|
7
182
|
groupLabel: "groupLabel-nJbnHC",
|
|
@@ -11,82 +186,82 @@ const ContextMenu_module = {
|
|
|
11
186
|
radioItem: "radioItem-GkHQXK",
|
|
12
187
|
submenuTrigger: "submenuTrigger-vAkD3A"
|
|
13
188
|
};
|
|
14
|
-
const Trigger = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
189
|
+
const Trigger = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(ContextMenuTrigger_ContextMenuTrigger, {
|
|
15
190
|
ref: ref,
|
|
16
191
|
className: clsx(ContextMenu_module.trigger, className),
|
|
17
192
|
...props
|
|
18
193
|
}));
|
|
19
|
-
const Backdrop = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
194
|
+
const Backdrop = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuBackdrop_MenuBackdrop, {
|
|
20
195
|
ref: ref,
|
|
21
196
|
className: clsx(ContextMenu_module.backdrop, className),
|
|
22
197
|
...props
|
|
23
198
|
}));
|
|
24
|
-
const Positioner = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
199
|
+
const Positioner = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuPositioner_MenuPositioner, {
|
|
25
200
|
ref: ref,
|
|
26
201
|
className: clsx(ContextMenu_module.positioner, className),
|
|
27
202
|
...props
|
|
28
203
|
}));
|
|
29
|
-
const Popup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
204
|
+
const Popup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuPopup_MenuPopup, {
|
|
30
205
|
ref: ref,
|
|
31
206
|
className: clsx(ContextMenu_module.popup, className),
|
|
32
207
|
...props
|
|
33
208
|
}));
|
|
34
|
-
const Arrow = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
209
|
+
const Arrow = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuArrow_MenuArrow, {
|
|
35
210
|
ref: ref,
|
|
36
211
|
className: clsx(ContextMenu_module.arrow, className),
|
|
37
212
|
...props
|
|
38
213
|
}));
|
|
39
|
-
const Group = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
214
|
+
const Group = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuGroup_MenuGroup, {
|
|
40
215
|
ref: ref,
|
|
41
216
|
className: clsx(ContextMenu_module.group, className),
|
|
42
217
|
...props
|
|
43
218
|
}));
|
|
44
|
-
const GroupLabel = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
219
|
+
const GroupLabel = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuGroupLabel_MenuGroupLabel, {
|
|
45
220
|
ref: ref,
|
|
46
221
|
className: clsx(ContextMenu_module.groupLabel, className),
|
|
47
222
|
...props
|
|
48
223
|
}));
|
|
49
|
-
const Item = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
224
|
+
const Item = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuItem_MenuItem, {
|
|
50
225
|
ref: ref,
|
|
51
226
|
className: clsx(ContextMenu_module.item, className),
|
|
52
227
|
...props
|
|
53
228
|
}));
|
|
54
|
-
const CheckboxItem = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
229
|
+
const CheckboxItem = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuCheckboxItem_MenuCheckboxItem, {
|
|
55
230
|
ref: ref,
|
|
56
231
|
className: clsx(ContextMenu_module.checkboxItem, className),
|
|
57
232
|
...props
|
|
58
233
|
}));
|
|
59
|
-
const CheckboxItemIndicator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
234
|
+
const CheckboxItemIndicator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuCheckboxItemIndicator_MenuCheckboxItemIndicator, {
|
|
60
235
|
ref: ref,
|
|
61
236
|
className: clsx(ContextMenu_module.checkboxItemIndicator, className),
|
|
62
237
|
...props
|
|
63
238
|
}));
|
|
64
|
-
const LinkItem = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
239
|
+
const LinkItem = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuLinkItem_MenuLinkItem, {
|
|
65
240
|
ref: ref,
|
|
66
241
|
className: clsx(ContextMenu_module.linkItem, className),
|
|
67
242
|
...props
|
|
68
243
|
}));
|
|
69
|
-
const RadioGroup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
244
|
+
const RadioGroup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuRadioGroup_MenuRadioGroup, {
|
|
70
245
|
ref: ref,
|
|
71
246
|
className: clsx(ContextMenu_module.radioGroup, className),
|
|
72
247
|
...props
|
|
73
248
|
}));
|
|
74
|
-
const RadioItem = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
249
|
+
const RadioItem = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuRadioItem_MenuRadioItem, {
|
|
75
250
|
ref: ref,
|
|
76
251
|
className: clsx(ContextMenu_module.radioItem, className),
|
|
77
252
|
...props
|
|
78
253
|
}));
|
|
79
|
-
const RadioItemIndicator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
254
|
+
const RadioItemIndicator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuRadioItemIndicator_MenuRadioItemIndicator, {
|
|
80
255
|
ref: ref,
|
|
81
256
|
className: clsx(ContextMenu_module.radioItemIndicator, className),
|
|
82
257
|
...props
|
|
83
258
|
}));
|
|
84
|
-
const SubmenuTrigger = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(
|
|
259
|
+
const SubmenuTrigger = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(MenuSubmenuTrigger_MenuSubmenuTrigger, {
|
|
85
260
|
ref: ref,
|
|
86
261
|
className: clsx(ContextMenu_module.submenuTrigger, className),
|
|
87
262
|
...props
|
|
88
263
|
}));
|
|
89
|
-
const
|
|
264
|
+
const ContextMenu = {
|
|
90
265
|
Trigger: Trigger,
|
|
91
266
|
Backdrop: Backdrop,
|
|
92
267
|
Positioner: Positioner,
|
|
@@ -102,9 +277,9 @@ const ContextMenu_ContextMenu = {
|
|
|
102
277
|
RadioItem: RadioItem,
|
|
103
278
|
RadioItemIndicator: RadioItemIndicator,
|
|
104
279
|
SubmenuTrigger: SubmenuTrigger,
|
|
105
|
-
Root:
|
|
106
|
-
SubmenuRoot:
|
|
107
|
-
Portal:
|
|
108
|
-
Separator:
|
|
280
|
+
Root: ContextMenuRoot,
|
|
281
|
+
SubmenuRoot: MenuSubmenuRoot,
|
|
282
|
+
Portal: MenuPortal_MenuPortal,
|
|
283
|
+
Separator: Separator
|
|
109
284
|
};
|
|
110
|
-
export {
|
|
285
|
+
export { ContextMenu };
|