@almadar/ui 5.1.6 → 5.2.1

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.
@@ -3655,7 +3655,7 @@ function resolveIconForFamily(name, family) {
3655
3655
  var sizeClasses = {
3656
3656
  xs: "w-3 h-3",
3657
3657
  sm: "w-4 h-4",
3658
- md: "w-5 h-5",
3658
+ md: "h-icon-default w-icon-default",
3659
3659
  lg: "w-6 h-6",
3660
3660
  xl: "w-8 h-8"
3661
3661
  };
@@ -3773,14 +3773,14 @@ var variantStyles2 = {
3773
3773
  };
3774
3774
  variantStyles2.destructive = variantStyles2.danger;
3775
3775
  var sizeStyles2 = {
3776
- sm: "px-3 py-1.5 text-sm",
3777
- md: "px-4 py-2 text-sm",
3778
- lg: "px-6 py-3 text-base"
3776
+ sm: "h-button-sm px-3 text-sm",
3777
+ md: "h-button-md px-4 text-sm",
3778
+ lg: "h-button-lg px-6 text-base"
3779
3779
  };
3780
3780
  var iconSizeStyles = {
3781
- sm: "h-3.5 w-3.5",
3781
+ sm: "h-icon-default w-icon-default",
3782
3782
  md: "h-icon-default w-icon-default",
3783
- lg: "h-5 w-5"
3783
+ lg: "h-icon-default w-icon-default"
3784
3784
  };
3785
3785
  function resolveIconProp(value, sizeClass) {
3786
3786
  if (!value) return null;
@@ -3836,7 +3836,7 @@ var Button = React7.forwardRef(
3836
3836
  disabled: disabled || isLoading,
3837
3837
  className: cn(
3838
3838
  "inline-flex items-center justify-center gap-2",
3839
- "font-[var(--font-weight-medium)]",
3839
+ "font-medium",
3840
3840
  "rounded-sm",
3841
3841
  "cursor-pointer",
3842
3842
  "transition-all duration-[var(--transition-normal)]",
@@ -3865,21 +3865,21 @@ var variantStyles3 = {
3865
3865
  "border-[length:var(--border-width)] border-border",
3866
3866
  "shadow-elevation-card",
3867
3867
  "transition-all duration-[var(--transition-normal)]",
3868
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3868
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3869
3869
  ].join(" "),
3870
3870
  bordered: [
3871
3871
  "bg-card",
3872
3872
  "border-[length:var(--border-width)] border-border",
3873
3873
  "shadow-elevation-card",
3874
3874
  "transition-all duration-[var(--transition-normal)]",
3875
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3875
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3876
3876
  ].join(" "),
3877
3877
  elevated: [
3878
3878
  "bg-card",
3879
3879
  "border-[length:var(--border-width)] border-border",
3880
3880
  "shadow",
3881
3881
  "transition-all duration-[var(--transition-normal)]",
3882
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3882
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3883
3883
  ].join(" "),
3884
3884
  // Interactive variant with theme-specific hover effects
3885
3885
  interactive: [
@@ -3929,7 +3929,7 @@ var Card = React7.forwardRef(
3929
3929
  ...props,
3930
3930
  children: [
3931
3931
  (title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
3932
- title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
3932
+ title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-bold", children: title }),
3933
3933
  subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
3934
3934
  ] }),
3935
3935
  children
@@ -3947,7 +3947,7 @@ var CardTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__
3947
3947
  ref,
3948
3948
  className: cn(
3949
3949
  "text-lg text-card-foreground",
3950
- "font-[var(--font-weight-bold)]",
3950
+ "font-bold",
3951
3951
  className
3952
3952
  ),
3953
3953
  ...props
@@ -4057,10 +4057,11 @@ var Input = React7.forwardRef(
4057
4057
  const type = inputType || htmlType || "text";
4058
4058
  const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-icon-default w-icon-default" });
4059
4059
  const showClearButton = clearable && value && String(value).length > 0;
4060
+ const isMultiline = type === "textarea";
4060
4061
  const baseClassName = cn(
4061
4062
  "block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
4062
4063
  "border-[length:var(--border-width-thin)] border-border",
4063
- "px-3 py-2 text-sm",
4064
+ isMultiline ? "px-3 py-2 text-sm" : "h-input-md px-3 text-sm",
4064
4065
  "bg-card hover:bg-muted focus:bg-card",
4065
4066
  "text-foreground placeholder:text-muted-foreground",
4066
4067
  "focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
@@ -4112,7 +4113,7 @@ var Input = React7.forwardRef(
4112
4113
  checked: props.checked,
4113
4114
  onChange,
4114
4115
  className: cn(
4115
- "h-4 w-4 rounded-sm",
4116
+ "h-icon-default w-icon-default rounded-sm",
4116
4117
  "border-border",
4117
4118
  "text-primary focus:ring-ring",
4118
4119
  "disabled:opacity-50 disabled:cursor-not-allowed",
@@ -3682,7 +3682,7 @@ function resolveIconForFamily(name, family) {
3682
3682
  var sizeClasses = {
3683
3683
  xs: "w-3 h-3",
3684
3684
  sm: "w-4 h-4",
3685
- md: "w-5 h-5",
3685
+ md: "h-icon-default w-icon-default",
3686
3686
  lg: "w-6 h-6",
3687
3687
  xl: "w-8 h-8"
3688
3688
  };
@@ -3800,14 +3800,14 @@ var variantStyles2 = {
3800
3800
  };
3801
3801
  variantStyles2.destructive = variantStyles2.danger;
3802
3802
  var sizeStyles2 = {
3803
- sm: "px-3 py-1.5 text-sm",
3804
- md: "px-4 py-2 text-sm",
3805
- lg: "px-6 py-3 text-base"
3803
+ sm: "h-button-sm px-3 text-sm",
3804
+ md: "h-button-md px-4 text-sm",
3805
+ lg: "h-button-lg px-6 text-base"
3806
3806
  };
3807
3807
  var iconSizeStyles = {
3808
- sm: "h-3.5 w-3.5",
3808
+ sm: "h-icon-default w-icon-default",
3809
3809
  md: "h-icon-default w-icon-default",
3810
- lg: "h-5 w-5"
3810
+ lg: "h-icon-default w-icon-default"
3811
3811
  };
3812
3812
  function resolveIconProp(value, sizeClass) {
3813
3813
  if (!value) return null;
@@ -3863,7 +3863,7 @@ var Button = React8__default.default.forwardRef(
3863
3863
  disabled: disabled || isLoading,
3864
3864
  className: cn(
3865
3865
  "inline-flex items-center justify-center gap-2",
3866
- "font-[var(--font-weight-medium)]",
3866
+ "font-medium",
3867
3867
  "rounded-sm",
3868
3868
  "cursor-pointer",
3869
3869
  "transition-all duration-[var(--transition-normal)]",
@@ -3925,7 +3925,11 @@ var sizeStyles3 = {
3925
3925
  };
3926
3926
  var Badge = React8__default.default.forwardRef(
3927
3927
  ({ className, variant = "default", size = "sm", amount, label, icon, children, onRemove, removeLabel, ...props }, ref) => {
3928
- const iconSizes = { sm: "w-3 h-3", md: "w-3.5 h-3.5", lg: "w-4 h-4" };
3928
+ const iconSizes = {
3929
+ sm: "h-icon-default w-icon-default",
3930
+ md: "h-icon-default w-icon-default",
3931
+ lg: "h-icon-default w-icon-default"
3932
+ };
3929
3933
  const resolvedIcon = typeof icon === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, className: iconSizes[size] }) : icon;
3930
3934
  return /* @__PURE__ */ jsxRuntime.jsxs(
3931
3935
  "span",
@@ -3972,21 +3976,21 @@ var variantStyles4 = {
3972
3976
  "border-[length:var(--border-width)] border-border",
3973
3977
  "shadow-elevation-card",
3974
3978
  "transition-all duration-[var(--transition-normal)]",
3975
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3979
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3976
3980
  ].join(" "),
3977
3981
  bordered: [
3978
3982
  "bg-card",
3979
3983
  "border-[length:var(--border-width)] border-border",
3980
3984
  "shadow-elevation-card",
3981
3985
  "transition-all duration-[var(--transition-normal)]",
3982
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3986
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3983
3987
  ].join(" "),
3984
3988
  elevated: [
3985
3989
  "bg-card",
3986
3990
  "border-[length:var(--border-width)] border-border",
3987
3991
  "shadow",
3988
3992
  "transition-all duration-[var(--transition-normal)]",
3989
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3993
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3990
3994
  ].join(" "),
3991
3995
  // Interactive variant with theme-specific hover effects
3992
3996
  interactive: [
@@ -4036,7 +4040,7 @@ var Card = React8__default.default.forwardRef(
4036
4040
  ...props,
4037
4041
  children: [
4038
4042
  (title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
4039
- title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
4043
+ title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-card-foreground font-bold", children: title }),
4040
4044
  subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
4041
4045
  ] }),
4042
4046
  children
@@ -4054,7 +4058,7 @@ var CardTitle = React8__default.default.forwardRef(({ className, ...props }, ref
4054
4058
  ref,
4055
4059
  className: cn(
4056
4060
  "text-lg text-card-foreground",
4057
- "font-[var(--font-weight-bold)]",
4061
+ "font-bold",
4058
4062
  className
4059
4063
  ),
4060
4064
  ...props
@@ -3655,7 +3655,7 @@ function resolveIconForFamily(name, family) {
3655
3655
  var sizeClasses = {
3656
3656
  xs: "w-3 h-3",
3657
3657
  sm: "w-4 h-4",
3658
- md: "w-5 h-5",
3658
+ md: "h-icon-default w-icon-default",
3659
3659
  lg: "w-6 h-6",
3660
3660
  xl: "w-8 h-8"
3661
3661
  };
@@ -3773,14 +3773,14 @@ var variantStyles2 = {
3773
3773
  };
3774
3774
  variantStyles2.destructive = variantStyles2.danger;
3775
3775
  var sizeStyles2 = {
3776
- sm: "px-3 py-1.5 text-sm",
3777
- md: "px-4 py-2 text-sm",
3778
- lg: "px-6 py-3 text-base"
3776
+ sm: "h-button-sm px-3 text-sm",
3777
+ md: "h-button-md px-4 text-sm",
3778
+ lg: "h-button-lg px-6 text-base"
3779
3779
  };
3780
3780
  var iconSizeStyles = {
3781
- sm: "h-3.5 w-3.5",
3781
+ sm: "h-icon-default w-icon-default",
3782
3782
  md: "h-icon-default w-icon-default",
3783
- lg: "h-5 w-5"
3783
+ lg: "h-icon-default w-icon-default"
3784
3784
  };
3785
3785
  function resolveIconProp(value, sizeClass) {
3786
3786
  if (!value) return null;
@@ -3836,7 +3836,7 @@ var Button = React8.forwardRef(
3836
3836
  disabled: disabled || isLoading,
3837
3837
  className: cn(
3838
3838
  "inline-flex items-center justify-center gap-2",
3839
- "font-[var(--font-weight-medium)]",
3839
+ "font-medium",
3840
3840
  "rounded-sm",
3841
3841
  "cursor-pointer",
3842
3842
  "transition-all duration-[var(--transition-normal)]",
@@ -3898,7 +3898,11 @@ var sizeStyles3 = {
3898
3898
  };
3899
3899
  var Badge = React8.forwardRef(
3900
3900
  ({ className, variant = "default", size = "sm", amount, label, icon, children, onRemove, removeLabel, ...props }, ref) => {
3901
- const iconSizes = { sm: "w-3 h-3", md: "w-3.5 h-3.5", lg: "w-4 h-4" };
3901
+ const iconSizes = {
3902
+ sm: "h-icon-default w-icon-default",
3903
+ md: "h-icon-default w-icon-default",
3904
+ lg: "h-icon-default w-icon-default"
3905
+ };
3902
3906
  const resolvedIcon = typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, className: iconSizes[size] }) : icon;
3903
3907
  return /* @__PURE__ */ jsxs(
3904
3908
  "span",
@@ -3945,21 +3949,21 @@ var variantStyles4 = {
3945
3949
  "border-[length:var(--border-width)] border-border",
3946
3950
  "shadow-elevation-card",
3947
3951
  "transition-all duration-[var(--transition-normal)]",
3948
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3952
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3949
3953
  ].join(" "),
3950
3954
  bordered: [
3951
3955
  "bg-card",
3952
3956
  "border-[length:var(--border-width)] border-border",
3953
3957
  "shadow-elevation-card",
3954
3958
  "transition-all duration-[var(--transition-normal)]",
3955
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3959
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3956
3960
  ].join(" "),
3957
3961
  elevated: [
3958
3962
  "bg-card",
3959
3963
  "border-[length:var(--border-width)] border-border",
3960
3964
  "shadow",
3961
3965
  "transition-all duration-[var(--transition-normal)]",
3962
- "hover:shadow-elevation-dialog hover:-translate-y-0.5"
3966
+ "hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
3963
3967
  ].join(" "),
3964
3968
  // Interactive variant with theme-specific hover effects
3965
3969
  interactive: [
@@ -4009,7 +4013,7 @@ var Card = React8.forwardRef(
4009
4013
  ...props,
4010
4014
  children: [
4011
4015
  (title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
4012
- title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
4016
+ title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-bold", children: title }),
4013
4017
  subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
4014
4018
  ] }),
4015
4019
  children
@@ -4027,7 +4031,7 @@ var CardTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__
4027
4031
  ref,
4028
4032
  className: cn(
4029
4033
  "text-lg text-card-foreground",
4030
- "font-[var(--font-weight-bold)]",
4034
+ "font-bold",
4031
4035
  className
4032
4036
  ),
4033
4037
  ...props