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

4 months ago
  1. import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
  2. import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
  3. const tooltipV2Strategies = ["absolute", "fixed"];
  4. const tooltipV2Placements = [
  5. "top-start",
  6. "top-end",
  7. "top",
  8. "bottom-start",
  9. "bottom-end",
  10. "bottom",
  11. "left-start",
  12. "left-end",
  13. "left",
  14. "right-start",
  15. "right-end",
  16. "right"
  17. ];
  18. const tooltipV2ContentProps = buildProps({
  19. arrowPadding: {
  20. type: definePropType(Number),
  21. default: 5
  22. },
  23. effect: {
  24. type: definePropType(String),
  25. default: "light"
  26. },
  27. contentClass: String,
  28. placement: {
  29. type: definePropType(String),
  30. values: tooltipV2Placements,
  31. default: "bottom"
  32. },
  33. reference: {
  34. type: definePropType(Object),
  35. default: null
  36. },
  37. offset: {
  38. type: Number,
  39. default: 8
  40. },
  41. strategy: {
  42. type: definePropType(String),
  43. values: tooltipV2Strategies,
  44. default: "absolute"
  45. },
  46. showArrow: Boolean,
  47. ...useAriaProps(["ariaLabel"])
  48. });
  49. export { tooltipV2ContentProps };
  50. //# sourceMappingURL=content.mjs.map