@economic/taco 2.50.0-alpha.0 → 2.50.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/esm/packages/taco/src/components/Card/Card.js +2 -2
  2. package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
  3. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js +3 -2
  4. package/dist/esm/packages/taco/src/components/Checkbox/Checkbox.js.map +1 -1
  5. package/dist/esm/packages/taco/src/components/Table3/Table3.js +8 -1
  6. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  7. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +7 -15
  8. package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
  9. package/dist/esm/packages/taco/src/components/Table3/useTable3.js +1 -1
  10. package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
  11. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +5 -8
  12. package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
  13. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js +2 -1
  14. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Actions.js.map +1 -1
  15. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js +2 -2
  16. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/Header.js.map +1 -1
  17. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js +1 -1
  18. package/dist/esm/packages/taco/src/primitives/Table/Core/features/useTableStyleGrid.js.map +1 -1
  19. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  20. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js +11 -0
  21. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowActions.js.map +1 -1
  22. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js +2 -1
  23. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/setup.js.map +1 -1
  24. package/dist/primitives/Table/types.d.ts +2 -2
  25. package/dist/primitives/Table/useTableManager/features/useTableRowActions.d.ts +2 -0
  26. package/dist/taco.cjs.development.js +221 -212
  27. package/dist/taco.cjs.development.js.map +1 -1
  28. package/dist/taco.cjs.production.min.js +1 -1
  29. package/dist/taco.cjs.production.min.js.map +1 -1
  30. package/package.json +8 -8
@@ -6,7 +6,8 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var React = require('react');
8
8
  var React__default = _interopDefault(React);
9
- var cn = _interopDefault(require('clsx'));
9
+ var cn = require('clsx');
10
+ var cn__default = _interopDefault(cn);
10
11
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
11
12
  var AccordionPrimitive = require('@radix-ui/react-accordion');
12
13
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
@@ -3845,7 +3846,7 @@ const Icon = /*#__PURE__*/React__default.forwardRef(function Icon(props, ref) {
3845
3846
  } = props;
3846
3847
  const Component = icons[name];
3847
3848
  /* 24x24 _at the base body font_ - must be em so that they scale with font size - tailwind spacing uses rem */
3848
- const className = cn('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
3849
+ const className = cn__default('inline-flex h-[1.715em] w-[1.715em] flex-shrink-0', props.className, {
3849
3850
  'p-[3px]': (_props$className = props.className) === null || _props$className === void 0 ? void 0 : _props$className.includes('rounded-full')
3850
3851
  });
3851
3852
  return Component ? (/*#__PURE__*/React__default.createElement(Component, Object.assign({}, otherProps, {
@@ -3866,7 +3867,7 @@ const BadgeIcon = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
3866
3867
  small,
3867
3868
  ...otherProps
3868
3869
  } = props;
3869
- const className = cn(`rounded-full border overflow-hidden whitespace-nowrap inline-flex items-center justify-center border-transparent [&>*]:max-h-full shrink-0`, {
3870
+ const className = cn__default(`rounded-full border overflow-hidden whitespace-nowrap inline-flex items-center justify-center border-transparent [&>*]:max-h-full shrink-0`, {
3870
3871
  'w-5 h-5': !small
3871
3872
  }, {
3872
3873
  'w-4 h-4 text-xs': small
@@ -3913,7 +3914,7 @@ const Alert = /*#__PURE__*/React__default.forwardRef(function Alert(props, ref)
3913
3914
  state,
3914
3915
  onClose
3915
3916
  } = props;
3916
- const className = cn(`flex w-full flex-row items-start gap-2 rounded-md border-transparent p-3 ${getSubtleColorShadeClasses(getColorByState(state))}`, props.className);
3917
+ const className = cn__default(`flex w-full flex-row items-start gap-2 rounded-md border-transparent p-3 ${getSubtleColorShadeClasses(getColorByState(state))}`, props.className);
3917
3918
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
3918
3919
  ref: ref,
3919
3920
  className: className,
@@ -3989,7 +3990,7 @@ const Action = /*#__PURE__*/React.forwardRef(function AlertDialogAction(props, r
3989
3990
  });
3990
3991
 
3991
3992
  const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(props, ref) {
3992
- const className = cn('fixed inset-0 cursor-default overflow-y-auto bg-blue-900/[0.3] aria-hidden:invisible print:overflow-visible print:absolute', props.className);
3993
+ const className = cn__default('fixed inset-0 cursor-default overflow-y-auto bg-blue-900/[0.3] aria-hidden:invisible print:overflow-visible print:absolute', props.className);
3993
3994
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
3994
3995
  className: className,
3995
3996
  "data-taco": "backdrop",
@@ -4041,14 +4042,14 @@ const Title = /*#__PURE__*/React.forwardRef(function AlertDialogTitle(props, ref
4041
4042
  } = useCurrentAlertDialog();
4042
4043
  const iconProps = iconPropsByVariant(parentProps.variant);
4043
4044
  return /*#__PURE__*/React.createElement(AlertDialogPrimitive.Title, Object.assign({}, props, {
4044
- className: cn('flex items-center', props.className),
4045
+ className: cn__default('flex items-center', props.className),
4045
4046
  ref: ref
4046
4047
  }), iconProps ? /*#__PURE__*/React.createElement(BadgeIcon, Object.assign({}, iconProps, {
4047
4048
  className: "mr-2"
4048
4049
  })) : undefined, props.children);
4049
4050
  });
4050
4051
  const Content = /*#__PURE__*/React.forwardRef(function AlertDialogContent(props, ref) {
4051
- const className = cn('p-6', getDialogPositionClassnames(), getDialogStylingClassnames(), getDialogSizeClassnames('dialog'));
4052
+ const className = cn__default('p-6', getDialogPositionClassnames(), getDialogStylingClassnames(), getDialogSizeClassnames('dialog'));
4052
4053
  return /*#__PURE__*/React.createElement(AlertDialogPrimitive.Portal, null, /*#__PURE__*/React.createElement(AlertDialogPrimitive.Overlay, {
4053
4054
  asChild: true
4054
4055
  }, /*#__PURE__*/React.createElement(Backdrop, null, /*#__PURE__*/React.createElement(AlertDialogPrimitive.Content, Object.assign({}, props, {
@@ -4091,7 +4092,7 @@ const AccordionContext = /*#__PURE__*/React__default.createContext({
4091
4092
  });
4092
4093
  const StyledTrigger = /*#__PURE__*/React__default.forwardRef(function AccordionStyledTrigger(props, ref) {
4093
4094
  const isExpanded = !!props['aria-expanded'];
4094
- const className = cn('w-full inline-flex justify-between items-center align-middle', 'focus:rounded-sm focus:border-blue-500 focus:yt-focus', props.className);
4095
+ const className = cn__default('w-full inline-flex justify-between items-center align-middle', 'focus:rounded-sm focus:border-blue-500 focus:yt-focus', props.className);
4095
4096
  return /*#__PURE__*/React__default.createElement("button", Object.assign({}, props, {
4096
4097
  ref: ref,
4097
4098
  className: className
@@ -4152,7 +4153,7 @@ const Accordion = props => {
4152
4153
  };
4153
4154
  }
4154
4155
  const type = typeof valueProps.defaultValue === 'string' || typeof valueProps.value === 'string' ? 'single' : 'multiple';
4155
- const className = cn('divide-y divide-grey-200', props.className);
4156
+ const className = cn__default('divide-y divide-grey-200', props.className);
4156
4157
  return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
4157
4158
  value: context
4158
4159
  }, /*#__PURE__*/React__default.createElement(AccordionPrimitive.Root, Object.assign({}, otherProps, valueProps, {
@@ -4184,7 +4185,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
4184
4185
  ...otherProps
4185
4186
  } = props;
4186
4187
  const isTransparent = color === 'transparent';
4187
- const className = cn('rounded-full border box-border overflow-hidden whitespace-nowrap inline-flex items-center justify-center', {
4188
+ const className = cn__default('rounded-full border box-border overflow-hidden whitespace-nowrap inline-flex items-center justify-center', {
4188
4189
  [`border ${getOutlineColorShadeClasses(color)}`]: outline,
4189
4190
  [`border-none font-normal ${getSubtleColorShadeClasses(color)}`]: subtle,
4190
4191
  [`border-none ${getColorShadeClasses(color)}`]: !outline && !subtle,
@@ -4204,7 +4205,7 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
4204
4205
  }, children) : children;
4205
4206
  if (status) {
4206
4207
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4207
- className: cn('mr-1 h-2 w-2 shrink-0 rounded-full', getColorShadeClasses(color))
4208
+ className: cn__default('mr-1 h-2 w-2 shrink-0 rounded-full', getColorShadeClasses(color))
4208
4209
  }), contentToRender);
4209
4210
  }
4210
4211
  return contentToRender;
@@ -4471,7 +4472,7 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
4471
4472
  hide = false,
4472
4473
  ...otherProps
4473
4474
  } = props;
4474
- const className = cn('break-words', otherProps.className);
4475
+ const className = cn__default('break-words', otherProps.className);
4475
4476
  if (hide) {
4476
4477
  return children;
4477
4478
  }
@@ -4481,19 +4482,16 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {
4481
4482
  asChild: true,
4482
4483
  ref: ref
4483
4484
  }, children), /*#__PURE__*/React.createElement(TooltipPrimitive.Portal, null, /*#__PURE__*/React.createElement(TooltipPrimitive.Content, Object.assign({}, otherProps, {
4484
- asChild: true,
4485
- className: className,
4486
4485
  side: placement,
4487
- sideOffset: 3
4488
- }), /*#__PURE__*/React.createElement("div", {
4489
- className: "xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded bg-blue-900 px-2 py-1 text-xs text-white print:hidden",
4486
+ sideOffset: 3,
4487
+ className: cn.clsx('xs:max-w-[theme(spacing.56)] max-w-[theme(spacing.32)] animate-[fade-in_150ms] rounded bg-blue-900 px-2 py-1 text-xs text-white print:hidden', className),
4490
4488
  "data-taco": "tooltip",
4491
4489
  style: {
4492
4490
  transformOrigin: 'var(--radix-tooltip-content-transform-origin)'
4493
4491
  }
4494
- }, /*#__PURE__*/React.createElement(TooltipPrimitive.Arrow, {
4492
+ }), title, /*#__PURE__*/React.createElement(TooltipPrimitive.Arrow, {
4495
4493
  className: "-mt-px fill-blue-900 stroke-blue-900"
4496
- }), title))));
4494
+ }))));
4497
4495
  });
4498
4496
 
4499
4497
  const getButtonClasses = () => {
@@ -4578,7 +4576,7 @@ const Base = /*#__PURE__*/React.forwardRef(function IconButtonBase(props, ref) {
4578
4576
  rounded = false,
4579
4577
  ...otherProps
4580
4578
  } = props;
4581
- const className = cn('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
4579
+ const className = cn__default('w-8', getButtonClasses(), getAppearanceClasses(otherProps.appearance, true), {
4582
4580
  'rounded-full': rounded,
4583
4581
  rounded: !rounded
4584
4582
  }, props.className);
@@ -4953,7 +4951,7 @@ const Banner = /*#__PURE__*/React.forwardRef(function Banner(props, ref) {
4953
4951
  const {
4954
4952
  texts
4955
4953
  } = useLocalization();
4956
- const className = cn('bg-white relative flex items-center gap-2 py-2 px-4 leading-6 shadow-md z-10', props.className);
4954
+ const className = cn__default('bg-white relative flex items-center gap-2 py-2 px-4 leading-6 shadow-md z-10', props.className);
4957
4955
  return /*#__PURE__*/React.createElement("div", {
4958
4956
  className: className,
4959
4957
  "data-taco": "banner",
@@ -4973,7 +4971,7 @@ const Base$1 = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
4973
4971
  fluid,
4974
4972
  ...otherProps
4975
4973
  } = props;
4976
- const className = cn(getButtonClasses(), getAppearanceClasses(appearance), 'rounded px-3', {
4974
+ const className = cn__default(getButtonClasses(), getAppearanceClasses(appearance), 'rounded px-3', {
4977
4975
  'w-full': fluid
4978
4976
  }, props.className);
4979
4977
  return createButtonWithTooltip({
@@ -5124,7 +5122,7 @@ const Calendar$1 = props => {
5124
5122
  }
5125
5123
  handleChange(date, event);
5126
5124
  };
5127
- const className = cn('flex bg-white text-xs p-2', otherProps.className);
5125
+ const className = cn__default('flex bg-white text-xs p-2', otherProps.className);
5128
5126
  return /*#__PURE__*/React.createElement("div", {
5129
5127
  "data-taco": "calendar"
5130
5128
  }, /*#__PURE__*/React.createElement(reactDayPicker.DayPicker, {
@@ -5191,7 +5189,7 @@ const Truncate = ({
5191
5189
  }, []);
5192
5190
  const clonedChildrenWithRef = /*#__PURE__*/React__default.cloneElement(React__default.Children.only(children), {
5193
5191
  ref,
5194
- className: cn(children.props.className, 'truncate', {
5192
+ className: cn__default(children.props.className, 'truncate', {
5195
5193
  'hover:cursor-pointer': isTruncated
5196
5194
  })
5197
5195
  });
@@ -5208,8 +5206,8 @@ const Content$2 = /*#__PURE__*/React.forwardRef(function CardContent(externalPro
5208
5206
  noPadding,
5209
5207
  ...props
5210
5208
  } = externalProps;
5211
- const className = cn('flex-grow overflow-auto', {
5212
- 'mx-4 mb-4': !noPadding
5209
+ const className = cn__default('flex-grow overflow-auto', {
5210
+ 'px-4 pb-4': !noPadding
5213
5211
  }, props.className);
5214
5212
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
5215
5213
  className: className,
@@ -5225,13 +5223,13 @@ const Card = /*#__PURE__*/React.forwardRef(function Card(props, ref) {
5225
5223
  className,
5226
5224
  ...otherProps
5227
5225
  } = props;
5228
- const cardClassName = cn('bg-white flex flex-col rounded-xl border border-solid border-radius-[12px] border-grey-300 hover:border-grey-500', className);
5226
+ const cardClassName = cn__default('bg-white flex flex-col rounded-xl border border-solid border-radius-[12px] border-grey-300 hover:border-grey-500', className);
5229
5227
  return /*#__PURE__*/React.createElement("div", Object.assign({}, otherProps, {
5230
5228
  className: cardClassName,
5231
5229
  "data-taco": "card",
5232
5230
  ref: ref
5233
5231
  }), /*#__PURE__*/React.createElement("div", {
5234
- className: "mx-4 mb-2 mt-4 flex justify-between"
5232
+ className: "flex justify-between px-4 pb-2 pt-4"
5235
5233
  }, title && (/*#__PURE__*/React.createElement(Truncate, {
5236
5234
  tooltip: title
5237
5235
  }, /*#__PURE__*/React.createElement("h4", {
@@ -5271,7 +5269,7 @@ const Spinner = /*#__PURE__*/React__default.forwardRef(function Spinner(props, r
5271
5269
  if (!visible) {
5272
5270
  return null;
5273
5271
  }
5274
- const className = cn('inline-flex flex-col relative items-center', otherProps.className);
5272
+ const className = cn__default('inline-flex flex-col relative items-center', otherProps.className);
5275
5273
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
5276
5274
  className: className,
5277
5275
  "data-taco": "spinner",
@@ -5300,8 +5298,9 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
5300
5298
  ...otherProps
5301
5299
  } = props;
5302
5300
  const id = useId(props.id);
5303
- const className = cn('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 mt-[0.1rem] focus-visible:yt-focus disabled:cursor-not-allowed text-white', {
5304
- 'self-start': !!label
5301
+ const className = cn__default('bg-white h-5 w-5 border rounded text-sm flex-shrink-0 focus-visible:yt-focus disabled:cursor-not-allowed text-white', {
5302
+ 'self-start': !!label,
5303
+ 'mt-[0.1rem]': !label
5305
5304
  }, invalid ? {
5306
5305
  'border-red-500 hover:border-red-700 aria-checked:border-red-500 aria-checked-mixed:border-red-500 aria-checked:bg-red-500 aria-checked-mixed:bg-red-500 aria-checked:hover:border-red-700 aria-checked-mixed:hover:border-red-700 aria-checked:hover:bg-red-700 aria-checked-mixed:hover:bg-red-700': !props.disabled,
5307
5306
  'border-red-500/50 aria-checked:wcag-red-500/50 aria-checked-mixed:wcag-red-500/50': props.disabled
@@ -5326,7 +5325,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
5326
5325
  event.currentTarget.click();
5327
5326
  }
5328
5327
  };
5329
- const spinnerClassname = cn(
5328
+ const spinnerClassname = cn__default(
5330
5329
  //Spinner is slightly bigger then 'line' and 'tick' icons, so making it 2px smaller from each side
5331
5330
  "m-0.5 !h-[calc(100%-theme('spacing.1'))] !w-[calc(100%-theme('spacing.1'))]", {
5332
5331
  'text-blue-500': !checked && !indeterminate
@@ -5348,7 +5347,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
5348
5347
  className: "!h-full !w-full"
5349
5348
  }))));
5350
5349
  if (label) {
5351
- const labelContainerClassName = cn('flex items-center cursor-pointer gap-2', {
5350
+ const labelContainerClassName = cn__default('flex items-center cursor-pointer gap-2', {
5352
5351
  'cursor-not-allowed text-grey-300': props.disabled
5353
5352
  });
5354
5353
  return /*#__PURE__*/React.createElement("span", {
@@ -5367,7 +5366,7 @@ const getInputClasses = props => {
5367
5366
  const disabled = props.disabled || !!props['aria-disabled'];
5368
5367
  const readOnly = props.readOnly || !!props['aria-readonly'];
5369
5368
  const invalid = props.invalid || !!props['aria-invalid'];
5370
- return cn('peer text-black text-sm border font-normal not-italic no-underline rounded flex items-center leading-6 px-2 relative w-full text-ellipsis transition-colors transition-opacity ease-in min-h-[theme(spacing.8)] focus:yt-focus',
5369
+ return cn__default('peer text-black text-sm border font-normal not-italic no-underline rounded flex items-center leading-6 px-2 relative w-full text-ellipsis transition-colors transition-opacity ease-in min-h-[theme(spacing.8)] focus:yt-focus',
5371
5370
  // hide the arrow controls on input[type=number]
5372
5371
  '[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none', {
5373
5372
  'bg-white': !props.highlighted && !readOnly,
@@ -5386,7 +5385,7 @@ const getInputClasses = props => {
5386
5385
  };
5387
5386
  const getButtonStateClasses = (invalid, disabled = false) => {
5388
5387
  if (invalid) {
5389
- return cn('border border-red-500 group-peer-hover:enabled:border-red-700 transition-colors ease-in', {
5388
+ return cn__default('border border-red-500 group-peer-hover:enabled:border-red-700 transition-colors ease-in', {
5390
5389
  'border-red-500/30': disabled
5391
5390
  });
5392
5391
  }
@@ -5496,7 +5495,7 @@ const InputWithoutDeprecatedFeatures = /*#__PURE__*/React.forwardRef(function In
5496
5495
  const prefixRect = useBoundingClientRectListener(prefixRef);
5497
5496
  const postfixRef = React.useRef(null);
5498
5497
  const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);
5499
- const className = cn(getInputClasses(props), {
5498
+ const className = cn__default(getInputClasses(props), {
5500
5499
  'pl-8': !!prefix,
5501
5500
  'pr-8': !!postfix
5502
5501
  }, attributes.className);
@@ -5551,7 +5550,7 @@ const Affix = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function Aff
5551
5550
  type
5552
5551
  } = props;
5553
5552
  return /*#__PURE__*/React.createElement("div", {
5554
- className: cn('group absolute top-0 flex h-full items-center justify-center px-2',
5553
+ className: cn__default('group absolute top-0 flex h-full items-center justify-center px-2',
5555
5554
  // icon
5556
5555
  '[&_[data-taco="icon"]]:!h-5 [&_[data-taco="icon"]]:!w-5', {
5557
5556
  'text-grey-300': disabled,
@@ -5573,7 +5572,7 @@ const Input = /*#__PURE__*/React.forwardRef(function LegacyInput(props, ref) {
5573
5572
  let postfix;
5574
5573
  if (button) {
5575
5574
  const disabled = button.props.disabled || attributes.disabled;
5576
- const buttonClassName = cn('items-center focus:z-10 flex justify-center rounded-l-none rounded-r h-full focus:rounded focus:outline-none', getButtonStateClasses(attributes.invalid, disabled), button.props.className);
5575
+ const buttonClassName = cn__default('items-center focus:z-10 flex justify-center rounded-l-none rounded-r h-full focus:rounded focus:outline-none', getButtonStateClasses(attributes.invalid, disabled), button.props.className);
5577
5576
  postfix = /*#__PURE__*/React.cloneElement(button, {
5578
5577
  className: buttonClassName,
5579
5578
  disabled
@@ -5749,7 +5748,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
5749
5748
  'aria-selected': multiselect ? getOptionCheckedState(String(option.value), index) : currentIndex === index,
5750
5749
  'data-focused': currentIndex === index,
5751
5750
  children: option.text,
5752
- className: cn('flex items-center px-3 w-full cursor-pointer bg-white flex-[0_0_2rem] focus:wcag-blue-500 focus:border-blue-500', {
5751
+ className: cn__default('flex items-center px-3 w-full cursor-pointer bg-white flex-[0_0_2rem] focus:wcag-blue-500 focus:border-blue-500', {
5753
5752
  'sticky top-0 font-bold': depth === 0 && !!option.hasChildren
5754
5753
  }),
5755
5754
  disabled: option.disabled,
@@ -5766,7 +5765,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
5766
5765
  });
5767
5766
  const list = {
5768
5767
  ...otherProps,
5769
- className: cn('inline-flex flex-col list-none !p-0 m-0 overflow-y-auto h-auto', getInputClasses(props), {
5768
+ className: cn__default('inline-flex flex-col list-none !p-0 m-0 overflow-y-auto h-auto', getInputClasses(props), {
5770
5769
  'yt-list--multiselect': multiselect,
5771
5770
  'pointer-events-none': disabled,
5772
5771
  'cursor-not-allowed': disabled || readOnly
@@ -6247,7 +6246,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
6247
6246
  texts
6248
6247
  } = useLocalization();
6249
6248
  const selectDimensions = useBoundingClientRectListener(internalRef);
6250
- const className = cn('inline-flex relative', {
6249
+ const className = cn__default('inline-flex relative', {
6251
6250
  'yt-combobox--inline': props.inline
6252
6251
  }, externalClassName);
6253
6252
  return /*#__PURE__*/React.createElement("span", {
@@ -6298,7 +6297,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
6298
6297
  },
6299
6298
  sideOffset: 4
6300
6299
  }, /*#__PURE__*/React.createElement(ScrollableList, Object.assign({}, list, {
6301
- className: cn('max-h-[calc(12rem+2px)] w-auto max-w-[theme(spacing.96)] !border-blue-500'),
6300
+ className: cn__default('max-h-[calc(12rem+2px)] w-auto max-w-[theme(spacing.96)] !border-blue-500'),
6302
6301
  style: {
6303
6302
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
6304
6303
  },
@@ -6529,7 +6528,7 @@ const Content$3 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
6529
6528
  placement: side,
6530
6529
  ...popoverContentProps
6531
6530
  } = props;
6532
- const className = cn(getPopoverStyleClassnames(), props.className);
6531
+ const className = cn__default(getPopoverStyleClassnames(), props.className);
6533
6532
  let output;
6534
6533
  if (typeof props.children === 'function') {
6535
6534
  output = /*#__PURE__*/React.createElement(PopoverPrimitive.Close, {
@@ -6598,7 +6597,7 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
6598
6597
  const {
6599
6598
  texts
6600
6599
  } = useLocalization();
6601
- const className = cn('inline-flex w-full text-black font-normal', externalClassName);
6600
+ const className = cn__default('inline-flex w-full text-black font-normal', externalClassName);
6602
6601
  const popoverContentRef = React.useRef(null);
6603
6602
  const handleOpenAutofocus = React.useCallback(e => {
6604
6603
  var _popoverContentRef$cu, _popoverContentRef$cu2;
@@ -6760,14 +6759,14 @@ const useDraggable = ref => {
6760
6759
  };
6761
6760
 
6762
6761
  const Title$1 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
6763
- const className = cn('text-center', props.className);
6762
+ const className = cn__default('text-center', props.className);
6764
6763
  return /*#__PURE__*/React.createElement(DialogPrimitive.Title, Object.assign({}, props, {
6765
6764
  className: className,
6766
6765
  ref: ref
6767
6766
  }));
6768
6767
  });
6769
6768
  const Footer$1 = /*#__PURE__*/React.forwardRef(function DialogFooter(props, ref) {
6770
- const className = cn('mt-8 flex justify-end', props.className);
6769
+ const className = cn__default('mt-8 flex justify-end', props.className);
6771
6770
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
6772
6771
  className: className,
6773
6772
  ref: ref
@@ -6807,8 +6806,8 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
6807
6806
  const {
6808
6807
  texts
6809
6808
  } = useLocalization();
6810
- const className = cn('relative bg-white animate-[fade-in_150ms] rounded print:!static', getDialogPositionClassnames(), getDialogSizeClassnames(dialog.size), 'print:w-full print:h-max print:m-0 print:overflow-visible');
6811
- const containerClassName = cn('bg-white p-6 rounded relative z-10 shadow print:p-0',
6809
+ const className = cn__default('relative bg-white animate-[fade-in_150ms] rounded print:!static', getDialogPositionClassnames(), getDialogSizeClassnames(dialog.size), 'print:w-full print:h-max print:m-0 print:overflow-visible');
6810
+ const containerClassName = cn__default('bg-white p-6 rounded relative z-10 shadow print:p-0',
6812
6811
  // The `!fixed` property is crucial to ensure that when a draggable dialog is moved, the printed document still displays its content across the full page.
6813
6812
  'print:overflow-visible print:h-max print:!transform-none print:!inset-0 print:!m-0', {
6814
6813
  'rounded-b-none': !!dialog.elements.extra
@@ -6867,7 +6866,7 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
6867
6866
  const DialogDrawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
6868
6867
  var _dialog$drawer, _dialog$drawer2;
6869
6868
  const dialog = useCurrentDialog();
6870
- const className = cn('absolute top-0 -ml-[4px] hidden h-full w-full overflow-y-auto rounded-r bg-white p-6 text-left', props.className);
6869
+ const className = cn__default('absolute top-0 -ml-[4px] hidden h-full w-full overflow-y-auto rounded-r bg-white p-6 text-left', props.className);
6871
6870
  return /*#__PURE__*/React.createElement(framerMotion.motion.div, Object.assign({}, props, {
6872
6871
  className: className,
6873
6872
  "data-taco": "dialog-drawer",
@@ -6899,7 +6898,7 @@ const DialogDrawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props,
6899
6898
  DialogDrawer.displayName = 'DialogDrawer';
6900
6899
 
6901
6900
  const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
6902
- const className = cn('wcag-grey-100 absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left', props.className);
6901
+ const className = cn__default('wcag-grey-100 absolute top-full left-0 -mt-px w-full rounded-t-none rounded-b p-6 text-left', props.className);
6903
6902
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
6904
6903
  className: className,
6905
6904
  "data-taco": "dialog-extra",
@@ -6981,7 +6980,7 @@ const Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
6981
6980
  orientation = 'horizontal',
6982
6981
  ...otherProps
6983
6982
  } = props;
6984
- const className = cn('flex gap-2 [&:has([data-taco="tag"])]:!gap-1', {
6983
+ const className = cn__default('flex gap-2 [&:has([data-taco="tag"])]:!gap-1', {
6985
6984
  'flex-col ': orientation === 'vertical'
6986
6985
  }, props.className);
6987
6986
  return /*#__PURE__*/React.createElement(Tag, Object.assign({}, otherProps, {
@@ -7022,7 +7021,7 @@ const getDrawerSizeClassnames = size => {
7022
7021
  }
7023
7022
  };
7024
7023
  const getDrawerContentClassNames = (size, variant, open) => {
7025
- return cn('bg-white h-full bottom-0 top-0 right-0 transition-none', {
7024
+ return cn__default('bg-white h-full bottom-0 top-0 right-0 transition-none', {
7026
7025
  block: open,
7027
7026
  hidden: !open,
7028
7027
  fixed: variant === 'overlay',
@@ -7030,23 +7029,23 @@ const getDrawerContentClassNames = (size, variant, open) => {
7030
7029
  }, getDrawerSizeClassnames(size));
7031
7030
  };
7032
7031
  const getDrawerContainerClassNames = variant => {
7033
- return cn('bg-white mx-auto absolute h-full w-full flex flex-col ', {
7032
+ return cn__default('bg-white mx-auto absolute h-full w-full flex flex-col ', {
7034
7033
  'shadow-[0_6px_9px_0_rgba(89,85,98,0.3),0_0_1px_0_rgba(89,85,98,0.2)]': variant === 'overlay',
7035
7034
  'border-l border-grey-300 h-full': variant === 'embedded'
7036
7035
  });
7037
7036
  };
7038
7037
  const getDrawerDragHandlerClassNames = () => {
7039
- return cn('border-[2px] absolute border-transparent top-0 w-2 h-full cursor-ew-resize left-0 hover:border-l-blue-500');
7038
+ return cn__default('border-[2px] absolute border-transparent top-0 w-2 h-full cursor-ew-resize left-0 hover:border-l-blue-500');
7040
7039
  };
7041
7040
  const getBackdropClassNames = open => {
7042
- return cn({
7041
+ return cn__default({
7043
7042
  block: open,
7044
7043
  hidden: !open
7045
7044
  });
7046
7045
  };
7047
7046
 
7048
7047
  const Bar = props => {
7049
- const className = cn(`flex select-none touch-none transition-colors hover:bg-grey`, {
7048
+ const className = cn__default(`flex select-none touch-none transition-colors hover:bg-grey`, {
7050
7049
  'w-[7px] hover:w-[14px] mr-[2px] hover:px-[2px] hover:mr-0': props.orientation === 'vertical',
7051
7050
  'flex-col h-[7px] hover:h-[14px] mb-[2px] hover:py-[2px] hover:mb-0': props.orientation === 'horizontal'
7052
7051
  });
@@ -7066,7 +7065,7 @@ const ScrollArea = props => {
7066
7065
  ...otherProps
7067
7066
  } = props;
7068
7067
  return /*#__PURE__*/React__default.createElement(ScrollAreaPrimitive.Root, Object.assign({}, otherProps, {
7069
- className: cn('overflow-hidden', props.className),
7068
+ className: cn__default('overflow-hidden', props.className),
7070
7069
  "data-taco": "scrollarea"
7071
7070
  }), /*#__PURE__*/React__default.createElement(ScrollAreaPrimitive.Viewport, {
7072
7071
  className: "h-full w-full"
@@ -7117,7 +7116,7 @@ const Title$2 = /*#__PURE__*/React__default.forwardRef(function DrawerTitle(prop
7117
7116
  * where we might want to hide the grey separator. For this reason separator was rendered with using of classNames,
7118
7117
  * so it can be easily overriden in exceptional scenarios.
7119
7118
  * */
7120
- const cName = cn('grow-0 py-4 px-4 justify-self-start mb-0 border-b-[1px] border-grey-300 flex items-start', className);
7119
+ const cName = cn__default('grow-0 py-4 px-4 justify-self-start mb-0 border-b-[1px] border-grey-300 flex items-start', className);
7121
7120
  React__default.useEffect(() => {
7122
7121
  var _ref$current, _drawer$querySelector, _closeButton$offsetWi, _drawer$querySelector2, _actionsWrapper$offse;
7123
7122
  const drawer = ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.closest('[data-taco="drawer"]');
@@ -7157,7 +7156,7 @@ const Footer$2 = /*#__PURE__*/React__default.forwardRef(function DrawerFooter(pr
7157
7156
  /**
7158
7157
  * The same scenario as Title, grey separator rendered using classNames to have posibility to override it.
7159
7158
  */
7160
- const cName = cn('mt-auto flex justify-end grow-0 p-4 border-t-[1px] border-grey-300', props.className);
7159
+ const cName = cn__default('mt-auto flex justify-end grow-0 p-4 border-t-[1px] border-grey-300', props.className);
7161
7160
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
7162
7161
  className: cName,
7163
7162
  ref: ref
@@ -7168,7 +7167,7 @@ const Actions = /*#__PURE__*/React__default.forwardRef(function Actions(props, r
7168
7167
  className,
7169
7168
  ...otherProps
7170
7169
  } = props;
7171
- const cName = cn('absolute top-0 right-10 mr-[8px] mt-4', className);
7170
+ const cName = cn__default('absolute top-0 right-10 mr-[8px] mt-4', className);
7172
7171
  // Id is added to identify the actions wrapper inside a useEffect in Dialog.Title
7173
7172
  return /*#__PURE__*/React__default.createElement(Group, Object.assign({}, otherProps, {
7174
7173
  className: cName,
@@ -7193,7 +7192,7 @@ const InnerContent = /*#__PURE__*/React__default.forwardRef(function InnerConten
7193
7192
  children,
7194
7193
  ...otherProps
7195
7194
  } = props;
7196
- const cName = cn('grow flex flex-col', {
7195
+ const cName = cn__default('grow flex flex-col', {
7197
7196
  'overflow-y-hidden': isScrollable,
7198
7197
  'p-4': !isScrollable
7199
7198
  }, className);
@@ -7273,7 +7272,7 @@ const DrawerContent = /*#__PURE__*/React__default.forwardRef(function Content(pr
7273
7272
  menu.close();
7274
7273
  };
7275
7274
  }
7276
- const containerClassName = React__default.useMemo(() => cn(getDrawerContainerClassNames(variant), className), [className]);
7275
+ const containerClassName = React__default.useMemo(() => cn__default(getDrawerContainerClassNames(variant), className), [className]);
7277
7276
  const {
7278
7277
  contentClassName,
7279
7278
  dragHandlerClassName
@@ -7394,7 +7393,7 @@ const Trigger$4 = /*#__PURE__*/React.forwardRef(function DrawerTrigger(props, re
7394
7393
  const DEFAULT_OUTLET_NAME = 'default';
7395
7394
  const Outlet = /*#__PURE__*/React.forwardRef(function Outlet(props, ref) {
7396
7395
  var _props$name;
7397
- const className = cn('h-full ml-auto overflow-hidden flex-shrink-0', props.className);
7396
+ const className = cn__default('h-full ml-auto overflow-hidden flex-shrink-0', props.className);
7398
7397
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
7399
7398
  className: className,
7400
7399
  "data-taco": "drawer-outlet",
@@ -7500,10 +7499,10 @@ const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
7500
7499
  message,
7501
7500
  ...otherProps
7502
7501
  } = props;
7503
- const className = cn('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
7502
+ const className = cn__default('flex flex-col font-bold text-xs leading-loose pb-4 min-h-[theme(spacing.18)]', {
7504
7503
  'text-grey-300': disabled
7505
7504
  }, props.className);
7506
- const messageClassName = cn('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
7505
+ const messageClassName = cn__default('h-4 text-xs text-left leading-normal font-normal truncate -mb-4', {
7507
7506
  'text-grey-700': !invalid && !warning,
7508
7507
  'text-red-500': invalid,
7509
7508
  'text-yellow-700': warning && !invalid,
@@ -7528,7 +7527,7 @@ const Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
7528
7527
  horizontal = false,
7529
7528
  ...otherProps
7530
7529
  } = props;
7531
- const className = cn('yt-form', {
7530
+ const className = cn__default('yt-form', {
7532
7531
  'yt-form--horizontal flex flex-wrap': horizontal
7533
7532
  }, props.className);
7534
7533
  return /*#__PURE__*/React.createElement("form", Object.assign({}, otherProps, {
@@ -7561,7 +7560,7 @@ const Anchor$1 = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, exte
7561
7560
  }), children);
7562
7561
  });
7563
7562
  const Title$3 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
7564
- const className = cn('mb-1 text-base font-bold flex w-full', props.className);
7563
+ const className = cn__default('mb-1 text-base font-bold flex w-full', props.className);
7565
7564
  return /*#__PURE__*/React.createElement("span", Object.assign({}, props, {
7566
7565
  className: className,
7567
7566
  ref: ref
@@ -7576,7 +7575,7 @@ const Content$6 = /*#__PURE__*/React.forwardRef(function HangerContent(props, re
7576
7575
  const {
7577
7576
  texts
7578
7577
  } = useLocalization();
7579
- const className = cn('wcag-blue-500 border border-transparent rounded p-3 pr-12 yt-shadow focus:border-transparent max-w-sm', props.className);
7578
+ const className = cn__default('wcag-blue-500 border border-transparent rounded p-3 pr-12 yt-shadow focus:border-transparent max-w-sm', props.className);
7580
7579
  const handleInteractOutside = event => {
7581
7580
  event.preventDefault();
7582
7581
  };
@@ -7663,7 +7662,7 @@ const Content$7 = /*#__PURE__*/React.forwardRef(function HoverCardContent(props,
7663
7662
  const {
7664
7663
  placement: side
7665
7664
  } = props;
7666
- const className = cn(getPopoverStyleClassnames(), 'min-w-[theme(spacing.40)] max-w-[theme(spacing.96)]', props.className);
7665
+ const className = cn__default(getPopoverStyleClassnames(), 'min-w-[theme(spacing.40)] max-w-[theme(spacing.96)]', props.className);
7667
7666
  return /*#__PURE__*/React.createElement(HoverCardPrimitive.Portal, null, /*#__PURE__*/React.createElement(HoverCardPrimitive.Content, {
7668
7667
  className: className,
7669
7668
  "data-taco": "hover-card",
@@ -7701,7 +7700,7 @@ const Item$1 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
7701
7700
  title,
7702
7701
  ...attributes
7703
7702
  } = props;
7704
- const iconClassName = cn('flex shrink-0 h-10 w-10 items-center justify-center rounded-md border border-black/10', getSubtleColorShadeClasses(color !== null && color !== void 0 ? color : 'transparent'));
7703
+ const iconClassName = cn__default('flex shrink-0 h-10 w-10 items-center justify-center rounded-md border border-black/10', getSubtleColorShadeClasses(color !== null && color !== void 0 ? color : 'transparent'));
7705
7704
  return /*#__PURE__*/React__default.createElement(Tag, Object.assign({}, attributes, {
7706
7705
  "aria-disabled": disabled ? true : undefined,
7707
7706
  "data-taco": "list-item",
@@ -7773,7 +7772,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
7773
7772
  ...otherProps
7774
7773
  } = props;
7775
7774
  const id = useId(props.id);
7776
- const className = cn('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus', {
7775
+ const className = cn__default('group h-5 w-9 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus', {
7777
7776
  'mr-2': !!label,
7778
7777
  'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
7779
7778
  'bg-grey-500/50 aria-checked:bg-blue-500/50 cursor-not-allowed': props.disabled
@@ -7794,7 +7793,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
7794
7793
  className: "pointer-events-none mt-0.5 h-4 w-4 translate-x-[0.15rem] rounded-full bg-white transition-transform will-change-transform group-disabled:opacity-50 group-aria-checked:translate-x-[1.1rem]"
7795
7794
  }));
7796
7795
  if (label) {
7797
- const labelContainerClassName = cn('flex self-start cursor-pointer', {
7796
+ const labelContainerClassName = cn__default('flex self-start cursor-pointer', {
7798
7797
  'cursor-not-allowed text-grey-300': props.disabled
7799
7798
  });
7800
7799
  return /*#__PURE__*/React.createElement("span", {
@@ -7843,7 +7842,7 @@ const ToggleItem = /*#__PURE__*/React__default.forwardRef(function Toggle(props,
7843
7842
  return;
7844
7843
  }
7845
7844
  }
7846
- const className = cn('group/toggle', props.className);
7845
+ const className = cn__default('group/toggle', props.className);
7847
7846
  return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, attributes, {
7848
7847
  className: className,
7849
7848
  onClick: handleClick,
@@ -8289,7 +8288,7 @@ const Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
8289
8288
  list,
8290
8289
  input
8291
8290
  } = useListbox(otherProps, ref);
8292
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
8291
+ const className = cn__default('bg-white inline-flex relative w-full', externalClassName);
8293
8292
  return /*#__PURE__*/React.createElement("span", {
8294
8293
  "data-taco": "listbox",
8295
8294
  className: className
@@ -8312,7 +8311,7 @@ const MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref)
8312
8311
  list,
8313
8312
  input
8314
8313
  } = useMultiListbox(otherProps, ref);
8315
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
8314
+ const className = cn__default('bg-white inline-flex relative w-full', externalClassName);
8316
8315
  return /*#__PURE__*/React.createElement("span", {
8317
8316
  "data-taco": "listbox",
8318
8317
  className: className
@@ -8336,7 +8335,7 @@ const Content$8 = /*#__PURE__*/React.forwardRef(function MenuContent(props, ref)
8336
8335
  placement: side,
8337
8336
  ...otherProps
8338
8337
  } = props;
8339
- const className = cn('border border-transparent rounded block outline-none p-1 yt-shadow wcag-white', props.className);
8338
+ const className = cn__default('border border-transparent rounded block outline-none p-1 yt-shadow wcag-white', props.className);
8340
8339
  // attach refs to each child
8341
8340
  const childrenRefs = React.useRef([]);
8342
8341
  const childrenWithRefs = React.Children.toArray(props.children).filter(child => !!child) // remove falsey children
@@ -8426,7 +8425,7 @@ const Shortcut = ({
8426
8425
  keys,
8427
8426
  ...props
8428
8427
  }) => {
8429
- const className = cn('inline-flex gap-0.5', props.className);
8428
+ const className = cn__default('inline-flex gap-0.5', props.className);
8430
8429
  const texts = getShortcutText(keys);
8431
8430
  return /*#__PURE__*/React__default.createElement("span", Object.assign({}, props, {
8432
8431
  className: className
@@ -8455,7 +8454,7 @@ const useItemStyling = ({
8455
8454
  menu === null || menu === void 0 ? void 0 : menu.registerIndentation();
8456
8455
  }
8457
8456
  }, [indented]);
8458
- return cn('flex items-center justify-start h-8 pr-1.5 relative rounded w-full focus:outline-none group', {
8457
+ return cn__default('flex items-center justify-start h-8 pr-1.5 relative rounded w-full focus:outline-none group', {
8459
8458
  'pl-7': menu === null || menu === void 0 ? void 0 : menu.indented,
8460
8459
  'pl-1.5': !(menu !== null && menu !== void 0 && menu.indented),
8461
8460
  'cursor-pointer text-black hover:wcag-grey-200 data-[highlighted]:wcag-grey-200': !disabled,
@@ -8614,7 +8613,7 @@ const Checkbox$2 = /*#__PURE__*/React.forwardRef(function MenuCheckboxItem(props
8614
8613
  });
8615
8614
 
8616
8615
  const getRadioClassnames = (disabled = false, invalid = false) => {
8617
- return cn('flex flex-shrink-0 items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2 focus-visible:yt-focus disabled:cursor-not-allowed hover:border-4', invalid ? {
8616
+ return cn__default('flex flex-shrink-0 items-center justify-center h-4 w-4 mt-[0.2rem] rounded-full bg-white border-2 focus-visible:yt-focus disabled:cursor-not-allowed hover:border-4', invalid ? {
8618
8617
  'border-red-500 hover:border-red-700 aria-checked:bg-red-500 aria-checked:border-red-500 hover:aria-checked:border-red-700': !disabled,
8619
8618
  'border-red-500/50 aria-checked:bg-red-500/50 aria-checked:border-red-500/50': disabled
8620
8619
  } : {
@@ -8637,8 +8636,8 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
8637
8636
  ...otherProps
8638
8637
  } = props;
8639
8638
  const isDisabled = context.disabled || props.disabled;
8640
- const className = cn('self-start', getRadioClassnames(isDisabled, context.invalid));
8641
- const labelClassName = cn('flex items-center gap-2', {
8639
+ const className = cn__default('self-start', getRadioClassnames(isDisabled, context.invalid));
8640
+ const labelClassName = cn__default('flex items-center gap-2', {
8642
8641
  'cursor-pointer': !isDisabled,
8643
8642
  'cursor-not-allowed text-grey-300': isDisabled
8644
8643
  }, props.className);
@@ -8705,7 +8704,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref)
8705
8704
  context,
8706
8705
  props: otherProps
8707
8706
  } = useRadioGroup(props);
8708
- const className = cn('flex items-start gap-y-2', {
8707
+ const className = cn__default('flex items-start gap-y-2', {
8709
8708
  'flex-wrap gap-x-4 ': otherProps.orientation === 'horizontal',
8710
8709
  'flex-col': otherProps.orientation === 'vertical'
8711
8710
  }, otherProps.className);
@@ -8750,7 +8749,7 @@ const RadioGroup$1 = /*#__PURE__*/React.forwardRef(function MenuRadioItem(props,
8750
8749
  context,
8751
8750
  props: otherProps
8752
8751
  } = useRadioGroup(props);
8753
- const className = cn('flex flex-col', props.className);
8752
+ const className = cn__default('flex flex-col', props.className);
8754
8753
  return /*#__PURE__*/React.createElement(MenuRadioGroupContext.Provider, {
8755
8754
  value: context
8756
8755
  }, /*#__PURE__*/React.createElement(DropdownMenuPrimitive.RadioGroup, Object.assign({}, otherProps, {
@@ -8770,7 +8769,7 @@ const Separator = /*#__PURE__*/React.forwardRef(function Separator(props, ref) {
8770
8769
 
8771
8770
  const Header = /*#__PURE__*/React.forwardRef(function MenuHeader(props, ref) {
8772
8771
  const menu = useCurrentMenu();
8773
- const className = cn('flex items-center justify-start h-7 pr-1.5 text-xs text-grey-700', {
8772
+ const className = cn__default('flex items-center justify-start h-7 pr-1.5 text-xs text-grey-700', {
8774
8773
  'pl-7': menu === null || menu === void 0 ? void 0 : menu.indented,
8775
8774
  'pl-1.5': !(menu !== null && menu !== void 0 && menu.indented)
8776
8775
  }, props.className);
@@ -8786,7 +8785,7 @@ const SubMenu = /*#__PURE__*/React.forwardRef(function MenuSubMenu(props, ref) {
8786
8785
  children,
8787
8786
  ...otherProps
8788
8787
  } = props;
8789
- const className = cn('border border-transparent rounded block outline-none p-1 yt-shadow wcag-white', props.className);
8788
+ const className = cn__default('border border-transparent rounded block outline-none p-1 yt-shadow wcag-white', props.className);
8790
8789
  return /*#__PURE__*/React.createElement(DropdownMenuPrimitive.Portal, null, /*#__PURE__*/React.createElement(DropdownMenuPrimitive.SubContent, Object.assign({}, otherProps, {
8791
8790
  className: className,
8792
8791
  "data-taco": "menu-submenu",
@@ -8846,7 +8845,7 @@ const ModeSwitch = /*#__PURE__*/React.forwardRef(function ModeSwitch(props, ref)
8846
8845
  onChange,
8847
8846
  ...otherProps
8848
8847
  } = props;
8849
- const className = cn('group w-14 h-8 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus p-1', {
8848
+ const className = cn__default('group w-14 h-8 flex flex-shrink-0 rounded-full inline-flex focus-visible:yt-focus p-1', {
8850
8849
  'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
8851
8850
  'bg-grey-500 aria-checked:bg-blue-500 cursor-not-allowed opacity-50': props.disabled
8852
8851
  }, props.className);
@@ -8885,7 +8884,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
8885
8884
  setExpanded(fixed || initialExpanded);
8886
8885
  }
8887
8886
  }, [fixed, initialExpanded]);
8888
- const listClassName = cn('flex-col mb-0', {
8887
+ const listClassName = cn__default('flex-col mb-0', {
8889
8888
  flex: expanded,
8890
8889
  hidden: !expanded
8891
8890
  });
@@ -8974,7 +8973,7 @@ const Item$3 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
8974
8973
  const proxyRef = useMergedRef(ref);
8975
8974
  const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
8976
8975
  const isTreeitem = role === 'treeitem';
8977
- const className = cn('yt-navigation__item cursor-pointer', {
8976
+ const className = cn__default('yt-navigation__item cursor-pointer', {
8978
8977
  'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-300': isTreeitem,
8979
8978
  'bg-white w-full h-10 px-3 flex-shrink-0 flex items-center justify-between cursor-pointer': !isTreeitem,
8980
8979
  'yt-navigation__item--active': active && !isDraggedOver,
@@ -9004,16 +9003,16 @@ const Item$3 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
9004
9003
  });
9005
9004
  const Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
9006
9005
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
9007
- className: cn('w-full bg-white p-3', props.className),
9006
+ className: cn__default('w-full bg-white p-3', props.className),
9008
9007
  ref: ref
9009
9008
  }));
9010
9009
  });
9011
9010
  const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
9012
- const className = cn('flex-shrink-0 space-y-1 outline-none', {
9011
+ const className = cn__default('flex-shrink-0 space-y-1 outline-none', {
9013
9012
  'bg-white pb-2': props.fixed
9014
9013
  }, typeof props.className === 'function' ? props.className(false) : props.className);
9015
9014
  const title = expanded => {
9016
- const className = cn('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
9015
+ const className = cn__default('bg-white h-10 pl-3 pr-1 flex items-center justify-between w-full', {
9017
9016
  'mb-1': expanded,
9018
9017
  'cursor-pointer hover:text-blue-500': !props.fixed
9019
9018
  });
@@ -9048,7 +9047,7 @@ const Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
9048
9047
  return scrollableAreas;
9049
9048
  }, [props.children]);
9050
9049
  return /*#__PURE__*/React__default.createElement(Treeview, Object.assign({}, props, {
9051
- className: cn('divide-grey-100 flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
9050
+ className: cn__default('divide-grey-100 flex flex-grow flex-col divide-y-2 overflow-y-auto', props.className),
9052
9051
  ref: ref
9053
9052
  }), scrollableAreas.map((area, i) => Array.isArray(area) ? (/*#__PURE__*/React__default.createElement("div", {
9054
9053
  className: "divide-grey-100 flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
@@ -9061,7 +9060,7 @@ const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(pr
9061
9060
  children,
9062
9061
  ...otherProps
9063
9062
  } = props;
9064
- const className = cn('h-full flex flex-col bg-grey-100 divide-y-2 divide-grey-100', props.className);
9063
+ const className = cn__default('h-full flex flex-col bg-grey-100 divide-y-2 divide-grey-100', props.className);
9065
9064
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
9066
9065
  className: className,
9067
9066
  "data-taco": "navigation",
@@ -9171,18 +9170,18 @@ const OverflowGroup = /*#__PURE__*/React__default.forwardRef(function OverflowGr
9171
9170
  const MoreButton = (_moreButton = moreButton === null || moreButton === void 0 ? void 0 : moreButton(moreButtonText)) !== null && _moreButton !== void 0 ? _moreButton : /*#__PURE__*/React__default.createElement(IconButton, {
9172
9171
  icon: "more"
9173
9172
  });
9174
- const className = cn('flex overflow-hidden', props.className);
9173
+ const className = cn__default('flex overflow-hidden', props.className);
9175
9174
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, attributes, {
9176
9175
  className: className,
9177
9176
  "data-taco": "overflow-group",
9178
9177
  ref: internalRef
9179
9178
  }), children.map((child, index) => /*#__PURE__*/React__default.cloneElement(child, {
9180
- className: cn(child.props.className, {
9179
+ className: cn__default(child.props.className, {
9181
9180
  visible: intersectedChildIndex === undefined || index < intersectedChildIndex,
9182
9181
  'invisible order-[100] pointer-events-none': intersectedChildIndex !== undefined && index >= intersectedChildIndex
9183
9182
  })
9184
9183
  })), hiddenChildren.length ? /*#__PURE__*/React__default.cloneElement(MoreButton, {
9185
- className: cn('sticky right-0 order-[99]', MoreButton.props.className),
9184
+ className: cn__default('sticky right-0 order-[99]', MoreButton.props.className),
9186
9185
  'data-observer-ignore': true,
9187
9186
  menu: menuProps => (/*#__PURE__*/React__default.createElement(Menu$1, Object.assign({}, menuProps), /*#__PURE__*/React__default.createElement(Menu$1.Content, null, hiddenChildren.map((child, index) => wrapChild ? (/*#__PURE__*/React__default.createElement(Menu$1.Item, {
9188
9187
  key: index
@@ -9338,7 +9337,7 @@ const useSelect = ({
9338
9337
  const item = findByValue(flattenedData, value);
9339
9338
  if (item) {
9340
9339
  text = item.icon ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(item.icon, {
9341
- className: cn(item.icon.props.className, 'mr-1 -mt-px')
9340
+ className: cn__default(item.icon.props.className, 'mr-1 -mt-px')
9342
9341
  }), item.text)) : item.text;
9343
9342
  }
9344
9343
  }
@@ -9448,10 +9447,10 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
9448
9447
  } = useSelect(otherProps, ref);
9449
9448
  const internalRef = React.useRef(null);
9450
9449
  const selectDimensions = useBoundingClientRectListener(internalRef);
9451
- const className = cn('inline-flex relative w-full', {
9450
+ const className = cn__default('inline-flex relative w-full', {
9452
9451
  'yt-select--readonly': props.readOnly
9453
9452
  }, externalClassName);
9454
- const inputClassname = cn(getInputClasses(props), 'h-8 text-left !pr-0', {
9453
+ const inputClassname = cn__default(getInputClasses(props), 'h-8 text-left !pr-0', {
9455
9454
  'border-blue-500': popover.open,
9456
9455
  'select-text': otherProps.readOnly
9457
9456
  });
@@ -9599,7 +9598,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
9599
9598
  const pageCount = Math.ceil(length / pageSize);
9600
9599
  const canPreviousPage = pageIndex > 0;
9601
9600
  const canNextPage = pageIndex < pageCount - 1;
9602
- const className = cn('inline-flex relative justify-between items-center', props.className);
9601
+ const className = cn__default('inline-flex relative justify-between items-center', props.className);
9603
9602
  return /*#__PURE__*/React.createElement("div", Object.assign({}, otherProps, {
9604
9603
  className: className,
9605
9604
  "data-taco": "pagination",
@@ -9666,8 +9665,8 @@ const Progress = ({
9666
9665
  animationDuration: `${duration}ms`
9667
9666
  };
9668
9667
  }
9669
- const className = cn('bg-grey-100 rounded block h-1 overflow-hidden w-full', props.className);
9670
- const progressClassName = cn('yt-progress__bar block h-1', {
9668
+ const className = cn__default('bg-grey-100 rounded block h-1 overflow-hidden w-full', props.className);
9669
+ const progressClassName = cn__default('yt-progress__bar block h-1', {
9671
9670
  "w-full before:h-1 before:bg-grey-300 before:block before:animate-[progress-indeterminate_2s_cubic-bezier(0.4,0,0.2,1)_infinite] before:content-[' ']": !duration,
9672
9671
  [`w-0 bg-grey-300 animate-[progress_linear]`]: duration
9673
9672
  });
@@ -9732,7 +9731,7 @@ const Toast = ({
9732
9731
  autoClose,
9733
9732
  type = 'default'
9734
9733
  } = options;
9735
- const className = cn('bg-white relative flex items-center py-1 px-2 mt-3 w-full rounded yt-shadow print:hidden', {
9734
+ const className = cn__default('bg-white relative flex items-center py-1 px-2 mt-3 w-full rounded yt-shadow print:hidden', {
9736
9735
  'border border-grey-200': type === 'default' || type === 'loading' || !type,
9737
9736
  'border border-grey-500': type === 'success',
9738
9737
  'border border-blue-500': type === 'information',
@@ -10442,7 +10441,8 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
10442
10441
  // To avoid errors caused by undefined row data values, we pass accessorFn as a preventive measure
10443
10442
  // accessorKey can be dot notated strings, so we use lodash.get to access deeply nested children
10444
10443
  accessorFn: row => get(row, accessorKey),
10445
- header: header,
10444
+ // The header can be either a string or a JSX.Element, but react-table expects it to be a string or a renderer function, so `() => header` ensures compatibility
10445
+ header: () => header,
10446
10446
  // features
10447
10447
  enableColumnFilter,
10448
10448
  enableGlobalFilter,
@@ -10945,8 +10945,17 @@ function useTablePrintingSettings(tableId) {
10945
10945
 
10946
10946
  const DEFAULT_ROW_ACTIONS_LENGTH = 4;
10947
10947
  function useTableRowActions(isEnabled = false, rowActions, rowActionsLength = DEFAULT_ROW_ACTIONS_LENGTH) {
10948
+ const [handlers, setHandlers] = React__default.useState({});
10949
+ const registerHandler = (key, handler) => {
10950
+ return setHandlers(h => ({
10951
+ ...h,
10952
+ [key]: handler
10953
+ }));
10954
+ };
10948
10955
  return {
10956
+ handlers,
10949
10957
  isEnabled,
10958
+ registerHandler,
10950
10959
  rowActions: isEnabled ? rowActions : undefined,
10951
10960
  rowActionsLength: rowActions ? Math.min(rowActions.length, rowActionsLength) : 0
10952
10961
  };
@@ -12058,7 +12067,7 @@ function useTableStyleGrid(tableId, table, fontSize) {
12058
12067
  };
12059
12068
  // printing grid
12060
12069
  // we have to be specific so that nested tables don't inherit the same css
12061
- const hiddenColumns = printHiddenColumns.map(id => `table[data-taco^='table']#${tableId} > thead > tr > th[data-cell-id='${id}']\n,table[data-taco^='table']#${tableId} > tbody > tr > td[data-cell-id='${id}']\n`).join(',');
12070
+ const hiddenColumns = printHiddenColumns.map(id => `table[data-taco^='table']#${tableId} > thead > tr > th[data-cell-id='${id}']\n,table[data-taco^='table']#${tableId} tr > td[data-cell-id='${id}']\n`).join(',');
12062
12071
  const stylesheet = `@media print { table[data-taco^='table']#${tableId} { grid-template-columns: repeat(${printGridTemplateColumns}, auto) !important; }
12063
12072
  table[data-taco^='table']#${tableId} [data-cell-id^='__']${hiddenColumns ? `, ${hiddenColumns}` : ''} { display: none; } table[data-taco^='table']#${tableId} tr { page-break-inside: avoid; break-inside: avoid;}}`;
12064
12073
  return {
@@ -12624,11 +12633,12 @@ function Actions$1(props) {
12624
12633
  const {
12625
12634
  texts
12626
12635
  } = useLocalization();
12636
+ const tableMeta = table.options.meta;
12627
12637
  // we don't want to document passing table, so it isn't on the type
12628
- const visibleActions = actions.map(action => action(data, rowId, table)).filter(action => !!action);
12638
+ const visibleActions = actions.map(action => action(data, rowId, tableMeta.rowActions.handlers['cleanup'], table)).filter(action => !!action);
12629
12639
  const actionsOnRow = visibleActions.length === actionsLength ? visibleActions : visibleActions.slice(0, actionsLength - 1);
12630
12640
  const actionsInMenu = visibleActions.slice(visibleActions.length === actionsLength ? actionsLength : actionsLength - 1);
12631
- const className = cn('flex justify-end text-right bg-[inherit] shadow-[-6px_0px_6px_var(--table-row-actions-shadow)] print:hidden');
12641
+ const className = cn__default('flex justify-end text-right bg-[inherit] shadow-[-6px_0px_6px_var(--table-row-actions-shadow)] print:hidden');
12632
12642
  return /*#__PURE__*/React__default.createElement("span", {
12633
12643
  className: className
12634
12644
  }, actionsOnRow.map((button, index) => {
@@ -12692,7 +12702,7 @@ const renderer = {
12692
12702
  renderer: Cell,
12693
12703
  meta: {
12694
12704
  align: 'right',
12695
- className: /*#__PURE__*/cn('print:opacity-0 !px-0 !pr-1 overflow-hidden [table_&]:group-[[data-row-active="true"]]/row:sticky right-0', 'group-[[data-row-active="true"][data-selected="false"]]/row:text-grey-200', 'group-[[data-row-selected="true"]]/row:text-blue-100', 'group-[[data-row-selected="false"]:hover]/row:text-grey-100'),
12705
+ className: /*#__PURE__*/cn__default('print:opacity-0 !px-0 !pr-1 overflow-hidden [table_&]:group-[[data-row-active="true"]]/row:sticky right-0', 'group-[[data-row-active="true"][data-selected="false"]]/row:text-grey-200', 'group-[[data-row-selected="true"]]/row:text-blue-100', 'group-[[data-row-selected="false"]:hover]/row:text-grey-100'),
12696
12706
  // TODO: remove when table3 is migrated, this satisfies the legacy table3 type
12697
12707
  enableSearch: false,
12698
12708
  header: ''
@@ -12715,7 +12725,7 @@ function Cell$1() {
12715
12725
  return /*#__PURE__*/React__default.createElement(Icon, {
12716
12726
  "aria-label": texts.table.columns.drag.tooltip,
12717
12727
  name: "drag",
12718
- className: cn("text-grey-darkest invisible -mt-1 ml-[2px] cursor-grab active:cursor-grabbing group-hover/row:visible group-[[aria-grabbed='true']]/row:text-white", '[[data-table-editing-mode]_&]:!invisible')
12728
+ className: cn__default("text-grey-darkest invisible -mt-1 ml-[2px] cursor-grab active:cursor-grabbing group-hover/row:visible group-[[aria-grabbed='true']]/row:text-white", '[[data-table-editing-mode]_&]:!invisible')
12719
12729
  });
12720
12730
  }
12721
12731
  const renderer$1 = {
@@ -13255,7 +13265,7 @@ const DisplayRow = /*#__PURE__*/React__default.memo(function DisplayRow(props) {
13255
13265
  const expansionRef = React__default.useRef(null);
13256
13266
  const isExpanded = !!attributes['data-row-expanded'];
13257
13267
  useSetVirtualisedRowHeight(measureRow, ref.current, expansionRef.current, isExpanded);
13258
- const className = cn('group/row', otherAttributes.className, {
13268
+ const className = cn__default('group/row', otherAttributes.className, {
13259
13269
  'hover:cursor-grab': tableMeta.rowDrag.isEnabled && typeof attributes.onClick !== 'function',
13260
13270
  'hover:cursor-pointer': typeof attributes.onClick === 'function'
13261
13271
  });
@@ -13410,14 +13420,14 @@ function Resizer(props) {
13410
13420
  }
13411
13421
  };
13412
13422
  const handle = /*#__PURE__*/React__default.createElement("div", {
13413
- className: cn('invisible absolute right-0 top-0 z-10 -mr-2 flex h-full w-4 cursor-col-resize touch-none select-none justify-center rounded py-0.5', 'group-hover/header:visible', '[th:last-child>&]:!mr-0 [th:last-child>&]:w-2', {
13423
+ className: cn__default('invisible absolute right-0 top-0 z-10 -mr-2 flex h-full w-4 cursor-col-resize touch-none select-none justify-center rounded py-0.5', 'group-hover/header:visible', '[th:last-child>&]:!mr-0 [th:last-child>&]:w-2', {
13414
13424
  '!visible': isResizing
13415
13425
  }),
13416
13426
  onClick: handleClick,
13417
13427
  onMouseDown: handleResize,
13418
13428
  onTouchStart: handleResize
13419
13429
  }, /*#__PURE__*/React__default.createElement("div", {
13420
- className: cn('h-full w-1 rounded', {
13430
+ className: cn__default('h-full w-1 rounded', {
13421
13431
  '!bg-blue-500': isResizing,
13422
13432
  'bg-grey-500 hover:bg-grey-700': !isResizing
13423
13433
  })
@@ -13635,7 +13645,7 @@ function HeaderMenu(props) {
13635
13645
  }));
13636
13646
  }, [canFilter, canGoto, canHide, canPin, canSort, customMenu, handleGoto, handleSortToggle, index, isFiltered, sortDirection]);
13637
13647
  // can't use display: none because the button needs to be focusable
13638
- const className = cn(
13648
+ const className = cn__default(
13639
13649
  // positioning
13640
13650
  'justify-end overflow-hidden',
13641
13651
  // sizing
@@ -13727,7 +13737,7 @@ function Header$5(props) {
13727
13737
  canPin,
13728
13738
  canResize,
13729
13739
  canSort,
13730
- className: cn('group/header', columnMeta.headerClassName),
13740
+ className: cn__default('group/header', columnMeta.headerClassName),
13731
13741
  children: reactTable.flexRender(header.column.columnDef.header, header.getContext()),
13732
13742
  colSpan: header.colSpan,
13733
13743
  customMenu: columnMeta.menu,
@@ -13748,7 +13758,7 @@ function Header$5(props) {
13748
13758
  };
13749
13759
  if (header.isPlaceholder) {
13750
13760
  const nextHeader = header.headerGroup.headers[header.index + 1];
13751
- memoedProps.className = cn('!bg-white before:!content-none', memoedProps.className, {
13761
+ memoedProps.className = cn__default('!bg-white before:!content-none', memoedProps.className, {
13752
13762
  'after:!content-none': nextHeader === null || nextHeader === void 0 ? void 0 : nextHeader.isPlaceholder
13753
13763
  });
13754
13764
  }
@@ -13859,12 +13869,12 @@ const MemoedHeader = /*#__PURE__*/React__default.memo(function MemoedHeader(prop
13859
13869
  "data-cell-pinned": isPinned ? isPinned : undefined,
13860
13870
  style: style,
13861
13871
  ref: setRef
13862
- }), isPlaceholder ? null : isInternalColumn(id) ? children : (/*#__PURE__*/React__default.createElement(Tooltip, {
13872
+ }), !isPlaceholder && (isInternalColumn(id) || typeof children !== 'string' ? children : (/*#__PURE__*/React__default.createElement(Tooltip, {
13863
13873
  title: String(tooltip !== null && tooltip !== void 0 ? tooltip : children),
13864
13874
  placement: "top"
13865
13875
  }, /*#__PURE__*/React__default.createElement("span", {
13866
13876
  className: "truncate"
13867
- }, children))), sortDirection ? /*#__PURE__*/React__default.createElement(SortIndicator, {
13877
+ }, children)))), sortDirection ? /*#__PURE__*/React__default.createElement(SortIndicator, {
13868
13878
  direction: sortDirection
13869
13879
  }) : null, hasMenu ? (/*#__PURE__*/React__default.createElement(HeaderMenu, {
13870
13880
  canFilter: canFilter,
@@ -13872,7 +13882,7 @@ const MemoedHeader = /*#__PURE__*/React__default.memo(function MemoedHeader(prop
13872
13882
  canHide: canHide,
13873
13883
  canPin: canPin,
13874
13884
  canSort: canSort,
13875
- className: cn({
13885
+ className: cn__default({
13876
13886
  'ml-auto': align !== 'right',
13877
13887
  'ml-0': align === 'right'
13878
13888
  }),
@@ -14263,7 +14273,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
14263
14273
  }
14264
14274
  });
14265
14275
  }
14266
- const className = cn('!pl-7 group-focus-within:!w-72 group-focus-within:yt-focus', hasFind ? {
14276
+ const className = cn__default('!pl-7 group-focus-within:!w-72 group-focus-within:yt-focus', hasFind ? {
14267
14277
  '!w-48': !value,
14268
14278
  '!w-72': value
14269
14279
  } : '!w-48', {
@@ -14293,9 +14303,9 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
14293
14303
  value: value !== null && value !== void 0 ? value : ''
14294
14304
  }));
14295
14305
  if (settingsContent) {
14296
- const settingsClassname = cn('border-grey-300 absolute left-0 right-0 -mt-0.5 hidden top-full group-focus-within:flex focus-within:flex flex-col gap-y-4 rounded-b border border-t-0 bg-white p-3 shadow !pt-[calc(theme(spacing.3)_+_theme(spacing[0.5]))]');
14306
+ const settingsClassname = cn__default('border-grey-300 absolute left-0 right-0 -mt-0.5 hidden top-full group-focus-within:flex focus-within:flex flex-col gap-y-4 rounded-b border border-t-0 bg-white p-3 shadow !pt-[calc(theme(spacing.3)_+_theme(spacing[0.5]))]');
14297
14307
  return /*#__PURE__*/React__default.createElement("div", {
14298
- className: cn('group relative', {
14308
+ className: cn__default('group relative', {
14299
14309
  'z-10 [&_[data-taco=input-container]]:z-10': focused
14300
14310
  }),
14301
14311
  ref: containerRef,
@@ -14577,7 +14587,7 @@ const Column = /*#__PURE__*/React__default.forwardRef(function Column(props, ref
14577
14587
  ...dragAttributes
14578
14588
  } = props;
14579
14589
  const canHide = column.getCanHide();
14580
- const className = cn('group/column flex items-center gap-x-2 rounded py-1 px-2', {
14590
+ const className = cn__default('group/column flex items-center gap-x-2 rounded py-1 px-2', {
14581
14591
  'hover:bg-grey-200': canHide || draggable,
14582
14592
  'hover:cursor-pointer': canHide,
14583
14593
  'active:cursor-move active:bg-grey-300': draggable
@@ -15111,7 +15121,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
15111
15121
  ...otherProps
15112
15122
  } = props;
15113
15123
  const textRef = React__default.useRef(null);
15114
- const className = cn('inline-flex items-center rounded h-6 cursor-default', {
15124
+ const className = cn__default('inline-flex items-center rounded h-6 cursor-default', {
15115
15125
  'opacity-50': disabled,
15116
15126
  'hover:bg-opacity-75': !disabled,
15117
15127
  'cursor-pointer': !!otherProps.onClick,
@@ -15128,7 +15138,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
15128
15138
  name: icon,
15129
15139
  className: "-ml-1 mr-1 !h-5 !w-5"
15130
15140
  })) : (/*#__PURE__*/React__default.cloneElement(icon, {
15131
- className: cn(icon.props.className, 'mr-1 -ml-1')
15141
+ className: cn__default(icon.props.className, 'mr-1 -ml-1')
15132
15142
  })) : null, /*#__PURE__*/React__default.createElement("span", {
15133
15143
  className: "truncate"
15134
15144
  }, children)), onDelete ? (/*#__PURE__*/React__default.createElement(Icon, {
@@ -15138,7 +15148,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
15138
15148
  })) : null);
15139
15149
  });
15140
15150
 
15141
- const createOptionClassName = (shouldPauseHoverState = false) => cn('group mb-px flex w-full text-sm flex-shrink-0 font-normal cursor-pointer items-center rounded bg-white px-2 leading-8 text-black aria-hidden:hidden gap-1.5 bg-white aria-current:wcag-grey-200 aria-disabled:text-black/25 aria-disabled:pointer-events-none !justify-normal', {
15151
+ const createOptionClassName = (shouldPauseHoverState = false) => cn__default('group mb-px flex w-full text-sm flex-shrink-0 font-normal cursor-pointer items-center rounded bg-white px-2 leading-8 text-black aria-hidden:hidden gap-1.5 bg-white aria-current:wcag-grey-200 aria-disabled:text-black/25 aria-disabled:pointer-events-none !justify-normal', {
15142
15152
  'hover:wcag-grey-200': !shouldPauseHoverState
15143
15153
  });
15144
15154
  const createCollectionClassName = () => 'flex flex-col gap-px';
@@ -15288,7 +15298,7 @@ const EditPopover = props => {
15288
15298
  }) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
15289
15299
  className: "flex w-32 flex-col space-y-2"
15290
15300
  }, onEdit ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Field, {
15291
- className: cn('!min-h-fit', {
15301
+ className: cn__default('!min-h-fit', {
15292
15302
  '!pb-0': !validationError
15293
15303
  }),
15294
15304
  invalid: !!validationError,
@@ -15336,7 +15346,7 @@ const Colours = props => {
15336
15346
  value: color
15337
15347
  }, AVAILABLE_COLORS.map(availableColor => (/*#__PURE__*/React__default.createElement(RadioGroupPrimitive.Item, {
15338
15348
  "aria-label": color,
15339
- className: cn('flex h-6 w-6 cursor-pointer items-center justify-center rounded', getSubtleColorShadeClasses(availableColor)),
15349
+ className: cn__default('flex h-6 w-6 cursor-pointer items-center justify-center rounded', getSubtleColorShadeClasses(availableColor)),
15340
15350
  key: availableColor,
15341
15351
  onFocus: () => onChangeColor(availableColor),
15342
15352
  value: availableColor
@@ -15374,7 +15384,7 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
15374
15384
  tags,
15375
15385
  value
15376
15386
  } = useSelect2Context();
15377
- const className = cn(createOptionClassName(shouldPauseHoverState), getFontSize(fontSize), cName);
15387
+ const className = cn__default(createOptionClassName(shouldPauseHoverState), getFontSize(fontSize), cName);
15378
15388
  const hasValue = Array.isArray(value) ? !!value.length : value !== undefined;
15379
15389
  const isTag = tags && !!color;
15380
15390
  const handleClick = () => {
@@ -15431,7 +15441,7 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
15431
15441
  })) : postfix : null)))), popover ? (/*#__PURE__*/React__default.createElement(IconButton, {
15432
15442
  icon: "ellipsis-vertical",
15433
15443
  appearance: "discrete",
15434
- className: cn('group-aria-current:visible invisible -mr-1 ml-auto !h-5 min-h-[theme(spacing.6)] !w-5 min-w-[theme(spacing.6)] hover:!bg-black/[.08] focus:!shadow-none group-hover:visible', {
15444
+ className: cn__default('group-aria-current:visible invisible -mr-1 ml-auto !h-5 min-h-[theme(spacing.6)] !w-5 min-w-[theme(spacing.6)] hover:!bg-black/[.08] focus:!shadow-none group-hover:visible', {
15435
15445
  '!visible': isMobileDevice((_window = window) === null || _window === void 0 ? void 0 : _window.navigator)
15436
15446
  }),
15437
15447
  onClick: event => {
@@ -15451,7 +15461,7 @@ const Group$3 = /*#__PURE__*/React__default.forwardRef(function Select2Group(pro
15451
15461
  hasSeparator,
15452
15462
  ...attributes
15453
15463
  } = props;
15454
- const className = cn(createCollectionClassName(), {
15464
+ const className = cn__default(createCollectionClassName(), {
15455
15465
  "last:after:content-none after:content-[''] after:bg-grey-300 after:mx-2 after:my-1 after:h-px": hasSeparator && children.length
15456
15466
  }, props.className);
15457
15467
  return /*#__PURE__*/React__default.createElement(Group$2, Object.assign({}, attributes, {
@@ -15463,7 +15473,7 @@ const Group$3 = /*#__PURE__*/React__default.forwardRef(function Select2Group(pro
15463
15473
  });
15464
15474
 
15465
15475
  const Title$5 = /*#__PURE__*/React__default.forwardRef(function Select2Title(props, ref) {
15466
- const className = cn('flex items-center text-xs pl-2 h-8', props.className);
15476
+ const className = cn__default('flex items-center text-xs pl-2 h-8', props.className);
15467
15477
  return /*#__PURE__*/React__default.createElement(Title$4, Object.assign({}, props, {
15468
15478
  className: className,
15469
15479
  ref: ref
@@ -15479,7 +15489,7 @@ const Placeholder = ({
15479
15489
  return null;
15480
15490
  }
15481
15491
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
15482
- className: cn({
15492
+ className: cn__default({
15483
15493
  'text-grey-700': disabled,
15484
15494
  'text-grey-500': !disabled
15485
15495
  })
@@ -15520,7 +15530,7 @@ const Button$3 = /*#__PURE__*/React__default.forwardRef(function Select2TriggerB
15520
15530
  open,
15521
15531
  readOnly
15522
15532
  } = useSelect2Context();
15523
- const className = cn('px-1.5 h-fit', getInputClasses({
15533
+ const className = cn__default('px-1.5 h-fit', getInputClasses({
15524
15534
  ...props,
15525
15535
  disabled,
15526
15536
  highlighted,
@@ -15594,7 +15604,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
15594
15604
  readOnly,
15595
15605
  tags
15596
15606
  } = useSelect2Context();
15597
- const contentClassName = cn('truncate flex items-center gap-1');
15607
+ const contentClassName = cn__default('truncate flex items-center gap-1');
15598
15608
  const currentValue = children.find(matchesValue(value));
15599
15609
  let output;
15600
15610
  if (placeholder && currentValue === undefined) {
@@ -15652,7 +15662,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
15652
15662
  className
15653
15663
  } = buttonProps;
15654
15664
  if (open) {
15655
- className = cn('!absolute z-20 !h-fit', buttonProps.className);
15665
+ className = cn__default('!absolute z-20 !h-fit', buttonProps.className);
15656
15666
  content = /*#__PURE__*/React__default.createElement(ScrollArea, {
15657
15667
  className: "my-1 flex max-h-[5.5rem] flex-col",
15658
15668
  onClick: forwardClick
@@ -15752,14 +15762,14 @@ const MultipleValue = ({
15752
15762
  if (typeof child.props.children === 'string') {
15753
15763
  output = /*#__PURE__*/React__default.createElement(Tag$1, {
15754
15764
  key: String(child.props.value),
15755
- className: cn('cursor-pointer', classNames),
15765
+ className: cn__default('cursor-pointer', classNames),
15756
15766
  color: tags ? child.props.color : undefined,
15757
15767
  disabled: disabled,
15758
15768
  icon: child.props.prefix,
15759
15769
  readOnly: readOnly
15760
15770
  }, child.props.children);
15761
15771
  } else output = /*#__PURE__*/React__default.cloneElement(child.props.children, {
15762
- className: cn('cursor-pointer', {
15772
+ className: cn__default('cursor-pointer', {
15763
15773
  'shrink-0': index !== boundaryIndex
15764
15774
  }, classNames),
15765
15775
  key: String(child.props.value)
@@ -15897,7 +15907,7 @@ const Search$2 = /*#__PURE__*/React__default.forwardRef(function ListboxSearch(p
15897
15907
  }
15898
15908
  };
15899
15909
  return /*#__PURE__*/React__default.createElement(Field, {
15900
- className: cn('mx-1.5 mb-1.5 !min-h-fit', {
15910
+ className: cn__default('mx-1.5 mb-1.5 !min-h-fit', {
15901
15911
  '!pb-0': !validationError
15902
15912
  }),
15903
15913
  invalid: !!validationError,
@@ -16034,7 +16044,7 @@ const Create = props => {
16034
16044
  event.currentTarget.click();
16035
16045
  }
16036
16046
  };
16037
- const className = cn(createOptionClassName(), {
16047
+ const className = cn__default(createOptionClassName(), {
16038
16048
  '!w-[calc(100%_-_theme(spacing.3))] ml-1.5': !createDialog,
16039
16049
  'leading-normal border-grey-300 h-9 border-t py-2.5 px-4 !-mb-1.5': !!createDialog
16040
16050
  });
@@ -16271,7 +16281,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
16271
16281
  setValue(nextValue);
16272
16282
  }
16273
16283
  };
16274
- const className = cn('border-grey-300 rounded border bg-white py-1.5 shadow-md ', {
16284
+ const className = cn__default('border-grey-300 rounded border bg-white py-1.5 shadow-md ', {
16275
16285
  'focus-within:yt-focus': !hasSearch,
16276
16286
  'outline-none': hasSearch
16277
16287
  }, createCollectionClassName());
@@ -16311,10 +16321,10 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
16311
16321
  }, selectAllText), /*#__PURE__*/React__default.createElement("div", {
16312
16322
  className: "border-grey-300 mx-3 rounded border-t"
16313
16323
  }))))) : null, loading ? (/*#__PURE__*/React__default.createElement("span", {
16314
- className: cn('text-grey-700 flex items-center italic', fontSize && getFontSize(fontSize))
16324
+ className: cn__default('text-grey-700 flex items-center italic', fontSize && getFontSize(fontSize))
16315
16325
  }, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(Spinner, {
16316
16326
  delay: 0,
16317
- className: cn('ml-3 mr-2 mt-1.5 h-5 w-5', {
16327
+ className: cn__default('ml-3 mr-2 mt-1.5 h-5 w-5', {
16318
16328
  '!mt-1 !h-3.5 !w-3.5': fontSize === exports.FontSizes.small,
16319
16329
  '!h-4 !w-4': fontSize === exports.FontSizes.medium,
16320
16330
  '!h-5 !w-5': fontSize === exports.FontSizes.large
@@ -18244,7 +18254,7 @@ const useTable$1 = (props, ref) => {
18244
18254
  const renderCell = (cell, row) => {
18245
18255
  const props = {
18246
18256
  ...cell.getCellProps(),
18247
- className: cn('yt-table__cell flex-1 truncate p-2 align-middle', cell.column.className, {
18257
+ className: cn__default('yt-table__cell flex-1 truncate p-2 align-middle', cell.column.className, {
18248
18258
  'justify-start text-left': cell.column.align === 'left',
18249
18259
  'justify-end text-right': cell.column.align === 'right',
18250
18260
  'text-center': !cell.column.align
@@ -18284,7 +18294,7 @@ const Row$1 = /*#__PURE__*/React__default.forwardRef(function TableRow({
18284
18294
  minHeight: rowHeight ? `${rowHeight}px` : undefined,
18285
18295
  paddingLeft: row.depth ? `${row.depth * 2}rem` : undefined
18286
18296
  },
18287
- className: cn('yt-table__row border-grey-300 flex border-b min-h-[2.5rem] hover:bg-grey-100', {
18297
+ className: cn__default('yt-table__row border-grey-300 flex border-b min-h-[2.5rem] hover:bg-grey-100', {
18288
18298
  'yt-table__row--active bg-grey-200 hover:bg-grey-200': activeIndex === index,
18289
18299
  'yt-table__row--clickable': !!onRowClick,
18290
18300
  'yt-table__row--dragging': !!row.isDragging,
@@ -18342,7 +18352,7 @@ const Column$2 = ({
18342
18352
  ...(cell.getSortByToggleProps && cell.getSortByToggleProps({
18343
18353
  title: undefined
18344
18354
  })),
18345
- className: cn('yt-table__cell flex flex-1 truncate p-2 align-middle text-grey-700 hover:text-black', cell.className, {
18355
+ className: cn__default('yt-table__cell flex flex-1 truncate p-2 align-middle text-grey-700 hover:text-black', cell.className, {
18346
18356
  'yt-table__cell__group': !!cell.columns,
18347
18357
  'cursor-pointer': !cell.disableSorting,
18348
18358
  'justify-start text-left': cell.align === 'left',
@@ -18385,7 +18395,7 @@ const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(prop
18385
18395
  tableRef.current.focus();
18386
18396
  }
18387
18397
  }, []);
18388
- const className = cn('yt-table flex flex-col focus:yt-focus focus:rounded-sm', props.className);
18398
+ const className = cn__default('yt-table flex flex-col focus:yt-focus focus:rounded-sm', props.className);
18389
18399
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
18390
18400
  role: "table",
18391
18401
  className: className,
@@ -18569,7 +18579,7 @@ const WindowedTable = /*#__PURE__*/React__default.forwardRef(function WindowedTa
18569
18579
  }, [rows.length]);
18570
18580
  const contentHeight = estimatedRowHeight * props.data.length || 0;
18571
18581
  const isScrollbarVisible = height !== null ? contentHeight > height : false;
18572
- const className = cn(tableProps.className, 'yt-table--windowed', {
18582
+ const className = cn__default(tableProps.className, 'yt-table--windowed', {
18573
18583
  'table-with-scrollbar': isScrollbarVisible
18574
18584
  });
18575
18585
  let list;
@@ -18899,21 +18909,13 @@ function useTableEditingListener(table, tableRef, scrollToIndex) {
18899
18909
  document.addEventListener('click', onClickOutside);
18900
18910
  return () => document.removeEventListener('click', onClickOutside);
18901
18911
  }, [tableMeta.editing.isEditing, tableMeta.editing.saveChanges]);
18902
- /*
18903
- const rows = table.getRowModel().rows;
18904
- // make sure pending changes are removed for rows that no longer exist
18905
- useLazyEffect(() => {
18906
- const pendingChanges = tableMeta.editing.getErrorsShownInAlert();
18907
- pendingChanges.forEach(pendingChange => {
18908
- try {
18909
- table.getRow(pendingChange.rowId);
18910
- } catch {
18911
- // TODO: this has the potential to remove changes for "unloaded" rows in server loading
18912
- //tableMeta.editing.discardChanges(pendingChange.rowId, table);
18913
- }
18914
- });
18915
- }, [rows.length]);
18916
- */
18912
+ React__default.useEffect(() => {
18913
+ if (tableMeta.editing.isEnabled) {
18914
+ tableMeta.rowActions.registerHandler('cleanup', rowId => {
18915
+ tableMeta.editing.discardChanges(rowId, table);
18916
+ });
18917
+ }
18918
+ }, []);
18917
18919
  // shortcuts
18918
18920
  useGlobalKeyDown(tableMeta.editing.isEnabled ? shortcut : undefined, event => {
18919
18921
  event.preventDefault();
@@ -19622,7 +19624,7 @@ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
19622
19624
  onKeyDown,
19623
19625
  ...otherProps
19624
19626
  } = props;
19625
- const classNames = cn(getInputClasses(props), 'pt-[5px] pb-[7px] min-h-[75px] disabled:resize-none !leading-5', props.className);
19627
+ const classNames = cn__default(getInputClasses(props), 'pt-[5px] pb-[7px] min-h-[75px] disabled:resize-none !leading-5', props.className);
19626
19628
  // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
19627
19629
  // if it has scroll height then the browser reverts to native scrolling behaviour only
19628
19630
  // so we manually override it to ensure _our_ desired behaviour remains intact
@@ -20125,7 +20127,7 @@ function SaveStatus(props) {
20125
20127
  } = useLocalization();
20126
20128
  const tableMeta = table.options.meta;
20127
20129
  const status = tableMeta.editing.getRowStatus(rowId);
20128
- const className = cn('col-span-full sticky ml-auto right-0 top-0 -mb-[100%] z-10 h-8 bg-[inherit] flex items-center px-1.5 shadow-[-6px_0px_6px_var(--table-row-actions-shadow)]', {
20130
+ const className = cn__default('col-span-full sticky ml-auto right-0 top-0 -mb-[100%] z-10 h-8 bg-[inherit] flex items-center px-1.5 shadow-[-6px_0px_6px_var(--table-row-actions-shadow)]', {
20129
20131
  'mt-0.5': tableMeta.rowHeight.height === 'short',
20130
20132
  'mt-1': tableMeta.rowHeight.height === 'medium',
20131
20133
  'mt-1.5': tableMeta.rowHeight.height === 'tall',
@@ -20235,7 +20237,7 @@ function useTable3(props, ref) {
20235
20237
  data,
20236
20238
  enableRowActions: editing.isEditing ? true : props.enableRowActions,
20237
20239
  // Display EditingActionMenu instead of row actions while editing
20238
- rowActions: editing.isEditing ? [(_, rowId, table) => {
20240
+ rowActions: editing.isEditing ? [(_, rowId, __, table) => {
20239
20241
  const tableMeta = table.options.meta;
20240
20242
  return /*#__PURE__*/React__default.createElement(EditingActionsMenu, {
20241
20243
  hasChanges: editing.hasChanges(rowId),
@@ -20478,7 +20480,7 @@ function CreateNewRow(props) {
20478
20480
  keys: shortcut
20479
20481
  });
20480
20482
  }
20481
- const className = cn('group/row border-grey-300 !sticky z-[21]', {
20483
+ const className = cn__default('group/row border-grey-300 !sticky z-[21]', {
20482
20484
  'bottom-10': tableMeta.footer.isEnabled,
20483
20485
  'bottom-0': !tableMeta.footer.isEnabled,
20484
20486
  'border-b': !isScrolled
@@ -20568,7 +20570,7 @@ function TemporaryRow(props) {
20568
20570
  }
20569
20571
  }
20570
20572
  };
20571
- const className = cn('group/row border-grey-300 !sticky z-[22] print:hidden', {
20573
+ const className = cn__default('group/row border-grey-300 !sticky z-[22] print:hidden', {
20572
20574
  'bottom-[calc(5rem_+_2px)] data-[row-editing-move]:bottom-[calc(5rem_+_2px)]': tableMeta.footer.isEnabled,
20573
20575
  'bottom-[calc(2.5rem_+_2px)] data-[row-editing-move]:bottom-[calc(2.5rem_+_2px)]': !tableMeta.footer.isEnabled,
20574
20576
  'border-t-2 shadow-[0px_-5px_20px_0px_rgba(0,0,0,0.1)] [&>td]:!border-b-0': isScrolled
@@ -20605,7 +20607,14 @@ const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref)
20605
20607
  'data-table-editing-mode': (_table3$meta$editing = table3.meta.editing) !== null && _table3$meta$editing !== void 0 && _table3$meta$editing.isEditing ? (_table3$meta$editing2 = table3.meta.editing) !== null && _table3$meta$editing2 !== void 0 && _table3$meta$editing2.isDetailedMode ? 'detailed' : 'normal' : undefined,
20606
20608
  enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing
20607
20609
  };
20608
- const hasAlertErrors = table3.meta.editing.getErrorsShownInAlert().length;
20610
+ const rowsById = table3.instance.getCoreRowModel().rowsById;
20611
+ const hasAlertErrors = table3.meta.editing.getErrorsShownInAlert().filter(row => {
20612
+ if (table3.meta.server._experimentalDataLoader2) {
20613
+ // consumers of dataloader2 need to run a cleanup function, as this would otherwise return false when pages are unloaded.
20614
+ return true;
20615
+ }
20616
+ return rowsById[row.rowId];
20617
+ }).length;
20609
20618
  const hasCreateWorkflow = table3.meta.editing.isEnabled && props.onEditingCreate;
20610
20619
  const isScrolled = isTableScrolled(table3.ref);
20611
20620
  let createWorkflow;
@@ -20661,7 +20670,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
20661
20670
  orientation = 'horizontal',
20662
20671
  ...otherProps
20663
20672
  } = props;
20664
- const className = cn({
20673
+ const className = cn__default({
20665
20674
  'flex w-full': orientation === 'vertical'
20666
20675
  }, props.className);
20667
20676
  return /*#__PURE__*/React.createElement(TabsPrimitive.Root, Object.assign({}, otherProps, {
@@ -20679,7 +20688,7 @@ const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
20679
20688
  const {
20680
20689
  children
20681
20690
  } = props;
20682
- const className = cn('border-grey-300 flex flex-row m-0 mb-4 print:hidden', 'aria-orientation-horizontal:border-b', 'aria-orientation-vertical:border-r aria-orientation-vertical:m-0 aria-orientation-vertical:mr-4 aria-orientation-vertical:flex-col', props.className);
20691
+ const className = cn__default('border-grey-300 flex flex-row m-0 mb-4 print:hidden', 'aria-orientation-horizontal:border-b', 'aria-orientation-vertical:border-r aria-orientation-vertical:m-0 aria-orientation-vertical:mr-4 aria-orientation-vertical:flex-col', props.className);
20683
20692
  return /*#__PURE__*/React.createElement(TabsPrimitive.List, Object.assign({}, props, {
20684
20693
  className: className,
20685
20694
  ref: ref
@@ -20702,13 +20711,13 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
20702
20711
  tooltip,
20703
20712
  ...otherProps
20704
20713
  } = props;
20705
- const triggerClassName = cn(props.className, 'group relative p-0.5 outline-none disabled:cursor-not-allowed disabled:text-black/50',
20714
+ const triggerClassName = cn__default(props.className, 'group relative p-0.5 outline-none disabled:cursor-not-allowed disabled:text-black/50',
20706
20715
  // horizontal
20707
20716
  '[[aria-orientation="horizontal"]_&]:pb-1',
20708
20717
  // horizontal
20709
20718
  '[[aria-orientation="vertical"]_&]:pr-1');
20710
- const buttonClassName = cn(getButtonClasses(), 'group-focus-visible:yt-focus-inset group-enabled:group-hover:wcag-grey-200 pointer-events-none rounded px-3');
20711
- const activeClassName = cn('pointer-events-none absolute hidden bg-blue-500 group-aria-selected:flex',
20719
+ const buttonClassName = cn__default(getButtonClasses(), 'group-focus-visible:yt-focus-inset group-enabled:group-hover:wcag-grey-200 pointer-events-none rounded px-3');
20720
+ const activeClassName = cn__default('pointer-events-none absolute hidden bg-blue-500 group-aria-selected:flex',
20712
20721
  // horizontal
20713
20722
  '[[aria-orientation="horizontal"]_&]:rounded-t-sm [[aria-orientation="horizontal"]_&]:bottom-0 [[aria-orientation="horizontal"]_&]:left-0 [[aria-orientation="horizontal"]_&]:right-0 [[aria-orientation="horizontal"]_&]:-mb-px [[aria-orientation="horizontal"]_&]:h-0.5',
20714
20723
  // vertical
@@ -20735,7 +20744,7 @@ const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
20735
20744
  id,
20736
20745
  ...otherProps
20737
20746
  } = props;
20738
- const className = cn('[&[data-orientation="vertical"]]:grow outline-none', props.className);
20747
+ const className = cn__default('[&[data-orientation="vertical"]]:grow outline-none', props.className);
20739
20748
  return /*#__PURE__*/React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
20740
20749
  className: className,
20741
20750
  ref: ref,
@@ -21039,7 +21048,7 @@ function Legend(props) {
21039
21048
  return /*#__PURE__*/React__default.createElement("div", {
21040
21049
  className: "mx-auto w-auto max-w-full overflow-hidden"
21041
21050
  }, /*#__PURE__*/React__default.createElement("div", {
21042
- className: cn('mb-0 ml-0 flex justify-center', {
21051
+ className: cn__default('mb-0 ml-0 flex justify-center', {
21043
21052
  'flex-col': layout === 'vertical'
21044
21053
  })
21045
21054
  }, /*#__PURE__*/React__default.createElement(OverflowGroup, {
@@ -21047,7 +21056,7 @@ function Legend(props) {
21047
21056
  moreButton: moreButton
21048
21057
  }, payload.map((entry, index) => (/*#__PURE__*/React__default.createElement("span", {
21049
21058
  key: `${entry.dataKey}-${index}`,
21050
- className: cn(' hover:bg-grey-100 cursor-pointer px-[8px] py-[2px] hover:rounded-[4px]', {
21059
+ className: cn__default(' hover:bg-grey-100 cursor-pointer px-[8px] py-[2px] hover:rounded-[4px]', {
21051
21060
  'bg-grey-100 rounded': activeIndex === index
21052
21061
  }),
21053
21062
  onMouseEnter: () => handleMouseEnter(entry, index),
@@ -21056,7 +21065,7 @@ function Legend(props) {
21056
21065
  }, /*#__PURE__*/React__default.createElement("span", {
21057
21066
  className: "text-grey-700 flex items-center gap-[4px]"
21058
21067
  }, /*#__PURE__*/React__default.createElement("span", {
21059
- className: cn('-mt-px ml-1 flex h-3 w-3 rounded-sm', {
21068
+ className: cn__default('-mt-px ml-1 flex h-3 w-3 rounded-sm', {
21060
21069
  'border-grey-300 border !bg-white': !activeItems[entry.dataKey]
21061
21070
  }),
21062
21071
  style: {
@@ -21339,7 +21348,7 @@ const Legend$1 = ({
21339
21348
  const isHovered = isTotal ? isTotalLegendHovered : hoveredItem.includes(itemData.id);
21340
21349
  return /*#__PURE__*/React__default.createElement("li", {
21341
21350
  key: isTotal ? 'total' : `${itemData.label}-${index}`,
21342
- className: cn('mr-2 flex cursor-pointer gap-2 rounded pl-0 pr-1', {
21351
+ className: cn__default('mr-2 flex cursor-pointer gap-2 rounded pl-0 pr-1', {
21343
21352
  'bg-grey-100': isHovered && (!isTotal || legendPosition === 'right'),
21344
21353
  'bg-grey-200': isSelected && (!isTotal || legendPosition === 'right')
21345
21354
  }),
@@ -21349,7 +21358,7 @@ const Legend$1 = ({
21349
21358
  }, legendPosition === 'bottom' ? (/*#__PURE__*/React__default.createElement("div", {
21350
21359
  className: "flex items-center gap-1"
21351
21360
  }, /*#__PURE__*/React__default.createElement("span", {
21352
- className: cn('ml-1 h-3 w-3 rounded-sm', {
21361
+ className: cn__default('ml-1 h-3 w-3 rounded-sm', {
21353
21362
  'border-grey-300 border !bg-white': !visibleItems[itemData.id]
21354
21363
  }),
21355
21364
  style: {
@@ -21371,13 +21380,13 @@ const Legend$1 = ({
21371
21380
  appearance: "transparent",
21372
21381
  className: "text-grey-700"
21373
21382
  }, moreButtonText));
21374
- const className = cn('flex-grow pl-4', {
21383
+ const className = cn__default('flex-grow pl-4', {
21375
21384
  'w-full': legendPosition === 'bottom'
21376
21385
  });
21377
21386
  return /*#__PURE__*/React__default.createElement("div", {
21378
21387
  className: className
21379
21388
  }, /*#__PURE__*/React__default.createElement("ul", {
21380
- className: cn('mb-0 ml-0 mt-4 flex justify-center space-y-1', legendPosition === 'right' ? 'flex-col gap-1' : 'flex-row')
21389
+ className: cn__default('mb-0 ml-0 mt-4 flex justify-center space-y-1', legendPosition === 'right' ? 'flex-col gap-1' : 'flex-row')
21381
21390
  }, legendPosition === 'right' ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, renderLegendItem(null), data.map(renderLegendItem))) : (/*#__PURE__*/React__default.createElement(OverflowGroup, {
21382
21391
  className: "w-full items-center py-1",
21383
21392
  moreButton: moreButton
@@ -21425,7 +21434,7 @@ const ActiveShape = props => {
21425
21434
  } = props;
21426
21435
  return /*#__PURE__*/React__default.createElement("g", {
21427
21436
  onClick: () => onClick(id),
21428
- className: cn({
21437
+ className: cn__default({
21429
21438
  'cursor-pointer': !!onClick
21430
21439
  })
21431
21440
  }, /*#__PURE__*/React__default.createElement(Recharts.Sector, {
@@ -21551,7 +21560,7 @@ const DonutChart = function DonutChart({
21551
21560
  }));
21552
21561
  };
21553
21562
  return /*#__PURE__*/React__default.createElement("div", {
21554
- className: cn('relative h-full w-full', {
21563
+ className: cn__default('relative h-full w-full', {
21555
21564
  [`flex `]: showLegend,
21556
21565
  'flex-col items-center': legendPosition === 'bottom'
21557
21566
  }),
@@ -21667,7 +21676,7 @@ const Button$4 = /*#__PURE__*/React__default.forwardRef(function Button(props, r
21667
21676
  const {
21668
21677
  ...attributes
21669
21678
  } = props;
21670
- const className = cn(getButtonClasses$1(), props.className);
21679
+ const className = cn__default(getButtonClasses$1(), props.className);
21671
21680
  return /*#__PURE__*/React__default.createElement(IconButton, Object.assign({}, attributes, {
21672
21681
  appearance: "discrete",
21673
21682
  className: className,
@@ -21675,7 +21684,7 @@ const Button$4 = /*#__PURE__*/React__default.forwardRef(function Button(props, r
21675
21684
  ref: ref
21676
21685
  }));
21677
21686
  });
21678
- const getButtonClasses$1 = (rounded = true) => cn('!h-9 !w-9 flex-shrink-0 flex-grow-0 cursor-pointer relative', 'focus:!outline-none focus:!shadow-none focus-visible:!yt-focus-dark ', 'bg-transparent enabled:hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', 'text-white', {
21687
+ const getButtonClasses$1 = (rounded = true) => cn__default('!h-9 !w-9 flex-shrink-0 flex-grow-0 cursor-pointer relative', 'focus:!outline-none focus:!shadow-none focus-visible:!yt-focus-dark ', 'bg-transparent enabled:hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', 'text-white', {
21679
21688
  '!rounded-full': rounded
21680
21689
  });
21681
21690
 
@@ -21690,7 +21699,7 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
21690
21699
  const {
21691
21700
  texts
21692
21701
  } = useLocalization();
21693
- const className = cn(getLinkClasses(icon), 'relative', props.className);
21702
+ const className = cn__default(getLinkClasses(icon), 'relative', props.className);
21694
21703
  const link = /*#__PURE__*/React__default.createElement("a", Object.assign({}, otherProps, {
21695
21704
  className: className,
21696
21705
  "data-taco": "header-link",
@@ -21710,13 +21719,13 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
21710
21719
  }
21711
21720
  return link;
21712
21721
  });
21713
- const getLinkClasses = (icon = undefined) => cn('flex h-8 flex-shrink-0 flex-grow-0 cursor-pointer items-center justify-center ', 'focus:!shadow-none focus:!outline-none focus-visible:!yt-focus-dark', 'bg-transparent hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', 'text-white hover:text-white focus:text-white', {
21722
+ const getLinkClasses = (icon = undefined) => cn__default('flex h-8 flex-shrink-0 flex-grow-0 cursor-pointer items-center justify-center ', 'focus:!shadow-none focus:!outline-none focus-visible:!yt-focus-dark', 'bg-transparent hover:bg-white/[.08] focus:bg-white/[.08] aria-current-page:bg-white/[.08]', 'text-white hover:text-white focus:text-white', {
21714
21723
  '!rounded-full !h-9 !w-9': icon,
21715
21724
  'whitespace-nowrap px-3 rounded text-sm hidden lg:flex': !icon
21716
21725
  });
21717
21726
 
21718
21727
  const Logo = /*#__PURE__*/React__default.forwardRef(function Logo(props, ref) {
21719
- const className = cn('h-7 w-7 m-1 self-center justify-self-center flex-shrink-0 flex-grow-0', props.className);
21728
+ const className = cn__default('h-7 w-7 m-1 self-center justify-self-center flex-shrink-0 flex-grow-0', props.className);
21720
21729
  return /*#__PURE__*/React__default.createElement("svg", Object.assign({}, props, {
21721
21730
  className: className,
21722
21731
  ref: ref,
@@ -21733,7 +21742,7 @@ const Logo = /*#__PURE__*/React__default.forwardRef(function Logo(props, ref) {
21733
21742
  })));
21734
21743
  });
21735
21744
  const LogoLegacy = /*#__PURE__*/React__default.forwardRef(function Logo(props, ref) {
21736
- const className = cn('-mr-[156px] xs:-mr-14 md:!mr-0 h-9 shrink-0 w-[180px] px-1', props.className);
21745
+ const className = cn__default('-mr-[156px] xs:-mr-14 md:!mr-0 h-9 shrink-0 w-[180px] px-1', props.className);
21737
21746
  return /*#__PURE__*/React__default.createElement("svg", Object.assign({}, props, {
21738
21747
  className: className,
21739
21748
  ref: ref,
@@ -21805,9 +21814,9 @@ const PrimaryNavigation = /*#__PURE__*/React__default.forwardRef(function Primar
21805
21814
  texts
21806
21815
  } = useLocalization();
21807
21816
  const internalRef = useMergedRef(ref);
21808
- const className = cn('flex h-full w-full flex-grow items-center overflow-hidden active:outline-none relative', props.className);
21817
+ const className = cn__default('flex h-full w-full flex-grow items-center overflow-hidden active:outline-none relative', props.className);
21809
21818
  const moreButton = () => (/*#__PURE__*/React__default.createElement(Button$1, {
21810
- className: cn(getLinkClasses(), '!bg-transparent aria-expanded:!bg-white/[.08]')
21819
+ className: cn__default(getLinkClasses(), '!bg-transparent aria-expanded:!bg-white/[.08]')
21811
21820
  }, texts.header.more));
21812
21821
  return /*#__PURE__*/React__default.createElement("nav", Object.assign({}, props, {
21813
21822
  className: className,
@@ -21819,7 +21828,7 @@ const PrimaryNavigation = /*#__PURE__*/React__default.forwardRef(function Primar
21819
21828
  });
21820
21829
 
21821
21830
  const SecondaryNavigation = /*#__PURE__*/React__default.forwardRef(function SecondaryNavigation(props, ref) {
21822
- const className = cn('flex h-full items-center gap-2 mb-0 flex-shrink-0 mr-2', props.className);
21831
+ const className = cn__default('flex h-full items-center gap-2 mb-0 flex-shrink-0 mr-2', props.className);
21823
21832
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
21824
21833
  className: className,
21825
21834
  ref: ref
@@ -21827,7 +21836,7 @@ const SecondaryNavigation = /*#__PURE__*/React__default.forwardRef(function Seco
21827
21836
  });
21828
21837
 
21829
21838
  const MenuButton = /*#__PURE__*/React__default.forwardRef(function MenuButton(props, ref) {
21830
- const className = cn(getButtonClasses$1(false), 'mr-1 !bg-transparent hover:!bg-white/[.08] focus:!bg-white/[.08]] lg:hidden z-[2] !text-white');
21839
+ const className = cn__default(getButtonClasses$1(false), 'mr-1 !bg-transparent hover:!bg-white/[.08] focus:!bg-white/[.08]] lg:hidden z-[2] !text-white');
21831
21840
  return /*#__PURE__*/React__default.createElement(IconButton, Object.assign({}, props, {
21832
21841
  className: className,
21833
21842
  "data-taco": "header-toggle-sidebar",
@@ -21847,7 +21856,7 @@ const AgreementAvatar = /*#__PURE__*/React__default.forwardRef(function Agreemen
21847
21856
  const handleError = event => {
21848
21857
  event.target.src = fallbackSrc;
21849
21858
  };
21850
- const className = cn('h-9 w-9 rounded-full shrink-0 group-focus:yt-focus-dark xl:group-focus:shadow-none', {
21859
+ const className = cn__default('h-9 w-9 rounded-full shrink-0 group-focus:yt-focus-dark xl:group-focus:shadow-none', {
21851
21860
  visible: loaded
21852
21861
  }, props.className);
21853
21862
  return /*#__PURE__*/React__default.createElement("img", Object.assign({}, otherProps, {
@@ -21884,7 +21893,7 @@ const AgreementItem = props => {
21884
21893
  fallbackImageSrc,
21885
21894
  ...agreement
21886
21895
  } = props;
21887
- const className = cn('w-full rounded flex px-2 gap-2 overflow-hidden text-left items-center', customClassName);
21896
+ const className = cn__default('w-full rounded flex px-2 gap-2 overflow-hidden text-left items-center', customClassName);
21888
21897
  return /*#__PURE__*/React__default.createElement("span", {
21889
21898
  className: className
21890
21899
  }, /*#__PURE__*/React__default.createElement(AgreementAvatar, {
@@ -21916,7 +21925,7 @@ const AgreementDisplay = props => {
21916
21925
  } = props;
21917
21926
  const isXlScreen = useMatchMedia('(min-width: 1280px)', window.innerWidth > 1280);
21918
21927
  if (isXlScreen) {
21919
- const className = cn('h-12 flex-grow xl:[button>&]:hover:bg-white/[0.16]', props.className);
21928
+ const className = cn__default('h-12 flex-grow xl:[button>&]:hover:bg-white/[0.16]', props.className);
21920
21929
  return /*#__PURE__*/React__default.createElement(AgreementItem, Object.assign({}, currentAgreement, {
21921
21930
  children: children,
21922
21931
  className: className,
@@ -22065,7 +22074,7 @@ function AgreementDisplay$1(props) {
22065
22074
  }
22066
22075
 
22067
22076
  const Header$6 = /*#__PURE__*/React__default.forwardRef(function Header(props, ref) {
22068
- const className = cn('bg-blue-900 flex h-16 w-full shrink-0 items-center gap-2 pl-4', '[&>*:focus-visible]:yt-focus-dark [&>*]:rounded',
22077
+ const className = cn__default('bg-blue-900 flex h-16 w-full shrink-0 items-center gap-2 pl-4', '[&>*:focus-visible]:yt-focus-dark [&>*]:rounded',
22069
22078
  // styles for logo wrapped inside an anchor
22070
22079
  props.className);
22071
22080
  return /*#__PURE__*/React__default.createElement("header", Object.assign({}, props, {
@@ -22089,7 +22098,7 @@ const LayoutContext = /*#__PURE__*/React__default.createContext({
22089
22098
  });
22090
22099
 
22091
22100
  const Content$9 = /*#__PURE__*/React__default.forwardRef(function LayoutContent(props, ref) {
22092
- const className = cn('flex-grow overflow-y-auto print:overflow-visible print:h-full print:!p-0 bg-white flex flex-shrink flex-col relative', props.className);
22101
+ const className = cn__default('flex-grow overflow-y-auto print:overflow-visible print:h-full print:!p-0 bg-white flex flex-shrink flex-col relative', props.className);
22093
22102
  return /*#__PURE__*/React__default.createElement("main", Object.assign({}, props, {
22094
22103
  className: className,
22095
22104
  ref: ref
@@ -22131,7 +22140,7 @@ const Sidebar = /*#__PURE__*/React__default.forwardRef(function LayoutSidebar(pr
22131
22140
  }, [isSmallScreen, sidebarOpen]);
22132
22141
  const showBackdrop = isSmallScreen && sidebarOpen === true;
22133
22142
  const [ready, setReady] = React__default.useState(isSmallScreen);
22134
- const className = cn('bg-grey-50 h-full w-64 flex-shrink-0 flex-grow-0 print:hidden', {
22143
+ const className = cn__default('bg-grey-50 h-full w-64 flex-shrink-0 flex-grow-0 print:hidden', {
22135
22144
  'absolute z-10 aria-hidden:-translate-x-64 ': isSmallScreen,
22136
22145
  // prevent animation when crossing the boundary from large to small screen,
22137
22146
  // this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)
@@ -22185,7 +22194,7 @@ const Top = props => {
22185
22194
  };
22186
22195
 
22187
22196
  const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, ref) {
22188
- const className = cn('flex flex-grow overflow-hidden print:overflow-visible print:h-full relative', props.className);
22197
+ const className = cn__default('flex flex-grow overflow-hidden print:overflow-visible print:h-full relative', props.className);
22189
22198
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
22190
22199
  className: className,
22191
22200
  ref: ref
@@ -22194,7 +22203,7 @@ const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, r
22194
22203
 
22195
22204
  const Layout$1 = /*#__PURE__*/React__default.forwardRef(function Layout(props, ref) {
22196
22205
  const [sidebarOpen, setSidebarOpen] = React__default.useState(false);
22197
- const className = cn('flex h-screen w-screen flex-col overflow-hidden print:overflow-visible print:h-full relative', props.className);
22206
+ const className = cn__default('flex h-screen w-screen flex-col overflow-hidden print:overflow-visible print:h-full relative', props.className);
22198
22207
  return /*#__PURE__*/React__default.createElement(LayoutContext.Provider, {
22199
22208
  value: {
22200
22209
  sidebarOpen,
@@ -22219,7 +22228,7 @@ const Group$6 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref
22219
22228
  ...attributes
22220
22229
  } = props;
22221
22230
  const [expanded, setExpanded] = React__default.useState(defaultExpanded);
22222
- const className = cn('flex w-full cursor-pointer items-center rounded px-3 font-bold text-left leading-8 hover:bg-black/[.06] focus-visible:yt-focus-dark', attributes.className);
22231
+ const className = cn__default('flex w-full cursor-pointer items-center rounded px-3 font-bold text-left leading-8 hover:bg-black/[.06] focus-visible:yt-focus-dark', attributes.className);
22223
22232
  const handleClick = event => {
22224
22233
  setExpanded(!expanded);
22225
22234
  if (onClick) {
@@ -22243,14 +22252,14 @@ const Group$6 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref
22243
22252
  }), /*#__PURE__*/React__default.createElement("span", {
22244
22253
  className: "flex-grow truncate"
22245
22254
  }, heading)), /*#__PURE__*/React__default.createElement("ul", {
22246
- className: cn('mb-0 flex flex-col gap-y-px pt-px', {
22255
+ className: cn__default('mb-0 flex flex-col gap-y-px pt-px', {
22247
22256
  hidden: !expanded
22248
22257
  }),
22249
22258
  role: "menu"
22250
22259
  }, children));
22251
22260
  });
22252
22261
 
22253
- const getAdjacentClasses = () => cn(
22262
+ const getAdjacentClasses = () => cn__default(
22254
22263
  // styling if the element is proceeded by a link item
22255
22264
  '[[role=menubar]>[data-taco=navigation2-link-item]+&]:mt-2', "[[role=menubar]>[data-taco='navigation2-link-item']+&]:border-t-2", "[[role=menubar]>[data-taco='navigation2-link-item']+&]:pt-2 ",
22256
22265
  // styling if the element is proceeded by content
@@ -22258,7 +22267,7 @@ const getAdjacentClasses = () => cn(
22258
22267
  // styling if the element is proceeded by a section
22259
22268
  "[[role=menubar]>[data-taco='navigation2-section']+&]:border-t-2", "[[role=menubar]>[data-taco='navigation2-section']+&]:pt-2");
22260
22269
 
22261
- const getNavigationLinkClasses = (isDraggedOver = false) => cn('group relative flex w-full items-center rounded leading-8 !text-black px-2 focus-visible:yt-focus-dark',
22270
+ const getNavigationLinkClasses = (isDraggedOver = false) => cn__default('group relative flex w-full items-center rounded leading-8 !text-black px-2 focus-visible:yt-focus-dark',
22262
22271
  // override styles for links that are children of collapsible menus
22263
22272
  'font-bold [[role=menu]>li>&]:font-normal [[role=menu]>li>&]:pl-5',
22264
22273
  // override styles to adjust icons included in menu links
@@ -22279,8 +22288,8 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
22279
22288
  ...attributes
22280
22289
  } = props;
22281
22290
  const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
22282
- const className = cn(getNavigationLinkClasses(isDraggedOver), attributes.className);
22283
- const listClassName = cn('[[role=menubar]>&]:px-3 border-grey-200', getAdjacentClasses(), {
22291
+ const className = cn__default(getNavigationLinkClasses(isDraggedOver), attributes.className);
22292
+ const listClassName = cn__default('[[role=menubar]>&]:px-3 border-grey-200', getAdjacentClasses(), {
22284
22293
  '[&>*]:pointer-events-none': isDraggedOver
22285
22294
  });
22286
22295
  return /*#__PURE__*/React__default.createElement("li", Object.assign({}, dropTargetProps, {
@@ -22304,7 +22313,7 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
22304
22313
  icon: "more",
22305
22314
  "aria-label": "More",
22306
22315
  rounded: true,
22307
- className: cn('-mr-1.5 hidden flex-shrink-0 flex-grow-0 transition-none group-hover:flex aria-expanded:flex', {
22316
+ className: cn__default('-mr-1.5 hidden flex-shrink-0 flex-grow-0 transition-none group-hover:flex aria-expanded:flex', {
22308
22317
  'absolute right-0 !mr-0.5': total !== undefined
22309
22318
  }),
22310
22319
  menu: menu,
@@ -22313,7 +22322,7 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
22313
22322
  event.stopPropagation();
22314
22323
  }
22315
22324
  })) : null, total !== undefined ? (/*#__PURE__*/React__default.createElement(Badge, {
22316
- className: cn('flex-shrink-0 flex-grow-0 !font-normal', {
22325
+ className: cn__default('flex-shrink-0 flex-grow-0 !font-normal', {
22317
22326
  'group-hover:hidden [[aria-expanded="true"]+&]:hidden ': menu
22318
22327
  }),
22319
22328
  color: "transparent"
@@ -22326,7 +22335,7 @@ const Section = /*#__PURE__*/React__default.forwardRef(function Navigation2(prop
22326
22335
  heading,
22327
22336
  ...attributes
22328
22337
  } = props;
22329
- const className = cn('w-full overflow-auto px-3 py-2 flex-grow border-grey-200 bg-grey-50 [[role=menubar]>&:first-child]:pt-0', getAdjacentClasses(), props.className);
22338
+ const className = cn__default('w-full overflow-auto px-3 py-2 flex-grow border-grey-200 bg-grey-50 [[role=menubar]>&:first-child]:pt-0', getAdjacentClasses(), props.className);
22330
22339
  return /*#__PURE__*/React__default.createElement("li", Object.assign({}, attributes, {
22331
22340
  className: className,
22332
22341
  "data-taco": "navigation2-section",
@@ -22344,7 +22353,7 @@ const Content$a = /*#__PURE__*/React__default.forwardRef(function Navigation2(pr
22344
22353
  children,
22345
22354
  ...attributes
22346
22355
  } = props;
22347
- const className = cn('w-full overflow-auto p-3 mt-auto border-grey-200 flex-shrink-0 z-10 bg-grey-50 [[role=menubar]>&:last-child]:pb-0', getAdjacentClasses(), props.className);
22356
+ const className = cn__default('w-full overflow-auto p-3 mt-auto border-grey-200 flex-shrink-0 z-10 bg-grey-50 [[role=menubar]>&:last-child]:pb-0', getAdjacentClasses(), props.className);
22348
22357
  return /*#__PURE__*/React__default.createElement("li", Object.assign({}, attributes, {
22349
22358
  className: className,
22350
22359
  "data-taco": "navigation2-content",
@@ -22358,7 +22367,7 @@ const Navigation2 = /*#__PURE__*/React__default.forwardRef(function Navigation2(
22358
22367
  children,
22359
22368
  ...attributes
22360
22369
  } = props;
22361
- const className = cn('m-0 py-2 flex flex-col gap-y-px overflow-auto h-full w-full bg-grey-50', props.className);
22370
+ const className = cn__default('m-0 py-2 flex flex-col gap-y-px overflow-auto h-full w-full bg-grey-50', props.className);
22362
22371
  return /*#__PURE__*/React__default.createElement("ul", Object.assign({}, attributes, {
22363
22372
  className: className,
22364
22373
  "data-taco": "navigation2",