feat(ControlsList): Add ControlsList component (#61)

* feat(ControlsList): Add ControlsList component

* fix(ControlsList): replace default export with named export
This commit is contained in:
Jozen Blue Martinez
2022-12-11 23:07:31 +08:00
committed by GitHub
parent d9150c2556
commit c586afb97d
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { findModuleChild } from '../webpack';
import { FC } from 'react';
export interface ControlsListProps {
alignItems?: 'left' | 'right' | 'center';
spacing?: 'standard' | 'extra';
}
export const ControlsList: FC<ControlsListProps> = findModuleChild((m) => {
if (typeof m !== 'object') return;
for (const prop in m) {
if (m[prop]?.toString && m[prop].toString().includes('().ControlsListChild') && m[prop].toString().includes('().ControlsListOuterPanel')) {
return m[prop];
}
}
return;
});

View File

@@ -1,6 +1,7 @@
export * from './Button';
export * from './ButtonItem';
export * from './Carousel';
export * from './ControlsList';
export * from './Dialog';
export * from './Dropdown';
export * from './Field';