@zendeskgarden/react-grid 8.53.2 → 8.54.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/dist/index.cjs.js CHANGED
@@ -242,7 +242,7 @@ var sizeStyles$4 = function sizeStyles(props) {
242
242
  };
243
243
  var StyledCol = styled__default["default"].div.attrs({
244
244
  'data-garden-id': COMPONENT_ID$6,
245
- 'data-garden-version': '8.53.2'
245
+ 'data-garden-version': '8.54.1'
246
246
  }).withConfig({
247
247
  displayName: "StyledCol",
248
248
  componentId: "sc-inuw62-0"
@@ -282,7 +282,7 @@ var sizeStyles$3 = function sizeStyles(props) {
282
282
  };
283
283
  var StyledGrid = styled__default["default"].div.attrs({
284
284
  'data-garden-id': COMPONENT_ID$5,
285
- 'data-garden-version': '8.53.2'
285
+ 'data-garden-version': '8.54.1'
286
286
  }).withConfig({
287
287
  displayName: "StyledGrid",
288
288
  componentId: "sc-oxgg5i-0"
@@ -332,7 +332,7 @@ var sizeStyles$2 = function sizeStyles(props) {
332
332
  };
333
333
  var StyledRow = styled__default["default"].div.attrs({
334
334
  'data-garden-id': COMPONENT_ID$4,
335
- 'data-garden-version': '8.53.2'
335
+ 'data-garden-version': '8.54.1'
336
336
  }).withConfig({
337
337
  displayName: "StyledRow",
338
338
  componentId: "sc-xjsdg1-0"
@@ -363,7 +363,7 @@ StyledRow.defaultProps = {
363
363
  var COMPONENT_ID$3 = 'pane';
364
364
  var StyledPane = styled__default["default"].div.attrs({
365
365
  'data-garden-id': COMPONENT_ID$3,
366
- 'data-garden-version': '8.53.2'
366
+ 'data-garden-version': '8.54.1'
367
367
  }).withConfig({
368
368
  displayName: "StyledPane",
369
369
  componentId: "sc-1ltjst7-0"
@@ -377,7 +377,7 @@ StyledPane.defaultProps = {
377
377
  var COMPONENT_ID$2 = 'pane.content';
378
378
  var StyledPaneContent = styled__default["default"].div.attrs({
379
379
  'data-garden-id': COMPONENT_ID$2,
380
- 'data-garden-version': '8.53.2'
380
+ 'data-garden-version': '8.54.1'
381
381
  }).withConfig({
382
382
  displayName: "StyledPaneContent",
383
383
  componentId: "sc-1b38mbh-0"
@@ -418,19 +418,6 @@ var sizeStyles$1 = function sizeStyles(props) {
418
418
  separatorWidth = width;
419
419
  separatorHeight = props.theme.borderWidths.sm;
420
420
  break;
421
- case 'end':
422
- cursor = 'col-resize';
423
- top = 0;
424
- width = size;
425
- height = '100%';
426
- separatorWidth = props.theme.borderWidths.sm;
427
- separatorHeight = height;
428
- if (props.theme.rtl) {
429
- left = offset;
430
- } else {
431
- right = offset;
432
- }
433
- break;
434
421
  case 'bottom':
435
422
  cursor = 'row-resize';
436
423
  bottom = offset;
@@ -452,13 +439,27 @@ var sizeStyles$1 = function sizeStyles(props) {
452
439
  left = offset;
453
440
  }
454
441
  break;
442
+ case 'end':
443
+ default:
444
+ cursor = 'col-resize';
445
+ top = 0;
446
+ width = size;
447
+ height = '100%';
448
+ separatorWidth = props.theme.borderWidths.sm;
449
+ separatorHeight = height;
450
+ if (props.theme.rtl) {
451
+ left = offset;
452
+ } else {
453
+ right = offset;
454
+ }
455
+ break;
455
456
  }
456
457
  var dimensionProperty = width === '100%' ? 'height' : 'width';
457
458
  return styled.css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&[data-garden-focus-visible]::before,&:focus::before{", ":", ";}&[data-garden-focus-visible]::before{border-radius:", ";}"], top, right, bottom, left, cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, props.isHovered && separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
458
459
  };
459
460
  var StyledPaneSplitter = styled__default["default"].div.attrs({
460
461
  'data-garden-id': COMPONENT_ID$1,
461
- 'data-garden-version': '8.53.2'
462
+ 'data-garden-version': '8.54.1'
462
463
  }).withConfig({
463
464
  displayName: "StyledPaneSplitter",
464
465
  componentId: "sc-jylemn-0"
@@ -521,7 +522,7 @@ var sizeStyles = function sizeStyles(props) {
521
522
  };
522
523
  var StyledPaneSplitterButton = styled__default["default"](reactButtons.ChevronButton).attrs({
523
524
  'data-garden-id': COMPONENT_ID,
524
- 'data-garden-version': '8.53.2',
525
+ 'data-garden-version': '8.54.1',
525
526
  isBasic: true,
526
527
  isPill: true,
527
528
  size: 'small'
@@ -889,17 +890,11 @@ var usePaneSplitterContext = function usePaneSplitterContext() {
889
890
  };
890
891
 
891
892
  var _excluded$1 = ["providerId", "layoutKey", "min", "max", "orientation"];
892
- var orientationToPosition = {
893
- start: containerSplitter.SplitterPosition.LEADS,
894
- end: containerSplitter.SplitterPosition.TRAILS,
895
- top: containerSplitter.SplitterPosition.LEADS,
896
- bottom: containerSplitter.SplitterPosition.TRAILS
897
- };
898
893
  var paneToSplitterOrientation = {
899
- start: containerSplitter.SplitterOrientation.VERTICAL,
900
- end: containerSplitter.SplitterOrientation.VERTICAL,
901
- top: containerSplitter.SplitterOrientation.HORIZONTAL,
902
- bottom: containerSplitter.SplitterOrientation.HORIZONTAL
894
+ start: 'vertical',
895
+ end: 'vertical',
896
+ top: 'horizontal',
897
+ bottom: 'horizontal'
903
898
  };
904
899
  var orientationToDimension = {
905
900
  start: 'columns',
@@ -908,7 +903,7 @@ var orientationToDimension = {
908
903
  bottom: 'rows'
909
904
  };
910
905
  var SplitterComponent = React.forwardRef(function (_ref, ref) {
911
- var _separatorProps$ref$c, _separatorProps$ref$c2;
906
+ var _separatorRef$current, _separatorRef$current2;
912
907
  var providerId = _ref.providerId,
913
908
  layoutKey = _ref.layoutKey,
914
909
  min = _ref.min,
@@ -918,31 +913,32 @@ var SplitterComponent = React.forwardRef(function (_ref, ref) {
918
913
  var paneProviderContext = usePaneProviderContextData(providerId);
919
914
  var paneContext = usePaneContext();
920
915
  var themeContext = React.useContext(styled.ThemeContext);
916
+ var environment = reactTheming.useDocument(themeContext);
921
917
  var _useState = React.useState(false),
922
918
  _useState2 = _slicedToArray(_useState, 2),
923
919
  isHovered = _useState2[0],
924
920
  setIsHovered = _useState2[1];
925
- var position = orientationToPosition[orientation];
926
921
  var isRow = orientationToDimension[orientation] === 'rows';
927
- var splitterOrientation = paneToSplitterOrientation[orientation];
922
+ var separatorRef = React.useRef(null);
923
+ var splitterOrientation = paneToSplitterOrientation[orientation || 'end'];
928
924
  var pixelsPerFr = paneProviderContext ? paneProviderContext.pixelsPerFr[orientationToDimension[orientation]] : 0;
929
925
  var value = isRow ? paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getRowValue(layoutKey, true) : paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getColumnValue(layoutKey, true);
930
926
  var valueInFr = isRow ? paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getRowValue(layoutKey) : paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getColumnValue(layoutKey);
931
927
  var _useSplitter = containerSplitter.useSplitter({
932
- type: containerSplitter.SplitterType.VARIABLE,
933
928
  orientation: splitterOrientation,
934
- position: position,
929
+ isLeading: orientation === 'start' || orientation === 'top',
935
930
  min: min * pixelsPerFr,
936
931
  max: max * pixelsPerFr,
937
932
  rtl: themeContext.rtl,
938
- environment: window,
933
+ environment: environment,
939
934
  onChange: function onChange(valueNow) {
940
935
  if (isRow) {
941
936
  return paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.setRowValue(orientation === 'top', layoutKey, valueNow / pixelsPerFr);
942
937
  }
943
938
  return paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.setColumnValue(orientation === 'start', layoutKey, valueNow / pixelsPerFr);
944
939
  },
945
- valueNow: value
940
+ valueNow: value,
941
+ separatorRef: separatorRef
946
942
  }),
947
943
  getSeparatorProps = _useSplitter.getSeparatorProps,
948
944
  getPrimaryPaneProps = _useSplitter.getPrimaryPaneProps;
@@ -951,15 +947,17 @@ var SplitterComponent = React.forwardRef(function (_ref, ref) {
951
947
  paneContext.setId(getPrimaryPaneProps().id);
952
948
  }
953
949
  }, [paneContext, getPrimaryPaneProps]);
950
+ var ariaLabel = reactTheming.useText(SplitterComponent, props, 'aria-label', "".concat(splitterOrientation, " splitter"));
954
951
  var separatorProps = getSeparatorProps({
955
- 'aria-controls': paneContext.id
952
+ 'aria-controls': paneContext.id,
953
+ 'aria-label': ariaLabel
956
954
  });
957
- var size = isRow ? (_separatorProps$ref$c = separatorProps.ref.current) === null || _separatorProps$ref$c === void 0 ? void 0 : _separatorProps$ref$c.clientWidth : (_separatorProps$ref$c2 = separatorProps.ref.current) === null || _separatorProps$ref$c2 === void 0 ? void 0 : _separatorProps$ref$c2.clientHeight;
955
+ var size = isRow ? (_separatorRef$current = separatorRef.current) === null || _separatorRef$current === void 0 ? void 0 : _separatorRef$current.clientWidth : (_separatorRef$current2 = separatorRef.current) === null || _separatorRef$current2 === void 0 ? void 0 : _separatorRef$current2.clientHeight;
958
956
  var onMouseOver = React.useMemo(function () {
959
957
  return containerUtilities.composeEventHandlers(props.onMouseOver, function (event) {
960
- return setIsHovered(event.target === separatorProps.ref.current);
958
+ return setIsHovered(event.target === separatorRef.current);
961
959
  });
962
- }, [props.onMouseOver, separatorProps.ref]);
960
+ }, [props.onMouseOver, separatorRef]);
963
961
  return React__default["default"].createElement(PaneSplitterContext.Provider, {
964
962
  value: React.useMemo(function () {
965
963
  return {
@@ -977,7 +975,7 @@ var SplitterComponent = React.forwardRef(function (_ref, ref) {
977
975
  orientation: orientation
978
976
  }, separatorProps, props, {
979
977
  onMouseOver: onMouseOver,
980
- ref: mergeRefs__default["default"]([separatorProps.ref, ref])
978
+ ref: mergeRefs__default["default"]([separatorRef, ref])
981
979
  })));
982
980
  });
983
981
  SplitterComponent.displayName = 'Pane.Splitter';
package/dist/index.esm.js CHANGED
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
 
8
- import React, { createContext, useContext, useMemo, useState, useCallback, forwardRef, useEffect } from 'react';
8
+ import React, { createContext, useContext, useMemo, useState, useCallback, forwardRef, useRef, useEffect } from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
  import styled, { css, ThemeContext } from 'styled-components';
11
11
  import { math, rgba, stripUnit } from 'polished';
12
- import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
12
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor, useDocument, useText } from '@zendeskgarden/react-theming';
13
13
  import { ChevronButton } from '@zendeskgarden/react-buttons';
14
14
  import { useId, composeEventHandlers } from '@zendeskgarden/container-utilities';
15
15
  import mergeRefs from 'react-merge-refs';
16
- import { SplitterPosition, SplitterOrientation, useSplitter, SplitterType } from '@zendeskgarden/container-splitter';
16
+ import { useSplitter } from '@zendeskgarden/container-splitter';
17
17
  import { Tooltip } from '@zendeskgarden/react-tooltips';
18
18
 
19
19
  function ownKeys(object, enumerableOnly) {
@@ -231,7 +231,7 @@ var sizeStyles$4 = function sizeStyles(props) {
231
231
  };
232
232
  var StyledCol = styled.div.attrs({
233
233
  'data-garden-id': COMPONENT_ID$6,
234
- 'data-garden-version': '8.53.2'
234
+ 'data-garden-version': '8.54.1'
235
235
  }).withConfig({
236
236
  displayName: "StyledCol",
237
237
  componentId: "sc-inuw62-0"
@@ -271,7 +271,7 @@ var sizeStyles$3 = function sizeStyles(props) {
271
271
  };
272
272
  var StyledGrid = styled.div.attrs({
273
273
  'data-garden-id': COMPONENT_ID$5,
274
- 'data-garden-version': '8.53.2'
274
+ 'data-garden-version': '8.54.1'
275
275
  }).withConfig({
276
276
  displayName: "StyledGrid",
277
277
  componentId: "sc-oxgg5i-0"
@@ -321,7 +321,7 @@ var sizeStyles$2 = function sizeStyles(props) {
321
321
  };
322
322
  var StyledRow = styled.div.attrs({
323
323
  'data-garden-id': COMPONENT_ID$4,
324
- 'data-garden-version': '8.53.2'
324
+ 'data-garden-version': '8.54.1'
325
325
  }).withConfig({
326
326
  displayName: "StyledRow",
327
327
  componentId: "sc-xjsdg1-0"
@@ -352,7 +352,7 @@ StyledRow.defaultProps = {
352
352
  var COMPONENT_ID$3 = 'pane';
353
353
  var StyledPane = styled.div.attrs({
354
354
  'data-garden-id': COMPONENT_ID$3,
355
- 'data-garden-version': '8.53.2'
355
+ 'data-garden-version': '8.54.1'
356
356
  }).withConfig({
357
357
  displayName: "StyledPane",
358
358
  componentId: "sc-1ltjst7-0"
@@ -366,7 +366,7 @@ StyledPane.defaultProps = {
366
366
  var COMPONENT_ID$2 = 'pane.content';
367
367
  var StyledPaneContent = styled.div.attrs({
368
368
  'data-garden-id': COMPONENT_ID$2,
369
- 'data-garden-version': '8.53.2'
369
+ 'data-garden-version': '8.54.1'
370
370
  }).withConfig({
371
371
  displayName: "StyledPaneContent",
372
372
  componentId: "sc-1b38mbh-0"
@@ -407,19 +407,6 @@ var sizeStyles$1 = function sizeStyles(props) {
407
407
  separatorWidth = width;
408
408
  separatorHeight = props.theme.borderWidths.sm;
409
409
  break;
410
- case 'end':
411
- cursor = 'col-resize';
412
- top = 0;
413
- width = size;
414
- height = '100%';
415
- separatorWidth = props.theme.borderWidths.sm;
416
- separatorHeight = height;
417
- if (props.theme.rtl) {
418
- left = offset;
419
- } else {
420
- right = offset;
421
- }
422
- break;
423
410
  case 'bottom':
424
411
  cursor = 'row-resize';
425
412
  bottom = offset;
@@ -441,13 +428,27 @@ var sizeStyles$1 = function sizeStyles(props) {
441
428
  left = offset;
442
429
  }
443
430
  break;
431
+ case 'end':
432
+ default:
433
+ cursor = 'col-resize';
434
+ top = 0;
435
+ width = size;
436
+ height = '100%';
437
+ separatorWidth = props.theme.borderWidths.sm;
438
+ separatorHeight = height;
439
+ if (props.theme.rtl) {
440
+ left = offset;
441
+ } else {
442
+ right = offset;
443
+ }
444
+ break;
444
445
  }
445
446
  var dimensionProperty = width === '100%' ? 'height' : 'width';
446
447
  return css(["top:", ";right:", ";bottom:", ";left:", ";cursor:", ";width:", ";height:", ";&::before{width:", ";height:", ";}&:hover::before{", ":", ";}&[data-garden-focus-visible]::before,&:focus::before{", ":", ";}&[data-garden-focus-visible]::before{border-radius:", ";}"], top, right, bottom, left, cursor, width, height, separatorWidth, separatorHeight, dimensionProperty, props.isHovered && separatorSize, dimensionProperty, separatorSize, props.theme.borderRadii.md);
447
448
  };
448
449
  var StyledPaneSplitter = styled.div.attrs({
449
450
  'data-garden-id': COMPONENT_ID$1,
450
- 'data-garden-version': '8.53.2'
451
+ 'data-garden-version': '8.54.1'
451
452
  }).withConfig({
452
453
  displayName: "StyledPaneSplitter",
453
454
  componentId: "sc-jylemn-0"
@@ -510,7 +511,7 @@ var sizeStyles = function sizeStyles(props) {
510
511
  };
511
512
  var StyledPaneSplitterButton = styled(ChevronButton).attrs({
512
513
  'data-garden-id': COMPONENT_ID,
513
- 'data-garden-version': '8.53.2',
514
+ 'data-garden-version': '8.54.1',
514
515
  isBasic: true,
515
516
  isPill: true,
516
517
  size: 'small'
@@ -878,17 +879,11 @@ var usePaneSplitterContext = function usePaneSplitterContext() {
878
879
  };
879
880
 
880
881
  var _excluded$1 = ["providerId", "layoutKey", "min", "max", "orientation"];
881
- var orientationToPosition = {
882
- start: SplitterPosition.LEADS,
883
- end: SplitterPosition.TRAILS,
884
- top: SplitterPosition.LEADS,
885
- bottom: SplitterPosition.TRAILS
886
- };
887
882
  var paneToSplitterOrientation = {
888
- start: SplitterOrientation.VERTICAL,
889
- end: SplitterOrientation.VERTICAL,
890
- top: SplitterOrientation.HORIZONTAL,
891
- bottom: SplitterOrientation.HORIZONTAL
883
+ start: 'vertical',
884
+ end: 'vertical',
885
+ top: 'horizontal',
886
+ bottom: 'horizontal'
892
887
  };
893
888
  var orientationToDimension = {
894
889
  start: 'columns',
@@ -897,7 +892,7 @@ var orientationToDimension = {
897
892
  bottom: 'rows'
898
893
  };
899
894
  var SplitterComponent = forwardRef(function (_ref, ref) {
900
- var _separatorProps$ref$c, _separatorProps$ref$c2;
895
+ var _separatorRef$current, _separatorRef$current2;
901
896
  var providerId = _ref.providerId,
902
897
  layoutKey = _ref.layoutKey,
903
898
  min = _ref.min,
@@ -907,31 +902,32 @@ var SplitterComponent = forwardRef(function (_ref, ref) {
907
902
  var paneProviderContext = usePaneProviderContextData(providerId);
908
903
  var paneContext = usePaneContext();
909
904
  var themeContext = useContext(ThemeContext);
905
+ var environment = useDocument(themeContext);
910
906
  var _useState = useState(false),
911
907
  _useState2 = _slicedToArray(_useState, 2),
912
908
  isHovered = _useState2[0],
913
909
  setIsHovered = _useState2[1];
914
- var position = orientationToPosition[orientation];
915
910
  var isRow = orientationToDimension[orientation] === 'rows';
916
- var splitterOrientation = paneToSplitterOrientation[orientation];
911
+ var separatorRef = useRef(null);
912
+ var splitterOrientation = paneToSplitterOrientation[orientation || 'end'];
917
913
  var pixelsPerFr = paneProviderContext ? paneProviderContext.pixelsPerFr[orientationToDimension[orientation]] : 0;
918
914
  var value = isRow ? paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getRowValue(layoutKey, true) : paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getColumnValue(layoutKey, true);
919
915
  var valueInFr = isRow ? paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getRowValue(layoutKey) : paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.getColumnValue(layoutKey);
920
916
  var _useSplitter = useSplitter({
921
- type: SplitterType.VARIABLE,
922
917
  orientation: splitterOrientation,
923
- position: position,
918
+ isLeading: orientation === 'start' || orientation === 'top',
924
919
  min: min * pixelsPerFr,
925
920
  max: max * pixelsPerFr,
926
921
  rtl: themeContext.rtl,
927
- environment: window,
922
+ environment: environment,
928
923
  onChange: function onChange(valueNow) {
929
924
  if (isRow) {
930
925
  return paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.setRowValue(orientation === 'top', layoutKey, valueNow / pixelsPerFr);
931
926
  }
932
927
  return paneProviderContext === null || paneProviderContext === void 0 ? void 0 : paneProviderContext.setColumnValue(orientation === 'start', layoutKey, valueNow / pixelsPerFr);
933
928
  },
934
- valueNow: value
929
+ valueNow: value,
930
+ separatorRef: separatorRef
935
931
  }),
936
932
  getSeparatorProps = _useSplitter.getSeparatorProps,
937
933
  getPrimaryPaneProps = _useSplitter.getPrimaryPaneProps;
@@ -940,15 +936,17 @@ var SplitterComponent = forwardRef(function (_ref, ref) {
940
936
  paneContext.setId(getPrimaryPaneProps().id);
941
937
  }
942
938
  }, [paneContext, getPrimaryPaneProps]);
939
+ var ariaLabel = useText(SplitterComponent, props, 'aria-label', "".concat(splitterOrientation, " splitter"));
943
940
  var separatorProps = getSeparatorProps({
944
- 'aria-controls': paneContext.id
941
+ 'aria-controls': paneContext.id,
942
+ 'aria-label': ariaLabel
945
943
  });
946
- var size = isRow ? (_separatorProps$ref$c = separatorProps.ref.current) === null || _separatorProps$ref$c === void 0 ? void 0 : _separatorProps$ref$c.clientWidth : (_separatorProps$ref$c2 = separatorProps.ref.current) === null || _separatorProps$ref$c2 === void 0 ? void 0 : _separatorProps$ref$c2.clientHeight;
944
+ var size = isRow ? (_separatorRef$current = separatorRef.current) === null || _separatorRef$current === void 0 ? void 0 : _separatorRef$current.clientWidth : (_separatorRef$current2 = separatorRef.current) === null || _separatorRef$current2 === void 0 ? void 0 : _separatorRef$current2.clientHeight;
947
945
  var onMouseOver = useMemo(function () {
948
946
  return composeEventHandlers(props.onMouseOver, function (event) {
949
- return setIsHovered(event.target === separatorProps.ref.current);
947
+ return setIsHovered(event.target === separatorRef.current);
950
948
  });
951
- }, [props.onMouseOver, separatorProps.ref]);
949
+ }, [props.onMouseOver, separatorRef]);
952
950
  return React.createElement(PaneSplitterContext.Provider, {
953
951
  value: useMemo(function () {
954
952
  return {
@@ -966,7 +964,7 @@ var SplitterComponent = forwardRef(function (_ref, ref) {
966
964
  orientation: orientation
967
965
  }, separatorProps, props, {
968
966
  onMouseOver: onMouseOver,
969
- ref: mergeRefs([separatorProps.ref, ref])
967
+ ref: mergeRefs([separatorRef, ref])
970
968
  })));
971
969
  });
972
970
  SplitterComponent.displayName = 'Pane.Splitter';
@@ -8,7 +8,7 @@ import { DefaultTheme } from 'styled-components';
8
8
  import { Orientation } from '../../types';
9
9
  interface IStyledPaneSplitterProps {
10
10
  isHovered: boolean;
11
- orientation: Orientation;
11
+ orientation?: Orientation;
12
12
  }
13
13
  /**
14
14
  * 1. Elevated initial context to pickup full-width hover
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-grid",
3
- "version": "8.53.2",
3
+ "version": "8.54.1",
4
4
  "description": "Components relating to layout grids in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -21,10 +21,10 @@
21
21
  "sideEffects": false,
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
- "@zendeskgarden/container-splitter": "^0.2.3",
25
- "@zendeskgarden/container-utilities": "^0.7.1",
26
- "@zendeskgarden/react-buttons": "^8.53.2",
27
- "@zendeskgarden/react-tooltips": "^8.53.2",
24
+ "@zendeskgarden/container-splitter": "^2.0.0",
25
+ "@zendeskgarden/container-utilities": "^1.0.0",
26
+ "@zendeskgarden/react-buttons": "^8.54.1",
27
+ "@zendeskgarden/react-tooltips": "^8.54.1",
28
28
  "polished": "^4.0.0",
29
29
  "prop-types": "^15.5.7",
30
30
  "react-merge-refs": "^1.1.0"
@@ -36,7 +36,7 @@
36
36
  "styled-components": "^4.2.0 || ^5.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@zendeskgarden/react-theming": "^8.53.2",
39
+ "@zendeskgarden/react-theming": "^8.54.1",
40
40
  "use-resize-observer": "9.0.0"
41
41
  },
42
42
  "keywords": [
@@ -49,5 +49,5 @@
49
49
  "access": "public"
50
50
  },
51
51
  "zendeskgarden:src": "src/index.ts",
52
- "gitHead": "b4ef84eb8f6606659aee9e689b8b44cb1feb0b87"
52
+ "gitHead": "fdf531c082579941617f674871067bfde1e5abb6"
53
53
  }