najm-kit 2.1.4 → 2.1.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.
package/dist/index.mjs CHANGED
@@ -6208,10 +6208,9 @@ var PasswordInput = ({ value, onChange, placeholder = "", icon, showIcon = true,
6208
6208
  var DEFAULT_ROWS = 3;
6209
6209
  var MIN_ROWS = 2;
6210
6210
  var REM_PER_ROW = 1.5;
6211
- var VERTICAL_PADDING_REM = 1;
6212
6211
  var TextAreaInput = ({ value, onChange, placeholder = "", className = "", variant = "default", status = "default", bordered, borderColor, rows }) => {
6213
6212
  const visibleRows = Math.max(rows ?? DEFAULT_ROWS, MIN_ROWS);
6214
- const minHeight = `${visibleRows * REM_PER_ROW + VERTICAL_PADDING_REM}rem`;
6213
+ const textareaMinHeight = `${visibleRows * REM_PER_ROW}rem`;
6215
6214
  return /* @__PURE__ */ jsx(
6216
6215
  BaseInput,
6217
6216
  {
@@ -6220,7 +6219,6 @@ var TextAreaInput = ({ value, onChange, placeholder = "", className = "", varian
6220
6219
  bordered,
6221
6220
  borderColor,
6222
6221
  className: cn("h-auto items-start", className),
6223
- style: { minHeight },
6224
6222
  children: /* @__PURE__ */ jsx(
6225
6223
  Textarea,
6226
6224
  {
@@ -6228,7 +6226,8 @@ var TextAreaInput = ({ value, onChange, placeholder = "", className = "", varian
6228
6226
  placeholder,
6229
6227
  value,
6230
6228
  onChange: (ev) => onChange(ev.target.value),
6231
- className: "h-full min-h-0 resize-y border-0 bg-transparent p-0 text-foreground placeholder:text-muted-foreground shadow-none focus-visible:border-transparent focus-visible:ring-0 focus-visible:ring-transparent focus-visible:ring-offset-0 dark:bg-transparent"
6229
+ style: { minHeight: textareaMinHeight },
6230
+ className: "h-auto min-h-0 resize-y border-0 bg-transparent p-0 text-foreground placeholder:text-muted-foreground shadow-none focus-visible:border-transparent focus-visible:ring-0 focus-visible:ring-transparent focus-visible:ring-offset-0 dark:bg-transparent"
6232
6231
  }
6233
6232
  )
6234
6233
  }
package/dist/theme.css CHANGED
@@ -231,6 +231,20 @@
231
231
  --radius: 0.5rem;
232
232
  }
233
233
 
234
+ /* Browsers paint saved credentials with their own light autofill surface.
235
+ Keep it aligned with Najm's card-backed inputs; BaseInput owns the visible
236
+ radius, so flatten the nested native input to avoid a second inner outline. */
237
+ input:-webkit-autofill,
238
+ input:-webkit-autofill:hover,
239
+ input:-webkit-autofill:focus,
240
+ input:autofill {
241
+ -webkit-text-fill-color: var(--foreground);
242
+ caret-color: var(--foreground);
243
+ border-radius: 0;
244
+ -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
245
+ box-shadow: 0 0 0 1000px var(--card) inset;
246
+ }
247
+
234
248
  .najm-border {
235
249
  border-style: solid;
236
250
  border-width: var(--border-width);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",