You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
|
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
|
|
|
const tooltipV2Strategies = ["absolute", "fixed"];
|
|
const tooltipV2Placements = [
|
|
"top-start",
|
|
"top-end",
|
|
"top",
|
|
"bottom-start",
|
|
"bottom-end",
|
|
"bottom",
|
|
"left-start",
|
|
"left-end",
|
|
"left",
|
|
"right-start",
|
|
"right-end",
|
|
"right"
|
|
];
|
|
const tooltipV2ContentProps = buildProps({
|
|
arrowPadding: {
|
|
type: definePropType(Number),
|
|
default: 5
|
|
},
|
|
effect: {
|
|
type: definePropType(String),
|
|
default: "light"
|
|
},
|
|
contentClass: String,
|
|
placement: {
|
|
type: definePropType(String),
|
|
values: tooltipV2Placements,
|
|
default: "bottom"
|
|
},
|
|
reference: {
|
|
type: definePropType(Object),
|
|
default: null
|
|
},
|
|
offset: {
|
|
type: Number,
|
|
default: 8
|
|
},
|
|
strategy: {
|
|
type: definePropType(String),
|
|
values: tooltipV2Strategies,
|
|
default: "absolute"
|
|
},
|
|
showArrow: Boolean,
|
|
...useAriaProps(["ariaLabel"])
|
|
});
|
|
|
|
export { tooltipV2ContentProps };
|
|
//# sourceMappingURL=content.mjs.map
|