@digital-ai/dot-components 1.17.0 → 1.17.1
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/CHANGE_LOG.md +11 -2
- package/index.esm.js +74 -52
- package/index.umd.js +47 -25
- package/lib/components/button-toggle/ButtonToggle.stories.data.d.ts +3 -0
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.17.1](https://github.com/digital-ai/dot-components/tree/1.17.1) (05/19/2022)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.17.0...1.17.1)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- `DotButtonToggle`: Button size is not respected after tooltip change [\#1170](https://github.com/digital-ai/dot-components/issues/1170)
|
|
10
|
+
- D-21287: `DotButtonToggle`: Button size is not respected after tooltip change [\#1171](https://github.com/digital-ai/dot-components/pull/1171) ([dmiletic85](https://github.com/dmiletic85))
|
|
11
|
+
|
|
3
12
|
## [1.17.0](https://github.com/digital-ai/dot-components/tree/1.17.0) (05/18/2022)
|
|
4
13
|
|
|
5
14
|
[Full Changelog](https://github.com/digital-ai/dot-components/compare/1.16.1...1.17.0)
|
|
@@ -130,7 +139,6 @@
|
|
|
130
139
|
- S-82519: `Snackbar` Allow positioning [\#1064](https://github.com/digital-ai/dot-components/pull/1064) ([dmiletic85](https://github.com/dmiletic85))
|
|
131
140
|
- S-82617: `DotInputText` Expose mouse up event [\#1063](https://github.com/digital-ai/dot-components/pull/1063) ([dmiletic85](https://github.com/dmiletic85))
|
|
132
141
|
- S-76904: `InlineEdit` improvements [\#1053](https://github.com/digital-ai/dot-components/pull/1053) ([dmiletic85](https://github.com/dmiletic85))
|
|
133
|
-
- S-82059: `DraggableList`: Create and export the component [\#1003](https://github.com/digital-ai/dot-components/pull/1003) ([dmiletic85](https://github.com/dmiletic85))
|
|
134
142
|
|
|
135
143
|
**Fixed bugs:**
|
|
136
144
|
|
|
@@ -262,6 +270,7 @@
|
|
|
262
270
|
- Add class prop into `ButtonToggleProps` [\#990](https://github.com/digital-ai/dot-components/issues/990)
|
|
263
271
|
- Expose `Divider` [\#989](https://github.com/digital-ai/dot-components/issues/989)
|
|
264
272
|
- Expose `Popper` [\#975](https://github.com/digital-ai/dot-components/issues/975)
|
|
273
|
+
- S-82059: `DraggableList`: Create and export the component [\#1003](https://github.com/digital-ai/dot-components/pull/1003) ([dmiletic85](https://github.com/dmiletic85))
|
|
265
274
|
- S-81968: `ButtonToggle`: Add class prop into `ButtonToggleProps` and export relevant types and interfaces [\#993](https://github.com/digital-ai/dot-components/pull/993) ([dmiletic85](https://github.com/dmiletic85))
|
|
266
275
|
- S-81966: `Divider`: Create and expose `Divider` component [\#992](https://github.com/digital-ai/dot-components/pull/992) ([dmiletic85](https://github.com/dmiletic85))
|
|
267
276
|
- S-81656: `Popper`: Create and expose `Popper` component [\#988](https://github.com/digital-ai/dot-components/pull/988) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -773,6 +782,7 @@
|
|
|
773
782
|
- S-79291: update nested dependencies [\#700](https://github.com/digital-ai/dot-components/pull/700) ([CWSites](https://github.com/CWSites))
|
|
774
783
|
- S-78832: Agility icon & badge updates [\#698](https://github.com/digital-ai/dot-components/pull/698) ([CWSites](https://github.com/CWSites))
|
|
775
784
|
- S-79251: add workflow for sonarqube scan when code merged to develop [\#697](https://github.com/digital-ai/dot-components/pull/697) ([CWSites](https://github.com/CWSites))
|
|
785
|
+
- pass value to tab [\#694](https://github.com/digital-ai/dot-components/pull/694) ([kmmarsh](https://github.com/kmmarsh))
|
|
776
786
|
- S-76906: table action column [\#692](https://github.com/digital-ai/dot-components/pull/692) ([monapatel91](https://github.com/monapatel91))
|
|
777
787
|
|
|
778
788
|
## [1.1.0](https://github.com/digital-ai/dot-components/tree/1.1.0) (09/29/2021)
|
|
@@ -786,7 +796,6 @@
|
|
|
786
796
|
**Merged pull requests:**
|
|
787
797
|
|
|
788
798
|
- MINOR release [\#695](https://github.com/digital-ai/dot-components/pull/695) ([CWSites](https://github.com/CWSites))
|
|
789
|
-
- pass value to tab [\#694](https://github.com/digital-ai/dot-components/pull/694) ([kmmarsh](https://github.com/kmmarsh))
|
|
790
799
|
- S-78831: update AppToolbar component for Agility [\#691](https://github.com/digital-ai/dot-components/pull/691) ([CWSites](https://github.com/CWSites))
|
|
791
800
|
|
|
792
801
|
## [1.0.12](https://github.com/digital-ai/dot-components/tree/1.0.12) (09/23/2021)
|
package/index.esm.js
CHANGED
|
@@ -3510,13 +3510,50 @@ const DotBreadcrumbs = ({
|
|
|
3510
3510
|
}));
|
|
3511
3511
|
};
|
|
3512
3512
|
|
|
3513
|
+
/*! *****************************************************************************
|
|
3514
|
+
Copyright (c) Microsoft Corporation.
|
|
3515
|
+
|
|
3516
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3517
|
+
purpose with or without fee is hereby granted.
|
|
3518
|
+
|
|
3519
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3520
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3521
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3522
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3523
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3524
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3525
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3526
|
+
***************************************************************************** */
|
|
3527
|
+
|
|
3528
|
+
function __rest(s, e) {
|
|
3529
|
+
var t = {};
|
|
3530
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3531
|
+
t[p] = s[p];
|
|
3532
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3533
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3534
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3535
|
+
t[p[i]] = s[p[i]];
|
|
3536
|
+
}
|
|
3537
|
+
return t;
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3541
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3542
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3543
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3544
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3545
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3546
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3547
|
+
});
|
|
3548
|
+
}
|
|
3549
|
+
|
|
3513
3550
|
const rootClassName$C = 'dot-button-toggle';
|
|
3514
3551
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup).withConfig({
|
|
3515
3552
|
displayName: "ButtonTogglestyles__StyledToggleButtonGroup",
|
|
3516
3553
|
componentId: "sc-1oh4ljv-0"
|
|
3517
3554
|
})(["", ""], ({
|
|
3518
3555
|
theme
|
|
3519
|
-
}) => css(["&.", "{.
|
|
3556
|
+
}) => css(["&.", "{.dot-icon{+ p{margin-left:", "px;}i{height:auto;}}.MuiToggleButton-label{color:", ";p{margin-bottom:0;}}.MuiToggleButtonGroup-groupedHorizontal{border:1px solid ", ";border-radius:0;:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px;margin-left:0;}:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px;margin-right:0;}}}.MuiButtonBase-root{&.Mui-disabled p,&.Mui-disabled .dot-icon{color:", ";}}"], rootClassName$C, theme.spacing(1), theme.palette.layer.n700, theme.palette.layer.n300, theme.palette.grey[200]));
|
|
3520
3557
|
|
|
3521
3558
|
const DotButtonToggle = ({
|
|
3522
3559
|
ariaLabel,
|
|
@@ -3533,22 +3570,34 @@ const DotButtonToggle = ({
|
|
|
3533
3570
|
}) => {
|
|
3534
3571
|
const rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
3535
3572
|
|
|
3536
|
-
const
|
|
3573
|
+
const renderToggleButton = ({
|
|
3574
|
+
ariaLabel: optionAriaLabel,
|
|
3575
|
+
className: optionClassName,
|
|
3576
|
+
disabled: optionDisabled,
|
|
3537
3577
|
iconId: optionIconId,
|
|
3538
3578
|
text: optionText,
|
|
3539
|
-
tooltip: optionTooltip
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3579
|
+
tooltip: optionTooltip,
|
|
3580
|
+
value: optionValue
|
|
3581
|
+
}, key) => {
|
|
3582
|
+
const commonProps = {
|
|
3583
|
+
'aria-label': optionAriaLabel,
|
|
3584
|
+
className: optionClassName,
|
|
3585
|
+
disableFocusRipple: _disableFocusRipple,
|
|
3586
|
+
disableRipple: _disableRipple,
|
|
3587
|
+
disabled: optionDisabled,
|
|
3588
|
+
key,
|
|
3589
|
+
value: optionValue
|
|
3590
|
+
};
|
|
3591
|
+
const children = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, optionIconId && /*#__PURE__*/React__default.createElement(DotIcon, {
|
|
3545
3592
|
className: "dot-toggle-icon",
|
|
3546
3593
|
iconId: optionIconId
|
|
3547
3594
|
}), optionText && /*#__PURE__*/React__default.createElement(DotTypography, null, optionText));
|
|
3548
|
-
return optionTooltip ? /*#__PURE__*/React__default.createElement(
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3595
|
+
return optionTooltip ? /*#__PURE__*/React__default.createElement(TooltipToggleButton, Object.assign({}, commonProps, {
|
|
3596
|
+
CustomTooltipProps: {
|
|
3597
|
+
title: optionTooltip
|
|
3598
|
+
},
|
|
3599
|
+
value: optionValue
|
|
3600
|
+
}), children) : /*#__PURE__*/React__default.createElement(ToggleButton, Object.assign({}, commonProps), children);
|
|
3552
3601
|
};
|
|
3553
3602
|
|
|
3554
3603
|
return /*#__PURE__*/React__default.createElement(StyledToggleButtonGroup, {
|
|
@@ -3563,23 +3612,21 @@ const DotButtonToggle = ({
|
|
|
3563
3612
|
size: _size,
|
|
3564
3613
|
value: value
|
|
3565
3614
|
}, buttonOptions.map((option, key) => {
|
|
3566
|
-
|
|
3567
|
-
ariaLabel: optionAriaLabel,
|
|
3568
|
-
className: optionClassName,
|
|
3569
|
-
disabled: optionDisabled,
|
|
3570
|
-
value: optionValue
|
|
3571
|
-
} = option;
|
|
3572
|
-
return /*#__PURE__*/React__default.createElement(ToggleButton, {
|
|
3573
|
-
"aria-label": optionAriaLabel,
|
|
3574
|
-
className: optionClassName,
|
|
3575
|
-
disableFocusRipple: _disableFocusRipple,
|
|
3576
|
-
disableRipple: _disableRipple,
|
|
3577
|
-
disabled: optionDisabled,
|
|
3578
|
-
key: key,
|
|
3579
|
-
value: optionValue
|
|
3580
|
-
}, renderToggleButtonChildren(option));
|
|
3615
|
+
return renderToggleButton(option, key);
|
|
3581
3616
|
}));
|
|
3582
3617
|
};
|
|
3618
|
+
/** Catch props and forward to ToggleButton */
|
|
3619
|
+
|
|
3620
|
+
const TooltipToggleButton = /*#__PURE__*/forwardRef((_a, ref) => {
|
|
3621
|
+
var {
|
|
3622
|
+
CustomTooltipProps
|
|
3623
|
+
} = _a,
|
|
3624
|
+
props = __rest(_a, ["CustomTooltipProps"]);
|
|
3625
|
+
|
|
3626
|
+
return /*#__PURE__*/React__default.createElement(Tooltip, Object.assign({}, CustomTooltipProps), /*#__PURE__*/React__default.createElement(ToggleButton, Object.assign({
|
|
3627
|
+
ref: ref
|
|
3628
|
+
}, props)));
|
|
3629
|
+
});
|
|
3583
3630
|
|
|
3584
3631
|
const DotCard = ({
|
|
3585
3632
|
ariaLabel,
|
|
@@ -5577,31 +5624,6 @@ const DotDynamicForm = ({
|
|
|
5577
5624
|
}, buildFormControls(config.controls));
|
|
5578
5625
|
};
|
|
5579
5626
|
|
|
5580
|
-
/*! *****************************************************************************
|
|
5581
|
-
Copyright (c) Microsoft Corporation.
|
|
5582
|
-
|
|
5583
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5584
|
-
purpose with or without fee is hereby granted.
|
|
5585
|
-
|
|
5586
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
5587
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
5588
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
5589
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
5590
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
5591
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
5592
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
5593
|
-
***************************************************************************** */
|
|
5594
|
-
|
|
5595
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
5596
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5597
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5598
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5599
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5600
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
5601
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5602
|
-
});
|
|
5603
|
-
}
|
|
5604
|
-
|
|
5605
5627
|
const rootClassName$n = 'dot-inline-edit';
|
|
5606
5628
|
const editModeClassName = 'dot-edit-mode';
|
|
5607
5629
|
const viewModeClassName = 'dot-view-mode';
|
package/index.umd.js
CHANGED
|
@@ -55,6 +55,18 @@
|
|
|
55
55
|
return __assign.apply(this, arguments);
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
+
function __rest(s, e) {
|
|
59
|
+
var t = {};
|
|
60
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
61
|
+
t[p] = s[p];
|
|
62
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
63
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
64
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
65
|
+
t[p[i]] = s[p[i]];
|
|
66
|
+
}
|
|
67
|
+
return t;
|
|
68
|
+
}
|
|
69
|
+
|
|
58
70
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
59
71
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
60
72
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -3840,7 +3852,7 @@
|
|
|
3840
3852
|
componentId: "sc-1oh4ljv-0"
|
|
3841
3853
|
})(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
3842
3854
|
var theme = _a.theme;
|
|
3843
|
-
return styled.css(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n &.", " {\n .
|
|
3855
|
+
return styled.css(templateObject_1$F || (templateObject_1$F = __makeTemplateObject(["\n &.", " {\n .dot-icon {\n + p {\n margin-left: ", "px;\n }\n i {\n height: auto;\n }\n }\n .MuiToggleButton-label {\n color: ", ";\n p {\n margin-bottom: 0;\n }\n }\n .MuiToggleButtonGroup-groupedHorizontal {\n border: 1px solid ", ";\n border-radius: 0;\n\n :first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n margin-left: 0;\n }\n :last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n margin-right: 0;\n }\n }\n }\n\n .MuiButtonBase-root {\n &.Mui-disabled p,\n &.Mui-disabled .dot-icon {\n color: ", ";\n }\n }\n "], ["\n &.", " {\n .dot-icon {\n + p {\n margin-left: ", "px;\n }\n i {\n height: auto;\n }\n }\n .MuiToggleButton-label {\n color: ", ";\n p {\n margin-bottom: 0;\n }\n }\n .MuiToggleButtonGroup-groupedHorizontal {\n border: 1px solid ", ";\n border-radius: 0;\n\n :first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n margin-left: 0;\n }\n :last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n margin-right: 0;\n }\n }\n }\n\n .MuiButtonBase-root {\n &.Mui-disabled p,\n &.Mui-disabled .dot-icon {\n color: ", ";\n }\n }\n "])), rootClassName$C, theme.spacing(1), theme.palette.layer.n700, theme.palette.layer.n300, theme.palette.grey[200]);
|
|
3844
3856
|
});
|
|
3845
3857
|
var templateObject_1$F, templateObject_2$D;
|
|
3846
3858
|
|
|
@@ -3864,21 +3876,33 @@
|
|
|
3864
3876
|
value = _a.value;
|
|
3865
3877
|
var rootClasses = useStylesWithRootClass(rootClassName$C, className);
|
|
3866
3878
|
|
|
3867
|
-
var
|
|
3868
|
-
var
|
|
3879
|
+
var renderToggleButton = function renderToggleButton(_a, key) {
|
|
3880
|
+
var optionAriaLabel = _a.ariaLabel,
|
|
3881
|
+
optionClassName = _a.className,
|
|
3882
|
+
optionDisabled = _a.disabled,
|
|
3883
|
+
optionIconId = _a.iconId,
|
|
3869
3884
|
optionText = _a.text,
|
|
3870
|
-
optionTooltip = _a.tooltip
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3885
|
+
optionTooltip = _a.tooltip,
|
|
3886
|
+
optionValue = _a.value;
|
|
3887
|
+
var commonProps = {
|
|
3888
|
+
'aria-label': optionAriaLabel,
|
|
3889
|
+
className: optionClassName,
|
|
3890
|
+
disableFocusRipple: disableFocusRipple,
|
|
3891
|
+
disableRipple: disableRipple,
|
|
3892
|
+
disabled: optionDisabled,
|
|
3893
|
+
key: key,
|
|
3894
|
+
value: optionValue
|
|
3895
|
+
};
|
|
3896
|
+
var children = /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, optionIconId && /*#__PURE__*/React__default["default"].createElement(DotIcon, {
|
|
3875
3897
|
className: "dot-toggle-icon",
|
|
3876
3898
|
iconId: optionIconId
|
|
3877
3899
|
}), optionText && /*#__PURE__*/React__default["default"].createElement(DotTypography, null, optionText));
|
|
3878
|
-
return optionTooltip ? /*#__PURE__*/React__default["default"].createElement(
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3900
|
+
return optionTooltip ? /*#__PURE__*/React__default["default"].createElement(TooltipToggleButton, __assign({}, commonProps, {
|
|
3901
|
+
CustomTooltipProps: {
|
|
3902
|
+
title: optionTooltip
|
|
3903
|
+
},
|
|
3904
|
+
value: optionValue
|
|
3905
|
+
}), children) : /*#__PURE__*/React__default["default"].createElement(lab.ToggleButton, __assign({}, commonProps), children);
|
|
3882
3906
|
};
|
|
3883
3907
|
|
|
3884
3908
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggleButtonGroup, {
|
|
@@ -3893,21 +3917,19 @@
|
|
|
3893
3917
|
size: size,
|
|
3894
3918
|
value: value
|
|
3895
3919
|
}, buttonOptions.map(function (option, key) {
|
|
3896
|
-
|
|
3897
|
-
optionClassName = option.className,
|
|
3898
|
-
optionDisabled = option.disabled,
|
|
3899
|
-
optionValue = option.value;
|
|
3900
|
-
return /*#__PURE__*/React__default["default"].createElement(lab.ToggleButton, {
|
|
3901
|
-
"aria-label": optionAriaLabel,
|
|
3902
|
-
className: optionClassName,
|
|
3903
|
-
disableFocusRipple: disableFocusRipple,
|
|
3904
|
-
disableRipple: disableRipple,
|
|
3905
|
-
disabled: optionDisabled,
|
|
3906
|
-
key: key,
|
|
3907
|
-
value: optionValue
|
|
3908
|
-
}, renderToggleButtonChildren(option));
|
|
3920
|
+
return renderToggleButton(option, key);
|
|
3909
3921
|
}));
|
|
3910
3922
|
};
|
|
3923
|
+
/** Catch props and forward to ToggleButton */
|
|
3924
|
+
|
|
3925
|
+
var TooltipToggleButton = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
3926
|
+
var CustomTooltipProps = _a.CustomTooltipProps,
|
|
3927
|
+
props = __rest(_a, ["CustomTooltipProps"]);
|
|
3928
|
+
|
|
3929
|
+
return /*#__PURE__*/React__default["default"].createElement(core.Tooltip, __assign({}, CustomTooltipProps), /*#__PURE__*/React__default["default"].createElement(lab.ToggleButton, __assign({
|
|
3930
|
+
ref: ref
|
|
3931
|
+
}, props)));
|
|
3932
|
+
});
|
|
3911
3933
|
|
|
3912
3934
|
var DotCard = function DotCard(_a) {
|
|
3913
3935
|
var ariaLabel = _a.ariaLabel,
|