bianic-ui 2.14.0-beta.3 → 2.14.0-beta.5

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
@@ -3385,27 +3385,38 @@ var TagLabelInput = React.forwardRef(TagLabelInputInner);
3385
3385
 
3386
3386
  var sizeConfig$4 = {
3387
3387
  md: {
3388
- containerSize: 'w-[42px] h-[22px]',
3389
- checkSize: 'p-2',
3390
- labelClass: 'text-bia-base',
3388
+ containerSize: 'w-[46px] h-[26px]',
3389
+ trackBorder: 'border-2',
3390
+ knobSize: 'size-[18px]',
3391
+ knobInset: 'mx-[4px]',
3392
+ labelClass: 'text-size-base',
3391
3393
  },
3392
3394
  sm: {
3393
- containerSize: 'w-[28px] h-[16px]',
3394
- checkSize: 'px-2 py-1',
3395
- labelClass: 'text-bia-sm',
3395
+ containerSize: 'w-[32px] h-[20px]',
3396
+ trackBorder: 'border-2',
3397
+ knobSize: 'size-[12px]',
3398
+ knobInset: 'mx-[4px]',
3399
+ labelClass: 'text-size-sm',
3400
+ },
3401
+ tn: {
3402
+ containerSize: 'w-[22.4px] h-[14px]',
3403
+ trackBorder: 'border-[1.5px]',
3404
+ knobSize: 'size-[8.4px]',
3405
+ knobInset: 'mx-[2.8px]',
3406
+ labelClass: 'text-size-sm',
3396
3407
  },
3397
3408
  };
3398
3409
 
3399
3410
  function Toggle(_a) {
3400
3411
  var _b = _a.label, label = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.onClick, onClick = _d === void 0 ? function () { } : _d, _e = _a.checked, checked = _e === void 0 ? false : _e, _f = _a.id, id = _f === void 0 ? '' : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g;
3401
- var _h = sizeConfig$4[size], containerSize = _h.containerSize, checkSize = _h.checkSize, labelClass = _h.labelClass;
3412
+ var _h = sizeConfig$4[size], containerSize = _h.containerSize, trackBorder = _h.trackBorder, knobSize = _h.knobSize, knobInset = _h.knobInset, labelClass = _h.labelClass;
3402
3413
  var checkedClass = checked ? 'justify-end' : 'justify-start';
3403
3414
  var containerClass = "".concat(checkedClass, " ").concat(containerSize);
3404
3415
  return (React.createElement("div", { className: "flex items-center" },
3405
- React.createElement("div", { className: "relative flex flex-shrink-0 cursor-pointer items-center rounded-full py-[2px] ".concat(containerClass), onClick: onClick },
3406
- React.createElement("input", { id: id, checked: checked, disabled: disabled, className: "".concat(checkSize, " checkbox peer absolute h-full w-full cursor-pointer appearance-none rounded-full border-2 border-bia-grey bg-primary-white opacity-100 checked:border-bia-blue checked:bg-bia-blue hover:border-bia-blue-hover checked:hover:bg-bia-blue-hover focus:outline-none focus:ring-1 focus:ring-bia-blue focus:ring-offset-2 disabled:cursor-not-allowed disabled:border-none disabled:bg-bia-grey-light-80 disabled:checked:bg-bia-blue-light-50 peer-hover:border-bia-blue-hover"), type: "checkbox" }),
3407
- React.createElement("div", { className: "check-icon group peer z-10 m-[2px] flex h-full w-5/12 justify-center rounded-full border-2 border-primary-white bg-bia-grey text-bia-grey outline-2 peer-checked:border-bia-blue peer-checked:bg-primary-white peer-checked:hover:bg-primary-white peer-hover:bg-bia-blue-hover peer-checked:peer-hover:bg-primary-white peer-disabled:cursor-not-allowed peer-disabled:border-none peer-disabled:bg-bia-grey-dark-10 peer-disabled:outline-none peer-disabled:peer-checked:bg-bia-blue-light-90" })),
3408
- React.createElement("label", { htmlFor: id, className: "text-grey-800 ml-2 font-normal leading-4 ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
3416
+ React.createElement("div", { className: "relative flex flex-shrink-0 cursor-pointer items-center rounded-full ".concat(containerClass), onClick: onClick },
3417
+ React.createElement("input", { id: id, checked: checked, disabled: disabled, className: "checkbox peer absolute h-full w-full cursor-pointer appearance-none rounded-full border-bia-grey bg-primary-white opacity-100 checked:border-bia-blue checked:bg-bia-blue hover:border-bia-blue-hover checked:hover:bg-bia-blue-hover focus:outline-none focus-visible:ring-1 focus-visible:ring-bia-blue focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:border-none disabled:bg-bia-grey-light-80 disabled:checked:bg-bia-blue-light-50 peer-hover:border-bia-blue-hover ".concat(trackBorder), type: "checkbox" }),
3418
+ React.createElement("div", { className: "check-icon group peer z-10 flex-shrink-0 rounded-full bg-bia-grey text-bia-grey peer-checked:bg-primary-white peer-checked:hover:bg-primary-white peer-hover:bg-bia-blue-hover peer-checked:peer-hover:bg-primary-white peer-disabled:cursor-not-allowed peer-disabled:bg-bia-grey-dark-10 peer-disabled:peer-checked:bg-bia-blue-light-90 ".concat(knobSize, " ").concat(knobInset) })),
3419
+ React.createElement("label", { htmlFor: id, className: "ml-2 font-normal leading-4 text-bia-black ".concat(labelClass), style: { color: disabled ? '#8C8CA6' : '' } }, label)));
3409
3420
  }
3410
3421
 
3411
3422
  var isSelectedConfig = {
@@ -5630,7 +5641,7 @@ function SidebarProfileInner(_a, ref) {
5630
5641
  }, 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) }),
5631
5642
  avatarImage,
5632
5643
  React.createElement("div", { className: "flex min-w-0 flex-col" },
5633
- React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-bia-white delay-[400ms]', isMinimized
5644
+ React.createElement(Text, { variant: "normal-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
5634
5645
  ? 'opacity-0 duration-300 ease-in-out'
5635
5646
  : 'opacity-100 delay-1000 duration-700 ease-in-out') }, username),
5636
5647
  React.createElement(Text, { variant: "small-text", className: cn$1('truncate text-left text-bia-white delay-[400ms]', isMinimized
@@ -9291,7 +9302,7 @@ var navbarItemConfig = {
9291
9302
  current: 'cursor-default',
9292
9303
  clickable: 'cursor-pointer hover:bg-bia-white/15 active:bg-bia-white-transparent-80 focus-visible:outline focus-visible:outline-[3px] focus-visible:outline-offset-0 focus-visible:outline-bia-blue-light-50',
9293
9304
  static: 'cursor-default',
9294
- disabled: 'cursor-default',
9305
+ disabled: 'cursor-not-allowed',
9295
9306
  };
9296
9307
  var navbarCircleConfig = {
9297
9308
  currentDefault: 'bg-bia-white border-bia-white text-bia-black',
@@ -9349,14 +9360,14 @@ function resolveItemState(isCurrent, isDisabled, isClickable) {
9349
9360
  return 'clickable';
9350
9361
  return 'static';
9351
9362
  }
9352
- function resolveCircleClass(isCurrent, isDisabled, isProcessed, navColor, processedIcon) {
9353
- if (isCurrent) {
9363
+ function resolveCircleClass(isCurrent, isDisabled, isFilled, isProcessed, navColor, processedIcon) {
9364
+ if (isDisabled)
9365
+ return navbarCircleConfig.disabled;
9366
+ if (isCurrent || isFilled) {
9354
9367
  if (navColor)
9355
9368
  return navbarCurrentColorConfig[navColor];
9356
9369
  return navbarCircleConfig.currentDefault;
9357
9370
  }
9358
- if (isDisabled)
9359
- return navbarCircleConfig.disabled;
9360
9371
  if (isProcessed && navColor) {
9361
9372
  if (processedIcon)
9362
9373
  return navbarProcessedFilledColorConfig[navColor];
@@ -9392,7 +9403,7 @@ function NavbarHorizontalStepper(_a) {
9392
9403
  var isClickable = !isCurrent && !isDisabled && Boolean(onStepClick);
9393
9404
  var itemState = resolveItemState(isCurrent, isDisabled, isClickable);
9394
9405
  var itemClass = cn$1('flex h-6 items-center gap-[5px] px-[5px] py-[3px]', !isCurrent && 'rounded-radius-sm', navbarItemConfig[itemState]);
9395
- var circleClass = resolveCircleClass(isCurrent, isDisabled, isProcessed, navColor, processedIcon);
9406
+ var circleClass = resolveCircleClass(isCurrent, isDisabled, Boolean(step.isFilled), isProcessed, navColor, processedIcon);
9396
9407
  var labelClass = isDisabled
9397
9408
  ? navbarLabelConfig.disabled
9398
9409
  : navbarLabelConfig.enabled;