ingred-ui 33.18.0 → 33.18.1

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,5 +1,5 @@
1
1
  export { default as Slider } from "./Slider";
2
2
  export { default as SliderField } from "./SliderField";
3
3
  export type { SliderProps, SliderTrackProps, SliderFillProps, SliderThumbProps, SliderScaleProps, UseSliderProps, UseSliderReturn, UseSliderScaleProps, UseSliderScaleReturn, } from "./types";
4
- export { clamp, getClampedValue, getPercentage, getValueFromPosition, getNearestThumbIndex, getKeyboardValue, preventTextSelection, restoreTextSelection, preventScroll, } from "./utils";
4
+ export { clamp, getClampedValue, getPercentage, getValueFromPosition, getNearestThumbIndex, getKeyboardValue, preventTextSelection, restoreTextSelection, applyDraggingCursor, restoreDraggingCursor, preventScroll, } from "./utils";
5
5
  export { useSlider, useSliderScale } from "./hooks";
@@ -1,10 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { SliderFillProps, SliderThumbProps } from "./types";
3
- export declare const SliderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "disabled"> & {
3
+ export declare const SliderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "disabled" | "$isDragging"> & {
4
4
  disabled?: boolean | undefined;
5
- }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "disabled"> & {
5
+ $isDragging?: boolean | undefined;
6
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "disabled" | "$isDragging"> & {
6
7
  disabled?: boolean | undefined;
8
+ $isDragging?: boolean | undefined;
7
9
  }, never>>> & string;
10
+ export declare const SliderDraggingGlobalStyle: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
8
11
  export declare const SliderTrack: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
9
12
  export declare const SliderFill: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "disabled" | keyof SliderFillProps> & SliderFillProps & {
10
13
  disabled?: boolean | undefined;
@@ -39,3 +39,15 @@ export declare const restoreTextSelection: () => void;
39
39
  * スクロールを防止する
40
40
  */
41
41
  export declare const preventScroll: (event: Event) => void;
42
+ export declare const SLIDER_DRAGGING_CLASS = "ingred-ui-slider-dragging";
43
+ /**
44
+ * ドラッグ中の document 副作用(カーソル上書き・選択禁止・スクロール防止)を開始する。
45
+ * 呼び出し元は返したセッションを restore に渡し、所有権を明示する。
46
+ */
47
+ export declare const applyDraggingCursor: () => object;
48
+ /**
49
+ * このセッションが最後の所有者なら document 副作用を元に戻す
50
+ */
51
+ export declare const restoreDraggingCursor: (session?: object | null) => void;
52
+ export declare const resetDraggingCursorSessions: () => void;
53
+ export declare const isSliderDragging: () => boolean;
@@ -25,5 +25,6 @@ export type SwitchVariantConfig = {
25
25
  iconColorDisabled: string;
26
26
  borderColor: string;
27
27
  hoverBackground?: string;
28
+ indicatorShadow: string;
28
29
  };
29
30
  export declare const getSwitchVariantConfig: (theme: Theme) => Record<SwitchVariant, SwitchVariantConfig>;