mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Export more UI components via extensions-api (#1285)
* export more UI components via extensions-api, touches #1277 #1284 Signed-off-by: Roman <ixrock@gmail.com> * fix build, added table + notification-store exports Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
85f0ef8c2e
commit
f69f8c793f
31 files changed
+138
-120
No files matched your search
@@ -4,20 +4,20 @@ import "./slider.scss";
|
||||
|
||||
import React, { Component } from "react";
|
||||
import { cssNames } from "../../utils";
|
||||
import MaterialSlider, { SliderClassKey, SliderProps } from "@material-ui/core/Slider";
|
||||
import MaterialSlider, { SliderClassKey, SliderProps as MaterialSliderProps } from "@material-ui/core/Slider";
|
||||
|
||||
interface Props extends Omit<SliderProps, "onChange"> {
|
||||
export interface SliderProps extends Omit<MaterialSliderProps, "onChange"> {
|
||||
className?: string;
|
||||
onChange?(evt: React.FormEvent<any>, value: number): void;
|
||||
}
|
||||
|
||||
const defaultProps: Partial<Props> = {
|
||||
const defaultProps: Partial<SliderProps> = {
|
||||
step: 1,
|
||||
min: 0,
|
||||
max: 100,
|
||||
};
|
||||
|
||||
export class Slider extends Component<Props> {
|
||||
export class Slider extends Component<SliderProps> {
|
||||
static defaultProps = defaultProps as object;
|
||||
|
||||
private classNames: Partial<{ [P in SliderClassKey]: string }> = {
|
||||
|
||||
Reference in new issue
Block a user