@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.
- package/dist/cjs/bundle.css +14 -2
- package/dist/cjs/bundle.js +2 -2
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.stories.js +1 -1
- package/dist/components/TextInput/TextInput.styles.js +4 -4
- package/dist/esm/bundle.css +14 -2
- package/dist/esm/bundle.js +2 -2
- package/dist/esm/bundle.js.map +1 -1
- package/dist/src/theme/global.css +17 -2
- package/package.json +1 -1
- package/src/components/PasswordInput/PasswordInput.stories.tsx +1 -1
- package/src/components/PasswordInput/PasswordInput.tsx +2 -2
- package/src/components/TextInput/TextInput.styles.ts +14 -17
|
@@ -8539,6 +8539,16 @@ input[type=number] {
|
|
|
8539
8539
|
border-color: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * var(--tw-border-opacity, 1)), transparent);
|
|
8540
8540
|
}
|
|
8541
8541
|
|
|
8542
|
+
.hover\:border-l-input-active-stroke:hover {
|
|
8543
|
+
--tw-border-opacity: 1;
|
|
8544
|
+
border-left-color: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * var(--tw-border-opacity, 1)), transparent);
|
|
8545
|
+
}
|
|
8546
|
+
|
|
8547
|
+
.hover\:border-r-input-active-stroke:hover {
|
|
8548
|
+
--tw-border-opacity: 1;
|
|
8549
|
+
border-right-color: color-mix(in srgb, var(--input-color-active-stroke) calc(100% * var(--tw-border-opacity, 1)), transparent);
|
|
8550
|
+
}
|
|
8551
|
+
|
|
8542
8552
|
.hover\:bg-\[var\(--dropdown-menu-hover-bg\)\]:hover {
|
|
8543
8553
|
background-color: var(--dropdown-menu-hover-bg);
|
|
8544
8554
|
}
|
|
@@ -8819,8 +8829,8 @@ input[type=number] {
|
|
|
8819
8829
|
fill: color-mix(in srgb, var(--input-color-default-text) calc(100% * 1), transparent);
|
|
8820
8830
|
}
|
|
8821
8831
|
|
|
8822
|
-
.hover\:
|
|
8823
|
-
|
|
8832
|
+
.hover\:fill-input-filled-text:hover {
|
|
8833
|
+
fill: color-mix(in srgb, var(--input-color-filled-text) calc(100% * 1), transparent);
|
|
8824
8834
|
}
|
|
8825
8835
|
|
|
8826
8836
|
.hover\:stroke-input-filled-text:hover {
|
|
@@ -11077,6 +11087,11 @@ input[type=number] {
|
|
|
11077
11087
|
color: color-mix(in srgb, var(--input-color-default-text) calc(100% * var(--tw-text-opacity, 1)), transparent);
|
|
11078
11088
|
}
|
|
11079
11089
|
|
|
11090
|
+
.hover\:\[\&_svg\]\:text-input-filled-text svg:hover {
|
|
11091
|
+
--tw-text-opacity: 1;
|
|
11092
|
+
color: color-mix(in srgb, var(--input-color-filled-text) calc(100% * var(--tw-text-opacity, 1)), transparent);
|
|
11093
|
+
}
|
|
11094
|
+
|
|
11080
11095
|
.peer:hover ~ .peer-hover\:\[\&_svg\]\:text-input-filled-text svg {
|
|
11081
11096
|
--tw-text-opacity: 1;
|
|
11082
11097
|
color: color-mix(in srgb, var(--input-color-filled-text) calc(100% * var(--tw-text-opacity, 1)), transparent);
|
package/package.json
CHANGED
|
@@ -26,8 +26,8 @@ export const PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
const toggleIcon = visible
|
|
29
|
-
? showIcon ?? <Icon name="eye" type="lucide" size="inherit" className="size-full
|
|
30
|
-
: hideIcon ?? <Icon name="eye-closed" type="lucide" size="inherit" className="size-full
|
|
29
|
+
? showIcon ?? <Icon name="eye" type="lucide" size="inherit" className="size-full" aria-label="Hide password" />
|
|
30
|
+
: hideIcon ?? <Icon name="eye-closed" type="lucide" size="inherit" className="size-full" aria-label="Show password" />;
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<TextInput
|
|
@@ -374,10 +374,10 @@ export const helperTextVariant = cva(
|
|
|
374
374
|
|
|
375
375
|
const iconInteractiveColorStateClasses = [
|
|
376
376
|
"fill-input-default-text",
|
|
377
|
-
"peer-hover:fill-input-filled-text peer-focus:fill-input-filled-text peer-active:fill-input-filled-text",
|
|
377
|
+
"hover:fill-input-filled-text peer-hover:fill-input-filled-text peer-focus:fill-input-filled-text peer-active:fill-input-filled-text",
|
|
378
378
|
"peer-disabled:fill-input-disable-stroke",
|
|
379
379
|
"[&_svg]:text-input-default-text",
|
|
380
|
-
"peer-hover:[&_svg]:text-input-filled-text peer-focus:[&_svg]:text-input-filled-text peer-active:[&_svg]:text-input-filled-text",
|
|
380
|
+
"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",
|
|
381
381
|
"peer-disabled:[&_svg]:text-input-disable-stroke",
|
|
382
382
|
];
|
|
383
383
|
|
|
@@ -419,21 +419,18 @@ export const inlineStartIconWrapperVariant = cva(
|
|
|
419
419
|
},
|
|
420
420
|
);
|
|
421
421
|
|
|
422
|
-
export const iconActionVariant = cva(
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
md: "size-4",
|
|
429
|
-
lg: "size-5",
|
|
430
|
-
},
|
|
431
|
-
},
|
|
432
|
-
defaultVariants: {
|
|
433
|
-
size: "md",
|
|
422
|
+
export const iconActionVariant = cva(["cursor-pointer z-50"], {
|
|
423
|
+
variants: {
|
|
424
|
+
size: {
|
|
425
|
+
sm: "size-3",
|
|
426
|
+
md: "size-4",
|
|
427
|
+
lg: "size-5",
|
|
434
428
|
},
|
|
435
429
|
},
|
|
436
|
-
|
|
430
|
+
defaultVariants: {
|
|
431
|
+
size: "md",
|
|
432
|
+
},
|
|
433
|
+
});
|
|
437
434
|
|
|
438
435
|
export const segmentedIconWrapperVariant = cva(
|
|
439
436
|
[
|
|
@@ -462,11 +459,11 @@ export const segmentedIconWrapperVariant = cva(
|
|
|
462
459
|
position: {
|
|
463
460
|
start: [
|
|
464
461
|
"inset-y-0 left-0 ",
|
|
465
|
-
"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",
|
|
462
|
+
"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",
|
|
466
463
|
],
|
|
467
464
|
end: [
|
|
468
465
|
"inset-y-0 right-0 ",
|
|
469
|
-
"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",
|
|
466
|
+
"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",
|
|
470
467
|
],
|
|
471
468
|
},
|
|
472
469
|
},
|