@versini/ui-textinput 7.0.4 → 7.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-textinput v7.0.4
2
+ @versini/ui-textinput v7.0.6
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
@@ -52,10 +52,10 @@ const getTextInputLabelClasses = ({ disabled, raw, error, mode })=>{
52
52
  }
53
53
  if (!error) {
54
54
  return clsx("absolute px-2 cursor-text font-medium", {
55
- "text-copy-lighter": mode === "dark",
55
+ "text-copy-lighter peer-[:placeholder-shown:not(:focus)]:text-copy-medium": mode === "dark",
56
56
  "text-copy-dark": mode === "light",
57
- "text-copy-dark dark:text-copy-lighter": mode === "system",
58
- "text-copy-lighter dark:text-copy-dark": mode === "alt-system"
57
+ "text-copy-dark dark:text-copy-lighter dark:peer-[:placeholder-shown:not(:focus)]:text-copy-medium": mode === "system",
58
+ "text-copy-lighter peer-[:placeholder-shown:not(:focus)]:text-copy-medium dark:text-copy-dark dark:peer-[:placeholder-shown:not(:focus)]:text-copy-dark": mode === "alt-system"
59
59
  });
60
60
  }
61
61
  /* v8 ignore start - error state edge case */ if (error) {
@@ -111,7 +111,7 @@ const getTextInputClasses = ({ className, inputClassName, raw, disabled, noBorde
111
111
  heightClass = "h-12";
112
112
  break;
113
113
  }
114
- const input = raw ? clsx(inputClassName) : clsx(TEXT_INPUT_CLASSNAME, heightClass, "rounded-md text-base px-4", getTextInputColorClasses({
114
+ const input = raw ? clsx(inputClassName) : clsx(TEXT_INPUT_CLASSNAME, heightClass, "peer rounded-md text-base px-4", getTextInputColorClasses({
115
115
  mode
116
116
  }), getTextInputFocusClasses(), getTextInputBorderClasses({
117
117
  noBorder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-textinput",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -44,10 +44,10 @@
44
44
  "@versini/ui-hooks": "6.1.1",
45
45
  "@versini/ui-liveregion": "3.2.8",
46
46
  "clsx": "2.1.1",
47
- "tailwindcss": "4.2.4"
47
+ "tailwindcss": "4.3.0"
48
48
  },
49
49
  "sideEffects": [
50
50
  "**/*.css"
51
51
  ],
52
- "gitHead": "d2dedb845254fccb7fbb6a5e0249e263c7951a7a"
52
+ "gitHead": "a4c236d5680901b7581b91eaea816f55fd5b2691"
53
53
  }