@antimatter-audio/antimatter-ui 14.15.0 → 14.16.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ModuleFooter.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModuleFooter/ModuleFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,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,qBA2GA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ModuleFooter.d.ts","sourceRoot":"","sources":["../../../src/advanced/ModuleFooter/ModuleFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,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,qBAqGA;AAED,eAAe,YAAY,CAAC"}
@@ -24,16 +24,19 @@ export interface CommonTabsProps {
24
24
  selectedBackgroundColor?: string;
25
25
  hoverColor?: string;
26
26
  hoverBackgroundColor?: string;
27
+ isDisabled?: boolean;
27
28
  }
28
29
  export type ConditionalTabsProps = {
30
+ initialSelectedIndex?: never;
29
31
  items?: never;
30
32
  id?: string;
31
33
  } | {
34
+ initialSelectedIndex?: number | null;
32
35
  items?: Array<string>;
33
36
  id?: never;
34
37
  };
35
38
  type TabsProps = CommonTabsProps & ConditionalTabsProps;
36
- declare function Tabs({ items, id, className, padding, margin, gap, width, height, tabWidth, tabHeight, orientation, justifyContent, alignItems, color, selectedColor, backgroundColor, fontSize, selectedBackgroundColor, icons, onChange, }: React.PropsWithChildren<TabsProps>): React.JSX.Element;
39
+ declare function Tabs({ items, initialSelectedIndex, id, className, padding, margin, gap, width, height, tabWidth, tabHeight, orientation, justifyContent, alignItems, color, selectedColor, backgroundColor, fontSize, selectedBackgroundColor, icons, onChange, isDisabled, }: React.PropsWithChildren<TabsProps>): React.JSX.Element;
37
40
  declare namespace Tabs {
38
41
  var padding: typeof Spacing;
39
42
  var gap: typeof Spacing;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/core/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,OAAO,EACP,SAAS,EACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAKrC,MAAM,WAAW,eAAe;IAI9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC,OA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AE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAOD,MAAM,MAAM,oBAAoB,GAC5B;IACE,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GACD;IACE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,EAAE,CAAC,EAAE,KAAK,CAAC;CACZ,CAAC;AAEN,KAAK,SAAS,GAAG,eAAe,GAAG,oBAAoB,CAAC;AAExD,iBAAS,IAAI,CAAC,EACZ,KAAK,EACL,oBAAgC,EAChC,EAAO,EACP,SAAS,EACT,OAAwB,EACxB,MAAuB,EACvB,GAAmB,EACnB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAoC,EACpC,cAAuC,EACvC,UAA+B,EAC/B,KAAwB,EACxB,aAAoC,EACpC,eAA+B,EAC/B,QAA0B,EAC1B,uBAAuB,EACvB,KAAK,EACL,QAAQ,EACR,UAAU,GAEX,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,qBAgHpC;kBAxIQ,IAAI;;;;;;;;;AAkJb,eAAe,IAAI,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useRef, useReducer, useCallback, createContext, useContext, useEffect, useState, useEffectEvent } from 'react';
3
+ import * as Juce from 'juce-framework-frontend';
3
4
  import classnames from 'classnames';
4
5
  import { TabGroup, TabList, Tab, Listbox, ListboxButton, ListboxOptions, ListboxOption, Combobox, ComboboxInput, ComboboxButton, ComboboxOptions, ComboboxOption } from '@headlessui/react';
5
- import * as Juce from 'juce-framework-frontend';
6
6
  import { useGesture } from '@use-gesture/react';
7
7
  import * as d3 from 'd3';
8
8
  import { line, curveBasis, area, scaleLinear, stack, scaleOrdinal } from 'd3';
@@ -1915,13 +1915,173 @@ function _unsupported_iterable_to_array$f(o, minLen) {
1915
1915
  if (n === "Map" || n === "Set") return Array.from(n);
1916
1916
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$f(o, minLen);
1917
1917
  }
1918
+ function Tabs(param) {
1919
+ var items = param.items, _param_initialSelectedIndex = param.initialSelectedIndex, initialSelectedIndex = _param_initialSelectedIndex === void 0 ? undefined : _param_initialSelectedIndex, _param_id = param.id, id = _param_id === void 0 ? '' : _param_id, className = param.className, _param_padding = param.padding, padding = _param_padding === void 0 ? [
1920
+ Spacing.none
1921
+ ] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
1922
+ Spacing.none
1923
+ ] : _param_margin, _param_gap = param.gap, gap = _param_gap === void 0 ? Spacing.small : _param_gap, width = param.width, height = param.height, tabWidth = param.tabWidth, tabHeight = param.tabHeight, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.horizontal : _param_orientation, _param_justifyContent = param.justifyContent, justifyContent = _param_justifyContent === void 0 ? JustifyContent$1.stretch : _param_justifyContent, _param_alignItems = param.alignItems, alignItems = _param_alignItems === void 0 ? AlignItems$1.stretch : _param_alignItems, _param_color = param.color, color = _param_color === void 0 ? 'var(--bg-lv11)' : _param_color, _param_selectedColor = param.selectedColor, selectedColor = _param_selectedColor === void 0 ? 'var(--color-brand)' : _param_selectedColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'transparent' : _param_backgroundColor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.small : _param_fontSize, selectedBackgroundColor = param.selectedBackgroundColor, icons = param.icons, onChange = param.onChange, isDisabled = param.isDisabled;
1924
+ var _useState = _sliced_to_array$f(useState(null), 2), selectedIndex = _useState[0], setSelectedIndex = _useState[1];
1925
+ var _useState1 = _sliced_to_array$f(useState([]), 2), choices = _useState1[0], setChoices = _useState1[1];
1926
+ var dataSource = id ? "JuceCombobox" : "JuceAction";
1927
+ var comboBoxState = dataSource === "JuceCombobox" ? Juce.getComboBoxState(id) : null;
1928
+ useEffect(function() {
1929
+ if (dataSource === "JuceCombobox") {
1930
+ var _comboBoxState_properties;
1931
+ setChoices(comboBoxState === null || comboBoxState === void 0 ? void 0 : (_comboBoxState_properties = comboBoxState.properties) === null || _comboBoxState_properties === void 0 ? void 0 : _comboBoxState_properties.choices);
1932
+ setSelectedIndex(comboBoxState.getChoiceIndex());
1933
+ } else {
1934
+ setChoices((items === null || items === void 0 ? void 0 : items.length) ? items : []);
1935
+ }
1936
+ }, [
1937
+ window
1938
+ ]);
1939
+ useEffect(function() {
1940
+ if (initialSelectedIndex !== null && initialSelectedIndex !== undefined && selectedIndex === null) {
1941
+ setSelectedIndex(initialSelectedIndex);
1942
+ }
1943
+ }, [
1944
+ initialSelectedIndex
1945
+ ]);
1946
+ var handleChange = function(choiceIndex) {
1947
+ if (!isDisabled && choiceIndex !== selectedIndex) {
1948
+ if (dataSource === "JuceCombobox") {
1949
+ comboBoxState.setChoiceIndex(choiceIndex);
1950
+ }
1951
+ onChange && onChange(choiceIndex);
1952
+ setSelectedIndex(choiceIndex);
1953
+ return choices[choiceIndex];
1954
+ }
1955
+ return;
1956
+ };
1957
+ var _margin_, _margin_1, _margin_2, _ref;
1958
+ // console.log(choices, 'CHOICES');
1959
+ //around
1960
+ //vertical, horizontal
1961
+ // top, right, bottom, left
1962
+ return /*#__PURE__*/ React__default.createElement(TabGroup, {
1963
+ style: {
1964
+ marginTop: "var(--mt-".concat(margin[0], ")"),
1965
+ marginRight: "var(--mr-".concat((_margin_ = margin[1]) !== null && _margin_ !== void 0 ? _margin_ : margin[0], ")"),
1966
+ marginBottom: "var(--mb-".concat((_margin_1 = margin[2]) !== null && _margin_1 !== void 0 ? _margin_1 : margin[0], ")"),
1967
+ marginLeft: "var(--ml-".concat((_ref = (_margin_2 = margin[3]) !== null && _margin_2 !== void 0 ? _margin_2 : margin[1]) !== null && _ref !== void 0 ? _ref : margin[0], ")"),
1968
+ width: width,
1969
+ height: height
1970
+ },
1971
+ manual: true,
1972
+ selectedIndex: selectedIndex !== null && selectedIndex !== void 0 ? selectedIndex : 0,
1973
+ onChange: function(index) {
1974
+ return handleChange(index);
1975
+ }
1976
+ }, /*#__PURE__*/ React__default.createElement(TabList, {
1977
+ className: classnames('Tabs', className),
1978
+ style: {
1979
+ gap: "var(--gap-".concat(gap, ")"),
1980
+ height: height ? height : 'auto',
1981
+ justifyContent: justifyContent,
1982
+ alignItems: alignItems,
1983
+ flexDirection: orientation === Orientation.horizontal ? 'row' : 'column'
1984
+ }
1985
+ }, choices && choices.map(function(item, i) {
1986
+ var _padding_, _padding_1, _padding_2, _ref;
1987
+ return /*#__PURE__*/ React__default.createElement(Tab, {
1988
+ key: item,
1989
+ id: item,
1990
+ style: {
1991
+ cursor: 'pointer',
1992
+ width: tabWidth,
1993
+ height: tabHeight,
1994
+ fontSize: 'var(--text-md)',
1995
+ lineHeight: '1.25rem',
1996
+ backgroundColor: i === selectedIndex ? selectedBackgroundColor !== null && selectedBackgroundColor !== void 0 ? selectedBackgroundColor : backgroundColor : backgroundColor,
1997
+ paddingTop: "var(--p-".concat(padding[0], ")"),
1998
+ paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
1999
+ paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
2000
+ 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], ")"),
2001
+ display: 'flex',
2002
+ flex: 1,
2003
+ justifyContent: 'center',
2004
+ alignItems: 'center'
2005
+ },
2006
+ className: classnames('Tabs-item', 'bg-body', 'color-input-text')
2007
+ }, icons && icons[i] ? /*#__PURE__*/ React__default.createElement(IconButton, {
2008
+ icon: icons[i],
2009
+ id: item,
2010
+ iconWidth: "20px",
2011
+ // width={tabWidth}
2012
+ // height={tabHeight}
2013
+ color: i === selectedIndex ? selectedColor : color
2014
+ }) : /*#__PURE__*/ React__default.createElement(Label, {
2015
+ value: item,
2016
+ fontSize: fontSize,
2017
+ color: color
2018
+ }));
2019
+ })));
2020
+ }
2021
+ Tabs.padding = Spacing;
2022
+ Tabs.gap = Spacing;
2023
+ Tabs.margin = Spacing;
2024
+ Tabs.orientation = Orientation;
2025
+ Tabs.justifyContent = JustifyContent$1;
2026
+ Tabs.alignItems = AlignItems$1;
2027
+ Tabs.fontSize = FontSizes;
2028
+
2029
+ var css_248z$b = ".Dropdown-button {\n font-size: var(--text-sm);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--spacing-ml);\n cursor: pointer;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-align: center;\n border-radius: 4px;\n appearance: none;\n user-select: none;\n -webkit-user-select: none;\n height: 26px;\n border: 1px solid var(--bg-lv9);\n /* background: var(--color-gray-800); */\n /* color: var(--color-text); */\n}\n\n.Dropdown-button:hover,\n.Dropdown-button[data-open] {\n outline: none;\n cursor: pointer;\n border: 1px solid var(--color-brand-secondary);\n}\n\n.Dropdown-button:hover .Label {\n cursor: pointer;\n}\n\n.Dropdown-button:disabled {\n cursor: default;\n}\n\n.Dropdown-items {\n border: 1px solid var(--bg-lv9);\n background: var(--bg-lv4);\n box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 5px 3px;\n border-radius: 4px;\n width: 150px;\n z-index: 50;\n}\n\n.Dropdown-item {\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}\n\n.Dropdown-item[data-selected] {\n color: var(--color-brand-secondary);\n}\n\n.Dropdown-item:hover {\n background-color: var(--bg-lv7);\n}\n\n.Dropdown-item:hover:not([data-selected]) {\n color: var(--color-text);\n}\n";
2030
+ styleInject(css_248z$b);
2031
+
2032
+ function _array_like_to_array$e(arr, len) {
2033
+ if (len == null || len > arr.length) len = arr.length;
2034
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2035
+ return arr2;
2036
+ }
2037
+ function _array_with_holes$e(arr) {
2038
+ if (Array.isArray(arr)) return arr;
2039
+ }
2040
+ function _iterable_to_array_limit$e(arr, i) {
2041
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2042
+ if (_i == null) return;
2043
+ var _arr = [];
2044
+ var _n = true;
2045
+ var _d = false;
2046
+ var _s, _e;
2047
+ try {
2048
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
2049
+ _arr.push(_s.value);
2050
+ if (i && _arr.length === i) break;
2051
+ }
2052
+ } catch (err) {
2053
+ _d = true;
2054
+ _e = err;
2055
+ } finally{
2056
+ try {
2057
+ if (!_n && _i["return"] != null) _i["return"]();
2058
+ } finally{
2059
+ if (_d) throw _e;
2060
+ }
2061
+ }
2062
+ return _arr;
2063
+ }
2064
+ function _non_iterable_rest$e() {
2065
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2066
+ }
2067
+ function _sliced_to_array$e(arr, i) {
2068
+ return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$e();
2069
+ }
2070
+ function _unsupported_iterable_to_array$e(o, minLen) {
2071
+ if (!o) return;
2072
+ if (typeof o === "string") return _array_like_to_array$e(o, minLen);
2073
+ var n = Object.prototype.toString.call(o).slice(8, -1);
2074
+ if (n === "Object" && o.constructor) n = o.constructor.name;
2075
+ if (n === "Map" || n === "Set") return Array.from(n);
2076
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
2077
+ }
1918
2078
  var useDropdown = function(param) {
1919
2079
  var id = param.id, // TODO: Is there a better way to handle mod matrix dropdowns?
1920
2080
  rowId = param.rowId, label = param.label, _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, filter = param.filter, onChange = param.onChange, _param_displayValInHeader = param.displayValInHeader, displayValInHeader = _param_displayValInHeader === void 0 ? true : _param_displayValInHeader;
1921
2081
  var _properties_choices;
1922
2082
  var comboBoxState = Juce.getComboBoxState(id);
1923
- var _useState = _sliced_to_array$f(useState(comboBoxState.getChoiceIndex()), 2), index = _useState[0], setIndex = _useState[1];
1924
- var _useState1 = _sliced_to_array$f(useState(comboBoxState.properties), 2), properties = _useState1[0], setProperties = _useState1[1];
2083
+ var _useState = _sliced_to_array$e(useState(comboBoxState.getChoiceIndex()), 2), index = _useState[0], setIndex = _useState[1];
2084
+ var _useState1 = _sliced_to_array$e(useState(comboBoxState.properties), 2), properties = _useState1[0], setProperties = _useState1[1];
1925
2085
  var _useGlobalContext = useGlobalContext(), highlightedItemChanged = _useGlobalContext.highlightedItemChanged, setModSlotRowTargetAsPreview = _useGlobalContext.setModSlotRowTargetAsPreview;
1926
2086
  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 : [];
1927
2087
  var filteredChoices = filter ? choices === null || choices === void 0 ? void 0 : choices.filter(function(item) {
@@ -2017,148 +2177,6 @@ var useDropdown = function(param) {
2017
2177
  };
2018
2178
  };
2019
2179
 
2020
- function _array_like_to_array$e(arr, len) {
2021
- if (len == null || len > arr.length) len = arr.length;
2022
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2023
- return arr2;
2024
- }
2025
- function _array_with_holes$e(arr) {
2026
- if (Array.isArray(arr)) return arr;
2027
- }
2028
- function _iterable_to_array_limit$e(arr, i) {
2029
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2030
- if (_i == null) return;
2031
- var _arr = [];
2032
- var _n = true;
2033
- var _d = false;
2034
- var _s, _e;
2035
- try {
2036
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
2037
- _arr.push(_s.value);
2038
- if (i && _arr.length === i) break;
2039
- }
2040
- } catch (err) {
2041
- _d = true;
2042
- _e = err;
2043
- } finally{
2044
- try {
2045
- if (!_n && _i["return"] != null) _i["return"]();
2046
- } finally{
2047
- if (_d) throw _e;
2048
- }
2049
- }
2050
- return _arr;
2051
- }
2052
- function _non_iterable_rest$e() {
2053
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2054
- }
2055
- function _sliced_to_array$e(arr, i) {
2056
- return _array_with_holes$e(arr) || _iterable_to_array_limit$e(arr, i) || _unsupported_iterable_to_array$e(arr, i) || _non_iterable_rest$e();
2057
- }
2058
- function _unsupported_iterable_to_array$e(o, minLen) {
2059
- if (!o) return;
2060
- if (typeof o === "string") return _array_like_to_array$e(o, minLen);
2061
- var n = Object.prototype.toString.call(o).slice(8, -1);
2062
- if (n === "Object" && o.constructor) n = o.constructor.name;
2063
- if (n === "Map" || n === "Set") return Array.from(n);
2064
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$e(o, minLen);
2065
- }
2066
- function Tabs(param) {
2067
- var items = param.items, _param_id = param.id, id = _param_id === void 0 ? '' : _param_id, className = param.className, _param_padding = param.padding, padding = _param_padding === void 0 ? [
2068
- Spacing.none
2069
- ] : _param_padding, _param_margin = param.margin, margin = _param_margin === void 0 ? [
2070
- Spacing.none
2071
- ] : _param_margin, _param_gap = param.gap, gap = _param_gap === void 0 ? Spacing.small : _param_gap, width = param.width, height = param.height, tabWidth = param.tabWidth, tabHeight = param.tabHeight, _param_orientation = param.orientation, orientation = _param_orientation === void 0 ? Orientation.horizontal : _param_orientation, _param_justifyContent = param.justifyContent, justifyContent = _param_justifyContent === void 0 ? JustifyContent$1.stretch : _param_justifyContent, _param_alignItems = param.alignItems, alignItems = _param_alignItems === void 0 ? AlignItems$1.stretch : _param_alignItems, _param_color = param.color, color = _param_color === void 0 ? 'var(--bg-lv11)' : _param_color, _param_selectedColor = param.selectedColor, selectedColor = _param_selectedColor === void 0 ? 'var(--color-brand)' : _param_selectedColor, _param_backgroundColor = param.backgroundColor, backgroundColor = _param_backgroundColor === void 0 ? 'transparent' : _param_backgroundColor, _param_fontSize = param.fontSize, fontSize = _param_fontSize === void 0 ? FontSizes.small : _param_fontSize, selectedBackgroundColor = param.selectedBackgroundColor, icons = param.icons, onChange = param.onChange;
2072
- var _useState = _sliced_to_array$e(useState(0), 2), selectedIndex = _useState[0], setSelectedIndex = _useState[1];
2073
- var _useDropdown = useDropdown({
2074
- id: id,
2075
- onChange: onChange
2076
- }), index = _useDropdown.index, choices = _useDropdown.choices, handleChange = _useDropdown.handleChange;
2077
- var changeHandler = function(index) {
2078
- if (id) {
2079
- handleChange(index);
2080
- } else {
2081
- setSelectedIndex(index);
2082
- onChange && onChange(index);
2083
- }
2084
- };
2085
- var currentIndex = id ? index : selectedIndex;
2086
- // console.log(choices, 'CHOICES');
2087
- var displayedItems = items !== null && items !== void 0 ? items : choices;
2088
- var _margin_, _margin_1, _margin_2, _ref;
2089
- //around
2090
- //vertical, horizontal
2091
- // top, right, bottom, left
2092
- return /*#__PURE__*/ React__default.createElement(TabGroup, {
2093
- style: {
2094
- marginTop: "var(--mt-".concat(margin[0], ")"),
2095
- marginRight: "var(--mr-".concat((_margin_ = margin[1]) !== null && _margin_ !== void 0 ? _margin_ : margin[0], ")"),
2096
- marginBottom: "var(--mb-".concat((_margin_1 = margin[2]) !== null && _margin_1 !== void 0 ? _margin_1 : margin[0], ")"),
2097
- marginLeft: "var(--ml-".concat((_ref = (_margin_2 = margin[3]) !== null && _margin_2 !== void 0 ? _margin_2 : margin[1]) !== null && _ref !== void 0 ? _ref : margin[0], ")"),
2098
- width: width,
2099
- height: height
2100
- },
2101
- manual: true,
2102
- selectedIndex: currentIndex,
2103
- onChange: function(index) {
2104
- return changeHandler(index);
2105
- }
2106
- }, /*#__PURE__*/ React__default.createElement(TabList, {
2107
- className: classnames('Tabs', className),
2108
- style: {
2109
- gap: "var(--gap-".concat(gap, ")"),
2110
- height: height ? height : 'auto',
2111
- justifyContent: justifyContent,
2112
- alignItems: alignItems,
2113
- flexDirection: orientation === Orientation.horizontal ? 'row' : 'column'
2114
- }
2115
- }, displayedItems && displayedItems.map(function(item, i) {
2116
- var _padding_, _padding_1, _padding_2, _ref;
2117
- return /*#__PURE__*/ React__default.createElement(Tab, {
2118
- key: item,
2119
- id: item,
2120
- style: {
2121
- cursor: 'pointer',
2122
- width: tabWidth,
2123
- height: tabHeight,
2124
- fontSize: 'var(--text-md)',
2125
- lineHeight: '1.25rem',
2126
- backgroundColor: i === currentIndex ? selectedBackgroundColor !== null && selectedBackgroundColor !== void 0 ? selectedBackgroundColor : backgroundColor : backgroundColor,
2127
- paddingTop: "var(--p-".concat(padding[0], ")"),
2128
- paddingRight: "var(--p-".concat((_padding_ = padding[1]) !== null && _padding_ !== void 0 ? _padding_ : padding[0], ")"),
2129
- paddingBottom: "var(--p-".concat((_padding_1 = padding[2]) !== null && _padding_1 !== void 0 ? _padding_1 : padding[0], ")"),
2130
- 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], ")"),
2131
- display: 'flex',
2132
- flex: 1,
2133
- justifyContent: 'center',
2134
- alignItems: 'center'
2135
- },
2136
- className: classnames('Tabs-item', 'bg-body', 'color-input-text')
2137
- }, icons && icons[i] ? /*#__PURE__*/ React__default.createElement(IconButton, {
2138
- icon: icons[i],
2139
- id: item,
2140
- iconWidth: "20px",
2141
- // width={tabWidth}
2142
- // height={tabHeight}
2143
- color: i === currentIndex ? selectedColor : color
2144
- }) : /*#__PURE__*/ React__default.createElement(Label, {
2145
- value: item,
2146
- fontSize: fontSize,
2147
- color: color
2148
- }));
2149
- })));
2150
- }
2151
- Tabs.padding = Spacing;
2152
- Tabs.gap = Spacing;
2153
- Tabs.margin = Spacing;
2154
- Tabs.orientation = Orientation;
2155
- Tabs.justifyContent = JustifyContent$1;
2156
- Tabs.alignItems = AlignItems$1;
2157
- Tabs.fontSize = FontSizes;
2158
-
2159
- var css_248z$b = ".Dropdown-button {\n font-size: var(--text-sm);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--spacing-ml);\n cursor: pointer;\n vertical-align: middle;\n white-space: nowrap;\n text-decoration: none;\n text-align: center;\n border-radius: 4px;\n appearance: none;\n user-select: none;\n -webkit-user-select: none;\n height: 26px;\n border: 1px solid var(--bg-lv9);\n /* background: var(--color-gray-800); */\n /* color: var(--color-text); */\n}\n\n.Dropdown-button:hover,\n.Dropdown-button[data-open] {\n outline: none;\n cursor: pointer;\n border: 1px solid var(--color-brand-secondary);\n}\n\n.Dropdown-button:hover .Label {\n cursor: pointer;\n}\n\n.Dropdown-button:disabled {\n cursor: default;\n}\n\n.Dropdown-items {\n border: 1px solid var(--bg-lv9);\n background: var(--bg-lv4);\n box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 5px 3px;\n border-radius: 4px;\n width: 150px;\n z-index: 50;\n}\n\n.Dropdown-item {\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}\n\n.Dropdown-item[data-selected] {\n color: var(--color-brand-secondary);\n}\n\n.Dropdown-item:hover {\n background-color: var(--bg-lv7);\n}\n\n.Dropdown-item:hover:not([data-selected]) {\n color: var(--color-text);\n}\n";
2160
- styleInject(css_248z$b);
2161
-
2162
2180
  function _define_property$i(obj, key, value) {
2163
2181
  if (key in obj) {
2164
2182
  Object.defineProperty(obj, key, {
@@ -2719,11 +2737,11 @@ var useSlider = function(param) {
2719
2737
  ]);
2720
2738
  // Update JUCE state
2721
2739
  var setNormalisedState = function(newValue) {
2722
- var fixedNewValue = parseFloat(newValue.toFixed(2));
2723
- if ((normalisedValueRef === null || normalisedValueRef === void 0 ? void 0 : normalisedValueRef.current) !== fixedNewValue) {
2724
- !isLocalhost && sliderState.setNormalisedValue(clamp(fixedNewValue));
2740
+ var stringValue = parseFloat("".concat(newValue));
2741
+ if ((normalisedValueRef === null || normalisedValueRef === void 0 ? void 0 : normalisedValueRef.current) !== stringValue) {
2742
+ !isLocalhost && sliderState.setNormalisedValue(clamp(stringValue));
2725
2743
  rowId && changeHandler(newValue, rowId);
2726
- normalisedValueRef.current = fixedNewValue;
2744
+ normalisedValueRef.current = stringValue;
2727
2745
  }
2728
2746
  };
2729
2747
  var bindDrag = useGesture({
@@ -8211,7 +8229,7 @@ var SettingsTab = function() {
8211
8229
  };
8212
8230
  function ModuleFooter(param) {
8213
8231
  var className = param.className, style = param.style;
8214
- var _useState = _sliced_to_array(useState(0), 2), selectedTab = _useState[0], setSelectedTab = _useState[1];
8232
+ var _useState = _sliced_to_array(useState(null), 2), selectedTab = _useState[0], setSelectedTab = _useState[1];
8215
8233
  var setSelectedFooterTabFunc = Juce.getNativeFunction('setSelectedFooterTab');
8216
8234
  var getSelectedFooterTabFunc = Juce.getNativeFunction('getSelectedFooterTab');
8217
8235
  useEffect(function() {
@@ -8258,22 +8276,8 @@ function ModuleFooter(param) {
8258
8276
  window
8259
8277
  ]);
8260
8278
  var handleTabChange = function(newSelection) {
8261
- var updateBackend = function() {
8262
- return _async_to_generator(function() {
8263
- return _ts_generator(this, function(_state) {
8264
- try {
8265
- setSelectedFooterTabFunc(newSelection);
8266
- setSelectedTab(newSelection);
8267
- } catch (e) {
8268
- console.log(e);
8269
- }
8270
- return [
8271
- 2
8272
- ];
8273
- });
8274
- })();
8275
- };
8276
- updateBackend();
8279
+ setSelectedTab(newSelection);
8280
+ setSelectedFooterTabFunc(newSelection);
8277
8281
  };
8278
8282
  return /*#__PURE__*/ React__default.createElement(Box, {
8279
8283
  gap: Box.gap.small,
@@ -8307,6 +8311,7 @@ function ModuleFooter(param) {
8307
8311
  'Sequencer',
8308
8312
  'Settings'
8309
8313
  ],
8314
+ initialSelectedIndex: selectedTab,
8310
8315
  onChange: handleTabChange,
8311
8316
  padding: [
8312
8317
  Tabs.padding.medium,
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,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;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AO,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,qBA2GA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ModuleFooter.d.ts","sourceRoot":"","sources":["../../../../src/advanced/ModuleFooter/ModuleFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,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,qBAqGA;AAED,eAAe,YAAY,CAAC"}
@@ -24,16 +24,19 @@ export interface CommonTabsProps {
24
24
  selectedBackgroundColor?: string;
25
25
  hoverColor?: string;
26
26
  hoverBackgroundColor?: string;
27
+ isDisabled?: boolean;
27
28
  }
28
29
  export type ConditionalTabsProps = {
30
+ initialSelectedIndex?: never;
29
31
  items?: never;
30
32
  id?: string;
31
33
  } | {
34
+ initialSelectedIndex?: number | null;
32
35
  items?: Array<string>;
33
36
  id?: never;
34
37
  };
35
38
  type TabsProps = CommonTabsProps & ConditionalTabsProps;
36
- declare function Tabs({ items, id, className, padding, margin, gap, width, height, tabWidth, tabHeight, orientation, justifyContent, alignItems, color, selectedColor, backgroundColor, fontSize, selectedBackgroundColor, icons, onChange, }: React.PropsWithChildren<TabsProps>): React.JSX.Element;
39
+ declare function Tabs({ items, initialSelectedIndex, id, className, padding, margin, gap, width, height, tabWidth, tabHeight, orientation, justifyContent, alignItems, color, selectedColor, backgroundColor, fontSize, selectedBackgroundColor, icons, onChange, isDisabled, }: React.PropsWithChildren<TabsProps>): React.JSX.Element;
37
40
  declare namespace Tabs {
38
41
  var padding: typeof Spacing;
39
42
  var gap: typeof Spacing;
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/core/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,OAAO,EACP,SAAS,EACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAKrC,MAAM,WAAW,eAAe;IAI9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,C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,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GACD;IACE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,EAAE,CAAC,EAAE,KAAK,CAAC;CACZ,CAAC;AAEN,KAAK,SAAS,GAAG,eAAe,GAAG,oBAAoB,CAAC;AAExD,iBAAS,IAAI,CAAC,EACZ,KAAK,EACL,oBAAgC,EAChC,EAAO,EACP,SAAS,EACT,OAAwB,EACxB,MAAuB,EACvB,GAAmB,EACnB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,SAAS,EACT,WAAoC,EACpC,cAAuC,EACvC,UAA+B,EAC/B,KAAwB,EACxB,aAAoC,EACpC,eAA+B,EAC/B,QAA0B,EAC1B,uBAAuB,EACvB,KAAK,EACL,QAAQ,EACR,UAAU,GAEX,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAAC,qBAgHpC;kBAxIQ,IAAI;;;;;;;;;AAkJb,eAAe,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antimatter-audio/antimatter-ui",
3
- "version": "14.15.0",
3
+ "version": "14.16.0",
4
4
  "description": "React UI component library for Antimatter Audio.",
5
5
  "repository": {
6
6
  "type": "git",