@mmb-digital/ds-lilly 0.10.13 → 0.10.15

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/ds-lilly.js CHANGED
@@ -97956,7 +97956,7 @@ var CompactButtons_rest = (undefined && undefined.__rest) || function (s, e) {
97956
97956
 
97957
97957
 
97958
97958
  var CompactButtons = function (_a) {
97959
- var background = _a.background, buttons = _a.buttons, isSmall = _a.isSmall, _b = _a.maxVisibleButtons, maxVisibleButtons = _b === void 0 ? buttons.length : _b, theme = _a.theme, _c = _a.type, type = _c === void 0 ? 'filled' : _c;
97959
+ var background = _a.background, buttons = _a.buttons, isSmall = _a.isSmall, otherButton = _a.otherButton, _b = _a.maxVisibleButtons, maxVisibleButtons = _b === void 0 ? buttons.length : _b, theme = _a.theme, _c = _a.type, type = _c === void 0 ? 'filled' : _c;
97960
97960
  var container = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"])(null);
97961
97961
  var refs = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"])([]);
97962
97962
  var dropdownRef = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useRef"])();
@@ -98091,7 +98091,7 @@ var CompactButtons = function (_a) {
98091
98091
  label),
98092
98092
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("i", { className: "c-compact-buttons__button_separator" })));
98093
98093
  }),
98094
- !isButtonVisible(buttons.length - 1) && (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Dropdown, { forceVisibility: isDropdownVisible, placement: "bottom-end", trigger: null, triggerComponent: external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Button, { "aria-hidden": true, ariaLabel: "other", color: background, isSmall: isSmall, theme: "c-compact-buttons__button c-compact-buttons__opener", type: type, onClick: toggleDropdownVisibility, onKeyDown: handleOpenerKeyPress },
98094
+ !isButtonVisible(buttons.length - 1) && (external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Dropdown, { forceVisibility: isDropdownVisible, placement: "bottom-end", trigger: null, triggerComponent: external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Button, CompactButtons_assign({ color: background, isSmall: isSmall, theme: "c-compact-buttons__button c-compact-buttons__opener", type: type, onClick: toggleDropdownVisibility, onKeyDown: handleOpenerKeyPress }, otherButton),
98095
98095
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Icon, { name: "other" }),
98096
98096
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("span", { className: "c-compact-buttons__dropdown__opener" })), onVisibleChange: function (state) { return setIsDropdownVisible(state); } },
98097
98097
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(DropdownMenu, { ref: dropdownRef, tabIndex: 0, onKeyDown: handleOptionKeyPress }, buttons.map(function (_a, i) {
@@ -109652,8 +109652,8 @@ var Textarea2 = function (_a) {
109652
109652
 
109653
109653
 
109654
109654
  var Toggle = function (_a) {
109655
- var children = _a.children, disabledTooltip = _a.disabledTooltip, disabledTooltipType = _a.disabledTooltipType, iconName = _a.iconName, _b = _a.isActive, isActive = _b === void 0 ? false : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isSecondary, isSecondary = _d === void 0 ? false : _d, name = _a.name, onChange = _a.onChange, _e = _a.testId, testId = _e === void 0 ? 'Toggle' : _e, theme = _a.theme;
109656
- var _f = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(isActive), checked = _f[0], setChecked = _f[1];
109655
+ var children = _a.children, color = _a.color, disabledTooltip = _a.disabledTooltip, disabledTooltipType = _a.disabledTooltipType, iconName = _a.iconName, iconNameChecked = _a.iconNameChecked, _b = _a.isActive, isActive = _b === void 0 ? false : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, isSecondary = _a.isSecondary, name = _a.name, onChange = _a.onChange, _d = _a.testId, testId = _d === void 0 ? 'Toggle' : _d, theme = _a.theme;
109656
+ var _e = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_["useState"])(isActive), checked = _e[0], setChecked = _e[1];
109657
109657
  var handleOnClick = function (event) {
109658
109658
  onChange && onChange(!checked, event);
109659
109659
  setChecked(!checked);
@@ -109665,9 +109665,9 @@ var Toggle = function (_a) {
109665
109665
  isDisabled: isDisabled,
109666
109666
  disabledTooltip: disabledTooltip,
109667
109667
  disabledTooltipType: disabledTooltipType
109668
- })(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: classBinder_cx('f-toggle', { 'f-toggle--active': checked }, { 'f-toggle--disabled': isDisabled }, { 'f-toggle--secondary': isSecondary }, theme), "data-testid": testId },
109668
+ })(external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: classBinder_cx('f-toggle', { 'f-toggle--active': checked }, { 'f-toggle--disabled': isDisabled }, { 'f-toggle--secondary': color === 'secondary' || isSecondary }, { 'f-toggle--green': color === 'green' }, theme), "data-testid": testId },
109669
109669
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("button", { "aria-checked": checked, "aria-labelledby": name + "-label", className: classBinder_cx('f-toggle__toggler'), disabled: isDisabled, id: name, role: "switch", type: "button", onClick: function (e) { return handleOnClick(e); } },
109670
- external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: "f-toggle__indicator" }, iconName && external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Icon, { name: iconName, size: "small" }))),
109670
+ external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("div", { className: "f-toggle__indicator" }, iconName && external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement(Icon, { name: (checked && iconNameChecked) || iconName, size: "small" }))),
109671
109671
  external_root_React_commonjs2_react_commonjs_react_amd_react_umd_react_default.a.createElement("label", { "aria-checked": checked, className: "f-toggle__text", htmlFor: name, id: name + "-label" }, children)));
109672
109672
  };
109673
109673