@antimatter-audio/antimatter-ui 5.12.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 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
- imageAssets?: {
231
- background: string;
232
- indicator: string;
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, imageAssets, className, id, onMouseEnter, onChange, mockInitialScaledValue, mockProperties, }: React__default.PropsWithChildren<SliderProps>): React__default.JSX.Element;
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;
@@ -367,8 +367,10 @@ declare function KeyValueDisplayScreen({ className, style, data, }: KeyValueDisp
367
367
 
368
368
  interface OscilloscopeProps {
369
369
  id?: string;
370
+ width?: number;
371
+ height?: number;
370
372
  className?: string;
371
373
  }
372
- declare function Oscilloscope({ className, id }: OscilloscopeProps): React__default.JSX.Element;
374
+ declare function Oscilloscope({ width, height, className, id }: OscilloscopeProps): React__default.JSX.Element;
373
375
 
374
376
  export { Button, Col, Dropdown, IndicatorLight, KeyValueDisplayScreen, Layout, Matrix, Oscilloscope, Row, Slider, Tabs, TextHeader, TextLabel };
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, imageAssets = param.imageAssets, 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
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(imageAssets === null || imageAssets === void 0 ? void 0 : imageAssets.background, ")")
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(imageAssets === null || imageAssets === void 0 ? void 0 : imageAssets.indicator, ")")
975
+ backgroundImage: "url(".concat(componentTheme === null || componentTheme === void 0 ? void 0 : componentTheme.indicatorImage, ")")
976
976
  }
977
977
  }))));
978
978
  }
@@ -2158,7 +2158,7 @@ function _unsupported_iterable_to_array(o, minLen) {
2158
2158
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
2159
2159
  }
2160
2160
  function Oscilloscope(param) {
2161
- var className = param.className, id = param.id;
2161
+ var width = param.width, height = param.height, className = param.className, id = param.id;
2162
2162
  var _useState = _sliced_to_array(useState([]), 2), viewData = _useState[0], setViewData = _useState[1];
2163
2163
  useEffect(function() {
2164
2164
  //@ts-expect-error
@@ -2179,6 +2179,8 @@ function Oscilloscope(param) {
2179
2179
  id: id,
2180
2180
  className: classnames(className, 'Oscilloscope')
2181
2181
  }, /*#__PURE__*/ React__default.createElement(LinePlot, {
2182
+ width: width,
2183
+ height: height,
2182
2184
  data: viewData
2183
2185
  }));
2184
2186
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.sty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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antimatter-audio/antimatter-ui",
3
- "version": "5.12.0",
3
+ "version": "5.14.0",
4
4
  "description": "React UI component library for Antimatter Audio.",
5
5
  "repository": {
6
6
  "type": "git",