@antimatter-audio/antimatter-ui 10.3.0 → 10.4.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/ModMatrix/ModMatrixCell.d.ts +1 -3
- package/dist/advanced/ModMatrix/ModMatrixCell.d.ts.map +1 -1
- package/dist/advanced/ModuleFooter/LFOTab.d.ts +4 -0
- package/dist/advanced/ModuleFooter/LFOTab.d.ts.map +1 -0
- package/dist/index.js +412 -281
- package/dist/index.js.map +1 -1
- package/dist/src/advanced/ModuleFooter/LFOTab.d.ts +4 -0
- package/dist/src/advanced/ModuleFooter/LFOTab.d.ts.map +1 -0
- package/dist/src/advanced/ModuleFooter/ModuleFooter.d.ts +0 -1
- package/dist/src/advanced/ModuleFooter/ModuleFooter.d.ts.map +1 -1
- package/dist/src/core/Box/Box.d.ts +1 -0
- package/dist/src/core/Box/Box.d.ts.map +1 -1
- package/dist/src/core/Dropdown/Dropdown.d.ts +4 -2
- package/dist/src/core/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/core/Slider/RotarySlider.d.ts +2 -1
- package/dist/src/core/Slider/RotarySlider.d.ts.map +1 -1
- package/dist/src/hooks/useDropdown.d.ts +5 -5
- package/dist/src/hooks/useDropdown.d.ts.map +1 -1
- package/dist/src/hooks/useSlider.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModMatrixCell.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModMatrix/ModMatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,iBAAS,aAAa,CAAC,EACrB,
|
|
1
|
+
{"version":3,"file":"ModMatrixCell.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModMatrix/ModMatrixCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,iBAAS,aAAa,CAAC,EACrB,QAAQ,EACR,KAAK,EACL,KAAK,GACN,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,qBAsCA;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LFOTab.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModuleFooter/LFOTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,iBAAS,MAAM,sBA+Ed;AAED,eAAe,MAAM,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ function styleInject(css, ref) {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var css_248z$b = "@import 'tailwindcss';\n@import 'tailwindcss/base';\n@import 'tailwindcss/utilities';\n\n@theme static {\n --color-brand: #bb68d9;\n --color-alert: #8a0101;\n --color-text: #bab6cf;\n --color-gray-100: #c7c3de;\n --color-gray-200: #9a96ab;\n --color-gray-300: #838091;\n --color-gray-400: #595763;\n --color-gray-500: #4c4a54;\n --color-gray-600: #2e2c33;\n --color-gray-700: #1e1d21;\n --color-gray-800: #101012;\n --color-gray-900: #09090a;\n\n --color-VFDBlue-100: #0d3814;\n --color-VFDBlue-200: #234e4a;\n --color-VFDBlue-300: #128073;\n --color-VFDBlue-400: #138c6e;\n --color-VFDBlue-500: #1abe95;\n --color-VFDBlue-600: #23d8a4;\n --color-VFDBlue-700: #4aeea4;\n --color-VFDBlue-1000: #35edb4;\n --spacing-none: 0px;\n --spacing-xs: 2px;\n --spacing-sm: 4px;\n --spacing-ms: 6px;\n --spacing-md: 8px;\n --spacing-ml: 12px;\n --spacing-lg: 16px;\n --spacing-xl: 20px;\n --m-none: 0px;\n --m-xs: 2px;\n --m-sm: 4px;\n --m-ms: 6px;\n --m-md: 8px;\n --m-ml: 12px;\n --m-lg: 16px;\n --m-xl: 20px;\n --mt-none: 0px;\n --mt-xs: 2px;\n --mt-sm: 4px;\n --mt-ms: 6px;\n --mt-md: 8px;\n --mt-ml: 12px;\n --mt-lg: 16px;\n --mt-xl: 20px;\n --mr-none: 0px;\n --mr-xs: 2px;\n --mr-sm: 4px;\n --mr-ms: 6px;\n --mr-md: 8px;\n --mr-ml: 12px;\n --mr-lg: 16px;\n --mr-xl: 20px;\n --mb-none: 0px;\n --mb-xs: 2px;\n --mb-sm: 4px;\n --mb-ms: 6px;\n --mb-md: 8px;\n --mb-ml: 12px;\n --mb-lg: 16px;\n --mb-xl: 20px;\n --ml-none: 0px;\n --ml-xs: 2px;\n --ml-sm: 4px;\n --ml-ms: 6px;\n --ml-md: 8px;\n --ml-ml: 12px;\n --ml-lg: 16px;\n --ml-xl: 20px;\n --p-none: 0px;\n --p-xs: 2px;\n --p-sm: 4px;\n --p-ms: 6px;\n --p-md: 8px;\n --p-ml: 12px;\n --p-lg: 16px;\n --p-xl: 20px;\n --pt-none: 0px;\n --pt-xs: 2px;\n --pt-sm: 4px;\n --pt-ms: 6px;\n --pt-md: 8px;\n --pt-ml: 12px;\n --pt-lg: 16px;\n --pt-xl: 20px;\n --pr-none: 0px;\n --pr-xs: 2px;\n --pr-sm: 4px;\n --pr-ms: 6px;\n --pr-md: 8px;\n --pr-ml: 12px;\n --pr-lg: 16px;\n --pr-xl: 20px;\n --pb-none: 0px;\n --pb-xs: 2px;\n --pb-sm: 4px;\n --pb-ms: 6px;\n --pb-md: 8px;\n --pb-ml: 12px;\n --pb-lg: 16px;\n --pb-xl: 20px;\n --pl-none: 0px;\n --pl-xs: 2px;\n --pl-sm: 4px;\n --pl-ms: 6px;\n --pl-md: 8px;\n --pl-ml: 12px;\n --pl-lg: 16px;\n --pl-xl: 20px;\n --bg-page: #1e1d21;\n --bg-section: #1e1d21;\n --bg-popover: #09090a;\n --bg-highlighted: #838091;\n --bg-muted: #595763;\n --bg-selected: #2e2c33;\n --bg-input: #1e1d21;\n --font-leagueSpartan: 'LeagueSpartan';\n --text-xs: 0.625rem;\n --text-sm: 0.75rem;\n --text-ms: 0.813rem;\n --text-md: 0.875rem;\n --text-lg: 1rem;\n --text-xl: 1.25rem;\n --text-title: 1.75rem;\n --gap-none: 0px;\n --gap-xs: 2px;\n --gap-sm: 4px;\n --gap-ms: 6px;\n --gap-md: 8px;\n --gap-ml: 12px;\n --gap-lg: 16px;\n --gap-xl: 20px;\n}\n\ninput,\ninput:hover,\ninput:focus,\ninput:focus-visible {\n background: transparent;\n border: none;\n outline: none;\n appearance: textfield;\n}\n\nbutton,\nbutton:hover,\nbutton:focus,\nbutton:focus-visible {\n
|
|
36
|
+
var css_248z$b = "@import 'tailwindcss';\n@import 'tailwindcss/base';\n@import 'tailwindcss/utilities';\n\n@theme static {\n --color-brand: #bb68d9;\n --color-alert: #8a0101;\n --color-text: #bab6cf;\n --color-gray-100: #c7c3de;\n --color-gray-200: #9a96ab;\n --color-gray-300: #838091;\n --color-gray-400: #595763;\n --color-gray-500: #4c4a54;\n --color-gray-600: #2e2c33;\n --color-gray-700: #1e1d21;\n --color-gray-800: #101012;\n --color-gray-900: #09090a;\n\n --color-VFDBlue-100: #0d3814;\n --color-VFDBlue-200: #234e4a;\n --color-VFDBlue-300: #128073;\n --color-VFDBlue-400: #138c6e;\n --color-VFDBlue-500: #1abe95;\n --color-VFDBlue-600: #23d8a4;\n --color-VFDBlue-700: #4aeea4;\n --color-VFDBlue-1000: #35edb4;\n --spacing-none: 0px;\n --spacing-xs: 2px;\n --spacing-sm: 4px;\n --spacing-ms: 6px;\n --spacing-md: 8px;\n --spacing-ml: 12px;\n --spacing-lg: 16px;\n --spacing-xl: 20px;\n --m-none: 0px;\n --m-xs: 2px;\n --m-sm: 4px;\n --m-ms: 6px;\n --m-md: 8px;\n --m-ml: 12px;\n --m-lg: 16px;\n --m-xl: 20px;\n --mt-none: 0px;\n --mt-xs: 2px;\n --mt-sm: 4px;\n --mt-ms: 6px;\n --mt-md: 8px;\n --mt-ml: 12px;\n --mt-lg: 16px;\n --mt-xl: 20px;\n --mr-none: 0px;\n --mr-xs: 2px;\n --mr-sm: 4px;\n --mr-ms: 6px;\n --mr-md: 8px;\n --mr-ml: 12px;\n --mr-lg: 16px;\n --mr-xl: 20px;\n --mb-none: 0px;\n --mb-xs: 2px;\n --mb-sm: 4px;\n --mb-ms: 6px;\n --mb-md: 8px;\n --mb-ml: 12px;\n --mb-lg: 16px;\n --mb-xl: 20px;\n --ml-none: 0px;\n --ml-xs: 2px;\n --ml-sm: 4px;\n --ml-ms: 6px;\n --ml-md: 8px;\n --ml-ml: 12px;\n --ml-lg: 16px;\n --ml-xl: 20px;\n --p-none: 0px;\n --p-xs: 2px;\n --p-sm: 4px;\n --p-ms: 6px;\n --p-md: 8px;\n --p-ml: 12px;\n --p-lg: 16px;\n --p-xl: 20px;\n --pt-none: 0px;\n --pt-xs: 2px;\n --pt-sm: 4px;\n --pt-ms: 6px;\n --pt-md: 8px;\n --pt-ml: 12px;\n --pt-lg: 16px;\n --pt-xl: 20px;\n --pr-none: 0px;\n --pr-xs: 2px;\n --pr-sm: 4px;\n --pr-ms: 6px;\n --pr-md: 8px;\n --pr-ml: 12px;\n --pr-lg: 16px;\n --pr-xl: 20px;\n --pb-none: 0px;\n --pb-xs: 2px;\n --pb-sm: 4px;\n --pb-ms: 6px;\n --pb-md: 8px;\n --pb-ml: 12px;\n --pb-lg: 16px;\n --pb-xl: 20px;\n --pl-none: 0px;\n --pl-xs: 2px;\n --pl-sm: 4px;\n --pl-ms: 6px;\n --pl-md: 8px;\n --pl-ml: 12px;\n --pl-lg: 16px;\n --pl-xl: 20px;\n --bg-page: #1e1d21;\n --bg-section: #1e1d21;\n --bg-popover: #09090a;\n --bg-highlighted: #838091;\n --bg-muted: #595763;\n --bg-selected: #2e2c33;\n --bg-input: #1e1d21;\n --font-leagueSpartan: 'LeagueSpartan';\n --text-xs: 0.625rem;\n --text-sm: 0.75rem;\n --text-ms: 0.813rem;\n --text-md: 0.875rem;\n --text-lg: 1rem;\n --text-xl: 1.25rem;\n --text-title: 1.75rem;\n --gap-none: 0px;\n --gap-xs: 2px;\n --gap-sm: 4px;\n --gap-ms: 6px;\n --gap-md: 8px;\n --gap-ml: 12px;\n --gap-lg: 16px;\n --gap-xl: 20px;\n}\n\ninput,\ninput:hover,\ninput:focus,\ninput:focus-visible {\n background: transparent;\n border: none;\n outline: none;\n appearance: textfield;\n}\n\nbutton,\nbutton:hover,\nbutton:focus,\nbutton:focus-visible {\n outline: none;\n}\n\nbutton:disabled,\ninput:disabled {\n cursor: not-allowed;\n}\n\ndiv:focus,\ndiv:focus-visible {\n outline: none;\n appearance: textfield;\n}\n\n@font-face {\n font-family: LeagueSpartan;\n /* ascent-override: 70%; */\n src: url('./common/assets/fonts/LeagueSpartan-Regular.ttf');\n}\n\n@font-face {\n font-family: LeagueSpartan;\n /* ascent-override: 70%; */\n src: url('./common/assets/fonts/LeagueSpartan-Thin.ttf');\n font-weight: lighter;\n}\n";
|
|
37
37
|
styleInject(css_248z$b);
|
|
38
38
|
|
|
39
39
|
var Spacing = /*#__PURE__*/ function(Spacing) {
|
|
@@ -218,7 +218,7 @@ function _array_like_to_array$c(arr, len) {
|
|
|
218
218
|
function _array_with_holes$c(arr) {
|
|
219
219
|
if (Array.isArray(arr)) return arr;
|
|
220
220
|
}
|
|
221
|
-
function _define_property$
|
|
221
|
+
function _define_property$k(obj, key, value) {
|
|
222
222
|
if (key in obj) {
|
|
223
223
|
Object.defineProperty(obj, key, {
|
|
224
224
|
value: value,
|
|
@@ -258,7 +258,7 @@ function _iterable_to_array_limit$c(arr, i) {
|
|
|
258
258
|
function _non_iterable_rest$c() {
|
|
259
259
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
260
260
|
}
|
|
261
|
-
function _object_spread$
|
|
261
|
+
function _object_spread$k(target) {
|
|
262
262
|
for(var i = 1; i < arguments.length; i++){
|
|
263
263
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
264
264
|
var ownKeys = Object.keys(source);
|
|
@@ -268,7 +268,7 @@ function _object_spread$j(target) {
|
|
|
268
268
|
}));
|
|
269
269
|
}
|
|
270
270
|
ownKeys.forEach(function(key) {
|
|
271
|
-
_define_property$
|
|
271
|
+
_define_property$k(target, key, source[key]);
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
return target;
|
|
@@ -347,7 +347,7 @@ function Button(param) {
|
|
|
347
347
|
onMouseDown: handleMouseDown,
|
|
348
348
|
disabled: disabled,
|
|
349
349
|
onClick: onClick && onClick,
|
|
350
|
-
style: _object_spread$
|
|
350
|
+
style: _object_spread$k({
|
|
351
351
|
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
352
352
|
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
353
353
|
paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
|
|
@@ -365,7 +365,7 @@ Button.margin = Spacing;
|
|
|
365
365
|
Button.type = ButtonType;
|
|
366
366
|
Button.size = ButtonSize;
|
|
367
367
|
|
|
368
|
-
var css_248z$8 = ".Dropdown-button {\n font-size: var(--text-sm);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--spacing-lg);\n cursor: pointer;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-transform: uppercase;\n text-align: center;\n border
|
|
368
|
+
var css_248z$8 = ".Dropdown-button {\n font-size: var(--text-sm);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--spacing-lg);\n cursor: pointer;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-transform: uppercase;\n text-align: center;\n border-radius: var(--radius-sm);\n appearance: none;\n user-select: none;\n -webkit-user-select: none;\n height: var(--spacing-xl);\n background: var(--color-gray-800);\n color: var(--color-text);\n &:hover,\n &:focus,\n &:active {\n outline: none;\n background-color: var(--bg-highlighted);\n }\n &:disabled {\n cursor: not-allowed;\n }\n}\n\n.Dropdown-items {\n border: 2px solid;\n}\n\n.Dropdown-item {\n background-color: var(--bg-page);\n font-size: var(--text-sm);\n padding: var(--spacing-md) var(--spacing-xl);\n min-width: 100px;\n color: var(--color-text);\n cursor: pointer;\n text-align: center;\n text-transform: uppercase;\n font-weight: bold;\n}\n\n.Dropdown-item[data-selected] {\n background-color: var(--bg-popover);\n color: var(--color-text);\n}\n\n.Dropdown-item[data-active] {\n background-color: var(--bg-popover);\n color: var(--color-text);\n}\n";
|
|
369
369
|
styleInject(css_248z$8);
|
|
370
370
|
|
|
371
371
|
function useObservable(param) {
|
|
@@ -416,7 +416,7 @@ function _array_like_to_array$b(arr, len) {
|
|
|
416
416
|
function _array_with_holes$b(arr) {
|
|
417
417
|
if (Array.isArray(arr)) return arr;
|
|
418
418
|
}
|
|
419
|
-
function _define_property$
|
|
419
|
+
function _define_property$j(obj, key, value) {
|
|
420
420
|
if (key in obj) {
|
|
421
421
|
Object.defineProperty(obj, key, {
|
|
422
422
|
value: value,
|
|
@@ -456,7 +456,7 @@ function _iterable_to_array_limit$b(arr, i) {
|
|
|
456
456
|
function _non_iterable_rest$b() {
|
|
457
457
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
458
458
|
}
|
|
459
|
-
function _object_spread$
|
|
459
|
+
function _object_spread$j(target) {
|
|
460
460
|
for(var i = 1; i < arguments.length; i++){
|
|
461
461
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
462
462
|
var ownKeys = Object.keys(source);
|
|
@@ -466,7 +466,7 @@ function _object_spread$i(target) {
|
|
|
466
466
|
}));
|
|
467
467
|
}
|
|
468
468
|
ownKeys.forEach(function(key) {
|
|
469
|
-
_define_property$
|
|
469
|
+
_define_property$j(target, key, source[key]);
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
return target;
|
|
@@ -518,39 +518,39 @@ var defaultGlobalStateValue = {
|
|
|
518
518
|
var reducer = function(state, action) {
|
|
519
519
|
switch(action.type){
|
|
520
520
|
case 'HIGHLIGHTED_ITEM_CHANGED':
|
|
521
|
-
return _object_spread_props$3(_object_spread$
|
|
521
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
522
522
|
highlightedItem: action.payload
|
|
523
523
|
});
|
|
524
524
|
case 'ADVANCED_VIEW_TOGGLED':
|
|
525
|
-
return _object_spread_props$3(_object_spread$
|
|
525
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
526
526
|
advancedView: action.payload
|
|
527
527
|
});
|
|
528
528
|
case 'AUTOMATABLE_PARAMS_LIST_RECEIVED':
|
|
529
|
-
return _object_spread_props$3(_object_spread$
|
|
529
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
530
530
|
automatableParamsList: action.payload
|
|
531
531
|
});
|
|
532
532
|
case 'AUTOMATABLE_PARAM_LABELS_RECEIVED':
|
|
533
|
-
return _object_spread_props$3(_object_spread$
|
|
533
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
534
534
|
automatableParamLabels: action.payload
|
|
535
535
|
});
|
|
536
536
|
case 'MOD_SLOTS_RECEIVED':
|
|
537
537
|
var _action_payload;
|
|
538
|
-
return _object_spread_props$3(_object_spread$
|
|
538
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
539
539
|
modSlots: action === null || action === void 0 ? void 0 : (_action_payload = action.payload) === null || _action_payload === void 0 ? void 0 : _action_payload.reduce(function(acc, val) {
|
|
540
|
-
return _object_spread_props$3(_object_spread$
|
|
540
|
+
return _object_spread_props$3(_object_spread$j({}, acc), _define_property$j({}, val[0], val[1]));
|
|
541
541
|
}, {})
|
|
542
542
|
});
|
|
543
543
|
case 'MOD_SLOT_UPDATED':
|
|
544
544
|
var _action_payload1, _action_payload2;
|
|
545
|
-
return _object_spread_props$3(_object_spread$
|
|
546
|
-
modSlots: _object_spread_props$3(_object_spread$
|
|
545
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
546
|
+
modSlots: _object_spread_props$3(_object_spread$j({}, state === null || state === void 0 ? void 0 : state.modSlots), _define_property$j({}, (_action_payload1 = action.payload) === null || _action_payload1 === void 0 ? void 0 : _action_payload1[0], action === null || action === void 0 ? void 0 : (_action_payload2 = action.payload) === null || _action_payload2 === void 0 ? void 0 : _action_payload2[1]))
|
|
547
547
|
});
|
|
548
548
|
case 'MOD_SLOT_PARAMS_LIST_RECEIVED':
|
|
549
|
-
return _object_spread_props$3(_object_spread$
|
|
549
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
550
550
|
modSlotParams: action === null || action === void 0 ? void 0 : action.payload
|
|
551
551
|
});
|
|
552
552
|
case 'MOD_SLOT_PARAM_LABELS_RECIEVED':
|
|
553
|
-
return _object_spread_props$3(_object_spread$
|
|
553
|
+
return _object_spread_props$3(_object_spread$j({}, state), {
|
|
554
554
|
modSlotParamLabels: action === null || action === void 0 ? void 0 : action.payload
|
|
555
555
|
});
|
|
556
556
|
default:
|
|
@@ -692,7 +692,7 @@ var useDropdown = function(param) {
|
|
|
692
692
|
var id = param.id, label = param.label, _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, filter = param.filter, onChange = param.onChange, _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader;
|
|
693
693
|
var _properties_choices;
|
|
694
694
|
var comboBoxState = Juce.getComboBoxState(id);
|
|
695
|
-
var _useState = _sliced_to_array$a(useState(comboBoxState.getChoiceIndex()), 2),
|
|
695
|
+
var _useState = _sliced_to_array$a(useState(comboBoxState.getChoiceIndex()), 2), index = _useState[0], setIndex = _useState[1];
|
|
696
696
|
var _useState1 = _sliced_to_array$a(useState(comboBoxState.properties), 2), properties = _useState1[0], setProperties = _useState1[1];
|
|
697
697
|
var setHighlightedItem = useGlobalContext().setHighlightedItem;
|
|
698
698
|
var choices = items.length ? items : (properties === null || properties === void 0 ? void 0 : (_properties_choices = properties.choices) === null || _properties_choices === void 0 ? void 0 : _properties_choices.length) ? properties === null || properties === void 0 ? void 0 : properties.choices : [];
|
|
@@ -702,30 +702,32 @@ var useDropdown = function(param) {
|
|
|
702
702
|
}) : choices;
|
|
703
703
|
var prevIndex = useRef(null);
|
|
704
704
|
var handleChange = function(value) {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
705
|
+
var choiceIndex = choices.indexOf(value);
|
|
706
|
+
if (choiceIndex !== prevIndex.current) {
|
|
707
|
+
comboBoxState.setChoiceIndex(choiceIndex);
|
|
708
|
+
setIndex(choiceIndex);
|
|
709
|
+
onChange && onChange(choiceIndex);
|
|
709
710
|
// //@ts-expect-error
|
|
710
711
|
// window.__JUCE__.backend.emitEvent('undoableActionOccurred', {});
|
|
711
712
|
if (displayValInHeader) {
|
|
712
|
-
setHighlightedItem({
|
|
713
|
+
setHighlightedItem && setHighlightedItem({
|
|
713
714
|
label: label,
|
|
714
|
-
value:
|
|
715
|
+
value: value
|
|
715
716
|
});
|
|
716
717
|
}
|
|
717
|
-
prevIndex.current =
|
|
718
|
+
prevIndex.current = choiceIndex;
|
|
718
719
|
}
|
|
720
|
+
return choices[choiceIndex];
|
|
719
721
|
};
|
|
720
722
|
useEffect(function() {
|
|
721
723
|
var comboBoxState = Juce.getComboBoxState(id);
|
|
722
|
-
|
|
724
|
+
setIndex(comboBoxState.getChoiceIndex());
|
|
723
725
|
}, [
|
|
724
726
|
id
|
|
725
727
|
]);
|
|
726
728
|
useEffect(function() {
|
|
727
729
|
var valueListenerId = comboBoxState.valueChangedEvent.addListener(function() {
|
|
728
|
-
|
|
730
|
+
setIndex(comboBoxState.getChoiceIndex());
|
|
729
731
|
});
|
|
730
732
|
var propertiesListenerId = comboBoxState.propertiesChangedEvent.addListener(function() {
|
|
731
733
|
setProperties(comboBoxState.properties);
|
|
@@ -739,16 +741,16 @@ var useDropdown = function(param) {
|
|
|
739
741
|
]);
|
|
740
742
|
var onMouseEnter = function() {
|
|
741
743
|
if (displayValInHeader) {
|
|
742
|
-
setHighlightedItem({
|
|
744
|
+
setHighlightedItem && (setHighlightedItem === null || setHighlightedItem === void 0 ? void 0 : setHighlightedItem({
|
|
743
745
|
label: label,
|
|
744
|
-
value: choices === null || choices === void 0 ? void 0 : choices[
|
|
745
|
-
});
|
|
746
|
+
value: choices === null || choices === void 0 ? void 0 : choices[index]
|
|
747
|
+
}));
|
|
746
748
|
}
|
|
747
749
|
};
|
|
748
750
|
return {
|
|
749
|
-
value:
|
|
750
|
-
|
|
751
|
-
|
|
751
|
+
value: choices[index],
|
|
752
|
+
index: index,
|
|
753
|
+
setIndex: setIndex,
|
|
752
754
|
choices: choices,
|
|
753
755
|
filteredChoices: filteredChoices,
|
|
754
756
|
onMouseEnter: onMouseEnter,
|
|
@@ -756,21 +758,274 @@ var useDropdown = function(param) {
|
|
|
756
758
|
};
|
|
757
759
|
};
|
|
758
760
|
|
|
761
|
+
var JustifyContent = /*#__PURE__*/ function(JustifyContent) {
|
|
762
|
+
JustifyContent["flexStart"] = "flex-start";
|
|
763
|
+
JustifyContent["flexEnd"] = "flex-end";
|
|
764
|
+
JustifyContent["center"] = "center";
|
|
765
|
+
JustifyContent["spaceBetween"] = "space-between";
|
|
766
|
+
JustifyContent["spaceAround"] = "space-around";
|
|
767
|
+
JustifyContent["spaceEvenly"] = "space-evenly";
|
|
768
|
+
return JustifyContent;
|
|
769
|
+
}({});
|
|
770
|
+
var AlignItems = /*#__PURE__*/ function(AlignItems) {
|
|
771
|
+
AlignItems["flexStart"] = "flex-start";
|
|
772
|
+
AlignItems["flexEnd"] = "flex-end";
|
|
773
|
+
AlignItems["center"] = "center";
|
|
774
|
+
AlignItems["stretch"] = "stretch";
|
|
775
|
+
AlignItems["baseline"] = "baseline";
|
|
776
|
+
return AlignItems;
|
|
777
|
+
}({});
|
|
778
|
+
var LayoutTags = /*#__PURE__*/ function(LayoutTags) {
|
|
779
|
+
LayoutTags["header"] = "header";
|
|
780
|
+
LayoutTags["main"] = "main";
|
|
781
|
+
LayoutTags["section"] = "section";
|
|
782
|
+
LayoutTags["div"] = "div";
|
|
783
|
+
LayoutTags["footer"] = "footer";
|
|
784
|
+
LayoutTags["ul"] = "ul";
|
|
785
|
+
LayoutTags["li"] = "li";
|
|
786
|
+
return LayoutTags;
|
|
787
|
+
}({});
|
|
788
|
+
|
|
789
|
+
function _define_property$i(obj, key, value) {
|
|
790
|
+
if (key in obj) {
|
|
791
|
+
Object.defineProperty(obj, key, {
|
|
792
|
+
value: value,
|
|
793
|
+
enumerable: true,
|
|
794
|
+
configurable: true,
|
|
795
|
+
writable: true
|
|
796
|
+
});
|
|
797
|
+
} else {
|
|
798
|
+
obj[key] = value;
|
|
799
|
+
}
|
|
800
|
+
return obj;
|
|
801
|
+
}
|
|
802
|
+
function _object_spread$i(target) {
|
|
803
|
+
for(var i = 1; i < arguments.length; i++){
|
|
804
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
805
|
+
var ownKeys = Object.keys(source);
|
|
806
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
807
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
808
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
809
|
+
}));
|
|
810
|
+
}
|
|
811
|
+
ownKeys.forEach(function(key) {
|
|
812
|
+
_define_property$i(target, key, source[key]);
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
return target;
|
|
816
|
+
}
|
|
817
|
+
function ownKeys$2(object, enumerableOnly) {
|
|
818
|
+
var keys = Object.keys(object);
|
|
819
|
+
if (Object.getOwnPropertySymbols) {
|
|
820
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
821
|
+
keys.push.apply(keys, symbols);
|
|
822
|
+
}
|
|
823
|
+
return keys;
|
|
824
|
+
}
|
|
825
|
+
function _object_spread_props$2(target, source) {
|
|
826
|
+
source = source != null ? source : {};
|
|
827
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
828
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
829
|
+
} else {
|
|
830
|
+
ownKeys$2(Object(source)).forEach(function(key) {
|
|
831
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
return target;
|
|
835
|
+
}
|
|
836
|
+
function _object_without_properties(source, excluded) {
|
|
837
|
+
if (source == null) return {};
|
|
838
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
839
|
+
var key, i;
|
|
840
|
+
if (Object.getOwnPropertySymbols) {
|
|
841
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
842
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
843
|
+
key = sourceSymbolKeys[i];
|
|
844
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
845
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
846
|
+
target[key] = source[key];
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return target;
|
|
850
|
+
}
|
|
851
|
+
function _object_without_properties_loose(source, excluded) {
|
|
852
|
+
if (source == null) return {};
|
|
853
|
+
var target = {};
|
|
854
|
+
var sourceKeys = Object.keys(source);
|
|
855
|
+
var key, i;
|
|
856
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
857
|
+
key = sourceKeys[i];
|
|
858
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
859
|
+
target[key] = source[key];
|
|
860
|
+
}
|
|
861
|
+
return target;
|
|
862
|
+
}
|
|
863
|
+
var BoxDisplay = /*#__PURE__*/ function(BoxDisplay) {
|
|
864
|
+
BoxDisplay["flex"] = "flex";
|
|
865
|
+
BoxDisplay["block"] = "block";
|
|
866
|
+
return BoxDisplay;
|
|
867
|
+
}(BoxDisplay || {});
|
|
868
|
+
function Box(_param) {
|
|
869
|
+
var className = _param.className, style = _param.style, children = _param.children, flex = _param.flex, key = _param.key, onClick = _param.onClick, _param_alignItems = _param.alignItems, alignItems = _param_alignItems === void 0 ? AlignItems.center : _param_alignItems, _param_justifyContent = _param.justifyContent, justifyContent = _param_justifyContent === void 0 ? JustifyContent.center : _param_justifyContent, _param_display = _param.display, display = _param_display === void 0 ? "flex" : _param_display, _param_width = _param.width, width = _param_width === void 0 ? Width.auto : _param_width, _param_flexWrap = _param.flexWrap, flexWrap = _param_flexWrap === void 0 ? FlexWrap.noWrap : _param_flexWrap, _param_height = _param.height, height = _param_height === void 0 ? Height.auto : _param_height, _param_border = _param.border, border = _param_border === void 0 ? false : _param_border, _param_flexDirection = _param.flexDirection, flexDirection = _param_flexDirection === void 0 ? FlexDirection.row : _param_flexDirection, _param_padding = _param.padding, padding = _param_padding === void 0 ? [
|
|
870
|
+
Spacing.none,
|
|
871
|
+
Spacing.none,
|
|
872
|
+
Spacing.none,
|
|
873
|
+
Spacing.none
|
|
874
|
+
] : _param_padding, _param_gap = _param.gap, gap = _param_gap === void 0 ? Spacing.xSmall : _param_gap, _param_tag = _param.tag, tag = _param_tag === void 0 ? LayoutTags.div : _param_tag, rest = _object_without_properties(_param, [
|
|
875
|
+
"className",
|
|
876
|
+
"style",
|
|
877
|
+
"children",
|
|
878
|
+
"flex",
|
|
879
|
+
"key",
|
|
880
|
+
"onClick",
|
|
881
|
+
"alignItems",
|
|
882
|
+
"justifyContent",
|
|
883
|
+
"display",
|
|
884
|
+
"width",
|
|
885
|
+
"flexWrap",
|
|
886
|
+
"height",
|
|
887
|
+
"border",
|
|
888
|
+
"flexDirection",
|
|
889
|
+
"padding",
|
|
890
|
+
"gap",
|
|
891
|
+
"tag"
|
|
892
|
+
]);
|
|
893
|
+
var Tag = tag;
|
|
894
|
+
var _padding_, _padding_1, _padding_2, _ref;
|
|
895
|
+
return /*#__PURE__*/ React__default.createElement(Tag, _object_spread_props$2(_object_spread$i({
|
|
896
|
+
// id="globalValues"
|
|
897
|
+
key: key,
|
|
898
|
+
className: className,
|
|
899
|
+
onClick: onClick
|
|
900
|
+
}, rest), {
|
|
901
|
+
style: _object_spread$i({
|
|
902
|
+
flexWrap: flexWrap,
|
|
903
|
+
display: display,
|
|
904
|
+
gap: "var(--gap-".concat(gap, ")"),
|
|
905
|
+
width: '100%',
|
|
906
|
+
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
907
|
+
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
908
|
+
paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
|
|
909
|
+
paddingLeft: "var(--p-".concat((_ref = (_padding_2 = padding[3]) !== null && _padding_2 !== void 0 ? _padding_2 : padding[1]) !== null && _ref !== void 0 ? _ref : padding[0], ")"),
|
|
910
|
+
border: border ? '2px solid #999' : '',
|
|
911
|
+
maxWidth: width,
|
|
912
|
+
height: height,
|
|
913
|
+
flexDirection: flexDirection === FlexDirection.row ? FlexDirection.row : FlexDirection.column,
|
|
914
|
+
justifyContent: "".concat(justifyContent),
|
|
915
|
+
alignItems: "".concat(alignItems),
|
|
916
|
+
flex: flex ? flex : ''
|
|
917
|
+
}, style)
|
|
918
|
+
}), children);
|
|
919
|
+
}
|
|
920
|
+
// Object.assign(Layout, width, height, ALIGN, JUSTIFY, DIRECTION, SPACING);
|
|
921
|
+
Box.display = BoxDisplay;
|
|
922
|
+
Box.alignItems = AlignItems;
|
|
923
|
+
Box.justifyContent = JustifyContent;
|
|
924
|
+
Box.gap = Spacing;
|
|
925
|
+
Box.flexDirection = FlexDirection;
|
|
926
|
+
Box.width = Width;
|
|
927
|
+
Box.height = Height;
|
|
928
|
+
Box.padding = Spacing;
|
|
929
|
+
Box.flexWrap = FlexWrap;
|
|
930
|
+
Box.tag = LayoutTags;
|
|
931
|
+
|
|
932
|
+
function _define_property$h(obj, key, value) {
|
|
933
|
+
if (key in obj) {
|
|
934
|
+
Object.defineProperty(obj, key, {
|
|
935
|
+
value: value,
|
|
936
|
+
enumerable: true,
|
|
937
|
+
configurable: true,
|
|
938
|
+
writable: true
|
|
939
|
+
});
|
|
940
|
+
} else {
|
|
941
|
+
obj[key] = value;
|
|
942
|
+
}
|
|
943
|
+
return obj;
|
|
944
|
+
}
|
|
945
|
+
function _object_spread$h(target) {
|
|
946
|
+
for(var i = 1; i < arguments.length; i++){
|
|
947
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
948
|
+
var ownKeys = Object.keys(source);
|
|
949
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
950
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
951
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
952
|
+
}));
|
|
953
|
+
}
|
|
954
|
+
ownKeys.forEach(function(key) {
|
|
955
|
+
_define_property$h(target, key, source[key]);
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
return target;
|
|
959
|
+
}
|
|
960
|
+
function Label(param) {
|
|
961
|
+
var value = param.value, id = param.id, className = param.className, style = param.style, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
962
|
+
Spacing.none
|
|
963
|
+
] : _param_padding, children = param.children, htmlFor = param.htmlFor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.medium : _param_fontSize;
|
|
964
|
+
var _padding_, _padding_1, _padding_2, _ref;
|
|
965
|
+
return /*#__PURE__*/ React.createElement("label", {
|
|
966
|
+
id: id,
|
|
967
|
+
htmlFor: htmlFor,
|
|
968
|
+
style: _object_spread$h({
|
|
969
|
+
fontSize: "var(--text-".concat(fontSize),
|
|
970
|
+
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
971
|
+
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
972
|
+
paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
|
|
973
|
+
paddingLeft: "var(--p-".concat((_ref = (_padding_2 = padding[3]) !== null && _padding_2 !== void 0 ? _padding_2 : padding[1]) !== null && _ref !== void 0 ? _ref : padding[0], ")"),
|
|
974
|
+
WebkitUserSelect: 'none',
|
|
975
|
+
userSelect: 'none'
|
|
976
|
+
}, style),
|
|
977
|
+
className: classnames('Label', 'select-none', className)
|
|
978
|
+
}, value ? value : children);
|
|
979
|
+
}
|
|
980
|
+
Label.padding = Spacing;
|
|
981
|
+
Label.fontSize = FontSizes;
|
|
982
|
+
|
|
983
|
+
function _define_property$g(obj, key, value) {
|
|
984
|
+
if (key in obj) {
|
|
985
|
+
Object.defineProperty(obj, key, {
|
|
986
|
+
value: value,
|
|
987
|
+
enumerable: true,
|
|
988
|
+
configurable: true,
|
|
989
|
+
writable: true
|
|
990
|
+
});
|
|
991
|
+
} else {
|
|
992
|
+
obj[key] = value;
|
|
993
|
+
}
|
|
994
|
+
return obj;
|
|
995
|
+
}
|
|
996
|
+
function _object_spread$g(target) {
|
|
997
|
+
for(var i = 1; i < arguments.length; i++){
|
|
998
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
999
|
+
var ownKeys = Object.keys(source);
|
|
1000
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1001
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1002
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1003
|
+
}));
|
|
1004
|
+
}
|
|
1005
|
+
ownKeys.forEach(function(key) {
|
|
1006
|
+
_define_property$g(target, key, source[key]);
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
return target;
|
|
1010
|
+
}
|
|
759
1011
|
function Dropdown(param) {
|
|
760
|
-
var label = param.label, className = param.className, onChange = param.onChange, id = param.id, style = param.style;
|
|
1012
|
+
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, id = param.id, style = param.style;
|
|
761
1013
|
var _useDropdown = useDropdown({
|
|
762
1014
|
id: id,
|
|
763
1015
|
label: label,
|
|
764
1016
|
onChange: onChange
|
|
765
1017
|
}), value = _useDropdown.value, choices = _useDropdown.choices, onMouseEnter = _useDropdown.onMouseEnter, handleChange = _useDropdown.handleChange;
|
|
766
|
-
return /*#__PURE__*/ React__default.createElement(
|
|
1018
|
+
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
1019
|
+
flexDirection: Box.flexDirection.column,
|
|
767
1020
|
onMouseEnter: onMouseEnter
|
|
768
1021
|
}, /*#__PURE__*/ React__default.createElement(Listbox, {
|
|
769
1022
|
value: value,
|
|
770
1023
|
onChange: handleChange
|
|
771
1024
|
}, /*#__PURE__*/ React__default.createElement(ListboxButton, {
|
|
772
1025
|
className: classnames('Dropdown-button', className),
|
|
773
|
-
style:
|
|
1026
|
+
style: _object_spread$g({
|
|
1027
|
+
color: "".concat(color ? color : 'initial')
|
|
1028
|
+
}, style),
|
|
774
1029
|
"aria-label": "Assignee",
|
|
775
1030
|
onChange: function(value) {
|
|
776
1031
|
return console.log(value);
|
|
@@ -778,14 +1033,29 @@ function Dropdown(param) {
|
|
|
778
1033
|
}, value), /*#__PURE__*/ React__default.createElement(ListboxOptions, {
|
|
779
1034
|
anchor: "bottom",
|
|
780
1035
|
portal: false,
|
|
781
|
-
className: "Dropdown-items z-10"
|
|
1036
|
+
className: "Dropdown-items z-10",
|
|
1037
|
+
style: {
|
|
1038
|
+
color: "".concat(color ? color : 'initial')
|
|
1039
|
+
}
|
|
782
1040
|
}, choices === null || choices === void 0 ? void 0 : choices.map(function(item, i) {
|
|
783
1041
|
return /*#__PURE__*/ React__default.createElement(ListboxOption, {
|
|
784
1042
|
className: classnames('Dropdown-item'),
|
|
785
1043
|
key: item,
|
|
786
|
-
value:
|
|
1044
|
+
value: item,
|
|
1045
|
+
style: {
|
|
1046
|
+
color: "".concat(color ? color : 'initial')
|
|
1047
|
+
}
|
|
787
1048
|
}, item);
|
|
788
|
-
})))
|
|
1049
|
+
}))), /*#__PURE__*/ React__default.createElement(Label, {
|
|
1050
|
+
padding: [
|
|
1051
|
+
Label.padding.mediumSmall
|
|
1052
|
+
],
|
|
1053
|
+
fontSize: Label.fontSize.small,
|
|
1054
|
+
value: label,
|
|
1055
|
+
style: {
|
|
1056
|
+
color: "".concat(labelColor ? labelColor : 'initial')
|
|
1057
|
+
}
|
|
1058
|
+
}));
|
|
789
1059
|
}
|
|
790
1060
|
|
|
791
1061
|
var validate = function(param) {
|
|
@@ -871,7 +1141,7 @@ function _array_like_to_array$9(arr, len) {
|
|
|
871
1141
|
function _array_with_holes$9(arr) {
|
|
872
1142
|
if (Array.isArray(arr)) return arr;
|
|
873
1143
|
}
|
|
874
|
-
function _define_property$
|
|
1144
|
+
function _define_property$f(obj, key, value) {
|
|
875
1145
|
if (key in obj) {
|
|
876
1146
|
Object.defineProperty(obj, key, {
|
|
877
1147
|
value: value,
|
|
@@ -911,7 +1181,7 @@ function _iterable_to_array_limit$9(arr, i) {
|
|
|
911
1181
|
function _non_iterable_rest$9() {
|
|
912
1182
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
913
1183
|
}
|
|
914
|
-
function _object_spread$
|
|
1184
|
+
function _object_spread$f(target) {
|
|
915
1185
|
for(var i = 1; i < arguments.length; i++){
|
|
916
1186
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
917
1187
|
var ownKeys = Object.keys(source);
|
|
@@ -921,7 +1191,7 @@ function _object_spread$h(target) {
|
|
|
921
1191
|
}));
|
|
922
1192
|
}
|
|
923
1193
|
ownKeys.forEach(function(key) {
|
|
924
|
-
_define_property$
|
|
1194
|
+
_define_property$f(target, key, source[key]);
|
|
925
1195
|
});
|
|
926
1196
|
}
|
|
927
1197
|
return target;
|
|
@@ -1053,7 +1323,7 @@ function Input(param) {
|
|
|
1053
1323
|
id: id,
|
|
1054
1324
|
ref: inputRef,
|
|
1055
1325
|
className: classnames('TextInput', hasIncompleteValue || hasError ? 'is-blinking' : '', className),
|
|
1056
|
-
style: _object_spread$
|
|
1326
|
+
style: _object_spread$f({
|
|
1057
1327
|
// TODO
|
|
1058
1328
|
// color: hasError ? 'red' : hasIncompleteValue ? '#999' : textColor
|
|
1059
1329
|
color: hasError ? 'red' : textColor,
|
|
@@ -1291,12 +1561,24 @@ var useSlider = function(param) {
|
|
|
1291
1561
|
}
|
|
1292
1562
|
if (down) {
|
|
1293
1563
|
var deltaVal = delta[1] * -1;
|
|
1564
|
+
var getNormalisedInterval = function() {
|
|
1565
|
+
if (properties === null || properties === void 0 ? void 0 : properties.interval) {
|
|
1566
|
+
if ((properties === null || properties === void 0 ? void 0 : properties.interval) >= 1) {
|
|
1567
|
+
return (properties === null || properties === void 0 ? void 0 : properties.interval) * 0.01;
|
|
1568
|
+
} else {
|
|
1569
|
+
return properties === null || properties === void 0 ? void 0 : properties.interval;
|
|
1570
|
+
}
|
|
1571
|
+
} else {
|
|
1572
|
+
return 0.01;
|
|
1573
|
+
}
|
|
1574
|
+
};
|
|
1575
|
+
var normalisedInterval = getNormalisedInterval();
|
|
1294
1576
|
var _normalisedValueRef_current;
|
|
1295
1577
|
var newValue = ((_normalisedValueRef_current = normalisedValueRef.current) !== null && _normalisedValueRef_current !== void 0 ? _normalisedValueRef_current : 0) + deltaVal * // (properties?.interval && properties?.interval.toString().length > 4
|
|
1296
1578
|
// ? 4
|
|
1297
1579
|
// : 0.4) *
|
|
1298
|
-
|
|
1299
|
-
setNormalisedState(newValue);
|
|
1580
|
+
normalisedInterval;
|
|
1581
|
+
setNormalisedState(clamp(newValue));
|
|
1300
1582
|
}
|
|
1301
1583
|
if (last) {
|
|
1302
1584
|
//@ts-expect-error
|
|
@@ -1351,7 +1633,7 @@ var useSlider = function(param) {
|
|
|
1351
1633
|
} else {
|
|
1352
1634
|
newValue = x / rect.width;
|
|
1353
1635
|
}
|
|
1354
|
-
setNormalisedState(newValue);
|
|
1636
|
+
setNormalisedState(clamp(newValue));
|
|
1355
1637
|
}
|
|
1356
1638
|
if (last) {
|
|
1357
1639
|
//@ts-expect-error
|
|
@@ -1386,229 +1668,7 @@ var useSlider = function(param) {
|
|
|
1386
1668
|
};
|
|
1387
1669
|
};
|
|
1388
1670
|
|
|
1389
|
-
var
|
|
1390
|
-
JustifyContent["flexStart"] = "flex-start";
|
|
1391
|
-
JustifyContent["flexEnd"] = "flex-end";
|
|
1392
|
-
JustifyContent["center"] = "center";
|
|
1393
|
-
JustifyContent["spaceBetween"] = "space-between";
|
|
1394
|
-
JustifyContent["spaceAround"] = "space-around";
|
|
1395
|
-
JustifyContent["spaceEvenly"] = "space-evenly";
|
|
1396
|
-
return JustifyContent;
|
|
1397
|
-
}({});
|
|
1398
|
-
var AlignItems = /*#__PURE__*/ function(AlignItems) {
|
|
1399
|
-
AlignItems["flexStart"] = "flex-start";
|
|
1400
|
-
AlignItems["flexEnd"] = "flex-end";
|
|
1401
|
-
AlignItems["center"] = "center";
|
|
1402
|
-
AlignItems["stretch"] = "stretch";
|
|
1403
|
-
AlignItems["baseline"] = "baseline";
|
|
1404
|
-
return AlignItems;
|
|
1405
|
-
}({});
|
|
1406
|
-
var LayoutTags = /*#__PURE__*/ function(LayoutTags) {
|
|
1407
|
-
LayoutTags["header"] = "header";
|
|
1408
|
-
LayoutTags["main"] = "main";
|
|
1409
|
-
LayoutTags["section"] = "section";
|
|
1410
|
-
LayoutTags["div"] = "div";
|
|
1411
|
-
LayoutTags["footer"] = "footer";
|
|
1412
|
-
LayoutTags["ul"] = "ul";
|
|
1413
|
-
LayoutTags["li"] = "li";
|
|
1414
|
-
return LayoutTags;
|
|
1415
|
-
}({});
|
|
1416
|
-
|
|
1417
|
-
function _define_property$g(obj, key, value) {
|
|
1418
|
-
if (key in obj) {
|
|
1419
|
-
Object.defineProperty(obj, key, {
|
|
1420
|
-
value: value,
|
|
1421
|
-
enumerable: true,
|
|
1422
|
-
configurable: true,
|
|
1423
|
-
writable: true
|
|
1424
|
-
});
|
|
1425
|
-
} else {
|
|
1426
|
-
obj[key] = value;
|
|
1427
|
-
}
|
|
1428
|
-
return obj;
|
|
1429
|
-
}
|
|
1430
|
-
function _object_spread$g(target) {
|
|
1431
|
-
for(var i = 1; i < arguments.length; i++){
|
|
1432
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
1433
|
-
var ownKeys = Object.keys(source);
|
|
1434
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1435
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1436
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1437
|
-
}));
|
|
1438
|
-
}
|
|
1439
|
-
ownKeys.forEach(function(key) {
|
|
1440
|
-
_define_property$g(target, key, source[key]);
|
|
1441
|
-
});
|
|
1442
|
-
}
|
|
1443
|
-
return target;
|
|
1444
|
-
}
|
|
1445
|
-
function ownKeys$2(object, enumerableOnly) {
|
|
1446
|
-
var keys = Object.keys(object);
|
|
1447
|
-
if (Object.getOwnPropertySymbols) {
|
|
1448
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
1449
|
-
keys.push.apply(keys, symbols);
|
|
1450
|
-
}
|
|
1451
|
-
return keys;
|
|
1452
|
-
}
|
|
1453
|
-
function _object_spread_props$2(target, source) {
|
|
1454
|
-
source = source != null ? source : {};
|
|
1455
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
1456
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1457
|
-
} else {
|
|
1458
|
-
ownKeys$2(Object(source)).forEach(function(key) {
|
|
1459
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1460
|
-
});
|
|
1461
|
-
}
|
|
1462
|
-
return target;
|
|
1463
|
-
}
|
|
1464
|
-
function _object_without_properties(source, excluded) {
|
|
1465
|
-
if (source == null) return {};
|
|
1466
|
-
var target = _object_without_properties_loose(source, excluded);
|
|
1467
|
-
var key, i;
|
|
1468
|
-
if (Object.getOwnPropertySymbols) {
|
|
1469
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
1470
|
-
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
1471
|
-
key = sourceSymbolKeys[i];
|
|
1472
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1473
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
1474
|
-
target[key] = source[key];
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
return target;
|
|
1478
|
-
}
|
|
1479
|
-
function _object_without_properties_loose(source, excluded) {
|
|
1480
|
-
if (source == null) return {};
|
|
1481
|
-
var target = {};
|
|
1482
|
-
var sourceKeys = Object.keys(source);
|
|
1483
|
-
var key, i;
|
|
1484
|
-
for(i = 0; i < sourceKeys.length; i++){
|
|
1485
|
-
key = sourceKeys[i];
|
|
1486
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1487
|
-
target[key] = source[key];
|
|
1488
|
-
}
|
|
1489
|
-
return target;
|
|
1490
|
-
}
|
|
1491
|
-
var BoxDisplay = /*#__PURE__*/ function(BoxDisplay) {
|
|
1492
|
-
BoxDisplay["flex"] = "flex";
|
|
1493
|
-
BoxDisplay["block"] = "block";
|
|
1494
|
-
return BoxDisplay;
|
|
1495
|
-
}(BoxDisplay || {});
|
|
1496
|
-
function Box(_param) {
|
|
1497
|
-
var className = _param.className, style = _param.style, children = _param.children, flex = _param.flex, key = _param.key, onClick = _param.onClick, _param_alignItems = _param.alignItems, alignItems = _param_alignItems === void 0 ? AlignItems.center : _param_alignItems, _param_justifyContent = _param.justifyContent, justifyContent = _param_justifyContent === void 0 ? JustifyContent.center : _param_justifyContent, _param_display = _param.display, display = _param_display === void 0 ? "flex" : _param_display, _param_width = _param.width, width = _param_width === void 0 ? Width.auto : _param_width, _param_flexWrap = _param.flexWrap, flexWrap = _param_flexWrap === void 0 ? FlexWrap.noWrap : _param_flexWrap, _param_height = _param.height, height = _param_height === void 0 ? Height.auto : _param_height, _param_border = _param.border, border = _param_border === void 0 ? false : _param_border, _param_flexDirection = _param.flexDirection, flexDirection = _param_flexDirection === void 0 ? FlexDirection.row : _param_flexDirection, _param_padding = _param.padding, padding = _param_padding === void 0 ? [
|
|
1498
|
-
Spacing.none,
|
|
1499
|
-
Spacing.none,
|
|
1500
|
-
Spacing.none,
|
|
1501
|
-
Spacing.none
|
|
1502
|
-
] : _param_padding, _param_gap = _param.gap, gap = _param_gap === void 0 ? Spacing.xSmall : _param_gap, _param_tag = _param.tag, tag = _param_tag === void 0 ? LayoutTags.div : _param_tag, rest = _object_without_properties(_param, [
|
|
1503
|
-
"className",
|
|
1504
|
-
"style",
|
|
1505
|
-
"children",
|
|
1506
|
-
"flex",
|
|
1507
|
-
"key",
|
|
1508
|
-
"onClick",
|
|
1509
|
-
"alignItems",
|
|
1510
|
-
"justifyContent",
|
|
1511
|
-
"display",
|
|
1512
|
-
"width",
|
|
1513
|
-
"flexWrap",
|
|
1514
|
-
"height",
|
|
1515
|
-
"border",
|
|
1516
|
-
"flexDirection",
|
|
1517
|
-
"padding",
|
|
1518
|
-
"gap",
|
|
1519
|
-
"tag"
|
|
1520
|
-
]);
|
|
1521
|
-
var Tag = tag;
|
|
1522
|
-
var _padding_, _padding_1, _padding_2, _ref;
|
|
1523
|
-
return /*#__PURE__*/ React__default.createElement(Tag, _object_spread_props$2(_object_spread$g({
|
|
1524
|
-
// id="globalValues"
|
|
1525
|
-
key: key,
|
|
1526
|
-
className: className,
|
|
1527
|
-
onClick: onClick
|
|
1528
|
-
}, rest), {
|
|
1529
|
-
style: _object_spread$g({
|
|
1530
|
-
flexWrap: flexWrap,
|
|
1531
|
-
display: display,
|
|
1532
|
-
gap: "var(--gap-".concat(gap, ")"),
|
|
1533
|
-
width: '100%',
|
|
1534
|
-
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
1535
|
-
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
1536
|
-
paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
|
|
1537
|
-
paddingLeft: "var(--p-".concat((_ref = (_padding_2 = padding[3]) !== null && _padding_2 !== void 0 ? _padding_2 : padding[1]) !== null && _ref !== void 0 ? _ref : padding[0], ")"),
|
|
1538
|
-
border: border ? '2px solid #999' : '',
|
|
1539
|
-
maxWidth: width,
|
|
1540
|
-
height: height,
|
|
1541
|
-
flexDirection: flexDirection === FlexDirection.row ? FlexDirection.row : FlexDirection.column,
|
|
1542
|
-
justifyContent: "".concat(justifyContent),
|
|
1543
|
-
alignItems: "".concat(alignItems),
|
|
1544
|
-
flex: flex ? flex : ''
|
|
1545
|
-
}, style)
|
|
1546
|
-
}), children);
|
|
1547
|
-
}
|
|
1548
|
-
// Object.assign(Layout, width, height, ALIGN, JUSTIFY, DIRECTION, SPACING);
|
|
1549
|
-
Box.display = BoxDisplay;
|
|
1550
|
-
Box.alignItems = AlignItems;
|
|
1551
|
-
Box.justifyContent = JustifyContent;
|
|
1552
|
-
Box.gap = Spacing;
|
|
1553
|
-
Box.flexDirection = FlexDirection;
|
|
1554
|
-
Box.width = Width;
|
|
1555
|
-
Box.height = Height;
|
|
1556
|
-
Box.padding = Spacing;
|
|
1557
|
-
Box.flexWrap = FlexWrap;
|
|
1558
|
-
Box.tag = LayoutTags;
|
|
1559
|
-
|
|
1560
|
-
function _define_property$f(obj, key, value) {
|
|
1561
|
-
if (key in obj) {
|
|
1562
|
-
Object.defineProperty(obj, key, {
|
|
1563
|
-
value: value,
|
|
1564
|
-
enumerable: true,
|
|
1565
|
-
configurable: true,
|
|
1566
|
-
writable: true
|
|
1567
|
-
});
|
|
1568
|
-
} else {
|
|
1569
|
-
obj[key] = value;
|
|
1570
|
-
}
|
|
1571
|
-
return obj;
|
|
1572
|
-
}
|
|
1573
|
-
function _object_spread$f(target) {
|
|
1574
|
-
for(var i = 1; i < arguments.length; i++){
|
|
1575
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
1576
|
-
var ownKeys = Object.keys(source);
|
|
1577
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
1578
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
1579
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
1580
|
-
}));
|
|
1581
|
-
}
|
|
1582
|
-
ownKeys.forEach(function(key) {
|
|
1583
|
-
_define_property$f(target, key, source[key]);
|
|
1584
|
-
});
|
|
1585
|
-
}
|
|
1586
|
-
return target;
|
|
1587
|
-
}
|
|
1588
|
-
function Label(param) {
|
|
1589
|
-
var value = param.value, id = param.id, className = param.className, style = param.style, _param_padding = param.padding, padding = _param_padding === void 0 ? [
|
|
1590
|
-
Spacing.none
|
|
1591
|
-
] : _param_padding, children = param.children, htmlFor = param.htmlFor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.medium : _param_fontSize;
|
|
1592
|
-
var _padding_, _padding_1, _padding_2, _ref;
|
|
1593
|
-
return /*#__PURE__*/ React.createElement("label", {
|
|
1594
|
-
id: id,
|
|
1595
|
-
htmlFor: htmlFor,
|
|
1596
|
-
style: _object_spread$f({
|
|
1597
|
-
fontSize: "var(--text-".concat(fontSize),
|
|
1598
|
-
paddingTop: "var(--p-".concat(padding[0], ")"),
|
|
1599
|
-
paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
|
|
1600
|
-
paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
|
|
1601
|
-
paddingLeft: "var(--p-".concat((_ref = (_padding_2 = padding[3]) !== null && _padding_2 !== void 0 ? _padding_2 : padding[1]) !== null && _ref !== void 0 ? _ref : padding[0], ")"),
|
|
1602
|
-
WebkitUserSelect: 'none',
|
|
1603
|
-
userSelect: 'none'
|
|
1604
|
-
}, style),
|
|
1605
|
-
className: classnames('Label', 'select-none', className)
|
|
1606
|
-
}, value ? value : children);
|
|
1607
|
-
}
|
|
1608
|
-
Label.padding = Spacing;
|
|
1609
|
-
Label.fontSize = FontSizes;
|
|
1610
|
-
|
|
1611
|
-
var css_248z$6 = ".RotarySlider {\n position: relative;\n height: 50px;\n width: 50px;\n border-radius: 50%;\n aspect-ratio: 1 / 1;\n}\n\n.RotarySlider-Inner {\n height: 100%;\n width: 100%;\n right: 0;\n top: 0;\n bottom: 0;\n left: 0;\n background-color: var(--bg-popover);\n border-radius: 50%;\n}\n\n.RotarySlider-Indicator {\n position: absolute;\n top: 0;\n right: 0;\n left: 50%;\n width: var(--spacing-xs);\n height: 50%;\n transform: translate(-50%, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);\n}\n\n.RotarySlider-center-marker {\n border-color: var(--bg-popover) transparent var(--bg-popover) transparent;\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 7px 10px 7px;\n transform: rotate(180deg);\n padding-bottom: var(--spacing-sm);\n}\n";
|
|
1671
|
+
var css_248z$6 = ".RotarySlider {\n position: relative;\n height: 50px;\n width: 50px;\n border-radius: 50%;\n aspect-ratio: 1 / 1;\n}\n\n.RotarySlider-Inner {\n height: 100%;\n width: 100%;\n right: 0;\n top: 0;\n bottom: 0;\n left: 0;\n background-color: var(--bg-popover);\n border-radius: 50%;\n}\n\n.RotarySlider-Indicator {\n position: absolute;\n top: 0;\n right: 0;\n left: 50%;\n width: var(--spacing-xs);\n height: 50%;\n transform: translate(-50%, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);\n}\n\n.RotarySlider-center-marker {\n width: 0;\n height: 0;\n border-style: solid;\n border-width: 0 5px 8px 5px;\n transform: rotate(180deg);\n padding-bottom: var(--spacing-sm);\n}\n";
|
|
1612
1672
|
styleInject(css_248z$6);
|
|
1613
1673
|
|
|
1614
1674
|
function _define_property$e(obj, key, value) {
|
|
@@ -1665,7 +1725,7 @@ function RotarySlider(param) {
|
|
|
1665
1725
|
end: 15000.0,
|
|
1666
1726
|
interval: 0.1,
|
|
1667
1727
|
skew: 0.7
|
|
1668
|
-
} : _param_mockProperties, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-gray-400)' : _param_color, style = param.style;
|
|
1728
|
+
} : _param_mockProperties, labelColor = param.labelColor, _param_color = param.color, color = _param_color === void 0 ? 'var(--color-gray-400)' : _param_color, style = param.style;
|
|
1669
1729
|
var _useSlider = useSlider({
|
|
1670
1730
|
id: id,
|
|
1671
1731
|
label: label,
|
|
@@ -1677,6 +1737,9 @@ function RotarySlider(param) {
|
|
|
1677
1737
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
1678
1738
|
flexDirection: Box.flexDirection.column
|
|
1679
1739
|
}, polarity === Polarity.bipolar && /*#__PURE__*/ React__default.createElement("div", {
|
|
1740
|
+
style: {
|
|
1741
|
+
borderColor: "".concat(color, " transparent ").concat(color, " transparent")
|
|
1742
|
+
},
|
|
1680
1743
|
className: classnames('RotarySlider-center-marker')
|
|
1681
1744
|
}), /*#__PURE__*/ React__default.createElement("div", _object_spread_props$1(_object_spread$e({
|
|
1682
1745
|
className: classnames('RotarySlider', polarity === Polarity.linear ? 'Slider-polarity-linear' : 'Slider-polarity-bipolar', className)
|
|
@@ -1700,7 +1763,10 @@ function RotarySlider(param) {
|
|
|
1700
1763
|
Label.padding.mediumSmall
|
|
1701
1764
|
],
|
|
1702
1765
|
fontSize: Label.fontSize.small,
|
|
1703
|
-
value: label
|
|
1766
|
+
value: label,
|
|
1767
|
+
style: {
|
|
1768
|
+
color: "".concat(labelColor ? labelColor : 'initial')
|
|
1769
|
+
}
|
|
1704
1770
|
}));
|
|
1705
1771
|
}
|
|
1706
1772
|
RotarySlider.sliderPolarity = Polarity;
|
|
@@ -3877,7 +3943,7 @@ function ModMatrixToggleCell(param) {
|
|
|
3877
3943
|
var modifier = param.modifier, color = param.color, style = param.style;
|
|
3878
3944
|
var _useDropdown = useDropdown({
|
|
3879
3945
|
id: modifier
|
|
3880
|
-
}),
|
|
3946
|
+
}), index = _useDropdown.index, choices = _useDropdown.choices, handleChange = _useDropdown.handleChange;
|
|
3881
3947
|
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
3882
3948
|
className: "ModMatrixCell ModMatrixToggleCell",
|
|
3883
3949
|
justifyContent: Box.justifyContent.flexEnd,
|
|
@@ -3889,8 +3955,8 @@ function ModMatrixToggleCell(param) {
|
|
|
3889
3955
|
}, style),
|
|
3890
3956
|
height: '2.5rem',
|
|
3891
3957
|
onClick: function() {
|
|
3892
|
-
var
|
|
3893
|
-
handleChange(
|
|
3958
|
+
var newIndex = Math.abs(index - 1);
|
|
3959
|
+
handleChange(choices[newIndex]);
|
|
3894
3960
|
}
|
|
3895
3961
|
}, /*#__PURE__*/ React__default.createElement(Box, {
|
|
3896
3962
|
flex: "1",
|
|
@@ -3901,7 +3967,7 @@ function ModMatrixToggleCell(param) {
|
|
|
3901
3967
|
style: {
|
|
3902
3968
|
pointerEvents: 'none'
|
|
3903
3969
|
}
|
|
3904
|
-
}, Object.keys(Polarity)[
|
|
3970
|
+
}, Object.keys(Polarity)[index] || '0')));
|
|
3905
3971
|
}
|
|
3906
3972
|
|
|
3907
3973
|
function _define_property$2(obj, key, value) {
|
|
@@ -4409,6 +4475,74 @@ function ModMatrix(param) {
|
|
|
4409
4475
|
})));
|
|
4410
4476
|
}
|
|
4411
4477
|
|
|
4478
|
+
function LFOTab() {
|
|
4479
|
+
return /*#__PURE__*/ React__default.createElement(Box, {
|
|
4480
|
+
className: "LFOTab"
|
|
4481
|
+
}, /*#__PURE__*/ React__default.createElement(Dropdown, {
|
|
4482
|
+
labelColor: "var(--color-text)",
|
|
4483
|
+
color: "var(--color-brand)",
|
|
4484
|
+
id: "LFO1_Wave",
|
|
4485
|
+
label: "LFO1 Wave"
|
|
4486
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4487
|
+
labelColor: "var(--color-text)",
|
|
4488
|
+
id: "LFO1_Hz",
|
|
4489
|
+
label: "LFO1 Hz",
|
|
4490
|
+
color: "var(--color-brand)"
|
|
4491
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4492
|
+
labelColor: "var(--color-text)",
|
|
4493
|
+
id: "LFO1_Hz_Hi",
|
|
4494
|
+
label: "LFO1 Hz Hi",
|
|
4495
|
+
color: "var(--color-brand)"
|
|
4496
|
+
}), /*#__PURE__*/ React__default.createElement(Dropdown, {
|
|
4497
|
+
labelColor: "var(--color-text)",
|
|
4498
|
+
color: "var(--color-brand)",
|
|
4499
|
+
id: "LFO1_SyncRate",
|
|
4500
|
+
label: "LFO1 Sync Rate"
|
|
4501
|
+
}), /*#__PURE__*/ React__default.createElement(Dropdown, {
|
|
4502
|
+
labelColor: "var(--color-text)",
|
|
4503
|
+
color: "var(--color-brand)",
|
|
4504
|
+
id: "LFO1_SyncType",
|
|
4505
|
+
label: "LFO1 Sync Type"
|
|
4506
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4507
|
+
color: "var(--color-brand)",
|
|
4508
|
+
labelColor: "var(--color-text)",
|
|
4509
|
+
id: "LFO1_Sixteenths",
|
|
4510
|
+
label: "LFO1 Sixteenths"
|
|
4511
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4512
|
+
color: "var(--color-brand)",
|
|
4513
|
+
labelColor: "var(--color-text)",
|
|
4514
|
+
id: "LFO1_Thirds",
|
|
4515
|
+
label: "LFO1 Thirds"
|
|
4516
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4517
|
+
color: "var(--color-brand)",
|
|
4518
|
+
labelColor: "var(--color-text)",
|
|
4519
|
+
polarity: RotarySlider.sliderPolarity.bipolar,
|
|
4520
|
+
id: "LFO1_Sync_Offset",
|
|
4521
|
+
label: "LFO1 Sync Offset"
|
|
4522
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4523
|
+
color: "var(--color-brand)",
|
|
4524
|
+
labelColor: "var(--color-text)",
|
|
4525
|
+
polarity: RotarySlider.sliderPolarity.bipolar,
|
|
4526
|
+
id: "LFO1_Phase",
|
|
4527
|
+
label: "LFO1 Phase"
|
|
4528
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4529
|
+
color: "var(--color-brand)",
|
|
4530
|
+
labelColor: "var(--color-text)",
|
|
4531
|
+
id: "LFO1_Width",
|
|
4532
|
+
label: "LFO1 Width"
|
|
4533
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4534
|
+
color: "var(--color-brand)",
|
|
4535
|
+
labelColor: "var(--color-text)",
|
|
4536
|
+
id: "LFO1_Amp",
|
|
4537
|
+
label: "LFO1 Amp"
|
|
4538
|
+
}), /*#__PURE__*/ React__default.createElement(RotarySlider, {
|
|
4539
|
+
color: "var(--color-brand)",
|
|
4540
|
+
labelColor: "var(--color-text)",
|
|
4541
|
+
id: "LFO1_Rand",
|
|
4542
|
+
label: "LFO1 Rand"
|
|
4543
|
+
}));
|
|
4544
|
+
}
|
|
4545
|
+
|
|
4412
4546
|
var css_248z = "/* Tab styles */\n/* TODO: Refactor to use utility classes? */\n/* TODO: Clean up */\n\n.ModuleFooter {\n overflow-y: scroll;\n}\n\n.ModuleFooter .Tabs-item {\n background: transparent;\n color: var(--color-text);\n font-family: var(--font-leagueSpartan);\n background: var(--color-gray-600);\n flex: 1 0 auto;\n}\n\n.ModuleFooter .Tabs-item:hover,\n.ModuleFooter .tabs-item:focus,\n.ModuleFooter .tabs-item:focus-visible {\n background: var(--color-gray-700);\n}\n\n.ModuleFooter .Tabs-item[data-headlessui-state='selected'] {\n background: var(--color-gray-700);\n}\n";
|
|
4413
4547
|
styleInject(css_248z);
|
|
4414
4548
|
|
|
@@ -4620,9 +4754,6 @@ var ModMatrixTab = function() {
|
|
|
4620
4754
|
var InputModTab = function() {
|
|
4621
4755
|
return /*#__PURE__*/ React__default.createElement(Box, null, "InputModTab");
|
|
4622
4756
|
};
|
|
4623
|
-
var LFOsTab = function() {
|
|
4624
|
-
return /*#__PURE__*/ React__default.createElement(Box, null, "LFOsTab");
|
|
4625
|
-
};
|
|
4626
4757
|
var SequencerTab = function() {
|
|
4627
4758
|
return /*#__PURE__*/ React__default.createElement(Box, null, "SequencerTab");
|
|
4628
4759
|
};
|
|
@@ -4739,7 +4870,7 @@ function ModuleFooter(param) {
|
|
|
4739
4870
|
padding: [
|
|
4740
4871
|
Box.padding.large
|
|
4741
4872
|
]
|
|
4742
|
-
}, isTabSelected("ModMatrix") ? /*#__PURE__*/ React__default.createElement(ModMatrixTab, null) : '', isTabSelected("InputMod") ? /*#__PURE__*/ React__default.createElement(InputModTab, null) : '', isTabSelected("LFOs") ? /*#__PURE__*/ React__default.createElement(
|
|
4873
|
+
}, isTabSelected("ModMatrix") ? /*#__PURE__*/ React__default.createElement(ModMatrixTab, null) : '', isTabSelected("InputMod") ? /*#__PURE__*/ React__default.createElement(InputModTab, null) : '', isTabSelected("LFOs") ? /*#__PURE__*/ React__default.createElement(LFOTab, null) : '', isTabSelected("Sequencer") ? /*#__PURE__*/ React__default.createElement(SequencerTab, null) : '', isTabSelected("Settings") ? /*#__PURE__*/ React__default.createElement(SettingsTab, null) : '')));
|
|
4743
4874
|
}
|
|
4744
4875
|
|
|
4745
4876
|
export { Slider as BarSlider, Box, Button, Dropdown, FontSizes, GlobalContextProvider, Heading, IconButton, IndicatorLight, Input, KeyValueDisplayScreen, Label, ModuleFooter, ModuleHeader, Oscilloscope, RotarySlider, SliderValue, Spacing, Tabs, clamp, decimalToPercent, defaultGlobalStateValue as defaultValue, normalisedToScaled, percentToDecimal, randomizeValue, scaledToNormalised as scaledTonormalised, useGlobalContext, useObservable, useSlider };
|
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,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,OAAO,GAAG,GAAG;AAClC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AACnD;AACA
|
|
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,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,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LFOTab.d.ts","sourceRoot":"","sources":["../../../../src/advanced/ModuleFooter/LFOTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,iBAAS,MAAM,sBA+Ed;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -9,7 +9,6 @@ export declare enum FooterTabs {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const ModMatrixTab: () => React.JSX.Element;
|
|
11
11
|
export declare const InputModTab: () => React.JSX.Element;
|
|
12
|
-
export declare const LFOsTab: () => React.JSX.Element;
|
|
13
12
|
export declare const SequencerTab: () => React.JSX.Element;
|
|
14
13
|
export declare const SettingsTab: () => React.JSX.Element;
|
|
15
14
|
declare function ModuleFooter({ className, style, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleFooter.d.ts","sourceRoot":"","sources":["../../../../src/advanced/ModuleFooter/ModuleFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ModuleFooter.d.ts","sourceRoot":"","sources":["../../../../src/advanced/ModuleFooter/ModuleFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,OAAO,oBAAoB,CAAC;AAE5B,oBAAY,UAAU;IACpB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,YAAY,yBAExB,CAAC;AAEF,eAAO,MAAM,WAAW,yBAEvB,CAAC;AAEF,eAAO,MAAM,YAAY,yBAExB,CAAC;AAEF,eAAO,MAAM,WAAW,yBAEvB,CAAC;AAEF,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,KAAK,GACN,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,qBA0FA;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/core/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,EACT,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjE,aAAK,UAAU;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/core/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,OAAO,EACP,KAAK,EACL,MAAM,EACN,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K,CAAC;CACd,CAAC;AAEN,KAAK,QAAQ,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAE/C,iBAAS,GAAG,CAAC,EACX,SAAS,EACT,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,OAAO,EACP,UAA8B,EAC9B,cAAsC,EACtC,OAAyB,EACzB,KAAkB,EAClB,QAA0B,EAC1B,MAAoB,EACpB,MAAc,EACd,aAAiC,EACjC,OAAkE,EAClE,GAAoB,EACpB,GAAoB,EACpB,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,qBAkCnC;kBArDQ,GAAG;;;;;;;;;;;;AAoEZ,eAAe,GAAG,CAAC"}
|
|
@@ -4,11 +4,13 @@ export interface DropdownProps {
|
|
|
4
4
|
id: string;
|
|
5
5
|
items?: Array<string>;
|
|
6
6
|
label: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
labelColor?: string;
|
|
7
9
|
className?: string;
|
|
8
10
|
style?: React.CSSProperties;
|
|
9
11
|
onMouseOver?: (label: string, value: number) => void;
|
|
10
|
-
onChange?: (event:
|
|
12
|
+
onChange?: (event: string) => any;
|
|
11
13
|
}
|
|
12
|
-
declare function Dropdown({ label, className, onChange, id, style }: DropdownProps): React.JSX.Element;
|
|
14
|
+
declare function Dropdown({ label, color, labelColor, className, onChange, id, style, }: DropdownProps): React.JSX.Element;
|
|
13
15
|
export default Dropdown;
|
|
14
16
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/core/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../src/core/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,gBAAgB,CAAC;AAIxB,MAAM,WAAW,aAAa;IAG5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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,KAAK,GAAG,CAAC;CACnC;AAED,iBAAS,QAAQ,CAAC,EAChB,KAAK,EACL,KAA2B,EAC3B,UAAgC,EAChC,SAAS,EACT,QAAQ,EACR,EAAE,EACF,KAAK,GACN,EAAE,aAAa,qBAqDf;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -13,6 +13,7 @@ export interface RotarySliderProps {
|
|
|
13
13
|
color?: string;
|
|
14
14
|
style?: object;
|
|
15
15
|
label: string;
|
|
16
|
+
labelColor?: string;
|
|
16
17
|
/**
|
|
17
18
|
* Returns the scaled value of the parameter. This corresponds to the return value of
|
|
18
19
|
* NormalisableRange::convertFrom0to1() (C++). This value will differ from a linear
|
|
@@ -21,7 +22,7 @@ export interface RotarySliderProps {
|
|
|
21
22
|
mockInitialNormalisedValue?: number;
|
|
22
23
|
mockProperties?: JuceSliderProperties;
|
|
23
24
|
}
|
|
24
|
-
declare function RotarySlider({ polarity, label, className, id, onChange, rotationBehavior, mockInitialNormalisedValue, isRandomizable, mockProperties, color, style, }: React.PropsWithChildren<RotarySliderProps>): React.JSX.Element;
|
|
25
|
+
declare function RotarySlider({ polarity, label, className, id, onChange, rotationBehavior, mockInitialNormalisedValue, isRandomizable, mockProperties, labelColor, color, style, }: React.PropsWithChildren<RotarySliderProps>): React.JSX.Element;
|
|
25
26
|
declare namespace RotarySlider {
|
|
26
27
|
var sliderPolarity: typeof Polarity;
|
|
27
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RotarySlider.d.ts","sourceRoot":"","sources":["../../../../src/core/Slider/RotarySlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAI9C,OAAO,oBAAoB,CAAC;AAK5B,MAAM,WAAW,iBAAiB;IAGhC,EAAE,EAAE,GAAG,CAAC;IAER,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAIpB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAEnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IAKH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAoCpC,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,iBAAS,YAAY,CAAC,EACpB,QAA0B,EAC1B,KAAK,EACL,SAAS,EACT,EAAE,EACF,QAAQ,EACR,gBAAyD,EAEzD,0BAA8B,EAC9B,cAAsB,EACtB,cAKC,EACD,KAA+B,EAC/B,KAAK,GACN,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"RotarySlider.d.ts","sourceRoot":"","sources":["../../../../src/core/Slider/RotarySlider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAI9C,OAAO,oBAAoB,CAAC;AAK5B,MAAM,WAAW,iBAAiB;IAGhC,EAAE,EAAE,GAAG,CAAC;IAER,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAIpB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAEnC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IAKH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAoCpC,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,iBAAS,YAAY,CAAC,EACpB,QAA0B,EAC1B,KAAK,EACL,SAAS,EACT,EAAE,EACF,QAAQ,EACR,gBAAyD,EAEzD,0BAA8B,EAC9B,cAAsB,EACtB,cAKC,EACD,UAAU,EACV,KAA+B,EAC/B,KAAK,GACN,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,qBAgE5C;kBAnFQ,YAAY;;;AAsFrB,eAAe,YAAY,CAAC"}
|
|
@@ -3,16 +3,16 @@ declare const useDropdown: ({ id, label, items, filter, onChange, displayValInHe
|
|
|
3
3
|
label?: string;
|
|
4
4
|
filter?: string;
|
|
5
5
|
items?: Array<string>;
|
|
6
|
-
onChange?: ((value:
|
|
6
|
+
onChange?: ((value: string) => unknown | void) | React.Dispatch<React.SetStateAction<any>>;
|
|
7
7
|
displayValInHeader?: boolean;
|
|
8
8
|
}) => {
|
|
9
|
-
value:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
value: string;
|
|
10
|
+
index: number;
|
|
11
|
+
setIndex: (index: number) => void;
|
|
12
12
|
choices: Array<string>;
|
|
13
13
|
filteredChoices: Array<string>;
|
|
14
14
|
onMouseEnter: () => void;
|
|
15
|
-
handleChange: (value:
|
|
15
|
+
handleChange: (value: string) => void;
|
|
16
16
|
};
|
|
17
17
|
export default useDropdown;
|
|
18
18
|
//# sourceMappingURL=useDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDropdown.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropdown.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW,GAAI,6DAOlB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EACL,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC,GACnC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,KAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"useDropdown.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDropdown.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW,GAAI,6DAOlB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,CAAC,EACL,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC,GACnC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9C,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,KAAG;IACF,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAyEvC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSlider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAc,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,SAAS,GAAI,0GAahB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;CACnC;mCAyGuC,MAAM;+BASV,MAAM;;;;;;;
|
|
1
|
+
{"version":3,"file":"useSlider.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSlider.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAc,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,SAAS,GAAI,0GAahB;IACD,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,GAAG,CAAC;CACnC;mCAyGuC,MAAM;+BASV,MAAM;;;;;;;CA0JzC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|