@synerise/ds-slider 0.12.26 → 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 CHANGED
@@ -3,6 +3,22 @@
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
+
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)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-slider
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.12.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-slider@0.12.25...@synerise/ds-slider@0.12.26) (2023-09-08)
7
23
 
8
24
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SliderProps } from '../Slider.types';
3
2
  declare const Allocation: ({ allocationConfig, tracksColorMap, description, tipFormatter, ...rest }: SliderProps) => JSX.Element;
4
3
  export default Allocation;
@@ -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<Pick<import("antd/lib/slider").SliderSingleProps | import("antd/lib/slider").SliderRangeProps, "range" | "defaultValue" | "onChange" | "onAfterChange" | "handleStyle" | "trackStyle" | "prefixCls" | "tooltipPrefixCls" | "reverse" | "min" | "max" | "step" | "marks" | "dots" | "included" | "disabled" | "vertical" | "tipFormatter" | "className" | "id" | "style" | "tooltipVisible" | "tooltipPlacement" | "getTooltipPopupContainer" | "autoFocus">>, any, SliderProps & {
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 declare type AllocationConfig = {
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 declare type AllocationVariant = {
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 declare type AllocationMark = {
15
+ export type AllocationMark = {
16
16
  value: string;
17
17
  view: number;
18
18
  };
19
- export declare type TrackProps = {
19
+ export type TrackProps = {
20
20
  width: number;
21
21
  index: number;
22
22
  isCustomColor?: boolean;
package/dist/Slider.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '@synerise/ds-core/dist/js/style';
3
2
  import './style/index.less';
4
3
  import { ColorMapProps, SliderProps } from './Slider.types';
@@ -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
- declare type SliderStyles = {
14
+ type SliderStyles = {
14
15
  reachedEnd?: boolean;
15
16
  reachedStart?: boolean;
16
17
  };
17
- export declare const AntdSlider: import("styled-components").StyledComponent<ComponentType<Pick<SliderSingleProps | SliderRangeProps, "range" | "defaultValue" | "onChange" | "onAfterChange" | "handleStyle" | "trackStyle" | "prefixCls" | "tooltipPrefixCls" | "reverse" | "min" | "max" | "step" | "marks" | "dots" | "included" | "disabled" | "vertical" | "tipFormatter" | "className" | "id" | "style" | "tooltipVisible" | "tooltipPlacement" | "getTooltipPopupContainer" | "autoFocus">>, any, DsSliderProps & SliderStyles, never>;
18
+ export declare const AntdSlider: import("styled-components").StyledComponent<ComponentType<Omit<SliderProps, "value">>, any, DsSliderProps & SliderStyles, never>;
18
19
  export {};
@@ -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
- declare type AntSliderProps = SliderSingleProps | SliderRangeProps;
5
- export declare type AntdSliderProps = Omit<AntSliderProps, 'value'>;
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.26",
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.3",
36
- "@synerise/ds-typography": "^0.12.10",
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.15",
46
+ "@synerise/ds-utils": "^0.24.17",
47
47
  "@testing-library/react": "10.0.1"
48
48
  },
49
- "gitHead": "955a885f58b3fca4caa4f879deb147fe5b9dc6d8"
49
+ "gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
50
50
  }