constants.ts 974 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. 'leftBottomOver',
  22. 'rightBottomOver',
  23. ],
  24. TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
  25. STATUS_DISABLED: 'disabled',
  26. STATUS_LOADING: 'loading',
  27. } as const;
  28. const numbers = {
  29. ARROW_BOUNDING: {
  30. offsetX: 0,
  31. offsetY: 2,
  32. width: 24,
  33. height: 7,
  34. },
  35. DEFAULT_Z_INDEX: 1060,
  36. MOUSE_ENTER_DELAY: 50,
  37. MOUSE_LEAVE_DELAY: 50,
  38. SPACING: 8, // Values are consistent with spacing-tight in scss
  39. } as const;
  40. export { cssClasses, strings, numbers };