@seeqdev/qomponents 0.0.110 → 0.0.112
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.
- package/dist/InputGroup/InputGroup.types.d.ts +19 -4
- package/dist/Slider/Slider.d.ts +6 -6
- package/dist/Slider/Slider.stories.d.ts +5 -5
- package/dist/Slider/Slider.test.d.ts +1 -1
- package/dist/Slider/Slider.types.d.ts +16 -13
- package/dist/Slider/index.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +975 -43
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +974 -41
- package/dist/index.js.map +1 -1
- package/dist/styles.css +75 -10
- package/package.json +2 -1
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
import { ButtonProps } from '../Button/Button.types';
|
|
2
|
-
import { TextFieldProps } from '../TextField/TextField.types';
|
|
2
|
+
import { InputLengthStyleProps, TextFieldProps } from '../TextField/TextField.types';
|
|
3
3
|
import { TooltipComponentProps } from '../Tooltip/Tooltip.types';
|
|
4
|
+
/**
|
|
5
|
+
* Interface representing the properties for an appended button.
|
|
6
|
+
*/
|
|
4
7
|
interface AppendedButtonProps {
|
|
8
|
+
/** Specifies that the variant is a button */
|
|
5
9
|
variant: 'button';
|
|
10
|
+
/** The properties for the button */
|
|
6
11
|
buttonProps: ButtonProps;
|
|
7
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Props for an element variant in the InputGroup appended component.
|
|
15
|
+
*/
|
|
8
16
|
interface ElementProps {
|
|
17
|
+
/** Specifies that this is an element variant */
|
|
9
18
|
variant: 'element';
|
|
19
|
+
/** The React node to be rendered as the element */
|
|
10
20
|
element: React.ReactNode;
|
|
11
21
|
}
|
|
12
22
|
type AppendedProps = AppendedButtonProps | ElementProps;
|
|
23
|
+
/**
|
|
24
|
+
* Interface representing the base properties for an input group component.
|
|
25
|
+
* Extends the properties of a TextField component.
|
|
26
|
+
*/
|
|
13
27
|
interface BaseInputGroupProps extends TextFieldProps {
|
|
14
|
-
/** Append elements */
|
|
28
|
+
/** Append elements - Array of elements to be appended to the input group */
|
|
15
29
|
append: AppendedProps[];
|
|
16
|
-
|
|
30
|
+
/** The field to be rendered in the input group */
|
|
31
|
+
field?: React.ReactNode;
|
|
17
32
|
}
|
|
18
33
|
/** Combined InputGroupProps */
|
|
19
|
-
export type InputGroupProps = BaseInputGroupProps & TooltipComponentProps;
|
|
34
|
+
export type InputGroupProps = BaseInputGroupProps & TooltipComponentProps & InputLengthStyleProps;
|
|
20
35
|
export {};
|
package/dist/Slider/Slider.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SliderProps } from './Slider.types';
|
|
3
|
-
/**
|
|
4
|
-
* Slider .
|
|
5
|
-
*/
|
|
6
|
-
export declare const Slider: React.FunctionComponent<SliderProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SliderProps } from './Slider.types';
|
|
3
|
+
/**
|
|
4
|
+
* Slider .
|
|
5
|
+
*/
|
|
6
|
+
export declare const Slider: React.FunctionComponent<SliderProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const AllSliders: () => JSX.Element;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const AllSliders: () => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom/extend-expect';
|
|
1
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
export interface SliderProps {
|
|
2
|
-
disabled?: boolean;
|
|
3
|
-
onValueChange?: (value: number[]) => void;
|
|
4
|
-
onPointerUp?: React.PointerEventHandler<HTMLDivElement>;
|
|
5
|
-
id?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
value: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export interface SliderProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
onValueChange?: (value: number[]) => void;
|
|
4
|
+
onPointerUp?: React.PointerEventHandler<HTMLDivElement>;
|
|
5
|
+
id?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
value: number;
|
|
8
|
+
rootExtraClassNames?: string;
|
|
9
|
+
trackExtraClassNames?: string;
|
|
10
|
+
thumbExtraClassNames?: string;
|
|
11
|
+
rangeExtraClassNames?: string;
|
|
12
|
+
testId?: string;
|
|
13
|
+
step?: number;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
}
|
package/dist/Slider/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Slider as default } from './Slider';
|
|
1
|
+
export { Slider as default } from './Slider';
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import ButtonWithDropdown from './ButtonWithDropdown';
|
|
|
15
15
|
import Alert from './Alert';
|
|
16
16
|
import SeeqActionDropdown from './SeeqActionDropdown';
|
|
17
17
|
import InputGroup from './InputGroup';
|
|
18
|
+
import Slider from './Slider';
|
|
18
19
|
import ProgressBar from './ProgressBar';
|
|
19
20
|
export { Tabs };
|
|
20
21
|
export { Button };
|
|
@@ -34,4 +35,5 @@ export { ButtonWithDropdown };
|
|
|
34
35
|
export { Alert };
|
|
35
36
|
export { SeeqActionDropdown };
|
|
36
37
|
export { InputGroup };
|
|
38
|
+
export { Slider };
|
|
37
39
|
export { ProgressBar };
|