najm-kit 2.1.2 → 2.1.3

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -3187,7 +3187,7 @@ function SelectContent({ className, children, position = "popper", ...props }) {
3187
3187
  {
3188
3188
  "data-slot": "select-content",
3189
3189
  className: cn(
3190
- "bg-popover text-popover-foreground 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 relative z-[10000] max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-hidden rounded-md border shadow-md",
3190
+ "bg-popover text-popover-foreground 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 relative z-[10000] max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-hidden rounded-md shadow-md",
3191
3191
  position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1 w-[var(--radix-select-trigger-width)]",
3192
3192
  className
3193
3193
  ),
@@ -6046,11 +6046,13 @@ var FOCUS_INTERACTIVE_BASE = "border focus-within:border-primary";
6046
6046
  var HOVER_INTERACTIVE_BASE = "hover:border-primary";
6047
6047
  var STATIC_BASE = "border";
6048
6048
  var BaseInput = React__default.forwardRef(
6049
- ({ children, variant = "default", status = "default", bordered, borderColor, className, disabled = false, onHover, onClick, hasIcon, ...rest }, ref) => {
6049
+ ({ children, variant = "default", status = "default", bordered, borderColor, className, style, disabled = false, onHover, onClick, hasIcon, ...rest }, ref) => {
6050
+ const recipe = useNajmComponentStyle("input");
6050
6051
  const isGhost = variant === "ghost";
6051
6052
  const isError = status === "error";
6052
6053
  const hasExplicitColor = !!borderColor;
6053
6054
  const isBordered = bordered !== false;
6055
+ const recipeRadius = variant === "default" ? resolveRadiusValue(recipe?.radius) : void 0;
6054
6056
  let colorClass = "";
6055
6057
  let borderClass = "";
6056
6058
  if (!isGhost) {
@@ -6069,6 +6071,7 @@ var BaseInput = React__default.forwardRef(
6069
6071
  {
6070
6072
  ref,
6071
6073
  "data-bordered": !isGhost && !isBordered ? "false" : !isGhost ? "true" : void 0,
6074
+ style: recipeRadius ? { borderRadius: recipeRadius, ...style } : style,
6072
6075
  className: cn(
6073
6076
  inputVariants({ variant, status, hasIcon, disabled }),
6074
6077
  !isGhost && borderClass,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "najm-kit",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Reusable React UI component package for Najm framework",