@carbonplan/components 11.0.5-develop.2 → 11.0.6-develop.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/dst/index.esm.js +67 -36
- package/dst/index.esm.js.map +1 -1
- package/dst/index.js +291 -260
- package/dst/index.js.map +1 -1
- package/dst/index.modern.js +80 -49
- package/dst/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dst/index.esm.js
CHANGED
|
@@ -40,10 +40,12 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
40
40
|
return target;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
var _excluded$g = ["sx", "children"];
|
|
44
|
+
|
|
43
45
|
var Badge = function Badge(_ref) {
|
|
44
46
|
var sx = _ref.sx,
|
|
45
47
|
children = _ref.children,
|
|
46
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
48
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
47
49
|
|
|
48
50
|
var color = sx && sx.color ? sx.color : 'primary';
|
|
49
51
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -68,6 +70,8 @@ var Badge = function Badge(_ref) {
|
|
|
68
70
|
}, children));
|
|
69
71
|
};
|
|
70
72
|
|
|
73
|
+
var _excluded$f = ["href", "children", "internal", "tracking"];
|
|
74
|
+
|
|
71
75
|
var event = function event(_ref) {
|
|
72
76
|
var action = _ref.action,
|
|
73
77
|
category = _ref.category,
|
|
@@ -93,7 +97,7 @@ var Link = function Link(_ref2, ref) {
|
|
|
93
97
|
internal = _ref2$internal === void 0 ? false : _ref2$internal,
|
|
94
98
|
_ref2$tracking = _ref2.tracking,
|
|
95
99
|
tracking = _ref2$tracking === void 0 ? false : _ref2$tracking,
|
|
96
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
100
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
|
|
97
101
|
|
|
98
102
|
if (internal || href && href.startsWith('/')) {
|
|
99
103
|
return /*#__PURE__*/React.createElement(NextLink, {
|
|
@@ -188,6 +192,8 @@ var getSizeStyles = function getSizeStyles(size) {
|
|
|
188
192
|
};
|
|
189
193
|
};
|
|
190
194
|
|
|
195
|
+
var _excluded$e = ["size", "prefix", "suffix", "inverted", "sx", "children", "align", "href", "internal", "tracking"];
|
|
196
|
+
|
|
191
197
|
var Button = function Button(_ref, ref) {
|
|
192
198
|
var _ref$size = _ref.size,
|
|
193
199
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
@@ -200,7 +206,7 @@ var Button = function Button(_ref, ref) {
|
|
|
200
206
|
href = _ref.href,
|
|
201
207
|
internal = _ref.internal,
|
|
202
208
|
tracking = _ref.tracking,
|
|
203
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
209
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
204
210
|
|
|
205
211
|
if (!['xs', 'sm', 'md', 'lg', 'xl'].includes(size)) {
|
|
206
212
|
throw new Error('Size must be xs, sm, md, lg, or xl');
|
|
@@ -378,6 +384,8 @@ var Button = function Button(_ref, ref) {
|
|
|
378
384
|
|
|
379
385
|
var button = forwardRef(Button);
|
|
380
386
|
|
|
387
|
+
var _excluded$d = ["label", "children", "inverted", "color", "href", "internal", "tracking", "sx"];
|
|
388
|
+
|
|
381
389
|
var Callout = function Callout(_ref, ref) {
|
|
382
390
|
var label = _ref.label,
|
|
383
391
|
children = _ref.children,
|
|
@@ -387,7 +395,7 @@ var Callout = function Callout(_ref, ref) {
|
|
|
387
395
|
internal = _ref.internal,
|
|
388
396
|
tracking = _ref.tracking,
|
|
389
397
|
sx = _ref.sx,
|
|
390
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
398
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
391
399
|
|
|
392
400
|
var baseColor = color || (inverted ? 'secondary' : 'primary');
|
|
393
401
|
var hoverColor = color ? 'primary' : inverted ? 'primary' : 'secondary';
|
|
@@ -470,7 +478,8 @@ var Callout = function Callout(_ref, ref) {
|
|
|
470
478
|
|
|
471
479
|
var callout = forwardRef(Callout);
|
|
472
480
|
|
|
473
|
-
var
|
|
481
|
+
var _excluded$c = ["colormap", "label", "clim", "setClim", "setClimStep", "discrete", "units", "width", "height", "format", "horizontal", "bottom", "sx", "sxClim"];
|
|
482
|
+
var styles$1 = {
|
|
474
483
|
clim: function clim(setClim) {
|
|
475
484
|
return {
|
|
476
485
|
fontFamily: 'mono',
|
|
@@ -587,7 +596,7 @@ var Colorbar = function Colorbar(_ref6) {
|
|
|
587
596
|
bottom = _ref6$bottom === void 0 ? false : _ref6$bottom,
|
|
588
597
|
sx = _ref6.sx,
|
|
589
598
|
sxClim = _ref6.sxClim,
|
|
590
|
-
props = _objectWithoutPropertiesLoose(_ref6,
|
|
599
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded$c);
|
|
591
600
|
|
|
592
601
|
if (!Array.isArray(colormap)) {
|
|
593
602
|
throw new Error("expected array for colormap, got '" + colormap + "'.");
|
|
@@ -711,7 +720,7 @@ var Colorbar = function Colorbar(_ref6) {
|
|
|
711
720
|
id: "min",
|
|
712
721
|
ref: climRef[0],
|
|
713
722
|
tabIndex: 0,
|
|
714
|
-
sx: _extends({}, styles.clim(setClim), {
|
|
723
|
+
sx: _extends({}, styles$1.clim(setClim), {
|
|
715
724
|
ml: label ? horizontal ? bottom ? '0px' : '10px' : ['2px', '1px', '1px', '2px'] : 0,
|
|
716
725
|
mr: horizontal ? ['2px', '1px', '1px', '2px'] : 0,
|
|
717
726
|
mb: horizontal ? 0 : ['-2px', '-2px', '-2px', '-3px'],
|
|
@@ -736,7 +745,7 @@ var Colorbar = function Colorbar(_ref6) {
|
|
|
736
745
|
id: "max",
|
|
737
746
|
ref: climRef[1],
|
|
738
747
|
tabIndex: 0,
|
|
739
|
-
sx: _extends({}, styles.clim(setClim), {
|
|
748
|
+
sx: _extends({}, styles$1.clim(setClim), {
|
|
740
749
|
ml: horizontal ? ['2px', '1px', '1px', '2px'] : ['2px', '1px', '1px', '2px'],
|
|
741
750
|
mt: horizontal ? 0 : ['-2px', '-3px', '-3px', '-3px'],
|
|
742
751
|
borderBottom: setClim ? climMaxDragging ? function (_ref9) {
|
|
@@ -798,6 +807,8 @@ var Colorbar = function Colorbar(_ref6) {
|
|
|
798
807
|
}, clim && /*#__PURE__*/React.createElement(ClimMin, null), clim && /*#__PURE__*/React.createElement(ClimMax, null)));
|
|
799
808
|
};
|
|
800
809
|
|
|
810
|
+
var _excluded$b = ["start", "width", "dl", "dr", "children", "sx"];
|
|
811
|
+
|
|
801
812
|
var Column = function Column(_ref) {
|
|
802
813
|
var start = _ref.start,
|
|
803
814
|
width = _ref.width,
|
|
@@ -805,7 +816,7 @@ var Column = function Column(_ref) {
|
|
|
805
816
|
dr = _ref.dr,
|
|
806
817
|
children = _ref.children,
|
|
807
818
|
sx = _ref.sx,
|
|
808
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
819
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
809
820
|
|
|
810
821
|
start = start || 'auto';
|
|
811
822
|
width = width || 'auto';
|
|
@@ -1012,12 +1023,14 @@ var Logo = function Logo(_ref) {
|
|
|
1012
1023
|
})));
|
|
1013
1024
|
};
|
|
1014
1025
|
|
|
1026
|
+
var _excluded$a = ["children", "sx", "columns", "gap"];
|
|
1027
|
+
|
|
1015
1028
|
var Row = function Row(_ref) {
|
|
1016
1029
|
var children = _ref.children,
|
|
1017
1030
|
sx = _ref.sx,
|
|
1018
1031
|
columns = _ref.columns,
|
|
1019
1032
|
gap = _ref.gap,
|
|
1020
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1033
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
1021
1034
|
|
|
1022
1035
|
var makeArray = function makeArray(input) {
|
|
1023
1036
|
if (!Array.isArray(input)) {
|
|
@@ -1069,10 +1082,12 @@ var Row = function Row(_ref) {
|
|
|
1069
1082
|
}), children);
|
|
1070
1083
|
};
|
|
1071
1084
|
|
|
1085
|
+
var _excluded$9 = ["value", "sx"];
|
|
1086
|
+
|
|
1072
1087
|
var Menu = function Menu(_ref) {
|
|
1073
1088
|
var value = _ref.value,
|
|
1074
1089
|
sx = _ref.sx,
|
|
1075
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1090
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
1076
1091
|
|
|
1077
1092
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
1078
1093
|
sx: _extends({
|
|
@@ -1160,7 +1175,7 @@ var Menu = function Menu(_ref) {
|
|
|
1160
1175
|
})));
|
|
1161
1176
|
};
|
|
1162
1177
|
|
|
1163
|
-
var sx = {
|
|
1178
|
+
var sx$1 = {
|
|
1164
1179
|
link: function link(current, label, first) {
|
|
1165
1180
|
if (first === void 0) {
|
|
1166
1181
|
first = false;
|
|
@@ -1243,12 +1258,12 @@ var Nav = function Nav(_ref) {
|
|
|
1243
1258
|
onClick: function onClick() {
|
|
1244
1259
|
if (nav === url) setExpanded(false);
|
|
1245
1260
|
},
|
|
1246
|
-
sx: sx.link(nav, url, first)
|
|
1261
|
+
sx: sx$1.link(nav, url, first)
|
|
1247
1262
|
}, /*#__PURE__*/React.createElement(HoverArrow, null), display));
|
|
1248
1263
|
} else {
|
|
1249
1264
|
return /*#__PURE__*/React.createElement(Link$2, {
|
|
1250
1265
|
href: href,
|
|
1251
|
-
sx: sx.link(nav, url, first)
|
|
1266
|
+
sx: sx$1.link(nav, url, first)
|
|
1252
1267
|
}, /*#__PURE__*/React.createElement(HoverArrow, null), display);
|
|
1253
1268
|
}
|
|
1254
1269
|
};
|
|
@@ -1561,9 +1576,11 @@ var Footer = function Footer() {
|
|
|
1561
1576
|
}))));
|
|
1562
1577
|
};
|
|
1563
1578
|
|
|
1579
|
+
var _excluded$8 = ["sx"];
|
|
1580
|
+
|
|
1564
1581
|
var Dimmer = function Dimmer(_ref) {
|
|
1565
1582
|
var sx = _ref.sx,
|
|
1566
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1583
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
1567
1584
|
|
|
1568
1585
|
var _useColorMode = useColorMode(),
|
|
1569
1586
|
colorMode = _useColorMode[0],
|
|
@@ -1751,6 +1768,7 @@ function scrollFraction(window, documnt) {
|
|
|
1751
1768
|
return Math.min(window.scrollY / (document.body.offsetHeight - 770), 0.99);
|
|
1752
1769
|
}
|
|
1753
1770
|
|
|
1771
|
+
var _excluded$7 = ["duration", "delay", "children"];
|
|
1754
1772
|
var fade = keyframes({
|
|
1755
1773
|
from: {
|
|
1756
1774
|
opacity: 0
|
|
@@ -1766,7 +1784,7 @@ var FadeIn = function FadeIn(_ref) {
|
|
|
1766
1784
|
_ref$delay = _ref.delay,
|
|
1767
1785
|
delay = _ref$delay === void 0 ? 0 : _ref$delay,
|
|
1768
1786
|
children = _ref.children,
|
|
1769
|
-
delegated = _objectWithoutPropertiesLoose(_ref,
|
|
1787
|
+
delegated = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
1770
1788
|
|
|
1771
1789
|
return /*#__PURE__*/React.createElement(Box, _extends({}, delegated, {
|
|
1772
1790
|
sx: {
|
|
@@ -1909,10 +1927,12 @@ function GuideColumns(_ref2) {
|
|
|
1909
1927
|
}));
|
|
1910
1928
|
}
|
|
1911
1929
|
|
|
1930
|
+
var _excluded$6 = ["value", "sx"];
|
|
1931
|
+
|
|
1912
1932
|
var Settings = function Settings(_ref) {
|
|
1913
1933
|
var value = _ref.value,
|
|
1914
1934
|
sx = _ref.sx,
|
|
1915
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
1935
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
1916
1936
|
|
|
1917
1937
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
1918
1938
|
sx: _extends({
|
|
@@ -2061,18 +2081,18 @@ var Layout = function Layout(_ref) {
|
|
|
2061
2081
|
useEffect(function () {
|
|
2062
2082
|
if (!theme) return;
|
|
2063
2083
|
|
|
2064
|
-
var handler = function handler() {
|
|
2065
|
-
if (settings != null && settings.value && settings != null && settings.onClick) {
|
|
2084
|
+
var handler = function handler(e) {
|
|
2085
|
+
if (e.matches && settings != null && settings.value && settings != null && settings.onClick) {
|
|
2066
2086
|
settings == null ? void 0 : settings.onClick();
|
|
2067
2087
|
}
|
|
2068
2088
|
};
|
|
2069
2089
|
|
|
2070
|
-
var query = window.matchMedia("(
|
|
2071
|
-
query.
|
|
2090
|
+
var query = window.matchMedia("(min-width: " + theme.breakpoints[1] + ")");
|
|
2091
|
+
query.onchange = handler;
|
|
2072
2092
|
return function () {
|
|
2073
|
-
query.
|
|
2093
|
+
query.onchange = null;
|
|
2074
2094
|
};
|
|
2075
|
-
}, [theme, settings == null ? void 0 : settings.value, settings == null ? void 0 : settings.onClick]);
|
|
2095
|
+
}, [theme == null ? void 0 : theme.breakpoints, settings == null ? void 0 : settings.value, settings == null ? void 0 : settings.onClick]);
|
|
2076
2096
|
var menuItems = [/*#__PURE__*/React.createElement(Dimmer, {
|
|
2077
2097
|
key: "dimmer",
|
|
2078
2098
|
sx: {
|
|
@@ -2232,12 +2252,14 @@ var Expander = function Expander(_ref) {
|
|
|
2232
2252
|
})));
|
|
2233
2253
|
};
|
|
2234
2254
|
|
|
2255
|
+
var _excluded$5 = ["label", "value", "sx", "children"];
|
|
2256
|
+
|
|
2235
2257
|
var Tag = function Tag(_ref) {
|
|
2236
2258
|
var label = _ref.label,
|
|
2237
2259
|
value = _ref.value,
|
|
2238
2260
|
sx = _ref.sx,
|
|
2239
2261
|
children = _ref.children,
|
|
2240
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2262
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
2241
2263
|
|
|
2242
2264
|
var color = sx && sx.color ? sx.color : 'primary';
|
|
2243
2265
|
var isClickable = props && (props.onClick || props.onDoubleClick);
|
|
@@ -2271,7 +2293,8 @@ var Tag = function Tag(_ref) {
|
|
|
2271
2293
|
}, props), children);
|
|
2272
2294
|
};
|
|
2273
2295
|
|
|
2274
|
-
var
|
|
2296
|
+
var _excluded$4 = ["values", "setValues", "label", "colors", "showAll", "multiSelect"];
|
|
2297
|
+
var sx = {
|
|
2275
2298
|
label: {
|
|
2276
2299
|
fontFamily: 'mono',
|
|
2277
2300
|
letterSpacing: 'mono',
|
|
@@ -2348,10 +2371,10 @@ var Filter = function Filter(_ref2) {
|
|
|
2348
2371
|
showAll = _ref2$showAll === void 0 ? false : _ref2$showAll,
|
|
2349
2372
|
_ref2$multiSelect = _ref2.multiSelect,
|
|
2350
2373
|
multiSelect = _ref2$multiSelect === void 0 ? false : _ref2$multiSelect,
|
|
2351
|
-
props = _objectWithoutPropertiesLoose(_ref2,
|
|
2374
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$4);
|
|
2352
2375
|
|
|
2353
2376
|
return /*#__PURE__*/React.createElement(Box, props, label && /*#__PURE__*/React.createElement(Box, {
|
|
2354
|
-
sx: sx
|
|
2377
|
+
sx: sx.label
|
|
2355
2378
|
}, label), /*#__PURE__*/React.createElement(Box, {
|
|
2356
2379
|
sx: {
|
|
2357
2380
|
mt: label ? [3] : 0
|
|
@@ -2446,6 +2469,8 @@ var Group = function Group(_ref) {
|
|
|
2446
2469
|
}));
|
|
2447
2470
|
};
|
|
2448
2471
|
|
|
2472
|
+
var _excluded$3 = ["size", "inverted", "sx"];
|
|
2473
|
+
|
|
2449
2474
|
var Input = function Input(_ref, ref) {
|
|
2450
2475
|
var _extends2;
|
|
2451
2476
|
|
|
@@ -2453,7 +2478,7 @@ var Input = function Input(_ref, ref) {
|
|
|
2453
2478
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
2454
2479
|
inverted = _ref.inverted,
|
|
2455
2480
|
sx = _ref.sx,
|
|
2456
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2481
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
2457
2482
|
|
|
2458
2483
|
var defaultColor = inverted ? 'secondary' : 'primary';
|
|
2459
2484
|
|
|
@@ -2498,6 +2523,8 @@ var getProps = function getProps(test) {
|
|
|
2498
2523
|
};
|
|
2499
2524
|
};
|
|
2500
2525
|
|
|
2526
|
+
var _excluded$2 = ["children", "size", "sx", "sxSelect"];
|
|
2527
|
+
|
|
2501
2528
|
var Select = function Select(_ref) {
|
|
2502
2529
|
var _extends2;
|
|
2503
2530
|
|
|
@@ -2506,7 +2533,7 @@ var Select = function Select(_ref) {
|
|
|
2506
2533
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
2507
2534
|
sx = _ref.sx,
|
|
2508
2535
|
sxSelect = _ref.sxSelect,
|
|
2509
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2536
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
2510
2537
|
|
|
2511
2538
|
var color = sx && sx.color ? sx.color : 'primary';
|
|
2512
2539
|
var sizeStyles = getSizeStyles(size);
|
|
@@ -2592,9 +2619,11 @@ var Select = function Select(_ref) {
|
|
|
2592
2619
|
}));
|
|
2593
2620
|
};
|
|
2594
2621
|
|
|
2622
|
+
var _excluded$1 = ["sx"];
|
|
2623
|
+
|
|
2595
2624
|
var Slider = function Slider(_ref, ref) {
|
|
2596
2625
|
var sx = _ref.sx,
|
|
2597
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2626
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
2598
2627
|
|
|
2599
2628
|
var color = sx && sx.color ? sx.color : 'primary';
|
|
2600
2629
|
|
|
@@ -2636,7 +2665,7 @@ var Slider = function Slider(_ref, ref) {
|
|
|
2636
2665
|
|
|
2637
2666
|
var slider = forwardRef(Slider);
|
|
2638
2667
|
|
|
2639
|
-
var styles
|
|
2668
|
+
var styles = {
|
|
2640
2669
|
reset: {
|
|
2641
2670
|
verticalAlign: 'baseline',
|
|
2642
2671
|
border: 0,
|
|
@@ -2708,7 +2737,7 @@ var Table = function Table(_ref) {
|
|
|
2708
2737
|
}
|
|
2709
2738
|
}, header && /*#__PURE__*/React.createElement(Row, {
|
|
2710
2739
|
as: "tr",
|
|
2711
|
-
sx: _extends({}, styles
|
|
2740
|
+
sx: _extends({}, styles.reset, styles.header, styles.row, {
|
|
2712
2741
|
color: color,
|
|
2713
2742
|
borderTopWidth: !borderTop ? '0px' : '1px'
|
|
2714
2743
|
})
|
|
@@ -2716,13 +2745,13 @@ var Table = function Table(_ref) {
|
|
|
2716
2745
|
as: "td",
|
|
2717
2746
|
start: [1],
|
|
2718
2747
|
width: columns,
|
|
2719
|
-
sx: styles
|
|
2748
|
+
sx: styles.index
|
|
2720
2749
|
}, header)), data.map(function (row, i) {
|
|
2721
2750
|
return /*#__PURE__*/React.createElement(Row, {
|
|
2722
2751
|
as: "tr",
|
|
2723
2752
|
columns: columns,
|
|
2724
2753
|
key: i,
|
|
2725
|
-
sx: _extends({}, styles
|
|
2754
|
+
sx: _extends({}, styles.reset, styles.row, {
|
|
2726
2755
|
pb: borderBottom && i === data.length - 1 ? ['18px', '18px', '18px', '22px'] : [3, 3, 3, '20px'],
|
|
2727
2756
|
borderBottomWidth: borderBottom && i === data.length - 1 ? '1px' : '0px',
|
|
2728
2757
|
borderTopWidth: !borderTop && i === 0 && !header ? '0px' : '1px'
|
|
@@ -2733,18 +2762,20 @@ var Table = function Table(_ref) {
|
|
|
2733
2762
|
key: j,
|
|
2734
2763
|
start: start[j],
|
|
2735
2764
|
width: width[j],
|
|
2736
|
-
sx: j == 0 && index ? _extends({}, styles
|
|
2765
|
+
sx: j == 0 && index ? _extends({}, styles.reset, styles.index) : _extends({}, styles.reset, styles.entry)
|
|
2737
2766
|
}, column);
|
|
2738
2767
|
}));
|
|
2739
2768
|
})));
|
|
2740
2769
|
};
|
|
2741
2770
|
|
|
2771
|
+
var _excluded = ["value", "onClick", "disabled", "sx"];
|
|
2772
|
+
|
|
2742
2773
|
var Toggle = function Toggle(_ref, ref) {
|
|
2743
2774
|
var value = _ref.value,
|
|
2744
2775
|
onClick = _ref.onClick,
|
|
2745
2776
|
disabled = _ref.disabled,
|
|
2746
2777
|
sx = _ref.sx,
|
|
2747
|
-
props = _objectWithoutPropertiesLoose(_ref,
|
|
2778
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
2748
2779
|
|
|
2749
2780
|
var color = sx && sx.color ? sx.color : 'primary';
|
|
2750
2781
|
value = disabled ? false : value;
|