@antimatter-audio/antimatter-ui 16.1.1 → 16.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/dist/advanced/IconButton/IconButton.d.ts +2 -1
- package/dist/advanced/IconButton/IconButton.d.ts.map +1 -1
- package/dist/core/Combobox/ListboxComponent.d.ts.map +1 -1
- package/dist/core/Toggle/Toggle.d.ts +9 -3
- package/dist/core/Toggle/Toggle.d.ts.map +1 -1
- package/dist/index.js +231 -195
- package/dist/index.js.map +1 -1
- package/dist/src/advanced/IconButton/IconButton.d.ts +2 -1
- package/dist/src/advanced/IconButton/IconButton.d.ts.map +1 -1
- package/dist/src/core/Combobox/ListboxComponent.d.ts.map +1 -1
- package/dist/src/core/Toggle/Toggle.d.ts +9 -3
- package/dist/src/core/Toggle/Toggle.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import './IconButton.css';
|
|
3
3
|
import { Spacing } from '../../common/types';
|
|
4
4
|
import { Icons } from '../../core/Icon/Icon';
|
|
5
|
-
declare function IconButton({ id, icon, onClick, disabled, color, iconColor, highlightColor, highlightIconColor, backgroundColor, padding, margin, width, iconWidth, label, height, className, style, }: {
|
|
5
|
+
declare function IconButton({ id, icon, onClick, disabled, color, iconColor, highlightColor, highlightIconColor, disabledIconColor, backgroundColor, padding, margin, width, iconWidth, label, height, className, style, }: {
|
|
6
6
|
id: string;
|
|
7
7
|
icon: Icons;
|
|
8
8
|
onClick?: any;
|
|
9
9
|
highlightColor?: string;
|
|
10
|
+
disabledIconColor?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
padding?: Array<Spacing>;
|
|
12
13
|
margin?: Array<Spacing>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/advanced/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAIvD,iBAAS,UAAU,CAAC,EAClB,EAAE,EACF,IAAI,EACJ,OAAO,EACP,QAAgB,EAChB,KAA2B,EAC3B,SAAmC,EACnC,cAAc,EACd,kBAAwC,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/advanced/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAIvD,iBAAS,UAAU,CAAC,EAClB,EAAE,EACF,IAAI,EACJ,OAAO,EACP,QAAgB,EAChB,KAA2B,EAC3B,SAAmC,EACnC,cAAc,EACd,kBAAwC,EACxC,iBAA2C,EAE3C,eAAe,EACf,OAA+B,EAC/B,MAA6B,EAC7B,KAAc,EACd,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,GACN,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SA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AE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,GAAG,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,EAChB,KAAK,EACL,KAA2B,EAC3B,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,uBAAyC,EACzC,+BAA+B,EAC/B,0BAAgD,EAChD,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA4C,EAC5C,iBAAmC,EACnC,kBAAsB,EACtB,iBAAqB,EACrB,iBAAgC,EAChC,qBAAuC,EACvC,oBAAoB,EACpB,YAAiB,EACjB,eAAe,EACf,eAAe,EACf,SAAS,EACT,QAAQ,EACR,UAAU,EACV,QAA8B,EAC9B,KAAW,EACX,cAAmB,EACnB,EAAE,EACF,KAAK,GACN,EAAE,aAAa,qBAmPf;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonSize } from '../../common/types';
|
|
3
|
-
declare function Toggle({ id, isDisabled, onChange, width, height, label, labelColor, outerGlowRadius, displayValInHeader, blur, color, highlightColor, highlightBackgroundColor, backgroundColor, style, }: {
|
|
3
|
+
declare function Toggle({ id, isDisabled, onChange, className, width, height, label, labelColor, outerGlowRadius, outerGlowColors, displayValInHeader, blur, borderColor, borderWidth, color, cornerBevel, highlightColor, highlightBorderColor, highlightBackgroundColor, backgroundColor, style, }: {
|
|
4
4
|
id: any;
|
|
5
5
|
label?: string;
|
|
6
|
+
className?: string;
|
|
6
7
|
blur?: number;
|
|
7
8
|
labelColor?: string;
|
|
8
|
-
height?: string;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
cornerBevel?: Array<number>;
|
|
10
12
|
outerGlowRadius?: number;
|
|
13
|
+
outerGlowColors?: Array<string>;
|
|
14
|
+
borderWidth?: number;
|
|
11
15
|
displayValInHeader?: boolean;
|
|
12
16
|
onChange?: () => void;
|
|
13
17
|
size?: ButtonSize;
|
|
14
|
-
width?: string;
|
|
18
|
+
width?: ButtonSize | string;
|
|
19
|
+
height?: ButtonSize | string;
|
|
15
20
|
color?: string;
|
|
16
21
|
highlightColor?: string;
|
|
17
22
|
highlightBackgroundColor?: string;
|
|
23
|
+
highlightBorderColor?: string;
|
|
18
24
|
backgroundColor?: string;
|
|
19
25
|
style?: any;
|
|
20
26
|
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/core/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/core/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,iBAAS,MAAM,CAAC,EACd,EAAE,EACF,UAAkB,EAClB,QAAQ,EACR,SAAS,EACT,KAAyB,EACzB,MAA0B,EAC1B,KAAK,EACL,UAAU,EACV,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,IAAI,EACJ,WAAW,EACX,WAAW,EACX,KAA2B,EAC3B,WAA0B,EAC1B,cAAoC,EACpC,oBAAoB,EACpB,wBAA0C,EAC1C,eAAiC,EACjC,KAAK,GACN,EAAE;IACD,EAAE,EAAE,GAAG,CAAC;IACR,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,qBA6GA;kBA1JQ,MAAM;;;;AA+Jf,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1743,7 +1743,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
1743
1743
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$l(o, minLen);
|
|
1744
1744
|
}
|
|
1745
1745
|
function IconButton(param) {
|
|
1746
|
-
var id = param.id, icon = param.icon, onClick = param.onClick, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_iconColor = param.iconColor, iconColor = _param_iconColor === void 0 ? 'var(--color-gray-200)' : _param_iconColor, highlightColor = param.highlightColor, _param_highlightIconColor = param.highlightIconColor, highlightIconColor = _param_highlightIconColor === void 0 ? 'var(--color-text)' : _param_highlightIconColor, // backgroundColor = 'var(--bg-lv1)',
|
|
1746
|
+
var id = param.id, icon = param.icon, onClick = param.onClick, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_iconColor = param.iconColor, iconColor = _param_iconColor === void 0 ? 'var(--color-gray-200)' : _param_iconColor, highlightColor = param.highlightColor, _param_highlightIconColor = param.highlightIconColor, highlightIconColor = _param_highlightIconColor === void 0 ? 'var(--color-text)' : _param_highlightIconColor, _param_disabledIconColor = param.disabledIconColor, disabledIconColor = _param_disabledIconColor === void 0 ? 'var(--color-gray-400)' : _param_disabledIconColor, // backgroundColor = 'var(--bg-lv1)',
|
|
1747
1747
|
backgroundColor = param.backgroundColor, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
1748
1748
|
Button.padding.none
|
|
1749
1749
|
] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
|
|
@@ -1779,7 +1779,7 @@ function IconButton(param) {
|
|
|
1779
1779
|
gap: Box.gap.mediumSmall
|
|
1780
1780
|
}, /*#__PURE__*/ React__default.createElement(Icon, {
|
|
1781
1781
|
width: iconNumberWidth || numberWidth,
|
|
1782
|
-
color: disabled ?
|
|
1782
|
+
color: disabled ? disabledIconColor : componentIsHovered ? highlightIconColor : iconColor
|
|
1783
1783
|
}), label ? /*#__PURE__*/ React__default.createElement(Label, {
|
|
1784
1784
|
color: color,
|
|
1785
1785
|
fontSize: Label.fontSize.xSmall,
|
|
@@ -3353,9 +3353,9 @@ function Combobox$1(param) {
|
|
|
3353
3353
|
]
|
|
3354
3354
|
}, /*#__PURE__*/ React__default.createElement(Label, {
|
|
3355
3355
|
fontSize: Label.fontSize.small,
|
|
3356
|
-
outerGlowColor: componentIsHovered && buttonHighlightColor ? buttonHighlightColor :
|
|
3356
|
+
outerGlowColor: componentIsHovered && buttonHighlightColor ? buttonHighlightColor : labelColor,
|
|
3357
3357
|
outerGlowRadius: outerGlowRadius,
|
|
3358
|
-
color: componentIsHovered && buttonHighlightColor ? buttonHighlightColor :
|
|
3358
|
+
color: componentIsHovered && buttonHighlightColor ? buttonHighlightColor : labelColor
|
|
3359
3359
|
}, selectedIndexLabel))), /*#__PURE__*/ React__default.createElement(Box, {
|
|
3360
3360
|
flexDirection: Box.flexDirection.column,
|
|
3361
3361
|
width: "auto",
|
|
@@ -3364,9 +3364,13 @@ function Combobox$1(param) {
|
|
|
3364
3364
|
id: "Combobox-up-arrow",
|
|
3365
3365
|
className: "Combobox-arrow",
|
|
3366
3366
|
backgroundColor: "transparent",
|
|
3367
|
+
highlightIconColor: buttonHighlightColor,
|
|
3368
|
+
highlightColor: buttonHighlightColor,
|
|
3369
|
+
disabledIconColor: labelColor,
|
|
3367
3370
|
icon: IconButton.icon.up,
|
|
3368
|
-
color:
|
|
3371
|
+
color: labelColor,
|
|
3369
3372
|
iconWidth: "8px",
|
|
3373
|
+
iconColor: labelColor,
|
|
3370
3374
|
disabled: selectedIndexLabel === choices[0],
|
|
3371
3375
|
padding: [
|
|
3372
3376
|
IconButton.padding.small,
|
|
@@ -3376,13 +3380,17 @@ function Combobox$1(param) {
|
|
|
3376
3380
|
],
|
|
3377
3381
|
onClick: decrementValue
|
|
3378
3382
|
}), /*#__PURE__*/ React__default.createElement(IconButton, {
|
|
3379
|
-
color: color,
|
|
3380
|
-
className: "Combobox-arrow",
|
|
3381
3383
|
id: "Combobox-down-arrow",
|
|
3384
|
+
className: "Combobox-arrow",
|
|
3382
3385
|
backgroundColor: "transparent",
|
|
3386
|
+
disabledIconColor: labelColor,
|
|
3387
|
+
highlightIconColor: buttonHighlightColor,
|
|
3388
|
+
highlightColor: buttonHighlightColor,
|
|
3389
|
+
icon: IconButton.icon.down,
|
|
3390
|
+
color: labelColor,
|
|
3391
|
+
iconColor: labelColor,
|
|
3383
3392
|
iconWidth: "8px",
|
|
3384
3393
|
disabled: selectedIndexLabel === choices[choices.length - 1],
|
|
3385
|
-
icon: IconButton.icon.down,
|
|
3386
3394
|
padding: [
|
|
3387
3395
|
IconButton.padding.xSmall,
|
|
3388
3396
|
IconButton.padding.small,
|
|
@@ -4897,8 +4905,7 @@ function RotarySlider(param) {
|
|
|
4897
4905
|
className: "RotarySlider-wrapper",
|
|
4898
4906
|
flexDirection: Box.flexDirection.column,
|
|
4899
4907
|
gap: Box.gap.none,
|
|
4900
|
-
flex: "0 1 auto"
|
|
4901
|
-
height: "90px"
|
|
4908
|
+
flex: "0 1 auto"
|
|
4902
4909
|
}, (label || (properties === null || properties === void 0 ? void 0 : properties.name)) && showLabel ? /*#__PURE__*/ React__default.createElement(Label, {
|
|
4903
4910
|
padding: [
|
|
4904
4911
|
Label.padding.none,
|
|
@@ -5548,10 +5555,177 @@ Heading.fontSize = FontSizes;
|
|
|
5548
5555
|
Heading.tag = HeadingTags;
|
|
5549
5556
|
Heading.padding = Spacing;
|
|
5550
5557
|
|
|
5558
|
+
function _array_like_to_array$b(arr, len) {
|
|
5559
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
5560
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5561
|
+
return arr2;
|
|
5562
|
+
}
|
|
5563
|
+
function _array_with_holes$a(arr) {
|
|
5564
|
+
if (Array.isArray(arr)) return arr;
|
|
5565
|
+
}
|
|
5566
|
+
function _define_property$b(obj, key, value) {
|
|
5567
|
+
if (key in obj) {
|
|
5568
|
+
Object.defineProperty(obj, key, {
|
|
5569
|
+
value: value,
|
|
5570
|
+
enumerable: true,
|
|
5571
|
+
configurable: true,
|
|
5572
|
+
writable: true
|
|
5573
|
+
});
|
|
5574
|
+
} else {
|
|
5575
|
+
obj[key] = value;
|
|
5576
|
+
}
|
|
5577
|
+
return obj;
|
|
5578
|
+
}
|
|
5579
|
+
function _iterable_to_array_limit$a(arr, i) {
|
|
5580
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
5581
|
+
if (_i == null) return;
|
|
5582
|
+
var _arr = [];
|
|
5583
|
+
var _n = true;
|
|
5584
|
+
var _d = false;
|
|
5585
|
+
var _s, _e;
|
|
5586
|
+
try {
|
|
5587
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
5588
|
+
_arr.push(_s.value);
|
|
5589
|
+
if (i && _arr.length === i) break;
|
|
5590
|
+
}
|
|
5591
|
+
} catch (err) {
|
|
5592
|
+
_d = true;
|
|
5593
|
+
_e = err;
|
|
5594
|
+
} finally{
|
|
5595
|
+
try {
|
|
5596
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
5597
|
+
} finally{
|
|
5598
|
+
if (_d) throw _e;
|
|
5599
|
+
}
|
|
5600
|
+
}
|
|
5601
|
+
return _arr;
|
|
5602
|
+
}
|
|
5603
|
+
function _non_iterable_rest$a() {
|
|
5604
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5605
|
+
}
|
|
5606
|
+
function _object_spread$a(target) {
|
|
5607
|
+
for(var i = 1; i < arguments.length; i++){
|
|
5608
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
5609
|
+
var ownKeys = Object.keys(source);
|
|
5610
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
5611
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
5612
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
5613
|
+
}));
|
|
5614
|
+
}
|
|
5615
|
+
ownKeys.forEach(function(key) {
|
|
5616
|
+
_define_property$b(target, key, source[key]);
|
|
5617
|
+
});
|
|
5618
|
+
}
|
|
5619
|
+
return target;
|
|
5620
|
+
}
|
|
5621
|
+
function _sliced_to_array$a(arr, i) {
|
|
5622
|
+
return _array_with_holes$a(arr) || _iterable_to_array_limit$a(arr, i) || _unsupported_iterable_to_array$b(arr, i) || _non_iterable_rest$a();
|
|
5623
|
+
}
|
|
5624
|
+
function _unsupported_iterable_to_array$b(o, minLen) {
|
|
5625
|
+
if (!o) return;
|
|
5626
|
+
if (typeof o === "string") return _array_like_to_array$b(o, minLen);
|
|
5627
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
5628
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
5629
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
5630
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$b(o, minLen);
|
|
5631
|
+
}
|
|
5632
|
+
function Toggle(param) {
|
|
5633
|
+
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onChange = param.onChange, className = param.className, _param_width = param.width, width = _param_width === void 0 ? ButtonSize.medium : _param_width, _param_height = param.height, height = _param_height === void 0 ? ButtonSize.medium : _param_height, label = param.label, labelColor = param.labelColor, outerGlowRadius = param.outerGlowRadius, outerGlowColors = param.outerGlowColors, displayValInHeader = param.displayValInHeader, blur = param.blur, borderColor = param.borderColor, borderWidth = param.borderWidth, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_cornerBevel = param.cornerBevel, cornerBevel = _param_cornerBevel === void 0 ? [
|
|
5634
|
+
0,
|
|
5635
|
+
0,
|
|
5636
|
+
0,
|
|
5637
|
+
0
|
|
5638
|
+
] : _param_cornerBevel, _param_highlightColor = param.highlightColor, highlightColor = _param_highlightColor === void 0 ? 'var(--color-text)' : _param_highlightColor, highlightBorderColor = param.highlightBorderColor, _param_highlightBackgroundColor = param.highlightBackgroundColor, highlightBackgroundColor = _param_highlightBackgroundColor === void 0 ? 'var(--bg-lv6)' : _param_highlightBackgroundColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'var(--bg-lv5)' : _param_backgroundColor, style = param.style;
|
|
5639
|
+
var _properties_choices;
|
|
5640
|
+
var _useState = _sliced_to_array$a(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
5641
|
+
var _useCombobox = useCombobox({
|
|
5642
|
+
id: id,
|
|
5643
|
+
displayValInHeader: displayValInHeader,
|
|
5644
|
+
isDisabled: isDisabled,
|
|
5645
|
+
onChange: onChange
|
|
5646
|
+
}), selectedIndex = _useCombobox.selectedIndex, handleChange = _useCombobox.handleChange, properties = _useCombobox.properties, onMouseEnter = _useCombobox.onMouseEnter;
|
|
5647
|
+
var widthValue = (buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width]) ? buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width] : width;
|
|
5648
|
+
var heightValue = (buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height]) ? buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height] : height;
|
|
5649
|
+
var hasBevel = !!cornerBevel.find(function(item) {
|
|
5650
|
+
return item > 0;
|
|
5651
|
+
});
|
|
5652
|
+
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
5653
|
+
gap: Box.gap.mediumSmall,
|
|
5654
|
+
flexDirection: Box.flexDirection.column
|
|
5655
|
+
}, label || (properties === null || properties === void 0 ? void 0 : properties.name) ? /*#__PURE__*/ React__default.createElement(Label, {
|
|
5656
|
+
fontSize: Label.fontSize.xSmall,
|
|
5657
|
+
value: label || (properties === null || properties === void 0 ? void 0 : properties.name),
|
|
5658
|
+
color: labelColor,
|
|
5659
|
+
outerGlowRadius: outerGlowRadius,
|
|
5660
|
+
outerGlowColor: labelColor,
|
|
5661
|
+
blur: blur,
|
|
5662
|
+
style: {
|
|
5663
|
+
textShadow: labelColor && outerGlowRadius ? getTextOuterGlowString(labelColor, outerGlowRadius) : 'none'
|
|
5664
|
+
}
|
|
5665
|
+
}) : null, /*#__PURE__*/ React__default.createElement(BevelContainer, {
|
|
5666
|
+
width: widthValue,
|
|
5667
|
+
height: heightValue,
|
|
5668
|
+
cornerBevel: cornerBevel,
|
|
5669
|
+
fillColor: backgroundColor,
|
|
5670
|
+
borderWidth: borderWidth,
|
|
5671
|
+
outerGlowColors: componentIsHovered && highlightBorderColor ? [
|
|
5672
|
+
highlightBorderColor
|
|
5673
|
+
] : outerGlowColors,
|
|
5674
|
+
outerGlowRadius: outerGlowRadius,
|
|
5675
|
+
borderColor: componentIsHovered && highlightBorderColor ? highlightBorderColor : borderColor
|
|
5676
|
+
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
5677
|
+
className: "Toggle ".concat(isDisabled ? 'isDisabled' : '', " ").concat(className ? className : ''),
|
|
5678
|
+
justifyContent: Box.justifyContent.flexEnd,
|
|
5679
|
+
alignItems: Box.alignItems.flexStart,
|
|
5680
|
+
flexDirection: Box.flexDirection.column,
|
|
5681
|
+
borderColor: borderColor,
|
|
5682
|
+
borderWidth: !hasBevel ? [
|
|
5683
|
+
"".concat(borderWidth, "px")
|
|
5684
|
+
] : undefined,
|
|
5685
|
+
style: _object_spread$a({
|
|
5686
|
+
color: componentIsHovered ? highlightColor : color,
|
|
5687
|
+
backgroundColor: componentIsHovered ? highlightBackgroundColor : backgroundColor,
|
|
5688
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
5689
|
+
pointerEvents: 'all',
|
|
5690
|
+
filter: generateDropShadowFilterString(outerGlowColors, outerGlowRadius)
|
|
5691
|
+
}, style),
|
|
5692
|
+
width: widthValue,
|
|
5693
|
+
height: heightValue,
|
|
5694
|
+
onMouseEnter: function() {
|
|
5695
|
+
onMouseEnter();
|
|
5696
|
+
!isDisabled && setComponentIsHovered(true);
|
|
5697
|
+
},
|
|
5698
|
+
onMouseLeave: function() {
|
|
5699
|
+
return !isDisabled && setComponentIsHovered(false);
|
|
5700
|
+
},
|
|
5701
|
+
onClick: function(val) {
|
|
5702
|
+
// Update the toggle state
|
|
5703
|
+
var newIndex = Math.abs(selectedIndex - 1);
|
|
5704
|
+
handleChange(newIndex);
|
|
5705
|
+
// Save the selected row target to JUCE
|
|
5706
|
+
//
|
|
5707
|
+
}
|
|
5708
|
+
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
5709
|
+
flex: "1",
|
|
5710
|
+
style: {
|
|
5711
|
+
pointerEvents: 'none'
|
|
5712
|
+
}
|
|
5713
|
+
}, /*#__PURE__*/ React__default.createElement(Label, {
|
|
5714
|
+
fontSize: Label.fontSize.mediumSmall,
|
|
5715
|
+
color: labelColor,
|
|
5716
|
+
style: {
|
|
5717
|
+
pointerEvents: 'none',
|
|
5718
|
+
textShadow: labelColor && outerGlowRadius ? getTextOuterGlowString(labelColor, outerGlowRadius) : 'none'
|
|
5719
|
+
}
|
|
5720
|
+
}, (properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices[selectedIndex]) || '0')))));
|
|
5721
|
+
}
|
|
5722
|
+
Toggle.width = ButtonSize;
|
|
5723
|
+
Toggle.height = ButtonSize;
|
|
5724
|
+
|
|
5551
5725
|
var css_248z$7 = ".ThemeWrapper {\n position: relative;\n width: 100%;\n}\n.CRTStyle {\n background: radial-gradient(\n circle,\n rgba(165, 73, 64, 0.1) 2%,\n rgba(55, 24, 21, 0.1) 71%,\n rgba(31, 12, 11, 0.1) 80%\n );\n}\n.CRTStyle::before {\n content: ' ';\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),\n linear-gradient(\n 90deg,\n rgba(255, 0, 0, 0.06),\n rgba(0, 255, 0, 0.02),\n rgba(0, 0, 255, 0.06)\n );\n z-index: 100;\n background-size:\n 100% 2px,\n 3px 100%;\n pointer-events: none;\n}\n";
|
|
5552
5726
|
styleInject(css_248z$7);
|
|
5553
5727
|
|
|
5554
|
-
function _define_property$
|
|
5728
|
+
function _define_property$a(obj, key, value) {
|
|
5555
5729
|
if (key in obj) {
|
|
5556
5730
|
Object.defineProperty(obj, key, {
|
|
5557
5731
|
value: value,
|
|
@@ -5566,7 +5740,7 @@ function _define_property$b(obj, key, value) {
|
|
|
5566
5740
|
}
|
|
5567
5741
|
function ThemeWrapper(param) {
|
|
5568
5742
|
var _param_theme = param.theme, theme = _param_theme === void 0 ? "CRT" : _param_theme, children = param.children;
|
|
5569
|
-
var themeMap = _define_property$
|
|
5743
|
+
var themeMap = _define_property$a({}, "CRT", 'CRTStyle');
|
|
5570
5744
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
5571
5745
|
className: "ThemeWrapper"
|
|
5572
5746
|
}, /*#__PURE__*/ React__default.createElement("div", {
|
|
@@ -5574,7 +5748,7 @@ function ThemeWrapper(param) {
|
|
|
5574
5748
|
}, children));
|
|
5575
5749
|
}
|
|
5576
5750
|
|
|
5577
|
-
function _define_property$
|
|
5751
|
+
function _define_property$9(obj, key, value) {
|
|
5578
5752
|
if (key in obj) {
|
|
5579
5753
|
Object.defineProperty(obj, key, {
|
|
5580
5754
|
value: value,
|
|
@@ -5587,7 +5761,7 @@ function _define_property$a(obj, key, value) {
|
|
|
5587
5761
|
}
|
|
5588
5762
|
return obj;
|
|
5589
5763
|
}
|
|
5590
|
-
function _object_spread$
|
|
5764
|
+
function _object_spread$9(target) {
|
|
5591
5765
|
for(var i = 1; i < arguments.length; i++){
|
|
5592
5766
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5593
5767
|
var ownKeys = Object.keys(source);
|
|
@@ -5597,7 +5771,7 @@ function _object_spread$a(target) {
|
|
|
5597
5771
|
}));
|
|
5598
5772
|
}
|
|
5599
5773
|
ownKeys.forEach(function(key) {
|
|
5600
|
-
_define_property$
|
|
5774
|
+
_define_property$9(target, key, source[key]);
|
|
5601
5775
|
});
|
|
5602
5776
|
}
|
|
5603
5777
|
return target;
|
|
@@ -5609,7 +5783,7 @@ function KeyValueDisplayScreen(param) {
|
|
|
5609
5783
|
// justifyContent={Box.justifyContent.flexStart}
|
|
5610
5784
|
alignItems: Box.alignItems.flexStart,
|
|
5611
5785
|
gap: Box.gap.small,
|
|
5612
|
-
style: _object_spread$
|
|
5786
|
+
style: _object_spread$9({}, style),
|
|
5613
5787
|
padding: [
|
|
5614
5788
|
Box.padding.small,
|
|
5615
5789
|
Box.padding.none,
|
|
@@ -5823,7 +5997,7 @@ function LineChartSvg(param) {
|
|
|
5823
5997
|
})));
|
|
5824
5998
|
}
|
|
5825
5999
|
|
|
5826
|
-
function _define_property$
|
|
6000
|
+
function _define_property$8(obj, key, value) {
|
|
5827
6001
|
if (key in obj) {
|
|
5828
6002
|
Object.defineProperty(obj, key, {
|
|
5829
6003
|
value: value,
|
|
@@ -5836,7 +6010,7 @@ function _define_property$9(obj, key, value) {
|
|
|
5836
6010
|
}
|
|
5837
6011
|
return obj;
|
|
5838
6012
|
}
|
|
5839
|
-
function _object_spread$
|
|
6013
|
+
function _object_spread$8(target) {
|
|
5840
6014
|
for(var i = 1; i < arguments.length; i++){
|
|
5841
6015
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
5842
6016
|
var ownKeys = Object.keys(source);
|
|
@@ -5846,7 +6020,7 @@ function _object_spread$9(target) {
|
|
|
5846
6020
|
}));
|
|
5847
6021
|
}
|
|
5848
6022
|
ownKeys.forEach(function(key) {
|
|
5849
|
-
_define_property$
|
|
6023
|
+
_define_property$8(target, key, source[key]);
|
|
5850
6024
|
});
|
|
5851
6025
|
}
|
|
5852
6026
|
return target;
|
|
@@ -5881,7 +6055,7 @@ function LineChartCanvas(param) {
|
|
|
5881
6055
|
data
|
|
5882
6056
|
]);
|
|
5883
6057
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
5884
|
-
style: _object_spread$
|
|
6058
|
+
style: _object_spread$8({
|
|
5885
6059
|
width: width,
|
|
5886
6060
|
height: height,
|
|
5887
6061
|
position: 'relative'
|
|
@@ -6190,7 +6364,7 @@ function createBase64WorkerFactory$6(base64, sourcemapArg, enableUnicodeArg) {
|
|
|
6190
6364
|
var WorkerFactory$2 = /*#__PURE__*/createBase64WorkerFactory$6('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICd1c2Ugc3RyaWN0JzsKCiAgaW1wb3J0U2NyaXB0cygnaHR0cHM6Ly9kM2pzLm9yZy9kMy52Ny5taW4uanMnKTsKICB2YXIgY2FudmFzOwogIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24oZXZlbnQpIHsKICAgICAgdmFyIGRhdGEgPSBldmVudC5kYXRhOwogICAgICBpZiAoZGF0YS50eXBlID09PSAnaW5pdCcpIHsKICAgICAgICAgIGNhbnZhcyA9IGRhdGEuY2FudmFzOwogICAgICB9CiAgICAgIGlmIChkYXRhLnR5cGUgPT09ICd1cGRhdGUnKSB7CiAgICAgICAgICB2YXIgX2RhdGFfcmVuZGVyRGF0YV87CiAgICAgICAgICB2YXIgZXZlbnRJZCA9ICdvc2NEYXRhJzsKICAgICAgICAgIHZhciBtYXJnaW4gPSAxMDsKICAgICAgICAgIHZhciBzbGljZWREYXRhID0gZGF0YSA9PT0gbnVsbCB8fCBkYXRhID09PSB2b2lkIDAgPyB2b2lkIDAgOiAoX2RhdGFfcmVuZGVyRGF0YV8gPSBkYXRhLnJlbmRlckRhdGFbIiIuY29uY2F0KGV2ZW50SWQpXSkgPT09IG51bGwgfHwgX2RhdGFfcmVuZGVyRGF0YV8gPT09IHZvaWQgMCA/IHZvaWQgMCA6IF9kYXRhX3JlbmRlckRhdGFfLnNsaWNlKDAsIGRhdGEuY3ljbGVMZW5ndGgpOwogICAgICAgICAgdmFyIHhTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKFsKICAgICAgICAgICAgICAwLAogICAgICAgICAgICAgIHNsaWNlZERhdGEgPT09IG51bGwgfHwgc2xpY2VkRGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogc2xpY2VkRGF0YS5sZW5ndGgKICAgICAgICAgIF0pLnJhbmdlKFsKICAgICAgICAgICAgICBtYXJnaW4sCiAgICAgICAgICAgICAgZGF0YS53aWR0aCAtIG1hcmdpbgogICAgICAgICAgXSk7CiAgICAgICAgICAvLyAubmljZSgpOwogICAgICAgICAgdmFyIHlTY2FsZSA9IGQzLnNjYWxlTGluZWFyKCkuZG9tYWluKGRhdGEgPT09IG51bGwgfHwgZGF0YSA9PT0gdm9pZCAwID8gdm9pZCAwIDogZGF0YS55U2NhbGVEb21haW4pLnJhbmdlKFsKICAgICAgICAgICAgICBkYXRhLmhlaWdodCAtIG1hcmdpbiwKICAgICAgICAgICAgICBtYXJnaW4KICAgICAgICAgIF0pOwogICAgICAgICAgLy8gLm5pY2UoKTsKICAgICAgICAgIGlmIChzbGljZWREYXRhICE9IG51bGwpIHsKICAgICAgICAgICAgICAvLyBmaWxsOiAnbm9uZScsCiAgICAgICAgICAgICAgLy8gJ3NoYXBlLXJlbmRlcmluZyc6ICdjcmlzcEVkZ2VzJywKICAgICAgICAgICAgICB2YXIgY3R4ID0gY2FudmFzID09PSBudWxsIHx8IGNhbnZhcyA9PT0gdm9pZCAwID8gdm9pZCAwIDogY2FudmFzLmdldENvbnRleHQoJzJkJyk7CiAgICAgICAgICAgICAgdmFyIGxpbmUgPSBkMy5saW5lKGZ1bmN0aW9uKF8sIGkpIHsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHhTY2FsZShpKTsKICAgICAgICAgICAgICB9LCB5U2NhbGUpLmNvbnRleHQoY3R4KTsKICAgICAgICAgICAgICB2YXIgbGluZURhdGEgPSBzbGljZWREYXRhOwogICAgICAgICAgICAgIGN0eC5jbGVhclJlY3QoMCwgMCwgY2FudmFzLndpZHRoLCBjYW52YXMuaGVpZ2h0KTsKICAgICAgICAgICAgICBjdHguc2F2ZSgpOwogICAgICAgICAgICAgIGN0eC5iZWdpblBhdGgoKTsKICAgICAgICAgICAgICBsaW5lLmN1cnZlKGQzLmN1cnZlQmFzaXMpKGxpbmVEYXRhKTsKICAgICAgICAgICAgICBjdHgubGluZVdpZHRoID0gMjsKICAgICAgICAgICAgICBjdHguc3Ryb2tlU3R5bGUgPSAnIzZGRkZGNSc7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0NvbG9yID0gJ3JnYmEoMTExLCAyNTUsIDI0NSwgLjcpJzsKICAgICAgICAgICAgICBjdHguaW1hZ2VTbW9vdGhpbmdFbmFibGVkID0gZmFsc2U7CiAgICAgICAgICAgICAgY3R4LnNoYWRvd0JsdXIgPSA1OwogICAgICAgICAgICAgIGN0eC5zaGFkb3dPZmZzZXRYID0gMDsKICAgICAgICAgICAgICBjdHguc2hhZG93T2Zmc2V0WSA9IDA7CiAgICAgICAgICAgICAgY3R4LnN0cm9rZSgpOwogICAgICAgICAgICAgIGNhbnZhcyA9PT0gbnVsbCB8fCBjYW52YXMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IGNhbnZhcy5nZXRDb250ZXh0KCcyZCcpLmRyYXdJbWFnZShjYW52YXMsIDAsIDApOwogICAgICAgICAgICAgIHZhciBiaXRtYXAgPSBjYW52YXMgPT09IG51bGwgfHwgY2FudmFzID09PSB2b2lkIDAgPyB2b2lkIDAgOiBjYW52YXMudHJhbnNmZXJUb0ltYWdlQml0bWFwKCk7CiAgICAgICAgICAgICAgc2VsZi5wb3N0TWVzc2FnZShiaXRtYXApOwogICAgICAgICAgfQogICAgICB9CiAgfTsKCn0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==', 'data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2VyLmpzIiwic291cmNlcyI6W10sInNvdXJjZXNDb250ZW50IjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=');
|
|
6191
6365
|
/* eslint-enable */
|
|
6192
6366
|
|
|
6193
|
-
function _define_property$
|
|
6367
|
+
function _define_property$7(obj, key, value) {
|
|
6194
6368
|
if (key in obj) {
|
|
6195
6369
|
Object.defineProperty(obj, key, {
|
|
6196
6370
|
value: value,
|
|
@@ -6203,7 +6377,7 @@ function _define_property$8(obj, key, value) {
|
|
|
6203
6377
|
}
|
|
6204
6378
|
return obj;
|
|
6205
6379
|
}
|
|
6206
|
-
function _object_spread$
|
|
6380
|
+
function _object_spread$7(target) {
|
|
6207
6381
|
for(var i = 1; i < arguments.length; i++){
|
|
6208
6382
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6209
6383
|
var ownKeys = Object.keys(source);
|
|
@@ -6213,7 +6387,7 @@ function _object_spread$8(target) {
|
|
|
6213
6387
|
}));
|
|
6214
6388
|
}
|
|
6215
6389
|
ownKeys.forEach(function(key) {
|
|
6216
|
-
_define_property$
|
|
6390
|
+
_define_property$7(target, key, source[key]);
|
|
6217
6391
|
});
|
|
6218
6392
|
}
|
|
6219
6393
|
return target;
|
|
@@ -6260,7 +6434,7 @@ function Oscilloscope(param) {
|
|
|
6260
6434
|
};
|
|
6261
6435
|
};
|
|
6262
6436
|
return /*#__PURE__*/ React__default.createElement("div", {
|
|
6263
|
-
style: _object_spread$
|
|
6437
|
+
style: _object_spread$7({
|
|
6264
6438
|
height: height,
|
|
6265
6439
|
width: width,
|
|
6266
6440
|
flex: "0 0 ".concat(width)
|
|
@@ -6314,12 +6488,12 @@ styleInject(css_248z$5);
|
|
|
6314
6488
|
var css_248z$4 = ".PresetManagerContainer {\n width: 100%;\n height: 100%;\n background-color: var(--bg-lv1);\n color: var(--color-text);\n}\n\n.PresetManagerButton {\n width: 100%;\n height: 100%;\n max-width: 300px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: relative;\n cursor: pointer;\n font-family: var(--font-leagueSpartan);\n}\n.PresetManagerButtonLabel {\n cursor: pointer;\n text-align: center;\n font-family: var(--font-leagueSpartan);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 225px;\n display: inline-block;\n vertical-align: middle;\n height: 1rem;\n line-height: 1.25;\n /* position: relative; */\n &:hover,\n &:active {\n background: var(--color-gray-900);\n }\n /* &.isDirty {\n &::after {\n content: '*';\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n }\n } */\n}\n\n.PresetManagerButtonLabelContainer.isDirty::after {\n content: '*';\n position: absolute;\n height: 1rem;\n width: 1rem;\n right: -0.75rem;\n top: 0;\n}\n\n.PresetManagerButtonLabelOuterContainer {\n position: relative;\n width: auto;\n}\n\n[data-headlessui-state='open active'] .PresetManagerButtonLabel {\n background: var(--color-gray-900);\n}\n.PresetManagerPanel {\n position: absolute;\n font-family: var(--font-leagueSpartan);\n right: 0px;\n left: 0px;\n width: 100%;\n max-width: 400px !important;\n color: var(--color-text);\n background: var(--bg-lv5);\n}\n\n.PresetManagerPanel:focus,\n.PresetManagerPanel:focus-visible {\n outline: none;\n}\n\n.PresetManagerListItem {\n cursor: pointer;\n background: var(--color-gray-800);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n}\n\n.PresetManagerListItem:hover,\n.PresetManagerListItem.isSelected {\n background: var(--bg-selected);\n}\n\n.PresetManagerListItemText {\n display: inline-block;\n vertical-align: middle;\n height: 1.5rem;\n line-height: 1.75;\n}\n";
|
|
6315
6489
|
styleInject(css_248z$4);
|
|
6316
6490
|
|
|
6317
|
-
function _array_like_to_array$
|
|
6491
|
+
function _array_like_to_array$a(arr, len) {
|
|
6318
6492
|
if (len == null || len > arr.length) len = arr.length;
|
|
6319
6493
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6320
6494
|
return arr2;
|
|
6321
6495
|
}
|
|
6322
|
-
function _array_with_holes$
|
|
6496
|
+
function _array_with_holes$9(arr) {
|
|
6323
6497
|
if (Array.isArray(arr)) return arr;
|
|
6324
6498
|
}
|
|
6325
6499
|
function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6351,7 +6525,7 @@ function _async_to_generator$3(fn) {
|
|
|
6351
6525
|
});
|
|
6352
6526
|
};
|
|
6353
6527
|
}
|
|
6354
|
-
function _iterable_to_array_limit$
|
|
6528
|
+
function _iterable_to_array_limit$9(arr, i) {
|
|
6355
6529
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6356
6530
|
if (_i == null) return;
|
|
6357
6531
|
var _arr = [];
|
|
@@ -6375,23 +6549,23 @@ function _iterable_to_array_limit$a(arr, i) {
|
|
|
6375
6549
|
}
|
|
6376
6550
|
return _arr;
|
|
6377
6551
|
}
|
|
6378
|
-
function _non_iterable_rest$
|
|
6552
|
+
function _non_iterable_rest$9() {
|
|
6379
6553
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6380
6554
|
}
|
|
6381
6555
|
function _object_destructuring_empty(o) {
|
|
6382
6556
|
if (o === null || o === void 0) throw new TypeError("Cannot destructure " + o);
|
|
6383
6557
|
return o;
|
|
6384
6558
|
}
|
|
6385
|
-
function _sliced_to_array$
|
|
6386
|
-
return _array_with_holes$
|
|
6559
|
+
function _sliced_to_array$9(arr, i) {
|
|
6560
|
+
return _array_with_holes$9(arr) || _iterable_to_array_limit$9(arr, i) || _unsupported_iterable_to_array$a(arr, i) || _non_iterable_rest$9();
|
|
6387
6561
|
}
|
|
6388
|
-
function _unsupported_iterable_to_array$
|
|
6562
|
+
function _unsupported_iterable_to_array$a(o, minLen) {
|
|
6389
6563
|
if (!o) return;
|
|
6390
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
6564
|
+
if (typeof o === "string") return _array_like_to_array$a(o, minLen);
|
|
6391
6565
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6392
6566
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6393
6567
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6394
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
6568
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$a(o, minLen);
|
|
6395
6569
|
}
|
|
6396
6570
|
function _ts_generator$3(thisArg, body) {
|
|
6397
6571
|
var f, y, t, _ = {
|
|
@@ -6486,16 +6660,16 @@ function _ts_generator$3(thisArg, body) {
|
|
|
6486
6660
|
}
|
|
6487
6661
|
function PresetManager(param) {
|
|
6488
6662
|
_object_destructuring_empty(param);
|
|
6489
|
-
var _useState = _sliced_to_array$
|
|
6490
|
-
var _useState1 = _sliced_to_array$
|
|
6663
|
+
var _useState = _sliced_to_array$9(useState([]), 2), presetList = _useState[0], setPresetList = _useState[1];
|
|
6664
|
+
var _useState1 = _sliced_to_array$9(useState(false), 2); _useState1[0]; var setIsSaving = _useState1[1];
|
|
6491
6665
|
var savePresetFunc = Juce.getNativeFunction('savePreset');
|
|
6492
6666
|
var loadPresetFunc = Juce.getNativeFunction('loadPreset');
|
|
6493
6667
|
var getAllPresetsFunc = Juce.getNativeFunction('getAllPresets');
|
|
6494
6668
|
var getCurrentPresetFunc = Juce.getNativeFunction('getCurrentPreset');
|
|
6495
6669
|
var isDirtyFunc = Juce.getNativeFunction('canUndo');
|
|
6496
|
-
var _useState2 = _sliced_to_array$
|
|
6670
|
+
var _useState2 = _sliced_to_array$9(useState(), 2), selectedPreset = _useState2[0], setSelectedPreset = _useState2[1];
|
|
6497
6671
|
var isLocalhost = window.location.hostname === 'localhost';
|
|
6498
|
-
var _useState3 = _sliced_to_array$
|
|
6672
|
+
var _useState3 = _sliced_to_array$9(useState(false), 2), isDirty = _useState3[0], setIsDirty = _useState3[1];
|
|
6499
6673
|
useEffect(function() {
|
|
6500
6674
|
if (!isLocalhost) {
|
|
6501
6675
|
var _window___JUCE___backend, _window___JUCE__, _window;
|
|
@@ -6774,12 +6948,12 @@ function PresetManager(param) {
|
|
|
6774
6948
|
}))))));
|
|
6775
6949
|
}
|
|
6776
6950
|
|
|
6777
|
-
function _array_like_to_array$
|
|
6951
|
+
function _array_like_to_array$9(arr, len) {
|
|
6778
6952
|
if (len == null || len > arr.length) len = arr.length;
|
|
6779
6953
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6780
6954
|
return arr2;
|
|
6781
6955
|
}
|
|
6782
|
-
function _array_with_holes$
|
|
6956
|
+
function _array_with_holes$8(arr) {
|
|
6783
6957
|
if (Array.isArray(arr)) return arr;
|
|
6784
6958
|
}
|
|
6785
6959
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -6811,7 +6985,7 @@ function _async_to_generator$2(fn) {
|
|
|
6811
6985
|
});
|
|
6812
6986
|
};
|
|
6813
6987
|
}
|
|
6814
|
-
function _define_property$
|
|
6988
|
+
function _define_property$6(obj, key, value) {
|
|
6815
6989
|
if (key in obj) {
|
|
6816
6990
|
Object.defineProperty(obj, key, {
|
|
6817
6991
|
value: value,
|
|
@@ -6824,7 +6998,7 @@ function _define_property$7(obj, key, value) {
|
|
|
6824
6998
|
}
|
|
6825
6999
|
return obj;
|
|
6826
7000
|
}
|
|
6827
|
-
function _iterable_to_array_limit$
|
|
7001
|
+
function _iterable_to_array_limit$8(arr, i) {
|
|
6828
7002
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
6829
7003
|
if (_i == null) return;
|
|
6830
7004
|
var _arr = [];
|
|
@@ -6848,10 +7022,10 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
6848
7022
|
}
|
|
6849
7023
|
return _arr;
|
|
6850
7024
|
}
|
|
6851
|
-
function _non_iterable_rest$
|
|
7025
|
+
function _non_iterable_rest$8() {
|
|
6852
7026
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6853
7027
|
}
|
|
6854
|
-
function _object_spread$
|
|
7028
|
+
function _object_spread$6(target) {
|
|
6855
7029
|
for(var i = 1; i < arguments.length; i++){
|
|
6856
7030
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6857
7031
|
var ownKeys = Object.keys(source);
|
|
@@ -6861,21 +7035,21 @@ function _object_spread$7(target) {
|
|
|
6861
7035
|
}));
|
|
6862
7036
|
}
|
|
6863
7037
|
ownKeys.forEach(function(key) {
|
|
6864
|
-
_define_property$
|
|
7038
|
+
_define_property$6(target, key, source[key]);
|
|
6865
7039
|
});
|
|
6866
7040
|
}
|
|
6867
7041
|
return target;
|
|
6868
7042
|
}
|
|
6869
|
-
function _sliced_to_array$
|
|
6870
|
-
return _array_with_holes$
|
|
7043
|
+
function _sliced_to_array$8(arr, i) {
|
|
7044
|
+
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$8();
|
|
6871
7045
|
}
|
|
6872
|
-
function _unsupported_iterable_to_array$
|
|
7046
|
+
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
6873
7047
|
if (!o) return;
|
|
6874
|
-
if (typeof o === "string") return _array_like_to_array$
|
|
7048
|
+
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
6875
7049
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
6876
7050
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
6877
7051
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
6878
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$
|
|
7052
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
6879
7053
|
}
|
|
6880
7054
|
function _ts_generator$2(thisArg, body) {
|
|
6881
7055
|
var f, y, t, _ = {
|
|
@@ -7060,8 +7234,8 @@ function ModuleHeader(param) {
|
|
|
7060
7234
|
}, [
|
|
7061
7235
|
window
|
|
7062
7236
|
]);
|
|
7063
|
-
var _useState = _sliced_to_array$
|
|
7064
|
-
var _useState1 = _sliced_to_array$
|
|
7237
|
+
var _useState = _sliced_to_array$8(useState(false), 2), canUndo = _useState[0], setCanUndo = _useState[1];
|
|
7238
|
+
var _useState1 = _sliced_to_array$8(useState(false), 2), canRedo = _useState1[0], setCanRedo = _useState1[1];
|
|
7065
7239
|
var handleUndo = function() {
|
|
7066
7240
|
undo();
|
|
7067
7241
|
};
|
|
@@ -7228,7 +7402,7 @@ function ModuleHeader(param) {
|
|
|
7228
7402
|
],
|
|
7229
7403
|
className: classnames('ModuleHeader', className),
|
|
7230
7404
|
height: "72px",
|
|
7231
|
-
style: _object_spread$
|
|
7405
|
+
style: _object_spread$6({}, style)
|
|
7232
7406
|
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
7233
7407
|
style: {
|
|
7234
7408
|
width: '1000px'
|
|
@@ -7316,7 +7490,7 @@ var targetColors = [
|
|
|
7316
7490
|
var ComboboxCellWidth = 200;
|
|
7317
7491
|
var DeleteButtonCellWidth = 50;
|
|
7318
7492
|
|
|
7319
|
-
function _define_property$
|
|
7493
|
+
function _define_property$5(obj, key, value) {
|
|
7320
7494
|
if (key in obj) {
|
|
7321
7495
|
Object.defineProperty(obj, key, {
|
|
7322
7496
|
value: value,
|
|
@@ -7329,7 +7503,7 @@ function _define_property$6(obj, key, value) {
|
|
|
7329
7503
|
}
|
|
7330
7504
|
return obj;
|
|
7331
7505
|
}
|
|
7332
|
-
function _object_spread$
|
|
7506
|
+
function _object_spread$5(target) {
|
|
7333
7507
|
for(var i = 1; i < arguments.length; i++){
|
|
7334
7508
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7335
7509
|
var ownKeys = Object.keys(source);
|
|
@@ -7339,7 +7513,7 @@ function _object_spread$6(target) {
|
|
|
7339
7513
|
}));
|
|
7340
7514
|
}
|
|
7341
7515
|
ownKeys.forEach(function(key) {
|
|
7342
|
-
_define_property$
|
|
7516
|
+
_define_property$5(target, key, source[key]);
|
|
7343
7517
|
});
|
|
7344
7518
|
}
|
|
7345
7519
|
return target;
|
|
@@ -7390,7 +7564,7 @@ function ModMatrixComboboxCell(param) {
|
|
|
7390
7564
|
className: "ModMatrixCell ModMatrixComboboxCell",
|
|
7391
7565
|
justifyContent: Box.justifyContent.center,
|
|
7392
7566
|
flexDirection: Box.flexDirection.column,
|
|
7393
|
-
style: _object_spread$
|
|
7567
|
+
style: _object_spread$5({
|
|
7394
7568
|
color: color,
|
|
7395
7569
|
cursor: isDisabled ? 'default' : 'pointer'
|
|
7396
7570
|
}, style),
|
|
@@ -7415,144 +7589,6 @@ function ModMatrixComboboxCell(param) {
|
|
|
7415
7589
|
}));
|
|
7416
7590
|
}
|
|
7417
7591
|
|
|
7418
|
-
function _array_like_to_array$9(arr, len) {
|
|
7419
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
7420
|
-
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
7421
|
-
return arr2;
|
|
7422
|
-
}
|
|
7423
|
-
function _array_with_holes$8(arr) {
|
|
7424
|
-
if (Array.isArray(arr)) return arr;
|
|
7425
|
-
}
|
|
7426
|
-
function _define_property$5(obj, key, value) {
|
|
7427
|
-
if (key in obj) {
|
|
7428
|
-
Object.defineProperty(obj, key, {
|
|
7429
|
-
value: value,
|
|
7430
|
-
enumerable: true,
|
|
7431
|
-
configurable: true,
|
|
7432
|
-
writable: true
|
|
7433
|
-
});
|
|
7434
|
-
} else {
|
|
7435
|
-
obj[key] = value;
|
|
7436
|
-
}
|
|
7437
|
-
return obj;
|
|
7438
|
-
}
|
|
7439
|
-
function _iterable_to_array_limit$8(arr, i) {
|
|
7440
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
7441
|
-
if (_i == null) return;
|
|
7442
|
-
var _arr = [];
|
|
7443
|
-
var _n = true;
|
|
7444
|
-
var _d = false;
|
|
7445
|
-
var _s, _e;
|
|
7446
|
-
try {
|
|
7447
|
-
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
7448
|
-
_arr.push(_s.value);
|
|
7449
|
-
if (i && _arr.length === i) break;
|
|
7450
|
-
}
|
|
7451
|
-
} catch (err) {
|
|
7452
|
-
_d = true;
|
|
7453
|
-
_e = err;
|
|
7454
|
-
} finally{
|
|
7455
|
-
try {
|
|
7456
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
7457
|
-
} finally{
|
|
7458
|
-
if (_d) throw _e;
|
|
7459
|
-
}
|
|
7460
|
-
}
|
|
7461
|
-
return _arr;
|
|
7462
|
-
}
|
|
7463
|
-
function _non_iterable_rest$8() {
|
|
7464
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7465
|
-
}
|
|
7466
|
-
function _object_spread$5(target) {
|
|
7467
|
-
for(var i = 1; i < arguments.length; i++){
|
|
7468
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
7469
|
-
var ownKeys = Object.keys(source);
|
|
7470
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
7471
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
7472
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
7473
|
-
}));
|
|
7474
|
-
}
|
|
7475
|
-
ownKeys.forEach(function(key) {
|
|
7476
|
-
_define_property$5(target, key, source[key]);
|
|
7477
|
-
});
|
|
7478
|
-
}
|
|
7479
|
-
return target;
|
|
7480
|
-
}
|
|
7481
|
-
function _sliced_to_array$8(arr, i) {
|
|
7482
|
-
return _array_with_holes$8(arr) || _iterable_to_array_limit$8(arr, i) || _unsupported_iterable_to_array$9(arr, i) || _non_iterable_rest$8();
|
|
7483
|
-
}
|
|
7484
|
-
function _unsupported_iterable_to_array$9(o, minLen) {
|
|
7485
|
-
if (!o) return;
|
|
7486
|
-
if (typeof o === "string") return _array_like_to_array$9(o, minLen);
|
|
7487
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
7488
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
7489
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
7490
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$9(o, minLen);
|
|
7491
|
-
}
|
|
7492
|
-
function Toggle(param) {
|
|
7493
|
-
var id = param.id, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onChange = param.onChange, _param_width = param.width, width = _param_width === void 0 ? ButtonSize.medium : _param_width, _param_height = param.height, height = _param_height === void 0 ? ButtonSize.medium : _param_height, label = param.label, labelColor = param.labelColor, outerGlowRadius = param.outerGlowRadius, displayValInHeader = param.displayValInHeader, blur = param.blur, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-text)' : _param_color, _param_highlightColor = param.highlightColor, highlightColor = _param_highlightColor === void 0 ? 'var(--color-text)' : _param_highlightColor, _param_highlightBackgroundColor = param.highlightBackgroundColor, highlightBackgroundColor = _param_highlightBackgroundColor === void 0 ? 'var(--bg-lv6)' : _param_highlightBackgroundColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'var(--bg-lv5)' : _param_backgroundColor, style = param.style;
|
|
7494
|
-
var _properties_choices;
|
|
7495
|
-
var _useState = _sliced_to_array$8(useState(false), 2), componentIsHovered = _useState[0], setComponentIsHovered = _useState[1];
|
|
7496
|
-
var _useCombobox = useCombobox({
|
|
7497
|
-
id: id,
|
|
7498
|
-
displayValInHeader: displayValInHeader,
|
|
7499
|
-
isDisabled: isDisabled,
|
|
7500
|
-
onChange: onChange
|
|
7501
|
-
}), selectedIndex = _useCombobox.selectedIndex, handleChange = _useCombobox.handleChange, properties = _useCombobox.properties, onMouseEnter = _useCombobox.onMouseEnter;
|
|
7502
|
-
var widthValue = (buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width]) ? buttonWidthMap === null || buttonWidthMap === void 0 ? void 0 : buttonWidthMap[width] : width;
|
|
7503
|
-
var heightValue = (buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height]) ? buttonHeightMap === null || buttonHeightMap === void 0 ? void 0 : buttonHeightMap[height] : height;
|
|
7504
|
-
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
7505
|
-
gap: Box.gap.mediumSmall,
|
|
7506
|
-
flexDirection: Box.flexDirection.column
|
|
7507
|
-
}, label || (properties === null || properties === void 0 ? void 0 : properties.name) ? /*#__PURE__*/ React__default.createElement(Label, {
|
|
7508
|
-
fontSize: Label.fontSize.xSmall,
|
|
7509
|
-
value: label || (properties === null || properties === void 0 ? void 0 : properties.name),
|
|
7510
|
-
color: labelColor,
|
|
7511
|
-
outerGlowRadius: outerGlowRadius,
|
|
7512
|
-
outerGlowColor: labelColor,
|
|
7513
|
-
blur: blur
|
|
7514
|
-
}) : null, /*#__PURE__*/ React__default.createElement(Box, {
|
|
7515
|
-
className: "ModMatrixCell Toggle ".concat(isDisabled ? 'isDisabled' : ''),
|
|
7516
|
-
justifyContent: Box.justifyContent.flexEnd,
|
|
7517
|
-
alignItems: Box.alignItems.flexStart,
|
|
7518
|
-
flexDirection: Box.flexDirection.column,
|
|
7519
|
-
style: _object_spread$5({
|
|
7520
|
-
color: componentIsHovered ? highlightColor : color,
|
|
7521
|
-
backgroundColor: componentIsHovered ? highlightBackgroundColor : backgroundColor,
|
|
7522
|
-
cursor: isDisabled ? 'default' : 'pointer',
|
|
7523
|
-
pointerEvents: 'all'
|
|
7524
|
-
}, style),
|
|
7525
|
-
width: widthValue,
|
|
7526
|
-
height: heightValue,
|
|
7527
|
-
onMouseEnter: function() {
|
|
7528
|
-
onMouseEnter();
|
|
7529
|
-
!isDisabled && setComponentIsHovered(true);
|
|
7530
|
-
},
|
|
7531
|
-
onMouseLeave: function() {
|
|
7532
|
-
return !isDisabled && setComponentIsHovered(false);
|
|
7533
|
-
},
|
|
7534
|
-
onClick: function(val) {
|
|
7535
|
-
// Update the toggle state
|
|
7536
|
-
var newIndex = Math.abs(selectedIndex - 1);
|
|
7537
|
-
handleChange(newIndex);
|
|
7538
|
-
// Save the selected row target to JUCE
|
|
7539
|
-
//
|
|
7540
|
-
}
|
|
7541
|
-
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
7542
|
-
flex: "1",
|
|
7543
|
-
style: {
|
|
7544
|
-
pointerEvents: 'none'
|
|
7545
|
-
}
|
|
7546
|
-
}, /*#__PURE__*/ React__default.createElement(Label, {
|
|
7547
|
-
fontSize: Label.fontSize.mediumSmall,
|
|
7548
|
-
style: {
|
|
7549
|
-
pointerEvents: 'none'
|
|
7550
|
-
}
|
|
7551
|
-
}, (properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices[selectedIndex]) || '0'))));
|
|
7552
|
-
}
|
|
7553
|
-
Toggle.width = ButtonSize;
|
|
7554
|
-
Toggle.height = ButtonSize;
|
|
7555
|
-
|
|
7556
7592
|
// import * as Juce from 'juce-framework-frontend';
|
|
7557
7593
|
function ModMatrixToggleCell(param) {
|
|
7558
7594
|
var modifier = param.modifier, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, rowId = param.rowId; param.color; param.style;
|
|
@@ -10424,5 +10460,5 @@ function CircularDiagramStyleVisualization(param) {
|
|
|
10424
10460
|
}));
|
|
10425
10461
|
}
|
|
10426
10462
|
|
|
10427
|
-
export { Slider$1 as BarSlider, Box, Button, CircularDiagramStyleVisualization, Combobox, FontSizes, GlobalContextProvider, Heading, IconButton, IndicatorLight, Input, KeyValueDisplayScreen, Label, ModuleFooter, ModuleHeader, Oscilloscope, RotarySlider, Slider, Spacing, Tabs, ThemeWrapper, clamp, decimalToPercent, defaultGlobalStateValue as defaultValue, normalisedToScaled, percentToDecimal, randomizeValue, scaledToNormalised as scaledTonormalised, useGlobalContext, useObservable, useSlider };
|
|
10463
|
+
export { Slider$1 as BarSlider, Box, Button, CircularDiagramStyleVisualization, Combobox, FontSizes, GlobalContextProvider, Heading, IconButton, IndicatorLight, Input, KeyValueDisplayScreen, Label, ModuleFooter, ModuleHeader, Oscilloscope, RotarySlider, Slider, Spacing, Tabs, ThemeWrapper, Toggle, clamp, decimalToPercent, defaultGlobalStateValue as defaultValue, normalisedToScaled, percentToDecimal, randomizeValue, scaledToNormalised as scaledTonormalised, useGlobalContext, useObservable, useSlider };
|
|
10428
10464
|
//# sourceMappingURL=index.js.map
|
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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"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,MAAM,GAAG,GAAG,GAAG,EAAE;AAChC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ;;AAE7B,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO;;AAExD,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU;;AAEzB,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;AAC/C,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC7B;AACA,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAC3B;;AAEA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import './IconButton.css';
|
|
3
3
|
import { Spacing } from '../../common/types';
|
|
4
4
|
import { Icons } from '../../core/Icon/Icon';
|
|
5
|
-
declare function IconButton({ id, icon, onClick, disabled, color, iconColor, highlightColor, highlightIconColor, backgroundColor, padding, margin, width, iconWidth, label, height, className, style, }: {
|
|
5
|
+
declare function IconButton({ id, icon, onClick, disabled, color, iconColor, highlightColor, highlightIconColor, disabledIconColor, backgroundColor, padding, margin, width, iconWidth, label, height, className, style, }: {
|
|
6
6
|
id: string;
|
|
7
7
|
icon: Icons;
|
|
8
8
|
onClick?: any;
|
|
9
9
|
highlightColor?: string;
|
|
10
|
+
disabledIconColor?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
padding?: Array<Spacing>;
|
|
12
13
|
margin?: Array<Spacing>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/advanced/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAIvD,iBAAS,UAAU,CAAC,EAClB,EAAE,EACF,IAAI,EACJ,OAAO,EACP,QAAgB,EAChB,KAA2B,EAC3B,SAAmC,EACnC,cAAc,EACd,kBAAwC,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../../src/advanced/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAY,MAAM,sBAAsB,CAAC;AAIvD,iBAAS,UAAU,CAAC,EAClB,EAAE,EACF,IAAI,EACJ,OAAO,EACP,QAAgB,EAChB,KAA2B,EAC3B,SAAmC,EACnC,cAAc,EACd,kBAAwC,EACxC,iBAA2C,EAE3C,eAAe,EACf,OAA+B,EAC/B,MAA6B,EAC7B,KAAc,EACd,SAAS,EACT,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,GACN,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAA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AAM,CAAC;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,GAAG,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,EAChB,KAAK,EACL,KAA2B,EAC3B,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,uBAAyC,EACzC,+BAA+B,EAC/B,0BAAgD,EAChD,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA4C,EAC5C,iBAAmC,EACnC,kBAAsB,EACtB,iBAAqB,EACrB,iBAAgC,EAChC,qBAAuC,EACvC,oBAAoB,EACpB,YAAiB,EACjB,eAAe,EACf,eAAe,EACf,SAAS,EACT,QAAQ,EACR,UAAU,EACV,QAA8B,EAC9B,KAAW,EACX,cAAmB,EACnB,EAAE,EACF,KAAK,GACN,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"ListboxComponent.d.ts","sourceRoot":"","sources":["../../../../src/core/Combobox/ListboxComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,gBAAgB,CAAC;AAMxB,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,MAAM,WAAW,aAAa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KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,GAAG,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,EAChB,KAAK,EACL,KAA2B,EAC3B,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,uBAAyC,EACzC,+BAA+B,EAC/B,0BAAgD,EAChD,yBAAyB,EACzB,8BAA8B,EAC9B,yBAAyB,EACzB,0BAA4C,EAC5C,iBAAmC,EACnC,kBAAsB,EACtB,iBAAqB,EACrB,iBAAgC,EAChC,qBAAuC,EACvC,oBAAoB,EACpB,YAAiB,EACjB,eAAe,EACf,eAAe,EACf,SAAS,EACT,QAAQ,EACR,UAAU,EACV,QAA8B,EAC9B,KAAW,EACX,cAAmB,EACnB,EAAE,EACF,KAAK,GACN,EAAE,aAAa,qBAmPf;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonSize } from '../../common/types';
|
|
3
|
-
declare function Toggle({ id, isDisabled, onChange, width, height, label, labelColor, outerGlowRadius, displayValInHeader, blur, color, highlightColor, highlightBackgroundColor, backgroundColor, style, }: {
|
|
3
|
+
declare function Toggle({ id, isDisabled, onChange, className, width, height, label, labelColor, outerGlowRadius, outerGlowColors, displayValInHeader, blur, borderColor, borderWidth, color, cornerBevel, highlightColor, highlightBorderColor, highlightBackgroundColor, backgroundColor, style, }: {
|
|
4
4
|
id: any;
|
|
5
5
|
label?: string;
|
|
6
|
+
className?: string;
|
|
6
7
|
blur?: number;
|
|
7
8
|
labelColor?: string;
|
|
8
|
-
height?: string;
|
|
9
9
|
isDisabled?: boolean;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
cornerBevel?: Array<number>;
|
|
10
12
|
outerGlowRadius?: number;
|
|
13
|
+
outerGlowColors?: Array<string>;
|
|
14
|
+
borderWidth?: number;
|
|
11
15
|
displayValInHeader?: boolean;
|
|
12
16
|
onChange?: () => void;
|
|
13
17
|
size?: ButtonSize;
|
|
14
|
-
width?: string;
|
|
18
|
+
width?: ButtonSize | string;
|
|
19
|
+
height?: ButtonSize | string;
|
|
15
20
|
color?: string;
|
|
16
21
|
highlightColor?: string;
|
|
17
22
|
highlightBackgroundColor?: string;
|
|
23
|
+
highlightBorderColor?: string;
|
|
18
24
|
backgroundColor?: string;
|
|
19
25
|
style?: any;
|
|
20
26
|
}): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/core/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../../src/core/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAQhD,iBAAS,MAAM,CAAC,EACd,EAAE,EACF,UAAkB,EAClB,QAAQ,EACR,SAAS,EACT,KAAyB,EACzB,MAA0B,EAC1B,KAAK,EACL,UAAU,EACV,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,IAAI,EACJ,WAAW,EACX,WAAW,EACX,KAA2B,EAC3B,WAA0B,EAC1B,cAAoC,EACpC,oBAAoB,EACpB,wBAA0C,EAC1C,eAAiC,EACjC,KAAK,GACN,EAAE;IACD,EAAE,EAAE,GAAG,CAAC;IACR,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,qBA6GA;kBA1JQ,MAAM;;;;AA+Jf,eAAe,MAAM,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import RotarySlider from './core/Slider/RotarySlider';
|
|
|
6
6
|
import BarSlider from './core/Slider/BarSlider';
|
|
7
7
|
import Slider from './core/Slider/Slider';
|
|
8
8
|
import Heading from './core/Heading/Heading';
|
|
9
|
+
import Toggle from './core/Toggle/Toggle';
|
|
9
10
|
import Label from './core/Label/Label';
|
|
10
11
|
import IndicatorLight from './core/Indicators/IndicatorLight';
|
|
11
12
|
import Input from './core/Input/Input';
|
|
@@ -23,5 +24,5 @@ import GlobalContextProvider, { useGlobalContext, defaultGlobalStateValue } from
|
|
|
23
24
|
import type { GlobalState } from './context/GlobalContextProvider';
|
|
24
25
|
import { Spacing, FontSizes } from 'common/types';
|
|
25
26
|
import { randomizeValue, clamp, normalisedToScaled, scaledToNormalised, decimalToPercent, percentToDecimal } from './common/utils';
|
|
26
|
-
export { Button, IconButton, Combobox, Slider, RotarySlider, BarSlider, clamp, normalisedToScaled, scaledToNormalised as scaledTonormalised, decimalToPercent, percentToDecimal, useSlider, ThemeWrapper, Tabs, Heading, Box, Label, IndicatorLight, KeyValueDisplayScreen, Oscilloscope, Input, ModuleHeader, ModuleFooter, Spacing, FontSizes, useObservable, randomizeValue, GlobalContextProvider, useGlobalContext, GlobalState, CircularDiagramStyleVisualization, defaultGlobalStateValue as defaultValue, };
|
|
27
|
+
export { Button, Toggle, IconButton, Combobox, Slider, RotarySlider, BarSlider, clamp, normalisedToScaled, scaledToNormalised as scaledTonormalised, decimalToPercent, percentToDecimal, useSlider, ThemeWrapper, Tabs, Heading, Box, Label, IndicatorLight, KeyValueDisplayScreen, Oscilloscope, Input, ModuleHeader, ModuleFooter, Spacing, FontSizes, useObservable, randomizeValue, GlobalContextProvider, useGlobalContext, GlobalState, CircularDiagramStyleVisualization, defaultGlobalStateValue as defaultValue, };
|
|
27
28
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,cAAc,CAAC;AACtB,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAChD,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO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