@worldresources/wri-design-systems 2.205.2 → 2.206.0
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/dist/index.cjs.js +275 -255
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +273 -253
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -954,6 +954,7 @@ declare const Slider: React__default.ForwardRefExoticComponent<Omit<Slider$1.Roo
|
|
|
954
954
|
value: number[];
|
|
955
955
|
}) => void;
|
|
956
956
|
isCentred?: boolean;
|
|
957
|
+
colors?: string[];
|
|
957
958
|
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
958
959
|
|
|
959
960
|
type SliderMarksProps = {
|
|
@@ -980,6 +981,8 @@ type SliderProps = Omit<SliderRootProps, 'size' | 'variant' | 'colorPalette' | '
|
|
|
980
981
|
onValueChange?: (details: ValueChangeDetails) => void;
|
|
981
982
|
onValueChangeEnd?: (details: ValueChangeDetails) => void;
|
|
982
983
|
isCentred?: boolean;
|
|
984
|
+
/** Colors used to render a gradient track, e.g. for data-driven scales (low → high). */
|
|
985
|
+
colors?: string[];
|
|
983
986
|
};
|
|
984
987
|
|
|
985
988
|
type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'invalid' | 'onCheckedChange' | 'onChange' | 'labels'> & {
|