@antimatter-audio/antimatter-ui 5.13.0 → 5.14.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.d.ts +4 -4
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -227,9 +227,9 @@ interface SliderProps {
|
|
|
227
227
|
sliderOrientation?: SLIDER_ORIENTATION;
|
|
228
228
|
onMouseEnter?: (label: string, scaledValue: number) => void;
|
|
229
229
|
onChange?: (newValue: any) => void;
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
componentTheme?: {
|
|
231
|
+
backgroundImage?: string;
|
|
232
|
+
indicatorImage?: string;
|
|
233
233
|
};
|
|
234
234
|
className?: string;
|
|
235
235
|
style?: object;
|
|
@@ -241,7 +241,7 @@ interface SliderProps {
|
|
|
241
241
|
mockInitialScaledValue?: number;
|
|
242
242
|
mockProperties?: JuceSliderProperties;
|
|
243
243
|
}
|
|
244
|
-
declare function Slider({ label, labelPosition, sliderPolarity, sliderOrientation, sliderType,
|
|
244
|
+
declare function Slider({ label, labelPosition, sliderPolarity, sliderOrientation, sliderType, componentTheme, className, id, onMouseEnter, onChange, mockInitialScaledValue, mockProperties, }: React__default.PropsWithChildren<SliderProps>): React__default.JSX.Element;
|
|
245
245
|
declare namespace Slider {
|
|
246
246
|
var LABEL_POSITION: typeof POSITION;
|
|
247
247
|
var SLIDER_TYPE: typeof SLIDER_TYPE;
|
package/dist/index.js
CHANGED
|
@@ -840,7 +840,7 @@ var getPosition = function(param) {
|
|
|
840
840
|
};
|
|
841
841
|
function Slider(param) {
|
|
842
842
|
var label = param.label, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? POSITION.BOTTOM : _param_labelPosition, _param_sliderPolarity = param.// showValue = true,
|
|
843
|
-
sliderPolarity, sliderPolarity = _param_sliderPolarity === void 0 ? "LINEAR" : _param_sliderPolarity, _param_sliderOrientation = param.sliderOrientation, sliderOrientation = _param_sliderOrientation === void 0 ? "VERTICAL" : _param_sliderOrientation, _param_sliderType = param.sliderType, sliderType = _param_sliderType === void 0 ? "BAR" : _param_sliderType,
|
|
843
|
+
sliderPolarity, sliderPolarity = _param_sliderPolarity === void 0 ? "LINEAR" : _param_sliderPolarity, _param_sliderOrientation = param.sliderOrientation, sliderOrientation = _param_sliderOrientation === void 0 ? "VERTICAL" : _param_sliderOrientation, _param_sliderType = param.sliderType, sliderType = _param_sliderType === void 0 ? "BAR" : _param_sliderType, componentTheme = param.componentTheme, className = param.className, id = param.id, onMouseEnter = param.onMouseEnter, onChange = param.onChange, _param_mockInitialScaledValue = param.// Mocks the initial scaled value of the slider for web veiws outside of JUCE
|
|
844
844
|
mockInitialScaledValue, mockInitialScaledValue = _param_mockInitialScaledValue === void 0 ? 0 : _param_mockInitialScaledValue, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
|
|
845
845
|
start: 0,
|
|
846
846
|
end: 1,
|
|
@@ -952,7 +952,7 @@ function Slider(param) {
|
|
|
952
952
|
},
|
|
953
953
|
style: {
|
|
954
954
|
touchAction: 'none',
|
|
955
|
-
backgroundImage: "url(".concat(
|
|
955
|
+
backgroundImage: "url(".concat(componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.backgroundImage, ")")
|
|
956
956
|
}
|
|
957
957
|
}), /*#__PURE__*/ React__default.createElement("div", {
|
|
958
958
|
className: "Slider-inner",
|
|
@@ -972,7 +972,7 @@ function Slider(param) {
|
|
|
972
972
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
973
973
|
className: classnames('Slider-marker', sliderType === "ROTARY" || sliderType === "ROTARY_LARGE" ? "bg-rotary-slider-indicator" : "bg-bar-slider-indicator"),
|
|
974
974
|
style: {
|
|
975
|
-
backgroundImage: "url(".concat(
|
|
975
|
+
backgroundImage: "url(".concat(componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.indicatorImage, ")")
|
|
976
976
|
}
|
|
977
977
|
}))));
|
|
978
978
|
}
|