@hyphen/hyphen-components 5.2.1 → 5.3.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.
@@ -22,9 +22,9 @@ import AsyncCreatableSelect from 'react-select/async-creatable';
22
22
  import AsyncSelect from 'react-select/async';
23
23
  import CreatableSelect from 'react-select/creatable';
24
24
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
25
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
25
26
  import { v4 } from 'uuid';
26
27
  import * as TogglePrimitive from '@radix-ui/react-toggle';
27
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
28
28
 
29
29
  function _extends() {
30
30
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
@@ -42,7 +42,7 @@ function _objectWithoutPropertiesLoose(r, e) {
42
42
  if (null == r) return {};
43
43
  var t = {};
44
44
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
45
- if (e.indexOf(n) >= 0) continue;
45
+ if (-1 !== e.indexOf(n)) continue;
46
46
  t[n] = r[n];
47
47
  }
48
48
  return t;
@@ -3975,9 +3975,29 @@ function useIsMobile() {
3975
3975
  return !!isMobile;
3976
3976
  }
3977
3977
 
3978
- var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q"};
3978
+ var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q","group-data-":"Sidebar-module_group-data-__GTJmR"};
3979
3979
 
3980
- var _excluded$4 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
3980
+ var styles$7 = {"TooltipContent":"Tooltip-module_TooltipContent__wLEZU","tooltip-slideUpAndFade":"Tooltip-module_tooltip-slideUpAndFade__Y05jp","tooltip-slideRightAndFade":"Tooltip-module_tooltip-slideRightAndFade__K04p9","tooltip-slideDownAndFade":"Tooltip-module_tooltip-slideDownAndFade__1wMd-","tooltip-slideLeftAndFade":"Tooltip-module_tooltip-slideLeftAndFade__iQ1fp"};
3981
+
3982
+ var _excluded$4 = ["className", "sideOffset"];
3983
+ var TooltipProvider = TooltipPrimitive.Provider;
3984
+ var Tooltip = TooltipPrimitive.Root;
3985
+ var TooltipTrigger = TooltipPrimitive.Trigger;
3986
+ var TooltipPortal = TooltipPrimitive.Portal;
3987
+ var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3988
+ var className = _ref.className,
3989
+ _ref$sideOffset = _ref.sideOffset,
3990
+ sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
3991
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3992
+ return React.createElement(TooltipPrimitive.Content, _extends({
3993
+ ref: ref,
3994
+ sideOffset: sideOffset,
3995
+ className: classNames(styles$7.TooltipContent, 'background-color-tooltip font-color-tooltip font-size-xs z-index-popover overflow-hidden br-sm p-h-sm p-v-xs shadow-sm', className)
3996
+ }, props));
3997
+ });
3998
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
3999
+
4000
+ var _excluded$3 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
3981
4001
  _excluded2 = ["side", "collapsible", "className", "children"],
3982
4002
  _excluded3 = ["className", "onClick"],
3983
4003
  _excluded4 = ["className"],
@@ -3986,18 +4006,18 @@ var _excluded$4 = ["defaultOpen", "open", "onOpenChange", "className", "style",
3986
4006
  _excluded7 = ["className"],
3987
4007
  _excluded8 = ["className"],
3988
4008
  _excluded9 = ["className"],
3989
- _excluded10 = ["asChild", "isActive", "icon", "className"],
4009
+ _excluded0 = ["asChild", "isActive", "icon", "tooltip", "className"],
4010
+ _excluded1 = ["className"],
4011
+ _excluded10 = ["className"],
3990
4012
  _excluded11 = ["className"],
3991
- _excluded12 = ["className"],
3992
- _excluded13 = ["className"],
3993
- _excluded14 = ["asChild", "isActive", "className"],
3994
- _excluded15 = ["className", "asChild"],
3995
- _excluded16 = ["className"],
3996
- _excluded17 = ["className"];
3997
- var SIDEBAR_COOKIE_NAME = 'sidebar:state';
4013
+ _excluded12 = ["asChild", "isActive", "className"],
4014
+ _excluded13 = ["className", "asChild"],
4015
+ _excluded14 = ["className"],
4016
+ _excluded15 = ["className"];
4017
+ var SIDEBAR_COOKIE_NAME = 'sidebar_expanded';
3998
4018
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
3999
4019
  var SIDEBAR_WIDTH = '16rem';
4000
- var SIDEBAR_WIDTH_ICON = '3rem';
4020
+ var SIDEBAR_WIDTH_ICON = '44px';
4001
4021
  var SIDEBAR_KEYBOARD_SHORTCUT = '[';
4002
4022
  var SidebarContext = /*#__PURE__*/React__default.createContext(null);
4003
4023
  function useSidebar() {
@@ -4015,7 +4035,7 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
4015
4035
  className = _ref.className,
4016
4036
  style = _ref.style,
4017
4037
  children = _ref.children,
4018
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
4038
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
4019
4039
  var isMobile = useIsMobile();
4020
4040
  var _useState = useState(function () {
4021
4041
  return isMobile ? false : openProp != null ? openProp : defaultOpen;
@@ -4083,6 +4103,8 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
4083
4103
  }, [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
4084
4104
  return React__default.createElement(SidebarContext.Provider, {
4085
4105
  value: contextValue
4106
+ }, React__default.createElement(TooltipProvider, {
4107
+ delayDuration: 0
4086
4108
  }, React__default.createElement("div", _extends({
4087
4109
  style: _extends({
4088
4110
  '--sidebar-width': SIDEBAR_WIDTH,
@@ -4091,7 +4113,7 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
4091
4113
  }, style),
4092
4114
  className: classNames('display-flex w-100 background-color-secondary', className),
4093
4115
  ref: ref
4094
- }, props), children));
4116
+ }, props), children)));
4095
4117
  });
4096
4118
  SidebarProvider.displayName = 'SidebarProvider';
4097
4119
  var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
@@ -4122,7 +4144,7 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
4122
4144
  }
4123
4145
  if (collapsible === 'none') {
4124
4146
  return React__default.createElement("div", _extends({
4125
- className: classNames('display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
4147
+ className: classNames('group display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
4126
4148
  style: {
4127
4149
  width: 'var(--sidebar-width)'
4128
4150
  },
@@ -4141,7 +4163,8 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
4141
4163
  position: "relative",
4142
4164
  "data-state": state,
4143
4165
  "data-collapsible": collapsible,
4144
- "data-side": side
4166
+ "data-side": side,
4167
+ className: "group"
4145
4168
  }, React__default.createElement("div", {
4146
4169
  style: {
4147
4170
  animationTimingFunction: 'var(--sidebar-transition-timing, linear)',
@@ -4149,14 +4172,14 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
4149
4172
  transitionDuration: 'var(--sidebar-transition-duration, 200ms)',
4150
4173
  animationDuration: 'var(--sidebar-transition-duration, 200ms)',
4151
4174
  transitionProperty: 'width',
4152
- width: state === 'collapsed' ? '0' : 'var(--sidebar-width)',
4175
+ width: state === 'collapsed' && collapsible === 'icon' ? 'var(--sidebar-width-icon)' : state === 'collapsed' ? '0' : 'var(--sidebar-width)',
4153
4176
  height: '100svh'
4154
4177
  },
4155
4178
  className: classNames('position-relative', className)
4156
4179
  }), React__default.createElement("div", _extends({
4157
4180
  className: classNames('position-absolute display-none display-flex-desktop ', className),
4158
4181
  style: {
4159
- left: state === 'expanded' ? '0' : 'calc(var(--sidebar-width)*-1)',
4182
+ left: state === 'expanded' || collapsible === 'icon' ? '0' : 'calc(var(--sidebar-width)*-1)',
4160
4183
  top: '0',
4161
4184
  bottom: '0',
4162
4185
  zIndex: 'var(--size-z-index-drawer)',
@@ -4165,7 +4188,7 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
4165
4188
  transitionDuration: 'var(--sidebar-transition-duration, 200ms)',
4166
4189
  animationDuration: 'var(--sidebar-transition-duration, 200ms)',
4167
4190
  transitionProperty: 'left, right, width',
4168
- width: 'var(--sidebar-width)',
4191
+ width: state === 'collapsed' && collapsible === 'icon' ? 'var(--sidebar-width-icon)' : 'var(--sidebar-width)',
4169
4192
  height: '100svh'
4170
4193
  }
4171
4194
  }, props), React__default.createElement("div", {
@@ -4210,7 +4233,7 @@ var SidebarHeader = /*#__PURE__*/React__default.forwardRef(function (_ref5, ref)
4210
4233
  return React__default.createElement("div", _extends({
4211
4234
  ref: ref,
4212
4235
  "data-sidebar": "header",
4213
- className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop', className)
4236
+ className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop overflow-hidden', className)
4214
4237
  }, props));
4215
4238
  });
4216
4239
  SidebarHeader.displayName = 'SidebarHeader';
@@ -4220,7 +4243,7 @@ var SidebarFooter = /*#__PURE__*/React__default.forwardRef(function (_ref6, ref)
4220
4243
  return React__default.createElement("div", _extends({
4221
4244
  ref: ref,
4222
4245
  "data-sidebar": "footer",
4223
- className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop', className)
4246
+ className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop overflow-hidden', className)
4224
4247
  }, props));
4225
4248
  });
4226
4249
  SidebarFooter.displayName = 'SidebarFooter';
@@ -4230,7 +4253,11 @@ var SidebarContent = /*#__PURE__*/React__default.forwardRef(function (_ref7, ref
4230
4253
  return React__default.createElement("div", _extends({
4231
4254
  ref: ref,
4232
4255
  "data-sidebar": "content",
4233
- className: classNames('display-flex flex-direction-column g-xl minh-0 flex-auto overflow-auto', className)
4256
+ className: classNames('display-flex flex-direction-column g-xl minh-0 flex-auto', className),
4257
+ style: {
4258
+ overflowX: 'hidden',
4259
+ overflowY: 'auto'
4260
+ }
4234
4261
  }, props));
4235
4262
  });
4236
4263
  SidebarContent.displayName = 'SidebarContent';
@@ -4253,18 +4280,25 @@ var SidebarMenuItem = /*#__PURE__*/React__default.forwardRef(function (_ref9, re
4253
4280
  return React__default.createElement("li", _extends({
4254
4281
  ref: ref,
4255
4282
  "data-sidebar": "menu-item",
4256
- className: classNames('font-size-sm position-relative', className)
4283
+ className: classNames('font-size-sm position-relative', className),
4284
+ style: {
4285
+ whiteSpace: 'nowrap'
4286
+ }
4257
4287
  }, props));
4258
4288
  });
4259
4289
  SidebarMenuItem.displayName = 'SidebarMenuItem';
4260
- var SidebarMenuButton = /*#__PURE__*/React__default.forwardRef(function (_ref10, ref) {
4261
- var _ref10$asChild = _ref10.asChild,
4262
- asChild = _ref10$asChild === void 0 ? false : _ref10$asChild,
4263
- _ref10$isActive = _ref10.isActive,
4264
- isActive = _ref10$isActive === void 0 ? false : _ref10$isActive,
4265
- className = _ref10.className,
4266
- props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
4290
+ var SidebarMenuButton = /*#__PURE__*/React__default.forwardRef(function (_ref0, ref) {
4291
+ var _ref0$asChild = _ref0.asChild,
4292
+ asChild = _ref0$asChild === void 0 ? false : _ref0$asChild,
4293
+ _ref0$isActive = _ref0.isActive,
4294
+ isActive = _ref0$isActive === void 0 ? false : _ref0$isActive,
4295
+ tooltip = _ref0.tooltip,
4296
+ className = _ref0.className,
4297
+ props = _objectWithoutPropertiesLoose(_ref0, _excluded0);
4267
4298
  var Comp = asChild ? Slot : 'button';
4299
+ var _useSidebar3 = useSidebar(),
4300
+ isMobile = _useSidebar3.isMobile,
4301
+ state = _useSidebar3.state;
4268
4302
  var button = React__default.createElement(Comp, _extends({
4269
4303
  ref: ref,
4270
4304
  "data-sidebar": "menu-button",
@@ -4274,32 +4308,46 @@ var SidebarMenuButton = /*#__PURE__*/React__default.forwardRef(function (_ref10,
4274
4308
  'background-color-transparent': !isActive
4275
4309
  }, className)
4276
4310
  }, props), props.children);
4277
- return button;
4311
+ if (!tooltip) {
4312
+ return button;
4313
+ }
4314
+ if (typeof tooltip === 'string') {
4315
+ tooltip = {
4316
+ children: tooltip
4317
+ };
4318
+ }
4319
+ return React__default.createElement(Tooltip, null, React__default.createElement(TooltipTrigger, {
4320
+ asChild: true
4321
+ }, button), React__default.createElement(TooltipContent, _extends({
4322
+ side: "right",
4323
+ align: "center",
4324
+ hidden: state !== 'collapsed' || isMobile
4325
+ }, tooltip)));
4278
4326
  });
4279
4327
  SidebarMenuButton.displayName = 'SidebarMenuButton';
4280
- var SidebarGroup = /*#__PURE__*/React__default.forwardRef(function (_ref11, ref) {
4281
- var className = _ref11.className,
4282
- props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
4328
+ var SidebarGroup = /*#__PURE__*/React__default.forwardRef(function (_ref1, ref) {
4329
+ var className = _ref1.className,
4330
+ props = _objectWithoutPropertiesLoose(_ref1, _excluded1);
4283
4331
  return React__default.createElement("div", _extends({
4284
4332
  ref: ref,
4285
4333
  "data-sidebar": "group",
4286
- className: classNames('position-relative p-h-md p-right-0-desktop display-flex w-100 minw-0 flex-direction-column', className)
4334
+ className: classNames('position-relative p-h-md p-right-0-desktop display-flex w-100 minw-0 flex-direction-column ', className)
4287
4335
  }, props));
4288
4336
  });
4289
4337
  SidebarGroup.displayName = 'SidebarGroup';
4290
- var SidebarGroupLabel = /*#__PURE__*/React__default.forwardRef(function (_ref12, ref) {
4291
- var className = _ref12.className,
4292
- props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
4338
+ var SidebarGroupLabel = /*#__PURE__*/React__default.forwardRef(function (_ref10, ref) {
4339
+ var className = _ref10.className,
4340
+ props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
4293
4341
  return React__default.createElement("div", _extends({
4294
4342
  ref: ref,
4295
4343
  "data-sidebar": "group-label",
4296
- className: classNames('display-flex h-3xl align-items-center br-sm p-h-sm font-color-secondary font-size-xs font-weight-medium outline-none', className)
4344
+ className: classNames('group-data-collapsible-icon-hidden display-flex h-3xl align-items-center br-sm p-h-sm font-color-secondary font-size-xs font-weight-medium outline-none', className)
4297
4345
  }, props));
4298
4346
  });
4299
4347
  SidebarGroupLabel.displayName = 'SidebarGroupLabel';
4300
- var SidebarMenuSub = /*#__PURE__*/React__default.forwardRef(function (_ref13, ref) {
4301
- var className = _ref13.className,
4302
- props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
4348
+ var SidebarMenuSub = /*#__PURE__*/React__default.forwardRef(function (_ref11, ref) {
4349
+ var className = _ref11.className,
4350
+ props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
4303
4351
  return React__default.createElement("ul", _extends({
4304
4352
  ref: ref,
4305
4353
  "data-sidebar": "menu-sub",
@@ -4310,19 +4358,19 @@ var SidebarMenuSub = /*#__PURE__*/React__default.forwardRef(function (_ref13, re
4310
4358
  }, props));
4311
4359
  });
4312
4360
  SidebarMenuSub.displayName = 'SidebarMenuSub';
4313
- var SidebarMenuSubItem = /*#__PURE__*/React__default.forwardRef(function (_ref14, ref) {
4314
- var props = _extends({}, (_objectDestructuringEmpty(_ref14), _ref14));
4361
+ var SidebarMenuSubItem = /*#__PURE__*/React__default.forwardRef(function (_ref12, ref) {
4362
+ var props = _extends({}, (_objectDestructuringEmpty(_ref12), _ref12));
4315
4363
  return React__default.createElement("li", _extends({
4316
4364
  ref: ref
4317
4365
  }, props));
4318
4366
  });
4319
4367
  SidebarMenuSubItem.displayName = 'SidebarMenuSubItem';
4320
- var SidebarMenuSubButton = /*#__PURE__*/React__default.forwardRef(function (_ref15, ref) {
4321
- var _ref15$asChild = _ref15.asChild,
4322
- asChild = _ref15$asChild === void 0 ? false : _ref15$asChild,
4323
- isActive = _ref15.isActive,
4324
- className = _ref15.className,
4325
- props = _objectWithoutPropertiesLoose(_ref15, _excluded14);
4368
+ var SidebarMenuSubButton = /*#__PURE__*/React__default.forwardRef(function (_ref13, ref) {
4369
+ var _ref13$asChild = _ref13.asChild,
4370
+ asChild = _ref13$asChild === void 0 ? false : _ref13$asChild,
4371
+ isActive = _ref13.isActive,
4372
+ className = _ref13.className,
4373
+ props = _objectWithoutPropertiesLoose(_ref13, _excluded12);
4326
4374
  var Comp = asChild ? Slot : 'a';
4327
4375
  return React__default.createElement(Comp, _extends({
4328
4376
  ref: ref,
@@ -4335,11 +4383,11 @@ var SidebarMenuSubButton = /*#__PURE__*/React__default.forwardRef(function (_ref
4335
4383
  }, props));
4336
4384
  });
4337
4385
  SidebarMenuSubButton.displayName = 'SidebarMenuSubButton';
4338
- var SidebarMenuAction = /*#__PURE__*/React__default.forwardRef(function (_ref16, ref) {
4339
- var className = _ref16.className,
4340
- _ref16$asChild = _ref16.asChild,
4341
- asChild = _ref16$asChild === void 0 ? false : _ref16$asChild,
4342
- props = _objectWithoutPropertiesLoose(_ref16, _excluded15);
4386
+ var SidebarMenuAction = /*#__PURE__*/React__default.forwardRef(function (_ref14, ref) {
4387
+ var className = _ref14.className,
4388
+ _ref14$asChild = _ref14.asChild,
4389
+ asChild = _ref14$asChild === void 0 ? false : _ref14$asChild,
4390
+ props = _objectWithoutPropertiesLoose(_ref14, _excluded13);
4343
4391
  var Comp = asChild ? Slot : 'button';
4344
4392
  return React__default.createElement(Comp, _extends({
4345
4393
  ref: ref,
@@ -4352,12 +4400,12 @@ var SidebarMenuAction = /*#__PURE__*/React__default.forwardRef(function (_ref16,
4352
4400
  }, props));
4353
4401
  });
4354
4402
  SidebarMenuAction.displayName = 'SidebarMenuAction';
4355
- var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref17, ref) {
4356
- var className = _ref17.className,
4357
- props = _objectWithoutPropertiesLoose(_ref17, _excluded16);
4358
- var _useSidebar3 = useSidebar(),
4359
- open = _useSidebar3.open,
4360
- toggleSidebar = _useSidebar3.toggleSidebar;
4403
+ var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref15, ref) {
4404
+ var className = _ref15.className,
4405
+ props = _objectWithoutPropertiesLoose(_ref15, _excluded14);
4406
+ var _useSidebar4 = useSidebar(),
4407
+ open = _useSidebar4.open,
4408
+ toggleSidebar = _useSidebar4.toggleSidebar;
4361
4409
  var caretIcon = open ? 'caret-sm-left' : 'caret-sm-right';
4362
4410
  return React__default.createElement("button", _extends({
4363
4411
  ref: ref,
@@ -4397,13 +4445,13 @@ var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref17, ref)
4397
4445
  })));
4398
4446
  });
4399
4447
  SidebarRail.displayName = 'SidebarRail';
4400
- var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (_ref18, ref) {
4401
- var className = _ref18.className,
4402
- props = _objectWithoutPropertiesLoose(_ref18, _excluded17);
4448
+ var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (_ref16, ref) {
4449
+ var className = _ref16.className,
4450
+ props = _objectWithoutPropertiesLoose(_ref16, _excluded15);
4403
4451
  return React__default.createElement("div", _extends({
4404
4452
  ref: ref,
4405
4453
  "data-sidebar": "menu-badge",
4406
- className: classNames('position-absolute font-size-xs cursor-default lh-none p-xs font-color-base minw-0 align-items-center bw-0 br-sm outline-none background-color-transparent', className),
4454
+ className: classNames('group-data-collapsible-icon-hidden position-absolute font-size-xs cursor-default lh-none p-xs font-color-base minw-0 align-items-center bw-0 br-sm outline-none background-color-transparent', className),
4407
4455
  style: {
4408
4456
  top: 'var(--size-spacing-sm)',
4409
4457
  right: 'var(--size-spacing-xs)'
@@ -4412,13 +4460,13 @@ var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (_ref18,
4412
4460
  });
4413
4461
  SidebarMenuBadge.displayName = 'SidebarMenuBadge';
4414
4462
 
4415
- var styles$7 = {"container":"Table-module_container__BsXT7","loading-mask":"Table-module_loading-mask__qoRPG","scroll-container":"Table-module_scroll-container__5WV5T","table":"Table-module_table__-ZPCW","auto":"Table-module_auto__1R8wm","fixed":"Table-module_fixed__T-EXg","borderless":"Table-module_borderless__BbsqE","scrollable":"Table-module_scrollable__Apjbs","scrollable-x":"Table-module_scrollable-x__mguJX","scrollable-y":"Table-module_scrollable-y__292qB","table-bordered":"Table-module_table-bordered__wM9u-","full-height":"Table-module_full-height__MlrSg"};
4463
+ var styles$6 = {"container":"Table-module_container__BsXT7","loading-mask":"Table-module_loading-mask__qoRPG","scroll-container":"Table-module_scroll-container__5WV5T","table":"Table-module_table__-ZPCW","auto":"Table-module_auto__1R8wm","fixed":"Table-module_fixed__T-EXg","borderless":"Table-module_borderless__BbsqE","scrollable":"Table-module_scrollable__Apjbs","scrollable-x":"Table-module_scrollable-x__mguJX","scrollable-y":"Table-module_scrollable-y__292qB","table-bordered":"Table-module_table-bordered__wM9u-","full-height":"Table-module_full-height__MlrSg"};
4416
4464
 
4417
- var styles$6 = {"table-body":"TableBody-module_table-body__Y5WbD","striped":"TableBody-module_striped__5MlEr","hover":"TableBody-module_hover__2CRgY"};
4465
+ var styles$5 = {"table-body":"TableBody-module_table-body__Y5WbD","striped":"TableBody-module_striped__5MlEr","hover":"TableBody-module_hover__2CRgY"};
4418
4466
 
4419
- var styles$5 = {"table-row":"TableRow-module_table-row__-Y9FQ","hoverable":"TableRow-module_hoverable__53-l9"};
4467
+ var styles$4 = {"table-row":"TableRow-module_table-row__-Y9FQ","hoverable":"TableRow-module_hoverable__53-l9"};
4420
4468
 
4421
- var styles$4 = {"table-cell":"TableBodyCell-module_table-cell__pKl29","borderless":"TableBodyCell-module_borderless__qwKQA","compact":"TableBodyCell-module_compact__zfdBf","truncated":"TableBodyCell-module_truncated__4YtPF","sticky-column-left":"TableBodyCell-module_sticky-column-left__tKIGW","sticky-column-right":"TableBodyCell-module_sticky-column-right__680hS","sticky-column":"TableBodyCell-module_sticky-column__QpEbV","align-right":"TableBodyCell-module_align-right__j-VqN","align-center":"TableBodyCell-module_align-center__saqzC"};
4469
+ var styles$3 = {"table-cell":"TableBodyCell-module_table-cell__pKl29","borderless":"TableBodyCell-module_borderless__qwKQA","compact":"TableBodyCell-module_compact__zfdBf","truncated":"TableBodyCell-module_truncated__4YtPF","sticky-column-left":"TableBodyCell-module_sticky-column-left__tKIGW","sticky-column-right":"TableBodyCell-module_sticky-column-right__680hS","sticky-column":"TableBodyCell-module_sticky-column__QpEbV","align-right":"TableBodyCell-module_align-right__j-VqN","align-center":"TableBodyCell-module_align-center__saqzC"};
4422
4470
 
4423
4471
  var TableBodyCell = function TableBodyCell(_ref) {
4424
4472
  var _classNames;
@@ -4441,7 +4489,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
4441
4489
  _ref$width = _ref.width,
4442
4490
  width = _ref$width === void 0 ? undefined : _ref$width;
4443
4491
  var columnIsSticky = sticky === 'left' || sticky === 'right';
4444
- var tableCellClasses = classNames(styles$4['table-cell'], (_classNames = {}, _classNames[styles$4.truncated] = truncateOverflow, _classNames[styles$4.compact] = isCompact, _classNames[styles$4.borderless] = isBorderless, _classNames[styles$4['sticky-column']] = columnIsSticky, _classNames[styles$4['sticky-column-left']] = sticky === 'left', _classNames[styles$4['sticky-column-right']] = sticky === 'right', _classNames[styles$4['align-right']] = align === 'right', _classNames[styles$4['align-center']] = align === 'center', _classNames), className);
4492
+ var tableCellClasses = classNames(styles$3['table-cell'], (_classNames = {}, _classNames[styles$3.truncated] = truncateOverflow, _classNames[styles$3.compact] = isCompact, _classNames[styles$3.borderless] = isBorderless, _classNames[styles$3['sticky-column']] = columnIsSticky, _classNames[styles$3['sticky-column-left']] = sticky === 'left', _classNames[styles$3['sticky-column-right']] = sticky === 'right', _classNames[styles$3['align-right']] = align === 'right', _classNames[styles$3['align-center']] = align === 'center', _classNames), className);
4445
4493
  return React__default.createElement(Box, {
4446
4494
  as: columnIsSticky ? 'th' : 'td',
4447
4495
  className: tableCellClasses,
@@ -4455,7 +4503,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
4455
4503
  }, children === null || typeof children === 'undefined' || children === '' ? emptyCellPlaceholder : children);
4456
4504
  };
4457
4505
 
4458
- var styles$3 = {"table-header-cell":"TableHeaderCell-module_table-header-cell__aufSm","sortable":"TableHeaderCell-module_sortable__qjrkY","borderless":"TableHeaderCell-module_borderless__uos2k","truncated":"TableHeaderCell-module_truncated__wmNfw","compact":"TableHeaderCell-module_compact__ujtrZ","sticky-header":"TableHeaderCell-module_sticky-header__PEP9t","sticky-column-left":"TableHeaderCell-module_sticky-column-left__t8qIz","sticky-column-right":"TableHeaderCell-module_sticky-column-right__6D8-X","sticky-column":"TableHeaderCell-module_sticky-column__g9ybV","align-right":"TableHeaderCell-module_align-right__Qw0YQ","align-center":"TableHeaderCell-module_align-center__1RmCS","heading":"TableHeaderCell-module_heading__fEcYT","sort-icon":"TableHeaderCell-module_sort-icon__SHgic"};
4506
+ var styles$2 = {"table-header-cell":"TableHeaderCell-module_table-header-cell__aufSm","sortable":"TableHeaderCell-module_sortable__qjrkY","borderless":"TableHeaderCell-module_borderless__uos2k","truncated":"TableHeaderCell-module_truncated__wmNfw","compact":"TableHeaderCell-module_compact__ujtrZ","sticky-header":"TableHeaderCell-module_sticky-header__PEP9t","sticky-column-left":"TableHeaderCell-module_sticky-column-left__t8qIz","sticky-column-right":"TableHeaderCell-module_sticky-column-right__6D8-X","sticky-column":"TableHeaderCell-module_sticky-column__g9ybV","align-right":"TableHeaderCell-module_align-right__Qw0YQ","align-center":"TableHeaderCell-module_align-center__1RmCS","heading":"TableHeaderCell-module_heading__fEcYT","sort-icon":"TableHeaderCell-module_sort-icon__SHgic"};
4459
4507
 
4460
4508
  // eslint-disable-line import/prefer-default-export
4461
4509
  var TableHeaderCell = function TableHeaderCell(_ref) {
@@ -4514,7 +4562,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
4514
4562
  });
4515
4563
  };
4516
4564
  return React__default.createElement("span", {
4517
- className: styles$3['sort-icon']
4565
+ className: styles$2['sort-icon']
4518
4566
  }, renderArrows());
4519
4567
  };
4520
4568
  var handleKeyPress = function handleKeyPress(event) {
@@ -4535,7 +4583,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
4535
4583
  });
4536
4584
  onSort(eventWithKey);
4537
4585
  };
4538
- var tableHeaderClasses = classNames(styles$3['table-header-cell'], (_classNames = {}, _classNames[styles$3.sortable] = isSortable, _classNames[styles$3.compact] = isCompact, _classNames[styles$3.truncated] = truncateOverflow, _classNames[styles$3.borderless] = isBorderless, _classNames[styles$3['sticky-header']] = hasStickyHeader, _classNames[styles$3['sticky-column']] = sticky === 'left' || sticky === 'right', _classNames[styles$3['sticky-column-left']] = sticky === 'left', _classNames[styles$3['sticky-column-right']] = sticky === 'right', _classNames[styles$3['align-right']] = align === 'right', _classNames[styles$3['align-center']] = align === 'center', _classNames), className);
4586
+ var tableHeaderClasses = classNames(styles$2['table-header-cell'], (_classNames = {}, _classNames[styles$2.sortable] = isSortable, _classNames[styles$2.compact] = isCompact, _classNames[styles$2.truncated] = truncateOverflow, _classNames[styles$2.borderless] = isBorderless, _classNames[styles$2['sticky-header']] = hasStickyHeader, _classNames[styles$2['sticky-column']] = sticky === 'left' || sticky === 'right', _classNames[styles$2['sticky-column-left']] = sticky === 'left', _classNames[styles$2['sticky-column-right']] = sticky === 'right', _classNames[styles$2['align-right']] = align === 'right', _classNames[styles$2['align-center']] = align === 'center', _classNames), className);
4539
4587
  return React__default.createElement(Box, {
4540
4588
  as: "th",
4541
4589
  display: "table-cell",
@@ -4547,7 +4595,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
4547
4595
  onKeyDown: handleKeyPress,
4548
4596
  scope: "col"
4549
4597
  }, React__default.createElement("div", {
4550
- className: styles$3.heading
4598
+ className: styles$2.heading
4551
4599
  }, column.heading, isSortable && renderIcon()));
4552
4600
  };
4553
4601
 
@@ -4580,7 +4628,7 @@ var TableRow = function TableRow(_ref) {
4580
4628
  rowIndex = _ref$rowIndex === void 0 ? undefined : _ref$rowIndex,
4581
4629
  _ref$truncateOverflow = _ref.truncateOverflow,
4582
4630
  truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
4583
- var tableRowClasses = classNames(styles$5['table-row'], (_classNames = {}, _classNames[styles$5.hoverable] = isHoverable, _classNames), className);
4631
+ var tableRowClasses = classNames(styles$4['table-row'], (_classNames = {}, _classNames[styles$4.hoverable] = isHoverable, _classNames), className);
4584
4632
  var renderCellContent = function renderCellContent(column) {
4585
4633
  if (column.render) {
4586
4634
  var cellValue = column.dataKey && row ? row[column.dataKey] : undefined;
@@ -4649,7 +4697,7 @@ var TableBody = function TableBody(_ref) {
4649
4697
  isStriped = _ref$isStriped === void 0 ? false : _ref$isStriped,
4650
4698
  _ref$truncateOverflow = _ref.truncateOverflow,
4651
4699
  truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
4652
- var tableBodyClasses = classNames(styles$6['table-body'], (_classNames = {}, _classNames[styles$6.striped] = isStriped, _classNames[styles$6.hover] = hoverableRows, _classNames), className);
4700
+ var tableBodyClasses = classNames(styles$5['table-body'], (_classNames = {}, _classNames[styles$5.striped] = isStriped, _classNames[styles$5.hover] = hoverableRows, _classNames), className);
4653
4701
  return React__default.createElement("tbody", {
4654
4702
  className: tableBodyClasses
4655
4703
  }, rows.map(function (row, rowIndex) {
@@ -4734,13 +4782,13 @@ var Table = function Table(_ref) {
4734
4782
  useFixedTableLayout = _ref$useFixedTableLay === void 0 ? false : _ref$useFixedTableLay,
4735
4783
  _ref$truncateOverflow = _ref.truncateOverflow,
4736
4784
  truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
4737
- var containerClasses = classNames(styles$7.container, (_classNames = {}, _classNames[styles$7['full-height']] = !!(isScrollable != null && isScrollable.y), _classNames));
4738
- var scrollContainerClasses = classNames(styles$7['scroll-container'], (_classNames2 = {}, _classNames2[styles$7.scrollable] = !!(isScrollable != null && isScrollable.x) || !!(isScrollable != null && isScrollable.y), _classNames2[styles$7['scrollable-x']] = !!(isScrollable != null && isScrollable.x), _classNames2[styles$7['scrollable-y']] = !!(isScrollable != null && isScrollable.y), _classNames2), className);
4739
- var tableClasses = classNames(styles$7.table, (_classNames3 = {}, _classNames3[styles$7.fixed] = useFixedTableLayout, _classNames3[styles$7.striped] = isStriped, _classNames3[styles$7.borderless] = isBorderless, _classNames3[styles$7.compact] = isCompact, _classNames3));
4785
+ var containerClasses = classNames(styles$6.container, (_classNames = {}, _classNames[styles$6['full-height']] = !!(isScrollable != null && isScrollable.y), _classNames));
4786
+ var scrollContainerClasses = classNames(styles$6['scroll-container'], (_classNames2 = {}, _classNames2[styles$6.scrollable] = !!(isScrollable != null && isScrollable.x) || !!(isScrollable != null && isScrollable.y), _classNames2[styles$6['scrollable-x']] = !!(isScrollable != null && isScrollable.x), _classNames2[styles$6['scrollable-y']] = !!(isScrollable != null && isScrollable.y), _classNames2), className);
4787
+ var tableClasses = classNames(styles$6.table, (_classNames3 = {}, _classNames3[styles$6.fixed] = useFixedTableLayout, _classNames3[styles$6.striped] = isStriped, _classNames3[styles$6.borderless] = isBorderless, _classNames3[styles$6.compact] = isCompact, _classNames3));
4740
4788
  return React__default.createElement("div", {
4741
4789
  className: containerClasses
4742
4790
  }, isLoading && React__default.createElement("div", {
4743
- className: styles$7['loading-mask']
4791
+ className: styles$6['loading-mask']
4744
4792
  }, React__default.createElement(Spinner, {
4745
4793
  size: "xl"
4746
4794
  })), React__default.createElement("div", {
@@ -4771,7 +4819,7 @@ var Table = function Table(_ref) {
4771
4819
  }))));
4772
4820
  };
4773
4821
 
4774
- var _excluded$3 = ["children", "defaultTheme", "storageKey"];
4822
+ var _excluded$2 = ["children", "defaultTheme", "storageKey"];
4775
4823
  var initialState = {
4776
4824
  theme: 'system',
4777
4825
  setTheme: function setTheme() {
@@ -4785,7 +4833,7 @@ function ThemeProvider(_ref) {
4785
4833
  defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
4786
4834
  _ref$storageKey = _ref.storageKey,
4787
4835
  storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
4788
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
4836
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
4789
4837
  var _useState = useState(function () {
4790
4838
  return localStorage.getItem(storageKey) || defaultTheme;
4791
4839
  }),
@@ -4815,13 +4863,13 @@ function ThemeProvider(_ref) {
4815
4863
  }), children);
4816
4864
  }
4817
4865
 
4818
- var styles$2 = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4866
+ var styles$1 = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4819
4867
 
4820
4868
  var getAnimationClass = function getAnimationClass(position, visible) {
4821
4869
  var verticalPosition = position.includes('top') ? 'top' : 'bottom';
4822
4870
  var horizontalPosition = position.includes('left') ? 'left' : 'right';
4823
4871
  var isCentered = position.includes('center');
4824
- var _ref = prefersReducedMotion() ? [styles$2['toast-notification-fade-in'], styles$2['toast-notification-fade-out']] : [styles$2["toast-notification-enter-" + verticalPosition], styles$2["toast-notification-exit-" + (isCentered ? verticalPosition : horizontalPosition)]],
4872
+ var _ref = prefersReducedMotion() ? [styles$1['toast-notification-fade-in'], styles$1['toast-notification-fade-out']] : [styles$1["toast-notification-enter-" + verticalPosition], styles$1["toast-notification-exit-" + (isCentered ? verticalPosition : horizontalPosition)]],
4825
4873
  enter = _ref[0],
4826
4874
  exit = _ref[1];
4827
4875
  return visible ? enter : exit;
@@ -4855,7 +4903,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
4855
4903
  return React__default.createElement(Box, {
4856
4904
  as: "button",
4857
4905
  borderWidth: "0",
4858
- className: styles$2['toast-dismiss'],
4906
+ className: styles$1['toast-dismiss'],
4859
4907
  padding: "0 0 0 sm",
4860
4908
  alignItems: "center",
4861
4909
  justifyContent: "center",
@@ -4886,9 +4934,9 @@ var ToastNotification = /*#__PURE__*/React__default.memo(function (_ref2) {
4886
4934
  }
4887
4935
  }, toast.ariaProps), resolveValue(toast.message, toast));
4888
4936
  var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
4889
- var classes = classNames(toast.className, styles$2['toast-notification'], animationClass, (_classNames = {
4937
+ var classes = classNames(toast.className, styles$1['toast-notification'], animationClass, (_classNames = {
4890
4938
  'toast-notification--not-visible': !toast.visible
4891
- }, _classNames[styles$2['toast-error']] = toast.type === 'error', _classNames));
4939
+ }, _classNames[styles$1['toast-error']] = toast.type === 'error', _classNames));
4892
4940
  return React__default.createElement(Box, {
4893
4941
  alignItems: "center",
4894
4942
  maxWidth: "300px",
@@ -5261,7 +5309,7 @@ var useToasts = function useToasts(toastOptions) {
5261
5309
  };
5262
5310
  };
5263
5311
 
5264
- var _excluded$2 = ["children", "containerStyle", "containerClassName", "gutter", "position", "reverseOrder", "toastOptions"];
5312
+ var _excluded$1 = ["children", "containerStyle", "containerClassName", "gutter", "position", "reverseOrder", "toastOptions"];
5265
5313
  var createRectRef = function createRectRef(onRect) {
5266
5314
  return function (el) {
5267
5315
  if (el) {
@@ -5322,7 +5370,7 @@ var ToastContainer = function ToastContainer(_ref) {
5322
5370
  _ref$reverseOrder = _ref.reverseOrder,
5323
5371
  reverseOrder = _ref$reverseOrder === void 0 ? false : _ref$reverseOrder,
5324
5372
  toastOptions = _ref.toastOptions,
5325
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
5373
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
5326
5374
  var _useToasts = useToasts(toastOptions),
5327
5375
  toasts = _useToasts.toasts,
5328
5376
  handlers = _useToasts.handlers;
@@ -5360,41 +5408,21 @@ var ToastContainer = function ToastContainer(_ref) {
5360
5408
  }));
5361
5409
  };
5362
5410
 
5363
- var styles$1 = {"item":"Toggle-module_item__NQ7iu","outline":"Toggle-module_outline__tR6T1"};
5411
+ var styles = {"item":"Toggle-module_item__NQ7iu","outline":"Toggle-module_outline__tR6T1"};
5364
5412
 
5365
- var _excluded$1 = ["className", "variant", "children"];
5413
+ var _excluded = ["className", "variant", "children"];
5366
5414
  var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
5367
5415
  var className = _ref.className,
5368
5416
  _ref$variant = _ref.variant,
5369
5417
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
5370
5418
  children = _ref.children,
5371
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
5419
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
5372
5420
  return React__default.createElement(TogglePrimitive.Root, _extends({
5373
5421
  ref: ref,
5374
- className: classNames('br-sm display-flex g-sm p-sm', styles$1.item, variant === 'outline' && styles$1.outline, className)
5422
+ className: classNames('br-sm display-flex g-sm p-sm', styles.item, variant === 'outline' && styles.outline, className)
5375
5423
  }, props), children);
5376
5424
  });
5377
5425
 
5378
- var styles = {"TooltipContent":"Tooltip-module_TooltipContent__wLEZU","tooltip-slideUpAndFade":"Tooltip-module_tooltip-slideUpAndFade__Y05jp","tooltip-slideRightAndFade":"Tooltip-module_tooltip-slideRightAndFade__K04p9","tooltip-slideDownAndFade":"Tooltip-module_tooltip-slideDownAndFade__1wMd-","tooltip-slideLeftAndFade":"Tooltip-module_tooltip-slideLeftAndFade__iQ1fp"};
5379
-
5380
- var _excluded = ["className", "sideOffset"];
5381
- var TooltipProvider = TooltipPrimitive.Provider;
5382
- var Tooltip = TooltipPrimitive.Root;
5383
- var TooltipTrigger = TooltipPrimitive.Trigger;
5384
- var TooltipPortal = TooltipPrimitive.Portal;
5385
- var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5386
- var className = _ref.className,
5387
- _ref$sideOffset = _ref.sideOffset,
5388
- sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
5389
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
5390
- return React.createElement(TooltipPrimitive.Content, _extends({
5391
- ref: ref,
5392
- sideOffset: sideOffset,
5393
- className: classNames(styles.TooltipContent, 'background-color-tooltip font-color-tooltip font-size-xs z-index-popover overflow-hidden br-sm p-h-sm p-v-xs shadow-sm', className)
5394
- }, props));
5395
- });
5396
- TooltipContent.displayName = TooltipPrimitive.Content.displayName;
5397
-
5398
5426
  var useWindowSize = function useWindowSize() {
5399
5427
  var _React$useContext = React__default.useContext(ResponsiveContext),
5400
5428
  innerWidth = _React$useContext.innerWidth,