@rovula/ui 0.1.32 → 0.1.34
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 +0 -3
- package/dist/cjs/bundle.js +1 -1
- package/dist/cjs/bundle.js.map +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/TextInput/TextInput.js +1 -5
- package/dist/components/TextInput/TextInput.stories.js +2 -2
- package/dist/esm/bundle.css +0 -3
- package/dist/esm/bundle.js +1 -1
- package/dist/esm/bundle.js.map +1 -1
- package/dist/src/theme/global.css +0 -4
- package/package.json +1 -1
- package/src/components/Popover/Popover.tsx +2 -2
- package/src/components/TextInput/TextInput.stories.tsx +5 -4
- package/src/components/TextInput/TextInput.tsx +1 -5
|
@@ -5358,10 +5358,6 @@ input[type=number] {
|
|
|
5358
5358
|
border-style: solid;
|
|
5359
5359
|
}
|
|
5360
5360
|
|
|
5361
|
-
.border-none {
|
|
5362
|
-
border-style: none;
|
|
5363
|
-
}
|
|
5364
|
-
|
|
5365
5361
|
.\!border-action-button-solid-active-hover {
|
|
5366
5362
|
--tw-border-opacity: 1 !important;
|
|
5367
5363
|
border-color: color-mix(in srgb, var(--action-button-solid-active-hover-border) calc(100% * var(--tw-border-opacity, 1)), transparent) !important;
|
package/package.json
CHANGED
|
@@ -19,8 +19,8 @@ const PopoverContent = React.forwardRef<
|
|
|
19
19
|
align={align}
|
|
20
20
|
sideOffset={sideOffset}
|
|
21
21
|
className={cn(
|
|
22
|
-
"z-50 min-w-72 rounded-md border bg-
|
|
23
|
-
className
|
|
22
|
+
"z-50 min-w-72 rounded-md border bg-modal-surface border-bg-stroke3 overflow-hidden p-0 text-text-contrast-max shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
23
|
+
className,
|
|
24
24
|
)}
|
|
25
25
|
{...props}
|
|
26
26
|
/>
|
|
@@ -55,8 +55,9 @@ export const NonFloatingLabel = {
|
|
|
55
55
|
<div className="flex w-full max-w-4xl flex-col gap-8">
|
|
56
56
|
<div className="flex flex-col gap-3">
|
|
57
57
|
<h4 className="typography-subtitle4 text-text-g-contrast-medium">
|
|
58
|
-
Placeholder only — empty
|
|
59
|
-
(no floating label,
|
|
58
|
+
Placeholder only — empty{" "}
|
|
59
|
+
<code className="typography-small2">label</code> (no floating label,
|
|
60
|
+
no label node)
|
|
60
61
|
</h4>
|
|
61
62
|
<p className="typography-small2 text-text-g-contrast-low max-w-2xl">
|
|
62
63
|
Tab order follows DOM, like native inputs in a row.
|
|
@@ -495,8 +496,8 @@ const TrimOnCommitDemo = () => {
|
|
|
495
496
|
<div className="flex flex-col gap-6 w-full max-w-md">
|
|
496
497
|
<p className="text-sm text-text-g-contrast-low">
|
|
497
498
|
<code>trimOnCommit</code> trims leading and trailing whitespace when the
|
|
498
|
-
user blurs the input or presses Enter. Try typing{" "}
|
|
499
|
-
|
|
499
|
+
user blurs the input or presses Enter. Try typing <code>"hello "</code>{" "}
|
|
500
|
+
then click outside or press Enter.
|
|
500
501
|
</p>
|
|
501
502
|
<TextInput
|
|
502
503
|
id="trim-commit-demo"
|
|
@@ -116,11 +116,7 @@ export const TextInput = forwardRef<HTMLInputElement, InputProps>(
|
|
|
116
116
|
const hasRightSectionIcon = !!endIcon || !!renderEndIcon;
|
|
117
117
|
const feedbackStatus =
|
|
118
118
|
status ||
|
|
119
|
-
(error || !!
|
|
120
|
-
? "error"
|
|
121
|
-
: warning || !!warningMessage
|
|
122
|
-
? "warning"
|
|
123
|
-
: "default");
|
|
119
|
+
(error ? "error" : warning || !!warningMessage ? "warning" : "default");
|
|
124
120
|
const isError = feedbackStatus === "error";
|
|
125
121
|
const isWarning = feedbackStatus === "warning";
|
|
126
122
|
const feedbackMessage =
|