@codecademy/gamut
73.6.173.6.2-alpha.3e37cd.0
dist/utils/types.d.ts~
dist/utils/types.d.tsModified+7
Index: package/dist/utils/types.d.ts
===================================================================
--- package/dist/utils/types.d.ts
+++ package/dist/utils/types.d.ts
@@ -1,7 +1,14 @@
import { GamutIconProps } from '@codecademy/gamut-icons';
export interface WithChildrenProp {
children?: React.ReactNode | React.ReactNode[];
}
+export interface DataAttributes {
+ [key: `data-${string}`]: string | number | boolean | undefined;
+}
+export interface ReservedDataAttributes {
+ /** Read via `closest()` in PopoverContainer for outside-click detection. */
+ 'data-floating'?: never;
+}
export type IconComponentType = {
icon: React.ComponentType<GamutIconProps>;
};