base-ui-vue 0.4.0 → 0.5.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/arrow/TooltipArrow.cjs +609 -0
- package/dist/arrow/TooltipArrow.cjs.map +1 -0
- package/dist/arrow/TooltipArrow.js +478 -0
- package/dist/arrow/TooltipArrow.js.map +1 -0
- package/dist/button/Button.cjs +5 -317
- package/dist/button/Button.cjs.map +1 -1
- package/dist/button/Button.js +3 -249
- package/dist/button/Button.js.map +1 -1
- package/dist/button/ToolbarButton.cjs +13 -6
- package/dist/button/ToolbarButton.cjs.map +1 -1
- package/dist/button/ToolbarButton.js +3 -2
- package/dist/button/ToolbarButton.js.map +1 -1
- package/dist/checkbox/index.cjs +20 -9
- package/dist/checkbox/index.cjs.map +1 -1
- package/dist/checkbox/index.js +7 -2
- package/dist/checkbox/index.js.map +1 -1
- package/dist/checkbox-group/CheckboxGroup.cjs +14 -13
- package/dist/checkbox-group/CheckboxGroup.cjs.map +1 -1
- package/dist/checkbox-group/CheckboxGroup.js +2 -1
- package/dist/checkbox-group/CheckboxGroup.js.map +1 -1
- package/dist/components/FloatingPortal.cjs +66 -0
- package/dist/components/FloatingPortal.cjs.map +1 -0
- package/dist/components/FloatingPortal.js +55 -0
- package/dist/components/FloatingPortal.js.map +1 -0
- package/dist/components/FloatingRootStore.cjs +101 -0
- package/dist/components/FloatingRootStore.cjs.map +1 -0
- package/dist/components/FloatingRootStore.js +84 -0
- package/dist/components/FloatingRootStore.js.map +1 -0
- package/dist/components/FloatingTree.cjs +33 -0
- package/dist/components/FloatingTree.cjs.map +1 -0
- package/dist/components/FloatingTree.js +22 -0
- package/dist/components/FloatingTree.js.map +1 -0
- package/dist/composite/composite.cjs +6 -0
- package/dist/composite/composite.js +1 -1
- package/dist/content/ScrollAreaContent.cjs +3 -3
- package/dist/content/ScrollAreaContent.cjs.map +1 -1
- package/dist/content/ScrollAreaContent.js +1 -1
- package/dist/control/FieldControl.cjs +3 -3
- package/dist/control/FieldControl.cjs.map +1 -1
- package/dist/control/FieldControl.js +1 -1
- package/dist/control/SliderControl.cjs +3 -3
- package/dist/control/SliderControl.cjs.map +1 -1
- package/dist/control/SliderControl.js +1 -1
- package/dist/corner/ScrollAreaCorner.cjs +3 -3
- package/dist/corner/ScrollAreaCorner.cjs.map +1 -1
- package/dist/corner/ScrollAreaCorner.js +1 -1
- package/dist/decrement/NumberFieldDecrement.cjs +10 -3
- package/dist/decrement/NumberFieldDecrement.cjs.map +1 -1
- package/dist/decrement/NumberFieldDecrement.js +3 -2
- package/dist/decrement/NumberFieldDecrement.js.map +1 -1
- package/dist/description/FieldDescription.cjs +2 -2
- package/dist/description/FieldDescription.cjs.map +1 -1
- package/dist/description/FieldDescription.js +1 -1
- package/dist/error/FieldError.cjs +2 -2
- package/dist/error/FieldError.cjs.map +1 -1
- package/dist/error/FieldError.js +1 -1
- package/dist/fallback/AvatarFallback.cjs +2 -2
- package/dist/fallback/AvatarFallback.cjs.map +1 -1
- package/dist/fallback/AvatarFallback.js +1 -1
- package/dist/floating-ui-vue/index.js +638 -0
- package/dist/floating-ui-vue/index.js.map +1 -0
- package/dist/form/Form.cjs +3 -3
- package/dist/form/Form.cjs.map +1 -1
- package/dist/form/Form.js +1 -1
- package/dist/group/NumberFieldGroup.cjs +3 -3
- package/dist/group/NumberFieldGroup.cjs.map +1 -1
- package/dist/group/NumberFieldGroup.js +1 -1
- package/dist/group/ToolbarGroup.cjs +2 -2
- package/dist/group/ToolbarGroup.cjs.map +1 -1
- package/dist/group/ToolbarGroup.js +1 -1
- package/dist/header/AccordionHeader.cjs +2 -2
- package/dist/header/AccordionHeader.cjs.map +1 -1
- package/dist/header/AccordionHeader.js +1 -1
- package/dist/hooks/useDismiss.cjs +502 -0
- package/dist/hooks/useDismiss.cjs.map +1 -0
- package/dist/hooks/useHoverFloatingInteraction.cjs +233 -0
- package/dist/hooks/useHoverFloatingInteraction.cjs.map +1 -0
- package/dist/image/AvatarImage.cjs +4 -4
- package/dist/image/AvatarImage.cjs.map +1 -1
- package/dist/image/AvatarImage.js +1 -1
- package/dist/increment/NumberFieldIncrement.cjs +3 -2
- package/dist/increment/NumberFieldIncrement.cjs.map +1 -1
- package/dist/increment/NumberFieldIncrement.js +2 -1
- package/dist/increment/NumberFieldIncrement.js.map +1 -1
- package/dist/index.cjs +60 -7
- package/dist/index.d.cts +3838 -1726
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +3838 -1726
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index2.cjs +7475 -3089
- package/dist/index2.cjs.map +1 -1
- package/dist/index2.js +7215 -3106
- package/dist/index2.js.map +1 -1
- package/dist/rolldown-runtime.js +36 -0
- package/package.json +1 -1
- package/src/floating-ui-vue/components/FloatingPortal.ts +171 -0
- package/src/floating-ui-vue/components/FloatingPortal.vue +259 -0
- package/src/floating-ui-vue/components/FloatingRootStore.ts +83 -0
- package/src/floating-ui-vue/components/FloatingTree.ts +64 -0
- package/src/floating-ui-vue/components/FloatingTreeStore.ts +21 -0
- package/src/floating-ui-vue/hooks/useDismiss.ts +689 -0
- package/src/floating-ui-vue/hooks/useHoverFloatingInteraction.ts +244 -0
- package/src/floating-ui-vue/hooks/useHoverInteractionSharedState.ts +125 -0
- package/src/floating-ui-vue/hooks/useHoverShared.ts +53 -0
- package/src/floating-ui-vue/index.ts +48 -0
- package/src/floating-ui-vue/middleware/arrow.ts +114 -0
- package/src/floating-ui-vue/types.ts +117 -0
- package/src/floating-ui-vue/utils/composite.ts +20 -0
- package/src/floating-ui-vue/utils/constants.ts +2 -0
- package/src/floating-ui-vue/utils/createAttribute.ts +3 -0
- package/src/floating-ui-vue/utils/createEventEmitter.ts +20 -0
- package/src/floating-ui-vue/utils/element.ts +59 -0
- package/src/floating-ui-vue/utils/event.ts +15 -0
- package/src/floating-ui-vue/utils/nodes.ts +14 -0
- package/src/floating-ui-vue/utils/tabbable.ts +309 -0
- package/src/index.ts +4 -0
- package/src/radio/index.ts +28 -0
- package/src/radio/indicator/RadioIndicator.vue +90 -0
- package/src/radio/indicator/RadioIndicatorDataAttributes.ts +54 -0
- package/src/radio/root/RadioRoot.vue +544 -0
- package/src/radio/root/RadioRootContext.ts +18 -0
- package/src/radio/root/RadioRootDataAttributes.ts +46 -0
- package/src/radio/utils/stateAttributesMapping.ts +29 -0
- package/src/radio-group/RadioGroup.vue +381 -0
- package/src/radio-group/RadioGroupContext.ts +42 -0
- package/src/radio-group/RadioGroupDataAttributes.ts +6 -0
- package/src/radio-group/index.ts +10 -0
- package/src/tabs/index.ts +38 -0
- package/src/tabs/indicator/TabsIndicator.vue +201 -0
- package/src/tabs/indicator/TabsIndicatorCssVars.ts +26 -0
- package/src/tabs/indicator/TabsIndicatorDataAttributes.ts +12 -0
- package/src/tabs/indicator/prehydrationScript.min.ts +5 -0
- package/src/tabs/indicator/prehydrationScript.template.js +87 -0
- package/src/tabs/list/TabsList.vue +201 -0
- package/src/tabs/list/TabsListContext.ts +29 -0
- package/src/tabs/list/TabsListDataAttributes.ts +12 -0
- package/src/tabs/panel/TabsPanel.vue +167 -0
- package/src/tabs/panel/TabsPanelDataAttributes.ts +28 -0
- package/src/tabs/root/TabsRoot.vue +468 -0
- package/src/tabs/root/TabsRootContext.ts +56 -0
- package/src/tabs/root/TabsRootDataAttributes.ts +12 -0
- package/src/tabs/root/stateAttributesMapping.ts +9 -0
- package/src/tabs/tab/TabsTab.vue +274 -0
- package/src/tabs/tab/TabsTabDataAttributes.ts +20 -0
- package/src/tabs/utils/areTabValuesEqual.ts +6 -0
- package/src/tooltip/arrow/TooltipArrow.vue +116 -0
- package/src/tooltip/arrow/TooltipArrowDataAttributes.ts +31 -0
- package/src/tooltip/index.ts +54 -0
- package/src/tooltip/popup/TooltipPopup.vue +142 -0
- package/src/tooltip/popup/TooltipPopupDataAttributes.ts +35 -0
- package/src/tooltip/portal/TooltipPortal.vue +83 -0
- package/src/tooltip/portal/TooltipPortalContext.ts +19 -0
- package/src/tooltip/positioner/TooltipPositioner.vue +221 -0
- package/src/tooltip/positioner/TooltipPositionerContext.ts +23 -0
- package/src/tooltip/positioner/TooltipPositionerCssVars.ts +27 -0
- package/src/tooltip/positioner/TooltipPositionerDataAttributes.ts +26 -0
- package/src/tooltip/provider/TooltipProvider.vue +78 -0
- package/src/tooltip/provider/TooltipProviderContext.ts +19 -0
- package/src/tooltip/root/TooltipRoot.vue +401 -0
- package/src/tooltip/root/TooltipRootContext.ts +71 -0
- package/src/tooltip/store/TooltipHandle.ts +215 -0
- package/src/tooltip/trigger/TooltipTrigger.vue +343 -0
- package/src/tooltip/trigger/TooltipTriggerDataAttributes.ts +12 -0
- package/src/tooltip/utils/constants.ts +2 -0
- package/src/tooltip/viewport/TooltipViewport.vue +149 -0
- package/src/tooltip/viewport/TooltipViewportCssVars.ts +14 -0
- package/src/tooltip/viewport/TooltipViewportDataAttributes.ts +26 -0
- package/src/utils/FloatingPortalLite.vue +66 -0
- package/src/utils/FocusGuard.vue +36 -0
- package/src/utils/adaptiveOriginMiddleware.ts +79 -0
- package/src/utils/addEventListener.ts +16 -0
- package/src/utils/constants.ts +11 -0
- package/src/utils/createBaseUIEventDetails.ts +2 -0
- package/src/utils/getCssDimensions.ts +19 -0
- package/src/utils/getDisabledMountTransitionStyles.ts +9 -0
- package/src/utils/hideMiddleware.ts +19 -0
- package/src/utils/mergeCleanups.ts +7 -0
- package/src/utils/platform.ts +18 -0
- package/src/utils/popupStateMapping.ts +103 -0
- package/src/utils/reasons.ts +4 -0
- package/src/utils/serializeValue.ts +17 -0
- package/src/utils/useAnchorPositioning.ts +644 -0
- package/src/utils/usePopupAutoResize.ts +254 -0
- package/src/utils/usePopupViewport.ts +398 -0
- package/src/utils/usePositioner.ts +61 -0
- package/src/utils/useRenderElement.ts +3 -0
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
let vue = require("vue");
|
|
2
|
+
|
|
3
|
+
//#region src/merge-props/mergeProps.ts
|
|
4
|
+
function makeEventPreventable(event) {
|
|
5
|
+
const baseUIEvent = event;
|
|
6
|
+
if (!baseUIEvent.preventBaseUIHandler) baseUIEvent.preventBaseUIHandler = () => {
|
|
7
|
+
baseUIEvent.baseUIHandlerPrevented = true;
|
|
8
|
+
};
|
|
9
|
+
return baseUIEvent;
|
|
10
|
+
}
|
|
11
|
+
function mergeClasses(ourClass, theirClass) {
|
|
12
|
+
if (theirClass) {
|
|
13
|
+
if (ourClass) return `${theirClass} ${ourClass}`;
|
|
14
|
+
return theirClass;
|
|
15
|
+
}
|
|
16
|
+
return ourClass;
|
|
17
|
+
}
|
|
18
|
+
function mergeObjects(a, b) {
|
|
19
|
+
if (a && !b) return a;
|
|
20
|
+
if (!a && b) return b;
|
|
21
|
+
if (a || b) return {
|
|
22
|
+
...a,
|
|
23
|
+
...b
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function isEventHandler(key, value) {
|
|
27
|
+
return key.startsWith("on") && key.charCodeAt(2) >= 65 && key.charCodeAt(2) <= 90 && (typeof value === "function" || Array.isArray(value) || typeof value === "undefined");
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Merges Vue prop/attr objects using Base UI Vue semantics.
|
|
31
|
+
*
|
|
32
|
+
* Later props overwrite earlier ones, except for:
|
|
33
|
+
* - Event listeners: merged so the rightmost listener runs first and can prevent earlier listeners.
|
|
34
|
+
* - `class`: merged in rightmost-first order.
|
|
35
|
+
* - `style`: merged using Vue's native style merging.
|
|
36
|
+
*/
|
|
37
|
+
function mergeProps(...args) {
|
|
38
|
+
const definedArgs = args.filter((arg) => arg != null);
|
|
39
|
+
const merged = (0, vue.mergeProps)(...definedArgs);
|
|
40
|
+
const classValue = mergeClassValues(definedArgs);
|
|
41
|
+
if (classValue !== void 0) merged.class = classValue;
|
|
42
|
+
for (const propName in merged) if (isEventHandler(propName, merged[propName])) merged[propName] = wrapEventHandlers(merged[propName]);
|
|
43
|
+
return merged;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Merges an array of Vue prop/attr objects using the same semantics as {@link mergeProps}.
|
|
47
|
+
*
|
|
48
|
+
* Useful when prop layers are assembled dynamically before being bound with `v-bind`.
|
|
49
|
+
*/
|
|
50
|
+
function mergePropsN(props) {
|
|
51
|
+
const definedProps = props.filter((prop) => prop != null);
|
|
52
|
+
if (definedProps.length === 0) return {};
|
|
53
|
+
return mergeProps(...definedProps);
|
|
54
|
+
}
|
|
55
|
+
function mergeClassValues(args) {
|
|
56
|
+
const classValues = args.map((props) => props?.class).filter((value) => value != null);
|
|
57
|
+
if (classValues.length === 0) return;
|
|
58
|
+
return (0, vue.normalizeClass)(classValues.reverse());
|
|
59
|
+
}
|
|
60
|
+
function wrapEventHandlers(handlers) {
|
|
61
|
+
if (Array.isArray(handlers)) {
|
|
62
|
+
const flatHandlers = handlers.flat(Infinity).filter((handler) => typeof handler === "function");
|
|
63
|
+
return (...args) => {
|
|
64
|
+
const preventableArgs = getPreventableArgs(args);
|
|
65
|
+
if (preventableArgs) {
|
|
66
|
+
let result;
|
|
67
|
+
for (let i = flatHandlers.length - 1; i >= 0; i -= 1) {
|
|
68
|
+
const handlerResult = flatHandlers[i](...preventableArgs.args);
|
|
69
|
+
if (result === void 0) result = handlerResult;
|
|
70
|
+
if (preventableArgs.event.baseUIHandlerPrevented) break;
|
|
71
|
+
}
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
let result;
|
|
75
|
+
for (let i = flatHandlers.length - 1; i >= 0; i -= 1) {
|
|
76
|
+
const handlerResult = flatHandlers[i](...args);
|
|
77
|
+
if (result === void 0) result = handlerResult;
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
if (typeof handlers !== "function") return handlers;
|
|
83
|
+
return (...args) => {
|
|
84
|
+
const preventableArgs = getPreventableArgs(args);
|
|
85
|
+
if (preventableArgs) return handlers(...preventableArgs.args);
|
|
86
|
+
return handlers(...args);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function getPreventableArgs(args) {
|
|
90
|
+
const eventIndex = args.findIndex(isPreventableEventArg);
|
|
91
|
+
if (eventIndex === -1) return null;
|
|
92
|
+
const nextArgs = [...args];
|
|
93
|
+
const event = makeEventPreventable(nextArgs[eventIndex]);
|
|
94
|
+
nextArgs[eventIndex] = event;
|
|
95
|
+
return {
|
|
96
|
+
args: nextArgs,
|
|
97
|
+
event
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function isPreventableEventArg(value) {
|
|
101
|
+
return Boolean(value && typeof value === "object" && (value instanceof Event || "nativeEvent" in value || "preventBaseUIHandler" in value));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/utils/empty.ts
|
|
106
|
+
function NOOP() {}
|
|
107
|
+
const EMPTY_ARRAY = Object.freeze([]);
|
|
108
|
+
const EMPTY_OBJECT = Object.freeze({});
|
|
109
|
+
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/utils/constants.ts
|
|
112
|
+
const DISABLED_TRANSITIONS_STYLE = { style: { transition: "none" } };
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/utils/getStateAttributesProps.ts
|
|
116
|
+
function getStateAttributesProps(state, customMapping) {
|
|
117
|
+
const props = {};
|
|
118
|
+
for (const key in state) {
|
|
119
|
+
const value = state[key];
|
|
120
|
+
if (customMapping && Object.prototype.hasOwnProperty.call(customMapping, key)) {
|
|
121
|
+
const customProps = customMapping[key](value);
|
|
122
|
+
if (customProps != null) Object.assign(props, customProps);
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
if (value === true) props[`data-${key.toLowerCase()}`] = "";
|
|
126
|
+
else if (value !== false && value != null) props[`data-${key.toLowerCase()}`] = value.toString();
|
|
127
|
+
}
|
|
128
|
+
return props;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/utils/slot.ts
|
|
133
|
+
/**
|
|
134
|
+
* Pass as the `as` prop to make a component renderless.
|
|
135
|
+
*/
|
|
136
|
+
const Slot = Symbol("Slot");
|
|
137
|
+
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/utils/useMergedRefs.ts
|
|
140
|
+
/**
|
|
141
|
+
* Merges multiple refs or ref callbacks into a single template ref callback.
|
|
142
|
+
* Returns `undefined` when all input refs are nullish (optimization to avoid no-op callbacks).
|
|
143
|
+
*
|
|
144
|
+
* Supports cleanup callbacks: if a callback ref returns a function, it will be
|
|
145
|
+
* called on unmount (when the ref receives `null`) instead of calling the
|
|
146
|
+
* callback with `null` directly.
|
|
147
|
+
*
|
|
148
|
+
* Vue-specific: automatically unwraps `ComponentPublicInstance` to its root `$el`,
|
|
149
|
+
* since Vue template refs on components return the instance, not the DOM element.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```vue
|
|
153
|
+
* <script setup>
|
|
154
|
+
* const internalRef = ref(null)
|
|
155
|
+
* const externalRef = ref(null)
|
|
156
|
+
*
|
|
157
|
+
* const mergedRef = useMergedRefs(internalRef, externalRef)
|
|
158
|
+
* <\/script>
|
|
159
|
+
*
|
|
160
|
+
* <template>
|
|
161
|
+
* <div :ref="mergedRef"></div>
|
|
162
|
+
* </template>
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
function useMergedRefs(...refs) {
|
|
166
|
+
if (refs.every((ref) => ref == null)) return;
|
|
167
|
+
const cleanupCallbacks = Array.from({ length: refs.length }, () => null);
|
|
168
|
+
return (el) => {
|
|
169
|
+
const instance = resolveRefTarget(el);
|
|
170
|
+
if (instance != null) for (let i = 0; i < refs.length; i += 1) {
|
|
171
|
+
const ref = refs[i];
|
|
172
|
+
if (ref == null) continue;
|
|
173
|
+
if (typeof ref === "function") {
|
|
174
|
+
const refCleanup = ref(instance);
|
|
175
|
+
if (typeof refCleanup === "function") cleanupCallbacks[i] = refCleanup;
|
|
176
|
+
} else if ("value" in ref) ref.value = instance;
|
|
177
|
+
}
|
|
178
|
+
else for (let i = 0; i < refs.length; i += 1) {
|
|
179
|
+
const ref = refs[i];
|
|
180
|
+
if (ref == null) continue;
|
|
181
|
+
if (typeof ref === "function") {
|
|
182
|
+
const cleanupCallback = cleanupCallbacks[i];
|
|
183
|
+
if (typeof cleanupCallback === "function") {
|
|
184
|
+
cleanupCallback();
|
|
185
|
+
cleanupCallbacks[i] = null;
|
|
186
|
+
} else ref(null);
|
|
187
|
+
} else if ("value" in ref) ref.value = null;
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function resolveRefTarget(el) {
|
|
192
|
+
if (el == null) return null;
|
|
193
|
+
if (el instanceof Element) return el;
|
|
194
|
+
if (typeof el === "object" && "element" in el) {
|
|
195
|
+
const exposedElement = (0, vue.unref)(el.element);
|
|
196
|
+
if (exposedElement instanceof Element) return exposedElement;
|
|
197
|
+
}
|
|
198
|
+
if ("$el" in el) return el.$el;
|
|
199
|
+
return el;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/utils/useRenderElement.ts
|
|
204
|
+
/**
|
|
205
|
+
* Renders a Base UI element (internal composable).
|
|
206
|
+
*
|
|
207
|
+
* Assembles state-to-data-attribute conversion, class/style resolution,
|
|
208
|
+
* and ref wrapping into a single composable used by all polymorphic components.
|
|
209
|
+
*
|
|
210
|
+
* @param params - The render element parameters.
|
|
211
|
+
*/
|
|
212
|
+
function useRenderElement(params) {
|
|
213
|
+
const renderless = (0, vue.computed)(() => params.componentProps.as === Slot);
|
|
214
|
+
return {
|
|
215
|
+
tag: (0, vue.computed)(() => {
|
|
216
|
+
if (renderless.value) return;
|
|
217
|
+
return params.componentProps.as ?? params.defaultTagName ?? "div";
|
|
218
|
+
}),
|
|
219
|
+
mergedProps: (0, vue.computed)(() => {
|
|
220
|
+
const state = (0, vue.unref)(params.state);
|
|
221
|
+
const rawProps = (0, vue.unref)(params.props) ?? EMPTY_OBJECT;
|
|
222
|
+
const merged = {
|
|
223
|
+
...getStateAttributesProps(state, params.stateAttributesMapping),
|
|
224
|
+
...rawProps
|
|
225
|
+
};
|
|
226
|
+
const resolvedClass = typeof params.componentProps.class === "function" ? params.componentProps.class(state) : params.componentProps.class;
|
|
227
|
+
const resolvedStyle = typeof params.componentProps.style === "function" ? params.componentProps.style(state) : params.componentProps.style;
|
|
228
|
+
if (resolvedClass !== void 0) merged.class = normalizeClass(merged.class, resolvedClass);
|
|
229
|
+
if (resolvedStyle !== void 0) merged.style = normalizeStyle(merged.style, resolvedStyle);
|
|
230
|
+
return merged;
|
|
231
|
+
}),
|
|
232
|
+
renderless,
|
|
233
|
+
state: params.state,
|
|
234
|
+
ref: params.ref ? useMergedRefs(params.ref) : void 0
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
function normalizeClass(currentValue, nextValue) {
|
|
238
|
+
if (currentValue == null) return nextValue;
|
|
239
|
+
if (nextValue == null) return currentValue;
|
|
240
|
+
if (typeof currentValue === "string" && typeof nextValue === "string") return mergeClasses(currentValue, nextValue);
|
|
241
|
+
return [currentValue, nextValue];
|
|
242
|
+
}
|
|
243
|
+
function normalizeStyle(currentValue, nextValue) {
|
|
244
|
+
if (currentValue == null) return nextValue;
|
|
245
|
+
if (nextValue == null) return currentValue;
|
|
246
|
+
if (isPlainObject(currentValue) && isPlainObject(nextValue)) return mergeObjects(currentValue, nextValue);
|
|
247
|
+
return [currentValue, nextValue];
|
|
248
|
+
}
|
|
249
|
+
function isPlainObject(value) {
|
|
250
|
+
return value != null && typeof value === "object" && !Array.isArray(value);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/utils/popupStateMapping.ts
|
|
255
|
+
let CommonPopupDataAttributes = /* @__PURE__ */ function(CommonPopupDataAttributes) {
|
|
256
|
+
/**
|
|
257
|
+
* Present when the popup is open.
|
|
258
|
+
*/
|
|
259
|
+
CommonPopupDataAttributes["open"] = "data-open";
|
|
260
|
+
/**
|
|
261
|
+
* Present when the popup is closed.
|
|
262
|
+
*/
|
|
263
|
+
CommonPopupDataAttributes["closed"] = "data-closed";
|
|
264
|
+
/**
|
|
265
|
+
* Present when the popup is animating in.
|
|
266
|
+
*/
|
|
267
|
+
CommonPopupDataAttributes["startingStyle"] = "data-starting-style";
|
|
268
|
+
/**
|
|
269
|
+
* Present when the popup is animating out.
|
|
270
|
+
*/
|
|
271
|
+
CommonPopupDataAttributes["endingStyle"] = "data-ending-style";
|
|
272
|
+
/**
|
|
273
|
+
* Present when the anchor is hidden.
|
|
274
|
+
*/
|
|
275
|
+
CommonPopupDataAttributes["anchorHidden"] = "data-anchor-hidden";
|
|
276
|
+
/**
|
|
277
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
278
|
+
*/
|
|
279
|
+
CommonPopupDataAttributes["side"] = "data-side";
|
|
280
|
+
/**
|
|
281
|
+
* Indicates how the popup is aligned relative to the specified side.
|
|
282
|
+
*/
|
|
283
|
+
CommonPopupDataAttributes["align"] = "data-align";
|
|
284
|
+
/**
|
|
285
|
+
* Present when animations should be skipped.
|
|
286
|
+
*/
|
|
287
|
+
CommonPopupDataAttributes["instant"] = "data-instant";
|
|
288
|
+
return CommonPopupDataAttributes;
|
|
289
|
+
}({});
|
|
290
|
+
let CommonTriggerDataAttributes = /* @__PURE__ */ function(CommonTriggerDataAttributes) {
|
|
291
|
+
/**
|
|
292
|
+
* Present when the popup is open.
|
|
293
|
+
*/
|
|
294
|
+
CommonTriggerDataAttributes["popupOpen"] = "data-popup-open";
|
|
295
|
+
/**
|
|
296
|
+
* Present when the trigger is disabled.
|
|
297
|
+
*/
|
|
298
|
+
CommonTriggerDataAttributes["triggerDisabled"] = "data-trigger-disabled";
|
|
299
|
+
return CommonTriggerDataAttributes;
|
|
300
|
+
}({});
|
|
301
|
+
const POPUP_OPEN_HOOK = { [CommonPopupDataAttributes.open]: "" };
|
|
302
|
+
const POPUP_CLOSED_HOOK = { [CommonPopupDataAttributes.closed]: "" };
|
|
303
|
+
const ANCHOR_HIDDEN_HOOK = { [CommonPopupDataAttributes.anchorHidden]: "" };
|
|
304
|
+
const TRIGGER_OPEN_HOOK = { [CommonTriggerDataAttributes.popupOpen]: "" };
|
|
305
|
+
const TRIGGER_DISABLED_HOOK = { [CommonTriggerDataAttributes.triggerDisabled]: "" };
|
|
306
|
+
const popupStateMapping = {
|
|
307
|
+
open(value) {
|
|
308
|
+
return value ? POPUP_OPEN_HOOK : POPUP_CLOSED_HOOK;
|
|
309
|
+
},
|
|
310
|
+
anchorHidden(value) {
|
|
311
|
+
return value ? ANCHOR_HIDDEN_HOOK : null;
|
|
312
|
+
},
|
|
313
|
+
side(value) {
|
|
314
|
+
return value ? { [CommonPopupDataAttributes.side]: value } : null;
|
|
315
|
+
},
|
|
316
|
+
align(value) {
|
|
317
|
+
return value ? { [CommonPopupDataAttributes.align]: value } : null;
|
|
318
|
+
},
|
|
319
|
+
instant(value) {
|
|
320
|
+
return value ? { [CommonPopupDataAttributes.instant]: value } : null;
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
const triggerStateMapping = {
|
|
324
|
+
open(value) {
|
|
325
|
+
return value ? TRIGGER_OPEN_HOOK : null;
|
|
326
|
+
},
|
|
327
|
+
disabled(value) {
|
|
328
|
+
return value ? TRIGGER_DISABLED_HOOK : null;
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/tooltip/positioner/TooltipPositionerContext.ts
|
|
334
|
+
const tooltipPositionerContextKey = Symbol("TooltipPositionerContext");
|
|
335
|
+
function useTooltipPositionerContext() {
|
|
336
|
+
const context = (0, vue.inject)(tooltipPositionerContextKey, void 0);
|
|
337
|
+
if (context === void 0) throw new Error("Base UI Vue: TooltipPositionerContext is missing. Tooltip parts must be placed within <TooltipPositioner>.");
|
|
338
|
+
return context;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/tooltip/root/TooltipRootContext.ts
|
|
343
|
+
const tooltipRootContextKey = Symbol("TooltipRootContext");
|
|
344
|
+
function useTooltipRootContext(optional = false) {
|
|
345
|
+
const context = (0, vue.inject)(tooltipRootContextKey, void 0);
|
|
346
|
+
if (context === void 0 && !optional) throw new Error("Base UI Vue: TooltipRootContext is missing. Tooltip parts must be placed within <TooltipRoot> or receive a tooltip handle.");
|
|
347
|
+
return context;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
//#endregion
|
|
351
|
+
//#region src/tooltip/arrow/TooltipArrowDataAttributes.ts
|
|
352
|
+
let TooltipArrowDataAttributes = /* @__PURE__ */ function(TooltipArrowDataAttributes) {
|
|
353
|
+
/**
|
|
354
|
+
* Present when the tooltip is open.
|
|
355
|
+
*/
|
|
356
|
+
TooltipArrowDataAttributes[TooltipArrowDataAttributes["open"] = CommonPopupDataAttributes.open] = "open";
|
|
357
|
+
/**
|
|
358
|
+
* Present when the tooltip is closed.
|
|
359
|
+
*/
|
|
360
|
+
TooltipArrowDataAttributes[TooltipArrowDataAttributes["closed"] = CommonPopupDataAttributes.closed] = "closed";
|
|
361
|
+
/**
|
|
362
|
+
* Indicates which side the popup is positioned relative to the trigger.
|
|
363
|
+
* @type {'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start'}
|
|
364
|
+
*/
|
|
365
|
+
TooltipArrowDataAttributes[TooltipArrowDataAttributes["side"] = CommonPopupDataAttributes.side] = "side";
|
|
366
|
+
/**
|
|
367
|
+
* Indicates how the popup is aligned relative to specified side.
|
|
368
|
+
* @type {'start' | 'center' | 'end'}
|
|
369
|
+
*/
|
|
370
|
+
TooltipArrowDataAttributes[TooltipArrowDataAttributes["align"] = CommonPopupDataAttributes.align] = "align";
|
|
371
|
+
/**
|
|
372
|
+
* Present when the tooltip arrow is uncentered.
|
|
373
|
+
*/
|
|
374
|
+
TooltipArrowDataAttributes["uncentered"] = "data-uncentered";
|
|
375
|
+
/**
|
|
376
|
+
* Present if animations should be instant.
|
|
377
|
+
* @type {'delay' | 'dismiss' | 'focus'}
|
|
378
|
+
*/
|
|
379
|
+
TooltipArrowDataAttributes["instant"] = "data-instant";
|
|
380
|
+
return TooltipArrowDataAttributes;
|
|
381
|
+
}({});
|
|
382
|
+
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region src/tooltip/arrow/TooltipArrow.vue?vue&type=script&setup=true&lang.ts
|
|
385
|
+
var TooltipArrow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
386
|
+
name: "TooltipArrow",
|
|
387
|
+
inheritAttrs: false,
|
|
388
|
+
__name: "TooltipArrow",
|
|
389
|
+
props: {
|
|
390
|
+
as: {
|
|
391
|
+
type: null,
|
|
392
|
+
required: false,
|
|
393
|
+
default: "div"
|
|
394
|
+
},
|
|
395
|
+
class: {
|
|
396
|
+
type: Function,
|
|
397
|
+
required: false,
|
|
398
|
+
skipCheck: true
|
|
399
|
+
},
|
|
400
|
+
style: {
|
|
401
|
+
type: [
|
|
402
|
+
Boolean,
|
|
403
|
+
null,
|
|
404
|
+
String,
|
|
405
|
+
Object,
|
|
406
|
+
Array,
|
|
407
|
+
Function
|
|
408
|
+
],
|
|
409
|
+
required: false,
|
|
410
|
+
skipCheck: true
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
setup(__props) {
|
|
414
|
+
const props = __props;
|
|
415
|
+
const attrs = (0, vue.useAttrs)();
|
|
416
|
+
const ctx = useTooltipRootContext();
|
|
417
|
+
const positioner = useTooltipPositionerContext();
|
|
418
|
+
const state = (0, vue.computed)(() => ({
|
|
419
|
+
open: ctx.open.value,
|
|
420
|
+
side: positioner.side.value,
|
|
421
|
+
align: positioner.align.value,
|
|
422
|
+
uncentered: positioner.arrowUncentered.value,
|
|
423
|
+
instant: ctx.instantType.value
|
|
424
|
+
}));
|
|
425
|
+
const arrowStyle = (0, vue.computed)(() => {
|
|
426
|
+
return positioner.arrowStyles.value;
|
|
427
|
+
});
|
|
428
|
+
const arrowProps = (0, vue.computed)(() => {
|
|
429
|
+
const resolvedStyle = typeof props.style === "function" ? props.style(state.value) : props.style;
|
|
430
|
+
return {
|
|
431
|
+
...attrs,
|
|
432
|
+
"aria-hidden": "true",
|
|
433
|
+
"style": [arrowStyle.value, resolvedStyle]
|
|
434
|
+
};
|
|
435
|
+
});
|
|
436
|
+
const { tag, mergedProps, renderless, ref: renderRef } = useRenderElement({
|
|
437
|
+
componentProps: {
|
|
438
|
+
as: props.as,
|
|
439
|
+
class: props.class
|
|
440
|
+
},
|
|
441
|
+
state,
|
|
442
|
+
props: arrowProps,
|
|
443
|
+
stateAttributesMapping: {
|
|
444
|
+
...popupStateMapping,
|
|
445
|
+
uncentered(value) {
|
|
446
|
+
return value ? { [TooltipArrowDataAttributes.uncentered]: "" } : null;
|
|
447
|
+
},
|
|
448
|
+
instant(value) {
|
|
449
|
+
return value ? { [TooltipArrowDataAttributes.instant]: value } : null;
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
defaultTagName: "div",
|
|
453
|
+
ref: positioner.arrowRef
|
|
454
|
+
});
|
|
455
|
+
return (_ctx, _cache) => {
|
|
456
|
+
return (0, vue.unref)(renderless) ? (0, vue.renderSlot)(_ctx.$slots, "default", {
|
|
457
|
+
key: 0,
|
|
458
|
+
ref: (0, vue.unref)(renderRef),
|
|
459
|
+
props: (0, vue.unref)(mergedProps),
|
|
460
|
+
state: state.value
|
|
461
|
+
}) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.unref)(tag)), (0, vue.mergeProps)({
|
|
462
|
+
key: 1,
|
|
463
|
+
ref: (0, vue.unref)(renderRef)
|
|
464
|
+
}, (0, vue.unref)(mergedProps)), {
|
|
465
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default", { state: state.value })]),
|
|
466
|
+
_: 3
|
|
467
|
+
}, 16));
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region src/tooltip/arrow/TooltipArrow.vue
|
|
474
|
+
var TooltipArrow_default = TooltipArrow_vue_vue_type_script_setup_true_lang_default;
|
|
475
|
+
|
|
476
|
+
//#endregion
|
|
477
|
+
Object.defineProperty(exports, 'CommonPopupDataAttributes', {
|
|
478
|
+
enumerable: true,
|
|
479
|
+
get: function () {
|
|
480
|
+
return CommonPopupDataAttributes;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
Object.defineProperty(exports, 'CommonTriggerDataAttributes', {
|
|
484
|
+
enumerable: true,
|
|
485
|
+
get: function () {
|
|
486
|
+
return CommonTriggerDataAttributes;
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
Object.defineProperty(exports, 'DISABLED_TRANSITIONS_STYLE', {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
get: function () {
|
|
492
|
+
return DISABLED_TRANSITIONS_STYLE;
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(exports, 'EMPTY_ARRAY', {
|
|
496
|
+
enumerable: true,
|
|
497
|
+
get: function () {
|
|
498
|
+
return EMPTY_ARRAY;
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
Object.defineProperty(exports, 'EMPTY_OBJECT', {
|
|
502
|
+
enumerable: true,
|
|
503
|
+
get: function () {
|
|
504
|
+
return EMPTY_OBJECT;
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
Object.defineProperty(exports, 'NOOP', {
|
|
508
|
+
enumerable: true,
|
|
509
|
+
get: function () {
|
|
510
|
+
return NOOP;
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
Object.defineProperty(exports, 'Slot', {
|
|
514
|
+
enumerable: true,
|
|
515
|
+
get: function () {
|
|
516
|
+
return Slot;
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
Object.defineProperty(exports, 'TooltipArrowDataAttributes', {
|
|
520
|
+
enumerable: true,
|
|
521
|
+
get: function () {
|
|
522
|
+
return TooltipArrowDataAttributes;
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
Object.defineProperty(exports, 'TooltipArrow_default', {
|
|
526
|
+
enumerable: true,
|
|
527
|
+
get: function () {
|
|
528
|
+
return TooltipArrow_default;
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
Object.defineProperty(exports, 'makeEventPreventable', {
|
|
532
|
+
enumerable: true,
|
|
533
|
+
get: function () {
|
|
534
|
+
return makeEventPreventable;
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
Object.defineProperty(exports, 'mergeClasses', {
|
|
538
|
+
enumerable: true,
|
|
539
|
+
get: function () {
|
|
540
|
+
return mergeClasses;
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
Object.defineProperty(exports, 'mergeObjects', {
|
|
544
|
+
enumerable: true,
|
|
545
|
+
get: function () {
|
|
546
|
+
return mergeObjects;
|
|
547
|
+
}
|
|
548
|
+
});
|
|
549
|
+
Object.defineProperty(exports, 'mergeProps', {
|
|
550
|
+
enumerable: true,
|
|
551
|
+
get: function () {
|
|
552
|
+
return mergeProps;
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
Object.defineProperty(exports, 'mergePropsN', {
|
|
556
|
+
enumerable: true,
|
|
557
|
+
get: function () {
|
|
558
|
+
return mergePropsN;
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
Object.defineProperty(exports, 'popupStateMapping', {
|
|
562
|
+
enumerable: true,
|
|
563
|
+
get: function () {
|
|
564
|
+
return popupStateMapping;
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
Object.defineProperty(exports, 'tooltipPositionerContextKey', {
|
|
568
|
+
enumerable: true,
|
|
569
|
+
get: function () {
|
|
570
|
+
return tooltipPositionerContextKey;
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
Object.defineProperty(exports, 'tooltipRootContextKey', {
|
|
574
|
+
enumerable: true,
|
|
575
|
+
get: function () {
|
|
576
|
+
return tooltipRootContextKey;
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
Object.defineProperty(exports, 'triggerStateMapping', {
|
|
580
|
+
enumerable: true,
|
|
581
|
+
get: function () {
|
|
582
|
+
return triggerStateMapping;
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
Object.defineProperty(exports, 'useMergedRefs', {
|
|
586
|
+
enumerable: true,
|
|
587
|
+
get: function () {
|
|
588
|
+
return useMergedRefs;
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
Object.defineProperty(exports, 'useRenderElement', {
|
|
592
|
+
enumerable: true,
|
|
593
|
+
get: function () {
|
|
594
|
+
return useRenderElement;
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
Object.defineProperty(exports, 'useTooltipPositionerContext', {
|
|
598
|
+
enumerable: true,
|
|
599
|
+
get: function () {
|
|
600
|
+
return useTooltipPositionerContext;
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
Object.defineProperty(exports, 'useTooltipRootContext', {
|
|
604
|
+
enumerable: true,
|
|
605
|
+
get: function () {
|
|
606
|
+
return useTooltipRootContext;
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
//# sourceMappingURL=TooltipArrow.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TooltipArrow.cjs","names":[],"sources":["../../src/merge-props/mergeProps.ts","../../src/utils/empty.ts","../../src/utils/constants.ts","../../src/utils/getStateAttributesProps.ts","../../src/utils/slot.ts","../../src/utils/useMergedRefs.ts","../../src/utils/useRenderElement.ts","../../src/utils/popupStateMapping.ts","../../src/tooltip/positioner/TooltipPositionerContext.ts","../../src/tooltip/root/TooltipRootContext.ts","../../src/tooltip/arrow/TooltipArrowDataAttributes.ts","../../src/tooltip/arrow/TooltipArrow.vue","../../src/tooltip/arrow/TooltipArrow.vue"],"sourcesContent":[],"mappings":";;;AAGA,SA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