@antimatter-audio/antimatter-ui 14.0.7 → 14.0.8

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.
Files changed (33) hide show
  1. package/dist/advanced/ControlGroup/ControlGroup.d.ts +2 -1
  2. package/dist/advanced/ControlGroup/ControlGroup.d.ts.map +1 -1
  3. package/dist/advanced/ModuleFooter/LFOTab.d.ts.map +1 -1
  4. package/dist/advanced/ModuleFooter/ModuleFooter.d.ts.map +1 -1
  5. package/dist/advanced/ModuleFooter/SeqPanel.d.ts.map +1 -1
  6. package/dist/advanced/ModuleFooter/SeqTab.d.ts.map +1 -1
  7. package/dist/core/Dropdown/Dropdown.d.ts.map +1 -1
  8. package/dist/core/PositioningWrapper/PositioningWrapper.d.ts +3 -1
  9. package/dist/core/PositioningWrapper/PositioningWrapper.d.ts.map +1 -1
  10. package/dist/core/Slider/RotaryCombobox.d.ts +3 -1
  11. package/dist/core/Slider/RotaryCombobox.d.ts.map +1 -1
  12. package/dist/core/Slider/RotarySlider.d.ts +3 -1
  13. package/dist/core/Slider/RotarySlider.d.ts.map +1 -1
  14. package/dist/core/Slider/Slider.d.ts +3 -1
  15. package/dist/core/Slider/Slider.d.ts.map +1 -1
  16. package/dist/index.js +433 -410
  17. package/dist/index.js.map +1 -1
  18. package/dist/src/advanced/ControlGroup/ControlGroup.d.ts +2 -1
  19. package/dist/src/advanced/ControlGroup/ControlGroup.d.ts.map +1 -1
  20. package/dist/src/advanced/ModuleFooter/LFOTab.d.ts.map +1 -1
  21. package/dist/src/advanced/ModuleFooter/ModuleFooter.d.ts.map +1 -1
  22. package/dist/src/advanced/ModuleFooter/SeqPanel.d.ts.map +1 -1
  23. package/dist/src/advanced/ModuleFooter/SeqTab.d.ts.map +1 -1
  24. package/dist/src/common/utils.d.ts +1 -0
  25. package/dist/src/common/utils.d.ts.map +1 -1
  26. package/dist/src/core/Dropdown/Dropdown.d.ts.map +1 -1
  27. package/dist/src/core/Slider/RotaryCombobox.d.ts +3 -1
  28. package/dist/src/core/Slider/RotaryCombobox.d.ts.map +1 -1
  29. package/dist/src/core/Slider/RotarySlider.d.ts +3 -1
  30. package/dist/src/core/Slider/RotarySlider.d.ts.map +1 -1
  31. package/dist/src/core/Slider/Slider.d.ts +3 -1
  32. package/dist/src/core/Slider/Slider.d.ts.map +1 -1
  33. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2151,7 +2151,7 @@ function _object_spread$f(target) {
2151
2151
  return target;
2152
2152
  }
2153
2153
  function Dropdown(param) {
2154
- var label = param.label, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_labelColor = param.labelColor, labelColor = _param_labelColor === void 0 ? 'var(--color-text)' : _param_labelColor, className = param.className, onChange = param.onChange, width = param.width, _param_height = param.height, height = _param_height === void 0 ? '34px' : _param_height, id = param.id, style = param.style;
2154
+ var label = param.label, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_labelColor = param.labelColor, labelColor = _param_labelColor === void 0 ? 'var(--color-text)' : _param_labelColor, className = param.className, onChange = param.onChange, _param_width = param.width, width = _param_width === void 0 ? '110px' : _param_width, _param_height = param.height, height = _param_height === void 0 ? '34px' : _param_height, id = param.id, style = param.style;
2155
2155
  var _useDropdown = useDropdown({
2156
2156
  id: id,
2157
2157
  label: label,
@@ -2890,7 +2890,7 @@ function _unsupported_iterable_to_array$d(o, minLen) {
2890
2890
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
2891
2891
  }
2892
2892
  function ControlGroup(param) {
2893
- var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, className = param.className, onChangeActiveState = param.onChangeActiveState, children = param.children;
2893
+ var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, className = param.className, onChangeActiveState = param.onChangeActiveState, children = param.children, width = param.width;
2894
2894
  // EXPECTED CONTROL GROUP STRUCTURE
2895
2895
  // <ControlGroup id={id-control-group} is-active>
2896
2896
  // <Slider id={id}></Slider>
@@ -2964,6 +2964,7 @@ function ControlGroup(param) {
2964
2964
  ]);
2965
2965
  return /*#__PURE__*/ React__default.createElement(Box, {
2966
2966
  id: groupId,
2967
+ width: width,
2967
2968
  className: "controlGroup ".concat(isActive ? 'isActive' : '', " ").concat(isDisabled ? 'isDisabled' : '', " ").concat(className ? className : '')
2968
2969
  }, children);
2969
2970
  }
@@ -3304,17 +3305,268 @@ function RotaryCircle(param) {
3304
3305
  RotaryCircle.polarity = Polarity;
3305
3306
  RotaryCircle.size = RotarySliderSizes;
3306
3307
 
3308
+ function _define_property$c(obj, key, value) {
3309
+ if (key in obj) {
3310
+ Object.defineProperty(obj, key, {
3311
+ value: value,
3312
+ enumerable: true,
3313
+ configurable: true,
3314
+ writable: true
3315
+ });
3316
+ } else {
3317
+ obj[key] = value;
3318
+ }
3319
+ return obj;
3320
+ }
3321
+ function _object_spread$c(target) {
3322
+ for(var i = 1; i < arguments.length; i++){
3323
+ var source = arguments[i] != null ? arguments[i] : {};
3324
+ var ownKeys = Object.keys(source);
3325
+ if (typeof Object.getOwnPropertySymbols === "function") {
3326
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3327
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3328
+ }));
3329
+ }
3330
+ ownKeys.forEach(function(key) {
3331
+ _define_property$c(target, key, source[key]);
3332
+ });
3333
+ }
3334
+ return target;
3335
+ }
3336
+ // Rotary Slider UI component.
3337
+ // Connects to Juce's Slider element
3338
+ function PositioningWrapper(param) {
3339
+ var positionedElement = param.positionedElement, _param_top = param.top, top = _param_top === void 0 ? '0px' : _param_top, right = param.right, bottom = param.bottom, _param_left = param.left, left = _param_left === void 0 ? '0px' : _param_left, _param_margin = param.margin, margin = _param_margin === void 0 ? 0 : _param_margin, _param_height = param.height, height = _param_height === void 0 ? '100%' : _param_height, _param_width = param.width, width = _param_width === void 0 ? '100%' : _param_width, id = param.id, className = param.className, style = param.style, children = param.children;
3340
+ return /*#__PURE__*/ React__default.createElement("div", {
3341
+ id: id,
3342
+ className: className,
3343
+ style: _object_spread$c({
3344
+ position: 'relative',
3345
+ height: height,
3346
+ width: width,
3347
+ margin: margin
3348
+ }, style)
3349
+ }, children, /*#__PURE__*/ React__default.createElement("div", {
3350
+ style: {
3351
+ position: 'absolute',
3352
+ top: top,
3353
+ right: right,
3354
+ bottom: bottom,
3355
+ left: left
3356
+ }
3357
+ }, positionedElement ? positionedElement : null));
3358
+ }
3359
+
3360
+ function _array_like_to_array$c(arr, len) {
3361
+ if (len == null || len > arr.length) len = arr.length;
3362
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3363
+ return arr2;
3364
+ }
3365
+ function _array_with_holes$c(arr) {
3366
+ if (Array.isArray(arr)) return arr;
3367
+ }
3368
+ function _iterable_to_array_limit$c(arr, i) {
3369
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3370
+ if (_i == null) return;
3371
+ var _arr = [];
3372
+ var _n = true;
3373
+ var _d = false;
3374
+ var _s, _e;
3375
+ try {
3376
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
3377
+ _arr.push(_s.value);
3378
+ if (i && _arr.length === i) break;
3379
+ }
3380
+ } catch (err) {
3381
+ _d = true;
3382
+ _e = err;
3383
+ } finally{
3384
+ try {
3385
+ if (!_n && _i["return"] != null) _i["return"]();
3386
+ } finally{
3387
+ if (_d) throw _e;
3388
+ }
3389
+ }
3390
+ return _arr;
3391
+ }
3392
+ function _non_iterable_rest$c() {
3393
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3394
+ }
3395
+ function _sliced_to_array$c(arr, i) {
3396
+ return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c();
3397
+ }
3398
+ function _unsupported_iterable_to_array$c(o, minLen) {
3399
+ if (!o) return;
3400
+ if (typeof o === "string") return _array_like_to_array$c(o, minLen);
3401
+ var n = Object.prototype.toString.call(o).slice(8, -1);
3402
+ if (n === "Object" && o.constructor) n = o.constructor.name;
3403
+ if (n === "Map" || n === "Set") return Array.from(n);
3404
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
3405
+ }
3406
+ // 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
3407
+ // ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
3408
+ var DataSource = /*#__PURE__*/ function(DataSource) {
3409
+ DataSource["sliderAttachment"] = "sliderAttachment";
3410
+ DataSource["buttonAttachment"] = "buttonAttachment";
3411
+ DataSource["event"] = "event";
3412
+ return DataSource;
3413
+ }({});
3414
+ var useIndicator = function(param) {
3415
+ var id = param.id, _param_dataSource = param.dataSource, dataSource = _param_dataSource === void 0 ? "buttonAttachment" : _param_dataSource;
3416
+ var isLocalhost = window.location.hostname === 'localhost';
3417
+ // This value should be a range from 0 to 1
3418
+ var _useState = _sliced_to_array$c(useState(0), 2), brightness = _useState[0], setBrightness = _useState[1];
3419
+ var updateState = function() {
3420
+ if (!isLocalhost && dataSource === "buttonAttachment") {
3421
+ var _Juce_getToggleState;
3422
+ var toggleState = (_Juce_getToggleState = Juce.getToggleState(id)) === null || _Juce_getToggleState === void 0 ? void 0 : _Juce_getToggleState.value;
3423
+ setBrightness(toggleState);
3424
+ } else if (!isLocalhost && dataSource === "sliderAttachment") {
3425
+ var sliderState = Juce.getSliderState(id);
3426
+ setBrightness(sliderState === null || sliderState === void 0 ? void 0 : sliderState.normalisedValue);
3427
+ }
3428
+ };
3429
+ // Set the initial state
3430
+ useEffect(function() {
3431
+ updateState();
3432
+ }, []);
3433
+ // Update the local state when the ID changes
3434
+ useEffect(function() {
3435
+ updateState();
3436
+ }, [
3437
+ id
3438
+ ]);
3439
+ // Sets up listeners to handle changes on the backend
3440
+ useEffect(function() {
3441
+ if (!isLocalhost && dataSource === "buttonAttachment") {
3442
+ var _toggleState_valueChangedEvent;
3443
+ var toggleState = Juce.getToggleState(id);
3444
+ var valueListenerId = toggleState === null || toggleState === void 0 ? void 0 : (_toggleState_valueChangedEvent = toggleState.valueChangedEvent) === null || _toggleState_valueChangedEvent === void 0 ? void 0 : _toggleState_valueChangedEvent.addListener(function() {
3445
+ setBrightness(toggleState);
3446
+ });
3447
+ return function cleanup() {
3448
+ var _toggleState_valueChangedEvent;
3449
+ toggleState === null || toggleState === void 0 ? void 0 : (_toggleState_valueChangedEvent = toggleState.valueChangedEvent) === null || _toggleState_valueChangedEvent === void 0 ? void 0 : _toggleState_valueChangedEvent.removeListener(valueListenerId);
3450
+ };
3451
+ } else if (!isLocalhost && dataSource === "sliderAttachment") {
3452
+ var _sliderState_valueChangedEvent;
3453
+ var sliderState = Juce.getSliderState(id);
3454
+ var valueListenerId1 = sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_valueChangedEvent = sliderState.valueChangedEvent) === null || _sliderState_valueChangedEvent === void 0 ? void 0 : _sliderState_valueChangedEvent.addListener(function() {
3455
+ setBrightness(sliderState);
3456
+ });
3457
+ return function cleanup() {
3458
+ var _sliderState_valueChangedEvent;
3459
+ sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_valueChangedEvent = sliderState.valueChangedEvent) === null || _sliderState_valueChangedEvent === void 0 ? void 0 : _sliderState_valueChangedEvent.removeListener(valueListenerId1);
3460
+ };
3461
+ } else if (!isLocalhost && dataSource === "event") {
3462
+ var getLFOOutdata = id && //@ts-expect-error
3463
+ window.__JUCE__.backend.addEventListener("".concat(id), function(event) {
3464
+ setBrightness(event);
3465
+ });
3466
+ return function cleanup() {
3467
+ //@ts-expect-error
3468
+ window.__JUCE__.backend.removeEventListener(getLFOOutdata);
3469
+ };
3470
+ } else {
3471
+ return;
3472
+ }
3473
+ });
3474
+ return {
3475
+ dataSource: dataSource,
3476
+ brightness: brightness
3477
+ };
3478
+ };
3479
+
3480
+ function _define_property$b(obj, key, value) {
3481
+ if (key in obj) {
3482
+ Object.defineProperty(obj, key, {
3483
+ value: value,
3484
+ enumerable: true,
3485
+ configurable: true,
3486
+ writable: true
3487
+ });
3488
+ } else {
3489
+ obj[key] = value;
3490
+ }
3491
+ return obj;
3492
+ }
3493
+ function _object_spread$b(target) {
3494
+ for(var i = 1; i < arguments.length; i++){
3495
+ var source = arguments[i] != null ? arguments[i] : {};
3496
+ var ownKeys = Object.keys(source);
3497
+ if (typeof Object.getOwnPropertySymbols === "function") {
3498
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3499
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3500
+ }));
3501
+ }
3502
+ ownKeys.forEach(function(key) {
3503
+ _define_property$b(target, key, source[key]);
3504
+ });
3505
+ }
3506
+ return target;
3507
+ }
3508
+ function IndicatorLight(param) {
3509
+ var id = param.id, className = param.className, label = param.label, dataSource = param.dataSource, _param_activeColor = param.activeColor, activeColor = _param_activeColor === void 0 ? 'var(--color-brand)' : _param_activeColor, _param_inactiveColor = param.inactiveColor, inactiveColor = _param_inactiveColor === void 0 ? 'var(--bg-lv1)' : _param_inactiveColor, _param_shape = param.shape, shape = _param_shape === void 0 ? "round" : _param_shape, style = param.style;
3510
+ var brightness = useIndicator({
3511
+ id: id,
3512
+ dataSource: dataSource
3513
+ }).brightness;
3514
+ return /*#__PURE__*/ React__default.createElement(Box, {
3515
+ flexDirection: Box.flexDirection.column,
3516
+ gap: Box.gap.small,
3517
+ alignItems: Box.alignItems.center,
3518
+ width: "auto"
3519
+ }, /*#__PURE__*/ React__default.createElement("div", {
3520
+ style: _object_spread$b({
3521
+ position: 'relative',
3522
+ width: '12px',
3523
+ height: '12px',
3524
+ borderRadius: shape === "round" ? '100%' : 'initial',
3525
+ overflow: 'hidden'
3526
+ }, style)
3527
+ }, /*#__PURE__*/ React__default.createElement("div", {
3528
+ className: classnames('IndicatorLight-bg', 'bg-panel', className),
3529
+ style: {
3530
+ width: '12px',
3531
+ height: '12px',
3532
+ position: 'absolute',
3533
+ top: 0,
3534
+ right: 0,
3535
+ bottom: 0,
3536
+ left: 0,
3537
+ background: inactiveColor
3538
+ }
3539
+ }), /*#__PURE__*/ React__default.createElement("div", {
3540
+ className: classnames('IndicatorLight', 'bg-panel', className),
3541
+ style: {
3542
+ opacity: brightness,
3543
+ // transition: `opacity 500ms ease-in`,
3544
+ background: activeColor,
3545
+ position: 'absolute',
3546
+ width: '12px',
3547
+ height: '12px',
3548
+ top: 0,
3549
+ right: 0,
3550
+ bottom: 0,
3551
+ left: 0
3552
+ }
3553
+ })), label ? /*#__PURE__*/ React__default.createElement(Label, {
3554
+ value: label
3555
+ }) : null);
3556
+ }
3557
+ IndicatorLight.dataSource = DataSource;
3558
+
3307
3559
  // Rotary Slider UI component.
3308
3560
  // Connects to Juce's Slider element
3309
3561
  function RotarySlider(param) {
3310
3562
  var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, onChange = param.onChange, trackWidth = param.trackWidth, // trackOffset,
3311
- indicatorLineColor = param.indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, markerShape = param.markerShape, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
3563
+ indicatorId = param.indicatorId, indicatorLineColor = param.indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, width = param.width, markerShape = param.markerShape, _param_mockInitialNormalisedValue = param.mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, _param_isRandomizable = param.isRandomizable, isRandomizable = _param_isRandomizable === void 0 ? false : _param_isRandomizable, _param_mockProperties = param.mockProperties, mockProperties = _param_mockProperties === void 0 ? {
3312
3564
  start: 20.0,
3313
3565
  end: 15000.0,
3314
3566
  interval: 0.1,
3315
3567
  skew: 0.7
3316
3568
  } : _param_mockProperties; param.style;
3317
- var _rotarySliderSizeMap_size;
3569
+ var _rotarySliderSizeMap_size, _rotarySliderSizeMap_size1, _rotarySliderSizeMap_size2;
3318
3570
  var _useSlider = useSlider({
3319
3571
  id: id,
3320
3572
  label: label,
@@ -3324,7 +3576,8 @@ function RotarySlider(param) {
3324
3576
  isRandomizable: isRandomizable
3325
3577
  }), bindDrag = _useSlider.bindDrag, normalisedValue = _useSlider.normalisedValue, scaledValue = _useSlider.scaledValue, setToDefaultState = _useSlider.setToDefaultState, setNormalisedState = _useSlider.setNormalisedState, properties = _useSlider.properties;
3326
3578
  return /*#__PURE__*/ React__default.createElement(ControlGroup, {
3327
- id: id
3579
+ id: id,
3580
+ width: width
3328
3581
  }, /*#__PURE__*/ React__default.createElement(Box, {
3329
3582
  className: "RotarySlider-wrapper",
3330
3583
  flexDirection: Box.flexDirection.column,
@@ -3334,12 +3587,21 @@ function RotarySlider(param) {
3334
3587
  padding: [
3335
3588
  Label.padding.none,
3336
3589
  Label.padding.none,
3337
- Label.padding.mediumSmall,
3590
+ Label.padding.small,
3338
3591
  Label.padding.none
3339
3592
  ],
3340
3593
  fontSize: Label.fontSize.xSmall,
3341
3594
  value: label
3342
- }) : null, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
3595
+ }) : null, /*#__PURE__*/ React__default.createElement(PositioningWrapper, {
3596
+ top: '25%',
3597
+ left: '-16px',
3598
+ width: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size === void 0 ? void 0 : _rotarySliderSizeMap_size.width, "px"),
3599
+ height: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size1 = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size1 === void 0 ? void 0 : _rotarySliderSizeMap_size1.height, "px"),
3600
+ positionedElement: indicatorId ? /*#__PURE__*/ React__default.createElement(IndicatorLight, {
3601
+ id: indicatorId,
3602
+ dataSource: IndicatorLight.dataSource.event
3603
+ }) : null
3604
+ }, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
3343
3605
  polarity: polarity,
3344
3606
  className: className,
3345
3607
  id: id,
@@ -3356,7 +3618,7 @@ function RotarySlider(param) {
3356
3618
  trackStrokeColor: trackStrokeColor,
3357
3619
  knobStrokeColor: knobStrokeColor,
3358
3620
  knobFillColor: knobFillColor
3359
- }), /*#__PURE__*/ React__default.createElement(Input, {
3621
+ })), /*#__PURE__*/ React__default.createElement(Input, {
3360
3622
  className: "ProgressCircle-value",
3361
3623
  value: scaledValue,
3362
3624
  id: id,
@@ -3366,7 +3628,7 @@ function RotarySlider(param) {
3366
3628
  style: {
3367
3629
  fontWeight: 'bold',
3368
3630
  width: '100%',
3369
- maxWidth: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size === void 0 ? void 0 : _rotarySliderSizeMap_size.width, "px")
3631
+ maxWidth: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size2 = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size2 === void 0 ? void 0 : _rotarySliderSizeMap_size2.width, "px")
3370
3632
  },
3371
3633
  onComplete: function(value) {
3372
3634
  var normalisedVal = properties && scaledToNormalised({
@@ -3386,7 +3648,7 @@ RotarySlider.markerShape = RotarySliderMarkerShapes;
3386
3648
  var css_248z$6 = ".BarSlider {\n --maxNarrowTrackIndicatorWidth: 6px;\n --maxNarrowTrackWidth: 20px;\n --minHorizontalWidth: 75px;\n --minVerticalHeight: 75px;\n --narrowTrackMargin: 8px;\n --narrowTrackBorderRadius: 20px;\n}\n\n.BarSlider:hover {\n cursor: pointer;\n}\n\n.BarSlider-Track {\n touch-action: none;\n position: relative;\n width: 100%;\n height: 100%;\n max-height: 100%;\n max-width: 100%;\n background-color: var(--bg-lv5);\n}\n\n.BarSlider-Track.isHighlighted {\n background-color: var(--bg-lv6);\n}\n.Barslider-IndicatorLineWrapper,\n.BarSlider-MarkerWrapper {\n width: 100%;\n height: 100%;\n position: absolute;\n pointer-events: none;\n}\n\n.BarSlider-IndicatorLine {\n position: absolute;\n top: 0;\n /* left: 0; */\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n\n.BarSlider-Marker {\n position: absolute;\n pointer-events: none;\n}\n\n/* Narrow variant */\n.BarSlider--narrowTrack .BarSlider-Track {\n border-radius: var(--narrowTrackBorderRadius);\n background-color: var(--bg-lv3);\n box-shadow: inset 0px 2px 6px rgba(0, 0, 0, 0.25);\n}\n\n/* .BarSlider--narrowTrack .BarSlider-IndicatorLine {\n border-radius: var(--narrowTrackBorderRadius);\n} */\n\n.BarSlider--narrowTrack .BarSlider-Marker {\n border-radius: var(--narrowTrackBorderRadius);\n}\n\n.BarSlider--narrowTrack .Barslider-IndicatorLineWrapper {\n border-radius: var(--narrowTrackBorderRadius);\n overflow: hidden;\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-MarkerWrapper {\n bottom: var(--maxNarrowTrackIndicatorWidth);\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n width: var(--maxNarrowTrackIndicatorWidth);\n height: calc(100% - (var(--narrowTrackMargin) * 2));\n margin-left: var(--narrowTrackMargin);\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .Barslider-IndicatorLineWrapper,\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-MarkerWrapper {\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n left: var(--maxNarrowTrackIndicatorWidth);\n height: var(--maxNarrowTrackIndicatorWidth);\n width: calc(100% - (var(--narrowTrackMargin) * 2));\n margin-bottom: var(--narrowTrackMargin);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-Track {\n height: 100%;\n max-height: 100%;\n width: var(--maxNarrowTrackWidth);\n min-height: var(--minVerticalHeight);\n max-width: var(--maxNarrowTrackWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-Track {\n width: 100%;\n max-width: 100%;\n height: var(--maxNarrowTrackWidth);\n max-height: var(--maxNarrowTrackWidth);\n min-width: var(--minHorizontalWidth);\n}\n\n.BarSlider--narrowTrack.BarSlider--isVertical .BarSlider-IndicatorLine {\n max-width: var(--maxNarrowTrackIndicatorWidth);\n max-height: 100%;\n left: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n}\n\n.BarSlider--narrowTrack.BarSlider--isHorizontal .BarSlider-IndicatorLine {\n width: 100%;\n max-width: 100%;\n max-height: var(--maxNarrowTrackIndicatorWidth);\n top: calc(50% - (var(--maxNarrowTrackIndicatorWidth) / 2));\n /* left: var(--narrowTrackMargin);\n right: calc(100% - var(--narrowTrackMargin)); */\n}\n/* Wide variant */\n\n.BarSlider--wideTrack .BarSlider-Track {\n border-radius: 2px;\n}\n\n.BarSlider--wideTrack.BarSlider--isVertical .BarSlider-Track {\n min-height: var(--minVerticalHeight);\n}\n\n.BarSlider-Input {\n font-weight: bold;\n width: 100%;\n}\n.BarSlider-Input.includeValueInHeightIsTrue {\n}\n\n.BarSlider-Input.includeValueInHeightIsFalse {\n position: absolute;\n bottom: -1.7em;\n left: 0;\n right: 0;\n z-index: 10;\n}\n";
3387
3649
  styleInject(css_248z$6);
3388
3650
 
3389
- function _define_property$c(obj, key, value) {
3651
+ function _define_property$a(obj, key, value) {
3390
3652
  if (key in obj) {
3391
3653
  Object.defineProperty(obj, key, {
3392
3654
  value: value,
@@ -3399,7 +3661,7 @@ function _define_property$c(obj, key, value) {
3399
3661
  }
3400
3662
  return obj;
3401
3663
  }
3402
- function _object_spread$c(target) {
3664
+ function _object_spread$a(target) {
3403
3665
  for(var i = 1; i < arguments.length; i++){
3404
3666
  var source = arguments[i] != null ? arguments[i] : {};
3405
3667
  var ownKeys = Object.keys(source);
@@ -3409,7 +3671,7 @@ function _object_spread$c(target) {
3409
3671
  }));
3410
3672
  }
3411
3673
  ownKeys.forEach(function(key) {
3412
- _define_property$c(target, key, source[key]);
3674
+ _define_property$a(target, key, source[key]);
3413
3675
  });
3414
3676
  }
3415
3677
  return target;
@@ -3458,7 +3720,7 @@ function Slider$1(param) {
3458
3720
  var multiColorGradient = "linear-gradient(".concat(isHorizontal ? 'to right' : 'to top', ", var(--color-brand) 0%, var(--color-brand-secondary) 100%");
3459
3721
  var singleColorGradient = "linear-gradient(".concat(isHorizontal ? 'to right' : 'to top', ", var(--color-brand-700) 0%, var(--color-brand) 100%");
3460
3722
  var _obj;
3461
- var selectedGradientMap = (_obj = {}, _define_property$c(_obj, GradientStyles.multicolor, multiColorGradient), _define_property$c(_obj, GradientStyles.unicolor, singleColorGradient), _obj);
3723
+ var selectedGradientMap = (_obj = {}, _define_property$a(_obj, GradientStyles.multicolor, multiColorGradient), _define_property$a(_obj, GradientStyles.unicolor, singleColorGradient), _obj);
3462
3724
  var _useSlider = useSlider({
3463
3725
  id: id,
3464
3726
  label: label,
@@ -3501,12 +3763,12 @@ function Slider$1(param) {
3501
3763
  Box.padding.none
3502
3764
  ],
3503
3765
  height: "100%"
3504
- }, /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$c({
3766
+ }, /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$a({
3505
3767
  className: classnames('BarSlider-Track', isHighlighted && 'isHighlighted')
3506
3768
  }, drag()), {
3507
3769
  // onMouseEnter={onMouseEnter}
3508
3770
  id: id,
3509
- style: _object_spread$c({
3771
+ style: _object_spread$a({
3510
3772
  background: trackColor,
3511
3773
  stroke: trackStrokeColor ? "1px solid ".concat(trackStrokeColor) : 'none'
3512
3774
  }, style)
@@ -3516,7 +3778,7 @@ function Slider$1(param) {
3516
3778
  // TODO: Why aren't the Tailwind classes working?
3517
3779
  // className={classnames('h-full', 'w-full', 'absolute', 'bg-panel')}
3518
3780
  className: "BarSlider-IndicatorLine",
3519
- style: _object_spread$c({
3781
+ style: _object_spread$a({
3520
3782
  background: indicatorLineGradient ? selectedGradientMap[indicatorLineGradient] : indicatorLineColor,
3521
3783
  opacity: isStandalone || isHighlighted ? '100%' : '80%',
3522
3784
  top: "".concat(isHorizontal && isNarrowTrack && 'calc(50% - 3px)'),
@@ -3561,15 +3823,15 @@ Slider$1.sliderType = SliderType;
3561
3823
  Slider$1.polarity = Polarity;
3562
3824
  Slider$1.orientation = Orientation;
3563
3825
 
3564
- function _array_like_to_array$c(arr, len) {
3826
+ function _array_like_to_array$b(arr, len) {
3565
3827
  if (len == null || len > arr.length) len = arr.length;
3566
3828
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3567
3829
  return arr2;
3568
3830
  }
3569
- function _array_with_holes$c(arr) {
3831
+ function _array_with_holes$b(arr) {
3570
3832
  if (Array.isArray(arr)) return arr;
3571
3833
  }
3572
- function _iterable_to_array_limit$c(arr, i) {
3834
+ function _iterable_to_array_limit$b(arr, i) {
3573
3835
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3574
3836
  if (_i == null) return;
3575
3837
  var _arr = [];
@@ -3593,26 +3855,26 @@ function _iterable_to_array_limit$c(arr, i) {
3593
3855
  }
3594
3856
  return _arr;
3595
3857
  }
3596
- function _non_iterable_rest$c() {
3858
+ function _non_iterable_rest$b() {
3597
3859
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3598
3860
  }
3599
- function _sliced_to_array$c(arr, i) {
3600
- return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c();
3861
+ function _sliced_to_array$b(arr, i) {
3862
+ return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$b();
3601
3863
  }
3602
- function _unsupported_iterable_to_array$c(o, minLen) {
3864
+ function _unsupported_iterable_to_array$b(o, minLen) {
3603
3865
  if (!o) return;
3604
- if (typeof o === "string") return _array_like_to_array$c(o, minLen);
3866
+ if (typeof o === "string") return _array_like_to_array$b(o, minLen);
3605
3867
  var n = Object.prototype.toString.call(o).slice(8, -1);
3606
3868
  if (n === "Object" && o.constructor) n = o.constructor.name;
3607
3869
  if (n === "Map" || n === "Set") return Array.from(n);
3608
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
3870
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
3609
3871
  }
3610
3872
  var useCombobox = function(param) {
3611
3873
  var id = param.id, label = param.label, filter = param.filter; param.onChange; var _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader, isDisabled = param.isDisabled;
3612
3874
  var _Object_values;
3613
3875
  var comboBoxState = Juce.getComboBoxState(id);
3614
- var _useState = _sliced_to_array$c(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
3615
- var _useState1 = _sliced_to_array$c(useState(0), 2), index = _useState1[0], setIndex = _useState1[1];
3876
+ var _useState = _sliced_to_array$b(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
3877
+ var _useState1 = _sliced_to_array$b(useState(0), 2), index = _useState1[0], setIndex = _useState1[1];
3616
3878
  var prevIndex = useRef(null);
3617
3879
  var nextIndex = useRef(null);
3618
3880
  var prevDragDirection = useRef(null);
@@ -3700,359 +3962,119 @@ var useCombobox = function(param) {
3700
3962
  paramId: id
3701
3963
  });
3702
3964
  }
3703
- var directionY;
3704
- if (direction[1] * -1 === 1 && directionY !== prevDragDirection.current) {
3705
- directionY = 1;
3706
- } else if (direction[1] * -1 === -1 && directionY !== prevDragDirection.current) {
3707
- directionY = -1;
3708
- }
3709
- if (index < (properties === null || properties === void 0 ? void 0 : properties.choices.length) && directionY && directionY === 1) {
3710
- incrementIndex();
3711
- } else if (index > 0 && directionY && directionY === -1) {
3712
- decrementIndex();
3713
- }
3714
- // console.log(nextIndex.current, 'nextIndexnextIndexnextIndex');
3715
- if (nextIndex.current !== null && nextIndex.current !== undefined && nextIndex.current !== index.current) {
3716
- comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.setChoiceIndex(nextIndex.current);
3717
- }
3718
- }
3719
- }, {
3720
- enabled: !isDisabled
3721
- });
3722
- var onMouseEnter = function() {
3723
- if (displayValInHeader) {
3724
- highlightedItemChanged({
3725
- label: label,
3726
- value: automatableParamLabels === null || automatableParamLabels === void 0 ? void 0 : automatableParamLabels[index]
3727
- });
3728
- }
3729
- };
3730
- var onClick = function() {
3731
- setModSlotRowTargetAsPreview({
3732
- paramId: id
3733
- });
3734
- };
3735
- var onDoubleClick = function() {
3736
- setModSlotRowTargetAsPreview({
3737
- paramId: id
3738
- });
3739
- };
3740
- return {
3741
- index: index,
3742
- valueString: automatableParamLabels === null || automatableParamLabels === void 0 ? void 0 : automatableParamLabels[index],
3743
- setIndex: setIndex,
3744
- choices: properties === null || properties === void 0 ? void 0 : properties.choices,
3745
- filteredChoices: filteredChoices,
3746
- onMouseEnter: onMouseEnter,
3747
- onClick: onClick,
3748
- onDoubleClick: onDoubleClick,
3749
- bindDrag: bindDrag
3750
- };
3751
- };
3752
-
3753
- // Rotary Slider UI component.
3754
- // Connects to Juce's Slider element
3755
- function RotaryCombobox(param) {
3756
- var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, trackWidth = param.trackWidth, // trackOffset,
3757
- indicatorLineColor = param.indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, markerShape = param.markerShape;
3758
- var _useCombobox = useCombobox({
3759
- id: id
3760
- }), index = _useCombobox.index, choices = _useCombobox.choices, valueString = _useCombobox.valueString, onDoubleClick = _useCombobox.onDoubleClick, bindDrag = _useCombobox.bindDrag;
3761
- return /*#__PURE__*/ React__default.createElement(ControlGroup, {
3762
- id: id
3763
- }, /*#__PURE__*/ React__default.createElement(Box, {
3764
- className: "RotarySlider-wrapper",
3765
- flexDirection: Box.flexDirection.column,
3766
- gap: Box.gap.none,
3767
- flex: "0 1 auto"
3768
- }, label ? /*#__PURE__*/ React__default.createElement(Label, {
3769
- padding: [
3770
- Label.padding.none,
3771
- Label.padding.none,
3772
- Label.padding.small,
3773
- Label.padding.none
3774
- ],
3775
- fontSize: Label.fontSize.xSmall,
3776
- value: label
3777
- }) : null, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
3778
- polarity: polarity,
3779
- className: className,
3780
- id: id,
3781
- markerShape: markerShape,
3782
- trackWidth: trackWidth,
3783
- // trackOffset={trackOffset}
3784
- sliderValue: scaledToNormalised({
3785
- scaledValue: index,
3786
- start: 0,
3787
- end: choices.length - 1
3788
- }),
3789
- bindDrag: bindDrag,
3790
- onDoubleClick: onDoubleClick,
3791
- size: size,
3792
- indicatorLineColor: indicatorLineColor,
3793
- indicatorLineGradient: indicatorLineGradient,
3794
- trackColor: trackColor,
3795
- trackStrokeColor: trackStrokeColor,
3796
- knobStrokeColor: knobStrokeColor,
3797
- knobFillColor: knobFillColor
3798
- }), /*#__PURE__*/ React__default.createElement(Label, {
3799
- fontSize: Label.fontSize.xSmall
3800
- }, valueString)));
3801
- }
3802
- RotaryCombobox.polarity = Polarity;
3803
- RotaryCombobox.size = RotarySliderSizes;
3804
- RotaryCombobox.markerShape = RotarySliderMarkerShapes;
3805
-
3806
- function _define_property$b(obj, key, value) {
3807
- if (key in obj) {
3808
- Object.defineProperty(obj, key, {
3809
- value: value,
3810
- enumerable: true,
3811
- configurable: true,
3812
- writable: true
3813
- });
3814
- } else {
3815
- obj[key] = value;
3816
- }
3817
- return obj;
3818
- }
3819
- function _object_spread$b(target) {
3820
- for(var i = 1; i < arguments.length; i++){
3821
- var source = arguments[i] != null ? arguments[i] : {};
3822
- var ownKeys = Object.keys(source);
3823
- if (typeof Object.getOwnPropertySymbols === "function") {
3824
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3825
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3826
- }));
3827
- }
3828
- ownKeys.forEach(function(key) {
3829
- _define_property$b(target, key, source[key]);
3830
- });
3831
- }
3832
- return target;
3833
- }
3834
- // Rotary Slider UI component.
3835
- // Connects to Juce's Slider element
3836
- function PositioningWrapper(param) {
3837
- var positionedElement = param.positionedElement, _param_top = param.top, top = _param_top === void 0 ? '0px' : _param_top, right = param.right, bottom = param.bottom, _param_left = param.left, left = _param_left === void 0 ? '0px' : _param_left, _param_margin = param.margin, margin = _param_margin === void 0 ? 0 : _param_margin, _param_height = param.height, height = _param_height === void 0 ? '100%' : _param_height, _param_width = param.width, width = _param_width === void 0 ? '100%' : _param_width, id = param.id, className = param.className, style = param.style, children = param.children;
3838
- return /*#__PURE__*/ React__default.createElement("div", {
3839
- id: id,
3840
- className: className,
3841
- style: _object_spread$b({
3842
- position: 'relative',
3843
- height: height,
3844
- width: width,
3845
- margin: margin
3846
- }, style)
3847
- }, children, /*#__PURE__*/ React__default.createElement("div", {
3848
- style: {
3849
- position: 'absolute',
3850
- top: top,
3851
- right: right,
3852
- bottom: bottom,
3853
- left: left
3854
- }
3855
- }, positionedElement ? positionedElement : null));
3856
- }
3857
-
3858
- function _array_like_to_array$b(arr, len) {
3859
- if (len == null || len > arr.length) len = arr.length;
3860
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3861
- return arr2;
3862
- }
3863
- function _array_with_holes$b(arr) {
3864
- if (Array.isArray(arr)) return arr;
3865
- }
3866
- function _iterable_to_array_limit$b(arr, i) {
3867
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3868
- if (_i == null) return;
3869
- var _arr = [];
3870
- var _n = true;
3871
- var _d = false;
3872
- var _s, _e;
3873
- try {
3874
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
3875
- _arr.push(_s.value);
3876
- if (i && _arr.length === i) break;
3877
- }
3878
- } catch (err) {
3879
- _d = true;
3880
- _e = err;
3881
- } finally{
3882
- try {
3883
- if (!_n && _i["return"] != null) _i["return"]();
3884
- } finally{
3885
- if (_d) throw _e;
3886
- }
3887
- }
3888
- return _arr;
3889
- }
3890
- function _non_iterable_rest$b() {
3891
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3892
- }
3893
- function _sliced_to_array$b(arr, i) {
3894
- return _array_with_holes$b(arr) || _iterable_to_array_limit$b(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$b();
3895
- }
3896
- function _unsupported_iterable_to_array$b(o, minLen) {
3897
- if (!o) return;
3898
- if (typeof o === "string") return _array_like_to_array$b(o, minLen);
3899
- var n = Object.prototype.toString.call(o).slice(8, -1);
3900
- if (n === "Object" && o.constructor) n = o.constructor.name;
3901
- if (n === "Map" || n === "Set") return Array.from(n);
3902
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
3903
- }
3904
- // 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
3905
- // ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
3906
- var DataSource = /*#__PURE__*/ function(DataSource) {
3907
- DataSource["sliderAttachment"] = "sliderAttachment";
3908
- DataSource["buttonAttachment"] = "buttonAttachment";
3909
- DataSource["event"] = "event";
3910
- return DataSource;
3911
- }({});
3912
- var useIndicator = function(param) {
3913
- var id = param.id, _param_dataSource = param.dataSource, dataSource = _param_dataSource === void 0 ? "buttonAttachment" : _param_dataSource;
3914
- var isLocalhost = window.location.hostname === 'localhost';
3915
- // This value should be a range from 0 to 1
3916
- var _useState = _sliced_to_array$b(useState(0), 2), brightness = _useState[0], setBrightness = _useState[1];
3917
- var updateState = function() {
3918
- if (!isLocalhost && dataSource === "buttonAttachment") {
3919
- var _Juce_getToggleState;
3920
- var toggleState = (_Juce_getToggleState = Juce.getToggleState(id)) === null || _Juce_getToggleState === void 0 ? void 0 : _Juce_getToggleState.value;
3921
- setBrightness(toggleState);
3922
- } else if (!isLocalhost && dataSource === "sliderAttachment") {
3923
- var sliderState = Juce.getSliderState(id);
3924
- setBrightness(sliderState === null || sliderState === void 0 ? void 0 : sliderState.normalisedValue);
3965
+ var directionY;
3966
+ if (direction[1] * -1 === 1 && directionY !== prevDragDirection.current) {
3967
+ directionY = 1;
3968
+ } else if (direction[1] * -1 === -1 && directionY !== prevDragDirection.current) {
3969
+ directionY = -1;
3970
+ }
3971
+ if (index < (properties === null || properties === void 0 ? void 0 : properties.choices.length) && directionY && directionY === 1) {
3972
+ incrementIndex();
3973
+ } else if (index > 0 && directionY && directionY === -1) {
3974
+ decrementIndex();
3975
+ }
3976
+ // console.log(nextIndex.current, 'nextIndexnextIndexnextIndex');
3977
+ if (nextIndex.current !== null && nextIndex.current !== undefined && nextIndex.current !== index.current) {
3978
+ comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.setChoiceIndex(nextIndex.current);
3979
+ }
3925
3980
  }
3926
- };
3927
- // Set the initial state
3928
- useEffect(function() {
3929
- updateState();
3930
- }, []);
3931
- // Update the local state when the ID changes
3932
- useEffect(function() {
3933
- updateState();
3934
- }, [
3935
- id
3936
- ]);
3937
- // Sets up listeners to handle changes on the backend
3938
- useEffect(function() {
3939
- if (!isLocalhost && dataSource === "buttonAttachment") {
3940
- var _toggleState_valueChangedEvent;
3941
- var toggleState = Juce.getToggleState(id);
3942
- var valueListenerId = toggleState === null || toggleState === void 0 ? void 0 : (_toggleState_valueChangedEvent = toggleState.valueChangedEvent) === null || _toggleState_valueChangedEvent === void 0 ? void 0 : _toggleState_valueChangedEvent.addListener(function() {
3943
- setBrightness(toggleState);
3944
- });
3945
- return function cleanup() {
3946
- var _toggleState_valueChangedEvent;
3947
- toggleState === null || toggleState === void 0 ? void 0 : (_toggleState_valueChangedEvent = toggleState.valueChangedEvent) === null || _toggleState_valueChangedEvent === void 0 ? void 0 : _toggleState_valueChangedEvent.removeListener(valueListenerId);
3948
- };
3949
- } else if (!isLocalhost && dataSource === "sliderAttachment") {
3950
- var _sliderState_valueChangedEvent;
3951
- var sliderState = Juce.getSliderState(id);
3952
- var valueListenerId1 = sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_valueChangedEvent = sliderState.valueChangedEvent) === null || _sliderState_valueChangedEvent === void 0 ? void 0 : _sliderState_valueChangedEvent.addListener(function() {
3953
- setBrightness(sliderState);
3954
- });
3955
- return function cleanup() {
3956
- var _sliderState_valueChangedEvent;
3957
- sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_valueChangedEvent = sliderState.valueChangedEvent) === null || _sliderState_valueChangedEvent === void 0 ? void 0 : _sliderState_valueChangedEvent.removeListener(valueListenerId1);
3958
- };
3959
- } else if (!isLocalhost && dataSource === "event") {
3960
- var getLFOOutdata = id && //@ts-expect-error
3961
- window.__JUCE__.backend.addEventListener("".concat(id), function(event) {
3962
- setBrightness(event);
3981
+ }, {
3982
+ enabled: !isDisabled
3983
+ });
3984
+ var onMouseEnter = function() {
3985
+ if (displayValInHeader) {
3986
+ highlightedItemChanged({
3987
+ label: label,
3988
+ value: automatableParamLabels === null || automatableParamLabels === void 0 ? void 0 : automatableParamLabels[index]
3963
3989
  });
3964
- return function cleanup() {
3965
- //@ts-expect-error
3966
- window.__JUCE__.backend.removeEventListener(getLFOOutdata);
3967
- };
3968
- } else {
3969
- return;
3970
3990
  }
3971
- });
3991
+ };
3992
+ var onClick = function() {
3993
+ setModSlotRowTargetAsPreview({
3994
+ paramId: id
3995
+ });
3996
+ };
3997
+ var onDoubleClick = function() {
3998
+ setModSlotRowTargetAsPreview({
3999
+ paramId: id
4000
+ });
4001
+ };
3972
4002
  return {
3973
- dataSource: dataSource,
3974
- brightness: brightness
4003
+ index: index,
4004
+ valueString: automatableParamLabels === null || automatableParamLabels === void 0 ? void 0 : automatableParamLabels[index],
4005
+ setIndex: setIndex,
4006
+ choices: properties === null || properties === void 0 ? void 0 : properties.choices,
4007
+ filteredChoices: filteredChoices,
4008
+ onMouseEnter: onMouseEnter,
4009
+ onClick: onClick,
4010
+ onDoubleClick: onDoubleClick,
4011
+ bindDrag: bindDrag
3975
4012
  };
3976
4013
  };
3977
4014
 
3978
- function _define_property$a(obj, key, value) {
3979
- if (key in obj) {
3980
- Object.defineProperty(obj, key, {
3981
- value: value,
3982
- enumerable: true,
3983
- configurable: true,
3984
- writable: true
3985
- });
3986
- } else {
3987
- obj[key] = value;
3988
- }
3989
- return obj;
3990
- }
3991
- function _object_spread$a(target) {
3992
- for(var i = 1; i < arguments.length; i++){
3993
- var source = arguments[i] != null ? arguments[i] : {};
3994
- var ownKeys = Object.keys(source);
3995
- if (typeof Object.getOwnPropertySymbols === "function") {
3996
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3997
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3998
- }));
3999
- }
4000
- ownKeys.forEach(function(key) {
4001
- _define_property$a(target, key, source[key]);
4002
- });
4003
- }
4004
- return target;
4005
- }
4006
- function IndicatorLight(param) {
4007
- var id = param.id, className = param.className, label = param.label, dataSource = param.dataSource, _param_activeColor = param.activeColor, activeColor = _param_activeColor === void 0 ? 'var(--color-brand)' : _param_activeColor, _param_inactiveColor = param.inactiveColor, inactiveColor = _param_inactiveColor === void 0 ? 'var(--bg-lv1)' : _param_inactiveColor, _param_shape = param.shape, shape = _param_shape === void 0 ? "round" : _param_shape, style = param.style;
4008
- var brightness = useIndicator({
4015
+ // Rotary Slider UI component.
4016
+ // Connects to Juce's Slider element
4017
+ function RotaryCombobox(param) {
4018
+ var _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, className = param.className, id = param.id, indicatorId = param.indicatorId, trackWidth = param.trackWidth, width = param.width, // trackOffset,
4019
+ indicatorLineColor = param.indicatorLineColor, indicatorLineGradient = param.indicatorLineGradient, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, markerShape = param.markerShape;
4020
+ var _rotarySliderSizeMap_size, _rotarySliderSizeMap_size1;
4021
+ var _useCombobox = useCombobox({
4022
+ id: id
4023
+ }), index = _useCombobox.index, choices = _useCombobox.choices, valueString = _useCombobox.valueString, onDoubleClick = _useCombobox.onDoubleClick, bindDrag = _useCombobox.bindDrag;
4024
+ return /*#__PURE__*/ React__default.createElement(ControlGroup, {
4009
4025
  id: id,
4010
- dataSource: dataSource
4011
- }).brightness;
4012
- return /*#__PURE__*/ React__default.createElement(Box, {
4026
+ width: width
4027
+ }, /*#__PURE__*/ React__default.createElement(Box, {
4028
+ className: "RotarySlider-wrapper",
4013
4029
  flexDirection: Box.flexDirection.column,
4014
- gap: Box.gap.small,
4015
- alignItems: Box.alignItems.center,
4016
- width: "auto"
4017
- }, /*#__PURE__*/ React__default.createElement("div", {
4018
- style: _object_spread$a({
4019
- position: 'relative',
4020
- width: '12px',
4021
- height: '12px',
4022
- borderRadius: shape === "round" ? '100%' : 'initial',
4023
- overflow: 'hidden'
4024
- }, style)
4025
- }, /*#__PURE__*/ React__default.createElement("div", {
4026
- className: classnames('IndicatorLight-bg', 'bg-panel', className),
4027
- style: {
4028
- width: '12px',
4029
- height: '12px',
4030
- position: 'absolute',
4031
- top: 0,
4032
- right: 0,
4033
- bottom: 0,
4034
- left: 0,
4035
- background: inactiveColor
4036
- }
4037
- }), /*#__PURE__*/ React__default.createElement("div", {
4038
- className: classnames('IndicatorLight', 'bg-panel', className),
4039
- style: {
4040
- opacity: brightness,
4041
- // transition: `opacity 500ms ease-in`,
4042
- background: activeColor,
4043
- position: 'absolute',
4044
- width: '12px',
4045
- height: '12px',
4046
- top: 0,
4047
- right: 0,
4048
- bottom: 0,
4049
- left: 0
4050
- }
4051
- })), label ? /*#__PURE__*/ React__default.createElement(Label, {
4030
+ gap: Box.gap.none,
4031
+ flex: "0 1 auto"
4032
+ }, label ? /*#__PURE__*/ React__default.createElement(Label, {
4033
+ padding: [
4034
+ Label.padding.none,
4035
+ Label.padding.none,
4036
+ Label.padding.small,
4037
+ Label.padding.none
4038
+ ],
4039
+ fontSize: Label.fontSize.xSmall,
4052
4040
  value: label
4053
- }) : null);
4041
+ }) : null, /*#__PURE__*/ React__default.createElement(PositioningWrapper, {
4042
+ top: '25%',
4043
+ left: '-16px',
4044
+ width: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size === void 0 ? void 0 : _rotarySliderSizeMap_size.width, "px"),
4045
+ height: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size1 = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size1 === void 0 ? void 0 : _rotarySliderSizeMap_size1.height, "px"),
4046
+ positionedElement: indicatorId ? /*#__PURE__*/ React__default.createElement(IndicatorLight, {
4047
+ id: indicatorId,
4048
+ dataSource: IndicatorLight.dataSource.event
4049
+ }) : null
4050
+ }, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
4051
+ polarity: polarity,
4052
+ className: className,
4053
+ id: id,
4054
+ markerShape: markerShape,
4055
+ trackWidth: trackWidth,
4056
+ // trackOffset={trackOffset}
4057
+ sliderValue: scaledToNormalised({
4058
+ scaledValue: index,
4059
+ start: 0,
4060
+ end: choices.length - 1
4061
+ }),
4062
+ bindDrag: bindDrag,
4063
+ onDoubleClick: onDoubleClick,
4064
+ size: size,
4065
+ indicatorLineColor: indicatorLineColor,
4066
+ indicatorLineGradient: indicatorLineGradient,
4067
+ trackColor: trackColor,
4068
+ trackStrokeColor: trackStrokeColor,
4069
+ knobStrokeColor: knobStrokeColor,
4070
+ knobFillColor: knobFillColor
4071
+ })), /*#__PURE__*/ React__default.createElement(Label, {
4072
+ fontSize: Label.fontSize.xSmall
4073
+ }, valueString)));
4054
4074
  }
4055
- IndicatorLight.dataSource = DataSource;
4075
+ RotaryCombobox.polarity = Polarity;
4076
+ RotaryCombobox.size = RotarySliderSizes;
4077
+ RotaryCombobox.markerShape = RotarySliderMarkerShapes;
4056
4078
 
4057
4079
  // Rotary Slider UI component.
4058
4080
  // Connects to Juce's Slider element
@@ -4063,26 +4085,16 @@ var SliderVariants = /*#__PURE__*/ function(SliderVariants) {
4063
4085
  return SliderVariants;
4064
4086
  }({});
4065
4087
  function Slider(param) {
4066
- var _param_variant = param.variant, variant = _param_variant === void 0 ? "rotary" : _param_variant, _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, labelColor = param.labelColor, indicatorLineColor = param.indicatorLineColor, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, markerFillColor = param.markerFillColor, markerStrokeColor = param.markerStrokeColor, markerShape = param.markerShape, indicatorLineGradient = param.indicatorLineGradient, trackWidth = param.trackWidth, className = param.className, id = param.id, onChange = param.onChange, indicatorId = param.indicatorId, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, _param_mockInitialNormalisedValue = param.// trackOffset = 0,
4088
+ var _param_variant = param.variant, variant = _param_variant === void 0 ? "rotary" : _param_variant, _param_polarity = param.polarity, polarity = _param_polarity === void 0 ? Polarity.unipolar : _param_polarity, label = param.label, labelColor = param.labelColor, indicatorLineColor = param.indicatorLineColor, trackColor = param.trackColor, trackStrokeColor = param.trackStrokeColor, knobStrokeColor = param.knobStrokeColor, knobFillColor = param.knobFillColor, markerFillColor = param.markerFillColor, markerStrokeColor = param.markerStrokeColor, markerShape = param.markerShape, indicatorLineGradient = param.indicatorLineGradient, trackWidth = param.trackWidth, className = param.className, id = param.id, width = param.width, onChange = param.onChange, indicatorId = param.indicatorId, _param_size = param.size, size = _param_size === void 0 ? RotarySliderSizes.small : _param_size, _param_mockInitialNormalisedValue = param.// trackOffset = 0,
4067
4089
  mockInitialNormalisedValue, mockInitialNormalisedValue = _param_mockInitialNormalisedValue === void 0 ? 0 : _param_mockInitialNormalisedValue, barSliderVariant = param.barSliderVariant, showValue = param.showValue, includeValueInHeight = param.includeValueInHeight, isRandomizable = param.isRandomizable, rotationBehavior = param.rotationBehavior, orientation = param.orientation, dragOrientation = param.dragOrientation, isStandalone = param.isStandalone, isHighlighted = param.isHighlighted; param.mockProperties; param.style;
4068
- var totalWidth = "".concat(rotarySliderSizeMap[size].width + 35, "px");
4069
- var totalHeight = "calc(".concat(rotarySliderSizeMap[size].width, " + 1em + ").concat(label ? 1 : 0, "em)");
4070
- return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, variant === "rotary" ? /*#__PURE__*/ React__default.createElement(PositioningWrapper, {
4071
- top: '25%',
4072
- left: '-8px',
4073
- width: totalWidth,
4074
- height: totalHeight,
4075
- positionedElement: indicatorId ? /*#__PURE__*/ React__default.createElement(IndicatorLight, {
4076
- id: indicatorId,
4077
- dataSource: IndicatorLight.dataSource.event
4078
- }) : null
4079
- }, /*#__PURE__*/ React__default.createElement(RotarySlider, {
4090
+ return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, variant === "rotary" ? /*#__PURE__*/ React__default.createElement(RotarySlider, {
4080
4091
  polarity: polarity,
4081
4092
  label: label,
4082
4093
  labelColor: labelColor,
4083
4094
  trackWidth: trackWidth,
4084
4095
  indicatorLineColor: indicatorLineColor,
4085
4096
  indicatorLineGradient: indicatorLineGradient,
4097
+ width: width,
4086
4098
  // trackOffset={trackOffset}
4087
4099
  markerShape: markerShape,
4088
4100
  trackColor: trackColor,
@@ -4091,23 +4103,16 @@ function Slider(param) {
4091
4103
  knobFillColor: knobFillColor,
4092
4104
  className: className,
4093
4105
  id: id,
4106
+ indicatorId: indicatorId,
4094
4107
  onChange: onChange,
4095
4108
  size: size,
4096
4109
  mockInitialNormalisedValue: mockInitialNormalisedValue,
4097
4110
  isRandomizable: isRandomizable,
4098
4111
  rotationBehavior: rotationBehavior
4099
- })) : null, variant === "rotaryCombobox" ? /*#__PURE__*/ React__default.createElement(PositioningWrapper, {
4100
- top: '25%',
4101
- left: '-8px',
4102
- width: totalWidth,
4103
- height: totalHeight,
4104
- positionedElement: indicatorId ? /*#__PURE__*/ React__default.createElement(IndicatorLight, {
4105
- id: indicatorId,
4106
- dataSource: IndicatorLight.dataSource.event
4107
- }) : null
4108
- }, /*#__PURE__*/ React__default.createElement(RotaryCombobox, {
4112
+ }) : null, variant === "rotaryCombobox" ? /*#__PURE__*/ React__default.createElement(RotaryCombobox, {
4109
4113
  polarity: polarity,
4110
4114
  label: label,
4115
+ width: width,
4111
4116
  labelColor: labelColor,
4112
4117
  trackWidth: trackWidth,
4113
4118
  indicatorLineColor: indicatorLineColor,
@@ -4120,12 +4125,13 @@ function Slider(param) {
4120
4125
  knobFillColor: knobFillColor,
4121
4126
  className: className,
4122
4127
  id: id,
4128
+ indicatorId: indicatorId,
4123
4129
  onChange: onChange,
4124
4130
  size: size,
4125
4131
  mockInitialNormalisedValue: mockInitialNormalisedValue,
4126
4132
  isRandomizable: isRandomizable,
4127
4133
  rotationBehavior: rotationBehavior
4128
- })) : null, variant === "bar" ? /*#__PURE__*/ React__default.createElement(Slider$1, {
4134
+ }) : null, variant === "bar" ? /*#__PURE__*/ React__default.createElement(Slider$1, {
4129
4135
  polarity: polarity,
4130
4136
  label: label,
4131
4137
  indicatorLineColor: indicatorLineColor,
@@ -6887,20 +6893,21 @@ function LFOBox(param) {
6887
6893
  Box.padding.large,
6888
6894
  Box.padding.mediumLarge
6889
6895
  ],
6896
+ flex: "1 1 auto",
6890
6897
  fullHeight: true
6891
6898
  }, /*#__PURE__*/ React__default.createElement(Box, {
6892
6899
  flexDirection: Box.flexDirection.column,
6893
6900
  justifyContent: Box.justifyContent.flexStart,
6894
6901
  alignItems: Box.alignItems.flexStart,
6895
6902
  width: "130px",
6896
- flex: "0 0 130px",
6903
+ // flex="0 0 130px"
6897
6904
  // padding={[Box.padding.medium]}
6898
6905
  fullHeight: true
6899
6906
  }, /*#__PURE__*/ React__default.createElement(Heading, {
6900
6907
  padding: [
6901
6908
  Heading.padding.none,
6902
6909
  Heading.padding.none,
6903
- Heading.padding.large,
6910
+ Heading.padding.small,
6904
6911
  Heading.padding.none
6905
6912
  ],
6906
6913
  removeLineHeight: true,
@@ -6910,7 +6917,11 @@ function LFOBox(param) {
6910
6917
  flex: "1",
6911
6918
  gap: Box.gap.large,
6912
6919
  justifyContent: Box.justifyContent.flexStart
6913
- }, /*#__PURE__*/ React__default.createElement(Box, null, syncType === 0 ? /*#__PURE__*/ React__default.createElement(Slider, {
6920
+ }, /*#__PURE__*/ React__default.createElement(Box, {
6921
+ padding: [
6922
+ Box.padding.small
6923
+ ]
6924
+ }, syncType === 0 ? /*#__PURE__*/ React__default.createElement(Slider, {
6914
6925
  size: Slider.size.large,
6915
6926
  id: "LFO".concat(id, "_Hz"),
6916
6927
  label: "LFO".concat(id, " Hz"),
@@ -6941,8 +6952,7 @@ function LFOBox(param) {
6941
6952
  color: "var(--color-brand)",
6942
6953
  id: "LFO".concat(id, "_SyncType"),
6943
6954
  label: "LFO".concat(id, " Sync Type"),
6944
- onChange: handleSyncTypeChange,
6945
- width: "110px"
6955
+ onChange: handleSyncTypeChange
6946
6956
  }), syncType !== 0 && syncType !== 1 ? /*#__PURE__*/ React__default.createElement(Slider, {
6947
6957
  variant: Slider.variant.bar,
6948
6958
  polarity: Slider.polarity.bipolar,
@@ -7029,7 +7039,11 @@ function LFOTab() {
7029
7039
  return /*#__PURE__*/ React__default.createElement(Box, {
7030
7040
  className: "LFOTab",
7031
7041
  gap: Box.gap.medium,
7032
- height: "100%"
7042
+ fullHeight: true,
7043
+ alignItems: Box.alignItems.flexStart,
7044
+ padding: [
7045
+ Box.padding.medium
7046
+ ]
7033
7047
  }, /*#__PURE__*/ React__default.createElement(LFOBox, {
7034
7048
  id: 1
7035
7049
  }), /*#__PURE__*/ React__default.createElement(LFOBox, {
@@ -7236,10 +7250,11 @@ function SeqTab$1(param) {
7236
7250
  padding: [
7237
7251
  Box.padding.mediumLarge
7238
7252
  ],
7239
- height: "100%"
7253
+ fullHeight: true
7240
7254
  }, /*#__PURE__*/ React__default.createElement(Box, {
7241
7255
  gap: Box.gap.medium,
7242
- justifyContent: Box.justifyContent.flexStart
7256
+ justifyContent: Box.justifyContent.flexStart,
7257
+ fullHeight: true
7243
7258
  }, /*#__PURE__*/ React__default.createElement(Heading, {
7244
7259
  padding: [
7245
7260
  Heading.padding.none,
@@ -7254,10 +7269,12 @@ function SeqTab$1(param) {
7254
7269
  gap: Box.gap.medium,
7255
7270
  height: "100%"
7256
7271
  }, /*#__PURE__*/ React__default.createElement(Box, {
7257
- flex: "1 0 auto"
7272
+ flex: "0 0 170px",
7273
+ height: "170px"
7258
7274
  }, /*#__PURE__*/ React__default.createElement(StepSequencer, {
7259
7275
  seqId: seqId
7260
7276
  })), /*#__PURE__*/ React__default.createElement(Box, {
7277
+ height: "71px",
7261
7278
  gap: Box.gap.medium,
7262
7279
  padding: [
7263
7280
  Box.padding.none,
@@ -7293,10 +7310,12 @@ function SeqTab$1(param) {
7293
7310
  id: "seq".concat(seqId, "_syncRate"),
7294
7311
  label: "Seq".concat(seqId, " Sync Rate")
7295
7312
  }) : null, syncType === 3 ? /*#__PURE__*/ React__default.createElement(Slider, {
7313
+ width: "155px",
7296
7314
  id: "seq".concat(seqId, "_thirds"),
7297
7315
  indicatorLineGradient: Slider.gradientStyles.unicolor,
7298
7316
  label: "Seq".concat(seqId, " Thirds")
7299
7317
  }) : null, syncType === 4 ? /*#__PURE__*/ React__default.createElement(Slider, {
7318
+ width: "155px",
7300
7319
  indicatorLineGradient: Slider.gradientStyles.unicolor,
7301
7320
  id: "seq".concat(seqId, "_sixteenths"),
7302
7321
  label: "Seq".concat(seqId, " Sixteenths")
@@ -7314,7 +7333,11 @@ function SeqTab() {
7314
7333
  return /*#__PURE__*/ React__default.createElement(Box, {
7315
7334
  className: "SeqTab",
7316
7335
  gap: Box.gap.medium,
7317
- fullHeight: true
7336
+ fullHeight: true,
7337
+ alignItems: Box.alignItems.flexStart,
7338
+ padding: [
7339
+ Box.padding.medium
7340
+ ]
7318
7341
  }, /*#__PURE__*/ React__default.createElement(SeqTab$1, {
7319
7342
  seqId: 1
7320
7343
  }), /*#__PURE__*/ React__default.createElement(SeqTab$1, {
@@ -7613,12 +7636,13 @@ function ModuleFooter(param) {
7613
7636
  style: _object_spread({
7614
7637
  backgroundColor: 'var(--bg-lv3)'
7615
7638
  }, style),
7616
- flex: "1 1 auto"
7639
+ height: "342px"
7617
7640
  }, /*#__PURE__*/ React__default.createElement(Box, {
7618
7641
  flexDirection: Box.flexDirection.column,
7619
- height: "100%",
7642
+ fullHeight: true,
7620
7643
  justifyContent: Box.justifyContent.flexStart
7621
7644
  }, /*#__PURE__*/ React__default.createElement(Box, {
7645
+ height: "32px",
7622
7646
  // style={{ backgroundColor: 'var(--bg-lv4)' }}
7623
7647
  padding: [
7624
7648
  Box.padding.xSmall,
@@ -7643,13 +7667,12 @@ function ModuleFooter(param) {
7643
7667
  ],
7644
7668
  backgroundColor: "var(--bg-lv4)",
7645
7669
  selectedBackgroundColor: "var(--bg-lv3)",
7646
- width: "100%"
7670
+ width: "100%",
7671
+ height: "32px"
7647
7672
  })), /*#__PURE__*/ React__default.createElement(Box, {
7648
- padding: [
7649
- Box.padding.medium
7650
- ],
7651
7673
  alignItems: Box.alignItems.flexStart,
7652
- flex: "1 1 auto"
7674
+ height: "305px",
7675
+ width: "100%"
7653
7676
  }, selectedTab === Object.keys(FooterTabs).indexOf("ModMatrix") ? /*#__PURE__*/ React__default.createElement(ModMatrixTab, null) : '', selectedTab === Object.keys(FooterTabs).indexOf("InputMod") ? /*#__PURE__*/ React__default.createElement(InputModTab, null) : '', selectedTab === Object.keys(FooterTabs).indexOf("LFOs") ? /*#__PURE__*/ React__default.createElement(LFOTab, null) : '', selectedTab === Object.keys(FooterTabs).indexOf("Sequencer") ? /*#__PURE__*/ React__default.createElement(SequencerTab, null) : '', selectedTab === Object.keys(FooterTabs).indexOf("Settings") ? /*#__PURE__*/ React__default.createElement(SettingsTab, null) : '')));
7654
7677
  }
7655
7678