@chayns-components/core 5.0.0-beta.790 → 5.0.0-beta.792

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.
@@ -1,4 +1,4 @@
1
- import type { Theme, WithTheme } from '../color-scheme-provider/ColorSchemeProvider';
1
+ import type { WithTheme } from '../color-scheme-provider/ColorSchemeProvider';
2
2
  export declare const StyledSlider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  type StyledSliderInputProps = WithTheme<{
4
4
  $min: number;
@@ -601,7 +601,10 @@ type StyledSliderThumbProps = WithTheme<{
601
601
  export declare const StyledSliderThumb: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
602
602
  ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
603
603
  }>, StyledSliderThumbProps>, never>> & string;
604
- export declare const StyledSliderThumbLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
605
- theme: Theme;
606
- }>> & string;
604
+ type StyledSliderThumbLabelProps = WithTheme<{
605
+ $position: number;
606
+ $width: number;
607
+ $isBigSlider: boolean;
608
+ }>;
609
+ export declare const StyledSliderThumbLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledSliderThumbLabelProps>> & string;
607
610
  export {};
@@ -17,5 +17,12 @@ interface GetThumbMaxWidthOptions {
17
17
  maxNumber: number;
18
18
  thumbLabelFormatter?: (value: number) => string;
19
19
  }
20
+ interface CalculatePopupPositionOptions {
21
+ sliderValue: number;
22
+ min: number;
23
+ max: number;
24
+ popupWidth: number;
25
+ }
26
+ export declare const calculatePopupPosition: ({ sliderValue, min, max, popupWidth, }: CalculatePopupPositionOptions) => number;
20
27
  export declare const getThumbMaxWidth: ({ maxNumber, thumbLabelFormatter }: GetThumbMaxWidthOptions) => number;
21
28
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/core",
3
- "version": "5.0.0-beta.790",
3
+ "version": "5.0.0-beta.792",
4
4
  "description": "A set of beautiful React components for developing your own applications with chayns.",
5
5
  "sideEffects": false,
6
6
  "browserslist": [
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "f011b2503bbb1a4ea045f5ccddfdbcbd6f71570a"
88
+ "gitHead": "e0347fd1cac017c7accef9b54750c429e2b2c1f0"
89
89
  }