bianic-ui 2.12.1-beta.1 → 2.12.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -287,7 +287,7 @@ var childrenElement = function (element) {
287
287
  // if (typeof element === 'object') return '';
288
288
  return element;
289
289
  };
290
- var cn = function () {
290
+ var cn$1 = function () {
291
291
  var classes = [];
292
292
  for (var _i = 0; _i < arguments.length; _i++) {
293
293
  classes[_i] = arguments[_i];
@@ -1819,7 +1819,7 @@ var Countdown = React.forwardRef(function (_a, ref) {
1819
1819
  var circumference = 2 * Math.PI * radius;
1820
1820
  // Calculate how much stroke to show based on time remaining
1821
1821
  var strokeDashoffset = circumference - (seconds / maxSeconds) * circumference;
1822
- return (React.createElement("div", __assign({ ref: ref, role: isCountdown ? 'timer' : 'status', "aria-live": "polite", "aria-atomic": "true", className: cn('relative flex aspect-square w-[120px] flex-col items-center justify-center rounded-radius-full', className) }, props, { style: { width: size, height: size } }),
1822
+ return (React.createElement("div", __assign({ ref: ref, role: isCountdown ? 'timer' : 'status', "aria-live": "polite", "aria-atomic": "true", className: cn$1('relative flex aspect-square w-[120px] flex-col items-center justify-center rounded-radius-full', className) }, props, { style: { width: size, height: size } }),
1823
1823
  React.createElement("svg", { className: "absolute left-0 top-0 -rotate-90 transform" // Rotates SVG so progress starts at 12 o'clock
1824
1824
  , width: size, height: size },
1825
1825
  React.createElement("circle", { className: "text-bia-blue-light-90", stroke: "currentColor", fill: "transparent", strokeWidth: strokeWidth, cx: size / 2, cy: size / 2, r: radius }),
@@ -2504,11 +2504,11 @@ var Radio = React.forwardRef(function Radio(_a, ref) {
2504
2504
  var inputFocusClass = size === 'tn'
2505
2505
  ? 'focus-visible:ring-offset-1'
2506
2506
  : 'focus-visible:ring-offset-2';
2507
- return (React.createElement("div", { className: cn('flex items-center', containerClassName) },
2508
- React.createElement("div", { className: cn('relative flex flex-shrink-0 items-center justify-center rounded-full', checkSize, backgroundClass) },
2509
- React.createElement("input", { ref: ref, id: id, type: "radio", className: cn('checkbox peer absolute box-content h-full w-full cursor-pointer appearance-none rounded-full border-2 border-bia-coolgrey-light-50 checked:border-bia-blue hover:border-bia-blue-hover focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-bia-blue disabled:cursor-not-allowed disabled:border-bia-coolgrey-light-50 disabled:checked:border-bia-blue-light-50', inputFocusClass, inputClassName, className), name: name, value: value, required: required, readOnly: readOnly, autoComplete: autoComplete, tabIndex: tabIndex, role: role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, onChange: onChange, onClick: onClick, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, checked: checked, defaultChecked: defaultChecked, disabled: disabled }),
2510
- React.createElement("div", { className: cn('check-icon z-1 group flex h-full w-full justify-center rounded-full border-2 border-primary-white text-bia-grey outline-2 outline-bia-blue peer-checked:bg-bia-blue peer-checked:hover:border-bia-blue-hover peer-checked:hover:outline-bia-blue-hover peer-disabled:border-transparent peer-disabled:bg-bia-grey-light-80 peer-disabled:peer-checked:border-primary-white peer-disabled:peer-checked:bg-bia-blue-disabled', peerCheckedClass) })),
2511
- React.createElement("label", { htmlFor: id, className: cn('ml-2 leading-4', disabled ? 'text-bia-coolgrey' : 'text-bia-black', labelSize, labelClassName) }, childrenElement(label))));
2507
+ return (React.createElement("div", { className: cn$1('flex items-center', containerClassName) },
2508
+ React.createElement("div", { className: cn$1('relative flex flex-shrink-0 items-center justify-center rounded-full', checkSize, backgroundClass) },
2509
+ React.createElement("input", { ref: ref, id: id, type: "radio", className: cn$1('checkbox peer absolute box-content h-full w-full cursor-pointer appearance-none rounded-full border-2 border-bia-coolgrey-light-50 checked:border-bia-blue hover:border-bia-blue-hover focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-bia-blue disabled:cursor-not-allowed disabled:border-bia-coolgrey-light-50 disabled:checked:border-bia-blue-light-50', inputFocusClass, inputClassName, className), name: name, value: value, required: required, readOnly: readOnly, autoComplete: autoComplete, tabIndex: tabIndex, role: role, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, onChange: onChange, onClick: onClick, onFocus: onFocus, onBlur: onBlur, onKeyDown: onKeyDown, checked: checked, defaultChecked: defaultChecked, disabled: disabled }),
2510
+ React.createElement("div", { className: cn$1('check-icon z-1 group flex h-full w-full justify-center rounded-full border-2 border-primary-white text-bia-grey outline-2 outline-bia-blue peer-checked:bg-bia-blue peer-checked:hover:border-bia-blue-hover peer-checked:hover:outline-bia-blue-hover peer-disabled:border-transparent peer-disabled:bg-bia-grey-light-80 peer-disabled:peer-checked:border-primary-white peer-disabled:peer-checked:bg-bia-blue-disabled', peerCheckedClass) })),
2511
+ React.createElement("label", { htmlFor: id, className: cn$1('ml-2 leading-4', disabled ? 'text-bia-coolgrey' : 'text-bia-black', labelSize, labelClassName) }, childrenElement(label))));
2512
2512
  });
2513
2513
  Radio.defaultProps = {
2514
2514
  label: '',
@@ -2563,8 +2563,8 @@ var TextArea = React.forwardRef(function (_a, ref) {
2563
2563
  bottomBorderColor =
2564
2564
  'enabled:hover:border-b-bia-red enabled:focus:border-b-bia-red';
2565
2565
  var disabledClass = disabled ? 'cursor-not-allowed' : '';
2566
- var extendedInputClassName = cn(inputClass, bottomBorderColor);
2567
- return (React.createElement("div", { className: cn('field-group group/form flex w-full flex-col gap-y-2', textAreaClassName) },
2566
+ var extendedInputClassName = cn$1(inputClass, bottomBorderColor);
2567
+ return (React.createElement("div", { className: cn$1('field-group group/form flex w-full flex-col gap-y-2', textAreaClassName) },
2568
2568
  label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
2569
2569
  React.createElement("div", { className: "relative h-fit w-full min-w-[250px] ".concat(disabledClass) },
2570
2570
  React.createElement(ResizeIcon, { className: "absolute bottom-[11px] right-[5px]" }),
@@ -3341,11 +3341,11 @@ TagLabel.defaultProps = {
3341
3341
  };
3342
3342
 
3343
3343
  var TagLabelInputInner = function (_a, ref) {
3344
- var children = _a.children, className = _a.className, description = _a.description, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.dropContProps, dropContProps = _c === void 0 ? {} : _c, customId = _a.id, _d = _a.isValid, isValid = _d === void 0 ? null : _d, _e = _a.label, label = _e === void 0 ? '' : _e, onBlur = _a.onBlur, onChange = _a.onChange, onChangeText = _a.onChangeText, onFocus = _a.onFocus, placeholder = _a.placeholder, _f = _a.readOnly, readOnly = _f === void 0 ? false : _f, _g = _a.required, required = _g === void 0 ? false : _g, _h = _a.size, size = _h === void 0 ? 'md' : _h, _j = _a.value, value = _j === void 0 ? [] : _j, restInputProps = __rest(_a, ["children", "className", "description", "disabled", "dropContProps", "id", "isValid", "label", "onBlur", "onChange", "onChangeText", "onFocus", "placeholder", "readOnly", "required", "size", "value"]);
3344
+ var children = _a.children, className = _a.className, description = _a.description, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.dropContProps, dropContProps = _c === void 0 ? {} : _c, customId = _a.id, _d = _a.isValid, isValid = _d === void 0 ? null : _d, _e = _a.label, label = _e === void 0 ? '' : _e, onBlur = _a.onBlur, onChange = _a.onChange, onChangeText = _a.onChangeText, onFocus = _a.onFocus, placeholder = _a.placeholder, _f = _a.readOnly, readOnly = _f === void 0 ? false : _f, _g = _a.required, required = _g === void 0 ? false : _g, _h = _a.size, size = _h === void 0 ? 'md' : _h, _j = _a.value, value = _j === void 0 ? [] : _j, _k = _a.zIndex, zIndex = _k === void 0 ? 10 : _k, restInputProps = __rest(_a, ["children", "className", "description", "disabled", "dropContProps", "id", "isValid", "label", "onBlur", "onChange", "onChangeText", "onFocus", "placeholder", "readOnly", "required", "size", "value", "zIndex"]);
3345
3345
  var generatedId = React.useId();
3346
3346
  var inputId = customId || generatedId;
3347
- var _k = React.useState(false), isFocused = _k[0], setIsFocused = _k[1];
3348
- var _l = React.useState(false), isHovered = _l[0], setIsHovered = _l[1];
3347
+ var _l = React.useState(false), isFocused = _l[0], setIsFocused = _l[1];
3348
+ var _m = React.useState(false), isHovered = _m[0], setIsHovered = _m[1];
3349
3349
  var internalInputRef = React.useRef(null);
3350
3350
  var containerRef = React.useRef(null);
3351
3351
  React.useImperativeHandle(ref, function () { return internalInputRef.current; });
@@ -3369,12 +3369,12 @@ var TagLabelInputInner = function (_a, ref) {
3369
3369
  var updatedValues = value.filter(function (_, idx) { return idx !== indexToRemove; });
3370
3370
  onChange(updatedValues);
3371
3371
  };
3372
- var _m = useLiveSearch({
3372
+ var _o = useLiveSearch({
3373
3373
  value: value,
3374
3374
  setValue: onChange,
3375
3375
  onChangeText: onChangeText,
3376
3376
  dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
3377
- }), isOpen = _m.isOpen, setIsOpen = _m.setIsOpen, searchTerm = _m.searchTerm, handleInputChange = _m.handleInputChange, handleDropdownItemClick = _m.handleDropdownItemClick;
3377
+ }), isOpen = _o.isOpen, setIsOpen = _o.setIsOpen, searchTerm = _o.searchTerm, handleInputChange = _o.handleInputChange, handleDropdownItemClick = _o.handleDropdownItemClick;
3378
3378
  var handleKeyDown = function (e) {
3379
3379
  var _a;
3380
3380
  if (e.key === 'Backspace' && searchTerm === '' && value.length > 0) {
@@ -3408,12 +3408,12 @@ var TagLabelInputInner = function (_a, ref) {
3408
3408
  ? 'text-bia-green'
3409
3409
  : 'text-bia-red'
3410
3410
  : 'text-primary-cool';
3411
- var _o = sizeConfig$6[size], inputClass = _o.inputClass, paddingClass = _o.paddingClass, resizePosition = _o.resizePosition;
3412
- var _p = dropContProps || {}, dropContClassName = _p.dropContClassName, restDropContProps = __rest(_p, ["dropContClassName"]);
3413
- var _q = processRenderedChildren(children, searchTerm, 'include', handleDropdownItemClick, value), renderedChildren = _q.renderedChildren, hasFilteredResults = _q.hasFilteredResults;
3411
+ var _p = sizeConfig$6[size], inputClass = _p.inputClass, paddingClass = _p.paddingClass, resizePosition = _p.resizePosition;
3412
+ var _q = dropContProps || {}, dropContClassName = _q.dropContClassName, restDropContProps = __rest(_q, ["dropContClassName"]);
3413
+ var _r = processRenderedChildren(children, searchTerm, 'include', handleDropdownItemClick, value), renderedChildren = _r.renderedChildren, hasFilteredResults = _r.hasFilteredResults;
3414
3414
  var showPlaceholder = !disabled && !readOnly && value.length === 0;
3415
3415
  console.log('showPlaceholder', showPlaceholder);
3416
- return (React.createElement("div", { className: cn('relative w-full', className) },
3416
+ return (React.createElement("div", { className: cn$1('relative w-full', className) },
3417
3417
  label && (React.createElement(FormLabel, { htmlFor: inputId, readOnly: readOnly, required: required }, label)),
3418
3418
  React.createElement("div", { ref: containerRef, onClick: handleContainerClick, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onFocus: function (e) {
3419
3419
  if (!disabled && !readOnly) {
@@ -3423,7 +3423,7 @@ var TagLabelInputInner = function (_a, ref) {
3423
3423
  }, onBlur: function (e) {
3424
3424
  handleBlur(e);
3425
3425
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
3426
- }, className: cn('field bianic-text-area relative flex w-full flex-wrap items-center gap-1.5 rounded border border-bia-grey-dark-10 bg-primary-white align-top transition-all', readOnly && 'pointer-events-none', disabled
3426
+ }, className: cn$1('field bianic-text-area relative flex w-full flex-wrap items-center gap-1.5 rounded border border-bia-grey-dark-10 bg-primary-white align-top transition-all', readOnly && 'pointer-events-none', disabled
3427
3427
  ? 'cursor-not-allowed bg-bia-grey-light-80 text-bia-grey-active'
3428
3428
  : 'cursor-text', !disabled &&
3429
3429
  !readOnly &&
@@ -3434,10 +3434,10 @@ var TagLabelInputInner = function (_a, ref) {
3434
3434
  return;
3435
3435
  onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(e);
3436
3436
  handleInputChange(e);
3437
- }, onKeyDown: handleKeyDown, placeholder: showPlaceholder ? placeholder || 'Select options...' : '', readOnly: readOnly, ref: internalInputRef, role: "combobox", type: "text", value: disabled || readOnly ? '' : searchTerm, className: cn(inputClass, 'min-w-[80px] flex-1 border-none bg-transparent p-0 outline-none focus:ring-0', disabled && 'cursor-not-allowed', readOnly && 'pointer-events-none') })),
3438
- React.createElement(ResizeIcon, { className: cn('absolute', resizePosition) })),
3439
- description && (React.createElement("p", { className: cn('mt-1.5 text-xs transition-colors', descColor) }, description)),
3440
- children && (React.createElement(DropdownContainer, __assign({ anchorRef: containerRef, className: cn('bianic-livesearch-dropdown w-full overflow-hidden bg-white shadow-lg', dropContClassName), isTopFlat: true, matchAnchorWidth: "min", onClose: function () { return setIsOpen(false); }, open: isOpen && !disabled && !readOnly, size: size, zIndex: 10 }, restDropContProps), hasFilteredResults
3437
+ }, onKeyDown: handleKeyDown, placeholder: showPlaceholder ? placeholder || 'Select options...' : '', readOnly: readOnly, ref: internalInputRef, role: "combobox", type: "text", value: disabled || readOnly ? '' : searchTerm, className: cn$1(inputClass, 'min-w-[80px] flex-1 border-none bg-transparent p-0 outline-none focus:ring-0', disabled && 'cursor-not-allowed', readOnly && 'pointer-events-none') })),
3438
+ React.createElement(ResizeIcon, { className: cn$1('absolute', resizePosition) })),
3439
+ description && (React.createElement("p", { className: cn$1('mt-1.5 text-xs transition-colors', descColor) }, description)),
3440
+ children && (React.createElement(DropdownContainer, __assign({ anchorRef: containerRef, className: cn$1('bianic-livesearch-dropdown w-full overflow-hidden bg-white shadow-lg', dropContClassName), isTopFlat: true, matchAnchorWidth: "min", onClose: function () { return setIsOpen(false); }, open: isOpen && !disabled && !readOnly, size: size, zIndex: zIndex }, restDropContProps), hasFilteredResults
3441
3441
  ? renderedChildren
3442
3442
  : searchTerm.length > 0 && (React.createElement(DropdownItem, { content: React.createElement("div", { className: "px-4 py-2 text-gray-500" }, "Tidak ada hasil ditemukan.") }))))));
3443
3443
  };
@@ -4649,7 +4649,7 @@ var SimpleFileUploader = function (_a) {
4649
4649
  md: 18,
4650
4650
  lg: 22,
4651
4651
  }[size];
4652
- return (React.createElement("div", { className: cn('inline-flex flex-col items-start gap-1.5', className) },
4652
+ return (React.createElement("div", { className: cn$1('inline-flex flex-col items-start gap-1.5', className) },
4653
4653
  React.createElement("input", { ref: inputRef, type: "file", accept: accept, multiple: multiple, disabled: disabled, onChange: handleInputChange, className: "hidden", "aria-label": "File input" }),
4654
4654
  React.createElement(Button, { label: label, onClick: triggerClick, disabled: disabled, size: size, variant: variant, iconLeft: React.createElement(TbFolderOpen, { size: iconSizes, className: "shrink-0 text-bia-black" }) }),
4655
4655
  activeError && (React.createElement("div", { className: "flex items-center gap-1 text-xs font-medium text-bia-red" },
@@ -4679,14 +4679,14 @@ var DropzoneFileUploader = function (_a) {
4679
4679
  var defaultSubtext = helperText ||
4680
4680
  (formattedMaxSize ? "Maximum upload file size ".concat(formattedMaxSize) : '');
4681
4681
  var activeError = errorMessage || internalError;
4682
- return (React.createElement("div", { className: cn('flex w-full flex-col gap-3', className) },
4682
+ return (React.createElement("div", { className: cn$1('flex w-full flex-col gap-3', className) },
4683
4683
  React.createElement("input", { ref: inputRef, type: "file", accept: effectiveAccept, multiple: multiple, disabled: disabled, onChange: handleInputChange, className: "peer hidden", "aria-label": "File upload dropzone" }),
4684
4684
  React.createElement("div", { onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, onClick: triggerClick, role: "button", tabIndex: disabled ? -1 : 0, onKeyDown: function (e) {
4685
4685
  if (e.key === 'Enter' || e.key === ' ') {
4686
4686
  e.preventDefault();
4687
4687
  triggerClick();
4688
4688
  }
4689
- }, className: cn('relative flex cursor-pointer select-none flex-col items-center justify-center rounded-xl border border-dashed bg-bia-white pb-5 pt-4 text-center transition-all', disabled && 'cursor-not-allowed bg-bia-grey-light-50 opacity-60', activeError ? 'border-red-500 bg-red-50/20' : '', isDragging
4689
+ }, className: cn$1('relative flex cursor-pointer select-none flex-col items-center justify-center rounded-xl border border-dashed bg-bia-white pb-5 pt-4 text-center transition-all', disabled && 'cursor-not-allowed bg-bia-grey-light-50 opacity-60', activeError ? 'border-red-500 bg-red-50/20' : '', isDragging
4690
4690
  ? 'bg-blue-50/50 border-bia-blue'
4691
4691
  : !activeError &&
4692
4692
  'border-bia-grey-dark-10 hover:border-bia-blue hover:bg-gray-50') },
@@ -5387,8 +5387,8 @@ var buttonConfig = {
5387
5387
  var SidebarContainer = React.forwardRef(function (_a, ref) {
5388
5388
  var _b = _a.color, color = _b === void 0 ? 'margueriteblue-dark-30' : _b, children = _a.children, _c = _a.isMinimized, isMinimized = _c === void 0 ? false : _c, _d = _a.activeId, activeId = _d === void 0 ? undefined : _d, _e = _a.setActiveId, setActiveId = _e === void 0 ? function () { } : _e, _f = _a.className, className = _f === void 0 ? '' : _f, restProps = __rest(_a, ["color", "children", "isMinimized", "activeId", "setActiveId", "className"]);
5389
5389
  var minimizedState = isMinimized ? 'minimized' : 'maximized';
5390
- var containerClass = cn("bg-bia-".concat(color), containerSizeConfig[minimizedState]);
5391
- return (React.createElement("div", __assign({ ref: ref, className: cn('sidebar-container flex h-full flex-col justify-start py-[30px] overflow-hidden transition-[width,min-width] delay-200 ease-[cubic-bezier(0.68,-0.1,0.32,1.2)] duration-500', containerClass, className) }, restProps), React.Children.map(children, function (child) {
5390
+ var containerClass = cn$1("bg-bia-".concat(color), containerSizeConfig[minimizedState]);
5391
+ return (React.createElement("div", __assign({ ref: ref, className: cn$1('sidebar-container flex h-full flex-col justify-start py-[30px] overflow-hidden transition-[width,min-width] delay-200 ease-[cubic-bezier(0.68,-0.1,0.32,1.2)] duration-500', containerClass, className) }, restProps), React.Children.map(children, function (child) {
5392
5392
  return React.isValidElement(child)
5393
5393
  ? React.cloneElement(child, {
5394
5394
  isMinimized: isMinimized,
@@ -5411,11 +5411,11 @@ var SidebarMenu = function (_a) {
5411
5411
  React.createElement("div", { className: "relative flex h-[60px] w-full text-bia-white" },
5412
5412
  React.createElement("div", { className: "absolute left-0 top-[27.5px] px-[17px] ".concat(minimizedMenuClass) },
5413
5413
  React.createElement("div", { className: "h-[1px] w-full bg-white opacity-35" })),
5414
- React.createElement("div", { className: cn('transition-sidebar-item absolute bottom-[11px] flex w-full justify-between pr-[25px]', isMinimized ? 'pl-[58px]' : 'pl-[78px]') },
5415
- React.createElement(Text, { variant: "small-text", className: cn('truncate text-bia-white delay-[400ms]', isMinimized
5414
+ React.createElement("div", { className: cn$1('transition-sidebar-item absolute bottom-[11px] flex w-full justify-between pr-[25px]', isMinimized ? 'pl-[58px]' : 'pl-[78px]') },
5415
+ React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5416
5416
  ? 'opacity-0 duration-300 ease-in-out'
5417
5417
  : 'opacity-75 delay-1000 duration-700 ease-in-out') }, "Menu"),
5418
- React.createElement(ContextualButton, { onClick: function () { return setIsAllExpanded(function (prev) { return !prev; }); }, icon: React.createElement(TbChevronsDown, { className: cn('truncate text-bia-white delay-[400ms]', isMinimized
5418
+ React.createElement(ContextualButton, { onClick: function () { return setIsAllExpanded(function (prev) { return !prev; }); }, icon: React.createElement(TbChevronsDown, { className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5419
5419
  ? 'opacity-0 duration-300 ease-in-out'
5420
5420
  : 'opacity-100 delay-1000 duration-700 ease-in-out'), size: 18 }), className: "ml-auto opacity-50 duration-300 ease-in hover:opacity-100 ".concat(isAllExpanded ? 'rotate-180' : '') }))),
5421
5421
  React.Children.map(children, function (child) {
@@ -5479,8 +5479,8 @@ var SidebarItem = React.forwardRef(function (_a, ref) {
5479
5479
  : icon;
5480
5480
  var buttonClass = buttonConfig[level];
5481
5481
  var chevronClass = hasChildren ? 'inline-block' : 'hidden';
5482
- var itemClass = cn(itemConfig[containerState], isActive || isPathActive ? 'opacity-100' : 'opacity-75 hover:opacity-100', 'transition-sidebar-item');
5483
- var overlayClass = cn(overlaySizeConfig[containerState], isActive ? 'opacity-15' : 'opacity-0 group-hover:opacity-[0.08]');
5482
+ var itemClass = cn$1(itemConfig[containerState], isActive || isPathActive ? 'opacity-100' : 'opacity-75 hover:opacity-100', 'transition-sidebar-item');
5483
+ var overlayClass = cn$1(overlaySizeConfig[containerState], isActive ? 'opacity-15' : 'opacity-0 group-hover:opacity-[0.08]');
5484
5484
  var colorClass = "bg-bia-".concat(color);
5485
5485
  var renderChildren = function () {
5486
5486
  return React.Children.map(children, function (child) {
@@ -5514,12 +5514,12 @@ var SidebarItem = React.forwardRef(function (_a, ref) {
5514
5514
  };
5515
5515
  return (React.createElement("div", { className: "relative" },
5516
5516
  React.createElement("div", { className: "absolute left-[33px] top-[3px] flex h-5 w-5 items-center justify-center" },
5517
- React.createElement("div", { className: cn('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5517
+ React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5518
5518
  ? sumNotificationCounts(children) > 0
5519
5519
  ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5520
5520
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]'
5521
5521
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]') })),
5522
- React.createElement("div", { className: cn('sidebar-item relative flex h-fit items-center', itemClass) },
5522
+ React.createElement("div", { className: cn$1('sidebar-item relative flex h-fit items-center', itemClass) },
5523
5523
  level === 2 && (React.createElement("div", { className: "relative left-[39px] h-full w-[1px] bg-bia-white" })),
5524
5524
  React.createElement("div", { className: "group relative grow" },
5525
5525
  React.createElement("button", __assign({ ref: ref }, restProps, { onClick: function () {
@@ -5530,21 +5530,21 @@ var SidebarItem = React.forwardRef(function (_a, ref) {
5530
5530
  onClick === null || onClick === void 0 ? void 0 : onClick();
5531
5531
  setActiveId(id);
5532
5532
  }
5533
- }, className: cn('flex w-full items-center gap-x-5 p-2.5', buttonClass, className) }),
5533
+ }, className: cn$1('flex w-full items-center gap-x-5 p-2.5', buttonClass, className) }),
5534
5534
  level === 2 && (React.createElement("div", { className: "absolute left-[38px] h-full w-[1px] bg-bia-white" })),
5535
5535
  buttonIcon,
5536
- React.createElement(Text, { variant: "normal-text", className: cn('truncate text-bia-white delay-[400ms]', isMinimized
5536
+ React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5537
5537
  ? 'opacity-0 duration-300 ease-in-out'
5538
5538
  : 'opacity-100 delay-1000 duration-700 ease-in-out') }, title),
5539
- React.createElement("div", { className: cn('ml-auto flex items-center gap-x-[5px]', isMinimized
5539
+ React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
5540
5540
  ? 'opacity-0 delay-200 duration-300 ease-in-out'
5541
5541
  : 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
5542
5542
  (notificationCount !== undefined ||
5543
5543
  (!isChildExpanded &&
5544
5544
  sumNotificationCounts(children) > 0)) && (React.createElement(TagLabel, { text: notificationLabel, color: "white", size: "tn" })),
5545
- React.createElement("div", { className: cn(chevronClass) },
5546
- React.createElement(TbChevronRight, { className: cn('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : ''), size: 18 })))),
5547
- React.createElement("div", { className: cn('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5545
+ React.createElement("div", { className: cn$1(chevronClass) },
5546
+ React.createElement(TbChevronRight, { className: cn$1('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : ''), size: 18 })))),
5547
+ React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5548
5548
  isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
5549
5549
  !isMinimized && hasChildren && isChildExpanded && renderChildren(),
5550
5550
  React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
@@ -5600,8 +5600,8 @@ var SidebarProfile = React.forwardRef(function (_a, ref) {
5600
5600
  };
5601
5601
  var buttonClass = "".concat(buttonConfig[0], " ").concat(profileSizeConfig[containerState]);
5602
5602
  var chevronClass = hasChildren ? 'inline-block' : 'hidden';
5603
- var profileClass = cn(profileConfig[containerState], isActive || isPathActive ? 'opacity-100' : 'opacity-75 hover:opacity-100', 'transition-sidebar-item');
5604
- var overlayClass = cn(overlaySizeConfig[containerState], isActive ? 'opacity-15' : 'opacity-0 group-hover:opacity-[0.08]');
5603
+ var profileClass = cn$1(profileConfig[containerState], isActive || isPathActive ? 'opacity-100' : 'opacity-75 hover:opacity-100', 'transition-sidebar-item');
5604
+ var overlayClass = cn$1(overlaySizeConfig[containerState], isActive ? 'opacity-15' : 'opacity-0 group-hover:opacity-[0.08]');
5605
5605
  var colorClass = "bg-bia-".concat(color);
5606
5606
  var renderChildren = function () {
5607
5607
  return React.Children.map(children, function (child) {
@@ -5632,12 +5632,12 @@ var SidebarProfile = React.forwardRef(function (_a, ref) {
5632
5632
  };
5633
5633
  return (React.createElement("div", { className: "relative" },
5634
5634
  React.createElement("div", { className: "absolute left-[33px] top-[3px] flex h-5 w-5 items-center justify-center" },
5635
- React.createElement("div", { className: cn('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5635
+ React.createElement("div", { className: cn$1('rounded-radius-full bg-white', isMinimized && notificationCount === undefined
5636
5636
  ? sumNotificationCounts(children) > 0
5637
5637
  ? 'h-[6px] w-[6px] delay-[600ms] duration-300 ease-[cubic-bezier(0.68,-0.1,0.32,2)]'
5638
5638
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]'
5639
5639
  : 'h-0 w-0 duration-500 ease-[cubic-bezier(0.32,-1,0.68,1)]') })),
5640
- React.createElement("div", { className: cn('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
5640
+ React.createElement("div", { className: cn$1('sidebar-item group/profile relative flex h-fit items-center', profileClass) },
5641
5641
  React.createElement("div", { className: "group relative grow" },
5642
5642
  React.createElement("button", __assign({ ref: ref }, restProps, { onClick: function () {
5643
5643
  if (hasChildren) {
@@ -5647,26 +5647,26 @@ var SidebarProfile = React.forwardRef(function (_a, ref) {
5647
5647
  onClick === null || onClick === void 0 ? void 0 : onClick();
5648
5648
  setActiveId(id);
5649
5649
  }
5650
- }, className: cn('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
5650
+ }, className: cn$1('cubic-bezier(0.68, -0.1, 0.32, 1.2) flex w-full items-center gap-x-2.5 delay-500 duration-300', buttonClass, className) }),
5651
5651
  avatarImage,
5652
5652
  React.createElement("div", { className: "flex flex-col" },
5653
- React.createElement(Text, { variant: "normal-text", className: cn('truncate text-bia-white delay-[400ms]', isMinimized
5653
+ React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5654
5654
  ? 'opacity-0 duration-300 ease-in-out'
5655
5655
  : 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
5656
- React.createElement(Text, { variant: "small-text", className: cn('truncate text-left text-bia-white delay-[400ms]', isMinimized
5656
+ React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5657
5657
  ? 'opacity-0 duration-300 ease-in-out'
5658
5658
  : 'opacity-50 delay-1000 duration-700 ease-in-out') }, role)),
5659
- React.createElement("div", { className: cn('ml-auto flex items-center gap-x-[5px]', isMinimized
5659
+ React.createElement("div", { className: cn$1('ml-auto flex items-center gap-x-[5px]', isMinimized
5660
5660
  ? 'opacity-0 delay-200 duration-300 ease-in-out'
5661
5661
  : 'opacity-100 delay-[550ms] duration-500 ease-in-out') },
5662
5662
  (notificationCount !== undefined ||
5663
5663
  (!isChildExpanded &&
5664
5664
  sumNotificationCounts(children) > 0)) && (React.createElement(TagLabel, { text: notificationLabel, color: "white", size: "tn" })),
5665
- React.createElement("div", { className: cn(chevronClass) },
5666
- React.createElement(TbChevronRight, { className: cn('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : '', isActive || isPathActive
5665
+ React.createElement("div", { className: cn$1(chevronClass) },
5666
+ React.createElement(TbChevronRight, { className: cn$1('text-bia-white transition-transform duration-300 ease-in-out', isChildExpanded ? 'rotate-90' : '', isActive || isPathActive
5667
5667
  ? 'opacity-100'
5668
5668
  : 'opacity-75 group-hover/profile:opacity-100'), size: 18 })))),
5669
- React.createElement("div", { className: cn('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5669
+ React.createElement("div", { className: cn$1('pointer-events-none absolute inset-0 rounded-radius-lg bg-black transition-opacity duration-200', overlayClass) })),
5670
5670
  isActive && (React.createElement("div", { className: "absolute right-0 ml-auto h-full w-1 rounded-l-radius-md bg-bia-white" }))),
5671
5671
  !isMinimized && hasChildren && isChildExpanded && renderChildren(),
5672
5672
  React.createElement("div", { className: "dropdown-anchor absolute left-[60px] top-0", ref: childDropdownRef }),
@@ -5976,6 +5976,3334 @@ function Toaster(_a) {
5976
5976
  React.createElement(TbX, { size: 14 })))));
5977
5977
  }
5978
5978
 
5979
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
5980
+
5981
+ /**
5982
+ * Concatenates two arrays faster than the array spread operator.
5983
+ */
5984
+ const concatArrays = (array1, array2) => {
5985
+ // Pre-allocate for better V8 optimization
5986
+ const combinedArray = new Array(array1.length + array2.length);
5987
+ for (let i = 0; i < array1.length; i++) {
5988
+ combinedArray[i] = array1[i];
5989
+ }
5990
+ for (let i = 0; i < array2.length; i++) {
5991
+ combinedArray[array1.length + i] = array2[i];
5992
+ }
5993
+ return combinedArray;
5994
+ };
5995
+
5996
+ // Factory function ensures consistent object shapes
5997
+ const createClassValidatorObject = (classGroupId, validator) => ({
5998
+ classGroupId,
5999
+ validator
6000
+ });
6001
+ // Factory ensures consistent ClassPartObject shape
6002
+ const createClassPartObject = (nextPart = new Map(), validators = null, classGroupId) => ({
6003
+ nextPart,
6004
+ validators,
6005
+ classGroupId
6006
+ });
6007
+ const CLASS_PART_SEPARATOR = '-';
6008
+ const EMPTY_CONFLICTS = [];
6009
+ // I use two dots here because one dot is used as prefix for class groups in plugins
6010
+ const ARBITRARY_PROPERTY_PREFIX = 'arbitrary..';
6011
+ const createClassGroupUtils = config => {
6012
+ const classMap = createClassMap(config);
6013
+ const {
6014
+ conflictingClassGroups,
6015
+ conflictingClassGroupModifiers
6016
+ } = config;
6017
+ const getClassGroupId = className => {
6018
+ if (className.startsWith('[') && className.endsWith(']')) {
6019
+ return getGroupIdForArbitraryProperty(className);
6020
+ }
6021
+ const classParts = className.split(CLASS_PART_SEPARATOR);
6022
+ // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and skip it.
6023
+ const startIndex = classParts[0] === '' && classParts.length > 1 ? 1 : 0;
6024
+ return getGroupRecursive(classParts, startIndex, classMap);
6025
+ };
6026
+ const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
6027
+ if (hasPostfixModifier) {
6028
+ const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
6029
+ const baseConflicts = conflictingClassGroups[classGroupId];
6030
+ if (modifierConflicts) {
6031
+ if (baseConflicts) {
6032
+ // Merge base conflicts with modifier conflicts
6033
+ return concatArrays(baseConflicts, modifierConflicts);
6034
+ }
6035
+ // Only modifier conflicts
6036
+ return modifierConflicts;
6037
+ }
6038
+ // Fall back to without postfix if no modifier conflicts
6039
+ return baseConflicts || EMPTY_CONFLICTS;
6040
+ }
6041
+ return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
6042
+ };
6043
+ return {
6044
+ getClassGroupId,
6045
+ getConflictingClassGroupIds
6046
+ };
6047
+ };
6048
+ const getGroupRecursive = (classParts, startIndex, classPartObject) => {
6049
+ const classPathsLength = classParts.length - startIndex;
6050
+ if (classPathsLength === 0) {
6051
+ return classPartObject.classGroupId;
6052
+ }
6053
+ const currentClassPart = classParts[startIndex];
6054
+ const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
6055
+ if (nextClassPartObject) {
6056
+ const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
6057
+ if (result) return result;
6058
+ }
6059
+ const validators = classPartObject.validators;
6060
+ if (validators === null) {
6061
+ return undefined;
6062
+ }
6063
+ // Build classRest string efficiently by joining from startIndex onwards
6064
+ const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
6065
+ const validatorsLength = validators.length;
6066
+ for (let i = 0; i < validatorsLength; i++) {
6067
+ const validatorObj = validators[i];
6068
+ if (validatorObj.validator(classRest)) {
6069
+ return validatorObj.classGroupId;
6070
+ }
6071
+ }
6072
+ return undefined;
6073
+ };
6074
+ /**
6075
+ * Get the class group ID for an arbitrary property.
6076
+ *
6077
+ * @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
6078
+ */
6079
+ const getGroupIdForArbitraryProperty = className => className.slice(1, -1).indexOf(':') === -1 ? undefined : (() => {
6080
+ const content = className.slice(1, -1);
6081
+ const colonIndex = content.indexOf(':');
6082
+ const property = content.slice(0, colonIndex);
6083
+ return property ? ARBITRARY_PROPERTY_PREFIX + property : undefined;
6084
+ })();
6085
+ /**
6086
+ * Exported for testing only
6087
+ */
6088
+ const createClassMap = config => {
6089
+ const {
6090
+ theme,
6091
+ classGroups
6092
+ } = config;
6093
+ return processClassGroups(classGroups, theme);
6094
+ };
6095
+ // Split into separate functions to maintain monomorphic call sites
6096
+ const processClassGroups = (classGroups, theme) => {
6097
+ const classMap = createClassPartObject();
6098
+ for (const classGroupId in classGroups) {
6099
+ const group = classGroups[classGroupId];
6100
+ processClassesRecursively(group, classMap, classGroupId, theme);
6101
+ }
6102
+ return classMap;
6103
+ };
6104
+ const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {
6105
+ const len = classGroup.length;
6106
+ for (let i = 0; i < len; i++) {
6107
+ const classDefinition = classGroup[i];
6108
+ processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
6109
+ }
6110
+ };
6111
+ // Split into separate functions for each type to maintain monomorphic call sites
6112
+ const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
6113
+ if (typeof classDefinition === 'string') {
6114
+ processStringDefinition(classDefinition, classPartObject, classGroupId);
6115
+ return;
6116
+ }
6117
+ if (typeof classDefinition === 'function') {
6118
+ processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
6119
+ return;
6120
+ }
6121
+ processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
6122
+ };
6123
+ const processStringDefinition = (classDefinition, classPartObject, classGroupId) => {
6124
+ const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
6125
+ classPartObjectToEdit.classGroupId = classGroupId;
6126
+ };
6127
+ const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
6128
+ if (isThemeGetter(classDefinition)) {
6129
+ processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
6130
+ return;
6131
+ }
6132
+ if (classPartObject.validators === null) {
6133
+ classPartObject.validators = [];
6134
+ }
6135
+ classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
6136
+ };
6137
+ const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme) => {
6138
+ const entries = Object.entries(classDefinition);
6139
+ const len = entries.length;
6140
+ for (let i = 0; i < len; i++) {
6141
+ const [key, value] = entries[i];
6142
+ processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
6143
+ }
6144
+ };
6145
+ const getPart = (classPartObject, path) => {
6146
+ let current = classPartObject;
6147
+ const parts = path.split(CLASS_PART_SEPARATOR);
6148
+ const len = parts.length;
6149
+ for (let i = 0; i < len; i++) {
6150
+ const part = parts[i];
6151
+ let next = current.nextPart.get(part);
6152
+ if (!next) {
6153
+ next = createClassPartObject();
6154
+ current.nextPart.set(part, next);
6155
+ }
6156
+ current = next;
6157
+ }
6158
+ return current;
6159
+ };
6160
+ // Type guard maintains monomorphic check
6161
+ const isThemeGetter = func => 'isThemeGetter' in func && func.isThemeGetter === true;
6162
+
6163
+ // LRU cache implementation using plain objects for simplicity
6164
+ const createLruCache = maxCacheSize => {
6165
+ if (maxCacheSize < 1) {
6166
+ return {
6167
+ get: () => undefined,
6168
+ set: () => {}
6169
+ };
6170
+ }
6171
+ let cacheSize = 0;
6172
+ let cache = Object.create(null);
6173
+ let previousCache = Object.create(null);
6174
+ const update = (key, value) => {
6175
+ cache[key] = value;
6176
+ cacheSize++;
6177
+ if (cacheSize > maxCacheSize) {
6178
+ cacheSize = 0;
6179
+ previousCache = cache;
6180
+ cache = Object.create(null);
6181
+ }
6182
+ };
6183
+ return {
6184
+ get(key) {
6185
+ let value = cache[key];
6186
+ if (value !== undefined) {
6187
+ return value;
6188
+ }
6189
+ if ((value = previousCache[key]) !== undefined) {
6190
+ update(key, value);
6191
+ return value;
6192
+ }
6193
+ },
6194
+ set(key, value) {
6195
+ if (key in cache) {
6196
+ cache[key] = value;
6197
+ } else {
6198
+ update(key, value);
6199
+ }
6200
+ }
6201
+ };
6202
+ };
6203
+ const IMPORTANT_MODIFIER = '!';
6204
+ const MODIFIER_SEPARATOR = ':';
6205
+ const EMPTY_MODIFIERS = [];
6206
+ // Pre-allocated result object shape for consistency
6207
+ const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal) => ({
6208
+ modifiers,
6209
+ hasImportantModifier,
6210
+ baseClassName,
6211
+ maybePostfixModifierPosition,
6212
+ isExternal
6213
+ });
6214
+ const createParseClassName = config => {
6215
+ const {
6216
+ prefix,
6217
+ experimentalParseClassName
6218
+ } = config;
6219
+ /**
6220
+ * Parse class name into parts.
6221
+ *
6222
+ * Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
6223
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
6224
+ */
6225
+ let parseClassName = className => {
6226
+ // Use simple array with push for better performance
6227
+ const modifiers = [];
6228
+ let bracketDepth = 0;
6229
+ let parenDepth = 0;
6230
+ let modifierStart = 0;
6231
+ let postfixModifierPosition;
6232
+ const len = className.length;
6233
+ for (let index = 0; index < len; index++) {
6234
+ const currentCharacter = className[index];
6235
+ if (bracketDepth === 0 && parenDepth === 0) {
6236
+ if (currentCharacter === MODIFIER_SEPARATOR) {
6237
+ modifiers.push(className.slice(modifierStart, index));
6238
+ modifierStart = index + 1;
6239
+ continue;
6240
+ }
6241
+ if (currentCharacter === '/') {
6242
+ postfixModifierPosition = index;
6243
+ continue;
6244
+ }
6245
+ }
6246
+ if (currentCharacter === '[') bracketDepth++;else if (currentCharacter === ']') bracketDepth--;else if (currentCharacter === '(') parenDepth++;else if (currentCharacter === ')') parenDepth--;
6247
+ }
6248
+ const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
6249
+ // Inline important modifier check
6250
+ let baseClassName = baseClassNameWithImportantModifier;
6251
+ let hasImportantModifier = false;
6252
+ if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
6253
+ baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
6254
+ hasImportantModifier = true;
6255
+ } else if (
6256
+ /**
6257
+ * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
6258
+ * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
6259
+ */
6260
+ baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
6261
+ baseClassName = baseClassNameWithImportantModifier.slice(1);
6262
+ hasImportantModifier = true;
6263
+ }
6264
+ const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
6265
+ return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
6266
+ };
6267
+ if (prefix) {
6268
+ const fullPrefix = prefix + MODIFIER_SEPARATOR;
6269
+ const parseClassNameOriginal = parseClassName;
6270
+ parseClassName = className => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, undefined, true);
6271
+ }
6272
+ if (experimentalParseClassName) {
6273
+ const parseClassNameOriginal = parseClassName;
6274
+ parseClassName = className => experimentalParseClassName({
6275
+ className,
6276
+ parseClassName: parseClassNameOriginal
6277
+ });
6278
+ }
6279
+ return parseClassName;
6280
+ };
6281
+
6282
+ /**
6283
+ * Sorts modifiers according to following schema:
6284
+ * - Predefined modifiers are sorted alphabetically
6285
+ * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
6286
+ */
6287
+ const createSortModifiers = config => {
6288
+ // Pre-compute weights for all known modifiers for O(1) comparison
6289
+ const modifierWeights = new Map();
6290
+ // Assign weights to sensitive modifiers (highest priority, but preserve order)
6291
+ config.orderSensitiveModifiers.forEach((mod, index) => {
6292
+ modifierWeights.set(mod, 1000000 + index); // High weights for sensitive mods
6293
+ });
6294
+ return modifiers => {
6295
+ const result = [];
6296
+ let currentSegment = [];
6297
+ // Process modifiers in one pass
6298
+ for (let i = 0; i < modifiers.length; i++) {
6299
+ const modifier = modifiers[i];
6300
+ // Check if modifier is sensitive (starts with '[' or in orderSensitiveModifiers)
6301
+ const isArbitrary = modifier[0] === '[';
6302
+ const isOrderSensitive = modifierWeights.has(modifier);
6303
+ if (isArbitrary || isOrderSensitive) {
6304
+ // Sort and flush current segment alphabetically
6305
+ if (currentSegment.length > 0) {
6306
+ currentSegment.sort();
6307
+ result.push(...currentSegment);
6308
+ currentSegment = [];
6309
+ }
6310
+ result.push(modifier);
6311
+ } else {
6312
+ // Regular modifier - add to current segment for batch sorting
6313
+ currentSegment.push(modifier);
6314
+ }
6315
+ }
6316
+ // Sort and add any remaining segment items
6317
+ if (currentSegment.length > 0) {
6318
+ currentSegment.sort();
6319
+ result.push(...currentSegment);
6320
+ }
6321
+ return result;
6322
+ };
6323
+ };
6324
+ const createConfigUtils = config => ({
6325
+ cache: createLruCache(config.cacheSize),
6326
+ parseClassName: createParseClassName(config),
6327
+ sortModifiers: createSortModifiers(config),
6328
+ postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config),
6329
+ ...createClassGroupUtils(config)
6330
+ });
6331
+ const createPostfixLookupClassGroupIds = config => {
6332
+ const lookup = Object.create(null);
6333
+ const classGroupIds = config.postfixLookupClassGroups;
6334
+ if (classGroupIds) {
6335
+ for (let i = 0; i < classGroupIds.length; i++) {
6336
+ lookup[classGroupIds[i]] = true;
6337
+ }
6338
+ }
6339
+ return lookup;
6340
+ };
6341
+ const SPLIT_CLASSES_REGEX = /\s+/;
6342
+ const mergeClassList = (classList, configUtils) => {
6343
+ const {
6344
+ parseClassName,
6345
+ getClassGroupId,
6346
+ getConflictingClassGroupIds,
6347
+ sortModifiers,
6348
+ postfixLookupClassGroupIds
6349
+ } = configUtils;
6350
+ /**
6351
+ * Set of classGroupIds in following format:
6352
+ * `{importantModifier}{variantModifiers}{classGroupId}`
6353
+ * @example 'float'
6354
+ * @example 'hover:focus:bg-color'
6355
+ * @example 'md:!pr'
6356
+ */
6357
+ const classGroupsInConflict = [];
6358
+ const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
6359
+ let result = '';
6360
+ for (let index = classNames.length - 1; index >= 0; index -= 1) {
6361
+ const originalClassName = classNames[index];
6362
+ const {
6363
+ isExternal,
6364
+ modifiers,
6365
+ hasImportantModifier,
6366
+ baseClassName,
6367
+ maybePostfixModifierPosition
6368
+ } = parseClassName(originalClassName);
6369
+ if (isExternal) {
6370
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
6371
+ continue;
6372
+ }
6373
+ let hasPostfixModifier = !!maybePostfixModifierPosition;
6374
+ let classGroupId;
6375
+ if (hasPostfixModifier) {
6376
+ const baseClassNameWithoutPostfix = baseClassName.substring(0, maybePostfixModifierPosition);
6377
+ classGroupId = getClassGroupId(baseClassNameWithoutPostfix);
6378
+ const classGroupIdWithPostfix = classGroupId && postfixLookupClassGroupIds[classGroupId] ? getClassGroupId(baseClassName) : undefined;
6379
+ if (classGroupIdWithPostfix && classGroupIdWithPostfix !== classGroupId) {
6380
+ classGroupId = classGroupIdWithPostfix;
6381
+ hasPostfixModifier = false;
6382
+ }
6383
+ } else {
6384
+ classGroupId = getClassGroupId(baseClassName);
6385
+ }
6386
+ if (!classGroupId) {
6387
+ if (!hasPostfixModifier) {
6388
+ // Not a Tailwind class
6389
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
6390
+ continue;
6391
+ }
6392
+ classGroupId = getClassGroupId(baseClassName);
6393
+ if (!classGroupId) {
6394
+ // Not a Tailwind class
6395
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
6396
+ continue;
6397
+ }
6398
+ hasPostfixModifier = false;
6399
+ }
6400
+ // Fast path: skip sorting for empty or single modifier
6401
+ const variantModifier = modifiers.length === 0 ? '' : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(':');
6402
+ const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
6403
+ const classId = modifierId + classGroupId;
6404
+ if (classGroupsInConflict.indexOf(classId) > -1) {
6405
+ // Tailwind class omitted due to conflict
6406
+ continue;
6407
+ }
6408
+ classGroupsInConflict.push(classId);
6409
+ const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
6410
+ for (let i = 0; i < conflictGroups.length; ++i) {
6411
+ const group = conflictGroups[i];
6412
+ classGroupsInConflict.push(modifierId + group);
6413
+ }
6414
+ // Tailwind class not in conflict
6415
+ result = originalClassName + (result.length > 0 ? ' ' + result : result);
6416
+ }
6417
+ return result;
6418
+ };
6419
+
6420
+ /**
6421
+ * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
6422
+ *
6423
+ * Specifically:
6424
+ * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
6425
+ * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
6426
+ *
6427
+ * Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
6428
+ */
6429
+ const twJoin = (...classLists) => {
6430
+ let index = 0;
6431
+ let argument;
6432
+ let resolvedValue;
6433
+ let string = '';
6434
+ while (index < classLists.length) {
6435
+ if (argument = classLists[index++]) {
6436
+ if (resolvedValue = toValue(argument)) {
6437
+ string && (string += ' ');
6438
+ string += resolvedValue;
6439
+ }
6440
+ }
6441
+ }
6442
+ return string;
6443
+ };
6444
+ const toValue = mix => {
6445
+ // Fast path for strings
6446
+ if (typeof mix === 'string') {
6447
+ return mix;
6448
+ }
6449
+ let resolvedValue;
6450
+ let string = '';
6451
+ for (let k = 0; k < mix.length; k++) {
6452
+ if (mix[k]) {
6453
+ if (resolvedValue = toValue(mix[k])) {
6454
+ string && (string += ' ');
6455
+ string += resolvedValue;
6456
+ }
6457
+ }
6458
+ }
6459
+ return string;
6460
+ };
6461
+ const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
6462
+ let configUtils;
6463
+ let cacheGet;
6464
+ let cacheSet;
6465
+ let functionToCall;
6466
+ const initTailwindMerge = classList => {
6467
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
6468
+ configUtils = createConfigUtils(config);
6469
+ cacheGet = configUtils.cache.get;
6470
+ cacheSet = configUtils.cache.set;
6471
+ functionToCall = tailwindMerge;
6472
+ return tailwindMerge(classList);
6473
+ };
6474
+ const tailwindMerge = classList => {
6475
+ const cachedResult = cacheGet(classList);
6476
+ if (cachedResult) {
6477
+ return cachedResult;
6478
+ }
6479
+ const result = mergeClassList(classList, configUtils);
6480
+ cacheSet(classList, result);
6481
+ return result;
6482
+ };
6483
+ functionToCall = initTailwindMerge;
6484
+ return (...args) => functionToCall(twJoin(...args));
6485
+ };
6486
+ const fallbackThemeArr = [];
6487
+ const fromTheme = key => {
6488
+ const themeGetter = theme => theme[key] || fallbackThemeArr;
6489
+ themeGetter.isThemeGetter = true;
6490
+ return themeGetter;
6491
+ };
6492
+ const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
6493
+ const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
6494
+ const fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
6495
+ const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
6496
+ const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
6497
+ const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
6498
+ // Shadow always begins with x and y offset separated by underscore optionally prepended by inset
6499
+ const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
6500
+ const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
6501
+ const isFraction = value => fractionRegex.test(value);
6502
+ const isNumber = value => !!value && !Number.isNaN(Number(value));
6503
+ const isInteger = value => !!value && Number.isInteger(Number(value));
6504
+ const isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));
6505
+ const isTshirtSize = value => tshirtUnitRegex.test(value);
6506
+ const isAny = () => true;
6507
+ const isLengthOnly = value =>
6508
+ // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
6509
+ // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
6510
+ // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
6511
+ lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
6512
+ const isNever = () => false;
6513
+ const isShadow = value => shadowRegex.test(value);
6514
+ const isImage = value => imageRegex.test(value);
6515
+ const isAnyNonArbitrary = value => !isArbitraryValue(value) && !isArbitraryVariable(value);
6516
+ const isNamedContainerQuery = value => value.startsWith('@container') && (value[10] === '/' && value[11] !== undefined || value[11] === 's' && value[16] !== undefined && value.startsWith('-size/', 10) || value[11] === 'n' && value[18] !== undefined && value.startsWith('-normal/', 10));
6517
+ const isArbitrarySize = value => getIsArbitraryValue(value, isLabelSize, isNever);
6518
+ const isArbitraryValue = value => arbitraryValueRegex.test(value);
6519
+ const isArbitraryLength = value => getIsArbitraryValue(value, isLabelLength, isLengthOnly);
6520
+ const isArbitraryNumber = value => getIsArbitraryValue(value, isLabelNumber, isNumber);
6521
+ const isArbitraryWeight = value => getIsArbitraryValue(value, isLabelWeight, isAny);
6522
+ const isArbitraryFamilyName = value => getIsArbitraryValue(value, isLabelFamilyName, isNever);
6523
+ const isArbitraryPosition = value => getIsArbitraryValue(value, isLabelPosition, isNever);
6524
+ const isArbitraryImage = value => getIsArbitraryValue(value, isLabelImage, isImage);
6525
+ const isArbitraryShadow = value => getIsArbitraryValue(value, isLabelShadow, isShadow);
6526
+ const isArbitraryVariable = value => arbitraryVariableRegex.test(value);
6527
+ const isArbitraryVariableLength = value => getIsArbitraryVariable(value, isLabelLength);
6528
+ const isArbitraryVariableFamilyName = value => getIsArbitraryVariable(value, isLabelFamilyName);
6529
+ const isArbitraryVariablePosition = value => getIsArbitraryVariable(value, isLabelPosition);
6530
+ const isArbitraryVariableSize = value => getIsArbitraryVariable(value, isLabelSize);
6531
+ const isArbitraryVariableImage = value => getIsArbitraryVariable(value, isLabelImage);
6532
+ const isArbitraryVariableShadow = value => getIsArbitraryVariable(value, isLabelShadow, true);
6533
+ const isArbitraryVariableWeight = value => getIsArbitraryVariable(value, isLabelWeight, true);
6534
+ // Helpers
6535
+ const getIsArbitraryValue = (value, testLabel, testValue) => {
6536
+ const result = arbitraryValueRegex.exec(value);
6537
+ if (result) {
6538
+ if (result[1]) {
6539
+ return testLabel(result[1]);
6540
+ }
6541
+ return testValue(result[2]);
6542
+ }
6543
+ return false;
6544
+ };
6545
+ const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false) => {
6546
+ const result = arbitraryVariableRegex.exec(value);
6547
+ if (result) {
6548
+ if (result[1]) {
6549
+ return testLabel(result[1]);
6550
+ }
6551
+ return shouldMatchNoLabel;
6552
+ }
6553
+ return false;
6554
+ };
6555
+ // Labels
6556
+ const isLabelPosition = label => label === 'position' || label === 'percentage';
6557
+ const isLabelImage = label => label === 'image' || label === 'url';
6558
+ const isLabelSize = label => label === 'length' || label === 'size' || label === 'bg-size';
6559
+ const isLabelLength = label => label === 'length';
6560
+ const isLabelNumber = label => label === 'number';
6561
+ const isLabelFamilyName = label => label === 'family-name';
6562
+ const isLabelWeight = label => label === 'number' || label === 'weight';
6563
+ const isLabelShadow = label => label === 'shadow';
6564
+ const getDefaultConfig = () => {
6565
+ /**
6566
+ * Theme getters for theme variable namespaces
6567
+ * @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
6568
+ */
6569
+ /***/
6570
+ const themeColor = fromTheme('color');
6571
+ const themeFont = fromTheme('font');
6572
+ const themeText = fromTheme('text');
6573
+ const themeFontWeight = fromTheme('font-weight');
6574
+ const themeTracking = fromTheme('tracking');
6575
+ const themeLeading = fromTheme('leading');
6576
+ const themeBreakpoint = fromTheme('breakpoint');
6577
+ const themeContainer = fromTheme('container');
6578
+ const themeSpacing = fromTheme('spacing');
6579
+ const themeRadius = fromTheme('radius');
6580
+ const themeShadow = fromTheme('shadow');
6581
+ const themeInsetShadow = fromTheme('inset-shadow');
6582
+ const themeTextShadow = fromTheme('text-shadow');
6583
+ const themeDropShadow = fromTheme('drop-shadow');
6584
+ const themeBlur = fromTheme('blur');
6585
+ const themePerspective = fromTheme('perspective');
6586
+ const themeAspect = fromTheme('aspect');
6587
+ const themeEase = fromTheme('ease');
6588
+ const themeAnimate = fromTheme('animate');
6589
+ /**
6590
+ * Helpers to avoid repeating the same scales
6591
+ *
6592
+ * We use functions that create a new array every time they're called instead of static arrays.
6593
+ * This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
6594
+ */
6595
+ /***/
6596
+ const scaleBreak = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];
6597
+ const scalePosition = () => ['center', 'top', 'bottom', 'left', 'right', 'top-left',
6598
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6599
+ 'left-top', 'top-right',
6600
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6601
+ 'right-top', 'bottom-right',
6602
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6603
+ 'right-bottom', 'bottom-left',
6604
+ // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
6605
+ 'left-bottom'];
6606
+ const scalePositionWithArbitrary = () => [...scalePosition(), isArbitraryVariable, isArbitraryValue];
6607
+ const scaleOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];
6608
+ const scaleOverscroll = () => ['auto', 'contain', 'none'];
6609
+ const scaleUnambiguousSpacing = () => [isArbitraryVariable, isArbitraryValue, themeSpacing];
6610
+ const scaleInset = () => [isFraction, 'full', 'auto', ...scaleUnambiguousSpacing()];
6611
+ const scaleGridTemplateColsRows = () => [isInteger, 'none', 'subgrid', isArbitraryVariable, isArbitraryValue];
6612
+ const scaleGridColRowStartAndEnd = () => ['auto', {
6613
+ span: ['full', isInteger, isArbitraryVariable, isArbitraryValue]
6614
+ }, isInteger, isArbitraryVariable, isArbitraryValue];
6615
+ const scaleGridColRowStartOrEnd = () => [isInteger, 'auto', isArbitraryVariable, isArbitraryValue];
6616
+ const scaleGridAutoColsRows = () => ['auto', 'min', 'max', 'fr', isArbitraryVariable, isArbitraryValue];
6617
+ const scaleAlignPrimaryAxis = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch', 'baseline', 'center-safe', 'end-safe'];
6618
+ const scaleAlignSecondaryAxis = () => ['start', 'end', 'center', 'stretch', 'center-safe', 'end-safe'];
6619
+ const scaleMargin = () => ['auto', ...scaleUnambiguousSpacing()];
6620
+ const scaleSizing = () => [isFraction, 'auto', 'full', 'dvw', 'dvh', 'lvw', 'lvh', 'svw', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
6621
+ const scaleSizingInline = () => [isFraction, 'screen', 'full', 'dvw', 'lvw', 'svw', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
6622
+ const scaleSizingBlock = () => [isFraction, 'screen', 'full', 'lh', 'dvh', 'lvh', 'svh', 'min', 'max', 'fit', ...scaleUnambiguousSpacing()];
6623
+ const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
6624
+ const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
6625
+ position: [isArbitraryVariable, isArbitraryValue]
6626
+ }];
6627
+ const scaleBgRepeat = () => ['no-repeat', {
6628
+ repeat: ['', 'x', 'y', 'space', 'round']
6629
+ }];
6630
+ const scaleBgSize = () => ['auto', 'cover', 'contain', isArbitraryVariableSize, isArbitrarySize, {
6631
+ size: [isArbitraryVariable, isArbitraryValue]
6632
+ }];
6633
+ const scaleGradientStopPosition = () => [isPercent, isArbitraryVariableLength, isArbitraryLength];
6634
+ const scaleRadius = () => [
6635
+ // Deprecated since Tailwind CSS v4.0.0
6636
+ '', 'none', 'full', themeRadius, isArbitraryVariable, isArbitraryValue];
6637
+ const scaleBorderWidth = () => ['', isNumber, isArbitraryVariableLength, isArbitraryLength];
6638
+ const scaleLineStyle = () => ['solid', 'dashed', 'dotted', 'double'];
6639
+ const scaleBlendMode = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];
6640
+ const scaleMaskImagePosition = () => [isNumber, isPercent, isArbitraryVariablePosition, isArbitraryPosition];
6641
+ const scaleBlur = () => [
6642
+ // Deprecated since Tailwind CSS v4.0.0
6643
+ '', 'none', themeBlur, isArbitraryVariable, isArbitraryValue];
6644
+ const scaleRotate = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
6645
+ const scaleScale = () => ['none', isNumber, isArbitraryVariable, isArbitraryValue];
6646
+ const scaleSkew = () => [isNumber, isArbitraryVariable, isArbitraryValue];
6647
+ const scaleTranslate = () => [isFraction, 'full', ...scaleUnambiguousSpacing()];
6648
+ return {
6649
+ cacheSize: 500,
6650
+ theme: {
6651
+ animate: ['spin', 'ping', 'pulse', 'bounce'],
6652
+ aspect: ['video'],
6653
+ blur: [isTshirtSize],
6654
+ breakpoint: [isTshirtSize],
6655
+ color: [isAny],
6656
+ container: [isTshirtSize],
6657
+ 'drop-shadow': [isTshirtSize],
6658
+ ease: ['in', 'out', 'in-out'],
6659
+ font: [isAnyNonArbitrary],
6660
+ 'font-weight': ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black'],
6661
+ 'inset-shadow': [isTshirtSize],
6662
+ leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose'],
6663
+ perspective: ['dramatic', 'near', 'normal', 'midrange', 'distant', 'none'],
6664
+ radius: [isTshirtSize],
6665
+ shadow: [isTshirtSize],
6666
+ spacing: ['px', isNumber],
6667
+ text: [isTshirtSize],
6668
+ 'text-shadow': [isTshirtSize],
6669
+ tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest']
6670
+ },
6671
+ classGroups: {
6672
+ // --------------
6673
+ // --- Layout ---
6674
+ // --------------
6675
+ /**
6676
+ * Aspect Ratio
6677
+ * @see https://tailwindcss.com/docs/aspect-ratio
6678
+ */
6679
+ aspect: [{
6680
+ aspect: ['auto', 'square', isFraction, isArbitraryValue, isArbitraryVariable, themeAspect]
6681
+ }],
6682
+ /**
6683
+ * Container
6684
+ * @see https://tailwindcss.com/docs/container
6685
+ * @deprecated since Tailwind CSS v4.0.0
6686
+ */
6687
+ container: ['container'],
6688
+ /**
6689
+ * Container Type
6690
+ * @see https://tailwindcss.com/docs/responsive-design#container-queries
6691
+ */
6692
+ 'container-type': [{
6693
+ '@container': ['', 'normal', 'size', isArbitraryVariable, isArbitraryValue]
6694
+ }],
6695
+ /**
6696
+ * Container Name
6697
+ * @see https://tailwindcss.com/docs/responsive-design#named-containers
6698
+ */
6699
+ 'container-named': [isNamedContainerQuery],
6700
+ /**
6701
+ * Columns
6702
+ * @see https://tailwindcss.com/docs/columns
6703
+ */
6704
+ columns: [{
6705
+ columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
6706
+ }],
6707
+ /**
6708
+ * Break After
6709
+ * @see https://tailwindcss.com/docs/break-after
6710
+ */
6711
+ 'break-after': [{
6712
+ 'break-after': scaleBreak()
6713
+ }],
6714
+ /**
6715
+ * Break Before
6716
+ * @see https://tailwindcss.com/docs/break-before
6717
+ */
6718
+ 'break-before': [{
6719
+ 'break-before': scaleBreak()
6720
+ }],
6721
+ /**
6722
+ * Break Inside
6723
+ * @see https://tailwindcss.com/docs/break-inside
6724
+ */
6725
+ 'break-inside': [{
6726
+ 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']
6727
+ }],
6728
+ /**
6729
+ * Box Decoration Break
6730
+ * @see https://tailwindcss.com/docs/box-decoration-break
6731
+ */
6732
+ 'box-decoration': [{
6733
+ 'box-decoration': ['slice', 'clone']
6734
+ }],
6735
+ /**
6736
+ * Box Sizing
6737
+ * @see https://tailwindcss.com/docs/box-sizing
6738
+ */
6739
+ box: [{
6740
+ box: ['border', 'content']
6741
+ }],
6742
+ /**
6743
+ * Display
6744
+ * @see https://tailwindcss.com/docs/display
6745
+ */
6746
+ display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],
6747
+ /**
6748
+ * Screen Reader Only
6749
+ * @see https://tailwindcss.com/docs/display#screen-reader-only
6750
+ */
6751
+ sr: ['sr-only', 'not-sr-only'],
6752
+ /**
6753
+ * Floats
6754
+ * @see https://tailwindcss.com/docs/float
6755
+ */
6756
+ float: [{
6757
+ float: ['right', 'left', 'none', 'start', 'end']
6758
+ }],
6759
+ /**
6760
+ * Clear
6761
+ * @see https://tailwindcss.com/docs/clear
6762
+ */
6763
+ clear: [{
6764
+ clear: ['left', 'right', 'both', 'none', 'start', 'end']
6765
+ }],
6766
+ /**
6767
+ * Isolation
6768
+ * @see https://tailwindcss.com/docs/isolation
6769
+ */
6770
+ isolation: ['isolate', 'isolation-auto'],
6771
+ /**
6772
+ * Object Fit
6773
+ * @see https://tailwindcss.com/docs/object-fit
6774
+ */
6775
+ 'object-fit': [{
6776
+ object: ['contain', 'cover', 'fill', 'none', 'scale-down']
6777
+ }],
6778
+ /**
6779
+ * Object Position
6780
+ * @see https://tailwindcss.com/docs/object-position
6781
+ */
6782
+ 'object-position': [{
6783
+ object: scalePositionWithArbitrary()
6784
+ }],
6785
+ /**
6786
+ * Overflow
6787
+ * @see https://tailwindcss.com/docs/overflow
6788
+ */
6789
+ overflow: [{
6790
+ overflow: scaleOverflow()
6791
+ }],
6792
+ /**
6793
+ * Overflow X
6794
+ * @see https://tailwindcss.com/docs/overflow
6795
+ */
6796
+ 'overflow-x': [{
6797
+ 'overflow-x': scaleOverflow()
6798
+ }],
6799
+ /**
6800
+ * Overflow Y
6801
+ * @see https://tailwindcss.com/docs/overflow
6802
+ */
6803
+ 'overflow-y': [{
6804
+ 'overflow-y': scaleOverflow()
6805
+ }],
6806
+ /**
6807
+ * Overscroll Behavior
6808
+ * @see https://tailwindcss.com/docs/overscroll-behavior
6809
+ */
6810
+ overscroll: [{
6811
+ overscroll: scaleOverscroll()
6812
+ }],
6813
+ /**
6814
+ * Overscroll Behavior X
6815
+ * @see https://tailwindcss.com/docs/overscroll-behavior
6816
+ */
6817
+ 'overscroll-x': [{
6818
+ 'overscroll-x': scaleOverscroll()
6819
+ }],
6820
+ /**
6821
+ * Overscroll Behavior Y
6822
+ * @see https://tailwindcss.com/docs/overscroll-behavior
6823
+ */
6824
+ 'overscroll-y': [{
6825
+ 'overscroll-y': scaleOverscroll()
6826
+ }],
6827
+ /**
6828
+ * Position
6829
+ * @see https://tailwindcss.com/docs/position
6830
+ */
6831
+ position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],
6832
+ /**
6833
+ * Inset
6834
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6835
+ */
6836
+ inset: [{
6837
+ inset: scaleInset()
6838
+ }],
6839
+ /**
6840
+ * Inset Inline
6841
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6842
+ */
6843
+ 'inset-x': [{
6844
+ 'inset-x': scaleInset()
6845
+ }],
6846
+ /**
6847
+ * Inset Block
6848
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6849
+ */
6850
+ 'inset-y': [{
6851
+ 'inset-y': scaleInset()
6852
+ }],
6853
+ /**
6854
+ * Inset Inline Start
6855
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6856
+ * @todo class group will be renamed to `inset-s` in next major release
6857
+ */
6858
+ start: [{
6859
+ 'inset-s': scaleInset(),
6860
+ /**
6861
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-s-*` utilities.
6862
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
6863
+ */
6864
+ start: scaleInset()
6865
+ }],
6866
+ /**
6867
+ * Inset Inline End
6868
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6869
+ * @todo class group will be renamed to `inset-e` in next major release
6870
+ */
6871
+ end: [{
6872
+ 'inset-e': scaleInset(),
6873
+ /**
6874
+ * @deprecated since Tailwind CSS v4.2.0 in favor of `inset-e-*` utilities.
6875
+ * @see https://github.com/tailwindlabs/tailwindcss/pull/19613
6876
+ */
6877
+ end: scaleInset()
6878
+ }],
6879
+ /**
6880
+ * Inset Block Start
6881
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6882
+ */
6883
+ 'inset-bs': [{
6884
+ 'inset-bs': scaleInset()
6885
+ }],
6886
+ /**
6887
+ * Inset Block End
6888
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6889
+ */
6890
+ 'inset-be': [{
6891
+ 'inset-be': scaleInset()
6892
+ }],
6893
+ /**
6894
+ * Top
6895
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6896
+ */
6897
+ top: [{
6898
+ top: scaleInset()
6899
+ }],
6900
+ /**
6901
+ * Right
6902
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6903
+ */
6904
+ right: [{
6905
+ right: scaleInset()
6906
+ }],
6907
+ /**
6908
+ * Bottom
6909
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6910
+ */
6911
+ bottom: [{
6912
+ bottom: scaleInset()
6913
+ }],
6914
+ /**
6915
+ * Left
6916
+ * @see https://tailwindcss.com/docs/top-right-bottom-left
6917
+ */
6918
+ left: [{
6919
+ left: scaleInset()
6920
+ }],
6921
+ /**
6922
+ * Visibility
6923
+ * @see https://tailwindcss.com/docs/visibility
6924
+ */
6925
+ visibility: ['visible', 'invisible', 'collapse'],
6926
+ /**
6927
+ * Z-Index
6928
+ * @see https://tailwindcss.com/docs/z-index
6929
+ */
6930
+ z: [{
6931
+ z: [isInteger, 'auto', isArbitraryVariable, isArbitraryValue]
6932
+ }],
6933
+ // ------------------------
6934
+ // --- Flexbox and Grid ---
6935
+ // ------------------------
6936
+ /**
6937
+ * Flex Basis
6938
+ * @see https://tailwindcss.com/docs/flex-basis
6939
+ */
6940
+ basis: [{
6941
+ basis: [isFraction, 'full', 'auto', themeContainer, ...scaleUnambiguousSpacing()]
6942
+ }],
6943
+ /**
6944
+ * Flex Direction
6945
+ * @see https://tailwindcss.com/docs/flex-direction
6946
+ */
6947
+ 'flex-direction': [{
6948
+ flex: ['row', 'row-reverse', 'col', 'col-reverse']
6949
+ }],
6950
+ /**
6951
+ * Flex Wrap
6952
+ * @see https://tailwindcss.com/docs/flex-wrap
6953
+ */
6954
+ 'flex-wrap': [{
6955
+ flex: ['nowrap', 'wrap', 'wrap-reverse']
6956
+ }],
6957
+ /**
6958
+ * Flex
6959
+ * @see https://tailwindcss.com/docs/flex
6960
+ */
6961
+ flex: [{
6962
+ flex: [isNumber, isFraction, 'auto', 'initial', 'none', isArbitraryValue]
6963
+ }],
6964
+ /**
6965
+ * Flex Grow
6966
+ * @see https://tailwindcss.com/docs/flex-grow
6967
+ */
6968
+ grow: [{
6969
+ grow: ['', isNumber, isArbitraryVariable, isArbitraryValue]
6970
+ }],
6971
+ /**
6972
+ * Flex Shrink
6973
+ * @see https://tailwindcss.com/docs/flex-shrink
6974
+ */
6975
+ shrink: [{
6976
+ shrink: ['', isNumber, isArbitraryVariable, isArbitraryValue]
6977
+ }],
6978
+ /**
6979
+ * Order
6980
+ * @see https://tailwindcss.com/docs/order
6981
+ */
6982
+ order: [{
6983
+ order: [isInteger, 'first', 'last', 'none', isArbitraryVariable, isArbitraryValue]
6984
+ }],
6985
+ /**
6986
+ * Grid Template Columns
6987
+ * @see https://tailwindcss.com/docs/grid-template-columns
6988
+ */
6989
+ 'grid-cols': [{
6990
+ 'grid-cols': scaleGridTemplateColsRows()
6991
+ }],
6992
+ /**
6993
+ * Grid Column Start / End
6994
+ * @see https://tailwindcss.com/docs/grid-column
6995
+ */
6996
+ 'col-start-end': [{
6997
+ col: scaleGridColRowStartAndEnd()
6998
+ }],
6999
+ /**
7000
+ * Grid Column Start
7001
+ * @see https://tailwindcss.com/docs/grid-column
7002
+ */
7003
+ 'col-start': [{
7004
+ 'col-start': scaleGridColRowStartOrEnd()
7005
+ }],
7006
+ /**
7007
+ * Grid Column End
7008
+ * @see https://tailwindcss.com/docs/grid-column
7009
+ */
7010
+ 'col-end': [{
7011
+ 'col-end': scaleGridColRowStartOrEnd()
7012
+ }],
7013
+ /**
7014
+ * Grid Template Rows
7015
+ * @see https://tailwindcss.com/docs/grid-template-rows
7016
+ */
7017
+ 'grid-rows': [{
7018
+ 'grid-rows': scaleGridTemplateColsRows()
7019
+ }],
7020
+ /**
7021
+ * Grid Row Start / End
7022
+ * @see https://tailwindcss.com/docs/grid-row
7023
+ */
7024
+ 'row-start-end': [{
7025
+ row: scaleGridColRowStartAndEnd()
7026
+ }],
7027
+ /**
7028
+ * Grid Row Start
7029
+ * @see https://tailwindcss.com/docs/grid-row
7030
+ */
7031
+ 'row-start': [{
7032
+ 'row-start': scaleGridColRowStartOrEnd()
7033
+ }],
7034
+ /**
7035
+ * Grid Row End
7036
+ * @see https://tailwindcss.com/docs/grid-row
7037
+ */
7038
+ 'row-end': [{
7039
+ 'row-end': scaleGridColRowStartOrEnd()
7040
+ }],
7041
+ /**
7042
+ * Grid Auto Flow
7043
+ * @see https://tailwindcss.com/docs/grid-auto-flow
7044
+ */
7045
+ 'grid-flow': [{
7046
+ 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']
7047
+ }],
7048
+ /**
7049
+ * Grid Auto Columns
7050
+ * @see https://tailwindcss.com/docs/grid-auto-columns
7051
+ */
7052
+ 'auto-cols': [{
7053
+ 'auto-cols': scaleGridAutoColsRows()
7054
+ }],
7055
+ /**
7056
+ * Grid Auto Rows
7057
+ * @see https://tailwindcss.com/docs/grid-auto-rows
7058
+ */
7059
+ 'auto-rows': [{
7060
+ 'auto-rows': scaleGridAutoColsRows()
7061
+ }],
7062
+ /**
7063
+ * Gap
7064
+ * @see https://tailwindcss.com/docs/gap
7065
+ */
7066
+ gap: [{
7067
+ gap: scaleUnambiguousSpacing()
7068
+ }],
7069
+ /**
7070
+ * Gap X
7071
+ * @see https://tailwindcss.com/docs/gap
7072
+ */
7073
+ 'gap-x': [{
7074
+ 'gap-x': scaleUnambiguousSpacing()
7075
+ }],
7076
+ /**
7077
+ * Gap Y
7078
+ * @see https://tailwindcss.com/docs/gap
7079
+ */
7080
+ 'gap-y': [{
7081
+ 'gap-y': scaleUnambiguousSpacing()
7082
+ }],
7083
+ /**
7084
+ * Justify Content
7085
+ * @see https://tailwindcss.com/docs/justify-content
7086
+ */
7087
+ 'justify-content': [{
7088
+ justify: [...scaleAlignPrimaryAxis(), 'normal']
7089
+ }],
7090
+ /**
7091
+ * Justify Items
7092
+ * @see https://tailwindcss.com/docs/justify-items
7093
+ */
7094
+ 'justify-items': [{
7095
+ 'justify-items': [...scaleAlignSecondaryAxis(), 'normal']
7096
+ }],
7097
+ /**
7098
+ * Justify Self
7099
+ * @see https://tailwindcss.com/docs/justify-self
7100
+ */
7101
+ 'justify-self': [{
7102
+ 'justify-self': ['auto', ...scaleAlignSecondaryAxis()]
7103
+ }],
7104
+ /**
7105
+ * Align Content
7106
+ * @see https://tailwindcss.com/docs/align-content
7107
+ */
7108
+ 'align-content': [{
7109
+ content: ['normal', ...scaleAlignPrimaryAxis()]
7110
+ }],
7111
+ /**
7112
+ * Align Items
7113
+ * @see https://tailwindcss.com/docs/align-items
7114
+ */
7115
+ 'align-items': [{
7116
+ items: [...scaleAlignSecondaryAxis(), {
7117
+ baseline: ['', 'last']
7118
+ }]
7119
+ }],
7120
+ /**
7121
+ * Align Self
7122
+ * @see https://tailwindcss.com/docs/align-self
7123
+ */
7124
+ 'align-self': [{
7125
+ self: ['auto', ...scaleAlignSecondaryAxis(), {
7126
+ baseline: ['', 'last']
7127
+ }]
7128
+ }],
7129
+ /**
7130
+ * Place Content
7131
+ * @see https://tailwindcss.com/docs/place-content
7132
+ */
7133
+ 'place-content': [{
7134
+ 'place-content': scaleAlignPrimaryAxis()
7135
+ }],
7136
+ /**
7137
+ * Place Items
7138
+ * @see https://tailwindcss.com/docs/place-items
7139
+ */
7140
+ 'place-items': [{
7141
+ 'place-items': [...scaleAlignSecondaryAxis(), 'baseline']
7142
+ }],
7143
+ /**
7144
+ * Place Self
7145
+ * @see https://tailwindcss.com/docs/place-self
7146
+ */
7147
+ 'place-self': [{
7148
+ 'place-self': ['auto', ...scaleAlignSecondaryAxis()]
7149
+ }],
7150
+ // Spacing
7151
+ /**
7152
+ * Padding
7153
+ * @see https://tailwindcss.com/docs/padding
7154
+ */
7155
+ p: [{
7156
+ p: scaleUnambiguousSpacing()
7157
+ }],
7158
+ /**
7159
+ * Padding Inline
7160
+ * @see https://tailwindcss.com/docs/padding
7161
+ */
7162
+ px: [{
7163
+ px: scaleUnambiguousSpacing()
7164
+ }],
7165
+ /**
7166
+ * Padding Block
7167
+ * @see https://tailwindcss.com/docs/padding
7168
+ */
7169
+ py: [{
7170
+ py: scaleUnambiguousSpacing()
7171
+ }],
7172
+ /**
7173
+ * Padding Inline Start
7174
+ * @see https://tailwindcss.com/docs/padding
7175
+ */
7176
+ ps: [{
7177
+ ps: scaleUnambiguousSpacing()
7178
+ }],
7179
+ /**
7180
+ * Padding Inline End
7181
+ * @see https://tailwindcss.com/docs/padding
7182
+ */
7183
+ pe: [{
7184
+ pe: scaleUnambiguousSpacing()
7185
+ }],
7186
+ /**
7187
+ * Padding Block Start
7188
+ * @see https://tailwindcss.com/docs/padding
7189
+ */
7190
+ pbs: [{
7191
+ pbs: scaleUnambiguousSpacing()
7192
+ }],
7193
+ /**
7194
+ * Padding Block End
7195
+ * @see https://tailwindcss.com/docs/padding
7196
+ */
7197
+ pbe: [{
7198
+ pbe: scaleUnambiguousSpacing()
7199
+ }],
7200
+ /**
7201
+ * Padding Top
7202
+ * @see https://tailwindcss.com/docs/padding
7203
+ */
7204
+ pt: [{
7205
+ pt: scaleUnambiguousSpacing()
7206
+ }],
7207
+ /**
7208
+ * Padding Right
7209
+ * @see https://tailwindcss.com/docs/padding
7210
+ */
7211
+ pr: [{
7212
+ pr: scaleUnambiguousSpacing()
7213
+ }],
7214
+ /**
7215
+ * Padding Bottom
7216
+ * @see https://tailwindcss.com/docs/padding
7217
+ */
7218
+ pb: [{
7219
+ pb: scaleUnambiguousSpacing()
7220
+ }],
7221
+ /**
7222
+ * Padding Left
7223
+ * @see https://tailwindcss.com/docs/padding
7224
+ */
7225
+ pl: [{
7226
+ pl: scaleUnambiguousSpacing()
7227
+ }],
7228
+ /**
7229
+ * Margin
7230
+ * @see https://tailwindcss.com/docs/margin
7231
+ */
7232
+ m: [{
7233
+ m: scaleMargin()
7234
+ }],
7235
+ /**
7236
+ * Margin Inline
7237
+ * @see https://tailwindcss.com/docs/margin
7238
+ */
7239
+ mx: [{
7240
+ mx: scaleMargin()
7241
+ }],
7242
+ /**
7243
+ * Margin Block
7244
+ * @see https://tailwindcss.com/docs/margin
7245
+ */
7246
+ my: [{
7247
+ my: scaleMargin()
7248
+ }],
7249
+ /**
7250
+ * Margin Inline Start
7251
+ * @see https://tailwindcss.com/docs/margin
7252
+ */
7253
+ ms: [{
7254
+ ms: scaleMargin()
7255
+ }],
7256
+ /**
7257
+ * Margin Inline End
7258
+ * @see https://tailwindcss.com/docs/margin
7259
+ */
7260
+ me: [{
7261
+ me: scaleMargin()
7262
+ }],
7263
+ /**
7264
+ * Margin Block Start
7265
+ * @see https://tailwindcss.com/docs/margin
7266
+ */
7267
+ mbs: [{
7268
+ mbs: scaleMargin()
7269
+ }],
7270
+ /**
7271
+ * Margin Block End
7272
+ * @see https://tailwindcss.com/docs/margin
7273
+ */
7274
+ mbe: [{
7275
+ mbe: scaleMargin()
7276
+ }],
7277
+ /**
7278
+ * Margin Top
7279
+ * @see https://tailwindcss.com/docs/margin
7280
+ */
7281
+ mt: [{
7282
+ mt: scaleMargin()
7283
+ }],
7284
+ /**
7285
+ * Margin Right
7286
+ * @see https://tailwindcss.com/docs/margin
7287
+ */
7288
+ mr: [{
7289
+ mr: scaleMargin()
7290
+ }],
7291
+ /**
7292
+ * Margin Bottom
7293
+ * @see https://tailwindcss.com/docs/margin
7294
+ */
7295
+ mb: [{
7296
+ mb: scaleMargin()
7297
+ }],
7298
+ /**
7299
+ * Margin Left
7300
+ * @see https://tailwindcss.com/docs/margin
7301
+ */
7302
+ ml: [{
7303
+ ml: scaleMargin()
7304
+ }],
7305
+ /**
7306
+ * Space Between X
7307
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
7308
+ */
7309
+ 'space-x': [{
7310
+ 'space-x': scaleUnambiguousSpacing()
7311
+ }],
7312
+ /**
7313
+ * Space Between X Reverse
7314
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
7315
+ */
7316
+ 'space-x-reverse': ['space-x-reverse'],
7317
+ /**
7318
+ * Space Between Y
7319
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
7320
+ */
7321
+ 'space-y': [{
7322
+ 'space-y': scaleUnambiguousSpacing()
7323
+ }],
7324
+ /**
7325
+ * Space Between Y Reverse
7326
+ * @see https://tailwindcss.com/docs/margin#adding-space-between-children
7327
+ */
7328
+ 'space-y-reverse': ['space-y-reverse'],
7329
+ // --------------
7330
+ // --- Sizing ---
7331
+ // --------------
7332
+ /**
7333
+ * Size
7334
+ * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
7335
+ */
7336
+ size: [{
7337
+ size: scaleSizing()
7338
+ }],
7339
+ /**
7340
+ * Inline Size
7341
+ * @see https://tailwindcss.com/docs/width
7342
+ */
7343
+ 'inline-size': [{
7344
+ inline: ['auto', ...scaleSizingInline()]
7345
+ }],
7346
+ /**
7347
+ * Min-Inline Size
7348
+ * @see https://tailwindcss.com/docs/min-width
7349
+ */
7350
+ 'min-inline-size': [{
7351
+ 'min-inline': ['auto', ...scaleSizingInline()]
7352
+ }],
7353
+ /**
7354
+ * Max-Inline Size
7355
+ * @see https://tailwindcss.com/docs/max-width
7356
+ */
7357
+ 'max-inline-size': [{
7358
+ 'max-inline': ['none', ...scaleSizingInline()]
7359
+ }],
7360
+ /**
7361
+ * Block Size
7362
+ * @see https://tailwindcss.com/docs/height
7363
+ */
7364
+ 'block-size': [{
7365
+ block: ['auto', ...scaleSizingBlock()]
7366
+ }],
7367
+ /**
7368
+ * Min-Block Size
7369
+ * @see https://tailwindcss.com/docs/min-height
7370
+ */
7371
+ 'min-block-size': [{
7372
+ 'min-block': ['auto', ...scaleSizingBlock()]
7373
+ }],
7374
+ /**
7375
+ * Max-Block Size
7376
+ * @see https://tailwindcss.com/docs/max-height
7377
+ */
7378
+ 'max-block-size': [{
7379
+ 'max-block': ['none', ...scaleSizingBlock()]
7380
+ }],
7381
+ /**
7382
+ * Width
7383
+ * @see https://tailwindcss.com/docs/width
7384
+ */
7385
+ w: [{
7386
+ w: [themeContainer, 'screen', ...scaleSizing()]
7387
+ }],
7388
+ /**
7389
+ * Min-Width
7390
+ * @see https://tailwindcss.com/docs/min-width
7391
+ */
7392
+ 'min-w': [{
7393
+ 'min-w': [themeContainer, 'screen', /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
7394
+ 'none', ...scaleSizing()]
7395
+ }],
7396
+ /**
7397
+ * Max-Width
7398
+ * @see https://tailwindcss.com/docs/max-width
7399
+ */
7400
+ 'max-w': [{
7401
+ 'max-w': [themeContainer, 'screen', 'none', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
7402
+ 'prose', /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
7403
+ {
7404
+ screen: [themeBreakpoint]
7405
+ }, ...scaleSizing()]
7406
+ }],
7407
+ /**
7408
+ * Height
7409
+ * @see https://tailwindcss.com/docs/height
7410
+ */
7411
+ h: [{
7412
+ h: ['screen', 'lh', ...scaleSizing()]
7413
+ }],
7414
+ /**
7415
+ * Min-Height
7416
+ * @see https://tailwindcss.com/docs/min-height
7417
+ */
7418
+ 'min-h': [{
7419
+ 'min-h': ['screen', 'lh', 'none', ...scaleSizing()]
7420
+ }],
7421
+ /**
7422
+ * Max-Height
7423
+ * @see https://tailwindcss.com/docs/max-height
7424
+ */
7425
+ 'max-h': [{
7426
+ 'max-h': ['screen', 'lh', ...scaleSizing()]
7427
+ }],
7428
+ // ------------------
7429
+ // --- Typography ---
7430
+ // ------------------
7431
+ /**
7432
+ * Font Size
7433
+ * @see https://tailwindcss.com/docs/font-size
7434
+ */
7435
+ 'font-size': [{
7436
+ text: ['base', themeText, isArbitraryVariableLength, isArbitraryLength]
7437
+ }],
7438
+ /**
7439
+ * Font Smoothing
7440
+ * @see https://tailwindcss.com/docs/font-smoothing
7441
+ */
7442
+ 'font-smoothing': ['antialiased', 'subpixel-antialiased'],
7443
+ /**
7444
+ * Font Style
7445
+ * @see https://tailwindcss.com/docs/font-style
7446
+ */
7447
+ 'font-style': ['italic', 'not-italic'],
7448
+ /**
7449
+ * Font Weight
7450
+ * @see https://tailwindcss.com/docs/font-weight
7451
+ */
7452
+ 'font-weight': [{
7453
+ font: [themeFontWeight, isArbitraryVariableWeight, isArbitraryWeight]
7454
+ }],
7455
+ /**
7456
+ * Font Stretch
7457
+ * @see https://tailwindcss.com/docs/font-stretch
7458
+ */
7459
+ 'font-stretch': [{
7460
+ 'font-stretch': ['ultra-condensed', 'extra-condensed', 'condensed', 'semi-condensed', 'normal', 'semi-expanded', 'expanded', 'extra-expanded', 'ultra-expanded', isPercent, isArbitraryValue]
7461
+ }],
7462
+ /**
7463
+ * Font Family
7464
+ * @see https://tailwindcss.com/docs/font-family
7465
+ */
7466
+ 'font-family': [{
7467
+ font: [isArbitraryVariableFamilyName, isArbitraryFamilyName, themeFont]
7468
+ }],
7469
+ /**
7470
+ * Font Feature Settings
7471
+ * @see https://tailwindcss.com/docs/font-feature-settings
7472
+ */
7473
+ 'font-features': [{
7474
+ 'font-features': [isArbitraryValue]
7475
+ }],
7476
+ /**
7477
+ * Font Variant Numeric
7478
+ * @see https://tailwindcss.com/docs/font-variant-numeric
7479
+ */
7480
+ 'fvn-normal': ['normal-nums'],
7481
+ /**
7482
+ * Font Variant Numeric
7483
+ * @see https://tailwindcss.com/docs/font-variant-numeric
7484
+ */
7485
+ 'fvn-ordinal': ['ordinal'],
7486
+ /**
7487
+ * Font Variant Numeric
7488
+ * @see https://tailwindcss.com/docs/font-variant-numeric
7489
+ */
7490
+ 'fvn-slashed-zero': ['slashed-zero'],
7491
+ /**
7492
+ * Font Variant Numeric
7493
+ * @see https://tailwindcss.com/docs/font-variant-numeric
7494
+ */
7495
+ 'fvn-figure': ['lining-nums', 'oldstyle-nums'],
7496
+ /**
7497
+ * Font Variant Numeric
7498
+ * @see https://tailwindcss.com/docs/font-variant-numeric
7499
+ */
7500
+ 'fvn-spacing': ['proportional-nums', 'tabular-nums'],
7501
+ /**
7502
+ * Font Variant Numeric
7503
+ * @see https://tailwindcss.com/docs/font-variant-numeric
7504
+ */
7505
+ 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],
7506
+ /**
7507
+ * Letter Spacing
7508
+ * @see https://tailwindcss.com/docs/letter-spacing
7509
+ */
7510
+ tracking: [{
7511
+ tracking: [themeTracking, isArbitraryVariable, isArbitraryValue]
7512
+ }],
7513
+ /**
7514
+ * Line Clamp
7515
+ * @see https://tailwindcss.com/docs/line-clamp
7516
+ */
7517
+ 'line-clamp': [{
7518
+ 'line-clamp': [isNumber, 'none', isArbitraryVariable, isArbitraryNumber]
7519
+ }],
7520
+ /**
7521
+ * Line Height
7522
+ * @see https://tailwindcss.com/docs/line-height
7523
+ */
7524
+ leading: [{
7525
+ leading: [/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
7526
+ themeLeading, ...scaleUnambiguousSpacing()]
7527
+ }],
7528
+ /**
7529
+ * List Style Image
7530
+ * @see https://tailwindcss.com/docs/list-style-image
7531
+ */
7532
+ 'list-image': [{
7533
+ 'list-image': ['none', isArbitraryVariable, isArbitraryValue]
7534
+ }],
7535
+ /**
7536
+ * List Style Position
7537
+ * @see https://tailwindcss.com/docs/list-style-position
7538
+ */
7539
+ 'list-style-position': [{
7540
+ list: ['inside', 'outside']
7541
+ }],
7542
+ /**
7543
+ * List Style Type
7544
+ * @see https://tailwindcss.com/docs/list-style-type
7545
+ */
7546
+ 'list-style-type': [{
7547
+ list: ['disc', 'decimal', 'none', isArbitraryVariable, isArbitraryValue]
7548
+ }],
7549
+ /**
7550
+ * Text Alignment
7551
+ * @see https://tailwindcss.com/docs/text-align
7552
+ */
7553
+ 'text-alignment': [{
7554
+ text: ['left', 'center', 'right', 'justify', 'start', 'end']
7555
+ }],
7556
+ /**
7557
+ * Placeholder Color
7558
+ * @deprecated since Tailwind CSS v3.0.0
7559
+ * @see https://v3.tailwindcss.com/docs/placeholder-color
7560
+ */
7561
+ 'placeholder-color': [{
7562
+ placeholder: scaleColor()
7563
+ }],
7564
+ /**
7565
+ * Text Color
7566
+ * @see https://tailwindcss.com/docs/text-color
7567
+ */
7568
+ 'text-color': [{
7569
+ text: scaleColor()
7570
+ }],
7571
+ /**
7572
+ * Text Decoration
7573
+ * @see https://tailwindcss.com/docs/text-decoration
7574
+ */
7575
+ 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],
7576
+ /**
7577
+ * Text Decoration Style
7578
+ * @see https://tailwindcss.com/docs/text-decoration-style
7579
+ */
7580
+ 'text-decoration-style': [{
7581
+ decoration: [...scaleLineStyle(), 'wavy']
7582
+ }],
7583
+ /**
7584
+ * Text Decoration Thickness
7585
+ * @see https://tailwindcss.com/docs/text-decoration-thickness
7586
+ */
7587
+ 'text-decoration-thickness': [{
7588
+ decoration: [isNumber, 'from-font', 'auto', isArbitraryVariable, isArbitraryLength]
7589
+ }],
7590
+ /**
7591
+ * Text Decoration Color
7592
+ * @see https://tailwindcss.com/docs/text-decoration-color
7593
+ */
7594
+ 'text-decoration-color': [{
7595
+ decoration: scaleColor()
7596
+ }],
7597
+ /**
7598
+ * Text Underline Offset
7599
+ * @see https://tailwindcss.com/docs/text-underline-offset
7600
+ */
7601
+ 'underline-offset': [{
7602
+ 'underline-offset': [isNumber, 'auto', isArbitraryVariable, isArbitraryValue]
7603
+ }],
7604
+ /**
7605
+ * Text Transform
7606
+ * @see https://tailwindcss.com/docs/text-transform
7607
+ */
7608
+ 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],
7609
+ /**
7610
+ * Text Overflow
7611
+ * @see https://tailwindcss.com/docs/text-overflow
7612
+ */
7613
+ 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],
7614
+ /**
7615
+ * Text Wrap
7616
+ * @see https://tailwindcss.com/docs/text-wrap
7617
+ */
7618
+ 'text-wrap': [{
7619
+ text: ['wrap', 'nowrap', 'balance', 'pretty']
7620
+ }],
7621
+ /**
7622
+ * Text Indent
7623
+ * @see https://tailwindcss.com/docs/text-indent
7624
+ */
7625
+ indent: [{
7626
+ indent: scaleUnambiguousSpacing()
7627
+ }],
7628
+ /**
7629
+ * Tab Size
7630
+ * @see https://tailwindcss.com/docs/tab-size
7631
+ */
7632
+ 'tab-size': [{
7633
+ tab: [isInteger, isArbitraryVariable, isArbitraryValue]
7634
+ }],
7635
+ /**
7636
+ * Vertical Alignment
7637
+ * @see https://tailwindcss.com/docs/vertical-align
7638
+ */
7639
+ 'vertical-align': [{
7640
+ align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryVariable, isArbitraryValue]
7641
+ }],
7642
+ /**
7643
+ * Whitespace
7644
+ * @see https://tailwindcss.com/docs/whitespace
7645
+ */
7646
+ whitespace: [{
7647
+ whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']
7648
+ }],
7649
+ /**
7650
+ * Word Break
7651
+ * @see https://tailwindcss.com/docs/word-break
7652
+ */
7653
+ break: [{
7654
+ break: ['normal', 'words', 'all', 'keep']
7655
+ }],
7656
+ /**
7657
+ * Overflow Wrap
7658
+ * @see https://tailwindcss.com/docs/overflow-wrap
7659
+ */
7660
+ wrap: [{
7661
+ wrap: ['break-word', 'anywhere', 'normal']
7662
+ }],
7663
+ /**
7664
+ * Hyphens
7665
+ * @see https://tailwindcss.com/docs/hyphens
7666
+ */
7667
+ hyphens: [{
7668
+ hyphens: ['none', 'manual', 'auto']
7669
+ }],
7670
+ /**
7671
+ * Content
7672
+ * @see https://tailwindcss.com/docs/content
7673
+ */
7674
+ content: [{
7675
+ content: ['none', isArbitraryVariable, isArbitraryValue]
7676
+ }],
7677
+ // -------------------
7678
+ // --- Backgrounds ---
7679
+ // -------------------
7680
+ /**
7681
+ * Background Attachment
7682
+ * @see https://tailwindcss.com/docs/background-attachment
7683
+ */
7684
+ 'bg-attachment': [{
7685
+ bg: ['fixed', 'local', 'scroll']
7686
+ }],
7687
+ /**
7688
+ * Background Clip
7689
+ * @see https://tailwindcss.com/docs/background-clip
7690
+ */
7691
+ 'bg-clip': [{
7692
+ 'bg-clip': ['border', 'padding', 'content', 'text']
7693
+ }],
7694
+ /**
7695
+ * Background Origin
7696
+ * @see https://tailwindcss.com/docs/background-origin
7697
+ */
7698
+ 'bg-origin': [{
7699
+ 'bg-origin': ['border', 'padding', 'content']
7700
+ }],
7701
+ /**
7702
+ * Background Position
7703
+ * @see https://tailwindcss.com/docs/background-position
7704
+ */
7705
+ 'bg-position': [{
7706
+ bg: scaleBgPosition()
7707
+ }],
7708
+ /**
7709
+ * Background Repeat
7710
+ * @see https://tailwindcss.com/docs/background-repeat
7711
+ */
7712
+ 'bg-repeat': [{
7713
+ bg: scaleBgRepeat()
7714
+ }],
7715
+ /**
7716
+ * Background Size
7717
+ * @see https://tailwindcss.com/docs/background-size
7718
+ */
7719
+ 'bg-size': [{
7720
+ bg: scaleBgSize()
7721
+ }],
7722
+ /**
7723
+ * Background Image
7724
+ * @see https://tailwindcss.com/docs/background-image
7725
+ */
7726
+ 'bg-image': [{
7727
+ bg: ['none', {
7728
+ linear: [{
7729
+ to: ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']
7730
+ }, isInteger, isArbitraryVariable, isArbitraryValue],
7731
+ radial: ['', isArbitraryVariable, isArbitraryValue],
7732
+ conic: [isInteger, isArbitraryVariable, isArbitraryValue]
7733
+ }, isArbitraryVariableImage, isArbitraryImage]
7734
+ }],
7735
+ /**
7736
+ * Background Color
7737
+ * @see https://tailwindcss.com/docs/background-color
7738
+ */
7739
+ 'bg-color': [{
7740
+ bg: scaleColor()
7741
+ }],
7742
+ /**
7743
+ * Gradient Color Stops From Position
7744
+ * @see https://tailwindcss.com/docs/gradient-color-stops
7745
+ */
7746
+ 'gradient-from-pos': [{
7747
+ from: scaleGradientStopPosition()
7748
+ }],
7749
+ /**
7750
+ * Gradient Color Stops Via Position
7751
+ * @see https://tailwindcss.com/docs/gradient-color-stops
7752
+ */
7753
+ 'gradient-via-pos': [{
7754
+ via: scaleGradientStopPosition()
7755
+ }],
7756
+ /**
7757
+ * Gradient Color Stops To Position
7758
+ * @see https://tailwindcss.com/docs/gradient-color-stops
7759
+ */
7760
+ 'gradient-to-pos': [{
7761
+ to: scaleGradientStopPosition()
7762
+ }],
7763
+ /**
7764
+ * Gradient Color Stops From
7765
+ * @see https://tailwindcss.com/docs/gradient-color-stops
7766
+ */
7767
+ 'gradient-from': [{
7768
+ from: scaleColor()
7769
+ }],
7770
+ /**
7771
+ * Gradient Color Stops Via
7772
+ * @see https://tailwindcss.com/docs/gradient-color-stops
7773
+ */
7774
+ 'gradient-via': [{
7775
+ via: scaleColor()
7776
+ }],
7777
+ /**
7778
+ * Gradient Color Stops To
7779
+ * @see https://tailwindcss.com/docs/gradient-color-stops
7780
+ */
7781
+ 'gradient-to': [{
7782
+ to: scaleColor()
7783
+ }],
7784
+ // ---------------
7785
+ // --- Borders ---
7786
+ // ---------------
7787
+ /**
7788
+ * Border Radius
7789
+ * @see https://tailwindcss.com/docs/border-radius
7790
+ */
7791
+ rounded: [{
7792
+ rounded: scaleRadius()
7793
+ }],
7794
+ /**
7795
+ * Border Radius Start
7796
+ * @see https://tailwindcss.com/docs/border-radius
7797
+ */
7798
+ 'rounded-s': [{
7799
+ 'rounded-s': scaleRadius()
7800
+ }],
7801
+ /**
7802
+ * Border Radius End
7803
+ * @see https://tailwindcss.com/docs/border-radius
7804
+ */
7805
+ 'rounded-e': [{
7806
+ 'rounded-e': scaleRadius()
7807
+ }],
7808
+ /**
7809
+ * Border Radius Top
7810
+ * @see https://tailwindcss.com/docs/border-radius
7811
+ */
7812
+ 'rounded-t': [{
7813
+ 'rounded-t': scaleRadius()
7814
+ }],
7815
+ /**
7816
+ * Border Radius Right
7817
+ * @see https://tailwindcss.com/docs/border-radius
7818
+ */
7819
+ 'rounded-r': [{
7820
+ 'rounded-r': scaleRadius()
7821
+ }],
7822
+ /**
7823
+ * Border Radius Bottom
7824
+ * @see https://tailwindcss.com/docs/border-radius
7825
+ */
7826
+ 'rounded-b': [{
7827
+ 'rounded-b': scaleRadius()
7828
+ }],
7829
+ /**
7830
+ * Border Radius Left
7831
+ * @see https://tailwindcss.com/docs/border-radius
7832
+ */
7833
+ 'rounded-l': [{
7834
+ 'rounded-l': scaleRadius()
7835
+ }],
7836
+ /**
7837
+ * Border Radius Start Start
7838
+ * @see https://tailwindcss.com/docs/border-radius
7839
+ */
7840
+ 'rounded-ss': [{
7841
+ 'rounded-ss': scaleRadius()
7842
+ }],
7843
+ /**
7844
+ * Border Radius Start End
7845
+ * @see https://tailwindcss.com/docs/border-radius
7846
+ */
7847
+ 'rounded-se': [{
7848
+ 'rounded-se': scaleRadius()
7849
+ }],
7850
+ /**
7851
+ * Border Radius End End
7852
+ * @see https://tailwindcss.com/docs/border-radius
7853
+ */
7854
+ 'rounded-ee': [{
7855
+ 'rounded-ee': scaleRadius()
7856
+ }],
7857
+ /**
7858
+ * Border Radius End Start
7859
+ * @see https://tailwindcss.com/docs/border-radius
7860
+ */
7861
+ 'rounded-es': [{
7862
+ 'rounded-es': scaleRadius()
7863
+ }],
7864
+ /**
7865
+ * Border Radius Top Left
7866
+ * @see https://tailwindcss.com/docs/border-radius
7867
+ */
7868
+ 'rounded-tl': [{
7869
+ 'rounded-tl': scaleRadius()
7870
+ }],
7871
+ /**
7872
+ * Border Radius Top Right
7873
+ * @see https://tailwindcss.com/docs/border-radius
7874
+ */
7875
+ 'rounded-tr': [{
7876
+ 'rounded-tr': scaleRadius()
7877
+ }],
7878
+ /**
7879
+ * Border Radius Bottom Right
7880
+ * @see https://tailwindcss.com/docs/border-radius
7881
+ */
7882
+ 'rounded-br': [{
7883
+ 'rounded-br': scaleRadius()
7884
+ }],
7885
+ /**
7886
+ * Border Radius Bottom Left
7887
+ * @see https://tailwindcss.com/docs/border-radius
7888
+ */
7889
+ 'rounded-bl': [{
7890
+ 'rounded-bl': scaleRadius()
7891
+ }],
7892
+ /**
7893
+ * Border Width
7894
+ * @see https://tailwindcss.com/docs/border-width
7895
+ */
7896
+ 'border-w': [{
7897
+ border: scaleBorderWidth()
7898
+ }],
7899
+ /**
7900
+ * Border Width Inline
7901
+ * @see https://tailwindcss.com/docs/border-width
7902
+ */
7903
+ 'border-w-x': [{
7904
+ 'border-x': scaleBorderWidth()
7905
+ }],
7906
+ /**
7907
+ * Border Width Block
7908
+ * @see https://tailwindcss.com/docs/border-width
7909
+ */
7910
+ 'border-w-y': [{
7911
+ 'border-y': scaleBorderWidth()
7912
+ }],
7913
+ /**
7914
+ * Border Width Inline Start
7915
+ * @see https://tailwindcss.com/docs/border-width
7916
+ */
7917
+ 'border-w-s': [{
7918
+ 'border-s': scaleBorderWidth()
7919
+ }],
7920
+ /**
7921
+ * Border Width Inline End
7922
+ * @see https://tailwindcss.com/docs/border-width
7923
+ */
7924
+ 'border-w-e': [{
7925
+ 'border-e': scaleBorderWidth()
7926
+ }],
7927
+ /**
7928
+ * Border Width Block Start
7929
+ * @see https://tailwindcss.com/docs/border-width
7930
+ */
7931
+ 'border-w-bs': [{
7932
+ 'border-bs': scaleBorderWidth()
7933
+ }],
7934
+ /**
7935
+ * Border Width Block End
7936
+ * @see https://tailwindcss.com/docs/border-width
7937
+ */
7938
+ 'border-w-be': [{
7939
+ 'border-be': scaleBorderWidth()
7940
+ }],
7941
+ /**
7942
+ * Border Width Top
7943
+ * @see https://tailwindcss.com/docs/border-width
7944
+ */
7945
+ 'border-w-t': [{
7946
+ 'border-t': scaleBorderWidth()
7947
+ }],
7948
+ /**
7949
+ * Border Width Right
7950
+ * @see https://tailwindcss.com/docs/border-width
7951
+ */
7952
+ 'border-w-r': [{
7953
+ 'border-r': scaleBorderWidth()
7954
+ }],
7955
+ /**
7956
+ * Border Width Bottom
7957
+ * @see https://tailwindcss.com/docs/border-width
7958
+ */
7959
+ 'border-w-b': [{
7960
+ 'border-b': scaleBorderWidth()
7961
+ }],
7962
+ /**
7963
+ * Border Width Left
7964
+ * @see https://tailwindcss.com/docs/border-width
7965
+ */
7966
+ 'border-w-l': [{
7967
+ 'border-l': scaleBorderWidth()
7968
+ }],
7969
+ /**
7970
+ * Divide Width X
7971
+ * @see https://tailwindcss.com/docs/border-width#between-children
7972
+ */
7973
+ 'divide-x': [{
7974
+ 'divide-x': scaleBorderWidth()
7975
+ }],
7976
+ /**
7977
+ * Divide Width X Reverse
7978
+ * @see https://tailwindcss.com/docs/border-width#between-children
7979
+ */
7980
+ 'divide-x-reverse': ['divide-x-reverse'],
7981
+ /**
7982
+ * Divide Width Y
7983
+ * @see https://tailwindcss.com/docs/border-width#between-children
7984
+ */
7985
+ 'divide-y': [{
7986
+ 'divide-y': scaleBorderWidth()
7987
+ }],
7988
+ /**
7989
+ * Divide Width Y Reverse
7990
+ * @see https://tailwindcss.com/docs/border-width#between-children
7991
+ */
7992
+ 'divide-y-reverse': ['divide-y-reverse'],
7993
+ /**
7994
+ * Border Style
7995
+ * @see https://tailwindcss.com/docs/border-style
7996
+ */
7997
+ 'border-style': [{
7998
+ border: [...scaleLineStyle(), 'hidden', 'none']
7999
+ }],
8000
+ /**
8001
+ * Divide Style
8002
+ * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
8003
+ */
8004
+ 'divide-style': [{
8005
+ divide: [...scaleLineStyle(), 'hidden', 'none']
8006
+ }],
8007
+ /**
8008
+ * Border Color
8009
+ * @see https://tailwindcss.com/docs/border-color
8010
+ */
8011
+ 'border-color': [{
8012
+ border: scaleColor()
8013
+ }],
8014
+ /**
8015
+ * Border Color Inline
8016
+ * @see https://tailwindcss.com/docs/border-color
8017
+ */
8018
+ 'border-color-x': [{
8019
+ 'border-x': scaleColor()
8020
+ }],
8021
+ /**
8022
+ * Border Color Block
8023
+ * @see https://tailwindcss.com/docs/border-color
8024
+ */
8025
+ 'border-color-y': [{
8026
+ 'border-y': scaleColor()
8027
+ }],
8028
+ /**
8029
+ * Border Color Inline Start
8030
+ * @see https://tailwindcss.com/docs/border-color
8031
+ */
8032
+ 'border-color-s': [{
8033
+ 'border-s': scaleColor()
8034
+ }],
8035
+ /**
8036
+ * Border Color Inline End
8037
+ * @see https://tailwindcss.com/docs/border-color
8038
+ */
8039
+ 'border-color-e': [{
8040
+ 'border-e': scaleColor()
8041
+ }],
8042
+ /**
8043
+ * Border Color Block Start
8044
+ * @see https://tailwindcss.com/docs/border-color
8045
+ */
8046
+ 'border-color-bs': [{
8047
+ 'border-bs': scaleColor()
8048
+ }],
8049
+ /**
8050
+ * Border Color Block End
8051
+ * @see https://tailwindcss.com/docs/border-color
8052
+ */
8053
+ 'border-color-be': [{
8054
+ 'border-be': scaleColor()
8055
+ }],
8056
+ /**
8057
+ * Border Color Top
8058
+ * @see https://tailwindcss.com/docs/border-color
8059
+ */
8060
+ 'border-color-t': [{
8061
+ 'border-t': scaleColor()
8062
+ }],
8063
+ /**
8064
+ * Border Color Right
8065
+ * @see https://tailwindcss.com/docs/border-color
8066
+ */
8067
+ 'border-color-r': [{
8068
+ 'border-r': scaleColor()
8069
+ }],
8070
+ /**
8071
+ * Border Color Bottom
8072
+ * @see https://tailwindcss.com/docs/border-color
8073
+ */
8074
+ 'border-color-b': [{
8075
+ 'border-b': scaleColor()
8076
+ }],
8077
+ /**
8078
+ * Border Color Left
8079
+ * @see https://tailwindcss.com/docs/border-color
8080
+ */
8081
+ 'border-color-l': [{
8082
+ 'border-l': scaleColor()
8083
+ }],
8084
+ /**
8085
+ * Divide Color
8086
+ * @see https://tailwindcss.com/docs/divide-color
8087
+ */
8088
+ 'divide-color': [{
8089
+ divide: scaleColor()
8090
+ }],
8091
+ /**
8092
+ * Outline Style
8093
+ * @see https://tailwindcss.com/docs/outline-style
8094
+ */
8095
+ 'outline-style': [{
8096
+ outline: [...scaleLineStyle(), 'none', 'hidden']
8097
+ }],
8098
+ /**
8099
+ * Outline Offset
8100
+ * @see https://tailwindcss.com/docs/outline-offset
8101
+ */
8102
+ 'outline-offset': [{
8103
+ 'outline-offset': [isNumber, isArbitraryVariable, isArbitraryValue]
8104
+ }],
8105
+ /**
8106
+ * Outline Width
8107
+ * @see https://tailwindcss.com/docs/outline-width
8108
+ */
8109
+ 'outline-w': [{
8110
+ outline: ['', isNumber, isArbitraryVariableLength, isArbitraryLength]
8111
+ }],
8112
+ /**
8113
+ * Outline Color
8114
+ * @see https://tailwindcss.com/docs/outline-color
8115
+ */
8116
+ 'outline-color': [{
8117
+ outline: scaleColor()
8118
+ }],
8119
+ // ---------------
8120
+ // --- Effects ---
8121
+ // ---------------
8122
+ /**
8123
+ * Box Shadow
8124
+ * @see https://tailwindcss.com/docs/box-shadow
8125
+ */
8126
+ shadow: [{
8127
+ shadow: [
8128
+ // Deprecated since Tailwind CSS v4.0.0
8129
+ '', 'none', themeShadow, isArbitraryVariableShadow, isArbitraryShadow]
8130
+ }],
8131
+ /**
8132
+ * Box Shadow Color
8133
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
8134
+ */
8135
+ 'shadow-color': [{
8136
+ shadow: scaleColor()
8137
+ }],
8138
+ /**
8139
+ * Inset Box Shadow
8140
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
8141
+ */
8142
+ 'inset-shadow': [{
8143
+ 'inset-shadow': ['none', themeInsetShadow, isArbitraryVariableShadow, isArbitraryShadow]
8144
+ }],
8145
+ /**
8146
+ * Inset Box Shadow Color
8147
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
8148
+ */
8149
+ 'inset-shadow-color': [{
8150
+ 'inset-shadow': scaleColor()
8151
+ }],
8152
+ /**
8153
+ * Ring Width
8154
+ * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
8155
+ */
8156
+ 'ring-w': [{
8157
+ ring: scaleBorderWidth()
8158
+ }],
8159
+ /**
8160
+ * Ring Width Inset
8161
+ * @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
8162
+ * @deprecated since Tailwind CSS v4.0.0
8163
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
8164
+ */
8165
+ 'ring-w-inset': ['ring-inset'],
8166
+ /**
8167
+ * Ring Color
8168
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
8169
+ */
8170
+ 'ring-color': [{
8171
+ ring: scaleColor()
8172
+ }],
8173
+ /**
8174
+ * Ring Offset Width
8175
+ * @see https://v3.tailwindcss.com/docs/ring-offset-width
8176
+ * @deprecated since Tailwind CSS v4.0.0
8177
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
8178
+ */
8179
+ 'ring-offset-w': [{
8180
+ 'ring-offset': [isNumber, isArbitraryLength]
8181
+ }],
8182
+ /**
8183
+ * Ring Offset Color
8184
+ * @see https://v3.tailwindcss.com/docs/ring-offset-color
8185
+ * @deprecated since Tailwind CSS v4.0.0
8186
+ * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
8187
+ */
8188
+ 'ring-offset-color': [{
8189
+ 'ring-offset': scaleColor()
8190
+ }],
8191
+ /**
8192
+ * Inset Ring Width
8193
+ * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
8194
+ */
8195
+ 'inset-ring-w': [{
8196
+ 'inset-ring': scaleBorderWidth()
8197
+ }],
8198
+ /**
8199
+ * Inset Ring Color
8200
+ * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
8201
+ */
8202
+ 'inset-ring-color': [{
8203
+ 'inset-ring': scaleColor()
8204
+ }],
8205
+ /**
8206
+ * Text Shadow
8207
+ * @see https://tailwindcss.com/docs/text-shadow
8208
+ */
8209
+ 'text-shadow': [{
8210
+ 'text-shadow': ['none', themeTextShadow, isArbitraryVariableShadow, isArbitraryShadow]
8211
+ }],
8212
+ /**
8213
+ * Text Shadow Color
8214
+ * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
8215
+ */
8216
+ 'text-shadow-color': [{
8217
+ 'text-shadow': scaleColor()
8218
+ }],
8219
+ /**
8220
+ * Opacity
8221
+ * @see https://tailwindcss.com/docs/opacity
8222
+ */
8223
+ opacity: [{
8224
+ opacity: [isNumber, isArbitraryVariable, isArbitraryValue]
8225
+ }],
8226
+ /**
8227
+ * Mix Blend Mode
8228
+ * @see https://tailwindcss.com/docs/mix-blend-mode
8229
+ */
8230
+ 'mix-blend': [{
8231
+ 'mix-blend': [...scaleBlendMode(), 'plus-darker', 'plus-lighter']
8232
+ }],
8233
+ /**
8234
+ * Background Blend Mode
8235
+ * @see https://tailwindcss.com/docs/background-blend-mode
8236
+ */
8237
+ 'bg-blend': [{
8238
+ 'bg-blend': scaleBlendMode()
8239
+ }],
8240
+ /**
8241
+ * Mask Clip
8242
+ * @see https://tailwindcss.com/docs/mask-clip
8243
+ */
8244
+ 'mask-clip': [{
8245
+ 'mask-clip': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
8246
+ }, 'mask-no-clip'],
8247
+ /**
8248
+ * Mask Composite
8249
+ * @see https://tailwindcss.com/docs/mask-composite
8250
+ */
8251
+ 'mask-composite': [{
8252
+ mask: ['add', 'subtract', 'intersect', 'exclude']
8253
+ }],
8254
+ /**
8255
+ * Mask Image
8256
+ * @see https://tailwindcss.com/docs/mask-image
8257
+ */
8258
+ 'mask-image-linear-pos': [{
8259
+ 'mask-linear': [isNumber]
8260
+ }],
8261
+ 'mask-image-linear-from-pos': [{
8262
+ 'mask-linear-from': scaleMaskImagePosition()
8263
+ }],
8264
+ 'mask-image-linear-to-pos': [{
8265
+ 'mask-linear-to': scaleMaskImagePosition()
8266
+ }],
8267
+ 'mask-image-linear-from-color': [{
8268
+ 'mask-linear-from': scaleColor()
8269
+ }],
8270
+ 'mask-image-linear-to-color': [{
8271
+ 'mask-linear-to': scaleColor()
8272
+ }],
8273
+ 'mask-image-t-from-pos': [{
8274
+ 'mask-t-from': scaleMaskImagePosition()
8275
+ }],
8276
+ 'mask-image-t-to-pos': [{
8277
+ 'mask-t-to': scaleMaskImagePosition()
8278
+ }],
8279
+ 'mask-image-t-from-color': [{
8280
+ 'mask-t-from': scaleColor()
8281
+ }],
8282
+ 'mask-image-t-to-color': [{
8283
+ 'mask-t-to': scaleColor()
8284
+ }],
8285
+ 'mask-image-r-from-pos': [{
8286
+ 'mask-r-from': scaleMaskImagePosition()
8287
+ }],
8288
+ 'mask-image-r-to-pos': [{
8289
+ 'mask-r-to': scaleMaskImagePosition()
8290
+ }],
8291
+ 'mask-image-r-from-color': [{
8292
+ 'mask-r-from': scaleColor()
8293
+ }],
8294
+ 'mask-image-r-to-color': [{
8295
+ 'mask-r-to': scaleColor()
8296
+ }],
8297
+ 'mask-image-b-from-pos': [{
8298
+ 'mask-b-from': scaleMaskImagePosition()
8299
+ }],
8300
+ 'mask-image-b-to-pos': [{
8301
+ 'mask-b-to': scaleMaskImagePosition()
8302
+ }],
8303
+ 'mask-image-b-from-color': [{
8304
+ 'mask-b-from': scaleColor()
8305
+ }],
8306
+ 'mask-image-b-to-color': [{
8307
+ 'mask-b-to': scaleColor()
8308
+ }],
8309
+ 'mask-image-l-from-pos': [{
8310
+ 'mask-l-from': scaleMaskImagePosition()
8311
+ }],
8312
+ 'mask-image-l-to-pos': [{
8313
+ 'mask-l-to': scaleMaskImagePosition()
8314
+ }],
8315
+ 'mask-image-l-from-color': [{
8316
+ 'mask-l-from': scaleColor()
8317
+ }],
8318
+ 'mask-image-l-to-color': [{
8319
+ 'mask-l-to': scaleColor()
8320
+ }],
8321
+ 'mask-image-x-from-pos': [{
8322
+ 'mask-x-from': scaleMaskImagePosition()
8323
+ }],
8324
+ 'mask-image-x-to-pos': [{
8325
+ 'mask-x-to': scaleMaskImagePosition()
8326
+ }],
8327
+ 'mask-image-x-from-color': [{
8328
+ 'mask-x-from': scaleColor()
8329
+ }],
8330
+ 'mask-image-x-to-color': [{
8331
+ 'mask-x-to': scaleColor()
8332
+ }],
8333
+ 'mask-image-y-from-pos': [{
8334
+ 'mask-y-from': scaleMaskImagePosition()
8335
+ }],
8336
+ 'mask-image-y-to-pos': [{
8337
+ 'mask-y-to': scaleMaskImagePosition()
8338
+ }],
8339
+ 'mask-image-y-from-color': [{
8340
+ 'mask-y-from': scaleColor()
8341
+ }],
8342
+ 'mask-image-y-to-color': [{
8343
+ 'mask-y-to': scaleColor()
8344
+ }],
8345
+ 'mask-image-radial': [{
8346
+ 'mask-radial': [isArbitraryVariable, isArbitraryValue]
8347
+ }],
8348
+ 'mask-image-radial-from-pos': [{
8349
+ 'mask-radial-from': scaleMaskImagePosition()
8350
+ }],
8351
+ 'mask-image-radial-to-pos': [{
8352
+ 'mask-radial-to': scaleMaskImagePosition()
8353
+ }],
8354
+ 'mask-image-radial-from-color': [{
8355
+ 'mask-radial-from': scaleColor()
8356
+ }],
8357
+ 'mask-image-radial-to-color': [{
8358
+ 'mask-radial-to': scaleColor()
8359
+ }],
8360
+ 'mask-image-radial-shape': [{
8361
+ 'mask-radial': ['circle', 'ellipse']
8362
+ }],
8363
+ 'mask-image-radial-size': [{
8364
+ 'mask-radial': [{
8365
+ closest: ['side', 'corner'],
8366
+ farthest: ['side', 'corner']
8367
+ }]
8368
+ }],
8369
+ 'mask-image-radial-pos': [{
8370
+ 'mask-radial-at': scalePosition()
8371
+ }],
8372
+ 'mask-image-conic-pos': [{
8373
+ 'mask-conic': [isNumber]
8374
+ }],
8375
+ 'mask-image-conic-from-pos': [{
8376
+ 'mask-conic-from': scaleMaskImagePosition()
8377
+ }],
8378
+ 'mask-image-conic-to-pos': [{
8379
+ 'mask-conic-to': scaleMaskImagePosition()
8380
+ }],
8381
+ 'mask-image-conic-from-color': [{
8382
+ 'mask-conic-from': scaleColor()
8383
+ }],
8384
+ 'mask-image-conic-to-color': [{
8385
+ 'mask-conic-to': scaleColor()
8386
+ }],
8387
+ /**
8388
+ * Mask Mode
8389
+ * @see https://tailwindcss.com/docs/mask-mode
8390
+ */
8391
+ 'mask-mode': [{
8392
+ mask: ['alpha', 'luminance', 'match']
8393
+ }],
8394
+ /**
8395
+ * Mask Origin
8396
+ * @see https://tailwindcss.com/docs/mask-origin
8397
+ */
8398
+ 'mask-origin': [{
8399
+ 'mask-origin': ['border', 'padding', 'content', 'fill', 'stroke', 'view']
8400
+ }],
8401
+ /**
8402
+ * Mask Position
8403
+ * @see https://tailwindcss.com/docs/mask-position
8404
+ */
8405
+ 'mask-position': [{
8406
+ mask: scaleBgPosition()
8407
+ }],
8408
+ /**
8409
+ * Mask Repeat
8410
+ * @see https://tailwindcss.com/docs/mask-repeat
8411
+ */
8412
+ 'mask-repeat': [{
8413
+ mask: scaleBgRepeat()
8414
+ }],
8415
+ /**
8416
+ * Mask Size
8417
+ * @see https://tailwindcss.com/docs/mask-size
8418
+ */
8419
+ 'mask-size': [{
8420
+ mask: scaleBgSize()
8421
+ }],
8422
+ /**
8423
+ * Mask Type
8424
+ * @see https://tailwindcss.com/docs/mask-type
8425
+ */
8426
+ 'mask-type': [{
8427
+ 'mask-type': ['alpha', 'luminance']
8428
+ }],
8429
+ /**
8430
+ * Mask Image
8431
+ * @see https://tailwindcss.com/docs/mask-image
8432
+ */
8433
+ 'mask-image': [{
8434
+ mask: ['none', isArbitraryVariable, isArbitraryValue]
8435
+ }],
8436
+ // ---------------
8437
+ // --- Filters ---
8438
+ // ---------------
8439
+ /**
8440
+ * Filter
8441
+ * @see https://tailwindcss.com/docs/filter
8442
+ */
8443
+ filter: [{
8444
+ filter: [
8445
+ // Deprecated since Tailwind CSS v3.0.0
8446
+ '', 'none', isArbitraryVariable, isArbitraryValue]
8447
+ }],
8448
+ /**
8449
+ * Blur
8450
+ * @see https://tailwindcss.com/docs/blur
8451
+ */
8452
+ blur: [{
8453
+ blur: scaleBlur()
8454
+ }],
8455
+ /**
8456
+ * Brightness
8457
+ * @see https://tailwindcss.com/docs/brightness
8458
+ */
8459
+ brightness: [{
8460
+ brightness: [isNumber, isArbitraryVariable, isArbitraryValue]
8461
+ }],
8462
+ /**
8463
+ * Contrast
8464
+ * @see https://tailwindcss.com/docs/contrast
8465
+ */
8466
+ contrast: [{
8467
+ contrast: [isNumber, isArbitraryVariable, isArbitraryValue]
8468
+ }],
8469
+ /**
8470
+ * Drop Shadow
8471
+ * @see https://tailwindcss.com/docs/drop-shadow
8472
+ */
8473
+ 'drop-shadow': [{
8474
+ 'drop-shadow': [
8475
+ // Deprecated since Tailwind CSS v4.0.0
8476
+ '', 'none', themeDropShadow, isArbitraryVariableShadow, isArbitraryShadow]
8477
+ }],
8478
+ /**
8479
+ * Drop Shadow Color
8480
+ * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
8481
+ */
8482
+ 'drop-shadow-color': [{
8483
+ 'drop-shadow': scaleColor()
8484
+ }],
8485
+ /**
8486
+ * Grayscale
8487
+ * @see https://tailwindcss.com/docs/grayscale
8488
+ */
8489
+ grayscale: [{
8490
+ grayscale: ['', isNumber, isArbitraryVariable, isArbitraryValue]
8491
+ }],
8492
+ /**
8493
+ * Hue Rotate
8494
+ * @see https://tailwindcss.com/docs/hue-rotate
8495
+ */
8496
+ 'hue-rotate': [{
8497
+ 'hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
8498
+ }],
8499
+ /**
8500
+ * Invert
8501
+ * @see https://tailwindcss.com/docs/invert
8502
+ */
8503
+ invert: [{
8504
+ invert: ['', isNumber, isArbitraryVariable, isArbitraryValue]
8505
+ }],
8506
+ /**
8507
+ * Saturate
8508
+ * @see https://tailwindcss.com/docs/saturate
8509
+ */
8510
+ saturate: [{
8511
+ saturate: [isNumber, isArbitraryVariable, isArbitraryValue]
8512
+ }],
8513
+ /**
8514
+ * Sepia
8515
+ * @see https://tailwindcss.com/docs/sepia
8516
+ */
8517
+ sepia: [{
8518
+ sepia: ['', isNumber, isArbitraryVariable, isArbitraryValue]
8519
+ }],
8520
+ /**
8521
+ * Backdrop Filter
8522
+ * @see https://tailwindcss.com/docs/backdrop-filter
8523
+ */
8524
+ 'backdrop-filter': [{
8525
+ 'backdrop-filter': [
8526
+ // Deprecated since Tailwind CSS v3.0.0
8527
+ '', 'none', isArbitraryVariable, isArbitraryValue]
8528
+ }],
8529
+ /**
8530
+ * Backdrop Blur
8531
+ * @see https://tailwindcss.com/docs/backdrop-blur
8532
+ */
8533
+ 'backdrop-blur': [{
8534
+ 'backdrop-blur': scaleBlur()
8535
+ }],
8536
+ /**
8537
+ * Backdrop Brightness
8538
+ * @see https://tailwindcss.com/docs/backdrop-brightness
8539
+ */
8540
+ 'backdrop-brightness': [{
8541
+ 'backdrop-brightness': [isNumber, isArbitraryVariable, isArbitraryValue]
8542
+ }],
8543
+ /**
8544
+ * Backdrop Contrast
8545
+ * @see https://tailwindcss.com/docs/backdrop-contrast
8546
+ */
8547
+ 'backdrop-contrast': [{
8548
+ 'backdrop-contrast': [isNumber, isArbitraryVariable, isArbitraryValue]
8549
+ }],
8550
+ /**
8551
+ * Backdrop Grayscale
8552
+ * @see https://tailwindcss.com/docs/backdrop-grayscale
8553
+ */
8554
+ 'backdrop-grayscale': [{
8555
+ 'backdrop-grayscale': ['', isNumber, isArbitraryVariable, isArbitraryValue]
8556
+ }],
8557
+ /**
8558
+ * Backdrop Hue Rotate
8559
+ * @see https://tailwindcss.com/docs/backdrop-hue-rotate
8560
+ */
8561
+ 'backdrop-hue-rotate': [{
8562
+ 'backdrop-hue-rotate': [isNumber, isArbitraryVariable, isArbitraryValue]
8563
+ }],
8564
+ /**
8565
+ * Backdrop Invert
8566
+ * @see https://tailwindcss.com/docs/backdrop-invert
8567
+ */
8568
+ 'backdrop-invert': [{
8569
+ 'backdrop-invert': ['', isNumber, isArbitraryVariable, isArbitraryValue]
8570
+ }],
8571
+ /**
8572
+ * Backdrop Opacity
8573
+ * @see https://tailwindcss.com/docs/backdrop-opacity
8574
+ */
8575
+ 'backdrop-opacity': [{
8576
+ 'backdrop-opacity': [isNumber, isArbitraryVariable, isArbitraryValue]
8577
+ }],
8578
+ /**
8579
+ * Backdrop Saturate
8580
+ * @see https://tailwindcss.com/docs/backdrop-saturate
8581
+ */
8582
+ 'backdrop-saturate': [{
8583
+ 'backdrop-saturate': [isNumber, isArbitraryVariable, isArbitraryValue]
8584
+ }],
8585
+ /**
8586
+ * Backdrop Sepia
8587
+ * @see https://tailwindcss.com/docs/backdrop-sepia
8588
+ */
8589
+ 'backdrop-sepia': [{
8590
+ 'backdrop-sepia': ['', isNumber, isArbitraryVariable, isArbitraryValue]
8591
+ }],
8592
+ // --------------
8593
+ // --- Tables ---
8594
+ // --------------
8595
+ /**
8596
+ * Border Collapse
8597
+ * @see https://tailwindcss.com/docs/border-collapse
8598
+ */
8599
+ 'border-collapse': [{
8600
+ border: ['collapse', 'separate']
8601
+ }],
8602
+ /**
8603
+ * Border Spacing
8604
+ * @see https://tailwindcss.com/docs/border-spacing
8605
+ */
8606
+ 'border-spacing': [{
8607
+ 'border-spacing': scaleUnambiguousSpacing()
8608
+ }],
8609
+ /**
8610
+ * Border Spacing X
8611
+ * @see https://tailwindcss.com/docs/border-spacing
8612
+ */
8613
+ 'border-spacing-x': [{
8614
+ 'border-spacing-x': scaleUnambiguousSpacing()
8615
+ }],
8616
+ /**
8617
+ * Border Spacing Y
8618
+ * @see https://tailwindcss.com/docs/border-spacing
8619
+ */
8620
+ 'border-spacing-y': [{
8621
+ 'border-spacing-y': scaleUnambiguousSpacing()
8622
+ }],
8623
+ /**
8624
+ * Table Layout
8625
+ * @see https://tailwindcss.com/docs/table-layout
8626
+ */
8627
+ 'table-layout': [{
8628
+ table: ['auto', 'fixed']
8629
+ }],
8630
+ /**
8631
+ * Caption Side
8632
+ * @see https://tailwindcss.com/docs/caption-side
8633
+ */
8634
+ caption: [{
8635
+ caption: ['top', 'bottom']
8636
+ }],
8637
+ // ---------------------------------
8638
+ // --- Transitions and Animation ---
8639
+ // ---------------------------------
8640
+ /**
8641
+ * Transition Property
8642
+ * @see https://tailwindcss.com/docs/transition-property
8643
+ */
8644
+ transition: [{
8645
+ transition: ['', 'all', 'colors', 'opacity', 'shadow', 'transform', 'none', isArbitraryVariable, isArbitraryValue]
8646
+ }],
8647
+ /**
8648
+ * Transition Behavior
8649
+ * @see https://tailwindcss.com/docs/transition-behavior
8650
+ */
8651
+ 'transition-behavior': [{
8652
+ transition: ['normal', 'discrete']
8653
+ }],
8654
+ /**
8655
+ * Transition Duration
8656
+ * @see https://tailwindcss.com/docs/transition-duration
8657
+ */
8658
+ duration: [{
8659
+ duration: [isNumber, 'initial', isArbitraryVariable, isArbitraryValue]
8660
+ }],
8661
+ /**
8662
+ * Transition Timing Function
8663
+ * @see https://tailwindcss.com/docs/transition-timing-function
8664
+ */
8665
+ ease: [{
8666
+ ease: ['linear', 'initial', themeEase, isArbitraryVariable, isArbitraryValue]
8667
+ }],
8668
+ /**
8669
+ * Transition Delay
8670
+ * @see https://tailwindcss.com/docs/transition-delay
8671
+ */
8672
+ delay: [{
8673
+ delay: [isNumber, isArbitraryVariable, isArbitraryValue]
8674
+ }],
8675
+ /**
8676
+ * Animation
8677
+ * @see https://tailwindcss.com/docs/animation
8678
+ */
8679
+ animate: [{
8680
+ animate: ['none', themeAnimate, isArbitraryVariable, isArbitraryValue]
8681
+ }],
8682
+ // ------------------
8683
+ // --- Transforms ---
8684
+ // ------------------
8685
+ /**
8686
+ * Backface Visibility
8687
+ * @see https://tailwindcss.com/docs/backface-visibility
8688
+ */
8689
+ backface: [{
8690
+ backface: ['hidden', 'visible']
8691
+ }],
8692
+ /**
8693
+ * Perspective
8694
+ * @see https://tailwindcss.com/docs/perspective
8695
+ */
8696
+ perspective: [{
8697
+ perspective: [themePerspective, isArbitraryVariable, isArbitraryValue]
8698
+ }],
8699
+ /**
8700
+ * Perspective Origin
8701
+ * @see https://tailwindcss.com/docs/perspective-origin
8702
+ */
8703
+ 'perspective-origin': [{
8704
+ 'perspective-origin': scalePositionWithArbitrary()
8705
+ }],
8706
+ /**
8707
+ * Rotate
8708
+ * @see https://tailwindcss.com/docs/rotate
8709
+ */
8710
+ rotate: [{
8711
+ rotate: scaleRotate()
8712
+ }],
8713
+ /**
8714
+ * Rotate X
8715
+ * @see https://tailwindcss.com/docs/rotate
8716
+ */
8717
+ 'rotate-x': [{
8718
+ 'rotate-x': scaleRotate()
8719
+ }],
8720
+ /**
8721
+ * Rotate Y
8722
+ * @see https://tailwindcss.com/docs/rotate
8723
+ */
8724
+ 'rotate-y': [{
8725
+ 'rotate-y': scaleRotate()
8726
+ }],
8727
+ /**
8728
+ * Rotate Z
8729
+ * @see https://tailwindcss.com/docs/rotate
8730
+ */
8731
+ 'rotate-z': [{
8732
+ 'rotate-z': scaleRotate()
8733
+ }],
8734
+ /**
8735
+ * Scale
8736
+ * @see https://tailwindcss.com/docs/scale
8737
+ */
8738
+ scale: [{
8739
+ scale: scaleScale()
8740
+ }],
8741
+ /**
8742
+ * Scale X
8743
+ * @see https://tailwindcss.com/docs/scale
8744
+ */
8745
+ 'scale-x': [{
8746
+ 'scale-x': scaleScale()
8747
+ }],
8748
+ /**
8749
+ * Scale Y
8750
+ * @see https://tailwindcss.com/docs/scale
8751
+ */
8752
+ 'scale-y': [{
8753
+ 'scale-y': scaleScale()
8754
+ }],
8755
+ /**
8756
+ * Scale Z
8757
+ * @see https://tailwindcss.com/docs/scale
8758
+ */
8759
+ 'scale-z': [{
8760
+ 'scale-z': scaleScale()
8761
+ }],
8762
+ /**
8763
+ * Scale 3D
8764
+ * @see https://tailwindcss.com/docs/scale
8765
+ */
8766
+ 'scale-3d': ['scale-3d'],
8767
+ /**
8768
+ * Skew
8769
+ * @see https://tailwindcss.com/docs/skew
8770
+ */
8771
+ skew: [{
8772
+ skew: scaleSkew()
8773
+ }],
8774
+ /**
8775
+ * Skew X
8776
+ * @see https://tailwindcss.com/docs/skew
8777
+ */
8778
+ 'skew-x': [{
8779
+ 'skew-x': scaleSkew()
8780
+ }],
8781
+ /**
8782
+ * Skew Y
8783
+ * @see https://tailwindcss.com/docs/skew
8784
+ */
8785
+ 'skew-y': [{
8786
+ 'skew-y': scaleSkew()
8787
+ }],
8788
+ /**
8789
+ * Transform
8790
+ * @see https://tailwindcss.com/docs/transform
8791
+ */
8792
+ transform: [{
8793
+ transform: [isArbitraryVariable, isArbitraryValue, '', 'none', 'gpu', 'cpu']
8794
+ }],
8795
+ /**
8796
+ * Transform Origin
8797
+ * @see https://tailwindcss.com/docs/transform-origin
8798
+ */
8799
+ 'transform-origin': [{
8800
+ origin: scalePositionWithArbitrary()
8801
+ }],
8802
+ /**
8803
+ * Transform Style
8804
+ * @see https://tailwindcss.com/docs/transform-style
8805
+ */
8806
+ 'transform-style': [{
8807
+ transform: ['3d', 'flat']
8808
+ }],
8809
+ /**
8810
+ * Translate
8811
+ * @see https://tailwindcss.com/docs/translate
8812
+ */
8813
+ translate: [{
8814
+ translate: scaleTranslate()
8815
+ }],
8816
+ /**
8817
+ * Translate X
8818
+ * @see https://tailwindcss.com/docs/translate
8819
+ */
8820
+ 'translate-x': [{
8821
+ 'translate-x': scaleTranslate()
8822
+ }],
8823
+ /**
8824
+ * Translate Y
8825
+ * @see https://tailwindcss.com/docs/translate
8826
+ */
8827
+ 'translate-y': [{
8828
+ 'translate-y': scaleTranslate()
8829
+ }],
8830
+ /**
8831
+ * Translate Z
8832
+ * @see https://tailwindcss.com/docs/translate
8833
+ */
8834
+ 'translate-z': [{
8835
+ 'translate-z': scaleTranslate()
8836
+ }],
8837
+ /**
8838
+ * Translate None
8839
+ * @see https://tailwindcss.com/docs/translate
8840
+ */
8841
+ 'translate-none': ['translate-none'],
8842
+ /**
8843
+ * Zoom
8844
+ * @see https://tailwindcss.com/docs/zoom
8845
+ */
8846
+ zoom: [{
8847
+ zoom: [isInteger, isArbitraryVariable, isArbitraryValue]
8848
+ }],
8849
+ // ---------------------
8850
+ // --- Interactivity ---
8851
+ // ---------------------
8852
+ /**
8853
+ * Accent Color
8854
+ * @see https://tailwindcss.com/docs/accent-color
8855
+ */
8856
+ accent: [{
8857
+ accent: scaleColor()
8858
+ }],
8859
+ /**
8860
+ * Appearance
8861
+ * @see https://tailwindcss.com/docs/appearance
8862
+ */
8863
+ appearance: [{
8864
+ appearance: ['none', 'auto']
8865
+ }],
8866
+ /**
8867
+ * Caret Color
8868
+ * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
8869
+ */
8870
+ 'caret-color': [{
8871
+ caret: scaleColor()
8872
+ }],
8873
+ /**
8874
+ * Color Scheme
8875
+ * @see https://tailwindcss.com/docs/color-scheme
8876
+ */
8877
+ 'color-scheme': [{
8878
+ scheme: ['normal', 'dark', 'light', 'light-dark', 'only-dark', 'only-light']
8879
+ }],
8880
+ /**
8881
+ * Cursor
8882
+ * @see https://tailwindcss.com/docs/cursor
8883
+ */
8884
+ cursor: [{
8885
+ cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryVariable, isArbitraryValue]
8886
+ }],
8887
+ /**
8888
+ * Field Sizing
8889
+ * @see https://tailwindcss.com/docs/field-sizing
8890
+ */
8891
+ 'field-sizing': [{
8892
+ 'field-sizing': ['fixed', 'content']
8893
+ }],
8894
+ /**
8895
+ * Pointer Events
8896
+ * @see https://tailwindcss.com/docs/pointer-events
8897
+ */
8898
+ 'pointer-events': [{
8899
+ 'pointer-events': ['auto', 'none']
8900
+ }],
8901
+ /**
8902
+ * Resize
8903
+ * @see https://tailwindcss.com/docs/resize
8904
+ */
8905
+ resize: [{
8906
+ resize: ['none', '', 'y', 'x']
8907
+ }],
8908
+ /**
8909
+ * Scroll Behavior
8910
+ * @see https://tailwindcss.com/docs/scroll-behavior
8911
+ */
8912
+ 'scroll-behavior': [{
8913
+ scroll: ['auto', 'smooth']
8914
+ }],
8915
+ /**
8916
+ * Scrollbar Thumb Color
8917
+ * @see https://tailwindcss.com/docs/scrollbar-color
8918
+ */
8919
+ 'scrollbar-thumb-color': [{
8920
+ 'scrollbar-thumb': scaleColor()
8921
+ }],
8922
+ /**
8923
+ * Scrollbar Track Color
8924
+ * @see https://tailwindcss.com/docs/scrollbar-color
8925
+ */
8926
+ 'scrollbar-track-color': [{
8927
+ 'scrollbar-track': scaleColor()
8928
+ }],
8929
+ /**
8930
+ * Scrollbar Gutter
8931
+ * @see https://tailwindcss.com/docs/scrollbar-gutter
8932
+ */
8933
+ 'scrollbar-gutter': [{
8934
+ 'scrollbar-gutter': ['auto', 'stable', 'both']
8935
+ }],
8936
+ /**
8937
+ * Scrollbar Width
8938
+ * @see https://tailwindcss.com/docs/scrollbar-width
8939
+ */
8940
+ 'scrollbar-w': [{
8941
+ scrollbar: ['auto', 'thin', 'none']
8942
+ }],
8943
+ /**
8944
+ * Scroll Margin
8945
+ * @see https://tailwindcss.com/docs/scroll-margin
8946
+ */
8947
+ 'scroll-m': [{
8948
+ 'scroll-m': scaleUnambiguousSpacing()
8949
+ }],
8950
+ /**
8951
+ * Scroll Margin Inline
8952
+ * @see https://tailwindcss.com/docs/scroll-margin
8953
+ */
8954
+ 'scroll-mx': [{
8955
+ 'scroll-mx': scaleUnambiguousSpacing()
8956
+ }],
8957
+ /**
8958
+ * Scroll Margin Block
8959
+ * @see https://tailwindcss.com/docs/scroll-margin
8960
+ */
8961
+ 'scroll-my': [{
8962
+ 'scroll-my': scaleUnambiguousSpacing()
8963
+ }],
8964
+ /**
8965
+ * Scroll Margin Inline Start
8966
+ * @see https://tailwindcss.com/docs/scroll-margin
8967
+ */
8968
+ 'scroll-ms': [{
8969
+ 'scroll-ms': scaleUnambiguousSpacing()
8970
+ }],
8971
+ /**
8972
+ * Scroll Margin Inline End
8973
+ * @see https://tailwindcss.com/docs/scroll-margin
8974
+ */
8975
+ 'scroll-me': [{
8976
+ 'scroll-me': scaleUnambiguousSpacing()
8977
+ }],
8978
+ /**
8979
+ * Scroll Margin Block Start
8980
+ * @see https://tailwindcss.com/docs/scroll-margin
8981
+ */
8982
+ 'scroll-mbs': [{
8983
+ 'scroll-mbs': scaleUnambiguousSpacing()
8984
+ }],
8985
+ /**
8986
+ * Scroll Margin Block End
8987
+ * @see https://tailwindcss.com/docs/scroll-margin
8988
+ */
8989
+ 'scroll-mbe': [{
8990
+ 'scroll-mbe': scaleUnambiguousSpacing()
8991
+ }],
8992
+ /**
8993
+ * Scroll Margin Top
8994
+ * @see https://tailwindcss.com/docs/scroll-margin
8995
+ */
8996
+ 'scroll-mt': [{
8997
+ 'scroll-mt': scaleUnambiguousSpacing()
8998
+ }],
8999
+ /**
9000
+ * Scroll Margin Right
9001
+ * @see https://tailwindcss.com/docs/scroll-margin
9002
+ */
9003
+ 'scroll-mr': [{
9004
+ 'scroll-mr': scaleUnambiguousSpacing()
9005
+ }],
9006
+ /**
9007
+ * Scroll Margin Bottom
9008
+ * @see https://tailwindcss.com/docs/scroll-margin
9009
+ */
9010
+ 'scroll-mb': [{
9011
+ 'scroll-mb': scaleUnambiguousSpacing()
9012
+ }],
9013
+ /**
9014
+ * Scroll Margin Left
9015
+ * @see https://tailwindcss.com/docs/scroll-margin
9016
+ */
9017
+ 'scroll-ml': [{
9018
+ 'scroll-ml': scaleUnambiguousSpacing()
9019
+ }],
9020
+ /**
9021
+ * Scroll Padding
9022
+ * @see https://tailwindcss.com/docs/scroll-padding
9023
+ */
9024
+ 'scroll-p': [{
9025
+ 'scroll-p': scaleUnambiguousSpacing()
9026
+ }],
9027
+ /**
9028
+ * Scroll Padding Inline
9029
+ * @see https://tailwindcss.com/docs/scroll-padding
9030
+ */
9031
+ 'scroll-px': [{
9032
+ 'scroll-px': scaleUnambiguousSpacing()
9033
+ }],
9034
+ /**
9035
+ * Scroll Padding Block
9036
+ * @see https://tailwindcss.com/docs/scroll-padding
9037
+ */
9038
+ 'scroll-py': [{
9039
+ 'scroll-py': scaleUnambiguousSpacing()
9040
+ }],
9041
+ /**
9042
+ * Scroll Padding Inline Start
9043
+ * @see https://tailwindcss.com/docs/scroll-padding
9044
+ */
9045
+ 'scroll-ps': [{
9046
+ 'scroll-ps': scaleUnambiguousSpacing()
9047
+ }],
9048
+ /**
9049
+ * Scroll Padding Inline End
9050
+ * @see https://tailwindcss.com/docs/scroll-padding
9051
+ */
9052
+ 'scroll-pe': [{
9053
+ 'scroll-pe': scaleUnambiguousSpacing()
9054
+ }],
9055
+ /**
9056
+ * Scroll Padding Block Start
9057
+ * @see https://tailwindcss.com/docs/scroll-padding
9058
+ */
9059
+ 'scroll-pbs': [{
9060
+ 'scroll-pbs': scaleUnambiguousSpacing()
9061
+ }],
9062
+ /**
9063
+ * Scroll Padding Block End
9064
+ * @see https://tailwindcss.com/docs/scroll-padding
9065
+ */
9066
+ 'scroll-pbe': [{
9067
+ 'scroll-pbe': scaleUnambiguousSpacing()
9068
+ }],
9069
+ /**
9070
+ * Scroll Padding Top
9071
+ * @see https://tailwindcss.com/docs/scroll-padding
9072
+ */
9073
+ 'scroll-pt': [{
9074
+ 'scroll-pt': scaleUnambiguousSpacing()
9075
+ }],
9076
+ /**
9077
+ * Scroll Padding Right
9078
+ * @see https://tailwindcss.com/docs/scroll-padding
9079
+ */
9080
+ 'scroll-pr': [{
9081
+ 'scroll-pr': scaleUnambiguousSpacing()
9082
+ }],
9083
+ /**
9084
+ * Scroll Padding Bottom
9085
+ * @see https://tailwindcss.com/docs/scroll-padding
9086
+ */
9087
+ 'scroll-pb': [{
9088
+ 'scroll-pb': scaleUnambiguousSpacing()
9089
+ }],
9090
+ /**
9091
+ * Scroll Padding Left
9092
+ * @see https://tailwindcss.com/docs/scroll-padding
9093
+ */
9094
+ 'scroll-pl': [{
9095
+ 'scroll-pl': scaleUnambiguousSpacing()
9096
+ }],
9097
+ /**
9098
+ * Scroll Snap Align
9099
+ * @see https://tailwindcss.com/docs/scroll-snap-align
9100
+ */
9101
+ 'snap-align': [{
9102
+ snap: ['start', 'end', 'center', 'align-none']
9103
+ }],
9104
+ /**
9105
+ * Scroll Snap Stop
9106
+ * @see https://tailwindcss.com/docs/scroll-snap-stop
9107
+ */
9108
+ 'snap-stop': [{
9109
+ snap: ['normal', 'always']
9110
+ }],
9111
+ /**
9112
+ * Scroll Snap Type
9113
+ * @see https://tailwindcss.com/docs/scroll-snap-type
9114
+ */
9115
+ 'snap-type': [{
9116
+ snap: ['none', 'x', 'y', 'both']
9117
+ }],
9118
+ /**
9119
+ * Scroll Snap Type Strictness
9120
+ * @see https://tailwindcss.com/docs/scroll-snap-type
9121
+ */
9122
+ 'snap-strictness': [{
9123
+ snap: ['mandatory', 'proximity']
9124
+ }],
9125
+ /**
9126
+ * Touch Action
9127
+ * @see https://tailwindcss.com/docs/touch-action
9128
+ */
9129
+ touch: [{
9130
+ touch: ['auto', 'none', 'manipulation']
9131
+ }],
9132
+ /**
9133
+ * Touch Action X
9134
+ * @see https://tailwindcss.com/docs/touch-action
9135
+ */
9136
+ 'touch-x': [{
9137
+ 'touch-pan': ['x', 'left', 'right']
9138
+ }],
9139
+ /**
9140
+ * Touch Action Y
9141
+ * @see https://tailwindcss.com/docs/touch-action
9142
+ */
9143
+ 'touch-y': [{
9144
+ 'touch-pan': ['y', 'up', 'down']
9145
+ }],
9146
+ /**
9147
+ * Touch Action Pinch Zoom
9148
+ * @see https://tailwindcss.com/docs/touch-action
9149
+ */
9150
+ 'touch-pz': ['touch-pinch-zoom'],
9151
+ /**
9152
+ * User Select
9153
+ * @see https://tailwindcss.com/docs/user-select
9154
+ */
9155
+ select: [{
9156
+ select: ['none', 'text', 'all', 'auto']
9157
+ }],
9158
+ /**
9159
+ * Will Change
9160
+ * @see https://tailwindcss.com/docs/will-change
9161
+ */
9162
+ 'will-change': [{
9163
+ 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryVariable, isArbitraryValue]
9164
+ }],
9165
+ // -----------
9166
+ // --- SVG ---
9167
+ // -----------
9168
+ /**
9169
+ * Fill
9170
+ * @see https://tailwindcss.com/docs/fill
9171
+ */
9172
+ fill: [{
9173
+ fill: ['none', ...scaleColor()]
9174
+ }],
9175
+ /**
9176
+ * Stroke Width
9177
+ * @see https://tailwindcss.com/docs/stroke-width
9178
+ */
9179
+ 'stroke-w': [{
9180
+ stroke: [isNumber, isArbitraryVariableLength, isArbitraryLength, isArbitraryNumber]
9181
+ }],
9182
+ /**
9183
+ * Stroke
9184
+ * @see https://tailwindcss.com/docs/stroke
9185
+ */
9186
+ stroke: [{
9187
+ stroke: ['none', ...scaleColor()]
9188
+ }],
9189
+ // ---------------------
9190
+ // --- Accessibility ---
9191
+ // ---------------------
9192
+ /**
9193
+ * Forced Color Adjust
9194
+ * @see https://tailwindcss.com/docs/forced-color-adjust
9195
+ */
9196
+ 'forced-color-adjust': [{
9197
+ 'forced-color-adjust': ['auto', 'none']
9198
+ }]
9199
+ },
9200
+ conflictingClassGroups: {
9201
+ 'container-named': ['container-type'],
9202
+ overflow: ['overflow-x', 'overflow-y'],
9203
+ overscroll: ['overscroll-x', 'overscroll-y'],
9204
+ inset: ['inset-x', 'inset-y', 'inset-bs', 'inset-be', 'start', 'end', 'top', 'right', 'bottom', 'left'],
9205
+ 'inset-x': ['right', 'left'],
9206
+ 'inset-y': ['top', 'bottom'],
9207
+ flex: ['basis', 'grow', 'shrink'],
9208
+ gap: ['gap-x', 'gap-y'],
9209
+ p: ['px', 'py', 'ps', 'pe', 'pbs', 'pbe', 'pt', 'pr', 'pb', 'pl'],
9210
+ px: ['pr', 'pl'],
9211
+ py: ['pt', 'pb'],
9212
+ m: ['mx', 'my', 'ms', 'me', 'mbs', 'mbe', 'mt', 'mr', 'mb', 'ml'],
9213
+ mx: ['mr', 'ml'],
9214
+ my: ['mt', 'mb'],
9215
+ size: ['w', 'h'],
9216
+ 'font-size': ['leading'],
9217
+ 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],
9218
+ 'fvn-ordinal': ['fvn-normal'],
9219
+ 'fvn-slashed-zero': ['fvn-normal'],
9220
+ 'fvn-figure': ['fvn-normal'],
9221
+ 'fvn-spacing': ['fvn-normal'],
9222
+ 'fvn-fraction': ['fvn-normal'],
9223
+ 'line-clamp': ['display', 'overflow'],
9224
+ rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],
9225
+ 'rounded-s': ['rounded-ss', 'rounded-es'],
9226
+ 'rounded-e': ['rounded-se', 'rounded-ee'],
9227
+ 'rounded-t': ['rounded-tl', 'rounded-tr'],
9228
+ 'rounded-r': ['rounded-tr', 'rounded-br'],
9229
+ 'rounded-b': ['rounded-br', 'rounded-bl'],
9230
+ 'rounded-l': ['rounded-tl', 'rounded-bl'],
9231
+ 'border-spacing': ['border-spacing-x', 'border-spacing-y'],
9232
+ 'border-w': ['border-w-x', 'border-w-y', 'border-w-s', 'border-w-e', 'border-w-bs', 'border-w-be', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],
9233
+ 'border-w-x': ['border-w-r', 'border-w-l'],
9234
+ 'border-w-y': ['border-w-t', 'border-w-b'],
9235
+ 'border-color': ['border-color-x', 'border-color-y', 'border-color-s', 'border-color-e', 'border-color-bs', 'border-color-be', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],
9236
+ 'border-color-x': ['border-color-r', 'border-color-l'],
9237
+ 'border-color-y': ['border-color-t', 'border-color-b'],
9238
+ translate: ['translate-x', 'translate-y', 'translate-none'],
9239
+ 'translate-none': ['translate', 'translate-x', 'translate-y', 'translate-z'],
9240
+ 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mbs', 'scroll-mbe', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],
9241
+ 'scroll-mx': ['scroll-mr', 'scroll-ml'],
9242
+ 'scroll-my': ['scroll-mt', 'scroll-mb'],
9243
+ 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pbs', 'scroll-pbe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],
9244
+ 'scroll-px': ['scroll-pr', 'scroll-pl'],
9245
+ 'scroll-py': ['scroll-pt', 'scroll-pb'],
9246
+ touch: ['touch-x', 'touch-y', 'touch-pz'],
9247
+ 'touch-x': ['touch'],
9248
+ 'touch-y': ['touch'],
9249
+ 'touch-pz': ['touch']
9250
+ },
9251
+ conflictingClassGroupModifiers: {
9252
+ 'font-size': ['leading']
9253
+ },
9254
+ postfixLookupClassGroups: ['container-type'],
9255
+ orderSensitiveModifiers: ['*', '**', 'after', 'backdrop', 'before', 'details-content', 'file', 'first-letter', 'first-line', 'marker', 'placeholder', 'selection']
9256
+ };
9257
+ };
9258
+ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
9259
+
9260
+ function cn() {
9261
+ var inputs = [];
9262
+ for (var _i = 0; _i < arguments.length; _i++) {
9263
+ inputs[_i] = arguments[_i];
9264
+ }
9265
+ return twMerge(clsx(inputs));
9266
+ }
9267
+ var HorizontalStepper = function (_a) {
9268
+ var steps = _a.steps, activeStep = _a.activeStep, _b = _a.size, size = _b === void 0 ? 'md' : _b, className = _a.className, onStepClick = _a.onStepClick, processedIcon = _a.processedIcon, currentIcon = _a.currentIcon, _c = _a.color, color = _c === void 0 ? 'blue' : _c, _d = _a.showLabels, showLabels = _d === void 0 ? true : _d;
9269
+ var isSmall = size === 'sm';
9270
+ var connectorColor = "bg-bia-".concat(color);
9271
+ var stepTextColor = "text-bia-".concat(color);
9272
+ var stepBgColor = "bg-bia-".concat(color);
9273
+ var stepBorderColor = "border-bia-".concat(color);
9274
+ var processedStepStyle = processedIcon
9275
+ ? "".concat(stepBorderColor, " ").concat(stepBgColor, " text-bia-white")
9276
+ : "".concat(stepBorderColor, " bg-bia-white");
9277
+ var currentStepStyle = currentIcon
9278
+ ? "".concat(stepBorderColor, " ").concat(stepBgColor, " text-bia-white")
9279
+ : "".concat(stepBorderColor, " bg-bia-white");
9280
+ return (React.createElement("nav", { "aria-label": "Progress", className: cn('flex w-full items-start justify-between', className) }, steps.map(function (step, index) {
9281
+ var _a;
9282
+ var isFirst = index === 0;
9283
+ var isLast = index === steps.length - 1;
9284
+ // Determine step status based on activeStep index
9285
+ var status = 'upcoming';
9286
+ if (index < activeStep)
9287
+ status = 'processed';
9288
+ else if (index === activeStep)
9289
+ status = 'current';
9290
+ var isInteractive = Boolean(onStepClick);
9291
+ return (React.createElement("div", { key: (_a = step.id) !== null && _a !== void 0 ? _a : index, className: "group relative flex flex-1 flex-col items-center" },
9292
+ React.createElement("div", { className: "relative my-2 flex w-full items-center" },
9293
+ React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isFirst ? (showLabels ? 'opacity-0' : 'hidden') : '', index <= activeStep
9294
+ ? connectorColor
9295
+ : 'bg-bia-coolgrey-light-50') }),
9296
+ React.createElement("button", { type: "button", disabled: !isInteractive, onClick: function () { return onStepClick === null || onStepClick === void 0 ? void 0 : onStepClick(index); }, "aria-current": status === 'current' ? 'step' : undefined, className: cn('relative flex shrink-0 items-center justify-center rounded-full border-2 transition-all duration-200', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-bia-blue focus-visible:ring-offset-2', isSmall ? 'h-6 w-6 text-xs' : 'h-8 w-8 text-sm', isInteractive ? 'cursor-pointer' : 'cursor-default', status === 'processed' && processedStepStyle, status === 'current' && "font-semibold ".concat(currentStepStyle), status === 'upcoming' &&
9297
+ 'border-bia-coolgrey-light-50 bg-bia-white text-bia-black') }, step.icon ? (step.icon) : status === 'processed' && processedIcon ? (processedIcon) : status === 'current' ? (currentIcon ? (currentIcon) : (React.createElement(TbCircleFilled, { size: isSmall ? 14 : 18, className: stepTextColor }))) : (React.createElement(Text, { variant: isSmall ? 'small-text-semibold' : 'normal-text-semibold', className: status === 'processed' ? stepTextColor : 'text-bia-black' }, index + 1))),
9298
+ React.createElement("div", { className: cn('h-0.5 flex-1 transition-colors duration-200', isLast ? (showLabels ? 'opacity-0' : 'hidden') : '', index < activeStep
9299
+ ? connectorColor
9300
+ : 'bg-bia-coolgrey-light-50') })),
9301
+ showLabels && (step.label || step.description) && (React.createElement("div", { className: "mt-2 flex max-w-[140px] flex-col gap-y-[3px] text-center" },
9302
+ step.label && (React.createElement(Text, { variant: isSmall ? 'small-text-semibold' : 'normal-text-semibold', className: "text-bia-black" }, step.label)),
9303
+ step.description && (React.createElement(Text, { variant: isSmall ? 'small-text' : 'normal-text', className: "text-bia-coolgrey-light-50" }, step.description))))));
9304
+ })));
9305
+ };
9306
+
5979
9307
  var variantConfig = {
5980
9308
  upcoming: 'bg-white border-2 border-coolgrey-light-50',
5981
9309
  processed: 'bg-white border-2 border-bia-blue',
@@ -6245,6 +9573,7 @@ exports.FormGroupButton = FormGroupButton;
6245
9573
  exports.FormGroupLabel = FormGroupLabel;
6246
9574
  exports.FormLabel = FormLabel;
6247
9575
  exports.Heading = Heading;
9576
+ exports.HorizontalStepper = HorizontalStepper;
6248
9577
  exports.InfoPanel = InfoPanel;
6249
9578
  exports.Link = Link;
6250
9579
  exports.LiveSearch = LiveSearch;