@hyphen/hyphen-components 7.3.1 → 7.3.2

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.
@@ -3899,6 +3899,7 @@ var _excluded$3 = ["defaultOpen", "open", "storageKey", "onOpenChange", "classNa
3899
3899
  _excluded14 = ["className"],
3900
3900
  _excluded15 = ["className"];
3901
3901
  var SIDEBAR_WIDTH = '16rem';
3902
+ var SIDEBAR_RIGHT_WIDTH = '24rem';
3902
3903
  var SIDEBAR_WIDTH_ICON = '44px';
3903
3904
  var SIDEBAR_KEYBOARD_SHORTCUT_LEFT = '[';
3904
3905
  var SIDEBAR_KEYBOARD_SHORTCUT_RIGHT = ']';
@@ -4092,7 +4093,7 @@ var SidebarProvider = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
4092
4093
  '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
4093
4094
  minBlockSize: '100svh'
4094
4095
  }, style),
4095
- className: classNames('display-flex w-100 background-color-secondary', className),
4096
+ className: classNames('display-flex w-100 background-color-secondary overflow-hidden', className),
4096
4097
  ref: ref
4097
4098
  }, props), children)))));
4098
4099
  });
@@ -4110,6 +4111,7 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
4110
4111
  state = _useSidebar.state,
4111
4112
  openMobile = _useSidebar.openMobile,
4112
4113
  setOpenMobile = _useSidebar.setOpenMobile;
4114
+ var sidebarWidth = side === 'right' ? SIDEBAR_RIGHT_WIDTH : SIDEBAR_WIDTH;
4113
4115
  if (isMobile) {
4114
4116
  return React.createElement(SidebarSideContext.Provider, {
4115
4117
  value: side
@@ -4131,6 +4133,7 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
4131
4133
  }, React.createElement("div", _extends({
4132
4134
  className: classNames('group display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
4133
4135
  style: {
4136
+ '--sidebar-width': sidebarWidth,
4134
4137
  width: 'var(--sidebar-width)'
4135
4138
  },
4136
4139
  ref: ref
@@ -4148,9 +4151,9 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
4148
4151
  color: "base",
4149
4152
  fontSize: "sm",
4150
4153
  position: "relative",
4151
- style: side === 'right' && collapsible === 'offcanvas' ? {
4152
- overflowX: 'hidden'
4153
- } : undefined,
4154
+ style: {
4155
+ '--sidebar-width': sidebarWidth
4156
+ },
4154
4157
  "data-state": state,
4155
4158
  "data-collapsible": collapsible,
4156
4159
  "data-side": side,
@@ -4428,9 +4431,10 @@ var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref16, ref) {
4428
4431
  top: '20px',
4429
4432
  bottom: '20px',
4430
4433
  right: side === 'left' ? '-14px' : undefined,
4431
- left: side === 'right' ? '-14px' : undefined,
4434
+ left: side === 'right' ? '-18px' : undefined,
4432
4435
  width: '10px'
4433
- }
4436
+ },
4437
+ type: "button"
4434
4438
  }, props), React.createElement(Box, {
4435
4439
  radius: "xl",
4436
4440
  background: "primary",