constants.ts 921 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { BASE_CLASS_PREFIX } from '../base/constants';
  2. const cssClasses = {
  3. PREFIX: `${BASE_CLASS_PREFIX}-tooltip`,
  4. } as const;
  5. const strings = {
  6. POSITION_SET: [
  7. 'top',
  8. 'topLeft',
  9. 'topRight',
  10. 'left',
  11. 'leftTop',
  12. 'leftBottom',
  13. 'right',
  14. 'rightTop',
  15. 'rightBottom',
  16. 'bottom',
  17. 'bottomLeft',
  18. 'bottomRight',
  19. 'leftTopOver',
  20. 'rightTopOver',
  21. ],
  22. TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
  23. STATUS_DISABLED: 'disabled',
  24. STATUS_LOADING: 'loading',
  25. } as const;
  26. const numbers = {
  27. ARROW_BOUNDING: {
  28. offsetX: 0,
  29. offsetY: 2,
  30. width: 24,
  31. height: 7,
  32. },
  33. DEFAULT_Z_INDEX: 1060,
  34. MOUSE_ENTER_DELAY: 50,
  35. MOUSE_LEAVE_DELAY: 50,
  36. SPACING: 8, // Values are consistent with spacing-tight in scss
  37. } as const;
  38. export { cssClasses, strings, numbers };