@economic/taco 2.50.1-alpha.0 → 2.50.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,7 +5206,7 @@ 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', {
5209
+ const className = cn__default('flex-grow overflow-auto', {
5212
5210
  'px-4 pb-4': !noPadding
5213
5211
  }, props.className);
5214
5212
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
@@ -5225,7 +5223,7 @@ 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",
@@ -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,7 +5298,7 @@ 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 focus-visible:yt-focus disabled:cursor-not-allowed text-white', {
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', {
5304
5302
  'self-start': !!label,
5305
5303
  'mt-[0.1rem]': !label
5306
5304
  }, invalid ? {
@@ -5327,7 +5325,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
5327
5325
  event.currentTarget.click();
5328
5326
  }
5329
5327
  };
5330
- const spinnerClassname = cn(
5328
+ const spinnerClassname = cn__default(
5331
5329
  //Spinner is slightly bigger then 'line' and 'tick' icons, so making it 2px smaller from each side
5332
5330
  "m-0.5 !h-[calc(100%-theme('spacing.1'))] !w-[calc(100%-theme('spacing.1'))]", {
5333
5331
  'text-blue-500': !checked && !indeterminate
@@ -5349,7 +5347,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(props, ref) {
5349
5347
  className: "!h-full !w-full"
5350
5348
  }))));
5351
5349
  if (label) {
5352
- const labelContainerClassName = cn('flex items-center cursor-pointer gap-2', {
5350
+ const labelContainerClassName = cn__default('flex items-center cursor-pointer gap-2', {
5353
5351
  'cursor-not-allowed text-grey-300': props.disabled
5354
5352
  });
5355
5353
  return /*#__PURE__*/React.createElement("span", {
@@ -5368,7 +5366,7 @@ const getInputClasses = props => {
5368
5366
  const disabled = props.disabled || !!props['aria-disabled'];
5369
5367
  const readOnly = props.readOnly || !!props['aria-readonly'];
5370
5368
  const invalid = props.invalid || !!props['aria-invalid'];
5371
- 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',
5372
5370
  // hide the arrow controls on input[type=number]
5373
5371
  '[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none', {
5374
5372
  'bg-white': !props.highlighted && !readOnly,
@@ -5387,7 +5385,7 @@ const getInputClasses = props => {
5387
5385
  };
5388
5386
  const getButtonStateClasses = (invalid, disabled = false) => {
5389
5387
  if (invalid) {
5390
- 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', {
5391
5389
  'border-red-500/30': disabled
5392
5390
  });
5393
5391
  }
@@ -5497,7 +5495,7 @@ const InputWithoutDeprecatedFeatures = /*#__PURE__*/React.forwardRef(function In
5497
5495
  const prefixRect = useBoundingClientRectListener(prefixRef);
5498
5496
  const postfixRef = React.useRef(null);
5499
5497
  const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);
5500
- const className = cn(getInputClasses(props), {
5498
+ const className = cn__default(getInputClasses(props), {
5501
5499
  'pl-8': !!prefix,
5502
5500
  'pr-8': !!postfix
5503
5501
  }, attributes.className);
@@ -5552,7 +5550,7 @@ const Affix = /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(function Aff
5552
5550
  type
5553
5551
  } = props;
5554
5552
  return /*#__PURE__*/React.createElement("div", {
5555
- 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',
5556
5554
  // icon
5557
5555
  '[&_[data-taco="icon"]]:!h-5 [&_[data-taco="icon"]]:!w-5', {
5558
5556
  'text-grey-300': disabled,
@@ -5574,7 +5572,7 @@ const Input = /*#__PURE__*/React.forwardRef(function LegacyInput(props, ref) {
5574
5572
  let postfix;
5575
5573
  if (button) {
5576
5574
  const disabled = button.props.disabled || attributes.disabled;
5577
- 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);
5578
5576
  postfix = /*#__PURE__*/React.cloneElement(button, {
5579
5577
  className: buttonClassName,
5580
5578
  disabled
@@ -5750,7 +5748,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
5750
5748
  'aria-selected': multiselect ? getOptionCheckedState(String(option.value), index) : currentIndex === index,
5751
5749
  'data-focused': currentIndex === index,
5752
5750
  children: option.text,
5753
- 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', {
5754
5752
  'sticky top-0 font-bold': depth === 0 && !!option.hasChildren
5755
5753
  }),
5756
5754
  disabled: option.disabled,
@@ -5767,7 +5765,7 @@ const ScrollableList = /*#__PURE__*/React.forwardRef(function ScrollableList(pro
5767
5765
  });
5768
5766
  const list = {
5769
5767
  ...otherProps,
5770
- 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), {
5771
5769
  'yt-list--multiselect': multiselect,
5772
5770
  'pointer-events-none': disabled,
5773
5771
  'cursor-not-allowed': disabled || readOnly
@@ -6248,7 +6246,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
6248
6246
  texts
6249
6247
  } = useLocalization();
6250
6248
  const selectDimensions = useBoundingClientRectListener(internalRef);
6251
- const className = cn('inline-flex relative', {
6249
+ const className = cn__default('inline-flex relative', {
6252
6250
  'yt-combobox--inline': props.inline
6253
6251
  }, externalClassName);
6254
6252
  return /*#__PURE__*/React.createElement("span", {
@@ -6299,7 +6297,7 @@ const Combobox = /*#__PURE__*/React.forwardRef(function Combobox(props, ref) {
6299
6297
  },
6300
6298
  sideOffset: 4
6301
6299
  }, /*#__PURE__*/React.createElement(ScrollableList, Object.assign({}, list, {
6302
- 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'),
6303
6301
  style: {
6304
6302
  minWidth: selectDimensions === null || selectDimensions === void 0 ? void 0 : selectDimensions.width
6305
6303
  },
@@ -6530,7 +6528,7 @@ const Content$3 = /*#__PURE__*/React.forwardRef(function PopoverContent(props, r
6530
6528
  placement: side,
6531
6529
  ...popoverContentProps
6532
6530
  } = props;
6533
- const className = cn(getPopoverStyleClassnames(), props.className);
6531
+ const className = cn__default(getPopoverStyleClassnames(), props.className);
6534
6532
  let output;
6535
6533
  if (typeof props.children === 'function') {
6536
6534
  output = /*#__PURE__*/React.createElement(PopoverPrimitive.Close, {
@@ -6599,7 +6597,7 @@ const Datepicker = /*#__PURE__*/React.forwardRef(function Datepicker(props, ref)
6599
6597
  const {
6600
6598
  texts
6601
6599
  } = useLocalization();
6602
- 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);
6603
6601
  const popoverContentRef = React.useRef(null);
6604
6602
  const handleOpenAutofocus = React.useCallback(e => {
6605
6603
  var _popoverContentRef$cu, _popoverContentRef$cu2;
@@ -6761,14 +6759,14 @@ const useDraggable = ref => {
6761
6759
  };
6762
6760
 
6763
6761
  const Title$1 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
6764
- const className = cn('text-center', props.className);
6762
+ const className = cn__default('text-center', props.className);
6765
6763
  return /*#__PURE__*/React.createElement(DialogPrimitive.Title, Object.assign({}, props, {
6766
6764
  className: className,
6767
6765
  ref: ref
6768
6766
  }));
6769
6767
  });
6770
6768
  const Footer$1 = /*#__PURE__*/React.forwardRef(function DialogFooter(props, ref) {
6771
- const className = cn('mt-8 flex justify-end', props.className);
6769
+ const className = cn__default('mt-8 flex justify-end', props.className);
6772
6770
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
6773
6771
  className: className,
6774
6772
  ref: ref
@@ -6808,8 +6806,8 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
6808
6806
  const {
6809
6807
  texts
6810
6808
  } = useLocalization();
6811
- 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');
6812
- 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',
6813
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.
6814
6812
  'print:overflow-visible print:h-max print:!transform-none print:!inset-0 print:!m-0', {
6815
6813
  'rounded-b-none': !!dialog.elements.extra
@@ -6868,7 +6866,7 @@ const Content$4 = /*#__PURE__*/React.forwardRef(function DialogContent(props, re
6868
6866
  const DialogDrawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props, ref) {
6869
6867
  var _dialog$drawer, _dialog$drawer2;
6870
6868
  const dialog = useCurrentDialog();
6871
- 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);
6872
6870
  return /*#__PURE__*/React.createElement(framerMotion.motion.div, Object.assign({}, props, {
6873
6871
  className: className,
6874
6872
  "data-taco": "dialog-drawer",
@@ -6900,7 +6898,7 @@ const DialogDrawer = /*#__PURE__*/React.forwardRef(function DialogDrawer(props,
6900
6898
  DialogDrawer.displayName = 'DialogDrawer';
6901
6899
 
6902
6900
  const Extra = /*#__PURE__*/React.forwardRef(function DialogExtra(props, ref) {
6903
- 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);
6904
6902
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
6905
6903
  className: className,
6906
6904
  "data-taco": "dialog-extra",
@@ -6982,7 +6980,7 @@ const Group = /*#__PURE__*/React.forwardRef(function Group(props, ref) {
6982
6980
  orientation = 'horizontal',
6983
6981
  ...otherProps
6984
6982
  } = props;
6985
- 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', {
6986
6984
  'flex-col ': orientation === 'vertical'
6987
6985
  }, props.className);
6988
6986
  return /*#__PURE__*/React.createElement(Tag, Object.assign({}, otherProps, {
@@ -7023,7 +7021,7 @@ const getDrawerSizeClassnames = size => {
7023
7021
  }
7024
7022
  };
7025
7023
  const getDrawerContentClassNames = (size, variant, open) => {
7026
- 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', {
7027
7025
  block: open,
7028
7026
  hidden: !open,
7029
7027
  fixed: variant === 'overlay',
@@ -7031,23 +7029,23 @@ const getDrawerContentClassNames = (size, variant, open) => {
7031
7029
  }, getDrawerSizeClassnames(size));
7032
7030
  };
7033
7031
  const getDrawerContainerClassNames = variant => {
7034
- 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 ', {
7035
7033
  'shadow-[0_6px_9px_0_rgba(89,85,98,0.3),0_0_1px_0_rgba(89,85,98,0.2)]': variant === 'overlay',
7036
7034
  'border-l border-grey-300 h-full': variant === 'embedded'
7037
7035
  });
7038
7036
  };
7039
7037
  const getDrawerDragHandlerClassNames = () => {
7040
- 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');
7041
7039
  };
7042
7040
  const getBackdropClassNames = open => {
7043
- return cn({
7041
+ return cn__default({
7044
7042
  block: open,
7045
7043
  hidden: !open
7046
7044
  });
7047
7045
  };
7048
7046
 
7049
7047
  const Bar = props => {
7050
- 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`, {
7051
7049
  'w-[7px] hover:w-[14px] mr-[2px] hover:px-[2px] hover:mr-0': props.orientation === 'vertical',
7052
7050
  'flex-col h-[7px] hover:h-[14px] mb-[2px] hover:py-[2px] hover:mb-0': props.orientation === 'horizontal'
7053
7051
  });
@@ -7067,7 +7065,7 @@ const ScrollArea = props => {
7067
7065
  ...otherProps
7068
7066
  } = props;
7069
7067
  return /*#__PURE__*/React__default.createElement(ScrollAreaPrimitive.Root, Object.assign({}, otherProps, {
7070
- className: cn('overflow-hidden', props.className),
7068
+ className: cn__default('overflow-hidden', props.className),
7071
7069
  "data-taco": "scrollarea"
7072
7070
  }), /*#__PURE__*/React__default.createElement(ScrollAreaPrimitive.Viewport, {
7073
7071
  className: "h-full w-full"
@@ -7118,7 +7116,7 @@ const Title$2 = /*#__PURE__*/React__default.forwardRef(function DrawerTitle(prop
7118
7116
  * where we might want to hide the grey separator. For this reason separator was rendered with using of classNames,
7119
7117
  * so it can be easily overriden in exceptional scenarios.
7120
7118
  * */
7121
- 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);
7122
7120
  React__default.useEffect(() => {
7123
7121
  var _ref$current, _drawer$querySelector, _closeButton$offsetWi, _drawer$querySelector2, _actionsWrapper$offse;
7124
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"]');
@@ -7158,7 +7156,7 @@ const Footer$2 = /*#__PURE__*/React__default.forwardRef(function DrawerFooter(pr
7158
7156
  /**
7159
7157
  * The same scenario as Title, grey separator rendered using classNames to have posibility to override it.
7160
7158
  */
7161
- 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);
7162
7160
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
7163
7161
  className: cName,
7164
7162
  ref: ref
@@ -7169,7 +7167,7 @@ const Actions = /*#__PURE__*/React__default.forwardRef(function Actions(props, r
7169
7167
  className,
7170
7168
  ...otherProps
7171
7169
  } = props;
7172
- 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);
7173
7171
  // Id is added to identify the actions wrapper inside a useEffect in Dialog.Title
7174
7172
  return /*#__PURE__*/React__default.createElement(Group, Object.assign({}, otherProps, {
7175
7173
  className: cName,
@@ -7194,7 +7192,7 @@ const InnerContent = /*#__PURE__*/React__default.forwardRef(function InnerConten
7194
7192
  children,
7195
7193
  ...otherProps
7196
7194
  } = props;
7197
- const cName = cn('grow flex flex-col', {
7195
+ const cName = cn__default('grow flex flex-col', {
7198
7196
  'overflow-y-hidden': isScrollable,
7199
7197
  'p-4': !isScrollable
7200
7198
  }, className);
@@ -7274,7 +7272,7 @@ const DrawerContent = /*#__PURE__*/React__default.forwardRef(function Content(pr
7274
7272
  menu.close();
7275
7273
  };
7276
7274
  }
7277
- const containerClassName = React__default.useMemo(() => cn(getDrawerContainerClassNames(variant), className), [className]);
7275
+ const containerClassName = React__default.useMemo(() => cn__default(getDrawerContainerClassNames(variant), className), [className]);
7278
7276
  const {
7279
7277
  contentClassName,
7280
7278
  dragHandlerClassName
@@ -7395,7 +7393,7 @@ const Trigger$4 = /*#__PURE__*/React.forwardRef(function DrawerTrigger(props, re
7395
7393
  const DEFAULT_OUTLET_NAME = 'default';
7396
7394
  const Outlet = /*#__PURE__*/React.forwardRef(function Outlet(props, ref) {
7397
7395
  var _props$name;
7398
- 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);
7399
7397
  return /*#__PURE__*/React.createElement("div", Object.assign({}, props, {
7400
7398
  className: className,
7401
7399
  "data-taco": "drawer-outlet",
@@ -7501,10 +7499,10 @@ const Field = /*#__PURE__*/React.forwardRef(function Field(props, ref) {
7501
7499
  message,
7502
7500
  ...otherProps
7503
7501
  } = props;
7504
- 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)]', {
7505
7503
  'text-grey-300': disabled
7506
7504
  }, props.className);
7507
- 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', {
7508
7506
  'text-grey-700': !invalid && !warning,
7509
7507
  'text-red-500': invalid,
7510
7508
  'text-yellow-700': warning && !invalid,
@@ -7529,7 +7527,7 @@ const Form = /*#__PURE__*/React.forwardRef(function Form(props, ref) {
7529
7527
  horizontal = false,
7530
7528
  ...otherProps
7531
7529
  } = props;
7532
- const className = cn('yt-form', {
7530
+ const className = cn__default('yt-form', {
7533
7531
  'yt-form--horizontal flex flex-wrap': horizontal
7534
7532
  }, props.className);
7535
7533
  return /*#__PURE__*/React.createElement("form", Object.assign({}, otherProps, {
@@ -7562,7 +7560,7 @@ const Anchor$1 = /*#__PURE__*/React.forwardRef(function HangerAnchor(props, exte
7562
7560
  }), children);
7563
7561
  });
7564
7562
  const Title$3 = /*#__PURE__*/React.forwardRef(function DialogTitle(props, ref) {
7565
- 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);
7566
7564
  return /*#__PURE__*/React.createElement("span", Object.assign({}, props, {
7567
7565
  className: className,
7568
7566
  ref: ref
@@ -7577,7 +7575,7 @@ const Content$6 = /*#__PURE__*/React.forwardRef(function HangerContent(props, re
7577
7575
  const {
7578
7576
  texts
7579
7577
  } = useLocalization();
7580
- 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);
7581
7579
  const handleInteractOutside = event => {
7582
7580
  event.preventDefault();
7583
7581
  };
@@ -7664,7 +7662,7 @@ const Content$7 = /*#__PURE__*/React.forwardRef(function HoverCardContent(props,
7664
7662
  const {
7665
7663
  placement: side
7666
7664
  } = props;
7667
- 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);
7668
7666
  return /*#__PURE__*/React.createElement(HoverCardPrimitive.Portal, null, /*#__PURE__*/React.createElement(HoverCardPrimitive.Content, {
7669
7667
  className: className,
7670
7668
  "data-taco": "hover-card",
@@ -7702,7 +7700,7 @@ const Item$1 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
7702
7700
  title,
7703
7701
  ...attributes
7704
7702
  } = props;
7705
- 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'));
7706
7704
  return /*#__PURE__*/React__default.createElement(Tag, Object.assign({}, attributes, {
7707
7705
  "aria-disabled": disabled ? true : undefined,
7708
7706
  "data-taco": "list-item",
@@ -7774,7 +7772,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
7774
7772
  ...otherProps
7775
7773
  } = props;
7776
7774
  const id = useId(props.id);
7777
- 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', {
7778
7776
  'mr-2': !!label,
7779
7777
  'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
7780
7778
  'bg-grey-500/50 aria-checked:bg-blue-500/50 cursor-not-allowed': props.disabled
@@ -7795,7 +7793,7 @@ const Switch = /*#__PURE__*/React.forwardRef(function Switch(props, ref) {
7795
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]"
7796
7794
  }));
7797
7795
  if (label) {
7798
- const labelContainerClassName = cn('flex self-start cursor-pointer', {
7796
+ const labelContainerClassName = cn__default('flex self-start cursor-pointer', {
7799
7797
  'cursor-not-allowed text-grey-300': props.disabled
7800
7798
  });
7801
7799
  return /*#__PURE__*/React.createElement("span", {
@@ -7844,7 +7842,7 @@ const ToggleItem = /*#__PURE__*/React__default.forwardRef(function Toggle(props,
7844
7842
  return;
7845
7843
  }
7846
7844
  }
7847
- const className = cn('group/toggle', props.className);
7845
+ const className = cn__default('group/toggle', props.className);
7848
7846
  return /*#__PURE__*/React__default.createElement(Item$1, Object.assign({}, attributes, {
7849
7847
  className: className,
7850
7848
  onClick: handleClick,
@@ -8290,7 +8288,7 @@ const Listbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref) {
8290
8288
  list,
8291
8289
  input
8292
8290
  } = useListbox(otherProps, ref);
8293
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
8291
+ const className = cn__default('bg-white inline-flex relative w-full', externalClassName);
8294
8292
  return /*#__PURE__*/React.createElement("span", {
8295
8293
  "data-taco": "listbox",
8296
8294
  className: className
@@ -8313,7 +8311,7 @@ const MultiListbox = /*#__PURE__*/React.forwardRef(function Listbox(props, ref)
8313
8311
  list,
8314
8312
  input
8315
8313
  } = useMultiListbox(otherProps, ref);
8316
- const className = cn('bg-white inline-flex relative w-full', externalClassName);
8314
+ const className = cn__default('bg-white inline-flex relative w-full', externalClassName);
8317
8315
  return /*#__PURE__*/React.createElement("span", {
8318
8316
  "data-taco": "listbox",
8319
8317
  className: className
@@ -8337,7 +8335,7 @@ const Content$8 = /*#__PURE__*/React.forwardRef(function MenuContent(props, ref)
8337
8335
  placement: side,
8338
8336
  ...otherProps
8339
8337
  } = props;
8340
- 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);
8341
8339
  // attach refs to each child
8342
8340
  const childrenRefs = React.useRef([]);
8343
8341
  const childrenWithRefs = React.Children.toArray(props.children).filter(child => !!child) // remove falsey children
@@ -8427,7 +8425,7 @@ const Shortcut = ({
8427
8425
  keys,
8428
8426
  ...props
8429
8427
  }) => {
8430
- const className = cn('inline-flex gap-0.5', props.className);
8428
+ const className = cn__default('inline-flex gap-0.5', props.className);
8431
8429
  const texts = getShortcutText(keys);
8432
8430
  return /*#__PURE__*/React__default.createElement("span", Object.assign({}, props, {
8433
8431
  className: className
@@ -8456,7 +8454,7 @@ const useItemStyling = ({
8456
8454
  menu === null || menu === void 0 ? void 0 : menu.registerIndentation();
8457
8455
  }
8458
8456
  }, [indented]);
8459
- 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', {
8460
8458
  'pl-7': menu === null || menu === void 0 ? void 0 : menu.indented,
8461
8459
  'pl-1.5': !(menu !== null && menu !== void 0 && menu.indented),
8462
8460
  'cursor-pointer text-black hover:wcag-grey-200 data-[highlighted]:wcag-grey-200': !disabled,
@@ -8615,7 +8613,7 @@ const Checkbox$2 = /*#__PURE__*/React.forwardRef(function MenuCheckboxItem(props
8615
8613
  });
8616
8614
 
8617
8615
  const getRadioClassnames = (disabled = false, invalid = false) => {
8618
- 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 ? {
8619
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,
8620
8618
  'border-red-500/50 aria-checked:bg-red-500/50 aria-checked:border-red-500/50': disabled
8621
8619
  } : {
@@ -8638,8 +8636,8 @@ const RadioGroupItem = /*#__PURE__*/React.forwardRef(function RadioGroupItem(pro
8638
8636
  ...otherProps
8639
8637
  } = props;
8640
8638
  const isDisabled = context.disabled || props.disabled;
8641
- const className = cn('self-start', getRadioClassnames(isDisabled, context.invalid));
8642
- 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', {
8643
8641
  'cursor-pointer': !isDisabled,
8644
8642
  'cursor-not-allowed text-grey-300': isDisabled
8645
8643
  }, props.className);
@@ -8706,7 +8704,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref)
8706
8704
  context,
8707
8705
  props: otherProps
8708
8706
  } = useRadioGroup(props);
8709
- const className = cn('flex items-start gap-y-2', {
8707
+ const className = cn__default('flex items-start gap-y-2', {
8710
8708
  'flex-wrap gap-x-4 ': otherProps.orientation === 'horizontal',
8711
8709
  'flex-col': otherProps.orientation === 'vertical'
8712
8710
  }, otherProps.className);
@@ -8751,7 +8749,7 @@ const RadioGroup$1 = /*#__PURE__*/React.forwardRef(function MenuRadioItem(props,
8751
8749
  context,
8752
8750
  props: otherProps
8753
8751
  } = useRadioGroup(props);
8754
- const className = cn('flex flex-col', props.className);
8752
+ const className = cn__default('flex flex-col', props.className);
8755
8753
  return /*#__PURE__*/React.createElement(MenuRadioGroupContext.Provider, {
8756
8754
  value: context
8757
8755
  }, /*#__PURE__*/React.createElement(DropdownMenuPrimitive.RadioGroup, Object.assign({}, otherProps, {
@@ -8771,7 +8769,7 @@ const Separator = /*#__PURE__*/React.forwardRef(function Separator(props, ref) {
8771
8769
 
8772
8770
  const Header = /*#__PURE__*/React.forwardRef(function MenuHeader(props, ref) {
8773
8771
  const menu = useCurrentMenu();
8774
- 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', {
8775
8773
  'pl-7': menu === null || menu === void 0 ? void 0 : menu.indented,
8776
8774
  'pl-1.5': !(menu !== null && menu !== void 0 && menu.indented)
8777
8775
  }, props.className);
@@ -8787,7 +8785,7 @@ const SubMenu = /*#__PURE__*/React.forwardRef(function MenuSubMenu(props, ref) {
8787
8785
  children,
8788
8786
  ...otherProps
8789
8787
  } = props;
8790
- 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);
8791
8789
  return /*#__PURE__*/React.createElement(DropdownMenuPrimitive.Portal, null, /*#__PURE__*/React.createElement(DropdownMenuPrimitive.SubContent, Object.assign({}, otherProps, {
8792
8790
  className: className,
8793
8791
  "data-taco": "menu-submenu",
@@ -8847,7 +8845,7 @@ const ModeSwitch = /*#__PURE__*/React.forwardRef(function ModeSwitch(props, ref)
8847
8845
  onChange,
8848
8846
  ...otherProps
8849
8847
  } = props;
8850
- 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', {
8851
8849
  'bg-grey-500 hover:bg-grey-700 aria-checked:bg-blue-500 aria-checked:hover:bg-blue-700': !props.disabled,
8852
8850
  'bg-grey-500 aria-checked:bg-blue-500 cursor-not-allowed opacity-50': props.disabled
8853
8851
  }, props.className);
@@ -8886,7 +8884,7 @@ const TreeviewGroup = /*#__PURE__*/React__default.forwardRef(function TreeviewGr
8886
8884
  setExpanded(fixed || initialExpanded);
8887
8885
  }
8888
8886
  }, [fixed, initialExpanded]);
8889
- const listClassName = cn('flex-col mb-0', {
8887
+ const listClassName = cn__default('flex-col mb-0', {
8890
8888
  flex: expanded,
8891
8889
  hidden: !expanded
8892
8890
  });
@@ -8975,7 +8973,7 @@ const Item$3 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
8975
8973
  const proxyRef = useMergedRef(ref);
8976
8974
  const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
8977
8975
  const isTreeitem = role === 'treeitem';
8978
- const className = cn('yt-navigation__item cursor-pointer', {
8976
+ const className = cn__default('yt-navigation__item cursor-pointer', {
8979
8977
  'w-full mb-px py-1 px-3 flex items-center hover:bg-grey-300': isTreeitem,
8980
8978
  'bg-white w-full h-10 px-3 flex-shrink-0 flex items-center justify-between cursor-pointer': !isTreeitem,
8981
8979
  'yt-navigation__item--active': active && !isDraggedOver,
@@ -9005,16 +9003,16 @@ const Item$3 = /*#__PURE__*/React__default.forwardRef(function Item(props, ref)
9005
9003
  });
9006
9004
  const Panel = /*#__PURE__*/React__default.forwardRef(function Panel(props, ref) {
9007
9005
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
9008
- className: cn('w-full bg-white p-3', props.className),
9006
+ className: cn__default('w-full bg-white p-3', props.className),
9009
9007
  ref: ref
9010
9008
  }));
9011
9009
  });
9012
9010
  const MenuGroup = /*#__PURE__*/React__default.forwardRef(function MenuGroup(props, ref) {
9013
- const className = cn('flex-shrink-0 space-y-1 outline-none', {
9011
+ const className = cn__default('flex-shrink-0 space-y-1 outline-none', {
9014
9012
  'bg-white pb-2': props.fixed
9015
9013
  }, typeof props.className === 'function' ? props.className(false) : props.className);
9016
9014
  const title = expanded => {
9017
- 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', {
9018
9016
  'mb-1': expanded,
9019
9017
  'cursor-pointer hover:text-blue-500': !props.fixed
9020
9018
  });
@@ -9049,7 +9047,7 @@ const Menu$2 = /*#__PURE__*/React__default.forwardRef(function Menu(props, ref)
9049
9047
  return scrollableAreas;
9050
9048
  }, [props.children]);
9051
9049
  return /*#__PURE__*/React__default.createElement(Treeview, Object.assign({}, props, {
9052
- 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),
9053
9051
  ref: ref
9054
9052
  }), scrollableAreas.map((area, i) => Array.isArray(area) ? (/*#__PURE__*/React__default.createElement("div", {
9055
9053
  className: "divide-grey-100 flex h-0 flex-auto flex-shrink-0 flex-grow flex-col divide-y-2 overflow-y-auto",
@@ -9062,7 +9060,7 @@ const Navigation = /*#__PURE__*/React__default.forwardRef(function Navigation(pr
9062
9060
  children,
9063
9061
  ...otherProps
9064
9062
  } = props;
9065
- 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);
9066
9064
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
9067
9065
  className: className,
9068
9066
  "data-taco": "navigation",
@@ -9172,18 +9170,18 @@ const OverflowGroup = /*#__PURE__*/React__default.forwardRef(function OverflowGr
9172
9170
  const MoreButton = (_moreButton = moreButton === null || moreButton === void 0 ? void 0 : moreButton(moreButtonText)) !== null && _moreButton !== void 0 ? _moreButton : /*#__PURE__*/React__default.createElement(IconButton, {
9173
9171
  icon: "more"
9174
9172
  });
9175
- const className = cn('flex overflow-hidden', props.className);
9173
+ const className = cn__default('flex overflow-hidden', props.className);
9176
9174
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, attributes, {
9177
9175
  className: className,
9178
9176
  "data-taco": "overflow-group",
9179
9177
  ref: internalRef
9180
9178
  }), children.map((child, index) => /*#__PURE__*/React__default.cloneElement(child, {
9181
- className: cn(child.props.className, {
9179
+ className: cn__default(child.props.className, {
9182
9180
  visible: intersectedChildIndex === undefined || index < intersectedChildIndex,
9183
9181
  'invisible order-[100] pointer-events-none': intersectedChildIndex !== undefined && index >= intersectedChildIndex
9184
9182
  })
9185
9183
  })), hiddenChildren.length ? /*#__PURE__*/React__default.cloneElement(MoreButton, {
9186
- className: cn('sticky right-0 order-[99]', MoreButton.props.className),
9184
+ className: cn__default('sticky right-0 order-[99]', MoreButton.props.className),
9187
9185
  'data-observer-ignore': true,
9188
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, {
9189
9187
  key: index
@@ -9339,7 +9337,7 @@ const useSelect = ({
9339
9337
  const item = findByValue(flattenedData, value);
9340
9338
  if (item) {
9341
9339
  text = item.icon ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(item.icon, {
9342
- className: cn(item.icon.props.className, 'mr-1 -mt-px')
9340
+ className: cn__default(item.icon.props.className, 'mr-1 -mt-px')
9343
9341
  }), item.text)) : item.text;
9344
9342
  }
9345
9343
  }
@@ -9449,10 +9447,10 @@ const BaseSelect = /*#__PURE__*/React.forwardRef(function BaseSelect(props, ref)
9449
9447
  } = useSelect(otherProps, ref);
9450
9448
  const internalRef = React.useRef(null);
9451
9449
  const selectDimensions = useBoundingClientRectListener(internalRef);
9452
- const className = cn('inline-flex relative w-full', {
9450
+ const className = cn__default('inline-flex relative w-full', {
9453
9451
  'yt-select--readonly': props.readOnly
9454
9452
  }, externalClassName);
9455
- const inputClassname = cn(getInputClasses(props), 'h-8 text-left !pr-0', {
9453
+ const inputClassname = cn__default(getInputClasses(props), 'h-8 text-left !pr-0', {
9456
9454
  'border-blue-500': popover.open,
9457
9455
  'select-text': otherProps.readOnly
9458
9456
  });
@@ -9600,7 +9598,7 @@ const Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref)
9600
9598
  const pageCount = Math.ceil(length / pageSize);
9601
9599
  const canPreviousPage = pageIndex > 0;
9602
9600
  const canNextPage = pageIndex < pageCount - 1;
9603
- 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);
9604
9602
  return /*#__PURE__*/React.createElement("div", Object.assign({}, otherProps, {
9605
9603
  className: className,
9606
9604
  "data-taco": "pagination",
@@ -9667,8 +9665,8 @@ const Progress = ({
9667
9665
  animationDuration: `${duration}ms`
9668
9666
  };
9669
9667
  }
9670
- const className = cn('bg-grey-100 rounded block h-1 overflow-hidden w-full', props.className);
9671
- 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', {
9672
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,
9673
9671
  [`w-0 bg-grey-300 animate-[progress_linear]`]: duration
9674
9672
  });
@@ -9733,7 +9731,7 @@ const Toast = ({
9733
9731
  autoClose,
9734
9732
  type = 'default'
9735
9733
  } = options;
9736
- 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', {
9737
9735
  'border border-grey-200': type === 'default' || type === 'loading' || !type,
9738
9736
  'border border-grey-500': type === 'success',
9739
9737
  'border border-blue-500': type === 'information',
@@ -12640,7 +12638,7 @@ function Actions$1(props) {
12640
12638
  const visibleActions = actions.map(action => action(data, rowId, tableMeta.rowActions.handlers['cleanup'], table)).filter(action => !!action);
12641
12639
  const actionsOnRow = visibleActions.length === actionsLength ? visibleActions : visibleActions.slice(0, actionsLength - 1);
12642
12640
  const actionsInMenu = visibleActions.slice(visibleActions.length === actionsLength ? actionsLength : actionsLength - 1);
12643
- 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');
12644
12642
  return /*#__PURE__*/React__default.createElement("span", {
12645
12643
  className: className
12646
12644
  }, actionsOnRow.map((button, index) => {
@@ -12704,7 +12702,7 @@ const renderer = {
12704
12702
  renderer: Cell,
12705
12703
  meta: {
12706
12704
  align: 'right',
12707
- 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'),
12708
12706
  // TODO: remove when table3 is migrated, this satisfies the legacy table3 type
12709
12707
  enableSearch: false,
12710
12708
  header: ''
@@ -12727,7 +12725,7 @@ function Cell$1() {
12727
12725
  return /*#__PURE__*/React__default.createElement(Icon, {
12728
12726
  "aria-label": texts.table.columns.drag.tooltip,
12729
12727
  name: "drag",
12730
- 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')
12731
12729
  });
12732
12730
  }
12733
12731
  const renderer$1 = {
@@ -13267,7 +13265,7 @@ const DisplayRow = /*#__PURE__*/React__default.memo(function DisplayRow(props) {
13267
13265
  const expansionRef = React__default.useRef(null);
13268
13266
  const isExpanded = !!attributes['data-row-expanded'];
13269
13267
  useSetVirtualisedRowHeight(measureRow, ref.current, expansionRef.current, isExpanded);
13270
- const className = cn('group/row', otherAttributes.className, {
13268
+ const className = cn__default('group/row', otherAttributes.className, {
13271
13269
  'hover:cursor-grab': tableMeta.rowDrag.isEnabled && typeof attributes.onClick !== 'function',
13272
13270
  'hover:cursor-pointer': typeof attributes.onClick === 'function'
13273
13271
  });
@@ -13422,14 +13420,14 @@ function Resizer(props) {
13422
13420
  }
13423
13421
  };
13424
13422
  const handle = /*#__PURE__*/React__default.createElement("div", {
13425
- 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', {
13426
13424
  '!visible': isResizing
13427
13425
  }),
13428
13426
  onClick: handleClick,
13429
13427
  onMouseDown: handleResize,
13430
13428
  onTouchStart: handleResize
13431
13429
  }, /*#__PURE__*/React__default.createElement("div", {
13432
- className: cn('h-full w-1 rounded', {
13430
+ className: cn__default('h-full w-1 rounded', {
13433
13431
  '!bg-blue-500': isResizing,
13434
13432
  'bg-grey-500 hover:bg-grey-700': !isResizing
13435
13433
  })
@@ -13647,7 +13645,7 @@ function HeaderMenu(props) {
13647
13645
  }));
13648
13646
  }, [canFilter, canGoto, canHide, canPin, canSort, customMenu, handleGoto, handleSortToggle, index, isFiltered, sortDirection]);
13649
13647
  // can't use display: none because the button needs to be focusable
13650
- const className = cn(
13648
+ const className = cn__default(
13651
13649
  // positioning
13652
13650
  'justify-end overflow-hidden',
13653
13651
  // sizing
@@ -13739,7 +13737,7 @@ function Header$5(props) {
13739
13737
  canPin,
13740
13738
  canResize,
13741
13739
  canSort,
13742
- className: cn('group/header', columnMeta.headerClassName),
13740
+ className: cn__default('group/header', columnMeta.headerClassName),
13743
13741
  children: reactTable.flexRender(header.column.columnDef.header, header.getContext()),
13744
13742
  colSpan: header.colSpan,
13745
13743
  customMenu: columnMeta.menu,
@@ -13760,7 +13758,7 @@ function Header$5(props) {
13760
13758
  };
13761
13759
  if (header.isPlaceholder) {
13762
13760
  const nextHeader = header.headerGroup.headers[header.index + 1];
13763
- memoedProps.className = cn('!bg-white before:!content-none', memoedProps.className, {
13761
+ memoedProps.className = cn__default('!bg-white before:!content-none', memoedProps.className, {
13764
13762
  'after:!content-none': nextHeader === null || nextHeader === void 0 ? void 0 : nextHeader.isPlaceholder
13765
13763
  });
13766
13764
  }
@@ -13884,7 +13882,7 @@ const MemoedHeader = /*#__PURE__*/React__default.memo(function MemoedHeader(prop
13884
13882
  canHide: canHide,
13885
13883
  canPin: canPin,
13886
13884
  canSort: canSort,
13887
- className: cn({
13885
+ className: cn__default({
13888
13886
  'ml-auto': align !== 'right',
13889
13887
  'ml-0': align === 'right'
13890
13888
  }),
@@ -14275,7 +14273,7 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
14275
14273
  }
14276
14274
  });
14277
14275
  }
14278
- 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 ? {
14279
14277
  '!w-48': !value,
14280
14278
  '!w-72': value
14281
14279
  } : '!w-48', {
@@ -14305,9 +14303,9 @@ const SearchInput2 = /*#__PURE__*/React__default.forwardRef(function SearchInput
14305
14303
  value: value !== null && value !== void 0 ? value : ''
14306
14304
  }));
14307
14305
  if (settingsContent) {
14308
- 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]))]');
14309
14307
  return /*#__PURE__*/React__default.createElement("div", {
14310
- className: cn('group relative', {
14308
+ className: cn__default('group relative', {
14311
14309
  'z-10 [&_[data-taco=input-container]]:z-10': focused
14312
14310
  }),
14313
14311
  ref: containerRef,
@@ -14589,7 +14587,7 @@ const Column = /*#__PURE__*/React__default.forwardRef(function Column(props, ref
14589
14587
  ...dragAttributes
14590
14588
  } = props;
14591
14589
  const canHide = column.getCanHide();
14592
- 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', {
14593
14591
  'hover:bg-grey-200': canHide || draggable,
14594
14592
  'hover:cursor-pointer': canHide,
14595
14593
  'active:cursor-move active:bg-grey-300': draggable
@@ -15123,7 +15121,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
15123
15121
  ...otherProps
15124
15122
  } = props;
15125
15123
  const textRef = React__default.useRef(null);
15126
- 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', {
15127
15125
  'opacity-50': disabled,
15128
15126
  'hover:bg-opacity-75': !disabled,
15129
15127
  'cursor-pointer': !!otherProps.onClick,
@@ -15140,7 +15138,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
15140
15138
  name: icon,
15141
15139
  className: "-ml-1 mr-1 !h-5 !w-5"
15142
15140
  })) : (/*#__PURE__*/React__default.cloneElement(icon, {
15143
- className: cn(icon.props.className, 'mr-1 -ml-1')
15141
+ className: cn__default(icon.props.className, 'mr-1 -ml-1')
15144
15142
  })) : null, /*#__PURE__*/React__default.createElement("span", {
15145
15143
  className: "truncate"
15146
15144
  }, children)), onDelete ? (/*#__PURE__*/React__default.createElement(Icon, {
@@ -15150,7 +15148,7 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
15150
15148
  })) : null);
15151
15149
  });
15152
15150
 
15153
- 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', {
15154
15152
  'hover:wcag-grey-200': !shouldPauseHoverState
15155
15153
  });
15156
15154
  const createCollectionClassName = () => 'flex flex-col gap-px';
@@ -15300,7 +15298,7 @@ const EditPopover = props => {
15300
15298
  }) => (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
15301
15299
  className: "flex w-32 flex-col space-y-2"
15302
15300
  }, onEdit ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Field, {
15303
- className: cn('!min-h-fit', {
15301
+ className: cn__default('!min-h-fit', {
15304
15302
  '!pb-0': !validationError
15305
15303
  }),
15306
15304
  invalid: !!validationError,
@@ -15348,7 +15346,7 @@ const Colours = props => {
15348
15346
  value: color
15349
15347
  }, AVAILABLE_COLORS.map(availableColor => (/*#__PURE__*/React__default.createElement(RadioGroupPrimitive.Item, {
15350
15348
  "aria-label": color,
15351
- 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)),
15352
15350
  key: availableColor,
15353
15351
  onFocus: () => onChangeColor(availableColor),
15354
15352
  value: availableColor
@@ -15386,7 +15384,7 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
15386
15384
  tags,
15387
15385
  value
15388
15386
  } = useSelect2Context();
15389
- const className = cn(createOptionClassName(shouldPauseHoverState), getFontSize(fontSize), cName);
15387
+ const className = cn__default(createOptionClassName(shouldPauseHoverState), getFontSize(fontSize), cName);
15390
15388
  const hasValue = Array.isArray(value) ? !!value.length : value !== undefined;
15391
15389
  const isTag = tags && !!color;
15392
15390
  const handleClick = () => {
@@ -15443,7 +15441,7 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
15443
15441
  })) : postfix : null)))), popover ? (/*#__PURE__*/React__default.createElement(IconButton, {
15444
15442
  icon: "ellipsis-vertical",
15445
15443
  appearance: "discrete",
15446
- 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', {
15447
15445
  '!visible': isMobileDevice((_window = window) === null || _window === void 0 ? void 0 : _window.navigator)
15448
15446
  }),
15449
15447
  onClick: event => {
@@ -15463,7 +15461,7 @@ const Group$3 = /*#__PURE__*/React__default.forwardRef(function Select2Group(pro
15463
15461
  hasSeparator,
15464
15462
  ...attributes
15465
15463
  } = props;
15466
- const className = cn(createCollectionClassName(), {
15464
+ const className = cn__default(createCollectionClassName(), {
15467
15465
  "last:after:content-none after:content-[''] after:bg-grey-300 after:mx-2 after:my-1 after:h-px": hasSeparator && children.length
15468
15466
  }, props.className);
15469
15467
  return /*#__PURE__*/React__default.createElement(Group$2, Object.assign({}, attributes, {
@@ -15475,7 +15473,7 @@ const Group$3 = /*#__PURE__*/React__default.forwardRef(function Select2Group(pro
15475
15473
  });
15476
15474
 
15477
15475
  const Title$5 = /*#__PURE__*/React__default.forwardRef(function Select2Title(props, ref) {
15478
- 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);
15479
15477
  return /*#__PURE__*/React__default.createElement(Title$4, Object.assign({}, props, {
15480
15478
  className: className,
15481
15479
  ref: ref
@@ -15491,7 +15489,7 @@ const Placeholder = ({
15491
15489
  return null;
15492
15490
  }
15493
15491
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
15494
- className: cn({
15492
+ className: cn__default({
15495
15493
  'text-grey-700': disabled,
15496
15494
  'text-grey-500': !disabled
15497
15495
  })
@@ -15532,7 +15530,7 @@ const Button$3 = /*#__PURE__*/React__default.forwardRef(function Select2TriggerB
15532
15530
  open,
15533
15531
  readOnly
15534
15532
  } = useSelect2Context();
15535
- const className = cn('px-1.5 h-fit', getInputClasses({
15533
+ const className = cn__default('px-1.5 h-fit', getInputClasses({
15536
15534
  ...props,
15537
15535
  disabled,
15538
15536
  highlighted,
@@ -15606,7 +15604,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
15606
15604
  readOnly,
15607
15605
  tags
15608
15606
  } = useSelect2Context();
15609
- const contentClassName = cn('truncate flex items-center gap-1');
15607
+ const contentClassName = cn__default('truncate flex items-center gap-1');
15610
15608
  const currentValue = children.find(matchesValue(value));
15611
15609
  let output;
15612
15610
  if (placeholder && currentValue === undefined) {
@@ -15664,7 +15662,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
15664
15662
  className
15665
15663
  } = buttonProps;
15666
15664
  if (open) {
15667
- className = cn('!absolute z-20 !h-fit', buttonProps.className);
15665
+ className = cn__default('!absolute z-20 !h-fit', buttonProps.className);
15668
15666
  content = /*#__PURE__*/React__default.createElement(ScrollArea, {
15669
15667
  className: "my-1 flex max-h-[5.5rem] flex-col",
15670
15668
  onClick: forwardClick
@@ -15764,14 +15762,14 @@ const MultipleValue = ({
15764
15762
  if (typeof child.props.children === 'string') {
15765
15763
  output = /*#__PURE__*/React__default.createElement(Tag$1, {
15766
15764
  key: String(child.props.value),
15767
- className: cn('cursor-pointer', classNames),
15765
+ className: cn__default('cursor-pointer', classNames),
15768
15766
  color: tags ? child.props.color : undefined,
15769
15767
  disabled: disabled,
15770
15768
  icon: child.props.prefix,
15771
15769
  readOnly: readOnly
15772
15770
  }, child.props.children);
15773
15771
  } else output = /*#__PURE__*/React__default.cloneElement(child.props.children, {
15774
- className: cn('cursor-pointer', {
15772
+ className: cn__default('cursor-pointer', {
15775
15773
  'shrink-0': index !== boundaryIndex
15776
15774
  }, classNames),
15777
15775
  key: String(child.props.value)
@@ -15909,7 +15907,7 @@ const Search$2 = /*#__PURE__*/React__default.forwardRef(function ListboxSearch(p
15909
15907
  }
15910
15908
  };
15911
15909
  return /*#__PURE__*/React__default.createElement(Field, {
15912
- className: cn('mx-1.5 mb-1.5 !min-h-fit', {
15910
+ className: cn__default('mx-1.5 mb-1.5 !min-h-fit', {
15913
15911
  '!pb-0': !validationError
15914
15912
  }),
15915
15913
  invalid: !!validationError,
@@ -16046,7 +16044,7 @@ const Create = props => {
16046
16044
  event.currentTarget.click();
16047
16045
  }
16048
16046
  };
16049
- const className = cn(createOptionClassName(), {
16047
+ const className = cn__default(createOptionClassName(), {
16050
16048
  '!w-[calc(100%_-_theme(spacing.3))] ml-1.5': !createDialog,
16051
16049
  'leading-normal border-grey-300 h-9 border-t py-2.5 px-4 !-mb-1.5': !!createDialog
16052
16050
  });
@@ -16283,7 +16281,7 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
16283
16281
  setValue(nextValue);
16284
16282
  }
16285
16283
  };
16286
- 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 ', {
16287
16285
  'focus-within:yt-focus': !hasSearch,
16288
16286
  'outline-none': hasSearch
16289
16287
  }, createCollectionClassName());
@@ -16323,10 +16321,10 @@ const Select2 = /*#__PURE__*/React__default.forwardRef(function Select2(props, r
16323
16321
  }, selectAllText), /*#__PURE__*/React__default.createElement("div", {
16324
16322
  className: "border-grey-300 mx-3 rounded border-t"
16325
16323
  }))))) : null, loading ? (/*#__PURE__*/React__default.createElement("span", {
16326
- 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))
16327
16325
  }, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(Spinner, {
16328
16326
  delay: 0,
16329
- 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', {
16330
16328
  '!mt-1 !h-3.5 !w-3.5': fontSize === exports.FontSizes.small,
16331
16329
  '!h-4 !w-4': fontSize === exports.FontSizes.medium,
16332
16330
  '!h-5 !w-5': fontSize === exports.FontSizes.large
@@ -18256,7 +18254,7 @@ const useTable$1 = (props, ref) => {
18256
18254
  const renderCell = (cell, row) => {
18257
18255
  const props = {
18258
18256
  ...cell.getCellProps(),
18259
- 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, {
18260
18258
  'justify-start text-left': cell.column.align === 'left',
18261
18259
  'justify-end text-right': cell.column.align === 'right',
18262
18260
  'text-center': !cell.column.align
@@ -18296,7 +18294,7 @@ const Row$1 = /*#__PURE__*/React__default.forwardRef(function TableRow({
18296
18294
  minHeight: rowHeight ? `${rowHeight}px` : undefined,
18297
18295
  paddingLeft: row.depth ? `${row.depth * 2}rem` : undefined
18298
18296
  },
18299
- 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', {
18300
18298
  'yt-table__row--active bg-grey-200 hover:bg-grey-200': activeIndex === index,
18301
18299
  'yt-table__row--clickable': !!onRowClick,
18302
18300
  'yt-table__row--dragging': !!row.isDragging,
@@ -18354,7 +18352,7 @@ const Column$2 = ({
18354
18352
  ...(cell.getSortByToggleProps && cell.getSortByToggleProps({
18355
18353
  title: undefined
18356
18354
  })),
18357
- 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, {
18358
18356
  'yt-table__cell__group': !!cell.columns,
18359
18357
  'cursor-pointer': !cell.disableSorting,
18360
18358
  'justify-start text-left': cell.align === 'left',
@@ -18397,7 +18395,7 @@ const BaseTable = /*#__PURE__*/React__default.forwardRef(function BaseTable(prop
18397
18395
  tableRef.current.focus();
18398
18396
  }
18399
18397
  }, []);
18400
- 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);
18401
18399
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, otherProps, {
18402
18400
  role: "table",
18403
18401
  className: className,
@@ -18581,7 +18579,7 @@ const WindowedTable = /*#__PURE__*/React__default.forwardRef(function WindowedTa
18581
18579
  }, [rows.length]);
18582
18580
  const contentHeight = estimatedRowHeight * props.data.length || 0;
18583
18581
  const isScrollbarVisible = height !== null ? contentHeight > height : false;
18584
- const className = cn(tableProps.className, 'yt-table--windowed', {
18582
+ const className = cn__default(tableProps.className, 'yt-table--windowed', {
18585
18583
  'table-with-scrollbar': isScrollbarVisible
18586
18584
  });
18587
18585
  let list;
@@ -19626,7 +19624,7 @@ const Textarea = /*#__PURE__*/React.forwardRef(function Textarea(props, ref) {
19626
19624
  onKeyDown,
19627
19625
  ...otherProps
19628
19626
  } = props;
19629
- 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);
19630
19628
  // home and end keys only navigate to the start/end of textarea value if the textarea container does not scroll
19631
19629
  // if it has scroll height then the browser reverts to native scrolling behaviour only
19632
19630
  // so we manually override it to ensure _our_ desired behaviour remains intact
@@ -20129,7 +20127,7 @@ function SaveStatus(props) {
20129
20127
  } = useLocalization();
20130
20128
  const tableMeta = table.options.meta;
20131
20129
  const status = tableMeta.editing.getRowStatus(rowId);
20132
- 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)]', {
20133
20131
  'mt-0.5': tableMeta.rowHeight.height === 'short',
20134
20132
  'mt-1': tableMeta.rowHeight.height === 'medium',
20135
20133
  'mt-1.5': tableMeta.rowHeight.height === 'tall',
@@ -20482,7 +20480,7 @@ function CreateNewRow(props) {
20482
20480
  keys: shortcut
20483
20481
  });
20484
20482
  }
20485
- const className = cn('group/row border-grey-300 !sticky z-[21]', {
20483
+ const className = cn__default('group/row border-grey-300 !sticky z-[21]', {
20486
20484
  'bottom-10': tableMeta.footer.isEnabled,
20487
20485
  'bottom-0': !tableMeta.footer.isEnabled,
20488
20486
  'border-b': !isScrolled
@@ -20572,7 +20570,7 @@ function TemporaryRow(props) {
20572
20570
  }
20573
20571
  }
20574
20572
  };
20575
- 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', {
20576
20574
  'bottom-[calc(5rem_+_2px)] data-[row-editing-move]:bottom-[calc(5rem_+_2px)]': tableMeta.footer.isEnabled,
20577
20575
  'bottom-[calc(2.5rem_+_2px)] data-[row-editing-move]:bottom-[calc(2.5rem_+_2px)]': !tableMeta.footer.isEnabled,
20578
20576
  'border-t-2 shadow-[0px_-5px_20px_0px_rgba(0,0,0,0.1)] [&>td]:!border-b-0': isScrolled
@@ -20672,7 +20670,7 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {
20672
20670
  orientation = 'horizontal',
20673
20671
  ...otherProps
20674
20672
  } = props;
20675
- const className = cn({
20673
+ const className = cn__default({
20676
20674
  'flex w-full': orientation === 'vertical'
20677
20675
  }, props.className);
20678
20676
  return /*#__PURE__*/React.createElement(TabsPrimitive.Root, Object.assign({}, otherProps, {
@@ -20690,7 +20688,7 @@ const TabList = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
20690
20688
  const {
20691
20689
  children
20692
20690
  } = props;
20693
- 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);
20694
20692
  return /*#__PURE__*/React.createElement(TabsPrimitive.List, Object.assign({}, props, {
20695
20693
  className: className,
20696
20694
  ref: ref
@@ -20713,13 +20711,13 @@ const TabTrigger = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
20713
20711
  tooltip,
20714
20712
  ...otherProps
20715
20713
  } = props;
20716
- 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',
20717
20715
  // horizontal
20718
20716
  '[[aria-orientation="horizontal"]_&]:pb-1',
20719
20717
  // horizontal
20720
20718
  '[[aria-orientation="vertical"]_&]:pr-1');
20721
- const buttonClassName = cn(getButtonClasses(), 'group-focus-visible:yt-focus-inset group-enabled:group-hover:wcag-grey-200 pointer-events-none rounded px-3');
20722
- 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',
20723
20721
  // horizontal
20724
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',
20725
20723
  // vertical
@@ -20746,7 +20744,7 @@ const TabContent = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {
20746
20744
  id,
20747
20745
  ...otherProps
20748
20746
  } = props;
20749
- const className = cn('[&[data-orientation="vertical"]]:grow outline-none', props.className);
20747
+ const className = cn__default('[&[data-orientation="vertical"]]:grow outline-none', props.className);
20750
20748
  return /*#__PURE__*/React.createElement(TabsPrimitive.Content, Object.assign({}, otherProps, {
20751
20749
  className: className,
20752
20750
  ref: ref,
@@ -21050,7 +21048,7 @@ function Legend(props) {
21050
21048
  return /*#__PURE__*/React__default.createElement("div", {
21051
21049
  className: "mx-auto w-auto max-w-full overflow-hidden"
21052
21050
  }, /*#__PURE__*/React__default.createElement("div", {
21053
- className: cn('mb-0 ml-0 flex justify-center', {
21051
+ className: cn__default('mb-0 ml-0 flex justify-center', {
21054
21052
  'flex-col': layout === 'vertical'
21055
21053
  })
21056
21054
  }, /*#__PURE__*/React__default.createElement(OverflowGroup, {
@@ -21058,7 +21056,7 @@ function Legend(props) {
21058
21056
  moreButton: moreButton
21059
21057
  }, payload.map((entry, index) => (/*#__PURE__*/React__default.createElement("span", {
21060
21058
  key: `${entry.dataKey}-${index}`,
21061
- 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]', {
21062
21060
  'bg-grey-100 rounded': activeIndex === index
21063
21061
  }),
21064
21062
  onMouseEnter: () => handleMouseEnter(entry, index),
@@ -21067,7 +21065,7 @@ function Legend(props) {
21067
21065
  }, /*#__PURE__*/React__default.createElement("span", {
21068
21066
  className: "text-grey-700 flex items-center gap-[4px]"
21069
21067
  }, /*#__PURE__*/React__default.createElement("span", {
21070
- 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', {
21071
21069
  'border-grey-300 border !bg-white': !activeItems[entry.dataKey]
21072
21070
  }),
21073
21071
  style: {
@@ -21350,7 +21348,7 @@ const Legend$1 = ({
21350
21348
  const isHovered = isTotal ? isTotalLegendHovered : hoveredItem.includes(itemData.id);
21351
21349
  return /*#__PURE__*/React__default.createElement("li", {
21352
21350
  key: isTotal ? 'total' : `${itemData.label}-${index}`,
21353
- 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', {
21354
21352
  'bg-grey-100': isHovered && (!isTotal || legendPosition === 'right'),
21355
21353
  'bg-grey-200': isSelected && (!isTotal || legendPosition === 'right')
21356
21354
  }),
@@ -21360,7 +21358,7 @@ const Legend$1 = ({
21360
21358
  }, legendPosition === 'bottom' ? (/*#__PURE__*/React__default.createElement("div", {
21361
21359
  className: "flex items-center gap-1"
21362
21360
  }, /*#__PURE__*/React__default.createElement("span", {
21363
- className: cn('ml-1 h-3 w-3 rounded-sm', {
21361
+ className: cn__default('ml-1 h-3 w-3 rounded-sm', {
21364
21362
  'border-grey-300 border !bg-white': !visibleItems[itemData.id]
21365
21363
  }),
21366
21364
  style: {
@@ -21382,13 +21380,13 @@ const Legend$1 = ({
21382
21380
  appearance: "transparent",
21383
21381
  className: "text-grey-700"
21384
21382
  }, moreButtonText));
21385
- const className = cn('flex-grow pl-4', {
21383
+ const className = cn__default('flex-grow pl-4', {
21386
21384
  'w-full': legendPosition === 'bottom'
21387
21385
  });
21388
21386
  return /*#__PURE__*/React__default.createElement("div", {
21389
21387
  className: className
21390
21388
  }, /*#__PURE__*/React__default.createElement("ul", {
21391
- 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')
21392
21390
  }, legendPosition === 'right' ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, renderLegendItem(null), data.map(renderLegendItem))) : (/*#__PURE__*/React__default.createElement(OverflowGroup, {
21393
21391
  className: "w-full items-center py-1",
21394
21392
  moreButton: moreButton
@@ -21436,7 +21434,7 @@ const ActiveShape = props => {
21436
21434
  } = props;
21437
21435
  return /*#__PURE__*/React__default.createElement("g", {
21438
21436
  onClick: () => onClick(id),
21439
- className: cn({
21437
+ className: cn__default({
21440
21438
  'cursor-pointer': !!onClick
21441
21439
  })
21442
21440
  }, /*#__PURE__*/React__default.createElement(Recharts.Sector, {
@@ -21562,7 +21560,7 @@ const DonutChart = function DonutChart({
21562
21560
  }));
21563
21561
  };
21564
21562
  return /*#__PURE__*/React__default.createElement("div", {
21565
- className: cn('relative h-full w-full', {
21563
+ className: cn__default('relative h-full w-full', {
21566
21564
  [`flex `]: showLegend,
21567
21565
  'flex-col items-center': legendPosition === 'bottom'
21568
21566
  }),
@@ -21678,7 +21676,7 @@ const Button$4 = /*#__PURE__*/React__default.forwardRef(function Button(props, r
21678
21676
  const {
21679
21677
  ...attributes
21680
21678
  } = props;
21681
- const className = cn(getButtonClasses$1(), props.className);
21679
+ const className = cn__default(getButtonClasses$1(), props.className);
21682
21680
  return /*#__PURE__*/React__default.createElement(IconButton, Object.assign({}, attributes, {
21683
21681
  appearance: "discrete",
21684
21682
  className: className,
@@ -21686,7 +21684,7 @@ const Button$4 = /*#__PURE__*/React__default.forwardRef(function Button(props, r
21686
21684
  ref: ref
21687
21685
  }));
21688
21686
  });
21689
- 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', {
21690
21688
  '!rounded-full': rounded
21691
21689
  });
21692
21690
 
@@ -21701,7 +21699,7 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
21701
21699
  const {
21702
21700
  texts
21703
21701
  } = useLocalization();
21704
- const className = cn(getLinkClasses(icon), 'relative', props.className);
21702
+ const className = cn__default(getLinkClasses(icon), 'relative', props.className);
21705
21703
  const link = /*#__PURE__*/React__default.createElement("a", Object.assign({}, otherProps, {
21706
21704
  className: className,
21707
21705
  "data-taco": "header-link",
@@ -21721,13 +21719,13 @@ const Link$2 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
21721
21719
  }
21722
21720
  return link;
21723
21721
  });
21724
- 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', {
21725
21723
  '!rounded-full !h-9 !w-9': icon,
21726
21724
  'whitespace-nowrap px-3 rounded text-sm hidden lg:flex': !icon
21727
21725
  });
21728
21726
 
21729
21727
  const Logo = /*#__PURE__*/React__default.forwardRef(function Logo(props, ref) {
21730
- 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);
21731
21729
  return /*#__PURE__*/React__default.createElement("svg", Object.assign({}, props, {
21732
21730
  className: className,
21733
21731
  ref: ref,
@@ -21744,7 +21742,7 @@ const Logo = /*#__PURE__*/React__default.forwardRef(function Logo(props, ref) {
21744
21742
  })));
21745
21743
  });
21746
21744
  const LogoLegacy = /*#__PURE__*/React__default.forwardRef(function Logo(props, ref) {
21747
- 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);
21748
21746
  return /*#__PURE__*/React__default.createElement("svg", Object.assign({}, props, {
21749
21747
  className: className,
21750
21748
  ref: ref,
@@ -21816,9 +21814,9 @@ const PrimaryNavigation = /*#__PURE__*/React__default.forwardRef(function Primar
21816
21814
  texts
21817
21815
  } = useLocalization();
21818
21816
  const internalRef = useMergedRef(ref);
21819
- 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);
21820
21818
  const moreButton = () => (/*#__PURE__*/React__default.createElement(Button$1, {
21821
- className: cn(getLinkClasses(), '!bg-transparent aria-expanded:!bg-white/[.08]')
21819
+ className: cn__default(getLinkClasses(), '!bg-transparent aria-expanded:!bg-white/[.08]')
21822
21820
  }, texts.header.more));
21823
21821
  return /*#__PURE__*/React__default.createElement("nav", Object.assign({}, props, {
21824
21822
  className: className,
@@ -21830,7 +21828,7 @@ const PrimaryNavigation = /*#__PURE__*/React__default.forwardRef(function Primar
21830
21828
  });
21831
21829
 
21832
21830
  const SecondaryNavigation = /*#__PURE__*/React__default.forwardRef(function SecondaryNavigation(props, ref) {
21833
- 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);
21834
21832
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
21835
21833
  className: className,
21836
21834
  ref: ref
@@ -21838,7 +21836,7 @@ const SecondaryNavigation = /*#__PURE__*/React__default.forwardRef(function Seco
21838
21836
  });
21839
21837
 
21840
21838
  const MenuButton = /*#__PURE__*/React__default.forwardRef(function MenuButton(props, ref) {
21841
- 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');
21842
21840
  return /*#__PURE__*/React__default.createElement(IconButton, Object.assign({}, props, {
21843
21841
  className: className,
21844
21842
  "data-taco": "header-toggle-sidebar",
@@ -21858,7 +21856,7 @@ const AgreementAvatar = /*#__PURE__*/React__default.forwardRef(function Agreemen
21858
21856
  const handleError = event => {
21859
21857
  event.target.src = fallbackSrc;
21860
21858
  };
21861
- 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', {
21862
21860
  visible: loaded
21863
21861
  }, props.className);
21864
21862
  return /*#__PURE__*/React__default.createElement("img", Object.assign({}, otherProps, {
@@ -21895,7 +21893,7 @@ const AgreementItem = props => {
21895
21893
  fallbackImageSrc,
21896
21894
  ...agreement
21897
21895
  } = props;
21898
- 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);
21899
21897
  return /*#__PURE__*/React__default.createElement("span", {
21900
21898
  className: className
21901
21899
  }, /*#__PURE__*/React__default.createElement(AgreementAvatar, {
@@ -21927,7 +21925,7 @@ const AgreementDisplay = props => {
21927
21925
  } = props;
21928
21926
  const isXlScreen = useMatchMedia('(min-width: 1280px)', window.innerWidth > 1280);
21929
21927
  if (isXlScreen) {
21930
- 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);
21931
21929
  return /*#__PURE__*/React__default.createElement(AgreementItem, Object.assign({}, currentAgreement, {
21932
21930
  children: children,
21933
21931
  className: className,
@@ -22076,7 +22074,7 @@ function AgreementDisplay$1(props) {
22076
22074
  }
22077
22075
 
22078
22076
  const Header$6 = /*#__PURE__*/React__default.forwardRef(function Header(props, ref) {
22079
- 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',
22080
22078
  // styles for logo wrapped inside an anchor
22081
22079
  props.className);
22082
22080
  return /*#__PURE__*/React__default.createElement("header", Object.assign({}, props, {
@@ -22100,7 +22098,7 @@ const LayoutContext = /*#__PURE__*/React__default.createContext({
22100
22098
  });
22101
22099
 
22102
22100
  const Content$9 = /*#__PURE__*/React__default.forwardRef(function LayoutContent(props, ref) {
22103
- 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);
22104
22102
  return /*#__PURE__*/React__default.createElement("main", Object.assign({}, props, {
22105
22103
  className: className,
22106
22104
  ref: ref
@@ -22142,7 +22140,7 @@ const Sidebar = /*#__PURE__*/React__default.forwardRef(function LayoutSidebar(pr
22142
22140
  }, [isSmallScreen, sidebarOpen]);
22143
22141
  const showBackdrop = isSmallScreen && sidebarOpen === true;
22144
22142
  const [ready, setReady] = React__default.useState(isSmallScreen);
22145
- 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', {
22146
22144
  'absolute z-10 aria-hidden:-translate-x-64 ': isSmallScreen,
22147
22145
  // prevent animation when crossing the boundary from large to small screen,
22148
22146
  // this prevents awkward animation in the edge case (resizing the browser, instead of starting at a given size)
@@ -22196,7 +22194,7 @@ const Top = props => {
22196
22194
  };
22197
22195
 
22198
22196
  const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, ref) {
22199
- 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);
22200
22198
  return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
22201
22199
  className: className,
22202
22200
  ref: ref
@@ -22205,7 +22203,7 @@ const Page = /*#__PURE__*/React__default.forwardRef(function LayoutPage(props, r
22205
22203
 
22206
22204
  const Layout$1 = /*#__PURE__*/React__default.forwardRef(function Layout(props, ref) {
22207
22205
  const [sidebarOpen, setSidebarOpen] = React__default.useState(false);
22208
- 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);
22209
22207
  return /*#__PURE__*/React__default.createElement(LayoutContext.Provider, {
22210
22208
  value: {
22211
22209
  sidebarOpen,
@@ -22230,7 +22228,7 @@ const Group$6 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref
22230
22228
  ...attributes
22231
22229
  } = props;
22232
22230
  const [expanded, setExpanded] = React__default.useState(defaultExpanded);
22233
- 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);
22234
22232
  const handleClick = event => {
22235
22233
  setExpanded(!expanded);
22236
22234
  if (onClick) {
@@ -22254,14 +22252,14 @@ const Group$6 = /*#__PURE__*/React__default.forwardRef(function Group(props, ref
22254
22252
  }), /*#__PURE__*/React__default.createElement("span", {
22255
22253
  className: "flex-grow truncate"
22256
22254
  }, heading)), /*#__PURE__*/React__default.createElement("ul", {
22257
- 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', {
22258
22256
  hidden: !expanded
22259
22257
  }),
22260
22258
  role: "menu"
22261
22259
  }, children));
22262
22260
  });
22263
22261
 
22264
- const getAdjacentClasses = () => cn(
22262
+ const getAdjacentClasses = () => cn__default(
22265
22263
  // styling if the element is proceeded by a link item
22266
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 ",
22267
22265
  // styling if the element is proceeded by content
@@ -22269,7 +22267,7 @@ const getAdjacentClasses = () => cn(
22269
22267
  // styling if the element is proceeded by a section
22270
22268
  "[[role=menubar]>[data-taco='navigation2-section']+&]:border-t-2", "[[role=menubar]>[data-taco='navigation2-section']+&]:pt-2");
22271
22269
 
22272
- 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',
22273
22271
  // override styles for links that are children of collapsible menus
22274
22272
  'font-bold [[role=menu]>li>&]:font-normal [[role=menu]>li>&]:pl-5',
22275
22273
  // override styles to adjust icons included in menu links
@@ -22290,8 +22288,8 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
22290
22288
  ...attributes
22291
22289
  } = props;
22292
22290
  const [isDraggedOver, dropTargetProps] = useDropTarget(onDrop);
22293
- const className = cn(getNavigationLinkClasses(isDraggedOver), attributes.className);
22294
- 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(), {
22295
22293
  '[&>*]:pointer-events-none': isDraggedOver
22296
22294
  });
22297
22295
  return /*#__PURE__*/React__default.createElement("li", Object.assign({}, dropTargetProps, {
@@ -22315,7 +22313,7 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
22315
22313
  icon: "more",
22316
22314
  "aria-label": "More",
22317
22315
  rounded: true,
22318
- 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', {
22319
22317
  'absolute right-0 !mr-0.5': total !== undefined
22320
22318
  }),
22321
22319
  menu: menu,
@@ -22324,7 +22322,7 @@ const Link$3 = /*#__PURE__*/React__default.forwardRef(function Link(props, ref)
22324
22322
  event.stopPropagation();
22325
22323
  }
22326
22324
  })) : null, total !== undefined ? (/*#__PURE__*/React__default.createElement(Badge, {
22327
- className: cn('flex-shrink-0 flex-grow-0 !font-normal', {
22325
+ className: cn__default('flex-shrink-0 flex-grow-0 !font-normal', {
22328
22326
  'group-hover:hidden [[aria-expanded="true"]+&]:hidden ': menu
22329
22327
  }),
22330
22328
  color: "transparent"
@@ -22337,7 +22335,7 @@ const Section = /*#__PURE__*/React__default.forwardRef(function Navigation2(prop
22337
22335
  heading,
22338
22336
  ...attributes
22339
22337
  } = props;
22340
- 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);
22341
22339
  return /*#__PURE__*/React__default.createElement("li", Object.assign({}, attributes, {
22342
22340
  className: className,
22343
22341
  "data-taco": "navigation2-section",
@@ -22355,7 +22353,7 @@ const Content$a = /*#__PURE__*/React__default.forwardRef(function Navigation2(pr
22355
22353
  children,
22356
22354
  ...attributes
22357
22355
  } = props;
22358
- 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);
22359
22357
  return /*#__PURE__*/React__default.createElement("li", Object.assign({}, attributes, {
22360
22358
  className: className,
22361
22359
  "data-taco": "navigation2-content",
@@ -22369,7 +22367,7 @@ const Navigation2 = /*#__PURE__*/React__default.forwardRef(function Navigation2(
22369
22367
  children,
22370
22368
  ...attributes
22371
22369
  } = props;
22372
- 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);
22373
22371
  return /*#__PURE__*/React__default.createElement("ul", Object.assign({}, attributes, {
22374
22372
  className: className,
22375
22373
  "data-taco": "navigation2",