@synerise/ds-slider 0.12.27 → 0.12.28
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/CHANGELOG.md +8 -0
- package/dist/Allocation/Allocation.d.ts +0 -1
- package/dist/Allocation/Allocation.styles.d.ts +11 -11
- package/dist/Allocation/Allocation.types.d.ts +4 -4
- package/dist/Slider.d.ts +0 -1
- package/dist/Slider.styles.d.ts +3 -2
- package/dist/Slider.types.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.12.28](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.12.27...@synerise/ds-slider@0.12.28) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-slider
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.12.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.12.26...@synerise/ds-slider@0.12.27) (2023-09-26)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-slider
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { SliderProps } from '../Slider.types';
|
|
3
3
|
import { TrackProps } from './Allocation.types';
|
|
4
4
|
export declare const INDEX_MAP: {
|
|
5
|
-
0: string;
|
|
6
|
-
1: string;
|
|
7
|
-
2: string;
|
|
8
|
-
3: string;
|
|
9
|
-
4: string;
|
|
10
|
-
5: string;
|
|
11
|
-
6: string;
|
|
12
|
-
7: string;
|
|
13
|
-
8: string;
|
|
14
|
-
9: string;
|
|
5
|
+
'0': string;
|
|
6
|
+
'1': string;
|
|
7
|
+
'2': string;
|
|
8
|
+
'3': string;
|
|
9
|
+
'4': string;
|
|
10
|
+
'5': string;
|
|
11
|
+
'6': string;
|
|
12
|
+
'7': string;
|
|
13
|
+
'8': string;
|
|
14
|
+
'9': string;
|
|
15
15
|
};
|
|
16
|
-
export declare const AllocationSlider: import("styled-components").StyledComponent<import("react").ComponentType<
|
|
16
|
+
export declare const AllocationSlider: import("styled-components").StyledComponent<import("react").ComponentType<Omit<import("antd/lib/slider").SliderSingleProps | import("antd/lib/slider").SliderRangeProps, "value">>, any, SliderProps & {
|
|
17
17
|
reachedEnd?: boolean | undefined;
|
|
18
18
|
reachedStart?: boolean | undefined;
|
|
19
19
|
}, never>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type AllocationConfig = {
|
|
3
3
|
controlGroupEnabled?: boolean;
|
|
4
4
|
controlGroupLabel?: string | React.ReactNode;
|
|
5
5
|
controlGroupTooltip?: string | React.ReactNode;
|
|
6
6
|
variants?: AllocationVariant[];
|
|
7
7
|
onAllocationChange?: (variants?: AllocationVariant[]) => void;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type AllocationVariant = {
|
|
10
10
|
name: string | React.ReactNode;
|
|
11
11
|
percentage: number;
|
|
12
12
|
tabId: number;
|
|
13
13
|
tabLetter: string | React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type AllocationMark = {
|
|
16
16
|
value: string;
|
|
17
17
|
view: number;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type TrackProps = {
|
|
20
20
|
width: number;
|
|
21
21
|
index: number;
|
|
22
22
|
isCustomColor?: boolean;
|
package/dist/Slider.d.ts
CHANGED
package/dist/Slider.styles.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { SliderSingleProps, SliderRangeProps } from 'antd/lib/slider';
|
|
|
3
3
|
import { ThemeProps } from '@synerise/ds-core';
|
|
4
4
|
import { ComponentType } from 'react';
|
|
5
5
|
import { ColorMapProps, SliderProps as DsSliderProps } from './Slider.types';
|
|
6
|
+
type SliderProps = SliderSingleProps | SliderRangeProps;
|
|
6
7
|
export declare const Description: import("styled-components").StyledComponent<"div", any, {
|
|
7
8
|
range?: boolean | undefined;
|
|
8
9
|
}, never>;
|
|
@@ -10,9 +11,9 @@ export declare const LabelWrapper: import("styled-components").StyledComponent<"
|
|
|
10
11
|
export declare const DescriptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
12
|
export declare const applyTooltipStyles: (props: ThemeProps & DsSliderProps & SliderStyles) => FlattenSimpleInterpolation;
|
|
12
13
|
export declare const createTracksStyles: (props: ThemeProps & DsSliderProps, colorsMap: ColorMapProps) => FlattenSimpleInterpolation;
|
|
13
|
-
|
|
14
|
+
type SliderStyles = {
|
|
14
15
|
reachedEnd?: boolean;
|
|
15
16
|
reachedStart?: boolean;
|
|
16
17
|
};
|
|
17
|
-
export declare const AntdSlider: import("styled-components").StyledComponent<ComponentType<
|
|
18
|
+
export declare const AntdSlider: import("styled-components").StyledComponent<ComponentType<Omit<SliderProps, "value">>, any, DsSliderProps & SliderStyles, never>;
|
|
18
19
|
export {};
|
package/dist/Slider.types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SliderSingleProps, SliderRangeProps } from 'antd/lib/slider';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { AllocationConfig } from './Allocation/Allocation.types';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type AntSliderProps = SliderSingleProps | SliderRangeProps;
|
|
5
|
+
export type AntdSliderProps = Omit<AntSliderProps, 'value'>;
|
|
6
6
|
export declare enum SliderTypes {
|
|
7
7
|
ALLOCATION = "allocation",
|
|
8
8
|
DEFAULT = "default"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-slider",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.28",
|
|
4
4
|
"description": "Slider UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
36
|
-
"@synerise/ds-typography": "^0.13.
|
|
35
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
36
|
+
"@synerise/ds-typography": "^0.13.1",
|
|
37
37
|
"react-intl": "3.12.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"styled-components": "5.0.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@synerise/ds-utils": "^0.24.
|
|
46
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
47
47
|
"@testing-library/react": "10.0.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
50
50
|
}
|