@easyv/react-components 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,5 +4,5 @@ interface ColorTypeTabProps {
|
|
|
4
4
|
active: ColorType;
|
|
5
5
|
onChange: (active: ColorType) => void;
|
|
6
6
|
}
|
|
7
|
-
export default function ColorTypeTabs({ tabs, active, onChange, }: ColorTypeTabProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function ColorTypeTabs({ tabs, active, onChange, }: ColorTypeTabProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -10,6 +10,9 @@ export default function ColorTypeTabs(_ref) {
|
|
|
10
10
|
var tabs = _ref.tabs,
|
|
11
11
|
active = _ref.active,
|
|
12
12
|
onChange = _ref.onChange;
|
|
13
|
+
if (tabs.length === 1) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
13
16
|
return /*#__PURE__*/_jsx("div", {
|
|
14
17
|
className: "colors-picker-tabs",
|
|
15
18
|
children: tabs.map(function (d) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColorValueMap } from '../interface';
|
|
2
|
+
interface PuresCardsProps {
|
|
3
|
+
active: number;
|
|
4
|
+
value: ColorValueMap['pures'];
|
|
5
|
+
onAdd: () => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
onSelect: (current: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function PuresCards({ active, value, onAdd, onDelete, onSelect, }: PuresCardsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/Menu/index.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { MenuProps } from './interface';
|
|
3
2
|
import './index.less';
|
|
4
|
-
declare const XMenu:
|
|
5
|
-
Item: import("react").ForwardRefExoticComponent<import("@arco-design/web-react").MenuItemProps & import("react").RefAttributes<unknown>> & {
|
|
6
|
-
menuType: string;
|
|
7
|
-
};
|
|
8
|
-
ItemGroup: import("react").ForwardRefExoticComponent<import("@arco-design/web-react").MenuItemGroupProps & import("react").RefAttributes<unknown>> & {
|
|
9
|
-
menuType: string;
|
|
10
|
-
};
|
|
11
|
-
SubMenu: import("react").ForwardRefExoticComponent<import("@arco-design/web-react").MenuSubMenuProps & import("react").RefAttributes<unknown>> & {
|
|
12
|
-
menuType: string;
|
|
13
|
-
};
|
|
14
|
-
__ARCO_MENU__: boolean;
|
|
15
|
-
};
|
|
3
|
+
declare const XMenu: any;
|
|
16
4
|
export default XMenu;
|
|
17
5
|
export { MenuProps };
|