infinity-ui-elements 1.6.13 → 1.6.15

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.js CHANGED
@@ -2307,7 +2307,7 @@ const Radio = React__namespace.forwardRef(({ label, errorText, size = "medium",
2307
2307
  });
2308
2308
  Radio.displayName = "Radio";
2309
2309
 
2310
- const textFieldVariants = classVarianceAuthority.cva("relative flex items-center gap-2 border rounded-medium transition-all font-display font-size-100 leading-100", {
2310
+ const textFieldVariants = classVarianceAuthority.cva("relative flex items-center gap-2 border rounded-large transition-all font-display font-size-100 leading-100", {
2311
2311
  variants: {
2312
2312
  size: {
2313
2313
  small: "h-[28px] px-3 text-xs gap-2",
@@ -2926,15 +2926,16 @@ function AvatarCell({ name, initials, avatar, subtitle, color = "a1", className,
2926
2926
  return (jsxRuntime.jsxs("div", { className: cn("flex items-center gap-3", className), children: [avatar ? (jsxRuntime.jsx("img", { src: avatar, alt: name, className: "w-10 h-10 rounded-full object-cover" })) : (jsxRuntime.jsx("div", { className: cn("w-10 h-10 rounded-full flex items-center justify-center text-body-medium-medium", `bg-${color}`), children: initials || name.charAt(0).toUpperCase() })), jsxRuntime.jsxs("div", { className: "flex flex-col", children: [jsxRuntime.jsx("div", { className: "text-body-medium-medium text-surface-ink-neutral-normal", children: name }), subtitle && (jsxRuntime.jsx("div", { className: "text-body-small-regular text-surface-ink-neutral-muted", children: subtitle }))] })] }));
2927
2927
  }
2928
2928
 
2929
- const tabItemVariants = classVarianceAuthority.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 relative cursor-pointer", {
2929
+ const tabItemVariants = classVarianceAuthority.cva(`inline-flex items-center justify-center gap-3 whitespace-nowrap transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 relative cursor-pointer -mb-[1.5px]`, {
2930
2930
  variants: {
2931
2931
  variant: {
2932
2932
  bordered: "border-b-[1.5px]",
2933
2933
  borderless: "border-b-[1.5px]",
2934
2934
  },
2935
2935
  size: {
2936
- small: "px-4 h-10 text-body-small-medium",
2937
- large: "px-6 h-12 text-body-large-medium",
2936
+ small: "px-2 py-3 h-9",
2937
+ medium: "px-3 py-4 h-11",
2938
+ large: "px-3 py-4 h-12",
2938
2939
  },
2939
2940
  isSelected: {
2940
2941
  true: "",
@@ -2966,7 +2967,7 @@ const tabItemVariants = classVarianceAuthority.cva("inline-flex items-center jus
2966
2967
  variant: "bordered",
2967
2968
  isSelected: true,
2968
2969
  isDisabled: false,
2969
- class: "text-text-body-primary border-b-action-fill-primary-default text-action-ink-primary-normal hover:border-b-action-fill-primary-hover -mb-[1.5px] z-10",
2970
+ class: "text-text-body-primary border-b-action-fill-primary-default text-action-ink-primary-normal hover:border-b-action-fill-primary-hover z-10",
2970
2971
  },
2971
2972
  // Borderless variant - selected
2972
2973
  {
@@ -2975,6 +2976,27 @@ const tabItemVariants = classVarianceAuthority.cva("inline-flex items-center jus
2975
2976
  isDisabled: false,
2976
2977
  class: "text-text-body-primary border-b-action-fill-primary-default text-action-ink-primary-normal hover:border-b-action-fill-primary-hover z-10",
2977
2978
  },
2979
+ // Typography by size and selection
2980
+ {
2981
+ size: ["small", "medium"],
2982
+ isSelected: false,
2983
+ class: "text-body-medium-medium",
2984
+ },
2985
+ {
2986
+ size: ["small", "medium"],
2987
+ isSelected: true,
2988
+ class: "text-body-medium-semibold",
2989
+ },
2990
+ {
2991
+ size: "large",
2992
+ isSelected: false,
2993
+ class: "text-body-large-medium",
2994
+ },
2995
+ {
2996
+ size: "large",
2997
+ isSelected: true,
2998
+ class: "text-body-large-semibold",
2999
+ },
2978
3000
  // Bordered and borderless variants - disabled
2979
3001
  {
2980
3002
  variant: ["bordered", "borderless"],
@@ -3016,14 +3038,14 @@ const Tabs = React__namespace.forwardRef(({ tabs, selectedTabId, defaultSelected
3016
3038
  };
3017
3039
  // Get the active tab content
3018
3040
  const activeTab = tabs.find((tab) => tab.id === activeTabId);
3019
- return (jsxRuntime.jsxs("div", { ref: ref, className: cn("w-full", className), ...props, children: [jsxRuntime.jsx("div", { role: "tablist", className: cn("inline-flex items-center", {
3041
+ return (jsxRuntime.jsxs("div", { ref: ref, className: cn("w-full", className), ...props, children: [jsxRuntime.jsx("div", { role: "tablist", className: cn("inline-flex items-center gap-4", {
3020
3042
  "w-full": isFullWidth,
3021
3043
  "border-b border-b-[1.5px] border-surface-outline-neutral-muted": variant === "bordered",
3022
3044
  }, tabListClassName), children: tabs.map((tab) => (jsxRuntime.jsx(TabItem, { id: String(tab.id), leadingComponent: tab.leadingComponent, title: tab.title, trailingComponent: tab.trailingComponent, isSelected: tab.id === activeTabId, isDisabled: tab.isDisabled, variant: variant, size: size, isFullWidth: isFullWidth, onClick: () => !tab.isDisabled && handleTabClick(tab.id) }, tab.id))) }), renderContent && activeTab?.content && (jsxRuntime.jsx("div", { role: "tabpanel", className: cn("mt-4", contentClassName), "aria-labelledby": String(activeTabId), children: activeTab.content }))] }));
3023
3045
  });
3024
3046
  Tabs.displayName = "Tabs";
3025
3047
 
3026
- const textAreaVariants = classVarianceAuthority.cva("relative flex flex-col border rounded-medium transition-all font-display font-size-100 leading-100", {
3048
+ const textAreaVariants = classVarianceAuthority.cva("relative flex flex-col border rounded-large transition-all font-display font-size-100 leading-100", {
3027
3049
  variants: {
3028
3050
  size: {
3029
3051
  small: "p-3 min-h-[56px] text-xs gap-2",