@carbonplan/components 10.2.0 → 10.5.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { cloneElement, useCallback, useState, useEffect, useRef } from 'react';
2
- import { Box, Link as Link$1, Grid, IconButton, useColorMode, Container, useThemeUI, Text, Flex, Styled, Input as Input$1, Slider as Slider$1 } from 'theme-ui';
2
+ import { Box, Link as Link$1, Flex, Grid, IconButton, useColorMode, Container, useThemeUI, Text, Styled, Input as Input$1, Slider as Slider$1 } from 'theme-ui';
3
3
  import { transparentize } from '@theme-ui/color';
4
4
  import NextLink from 'next/link';
5
5
  import { Arrow, Sun } from '@carbonplan/icons';
@@ -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, ["sx", "children"]);
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,11 +70,19 @@ 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,
74
78
  label = _ref.label,
75
79
  value = _ref.value;
80
+
81
+ if (typeof window.gtag !== 'function') {
82
+ console.warn("Missing window.gtag, skipping analytics action: '" + action + "'.");
83
+ return;
84
+ }
85
+
76
86
  window.gtag('event', action, {
77
87
  event_category: category,
78
88
  event_label: label,
@@ -87,7 +97,7 @@ var Link = function Link(_ref2) {
87
97
  internal = _ref2$internal === void 0 ? false : _ref2$internal,
88
98
  _ref2$tracking = _ref2.tracking,
89
99
  tracking = _ref2$tracking === void 0 ? false : _ref2$tracking,
90
- props = _objectWithoutPropertiesLoose(_ref2, ["href", "children", "internal", "tracking"]);
100
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$f);
91
101
 
92
102
  if (internal || href && href.startsWith('/')) {
93
103
  return /*#__PURE__*/React.createElement(NextLink, {
@@ -176,6 +186,8 @@ var getSizeStyles = function getSizeStyles(size) {
176
186
  };
177
187
  };
178
188
 
189
+ var _excluded$e = ["size", "prefix", "suffix", "inverted", "sx", "children", "align", "href", "internal", "tracking"];
190
+
179
191
  var Button = function Button(_ref) {
180
192
  var _ref$size = _ref.size,
181
193
  size = _ref$size === void 0 ? 'sm' : _ref$size,
@@ -188,7 +200,7 @@ var Button = function Button(_ref) {
188
200
  href = _ref.href,
189
201
  internal = _ref.internal,
190
202
  tracking = _ref.tracking,
191
- props = _objectWithoutPropertiesLoose(_ref, ["size", "prefix", "suffix", "inverted", "sx", "children", "align", "href", "internal", "tracking"]);
203
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
192
204
 
193
205
  if (!['xs', 'sm', 'md', 'lg', 'xl'].includes(size)) {
194
206
  throw new Error('Size must be xs, sm, md, lg, or xl');
@@ -362,6 +374,8 @@ var Button = function Button(_ref) {
362
374
  }
363
375
  };
364
376
 
377
+ var _excluded$d = ["label", "children", "inverted", "color", "href", "internal", "tracking", "sx"];
378
+
365
379
  var Callout = function Callout(_ref) {
366
380
  var label = _ref.label,
367
381
  children = _ref.children,
@@ -371,7 +385,7 @@ var Callout = function Callout(_ref) {
371
385
  internal = _ref.internal,
372
386
  tracking = _ref.tracking,
373
387
  sx = _ref.sx,
374
- props = _objectWithoutPropertiesLoose(_ref, ["label", "children", "inverted", "color", "href", "internal", "tracking", "sx"]);
388
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
375
389
 
376
390
  var baseColor = color || (inverted ? 'secondary' : 'primary');
377
391
  var hoverColor = color ? 'primary' : inverted ? 'primary' : 'secondary';
@@ -450,6 +464,148 @@ var Callout = function Callout(_ref) {
450
464
  }
451
465
  };
452
466
 
467
+ var _excluded$c = ["colormap", "label", "clim", "discrete", "units", "width", "height", "format", "horizontal"];
468
+ var sx$2 = {
469
+ clim: {
470
+ fontFamily: 'mono',
471
+ fontSize: ['9px', 0, 0, 1],
472
+ letterSpacing: 'smallcaps',
473
+ textTransform: 'uppercase'
474
+ }
475
+ };
476
+ var DIMENSIONS = {
477
+ width: ['10px', '16px', '16px', '17px'],
478
+ height: ['80px', '110px', '110px', '130px']
479
+ };
480
+
481
+ var Gradient = function Gradient(_ref) {
482
+ var colormap = _ref.colormap,
483
+ discrete = _ref.discrete,
484
+ horizontal = _ref.horizontal,
485
+ width = _ref.width,
486
+ height = _ref.height;
487
+ var step = 1 / colormap.length * 100;
488
+ var values = colormap.map(function (d, i) {
489
+ return "rgb(" + d + ") " + i * step + "% " + (discrete && i < colormap.length - 1 ? (i + 1) * step + "%" : '');
490
+ });
491
+ var css = "linear-gradient(to " + (horizontal ? 'right' : 'top') + ", " + values.join(',') + ")";
492
+ return /*#__PURE__*/React.createElement(Box, {
493
+ sx: _extends({}, horizontal ? {
494
+ width: width || DIMENSIONS.height,
495
+ height: height || DIMENSIONS.width
496
+ } : {
497
+ width: width || DIMENSIONS.width,
498
+ minHeight: height || DIMENSIONS.height
499
+ }, {
500
+ mt: horizontal ? [0, '1px', '1px', 0] : 0,
501
+ border: function border(_ref2) {
502
+ var colors = _ref2.colors;
503
+ return "solid 1px " + colors.hinted;
504
+ },
505
+ background: css
506
+ })
507
+ });
508
+ };
509
+
510
+ var Label = function Label(_ref3) {
511
+ var label = _ref3.label,
512
+ units = _ref3.units,
513
+ horizontal = _ref3.horizontal;
514
+ return /*#__PURE__*/React.createElement(Box, {
515
+ sx: !horizontal && {
516
+ alignSelf: 'flex-end'
517
+ }
518
+ }, /*#__PURE__*/React.createElement(Box, {
519
+ sx: _extends({
520
+ mb: horizontal ? 0 : ['-4px', '-4px', '-4px', '-3px'],
521
+ fontFamily: 'mono',
522
+ fontSize: ['9px', 0, 0, 1],
523
+ letterSpacing: 'smallcaps',
524
+ textTransform: 'uppercase'
525
+ }, horizontal ? {} : {
526
+ writingMode: 'vertical-rl',
527
+ transform: 'rotate(180deg)',
528
+ whiteSpace: 'nowrap',
529
+ display: 'inline-block',
530
+ overflow: 'visible'
531
+ })
532
+ }, label, ' ', /*#__PURE__*/React.createElement(Box, {
533
+ as: "span",
534
+ sx: {
535
+ textTransform: 'none',
536
+ color: 'secondary',
537
+ display: 'inline-block'
538
+ }
539
+ }, units)));
540
+ };
541
+
542
+ var Colorbar = function Colorbar(_ref4) {
543
+ var colormap = _ref4.colormap,
544
+ label = _ref4.label,
545
+ clim = _ref4.clim,
546
+ discrete = _ref4.discrete,
547
+ units = _ref4.units,
548
+ width = _ref4.width,
549
+ height = _ref4.height,
550
+ _ref4$format = _ref4.format,
551
+ format = _ref4$format === void 0 ? function (d) {
552
+ return d;
553
+ } : _ref4$format,
554
+ _ref4$horizontal = _ref4.horizontal,
555
+ horizontal = _ref4$horizontal === void 0 ? false : _ref4$horizontal,
556
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded$c);
557
+
558
+ if (!Array.isArray(colormap)) {
559
+ throw new Error("expected array for colormap, got '" + colormap + "'.");
560
+ }
561
+
562
+ var ClimMin = function ClimMin() {
563
+ return /*#__PURE__*/React.createElement(Box, {
564
+ sx: _extends({}, sx$2.clim, {
565
+ ml: label ? horizontal ? '10px' : '2px' : 0,
566
+ mr: horizontal ? ['2px', '1px', '1px', '2px'] : 0,
567
+ mb: horizontal ? 0 : ['-2px', '-2px', '-2px', '-3px']
568
+ })
569
+ }, format(clim[0]));
570
+ };
571
+
572
+ var ClimMax = function ClimMax() {
573
+ return /*#__PURE__*/React.createElement(Box, {
574
+ sx: _extends({}, sx$2.clim, {
575
+ ml: horizontal ? ['2px', '1px', '1px', '2px'] : '2px',
576
+ mt: horizontal ? 0 : ['-2px', '-3px', '-3px', '-3px']
577
+ })
578
+ }, format(clim[1]));
579
+ };
580
+
581
+ return /*#__PURE__*/React.createElement(Flex, {
582
+ sx: _extends({}, props.sx, {
583
+ flexDirection: 'row',
584
+ alignItems: 'center',
585
+ justifyContent: 'flex-start',
586
+ gap: ['3px', '6px', '6px', '7px']
587
+ })
588
+ }, label && /*#__PURE__*/React.createElement(Label, {
589
+ label: label,
590
+ units: units,
591
+ horizontal: horizontal
592
+ }), horizontal && clim && /*#__PURE__*/React.createElement(ClimMin, null), /*#__PURE__*/React.createElement(Gradient, {
593
+ colormap: colormap,
594
+ horizontal: horizontal,
595
+ discrete: discrete,
596
+ width: width,
597
+ height: height
598
+ }), horizontal && clim && /*#__PURE__*/React.createElement(ClimMax, null), !horizontal && /*#__PURE__*/React.createElement(Flex, {
599
+ sx: {
600
+ flexDirection: 'column-reverse',
601
+ justifyContent: 'space-between',
602
+ height: height || DIMENSIONS.height
603
+ }
604
+ }, clim && /*#__PURE__*/React.createElement(ClimMin, null), clim && /*#__PURE__*/React.createElement(ClimMax, null)));
605
+ };
606
+
607
+ var _excluded$b = ["start", "width", "dl", "dr", "children", "sx"];
608
+
453
609
  var Column = function Column(_ref) {
454
610
  var start = _ref.start,
455
611
  width = _ref.width,
@@ -457,7 +613,7 @@ var Column = function Column(_ref) {
457
613
  dr = _ref.dr,
458
614
  children = _ref.children,
459
615
  sx = _ref.sx,
460
- props = _objectWithoutPropertiesLoose(_ref, ["start", "width", "dl", "dr", "children", "sx"]);
616
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
461
617
 
462
618
  start = start || 'auto';
463
619
  width = width || 'auto';
@@ -664,12 +820,14 @@ var Logo = function Logo(_ref) {
664
820
  })));
665
821
  };
666
822
 
823
+ var _excluded$a = ["children", "sx", "columns", "gap"];
824
+
667
825
  var Row = function Row(_ref) {
668
826
  var children = _ref.children,
669
827
  sx = _ref.sx,
670
828
  columns = _ref.columns,
671
829
  gap = _ref.gap,
672
- props = _objectWithoutPropertiesLoose(_ref, ["children", "sx", "columns", "gap"]);
830
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
673
831
 
674
832
  var makeArray = function makeArray(input) {
675
833
  if (!Array.isArray(input)) {
@@ -721,10 +879,12 @@ var Row = function Row(_ref) {
721
879
  }), children);
722
880
  };
723
881
 
882
+ var _excluded$9 = ["value", "sx"];
883
+
724
884
  var Menu = function Menu(_ref) {
725
885
  var value = _ref.value,
726
886
  sx = _ref.sx,
727
- props = _objectWithoutPropertiesLoose(_ref, ["value", "sx"]);
887
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
728
888
 
729
889
  return /*#__PURE__*/React.createElement(IconButton, _extends({
730
890
  sx: _extends({
@@ -812,26 +972,28 @@ var Menu = function Menu(_ref) {
812
972
  })));
813
973
  };
814
974
 
815
- var Settings = function Settings(_ref) {
816
- var _extends2;
975
+ var _excluded$8 = ["value", "sx"];
817
976
 
977
+ var Settings = function Settings(_ref) {
818
978
  var value = _ref.value,
819
979
  sx = _ref.sx,
820
- props = _objectWithoutPropertiesLoose(_ref, ["value", "sx"]);
980
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
821
981
 
822
982
  return /*#__PURE__*/React.createElement(IconButton, _extends({
823
- sx: _extends((_extends2 = {
983
+ sx: _extends({
824
984
  cursor: 'pointer',
825
985
  fill: 'none',
826
986
  strokeWidth: '2px',
827
- stroke: 'text'
828
- }, _extends2["fill"] = 'background', _extends2['.paren'] = {
829
- opacity: '0'
830
- }, _extends2['@media (hover: hover) and (pointer: fine)'] = {
831
- '&:hover .paren': {
832
- opacity: '1'
987
+ stroke: 'text',
988
+ '.paren': {
989
+ opacity: '0'
990
+ },
991
+ '@media (hover: hover) and (pointer: fine)': {
992
+ '&:hover .paren': {
993
+ opacity: '1'
994
+ }
833
995
  }
834
- }, _extends2), sx),
996
+ }, sx),
835
997
  "aria-label": "Toggle Menu"
836
998
  }, props), !value && /*#__PURE__*/React.createElement("svg", {
837
999
  style: {
@@ -846,22 +1008,22 @@ var Settings = function Settings(_ref) {
846
1008
  x1: "24",
847
1009
  y1: "2.1",
848
1010
  x2: "24",
1011
+ y2: "6.1"
1012
+ }), /*#__PURE__*/React.createElement("line", {
1013
+ x1: "24",
1014
+ y1: "24.1",
1015
+ x2: "24",
849
1016
  y2: "33.9"
850
1017
  }), /*#__PURE__*/React.createElement("line", {
851
1018
  x1: "44",
852
1019
  y1: "2.1",
853
1020
  x2: "44",
1021
+ y2: "12.1"
1022
+ }), /*#__PURE__*/React.createElement("line", {
1023
+ x1: "44",
1024
+ y1: "30.1",
1025
+ x2: "44",
854
1026
  y2: "33.9"
855
- }), /*#__PURE__*/React.createElement("circle", {
856
- cx: "24",
857
- cy: "15.1",
858
- r: "9",
859
- stroke: "none"
860
- }), /*#__PURE__*/React.createElement("circle", {
861
- cx: "44",
862
- cy: "21.1",
863
- r: "9",
864
- stroke: "none"
865
1027
  }), /*#__PURE__*/React.createElement("circle", {
866
1028
  cx: "24",
867
1029
  cy: "15.1",
@@ -916,9 +1078,11 @@ var Settings = function Settings(_ref) {
916
1078
  })));
917
1079
  };
918
1080
 
1081
+ var _excluded$7 = ["sx"];
1082
+
919
1083
  var Dimmer = function Dimmer(_ref) {
920
1084
  var sx = _ref.sx,
921
- props = _objectWithoutPropertiesLoose(_ref, ["sx"]);
1085
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
922
1086
 
923
1087
  var _useColorMode = useColorMode(),
924
1088
  colorMode = _useColorMode[0],
@@ -951,7 +1115,7 @@ var Dimmer = function Dimmer(_ref) {
951
1115
  }));
952
1116
  };
953
1117
 
954
- var sx = {
1118
+ var sx$1 = {
955
1119
  link: function link(current, label, first) {
956
1120
  if (first === void 0) {
957
1121
  first = false;
@@ -1034,12 +1198,12 @@ var Nav = function Nav(_ref) {
1034
1198
  onClick: function onClick() {
1035
1199
  if (nav === url) setExpanded(false);
1036
1200
  },
1037
- sx: sx.link(nav, url, first)
1201
+ sx: sx$1.link(nav, url, first)
1038
1202
  }, /*#__PURE__*/React.createElement(HoverArrow, null), display));
1039
1203
  } else {
1040
1204
  return /*#__PURE__*/React.createElement(Link$1, {
1041
1205
  href: href,
1042
- sx: sx.link(nav, url, first)
1206
+ sx: sx$1.link(nav, url, first)
1043
1207
  }, /*#__PURE__*/React.createElement(HoverArrow, null), display);
1044
1208
  }
1045
1209
  };
@@ -1376,6 +1540,77 @@ var Footer = function Footer() {
1376
1540
  }))));
1377
1541
  };
1378
1542
 
1543
+ var GitSha = function GitSha() {
1544
+ var sha = process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA;
1545
+ var owner = process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER;
1546
+ var slug = process.env.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG;
1547
+
1548
+ var _useThemeUI = useThemeUI(),
1549
+ theme = _useThemeUI.theme;
1550
+
1551
+ var color = theme.rawColors.secondary;
1552
+
1553
+ if (sha && owner && slug) {
1554
+ var shortSha = sha.substring(0, 7);
1555
+ var href = 'https://github.com/' + owner + '/' + slug + '/tree/' + sha;
1556
+ return /*#__PURE__*/React.createElement(Box, {
1557
+ sx: {
1558
+ display: 'inline-block'
1559
+ }
1560
+ }, /*#__PURE__*/React.createElement(Separator, {
1561
+ color: color
1562
+ }), /*#__PURE__*/React.createElement(Link$1, {
1563
+ href: href,
1564
+ sx: {
1565
+ whiteSpace: 'nowrap',
1566
+ display: 'inline-block',
1567
+ ml: [2],
1568
+ fontFamily: 'mono',
1569
+ letterSpacing: 'body',
1570
+ color: color,
1571
+ fontSize: [1],
1572
+ textTransform: 'uppercase',
1573
+ textDecoration: 'none'
1574
+ }
1575
+ }, shortSha));
1576
+ } else {
1577
+ // fallback
1578
+ return /*#__PURE__*/React.createElement(Box, {
1579
+ sx: {
1580
+ display: 'inline-block'
1581
+ }
1582
+ }, /*#__PURE__*/React.createElement(Separator, {
1583
+ color: color
1584
+ }), /*#__PURE__*/React.createElement(Text, {
1585
+ sx: {
1586
+ whiteSpace: 'nowrap',
1587
+ display: 'inline-block',
1588
+ ml: [2],
1589
+ fontFamily: 'mono',
1590
+ letterSpacing: 'body',
1591
+ color: color,
1592
+ fontSize: [1],
1593
+ textTransform: 'uppercase'
1594
+ }
1595
+ }, color));
1596
+ }
1597
+ };
1598
+
1599
+ var Separator = function Separator(_ref) {
1600
+ var color = _ref.color;
1601
+ return /*#__PURE__*/React.createElement("svg", {
1602
+ fill: color,
1603
+ opacity: "0.8",
1604
+ viewBox: "0 0 24 24",
1605
+ width: "24",
1606
+ height: "24"
1607
+ }, /*#__PURE__*/React.createElement("circle", {
1608
+ r: 5,
1609
+ cx: 19,
1610
+ cy: 19
1611
+ }));
1612
+ };
1613
+
1379
1614
  var Value = function Value(_ref) {
1380
1615
  var mode = _ref.mode;
1381
1616
 
@@ -1425,11 +1660,6 @@ var Value = function Value(_ref) {
1425
1660
 
1426
1661
  var Metadata = function Metadata(_ref2) {
1427
1662
  var mode = _ref2.mode;
1428
-
1429
- var _useThemeUI = useThemeUI(),
1430
- theme = _useThemeUI.theme;
1431
-
1432
- var color = theme.rawColors.secondary;
1433
1663
  return /*#__PURE__*/React.createElement(Box, {
1434
1664
  sx: {
1435
1665
  userSelect: 'none',
@@ -1442,28 +1672,7 @@ var Metadata = function Metadata(_ref2) {
1442
1672
  }
1443
1673
  }, /*#__PURE__*/React.createElement(Value, {
1444
1674
  mode: mode
1445
- }), /*#__PURE__*/React.createElement("svg", {
1446
- fill: color,
1447
- opacity: "0.8",
1448
- viewBox: "0 0 24 24",
1449
- width: "24",
1450
- height: "24"
1451
- }, /*#__PURE__*/React.createElement("circle", {
1452
- r: 5,
1453
- cx: 19,
1454
- cy: 19
1455
- })), /*#__PURE__*/React.createElement(Text, {
1456
- sx: {
1457
- whiteSpace: 'nowrap',
1458
- display: 'inline-block',
1459
- ml: [2],
1460
- fontFamily: 'mono',
1461
- letterSpacing: 'body',
1462
- color: 'secondary',
1463
- fontSize: [1],
1464
- textTransform: 'uppercase'
1465
- }
1466
- }, color));
1675
+ }), /*#__PURE__*/React.createElement(GitSha, null));
1467
1676
  };
1468
1677
 
1469
1678
  function init(mode) {
@@ -1484,6 +1693,7 @@ function scrollFraction(window, documnt) {
1484
1693
  return Math.min(window.scrollY / (document.body.offsetHeight - 770), 0.99);
1485
1694
  }
1486
1695
 
1696
+ var _excluded$6 = ["duration", "delay", "children"];
1487
1697
  var fade = keyframes({
1488
1698
  from: {
1489
1699
  opacity: 0
@@ -1499,7 +1709,7 @@ var FadeIn = function FadeIn(_ref) {
1499
1709
  _ref$delay = _ref.delay,
1500
1710
  delay = _ref$delay === void 0 ? 0 : _ref$delay,
1501
1711
  children = _ref.children,
1502
- delegated = _objectWithoutPropertiesLoose(_ref, ["duration", "delay", "children"]);
1712
+ delegated = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1503
1713
 
1504
1714
  return /*#__PURE__*/React.createElement(Box, _extends({}, delegated, {
1505
1715
  sx: {
@@ -1821,12 +2031,14 @@ var Expander = function Expander(_ref) {
1821
2031
  })));
1822
2032
  };
1823
2033
 
2034
+ var _excluded$5 = ["label", "value", "sx", "children"];
2035
+
1824
2036
  var Tag = function Tag(_ref) {
1825
2037
  var label = _ref.label,
1826
2038
  value = _ref.value,
1827
2039
  sx = _ref.sx,
1828
2040
  children = _ref.children,
1829
- props = _objectWithoutPropertiesLoose(_ref, ["label", "value", "sx", "children"]);
2041
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
1830
2042
 
1831
2043
  var color = sx && sx.color ? sx.color : 'primary';
1832
2044
  var isClickable = props && (props.onClick || props.onDoubleClick);
@@ -1860,7 +2072,8 @@ var Tag = function Tag(_ref) {
1860
2072
  }, props), children);
1861
2073
  };
1862
2074
 
1863
- var sx$1 = {
2075
+ var _excluded$4 = ["values", "setValues", "label", "colors", "showAll", "multiSelect"];
2076
+ var sx = {
1864
2077
  label: {
1865
2078
  fontFamily: 'mono',
1866
2079
  letterSpacing: 'mono',
@@ -1937,10 +2150,10 @@ var Filter = function Filter(_ref2) {
1937
2150
  showAll = _ref2$showAll === void 0 ? false : _ref2$showAll,
1938
2151
  _ref2$multiSelect = _ref2.multiSelect,
1939
2152
  multiSelect = _ref2$multiSelect === void 0 ? false : _ref2$multiSelect,
1940
- props = _objectWithoutPropertiesLoose(_ref2, ["values", "setValues", "label", "colors", "showAll", "multiSelect"]);
2153
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$4);
1941
2154
 
1942
2155
  return /*#__PURE__*/React.createElement(Box, props, label && /*#__PURE__*/React.createElement(Box, {
1943
- sx: sx$1.label
2156
+ sx: sx.label
1944
2157
  }, label), /*#__PURE__*/React.createElement(Box, {
1945
2158
  sx: {
1946
2159
  mt: label ? [3] : 0
@@ -2035,6 +2248,8 @@ var Group = function Group(_ref) {
2035
2248
  }));
2036
2249
  };
2037
2250
 
2251
+ var _excluded$3 = ["size", "inverted", "sx"];
2252
+
2038
2253
  var Input = function Input(_ref) {
2039
2254
  var _extends2;
2040
2255
 
@@ -2042,7 +2257,7 @@ var Input = function Input(_ref) {
2042
2257
  size = _ref$size === void 0 ? 'sm' : _ref$size,
2043
2258
  inverted = _ref.inverted,
2044
2259
  sx = _ref.sx,
2045
- props = _objectWithoutPropertiesLoose(_ref, ["size", "inverted", "sx"]);
2260
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2046
2261
 
2047
2262
  var defaultColor = inverted ? 'secondary' : 'primary';
2048
2263
 
@@ -2084,6 +2299,8 @@ var getProps = function getProps(test) {
2084
2299
  };
2085
2300
  };
2086
2301
 
2302
+ var _excluded$2 = ["children", "size", "sx"];
2303
+
2087
2304
  var Select = function Select(_ref) {
2088
2305
  var _extends2;
2089
2306
 
@@ -2091,7 +2308,7 @@ var Select = function Select(_ref) {
2091
2308
  _ref$size = _ref.size,
2092
2309
  size = _ref$size === void 0 ? 'sm' : _ref$size,
2093
2310
  sx = _ref.sx,
2094
- props = _objectWithoutPropertiesLoose(_ref, ["children", "size", "sx"]);
2311
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
2095
2312
 
2096
2313
  var color = sx && sx.color ? sx.color : 'primary';
2097
2314
  var sizeStyles = getSizeStyles(size);
@@ -2177,9 +2394,11 @@ var Select = function Select(_ref) {
2177
2394
  }));
2178
2395
  };
2179
2396
 
2397
+ var _excluded$1 = ["sx"];
2398
+
2180
2399
  var Slider = function Slider(_ref) {
2181
2400
  var sx = _ref.sx,
2182
- props = _objectWithoutPropertiesLoose(_ref, ["sx"]);
2401
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
2183
2402
 
2184
2403
  var color = sx && sx.color ? sx.color : 'primary';
2185
2404
 
@@ -2321,12 +2540,14 @@ var Table = function Table(_ref) {
2321
2540
  })));
2322
2541
  };
2323
2542
 
2543
+ var _excluded = ["value", "onClick", "disabled", "sx"];
2544
+
2324
2545
  var Toggle = function Toggle(_ref) {
2325
2546
  var value = _ref.value,
2326
2547
  onClick = _ref.onClick,
2327
2548
  disabled = _ref.disabled,
2328
2549
  sx = _ref.sx,
2329
- props = _objectWithoutPropertiesLoose(_ref, ["value", "onClick", "disabled", "sx"]);
2550
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
2330
2551
 
2331
2552
  var color = sx && sx.color ? sx.color : 'primary';
2332
2553
  value = disabled ? false : value;
@@ -2423,7 +2644,7 @@ var Tray = function Tray(_ref) {
2423
2644
  ml: [-3, -4, -5, -6],
2424
2645
  pl: [3, 4, 5, 6],
2425
2646
  pr: [3, 4, 5, 6],
2426
- transform: expanded ? 'translateY(0)' : 'translateY(-400px)'
2647
+ transform: expanded ? 'translateY(0)' : 'translateY(-100%)'
2427
2648
  }, sx)
2428
2649
  }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Column, {
2429
2650
  start: [1, 1, 1, 1],
@@ -2466,5 +2687,5 @@ var formatDate = function formatDate(date, options) {
2466
2687
  return [month, day, year].filter(Boolean).join(' ');
2467
2688
  };
2468
2689
 
2469
- export { Badge, Button, Callout, Column, Custom404, Dimmer, Expander, FadeIn, Filter, Footer, Group, Guide, Header, Input, Layout, Link, Logo, Menu, Meta, Monogram, Row, Scrollbar, Select, Slider, Table, Tag, Toggle, Tracking, Tray, formatDate, getScrollbarWidth };
2690
+ export { Badge, Button, Callout, Colorbar, Column, Custom404, Dimmer, Expander, FadeIn, Filter, Footer, Group, Guide, Header, Input, Layout, Link, Logo, Menu, Meta, Monogram, Row, Scrollbar, Select, Settings, Slider, Table, Tag, Toggle, Tracking, Tray, formatDate, getScrollbarWidth };
2470
2691
  //# sourceMappingURL=index.esm.js.map