@antimatter-audio/antimatter-ui 14.0.7 → 14.0.9

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 (37) 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/Input/Input.d.ts +2 -1
  9. package/dist/core/Input/Input.d.ts.map +1 -1
  10. package/dist/core/PositioningWrapper/PositioningWrapper.d.ts +3 -1
  11. package/dist/core/PositioningWrapper/PositioningWrapper.d.ts.map +1 -1
  12. package/dist/core/Slider/RotaryCombobox.d.ts +3 -1
  13. package/dist/core/Slider/RotaryCombobox.d.ts.map +1 -1
  14. package/dist/core/Slider/RotarySlider.d.ts +3 -1
  15. package/dist/core/Slider/RotarySlider.d.ts.map +1 -1
  16. package/dist/core/Slider/Slider.d.ts +3 -1
  17. package/dist/core/Slider/Slider.d.ts.map +1 -1
  18. package/dist/index.js +441 -414
  19. package/dist/index.js.map +1 -1
  20. package/dist/src/advanced/ControlGroup/ControlGroup.d.ts +2 -1
  21. package/dist/src/advanced/ControlGroup/ControlGroup.d.ts.map +1 -1
  22. package/dist/src/advanced/ModuleFooter/LFOTab.d.ts.map +1 -1
  23. package/dist/src/advanced/ModuleFooter/ModuleFooter.d.ts.map +1 -1
  24. package/dist/src/advanced/ModuleFooter/SeqPanel.d.ts.map +1 -1
  25. package/dist/src/advanced/ModuleFooter/SeqTab.d.ts.map +1 -1
  26. package/dist/src/common/utils.d.ts +1 -0
  27. package/dist/src/common/utils.d.ts.map +1 -1
  28. package/dist/src/core/Dropdown/Dropdown.d.ts.map +1 -1
  29. package/dist/src/core/Input/Input.d.ts +2 -1
  30. package/dist/src/core/Input/Input.d.ts.map +1 -1
  31. package/dist/src/core/Slider/RotaryCombobox.d.ts +3 -1
  32. package/dist/src/core/Slider/RotaryCombobox.d.ts.map +1 -1
  33. package/dist/src/core/Slider/RotarySlider.d.ts +3 -1
  34. package/dist/src/core/Slider/RotarySlider.d.ts.map +1 -1
  35. package/dist/src/core/Slider/Slider.d.ts +3 -1
  36. package/dist/src/core/Slider/Slider.d.ts.map +1 -1
  37. 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,
@@ -2487,6 +2487,7 @@ function Input(param) {
2487
2487
  }
2488
2488
  Input.type = InputTypes;
2489
2489
  Input.textAlign = TextAlign;
2490
+ Input.fontSize = FontSizes;
2490
2491
 
2491
2492
  function _define_property$e(obj, key, value) {
2492
2493
  if (key in obj) {
@@ -2890,7 +2891,7 @@ function _unsupported_iterable_to_array$d(o, minLen) {
2890
2891
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$d(o, minLen);
2891
2892
  }
2892
2893
  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;
2894
+ 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
2895
  // EXPECTED CONTROL GROUP STRUCTURE
2895
2896
  // <ControlGroup id={id-control-group} is-active>
2896
2897
  // <Slider id={id}></Slider>
@@ -2964,6 +2965,7 @@ function ControlGroup(param) {
2964
2965
  ]);
2965
2966
  return /*#__PURE__*/ React__default.createElement(Box, {
2966
2967
  id: groupId,
2968
+ width: width,
2967
2969
  className: "controlGroup ".concat(isActive ? 'isActive' : '', " ").concat(isDisabled ? 'isDisabled' : '', " ").concat(className ? className : '')
2968
2970
  }, children);
2969
2971
  }
@@ -3304,17 +3306,268 @@ function RotaryCircle(param) {
3304
3306
  RotaryCircle.polarity = Polarity;
3305
3307
  RotaryCircle.size = RotarySliderSizes;
3306
3308
 
3309
+ function _define_property$c(obj, key, value) {
3310
+ if (key in obj) {
3311
+ Object.defineProperty(obj, key, {
3312
+ value: value,
3313
+ enumerable: true,
3314
+ configurable: true,
3315
+ writable: true
3316
+ });
3317
+ } else {
3318
+ obj[key] = value;
3319
+ }
3320
+ return obj;
3321
+ }
3322
+ function _object_spread$c(target) {
3323
+ for(var i = 1; i < arguments.length; i++){
3324
+ var source = arguments[i] != null ? arguments[i] : {};
3325
+ var ownKeys = Object.keys(source);
3326
+ if (typeof Object.getOwnPropertySymbols === "function") {
3327
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3328
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3329
+ }));
3330
+ }
3331
+ ownKeys.forEach(function(key) {
3332
+ _define_property$c(target, key, source[key]);
3333
+ });
3334
+ }
3335
+ return target;
3336
+ }
3337
+ // Rotary Slider UI component.
3338
+ // Connects to Juce's Slider element
3339
+ function PositioningWrapper(param) {
3340
+ 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;
3341
+ return /*#__PURE__*/ React__default.createElement("div", {
3342
+ id: id,
3343
+ className: className,
3344
+ style: _object_spread$c({
3345
+ position: 'relative',
3346
+ height: height,
3347
+ width: width,
3348
+ margin: margin
3349
+ }, style)
3350
+ }, children, /*#__PURE__*/ React__default.createElement("div", {
3351
+ style: {
3352
+ position: 'absolute',
3353
+ top: top,
3354
+ right: right,
3355
+ bottom: bottom,
3356
+ left: left
3357
+ }
3358
+ }, positionedElement ? positionedElement : null));
3359
+ }
3360
+
3361
+ function _array_like_to_array$c(arr, len) {
3362
+ if (len == null || len > arr.length) len = arr.length;
3363
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3364
+ return arr2;
3365
+ }
3366
+ function _array_with_holes$c(arr) {
3367
+ if (Array.isArray(arr)) return arr;
3368
+ }
3369
+ function _iterable_to_array_limit$c(arr, i) {
3370
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3371
+ if (_i == null) return;
3372
+ var _arr = [];
3373
+ var _n = true;
3374
+ var _d = false;
3375
+ var _s, _e;
3376
+ try {
3377
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
3378
+ _arr.push(_s.value);
3379
+ if (i && _arr.length === i) break;
3380
+ }
3381
+ } catch (err) {
3382
+ _d = true;
3383
+ _e = err;
3384
+ } finally{
3385
+ try {
3386
+ if (!_n && _i["return"] != null) _i["return"]();
3387
+ } finally{
3388
+ if (_d) throw _e;
3389
+ }
3390
+ }
3391
+ return _arr;
3392
+ }
3393
+ function _non_iterable_rest$c() {
3394
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3395
+ }
3396
+ function _sliced_to_array$c(arr, i) {
3397
+ return _array_with_holes$c(arr) || _iterable_to_array_limit$c(arr, i) || _unsupported_iterable_to_array$c(arr, i) || _non_iterable_rest$c();
3398
+ }
3399
+ function _unsupported_iterable_to_array$c(o, minLen) {
3400
+ if (!o) return;
3401
+ if (typeof o === "string") return _array_like_to_array$c(o, minLen);
3402
+ var n = Object.prototype.toString.call(o).slice(8, -1);
3403
+ if (n === "Object" && o.constructor) n = o.constructor.name;
3404
+ if (n === "Map" || n === "Set") return Array.from(n);
3405
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$c(o, minLen);
3406
+ }
3407
+ // 20.0f, 15000.0f, 0.1f, 0.7f),800.0f
3408
+ // ValueType rangeStart, ValueType rangeEnd, ValueType intervalValue, ValueType skewFactor, bool useSymmetricSkew=false)
3409
+ var DataSource = /*#__PURE__*/ function(DataSource) {
3410
+ DataSource["sliderAttachment"] = "sliderAttachment";
3411
+ DataSource["buttonAttachment"] = "buttonAttachment";
3412
+ DataSource["event"] = "event";
3413
+ return DataSource;
3414
+ }({});
3415
+ var useIndicator = function(param) {
3416
+ var id = param.id, _param_dataSource = param.dataSource, dataSource = _param_dataSource === void 0 ? "buttonAttachment" : _param_dataSource;
3417
+ var isLocalhost = window.location.hostname === 'localhost';
3418
+ // This value should be a range from 0 to 1
3419
+ var _useState = _sliced_to_array$c(useState(0), 2), brightness = _useState[0], setBrightness = _useState[1];
3420
+ var updateState = function() {
3421
+ if (!isLocalhost && dataSource === "buttonAttachment") {
3422
+ var _Juce_getToggleState;
3423
+ var toggleState = (_Juce_getToggleState = Juce.getToggleState(id)) === null || _Juce_getToggleState === void 0 ? void 0 : _Juce_getToggleState.value;
3424
+ setBrightness(toggleState);
3425
+ } else if (!isLocalhost && dataSource === "sliderAttachment") {
3426
+ var sliderState = Juce.getSliderState(id);
3427
+ setBrightness(sliderState === null || sliderState === void 0 ? void 0 : sliderState.normalisedValue);
3428
+ }
3429
+ };
3430
+ // Set the initial state
3431
+ useEffect(function() {
3432
+ updateState();
3433
+ }, []);
3434
+ // Update the local state when the ID changes
3435
+ useEffect(function() {
3436
+ updateState();
3437
+ }, [
3438
+ id
3439
+ ]);
3440
+ // Sets up listeners to handle changes on the backend
3441
+ useEffect(function() {
3442
+ if (!isLocalhost && dataSource === "buttonAttachment") {
3443
+ var _toggleState_valueChangedEvent;
3444
+ var toggleState = Juce.getToggleState(id);
3445
+ var valueListenerId = toggleState === null || toggleState === void 0 ? void 0 : (_toggleState_valueChangedEvent = toggleState.valueChangedEvent) === null || _toggleState_valueChangedEvent === void 0 ? void 0 : _toggleState_valueChangedEvent.addListener(function() {
3446
+ setBrightness(toggleState);
3447
+ });
3448
+ return function cleanup() {
3449
+ var _toggleState_valueChangedEvent;
3450
+ toggleState === null || toggleState === void 0 ? void 0 : (_toggleState_valueChangedEvent = toggleState.valueChangedEvent) === null || _toggleState_valueChangedEvent === void 0 ? void 0 : _toggleState_valueChangedEvent.removeListener(valueListenerId);
3451
+ };
3452
+ } else if (!isLocalhost && dataSource === "sliderAttachment") {
3453
+ var _sliderState_valueChangedEvent;
3454
+ var sliderState = Juce.getSliderState(id);
3455
+ var valueListenerId1 = sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_valueChangedEvent = sliderState.valueChangedEvent) === null || _sliderState_valueChangedEvent === void 0 ? void 0 : _sliderState_valueChangedEvent.addListener(function() {
3456
+ setBrightness(sliderState);
3457
+ });
3458
+ return function cleanup() {
3459
+ var _sliderState_valueChangedEvent;
3460
+ sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_valueChangedEvent = sliderState.valueChangedEvent) === null || _sliderState_valueChangedEvent === void 0 ? void 0 : _sliderState_valueChangedEvent.removeListener(valueListenerId1);
3461
+ };
3462
+ } else if (!isLocalhost && dataSource === "event") {
3463
+ var getLFOOutdata = id && //@ts-expect-error
3464
+ window.__JUCE__.backend.addEventListener("".concat(id), function(event) {
3465
+ setBrightness(event);
3466
+ });
3467
+ return function cleanup() {
3468
+ //@ts-expect-error
3469
+ window.__JUCE__.backend.removeEventListener(getLFOOutdata);
3470
+ };
3471
+ } else {
3472
+ return;
3473
+ }
3474
+ });
3475
+ return {
3476
+ dataSource: dataSource,
3477
+ brightness: brightness
3478
+ };
3479
+ };
3480
+
3481
+ function _define_property$b(obj, key, value) {
3482
+ if (key in obj) {
3483
+ Object.defineProperty(obj, key, {
3484
+ value: value,
3485
+ enumerable: true,
3486
+ configurable: true,
3487
+ writable: true
3488
+ });
3489
+ } else {
3490
+ obj[key] = value;
3491
+ }
3492
+ return obj;
3493
+ }
3494
+ function _object_spread$b(target) {
3495
+ for(var i = 1; i < arguments.length; i++){
3496
+ var source = arguments[i] != null ? arguments[i] : {};
3497
+ var ownKeys = Object.keys(source);
3498
+ if (typeof Object.getOwnPropertySymbols === "function") {
3499
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3500
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3501
+ }));
3502
+ }
3503
+ ownKeys.forEach(function(key) {
3504
+ _define_property$b(target, key, source[key]);
3505
+ });
3506
+ }
3507
+ return target;
3508
+ }
3509
+ function IndicatorLight(param) {
3510
+ 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;
3511
+ var brightness = useIndicator({
3512
+ id: id,
3513
+ dataSource: dataSource
3514
+ }).brightness;
3515
+ return /*#__PURE__*/ React__default.createElement(Box, {
3516
+ flexDirection: Box.flexDirection.column,
3517
+ gap: Box.gap.small,
3518
+ alignItems: Box.alignItems.center,
3519
+ width: "auto"
3520
+ }, /*#__PURE__*/ React__default.createElement("div", {
3521
+ style: _object_spread$b({
3522
+ position: 'relative',
3523
+ width: '12px',
3524
+ height: '12px',
3525
+ borderRadius: shape === "round" ? '100%' : 'initial',
3526
+ overflow: 'hidden'
3527
+ }, style)
3528
+ }, /*#__PURE__*/ React__default.createElement("div", {
3529
+ className: classnames('IndicatorLight-bg', 'bg-panel', className),
3530
+ style: {
3531
+ width: '12px',
3532
+ height: '12px',
3533
+ position: 'absolute',
3534
+ top: 0,
3535
+ right: 0,
3536
+ bottom: 0,
3537
+ left: 0,
3538
+ background: inactiveColor
3539
+ }
3540
+ }), /*#__PURE__*/ React__default.createElement("div", {
3541
+ className: classnames('IndicatorLight', 'bg-panel', className),
3542
+ style: {
3543
+ opacity: brightness,
3544
+ // transition: `opacity 500ms ease-in`,
3545
+ background: activeColor,
3546
+ position: 'absolute',
3547
+ width: '12px',
3548
+ height: '12px',
3549
+ top: 0,
3550
+ right: 0,
3551
+ bottom: 0,
3552
+ left: 0
3553
+ }
3554
+ })), label ? /*#__PURE__*/ React__default.createElement(Label, {
3555
+ value: label
3556
+ }) : null);
3557
+ }
3558
+ IndicatorLight.dataSource = DataSource;
3559
+
3307
3560
  // Rotary Slider UI component.
3308
3561
  // Connects to Juce's Slider element
3309
3562
  function RotarySlider(param) {
3310
3563
  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 ? {
3564
+ 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
3565
  start: 20.0,
3313
3566
  end: 15000.0,
3314
3567
  interval: 0.1,
3315
3568
  skew: 0.7
3316
3569
  } : _param_mockProperties; param.style;
3317
- var _rotarySliderSizeMap_size;
3570
+ var _rotarySliderSizeMap_size, _rotarySliderSizeMap_size1, _rotarySliderSizeMap_size2;
3318
3571
  var _useSlider = useSlider({
3319
3572
  id: id,
3320
3573
  label: label,
@@ -3324,22 +3577,33 @@ function RotarySlider(param) {
3324
3577
  isRandomizable: isRandomizable
3325
3578
  }), bindDrag = _useSlider.bindDrag, normalisedValue = _useSlider.normalisedValue, scaledValue = _useSlider.scaledValue, setToDefaultState = _useSlider.setToDefaultState, setNormalisedState = _useSlider.setNormalisedState, properties = _useSlider.properties;
3326
3579
  return /*#__PURE__*/ React__default.createElement(ControlGroup, {
3327
- id: id
3580
+ id: id,
3581
+ width: width
3328
3582
  }, /*#__PURE__*/ React__default.createElement(Box, {
3329
3583
  className: "RotarySlider-wrapper",
3330
3584
  flexDirection: Box.flexDirection.column,
3331
3585
  gap: Box.gap.none,
3332
- flex: "0 1 auto"
3586
+ flex: "0 1 auto",
3587
+ height: "90px"
3333
3588
  }, label ? /*#__PURE__*/ React__default.createElement(Label, {
3334
3589
  padding: [
3335
3590
  Label.padding.none,
3336
3591
  Label.padding.none,
3337
- Label.padding.mediumSmall,
3592
+ Label.padding.small,
3338
3593
  Label.padding.none
3339
3594
  ],
3340
3595
  fontSize: Label.fontSize.xSmall,
3341
3596
  value: label
3342
- }) : null, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
3597
+ }) : null, /*#__PURE__*/ React__default.createElement(PositioningWrapper, {
3598
+ top: '25%',
3599
+ left: '-16px',
3600
+ width: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size === void 0 ? void 0 : _rotarySliderSizeMap_size.width, "px"),
3601
+ height: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size1 = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size1 === void 0 ? void 0 : _rotarySliderSizeMap_size1.height, "px"),
3602
+ positionedElement: indicatorId ? /*#__PURE__*/ React__default.createElement(IndicatorLight, {
3603
+ id: indicatorId,
3604
+ dataSource: IndicatorLight.dataSource.event
3605
+ }) : null
3606
+ }, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
3343
3607
  polarity: polarity,
3344
3608
  className: className,
3345
3609
  id: id,
@@ -3356,17 +3620,18 @@ function RotarySlider(param) {
3356
3620
  trackStrokeColor: trackStrokeColor,
3357
3621
  knobStrokeColor: knobStrokeColor,
3358
3622
  knobFillColor: knobFillColor
3359
- }), /*#__PURE__*/ React__default.createElement(Input, {
3623
+ })), /*#__PURE__*/ React__default.createElement(Input, {
3360
3624
  className: "ProgressCircle-value",
3361
3625
  value: scaledValue,
3362
3626
  id: id,
3363
3627
  min: (properties === null || properties === void 0 ? void 0 : properties.start) || 0,
3364
3628
  max: (properties === null || properties === void 0 ? void 0 : properties.end) || 0,
3629
+ fontSize: Input.fontSize.xSmall,
3365
3630
  textAlign: Input.textAlign.center,
3366
3631
  style: {
3367
3632
  fontWeight: 'bold',
3368
3633
  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")
3634
+ 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
3635
  },
3371
3636
  onComplete: function(value) {
3372
3637
  var normalisedVal = properties && scaledToNormalised({
@@ -3386,7 +3651,7 @@ RotarySlider.markerShape = RotarySliderMarkerShapes;
3386
3651
  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
3652
  styleInject(css_248z$6);
3388
3653
 
3389
- function _define_property$c(obj, key, value) {
3654
+ function _define_property$a(obj, key, value) {
3390
3655
  if (key in obj) {
3391
3656
  Object.defineProperty(obj, key, {
3392
3657
  value: value,
@@ -3399,7 +3664,7 @@ function _define_property$c(obj, key, value) {
3399
3664
  }
3400
3665
  return obj;
3401
3666
  }
3402
- function _object_spread$c(target) {
3667
+ function _object_spread$a(target) {
3403
3668
  for(var i = 1; i < arguments.length; i++){
3404
3669
  var source = arguments[i] != null ? arguments[i] : {};
3405
3670
  var ownKeys = Object.keys(source);
@@ -3409,7 +3674,7 @@ function _object_spread$c(target) {
3409
3674
  }));
3410
3675
  }
3411
3676
  ownKeys.forEach(function(key) {
3412
- _define_property$c(target, key, source[key]);
3677
+ _define_property$a(target, key, source[key]);
3413
3678
  });
3414
3679
  }
3415
3680
  return target;
@@ -3458,7 +3723,7 @@ function Slider$1(param) {
3458
3723
  var multiColorGradient = "linear-gradient(".concat(isHorizontal ? 'to right' : 'to top', ", var(--color-brand) 0%, var(--color-brand-secondary) 100%");
3459
3724
  var singleColorGradient = "linear-gradient(".concat(isHorizontal ? 'to right' : 'to top', ", var(--color-brand-700) 0%, var(--color-brand) 100%");
3460
3725
  var _obj;
3461
- var selectedGradientMap = (_obj = {}, _define_property$c(_obj, GradientStyles.multicolor, multiColorGradient), _define_property$c(_obj, GradientStyles.unicolor, singleColorGradient), _obj);
3726
+ var selectedGradientMap = (_obj = {}, _define_property$a(_obj, GradientStyles.multicolor, multiColorGradient), _define_property$a(_obj, GradientStyles.unicolor, singleColorGradient), _obj);
3462
3727
  var _useSlider = useSlider({
3463
3728
  id: id,
3464
3729
  label: label,
@@ -3501,12 +3766,12 @@ function Slider$1(param) {
3501
3766
  Box.padding.none
3502
3767
  ],
3503
3768
  height: "100%"
3504
- }, /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$c({
3769
+ }, /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$a({
3505
3770
  className: classnames('BarSlider-Track', isHighlighted && 'isHighlighted')
3506
3771
  }, drag()), {
3507
3772
  // onMouseEnter={onMouseEnter}
3508
3773
  id: id,
3509
- style: _object_spread$c({
3774
+ style: _object_spread$a({
3510
3775
  background: trackColor,
3511
3776
  stroke: trackStrokeColor ? "1px solid ".concat(trackStrokeColor) : 'none'
3512
3777
  }, style)
@@ -3516,7 +3781,7 @@ function Slider$1(param) {
3516
3781
  // TODO: Why aren't the Tailwind classes working?
3517
3782
  // className={classnames('h-full', 'w-full', 'absolute', 'bg-panel')}
3518
3783
  className: "BarSlider-IndicatorLine",
3519
- style: _object_spread$c({
3784
+ style: _object_spread$a({
3520
3785
  background: indicatorLineGradient ? selectedGradientMap[indicatorLineGradient] : indicatorLineColor,
3521
3786
  opacity: isStandalone || isHighlighted ? '100%' : '80%',
3522
3787
  top: "".concat(isHorizontal && isNarrowTrack && 'calc(50% - 3px)'),
@@ -3561,15 +3826,15 @@ Slider$1.sliderType = SliderType;
3561
3826
  Slider$1.polarity = Polarity;
3562
3827
  Slider$1.orientation = Orientation;
3563
3828
 
3564
- function _array_like_to_array$c(arr, len) {
3829
+ function _array_like_to_array$b(arr, len) {
3565
3830
  if (len == null || len > arr.length) len = arr.length;
3566
3831
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3567
3832
  return arr2;
3568
3833
  }
3569
- function _array_with_holes$c(arr) {
3834
+ function _array_with_holes$b(arr) {
3570
3835
  if (Array.isArray(arr)) return arr;
3571
3836
  }
3572
- function _iterable_to_array_limit$c(arr, i) {
3837
+ function _iterable_to_array_limit$b(arr, i) {
3573
3838
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3574
3839
  if (_i == null) return;
3575
3840
  var _arr = [];
@@ -3593,26 +3858,26 @@ function _iterable_to_array_limit$c(arr, i) {
3593
3858
  }
3594
3859
  return _arr;
3595
3860
  }
3596
- function _non_iterable_rest$c() {
3861
+ function _non_iterable_rest$b() {
3597
3862
  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
3863
  }
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();
3864
+ function _sliced_to_array$b(arr, i) {
3865
+ 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
3866
  }
3602
- function _unsupported_iterable_to_array$c(o, minLen) {
3867
+ function _unsupported_iterable_to_array$b(o, minLen) {
3603
3868
  if (!o) return;
3604
- if (typeof o === "string") return _array_like_to_array$c(o, minLen);
3869
+ if (typeof o === "string") return _array_like_to_array$b(o, minLen);
3605
3870
  var n = Object.prototype.toString.call(o).slice(8, -1);
3606
3871
  if (n === "Object" && o.constructor) n = o.constructor.name;
3607
3872
  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);
3873
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
3609
3874
  }
3610
3875
  var useCombobox = function(param) {
3611
3876
  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
- var _Object_values;
3877
+ var _Object_values, _properties_choices;
3613
3878
  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];
3879
+ var _useState = _sliced_to_array$b(useState(comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.properties), 2), properties = _useState[0], setProperties = _useState[1];
3880
+ var _useState1 = _sliced_to_array$b(useState(0), 2), index = _useState1[0], setIndex = _useState1[1];
3616
3881
  var prevIndex = useRef(null);
3617
3882
  var nextIndex = useRef(null);
3618
3883
  var prevDragDirection = useRef(null);
@@ -3698,361 +3963,122 @@ var useCombobox = function(param) {
3698
3963
  if (id !== modSlotPreview.rowId) {
3699
3964
  setModSlotRowTargetAsPreview({
3700
3965
  paramId: id
3701
- });
3702
- }
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);
3966
+ });
3967
+ }
3968
+ var directionY;
3969
+ if (direction[1] * -1 === 1 && directionY !== prevDragDirection.current) {
3970
+ directionY = 1;
3971
+ } else if (direction[1] * -1 === -1 && directionY !== prevDragDirection.current) {
3972
+ directionY = -1;
3973
+ }
3974
+ if (index < (properties === null || properties === void 0 ? void 0 : properties.choices.length) && directionY && directionY === 1) {
3975
+ incrementIndex();
3976
+ } else if (index > 0 && directionY && directionY === -1) {
3977
+ decrementIndex();
3978
+ }
3979
+ // console.log(nextIndex.current, 'nextIndexnextIndexnextIndex');
3980
+ if (nextIndex.current !== null && nextIndex.current !== undefined && nextIndex.current !== index.current) {
3981
+ comboBoxState === null || comboBoxState === void 0 ? void 0 : comboBoxState.setChoiceIndex(nextIndex.current);
3982
+ }
3925
3983
  }
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);
3984
+ }, {
3985
+ enabled: !isDisabled
3986
+ });
3987
+ var onMouseEnter = function() {
3988
+ if (displayValInHeader) {
3989
+ highlightedItemChanged({
3990
+ label: label,
3991
+ value: automatableParamLabels === null || automatableParamLabels === void 0 ? void 0 : automatableParamLabels[index]
3963
3992
  });
3964
- return function cleanup() {
3965
- //@ts-expect-error
3966
- window.__JUCE__.backend.removeEventListener(getLFOOutdata);
3967
- };
3968
- } else {
3969
- return;
3970
3993
  }
3971
- });
3994
+ };
3995
+ var onClick = function() {
3996
+ setModSlotRowTargetAsPreview({
3997
+ paramId: id
3998
+ });
3999
+ };
4000
+ var onDoubleClick = function() {
4001
+ setModSlotRowTargetAsPreview({
4002
+ paramId: id
4003
+ });
4004
+ };
3972
4005
  return {
3973
- dataSource: dataSource,
3974
- brightness: brightness
4006
+ index: index,
4007
+ valueString: properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices[index],
4008
+ setIndex: setIndex,
4009
+ choices: properties === null || properties === void 0 ? void 0 : properties.choices,
4010
+ filteredChoices: filteredChoices,
4011
+ onMouseEnter: onMouseEnter,
4012
+ onClick: onClick,
4013
+ onDoubleClick: onDoubleClick,
4014
+ bindDrag: bindDrag
3975
4015
  };
3976
4016
  };
3977
4017
 
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({
4018
+ // Rotary Slider UI component.
4019
+ // Connects to Juce's Slider element
4020
+ function RotaryCombobox(param) {
4021
+ 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,
4022
+ 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;
4023
+ var _rotarySliderSizeMap_size, _rotarySliderSizeMap_size1;
4024
+ var _useCombobox = useCombobox({
4025
+ id: id
4026
+ }), index = _useCombobox.index, choices = _useCombobox.choices, valueString = _useCombobox.valueString, onDoubleClick = _useCombobox.onDoubleClick, bindDrag = _useCombobox.bindDrag;
4027
+ return /*#__PURE__*/ React__default.createElement(ControlGroup, {
4009
4028
  id: id,
4010
- dataSource: dataSource
4011
- }).brightness;
4012
- return /*#__PURE__*/ React__default.createElement(Box, {
4029
+ width: width
4030
+ }, /*#__PURE__*/ React__default.createElement(Box, {
4031
+ className: "RotarySlider-wrapper",
4013
4032
  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, {
4033
+ gap: Box.gap.none,
4034
+ flex: "0 1 auto",
4035
+ height: "90px"
4036
+ }, label ? /*#__PURE__*/ React__default.createElement(Label, {
4037
+ padding: [
4038
+ Label.padding.none,
4039
+ Label.padding.none,
4040
+ Label.padding.small,
4041
+ Label.padding.none
4042
+ ],
4043
+ fontSize: Label.fontSize.xSmall,
4052
4044
  value: label
4053
- }) : null);
4045
+ }) : null, /*#__PURE__*/ React__default.createElement(PositioningWrapper, {
4046
+ top: '25%',
4047
+ left: '-16px',
4048
+ width: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size === void 0 ? void 0 : _rotarySliderSizeMap_size.width, "px"),
4049
+ height: "".concat(rotarySliderSizeMap === null || rotarySliderSizeMap === void 0 ? void 0 : (_rotarySliderSizeMap_size1 = rotarySliderSizeMap[size]) === null || _rotarySliderSizeMap_size1 === void 0 ? void 0 : _rotarySliderSizeMap_size1.height, "px"),
4050
+ positionedElement: indicatorId ? /*#__PURE__*/ React__default.createElement(IndicatorLight, {
4051
+ id: indicatorId,
4052
+ dataSource: IndicatorLight.dataSource.event
4053
+ }) : null
4054
+ }, /*#__PURE__*/ React__default.createElement(RotaryCircle, {
4055
+ polarity: polarity,
4056
+ className: className,
4057
+ id: id,
4058
+ markerShape: markerShape,
4059
+ trackWidth: trackWidth,
4060
+ // trackOffset={trackOffset}
4061
+ sliderValue: scaledToNormalised({
4062
+ scaledValue: index,
4063
+ start: 0,
4064
+ end: choices.length - 1
4065
+ }),
4066
+ bindDrag: bindDrag,
4067
+ onDoubleClick: onDoubleClick,
4068
+ size: size,
4069
+ indicatorLineColor: indicatorLineColor,
4070
+ indicatorLineGradient: indicatorLineGradient,
4071
+ trackColor: trackColor,
4072
+ trackStrokeColor: trackStrokeColor,
4073
+ knobStrokeColor: knobStrokeColor,
4074
+ knobFillColor: knobFillColor
4075
+ })), /*#__PURE__*/ React__default.createElement(Label, {
4076
+ fontSize: Label.fontSize.xSmall
4077
+ }, valueString)));
4054
4078
  }
4055
- IndicatorLight.dataSource = DataSource;
4079
+ RotaryCombobox.polarity = Polarity;
4080
+ RotaryCombobox.size = RotarySliderSizes;
4081
+ RotaryCombobox.markerShape = RotarySliderMarkerShapes;
4056
4082
 
4057
4083
  // Rotary Slider UI component.
4058
4084
  // Connects to Juce's Slider element
@@ -4063,26 +4089,16 @@ var SliderVariants = /*#__PURE__*/ function(SliderVariants) {
4063
4089
  return SliderVariants;
4064
4090
  }({});
4065
4091
  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,
4092
+ 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
4093
  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, {
4094
+ return /*#__PURE__*/ React__default.createElement(React__default.Fragment, null, variant === "rotary" ? /*#__PURE__*/ React__default.createElement(RotarySlider, {
4080
4095
  polarity: polarity,
4081
4096
  label: label,
4082
4097
  labelColor: labelColor,
4083
4098
  trackWidth: trackWidth,
4084
4099
  indicatorLineColor: indicatorLineColor,
4085
4100
  indicatorLineGradient: indicatorLineGradient,
4101
+ width: width,
4086
4102
  // trackOffset={trackOffset}
4087
4103
  markerShape: markerShape,
4088
4104
  trackColor: trackColor,
@@ -4091,23 +4107,16 @@ function Slider(param) {
4091
4107
  knobFillColor: knobFillColor,
4092
4108
  className: className,
4093
4109
  id: id,
4110
+ indicatorId: indicatorId,
4094
4111
  onChange: onChange,
4095
4112
  size: size,
4096
4113
  mockInitialNormalisedValue: mockInitialNormalisedValue,
4097
4114
  isRandomizable: isRandomizable,
4098
4115
  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, {
4116
+ }) : null, variant === "rotaryCombobox" ? /*#__PURE__*/ React__default.createElement(RotaryCombobox, {
4109
4117
  polarity: polarity,
4110
4118
  label: label,
4119
+ width: width,
4111
4120
  labelColor: labelColor,
4112
4121
  trackWidth: trackWidth,
4113
4122
  indicatorLineColor: indicatorLineColor,
@@ -4120,12 +4129,13 @@ function Slider(param) {
4120
4129
  knobFillColor: knobFillColor,
4121
4130
  className: className,
4122
4131
  id: id,
4132
+ indicatorId: indicatorId,
4123
4133
  onChange: onChange,
4124
4134
  size: size,
4125
4135
  mockInitialNormalisedValue: mockInitialNormalisedValue,
4126
4136
  isRandomizable: isRandomizable,
4127
4137
  rotationBehavior: rotationBehavior
4128
- })) : null, variant === "bar" ? /*#__PURE__*/ React__default.createElement(Slider$1, {
4138
+ }) : null, variant === "bar" ? /*#__PURE__*/ React__default.createElement(Slider$1, {
4129
4139
  polarity: polarity,
4130
4140
  label: label,
4131
4141
  indicatorLineColor: indicatorLineColor,
@@ -6887,20 +6897,21 @@ function LFOBox(param) {
6887
6897
  Box.padding.large,
6888
6898
  Box.padding.mediumLarge
6889
6899
  ],
6900
+ flex: "1 1 auto",
6890
6901
  fullHeight: true
6891
6902
  }, /*#__PURE__*/ React__default.createElement(Box, {
6892
6903
  flexDirection: Box.flexDirection.column,
6893
6904
  justifyContent: Box.justifyContent.flexStart,
6894
6905
  alignItems: Box.alignItems.flexStart,
6895
6906
  width: "130px",
6896
- flex: "0 0 130px",
6907
+ // flex="0 0 130px"
6897
6908
  // padding={[Box.padding.medium]}
6898
6909
  fullHeight: true
6899
6910
  }, /*#__PURE__*/ React__default.createElement(Heading, {
6900
6911
  padding: [
6901
6912
  Heading.padding.none,
6902
6913
  Heading.padding.none,
6903
- Heading.padding.large,
6914
+ Heading.padding.small,
6904
6915
  Heading.padding.none
6905
6916
  ],
6906
6917
  removeLineHeight: true,
@@ -6910,7 +6921,11 @@ function LFOBox(param) {
6910
6921
  flex: "1",
6911
6922
  gap: Box.gap.large,
6912
6923
  justifyContent: Box.justifyContent.flexStart
6913
- }, /*#__PURE__*/ React__default.createElement(Box, null, syncType === 0 ? /*#__PURE__*/ React__default.createElement(Slider, {
6924
+ }, /*#__PURE__*/ React__default.createElement(Box, {
6925
+ padding: [
6926
+ Box.padding.small
6927
+ ]
6928
+ }, syncType === 0 ? /*#__PURE__*/ React__default.createElement(Slider, {
6914
6929
  size: Slider.size.large,
6915
6930
  id: "LFO".concat(id, "_Hz"),
6916
6931
  label: "LFO".concat(id, " Hz"),
@@ -6941,8 +6956,7 @@ function LFOBox(param) {
6941
6956
  color: "var(--color-brand)",
6942
6957
  id: "LFO".concat(id, "_SyncType"),
6943
6958
  label: "LFO".concat(id, " Sync Type"),
6944
- onChange: handleSyncTypeChange,
6945
- width: "110px"
6959
+ onChange: handleSyncTypeChange
6946
6960
  }), syncType !== 0 && syncType !== 1 ? /*#__PURE__*/ React__default.createElement(Slider, {
6947
6961
  variant: Slider.variant.bar,
6948
6962
  polarity: Slider.polarity.bipolar,
@@ -7029,7 +7043,11 @@ function LFOTab() {
7029
7043
  return /*#__PURE__*/ React__default.createElement(Box, {
7030
7044
  className: "LFOTab",
7031
7045
  gap: Box.gap.medium,
7032
- height: "100%"
7046
+ fullHeight: true,
7047
+ alignItems: Box.alignItems.flexStart,
7048
+ padding: [
7049
+ Box.padding.medium
7050
+ ]
7033
7051
  }, /*#__PURE__*/ React__default.createElement(LFOBox, {
7034
7052
  id: 1
7035
7053
  }), /*#__PURE__*/ React__default.createElement(LFOBox, {
@@ -7236,10 +7254,11 @@ function SeqTab$1(param) {
7236
7254
  padding: [
7237
7255
  Box.padding.mediumLarge
7238
7256
  ],
7239
- height: "100%"
7257
+ fullHeight: true
7240
7258
  }, /*#__PURE__*/ React__default.createElement(Box, {
7241
7259
  gap: Box.gap.medium,
7242
- justifyContent: Box.justifyContent.flexStart
7260
+ justifyContent: Box.justifyContent.flexStart,
7261
+ fullHeight: true
7243
7262
  }, /*#__PURE__*/ React__default.createElement(Heading, {
7244
7263
  padding: [
7245
7264
  Heading.padding.none,
@@ -7254,10 +7273,12 @@ function SeqTab$1(param) {
7254
7273
  gap: Box.gap.medium,
7255
7274
  height: "100%"
7256
7275
  }, /*#__PURE__*/ React__default.createElement(Box, {
7257
- flex: "1 0 auto"
7276
+ flex: "0 0 170px",
7277
+ height: "170px"
7258
7278
  }, /*#__PURE__*/ React__default.createElement(StepSequencer, {
7259
7279
  seqId: seqId
7260
7280
  })), /*#__PURE__*/ React__default.createElement(Box, {
7281
+ height: "71px",
7261
7282
  gap: Box.gap.medium,
7262
7283
  padding: [
7263
7284
  Box.padding.none,
@@ -7293,10 +7314,12 @@ function SeqTab$1(param) {
7293
7314
  id: "seq".concat(seqId, "_syncRate"),
7294
7315
  label: "Seq".concat(seqId, " Sync Rate")
7295
7316
  }) : null, syncType === 3 ? /*#__PURE__*/ React__default.createElement(Slider, {
7317
+ width: "155px",
7296
7318
  id: "seq".concat(seqId, "_thirds"),
7297
7319
  indicatorLineGradient: Slider.gradientStyles.unicolor,
7298
7320
  label: "Seq".concat(seqId, " Thirds")
7299
7321
  }) : null, syncType === 4 ? /*#__PURE__*/ React__default.createElement(Slider, {
7322
+ width: "155px",
7300
7323
  indicatorLineGradient: Slider.gradientStyles.unicolor,
7301
7324
  id: "seq".concat(seqId, "_sixteenths"),
7302
7325
  label: "Seq".concat(seqId, " Sixteenths")
@@ -7314,7 +7337,11 @@ function SeqTab() {
7314
7337
  return /*#__PURE__*/ React__default.createElement(Box, {
7315
7338
  className: "SeqTab",
7316
7339
  gap: Box.gap.medium,
7317
- fullHeight: true
7340
+ fullHeight: true,
7341
+ alignItems: Box.alignItems.flexStart,
7342
+ padding: [
7343
+ Box.padding.medium
7344
+ ]
7318
7345
  }, /*#__PURE__*/ React__default.createElement(SeqTab$1, {
7319
7346
  seqId: 1
7320
7347
  }), /*#__PURE__*/ React__default.createElement(SeqTab$1, {
@@ -7613,12 +7640,13 @@ function ModuleFooter(param) {
7613
7640
  style: _object_spread({
7614
7641
  backgroundColor: 'var(--bg-lv3)'
7615
7642
  }, style),
7616
- flex: "1 1 auto"
7643
+ height: "342px"
7617
7644
  }, /*#__PURE__*/ React__default.createElement(Box, {
7618
7645
  flexDirection: Box.flexDirection.column,
7619
- height: "100%",
7646
+ fullHeight: true,
7620
7647
  justifyContent: Box.justifyContent.flexStart
7621
7648
  }, /*#__PURE__*/ React__default.createElement(Box, {
7649
+ height: "32px",
7622
7650
  // style={{ backgroundColor: 'var(--bg-lv4)' }}
7623
7651
  padding: [
7624
7652
  Box.padding.xSmall,
@@ -7643,13 +7671,12 @@ function ModuleFooter(param) {
7643
7671
  ],
7644
7672
  backgroundColor: "var(--bg-lv4)",
7645
7673
  selectedBackgroundColor: "var(--bg-lv3)",
7646
- width: "100%"
7674
+ width: "100%",
7675
+ height: "32px"
7647
7676
  })), /*#__PURE__*/ React__default.createElement(Box, {
7648
- padding: [
7649
- Box.padding.medium
7650
- ],
7651
7677
  alignItems: Box.alignItems.flexStart,
7652
- flex: "1 1 auto"
7678
+ height: "305px",
7679
+ width: "100%"
7653
7680
  }, 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
7681
  }
7655
7682