@photoroom/ui 0.1.151 → 0.1.153
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/components/input/Slider/Slider.d.ts +3 -1
- package/components/input/Slider/Slider.d.ts.map +1 -1
- package/components/input/Slider/Slider.figma.d.ts +2 -0
- package/components/input/Slider/Slider.figma.d.ts.map +1 -0
- package/components/input/SliderField/SliderField.d.ts +4 -2
- package/components/input/SliderField/SliderField.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.mjs +2399 -2377
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
2
|
+
export type SliderVariant = "accent" | "primary";
|
|
2
3
|
export type SliderProps = SliderPrimitive.SliderProps & {
|
|
4
|
+
variant?: SliderVariant;
|
|
3
5
|
onDoubleClickThumb?: () => void;
|
|
4
6
|
onArrowKeyDown?: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
5
7
|
onArrowKeyUp?: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
6
8
|
};
|
|
7
|
-
export declare const Slider: ({ onDoubleClickThumb, onArrowKeyDown, onArrowKeyUp, ...props }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const Slider: ({ variant, onDoubleClickThumb, onArrowKeyDown, onArrowKeyUp, ...props }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Slider/Slider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAU1D,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,WAAW,GAAG;IACtD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAClE,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACjE,CAAC;AAyBF,eAAO,MAAM,MAAM,GAAI,yEAMpB,WAAW,4CAmEb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.figma.d.ts","sourceRoot":"","sources":["../../../../src/components/input/Slider/Slider.figma.tsx"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,9 @@ type SliderFieldProps = NumberFieldProps & Readonly<{
|
|
|
5
5
|
tooltip?: React.ReactNode;
|
|
6
6
|
onNumberFieldValueChange?: (value: number) => void;
|
|
7
7
|
onDoubleClickThumb?: () => void;
|
|
8
|
-
}> & Pick<SliderProps, "onPointerDown" | "onPointerUp" | "onArrowKeyDown" | "onArrowKeyUp"
|
|
9
|
-
|
|
8
|
+
}> & Pick<SliderProps, "onPointerDown" | "onPointerUp" | "onArrowKeyDown" | "onArrowKeyUp"> & Readonly<{
|
|
9
|
+
sliderVariant?: SliderProps["variant"];
|
|
10
|
+
}>;
|
|
11
|
+
export declare const SliderField: ({ value: outerValue, defaultValue, onValueChange, onNumberFieldValueChange, onDoubleClickThumb, onPointerDown, onPointerUp, onArrowKeyDown, onArrowKeyUp, sliderVariant, min, max, step, label, description, disabled, tooltip, className, isMixed, ...props }: SliderFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
11
13
|
//# sourceMappingURL=SliderField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderField.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SliderField/SliderField.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAEhD,KAAK,gBAAgB,GAAG,gBAAgB,GACtC,QAAQ,CAAC;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC,GACF,IAAI,CAAC,WAAW,EAAE,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SliderField.d.ts","sourceRoot":"","sources":["../../../../src/components/input/SliderField/SliderField.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAEhD,KAAK,gBAAgB,GAAG,gBAAgB,GACtC,QAAQ,CAAC;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC,GACF,IAAI,CAAC,WAAW,EAAE,eAAe,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAC,GACtF,QAAQ,CAAC;IACP,aAAa,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACxC,CAAC,CAAC;AAEL,eAAO,MAAM,WAAW,GAAI,gQAqBzB,gBAAgB,4CAwElB,CAAC"}
|