najm-kit 2.1.4 → 2.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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -4
  2. package/package.json +1 -1
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",