@rovula/ui 0.1.4 → 0.1.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.
@@ -28,8 +28,8 @@ export const PasswordInput = forwardRef((_a, ref) => {
28
28
  onClickEndIcon === null || onClickEndIcon === void 0 ? void 0 : onClickEndIcon();
29
29
  };
30
30
  const toggleIcon = visible
31
- ? showIcon !== null && showIcon !== void 0 ? showIcon : _jsx(Icon, { name: "eye", type: "lucide", size: "inherit", className: "size-full stroke-input-default-stroke hover:stroke-input-active-stroke", "aria-label": "Hide password" })
32
- : hideIcon !== null && hideIcon !== void 0 ? hideIcon : _jsx(Icon, { name: "eye-closed", type: "lucide", size: "inherit", className: "size-full stroke-input-default-stroke hover:stroke-input-active-stroke", "aria-label": "Show password" });
31
+ ? showIcon !== null && showIcon !== void 0 ? showIcon : _jsx(Icon, { name: "eye", type: "lucide", size: "inherit", className: "size-full", "aria-label": "Hide password" })
32
+ : hideIcon !== null && hideIcon !== void 0 ? hideIcon : _jsx(Icon, { name: "eye-closed", type: "lucide", size: "inherit", className: "size-full", "aria-label": "Show password" });
33
33
  return (_jsx(TextInput, Object.assign({ iconMode: "flat" }, props, { ref: inputRef, type: visible ? "text" : "password", hasClearIcon: hasClearIcon, endIcon: showToggle ? toggleIcon : endIcon, renderEndIcon: renderEndIcon, onClickEndIcon: showToggle ? handleToggleVisibility : onClickEndIcon, autoComplete: (_b = props.autoComplete) !== null && _b !== void 0 ? _b : "current-password" })));
34
34
  });
35
35
  PasswordInput.displayName = "PasswordInput";
@@ -8,7 +8,7 @@ const meta = {
8
8
  layout: "fullscreen",
9
9
  },
10
10
  decorators: [
11
- (Story) => (_jsx("div", { className: "p-5 flex w-full bg-[rgb(var(--base-bg-2))]", children: _jsx(Story, {}) })),
11
+ (Story) => (_jsx("div", { className: "p-5 flex w-full bg-base-bg2", children: _jsx(Story, {}) })),
12
12
  ],
13
13
  };
14
14
  export default meta;
@@ -359,10 +359,10 @@ export const helperTextVariant = cva(["typography-small1 flex flex-row items-cen
359
359
  });
360
360
  const iconInteractiveColorStateClasses = [
361
361
  "fill-input-default-text",
362
- "peer-hover:fill-input-filled-text peer-focus:fill-input-filled-text peer-active:fill-input-filled-text",
362
+ "hover:fill-input-filled-text peer-hover:fill-input-filled-text peer-focus:fill-input-filled-text peer-active:fill-input-filled-text",
363
363
  "peer-disabled:fill-input-disable-stroke",
364
364
  "[&_svg]:text-input-default-text",
365
- "peer-hover:[&_svg]:text-input-filled-text peer-focus:[&_svg]:text-input-filled-text peer-active:[&_svg]:text-input-filled-text",
365
+ "hover:[&_svg]:text-input-filled-text peer-hover:[&_svg]:text-input-filled-text peer-focus:[&_svg]:text-input-filled-text peer-active:[&_svg]:text-input-filled-text",
366
366
  "peer-disabled:[&_svg]:text-input-disable-stroke",
367
367
  ];
368
368
  export const inlineEndIconWrapperVariant = cva([
@@ -432,11 +432,11 @@ export const segmentedIconWrapperVariant = cva([
432
432
  position: {
433
433
  start: [
434
434
  "inset-y-0 left-0 ",
435
- "border-r border-r-input-default-stroke peer-hover:border-r-input-active-stroke peer-focus:border-r-input-active-stroke peer-disabled:border-r-input-disable-stroke",
435
+ "border-r border-r-input-default-stroke hover:border-r-input-active-stroke peer-hover:border-r-input-active-stroke peer-focus:border-r-input-active-stroke peer-disabled:border-r-input-disable-stroke",
436
436
  ],
437
437
  end: [
438
438
  "inset-y-0 right-0 ",
439
- "border-l border-l-input-default-stroke peer-hover:border-l-input-active-stroke peer-focus:border-l-input-active-stroke peer-disabled:border-l-input-disable-stroke",
439
+ "border-l border-l-input-default-stroke hover:border-l-input-active-stroke peer-hover:border-l-input-active-stroke peer-focus:border-l-input-active-stroke peer-disabled:border-l-input-disable-stroke",
440
440
  ],
441
441
  },
442
442
  },
@@ -4348,6 +4348,14 @@ input[type=number] {
4348
4348
  --tw-border-opacity: 1;
4349
4349
  border-color: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * var(--tw-border-opacity, 1)), transparent);
4350
4350
  }
4351
+ .hover\:border-l-input-active-stroke:hover{
4352
+ --tw-border-opacity: 1;
4353
+ border-left-color: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * var(--tw-border-opacity, 1)), transparent);
4354
+ }
4355
+ .hover\:border-r-input-active-stroke:hover{
4356
+ --tw-border-opacity: 1;
4357
+ border-right-color: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * var(--tw-border-opacity, 1)), transparent);
4358
+ }
4351
4359
  .hover\:bg-\[var\(--dropdown-menu-hover-bg\)\]:hover{
4352
4360
  background-color: var(--dropdown-menu-hover-bg);
4353
4361
  }
@@ -4566,8 +4574,8 @@ input[type=number] {
4566
4574
  .hover\:fill-input-default-text:hover{
4567
4575
  fill: color-mix(in srgb, var(--input-color-default-text) calc(100% * 1), transparent);
4568
4576
  }
4569
- .hover\:stroke-input-active-stroke:hover{
4570
- stroke: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * 1), transparent);
4577
+ .hover\:fill-input-filled-text:hover{
4578
+ fill: color-mix(in srgb, var(--input-color-filled-text) calc(100% * 1), transparent);
4571
4579
  }
4572
4580
  .hover\:stroke-input-filled-text:hover{
4573
4581
  stroke: color-mix(in srgb, var(--input-color-filled-text) calc(100% * 1), transparent);
@@ -6356,6 +6364,10 @@ input[type=number] {
6356
6364
  --tw-text-opacity: 1;
6357
6365
  color: color-mix(in srgb, var(--input-color-default-text) calc(100% * var(--tw-text-opacity, 1)), transparent);
6358
6366
  }
6367
+ .hover\:\[\&_svg\]\:text-input-filled-text svg:hover{
6368
+ --tw-text-opacity: 1;
6369
+ color: color-mix(in srgb, var(--input-color-filled-text) calc(100% * var(--tw-text-opacity, 1)), transparent);
6370
+ }
6359
6371
  .peer:hover ~ .peer-hover\:\[\&_svg\]\:text-input-filled-text svg{
6360
6372
  --tw-text-opacity: 1;
6361
6373
  color: color-mix(in srgb, var(--input-color-filled-text) calc(100% * var(--tw-text-opacity, 1)), transparent);