@rovula/ui 0.1.33 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovula/ui",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "main": "dist/cjs/bundle.js",
5
5
  "module": "dist/esm/bundle.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@ 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-modal-surface border-bg-stroke3 overflow-hidden p-0 text-text-g-contrast-medium 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",
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
23
  className,
24
24
  )}
25
25
  {...props}
@@ -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 <code className="typography-small2">label</code>{" "}
59
- (no floating label, no label node)
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
- <code>"hello "</code> then click outside or press Enter.
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 || !!errorMessage
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 =