mostly finished rewrite

This commit is contained in:
Violet
2024-12-18 12:31:06 -07:00
parent bab7a0ca27
commit d28c65e66b
2906 changed files with 227775 additions and 105 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as React from 'react';
export class BsPrefixComponent extends React.Component {}
// Need to use this instead of typeof Component to get proper type checking.
export function getOverlayDirection(placement, isRTL) {
let bsDirection = placement;
if (placement === 'left') {
bsDirection = isRTL ? 'end' : 'start';
} else if (placement === 'right') {
bsDirection = isRTL ? 'start' : 'end';
}
return bsDirection;
}