infinity-ui-elements 1.6.12 → 1.6.14

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.esm.js CHANGED
@@ -2286,7 +2286,7 @@ const Radio = React.forwardRef(({ label, errorText, size = "medium", validationS
2286
2286
  });
2287
2287
  Radio.displayName = "Radio";
2288
2288
 
2289
- const textFieldVariants = cva("relative flex items-center gap-2 border rounded-medium transition-all font-display font-size-100 leading-100", {
2289
+ const textFieldVariants = cva("relative flex items-center gap-2 border rounded-large transition-all font-display font-size-100 leading-100", {
2290
2290
  variants: {
2291
2291
  size: {
2292
2292
  small: "h-[28px] px-3 text-xs gap-2",
@@ -2905,15 +2905,16 @@ function AvatarCell({ name, initials, avatar, subtitle, color = "a1", className,
2905
2905
  return (jsxs("div", { className: cn("flex items-center gap-3", className), children: [avatar ? (jsx("img", { src: avatar, alt: name, className: "w-10 h-10 rounded-full object-cover" })) : (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() })), jsxs("div", { className: "flex flex-col", children: [jsx("div", { className: "text-body-medium-medium text-surface-ink-neutral-normal", children: name }), subtitle && (jsx("div", { className: "text-body-small-regular text-surface-ink-neutral-muted", children: subtitle }))] })] }));
2906
2906
  }
2907
2907
 
2908
- const tabItemVariants = 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", {
2908
+ const tabItemVariants = 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 -mb-[1.5px]`, {
2909
2909
  variants: {
2910
2910
  variant: {
2911
- bordered: "border-b-2",
2912
- filled: "rounded-medium",
2911
+ bordered: "border-b-[1.5px]",
2912
+ borderless: "border-b-[1.5px]",
2913
2913
  },
2914
2914
  size: {
2915
- small: "px-4 h-10 text-body-small-medium",
2916
- large: "px-6 h-12 text-body-large-medium",
2915
+ small: "px-2 py-3 h-9",
2916
+ medium: "px-3 py-4 h-11",
2917
+ large: "px-3 py-4 h-12",
2917
2918
  },
2918
2919
  isSelected: {
2919
2920
  true: "",
@@ -2929,9 +2930,9 @@ const tabItemVariants = cva("inline-flex items-center justify-center gap-2 white
2929
2930
  },
2930
2931
  },
2931
2932
  compoundVariants: [
2932
- // Bordered variant - not selected
2933
+ // Bordered and borderless variants - not selected
2933
2934
  {
2934
- variant: "bordered",
2935
+ variant: ["bordered", "borderless"],
2935
2936
  isSelected: false,
2936
2937
  isDisabled: false,
2937
2938
  class: `text-text-body-secondary
@@ -2945,33 +2946,41 @@ const tabItemVariants = cva("inline-flex items-center justify-center gap-2 white
2945
2946
  variant: "bordered",
2946
2947
  isSelected: true,
2947
2948
  isDisabled: false,
2948
- class: "text-text-body-primary border-b-action-fill-primary-default text-action-ink-primary-normal hover:border-b-action-fill-primary-hover",
2949
+ 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",
2949
2950
  },
2950
- // Bordered variant - disabled
2951
+ // Borderless variant - selected
2951
2952
  {
2952
- variant: "bordered",
2953
- isDisabled: true,
2954
- class: "text-text-body-disabled border-b-transparent",
2953
+ variant: "borderless",
2954
+ isSelected: true,
2955
+ isDisabled: false,
2956
+ 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",
2955
2957
  },
2956
- // Filled variant - not selected
2958
+ // Typography by size and selection
2957
2959
  {
2958
- variant: "filled",
2960
+ size: ["small", "medium"],
2959
2961
  isSelected: false,
2960
- isDisabled: false,
2961
- class: "text-text-body-secondary hover:text-text-body-primary hover:bg-surface-layer-3",
2962
+ class: "text-body-medium-medium",
2962
2963
  },
2963
- // Filled variant - selected
2964
2964
  {
2965
- variant: "filled",
2965
+ size: ["small", "medium"],
2966
2966
  isSelected: true,
2967
- isDisabled: false,
2968
- class: "text-text-body-primary bg-surface-layer-3",
2967
+ class: "text-body-medium-semibold",
2969
2968
  },
2970
- // Filled variant - disabled
2971
2969
  {
2972
- variant: "filled",
2970
+ size: "large",
2971
+ isSelected: false,
2972
+ class: "text-body-large-medium",
2973
+ },
2974
+ {
2975
+ size: "large",
2976
+ isSelected: true,
2977
+ class: "text-body-large-semibold",
2978
+ },
2979
+ // Bordered and borderless variants - disabled
2980
+ {
2981
+ variant: ["bordered", "borderless"],
2973
2982
  isDisabled: true,
2974
- class: "text-text-body-disabled",
2983
+ class: "text-text-body-disabled border-b-transparent",
2975
2984
  },
2976
2985
  ],
2977
2986
  defaultVariants: {
@@ -3011,12 +3020,11 @@ const Tabs = React.forwardRef(({ tabs, selectedTabId, defaultSelectedTabId, onTa
3011
3020
  return (jsxs("div", { ref: ref, className: cn("w-full", className), ...props, children: [jsx("div", { role: "tablist", className: cn("inline-flex items-center", {
3012
3021
  "w-full": isFullWidth,
3013
3022
  "border-b border-b-[1.5px] border-surface-outline-neutral-muted": variant === "bordered",
3014
- "bg-surface-layer-2 rounded-medium p-1 gap-1": variant === "filled",
3015
3023
  }, tabListClassName), children: tabs.map((tab) => (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 && (jsx("div", { role: "tabpanel", className: cn("mt-4", contentClassName), "aria-labelledby": String(activeTabId), children: activeTab.content }))] }));
3016
3024
  });
3017
3025
  Tabs.displayName = "Tabs";
3018
3026
 
3019
- const textAreaVariants = cva("relative flex flex-col border rounded-medium transition-all font-display font-size-100 leading-100", {
3027
+ const textAreaVariants = cva("relative flex flex-col border rounded-large transition-all font-display font-size-100 leading-100", {
3020
3028
  variants: {
3021
3029
  size: {
3022
3030
  small: "p-3 min-h-[56px] text-xs gap-2",