@antimatter-audio/antimatter-ui 2.0.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,6 +44,8 @@ NOTE: You will not see any _local_ changes you have made to this library yet. To
44
44
 
45
45
  4. Run `npm run start` in **antimatter-plugin-template** to start (or restart) your development server.
46
46
 
47
+ 5. Run `npm run start` in **this project** to build your local changes.
48
+
47
49
  You should now see your local changes to these components at [http://localhost:3000](http://localhost:3000).
48
50
 
49
51
  ### Adding new components
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect } from 'react';
3
3
  import classnames from 'classnames';
4
4
  import { TabGroup, TabList, Tab, Listbox, ListboxButton, ListboxOptions, ListboxOption } from '@headlessui/react';
5
5
  import * as Juce from 'juce-framework-frontend';
6
- import { KnobHeadless } from 'react-knob-headless';
6
+ import { useDrag } from '@use-gesture/react';
7
7
  import ReactSlider from 'react-slider';
8
8
 
9
9
  function styleInject(css, ref) {
@@ -223,7 +223,7 @@ function Button(param) {
223
223
  Button.TYPE = BUTTON_TYPE;
224
224
  Button.SIZE = BUTTON_SIZE;
225
225
 
226
- function _define_property$2(obj, key, value) {
226
+ function _define_property$3(obj, key, value) {
227
227
  if (key in obj) {
228
228
  Object.defineProperty(obj, key, {
229
229
  value: value,
@@ -236,7 +236,7 @@ function _define_property$2(obj, key, value) {
236
236
  }
237
237
  return obj;
238
238
  }
239
- function _object_spread$2(target) {
239
+ function _object_spread$3(target) {
240
240
  for(var i = 1; i < arguments.length; i++){
241
241
  var source = arguments[i] != null ? arguments[i] : {};
242
242
  var ownKeys = Object.keys(source);
@@ -246,12 +246,12 @@ function _object_spread$2(target) {
246
246
  }));
247
247
  }
248
248
  ownKeys.forEach(function(key) {
249
- _define_property$2(target, key, source[key]);
249
+ _define_property$3(target, key, source[key]);
250
250
  });
251
251
  }
252
252
  return target;
253
253
  }
254
- function ownKeys$2(object, enumerableOnly) {
254
+ function ownKeys$3(object, enumerableOnly) {
255
255
  var keys = Object.keys(object);
256
256
  if (Object.getOwnPropertySymbols) {
257
257
  var symbols = Object.getOwnPropertySymbols(object);
@@ -259,12 +259,12 @@ function ownKeys$2(object, enumerableOnly) {
259
259
  }
260
260
  return keys;
261
261
  }
262
- function _object_spread_props$2(target, source) {
262
+ function _object_spread_props$3(target, source) {
263
263
  source = source != null ? source : {};
264
264
  if (Object.getOwnPropertyDescriptors) {
265
265
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
266
266
  } else {
267
- ownKeys$2(Object(source)).forEach(function(key) {
267
+ ownKeys$3(Object(source)).forEach(function(key) {
268
268
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
269
269
  });
270
270
  }
@@ -275,7 +275,7 @@ function Col(param) {
275
275
  SPACING.NONE
276
276
  ] : _param_padding, _param_style = param.style, style = _param_style === void 0 ? {} : _param_style, _param_border = param.border, border = _param_border === void 0 ? false : _param_border;
277
277
  return /*#__PURE__*/ React.createElement("div", {
278
- style: _object_spread_props$2(_object_spread$2({}, style), {
278
+ style: _object_spread_props$3(_object_spread$3({}, style), {
279
279
  border: border ? '2px solid #888' : ''
280
280
  }),
281
281
  onClick: onClick,
@@ -298,7 +298,7 @@ var FLEX_DIRECTION;
298
298
  FLEX_DIRECTION[FLEX_DIRECTION["COLUMN"] = 1] = "COLUMN";
299
299
  })(FLEX_DIRECTION || (FLEX_DIRECTION = {}));
300
300
 
301
- function _define_property$1(obj, key, value) {
301
+ function _define_property$2(obj, key, value) {
302
302
  if (key in obj) {
303
303
  Object.defineProperty(obj, key, {
304
304
  value: value,
@@ -311,7 +311,7 @@ function _define_property$1(obj, key, value) {
311
311
  }
312
312
  return obj;
313
313
  }
314
- function _object_spread$1(target) {
314
+ function _object_spread$2(target) {
315
315
  for(var i = 1; i < arguments.length; i++){
316
316
  var source = arguments[i] != null ? arguments[i] : {};
317
317
  var ownKeys = Object.keys(source);
@@ -321,12 +321,12 @@ function _object_spread$1(target) {
321
321
  }));
322
322
  }
323
323
  ownKeys.forEach(function(key) {
324
- _define_property$1(target, key, source[key]);
324
+ _define_property$2(target, key, source[key]);
325
325
  });
326
326
  }
327
327
  return target;
328
328
  }
329
- function ownKeys$1(object, enumerableOnly) {
329
+ function ownKeys$2(object, enumerableOnly) {
330
330
  var keys = Object.keys(object);
331
331
  if (Object.getOwnPropertySymbols) {
332
332
  var symbols = Object.getOwnPropertySymbols(object);
@@ -334,12 +334,12 @@ function ownKeys$1(object, enumerableOnly) {
334
334
  }
335
335
  return keys;
336
336
  }
337
- function _object_spread_props$1(target, source) {
337
+ function _object_spread_props$2(target, source) {
338
338
  source = source != null ? source : {};
339
339
  if (Object.getOwnPropertyDescriptors) {
340
340
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
341
341
  } else {
342
- ownKeys$1(Object(source)).forEach(function(key) {
342
+ ownKeys$2(Object(source)).forEach(function(key) {
343
343
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
344
344
  });
345
345
  }
@@ -352,7 +352,7 @@ function Row(param) {
352
352
  ] : _param_padding, _param_flexDirection = param.flexDirection, flexDirection = _param_flexDirection === void 0 ? FLEX_DIRECTION.ROW : _param_flexDirection, _param_border = param.border, border = _param_border === void 0 ? false : _param_border;
353
353
  var isColumn = flexDirection === FLEX_DIRECTION.COLUMN;
354
354
  return /*#__PURE__*/ React.createElement("div", {
355
- style: _object_spread_props$1(_object_spread$1({}, style), {
355
+ style: _object_spread_props$2(_object_spread$2({}, style), {
356
356
  border: border ? '2px solid #888' : ''
357
357
  }),
358
358
  onClick: onClick,
@@ -452,7 +452,7 @@ function Dropdown(param) {
452
452
  })));
453
453
  }
454
454
 
455
- var css_248z$4 = ".Knob {\n height: 50px;\n background-color: #737373;\n width: 50px;\n border-radius: 100%;\n position: relative;\n aspect-ratio: 1/1;\n}\n\n.Knob-inner {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n}\n\n.Knob-marker {\n position: absolute;\n top: 0;\n right: 0;\n left: 50%;\n width: 2px;\n height: 50%;\n border-radius: 125rem;\n background-color: #fff;\n transform: translate(-50%, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);\n}";
455
+ var css_248z$4 = ".Knob {\n height: 50px;\n background-color: #737373;\n width: 50px;\n border-radius: 100%;\n position: relative;\n aspect-ratio: 1/1;\n}\n\n.Knob-inner {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n width: 100%;\n}\n\n.Knob-marker {\n position: absolute;\n top: 0;\n right: 0;\n left: 50%;\n width: 2px;\n height: 50%;\n border-radius: 125rem;\n background-color: #fff;\n transform: translate(-50%, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);\n}\n\n.Knob-center-marker {\n width: 0px;\n height: 0px;\n border-style: solid;\n border-width: 0 7px 10px 7px;\n border-color: transparent transparent #737373 transparent;\n transform: rotate(180deg);\n padding-bottom: 2px;\n}";
456
456
  styleInject(css_248z$4);
457
457
 
458
458
  var css_248z$3 = ".TextLabel {\n font-family: \"Arial\", sans-serif;\n font-size: 14px;\n text-align: center;\n}";
@@ -485,6 +485,19 @@ function _array_like_to_array$1(arr, len) {
485
485
  function _array_with_holes$1(arr) {
486
486
  if (Array.isArray(arr)) return arr;
487
487
  }
488
+ function _define_property$1(obj, key, value) {
489
+ if (key in obj) {
490
+ Object.defineProperty(obj, key, {
491
+ value: value,
492
+ enumerable: true,
493
+ configurable: true,
494
+ writable: true
495
+ });
496
+ } else {
497
+ obj[key] = value;
498
+ }
499
+ return obj;
500
+ }
488
501
  function _iterable_to_array_limit$1(arr, i) {
489
502
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
490
503
  if (_i == null) return;
@@ -512,6 +525,40 @@ function _iterable_to_array_limit$1(arr, i) {
512
525
  function _non_iterable_rest$1() {
513
526
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
514
527
  }
528
+ function _object_spread$1(target) {
529
+ for(var i = 1; i < arguments.length; i++){
530
+ var source = arguments[i] != null ? arguments[i] : {};
531
+ var ownKeys = Object.keys(source);
532
+ if (typeof Object.getOwnPropertySymbols === "function") {
533
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
534
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
535
+ }));
536
+ }
537
+ ownKeys.forEach(function(key) {
538
+ _define_property$1(target, key, source[key]);
539
+ });
540
+ }
541
+ return target;
542
+ }
543
+ function ownKeys$1(object, enumerableOnly) {
544
+ var keys = Object.keys(object);
545
+ if (Object.getOwnPropertySymbols) {
546
+ var symbols = Object.getOwnPropertySymbols(object);
547
+ keys.push.apply(keys, symbols);
548
+ }
549
+ return keys;
550
+ }
551
+ function _object_spread_props$1(target, source) {
552
+ source = source != null ? source : {};
553
+ if (Object.getOwnPropertyDescriptors) {
554
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
555
+ } else {
556
+ ownKeys$1(Object(source)).forEach(function(key) {
557
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
558
+ });
559
+ }
560
+ return target;
561
+ }
515
562
  function _sliced_to_array$1(arr, i) {
516
563
  return _array_with_holes$1(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$1(arr, i) || _non_iterable_rest$1();
517
564
  }
@@ -523,23 +570,54 @@ function _unsupported_iterable_to_array$1(o, minLen) {
523
570
  if (n === "Map" || n === "Set") return Array.from(n);
524
571
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
525
572
  }
573
+ var KNOB_TYPE;
574
+ (function(KNOB_TYPE) {
575
+ KNOB_TYPE["STANDARD"] = "STANDARD";
576
+ KNOB_TYPE["BIPOLAR"] = "BIPOLAR";
577
+ })(KNOB_TYPE || (KNOB_TYPE = {}));
526
578
  function Knob(param) {
527
- var label = param.label, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? POSITION.TOP : _param_labelPosition, _param_showValue = param.showValue, showValue = _param_showValue === void 0 ? true : _param_showValue, id = param.id, className = param.className;
528
- var _useState = _sliced_to_array$1(useState(0), 2), min = _useState[0], setMin = _useState[1];
529
- var _useState1 = _sliced_to_array$1(useState(0), 2), max = _useState1[0], setMax = _useState1[1];
579
+ var label = param.label, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? POSITION.TOP : _param_labelPosition, _param_showValue = param.showValue, showValue = _param_showValue === void 0 ? true : _param_showValue, _param_knobType = param.knobType, knobType = _param_knobType === void 0 ? "STANDARD" : _param_knobType, id = param.id, className = param.className;
580
+ var _useState = _sliced_to_array$1(useState(knobType === "STANDARD" ? 0 : -100), 2), min = _useState[0], setMin = _useState[1];
581
+ var _useState1 = _sliced_to_array$1(useState(knobType === "STANDARD" ? 0 : 100), 2), max = _useState1[0], setMax = _useState1[1];
582
+ var _useState2 = _sliced_to_array$1(useState(1), 2); _useState2[0]; var setInterval = _useState2[1];
583
+ var _useState3 = _sliced_to_array$1(useState(0), 2), value = _useState3[0], setValue = _useState3[1];
584
+ var _useState4 = _sliced_to_array$1(useState(false), 2); _useState4[0]; var setHasStoreData = _useState4[1];
530
585
  useEffect(function() {
531
- var _sliderState_properties, _sliderState_properties1;
532
- var sliderState = Juce.getSliderState(id);
533
- setMin(sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_properties = sliderState.properties) === null || _sliderState_properties === void 0 ? void 0 : _sliderState_properties.start);
534
- setMax(sliderState === null || sliderState === void 0 ? void 0 : (_sliderState_properties1 = sliderState.properties) === null || _sliderState_properties1 === void 0 ? void 0 : _sliderState_properties1.end);
586
+ var knobState = Juce.getSliderState(id);
587
+ if (!!knobState) {
588
+ var _knobState_properties, _knobState_properties1, _knobState_properties2;
589
+ setMin(knobType === "STANDARD" ? (knobState === null || knobState === void 0 ? void 0 : (_knobState_properties = knobState.properties) === null || _knobState_properties === void 0 ? void 0 : _knobState_properties.start) * 100 : -100);
590
+ setMax(knobType === "STANDARD" ? (knobState === null || knobState === void 0 ? void 0 : (_knobState_properties1 = knobState.properties) === null || _knobState_properties1 === void 0 ? void 0 : _knobState_properties1.end) * 100 : 100);
591
+ setInterval(knobState === null || knobState === void 0 ? void 0 : (_knobState_properties2 = knobState.properties) === null || _knobState_properties2 === void 0 ? void 0 : _knobState_properties2.interval);
592
+ setValue(parseInt(Number(knobState === null || knobState === void 0 ? void 0 : knobState.scaledValue).toFixed(1), 10));
593
+ setHasStoreData(true);
594
+ }
535
595
  }, []);
536
- var _useState2 = _sliced_to_array$1(useState(0), 2), value = _useState2[0], setValue = _useState2[1];
537
596
  useEffect(function() {
538
597
  var knobState = Juce.getSliderState(id);
539
598
  knobState.setNormalisedValue(Math.round(value) / 100);
540
599
  }, [
541
600
  value
542
601
  ]);
602
+ var bindDrag = useDrag(function(param) {
603
+ var down = param.down, delta = param.delta;
604
+ setValue(function() {
605
+ var newValue = value + delta[1] * -1;
606
+ if (down) {
607
+ if (newValue >= max) {
608
+ return max;
609
+ } else if (newValue <= min) {
610
+ return min;
611
+ } else {
612
+ return newValue;
613
+ }
614
+ } else {
615
+ return value;
616
+ }
617
+ });
618
+ }, {
619
+ delay: 1000
620
+ });
543
621
  return /*#__PURE__*/ React__default.createElement("div", {
544
622
  style: {
545
623
  display: 'flex',
@@ -556,26 +634,22 @@ function Knob(param) {
556
634
  SPACING.NONE
557
635
  ],
558
636
  text: label
559
- }), /*#__PURE__*/ React__default.createElement(KnobHeadless, {
560
- className: classnames('Knob', className),
561
- id: id !== null && id !== void 0 ? id : 'Knob',
562
- "aria-labelledby": "Knob",
563
- valueMin: min,
564
- valueMax: max,
565
- valueRaw: value,
566
- valueRawRoundFn: Math.round,
567
- valueRawDisplayFn: function(valueRaw) {
568
- return "".concat(Math.round(valueRaw), "%");
637
+ }), knobType === "BIPOLAR" && /*#__PURE__*/ React__default.createElement("div", {
638
+ className: "Knob-center-marker"
639
+ }), /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$1({
640
+ onPointerDown: function(e) {
641
+ return e.currentTarget.focus();
569
642
  },
570
- dragSensitivity: 0.009,
571
- orientation: 'vertical',
572
- onValueRawChange: function(val) {
573
- return setValue(Math.round(val));
643
+ className: classnames('Knob', className)
644
+ }, bindDrag()), {
645
+ style: {
646
+ transform: knobType === "STANDARD" ? '' : ')',
647
+ touchAction: 'none'
574
648
  }
575
- }, /*#__PURE__*/ React__default.createElement("div", {
649
+ }), /*#__PURE__*/ React__default.createElement("div", {
576
650
  className: "Knob-inner",
577
651
  style: {
578
- rotate: "".concat(360 * value / 100, "deg")
652
+ rotate: knobType === "STANDARD" ? "".concat(360 * value / 100, "deg") : "".concat(270 * value / 200, "deg")
579
653
  }
580
654
  }, /*#__PURE__*/ React__default.createElement("div", {
581
655
  className: "Knob-marker"
@@ -588,6 +662,7 @@ function Knob(param) {
588
662
  }));
589
663
  }
590
664
  Knob.LABEL_POSITION = POSITION;
665
+ Knob.KNOB_TYPE = KNOB_TYPE;
591
666
 
592
667
  var css_248z$2 = ".Slider {\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n}\n\n.track {\n background-color: #737373;\n}\n.horizontal .track {\n height: 12px;\n}\n.vertical .track {\n width: 12px;\n}\n\n.thumb {\n height: 12px;\n width: 12px;\n background-color: #404040;\n}";
593
668
  styleInject(css_248z$2);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antimatter-audio/antimatter-ui",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "React UI component library for Antimatter Audio.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,6 +22,7 @@
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
24
  "@headlessui/react": "^2.0.4",
25
+ "@use-gesture/react": "^10.3.1",
25
26
  "classnames": "^2.5.1",
26
27
  "juce-framework-frontend": "file:src/assets/juce-framework-frontend",
27
28
  "node-sass": "^9.0.0",