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.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-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]`, {
2930
2930
  variants: {
2931
2931
  variant: {
2932
- bordered: "border-b-2",
2933
- filled: "rounded-medium",
2932
+ bordered: "border-b-[1.5px]",
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: "",
@@ -2950,9 +2951,9 @@ const tabItemVariants = classVarianceAuthority.cva("inline-flex items-center jus
2950
2951
  },
2951
2952
  },
2952
2953
  compoundVariants: [
2953
- // Bordered variant - not selected
2954
+ // Bordered and borderless variants - not selected
2954
2955
  {
2955
- variant: "bordered",
2956
+ variant: ["bordered", "borderless"],
2956
2957
  isSelected: false,
2957
2958
  isDisabled: false,
2958
2959
  class: `text-text-body-secondary
@@ -2966,33 +2967,41 @@ 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",
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
- // Bordered variant - disabled
2972
+ // Borderless variant - selected
2972
2973
  {
2973
- variant: "bordered",
2974
- isDisabled: true,
2975
- class: "text-text-body-disabled border-b-transparent",
2974
+ variant: "borderless",
2975
+ isSelected: true,
2976
+ isDisabled: false,
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",
2976
2978
  },
2977
- // Filled variant - not selected
2979
+ // Typography by size and selection
2978
2980
  {
2979
- variant: "filled",
2981
+ size: ["small", "medium"],
2980
2982
  isSelected: false,
2981
- isDisabled: false,
2982
- class: "text-text-body-secondary hover:text-text-body-primary hover:bg-surface-layer-3",
2983
+ class: "text-body-medium-medium",
2983
2984
  },
2984
- // Filled variant - selected
2985
2985
  {
2986
- variant: "filled",
2986
+ size: ["small", "medium"],
2987
2987
  isSelected: true,
2988
- isDisabled: false,
2989
- class: "text-text-body-primary bg-surface-layer-3",
2988
+ class: "text-body-medium-semibold",
2990
2989
  },
2991
- // Filled variant - disabled
2992
2990
  {
2993
- variant: "filled",
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
+ },
3000
+ // Bordered and borderless variants - disabled
3001
+ {
3002
+ variant: ["bordered", "borderless"],
2994
3003
  isDisabled: true,
2995
- class: "text-text-body-disabled",
3004
+ class: "text-text-body-disabled border-b-transparent",
2996
3005
  },
2997
3006
  ],
2998
3007
  defaultVariants: {
@@ -3032,12 +3041,11 @@ const Tabs = React__namespace.forwardRef(({ tabs, selectedTabId, defaultSelected
3032
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", {
3033
3042
  "w-full": isFullWidth,
3034
3043
  "border-b border-b-[1.5px] border-surface-outline-neutral-muted": variant === "bordered",
3035
- "bg-surface-layer-2 rounded-medium p-1 gap-1": variant === "filled",
3036
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 }))] }));
3037
3045
  });
3038
3046
  Tabs.displayName = "Tabs";
3039
3047
 
3040
- 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", {
3041
3049
  variants: {
3042
3050
  size: {
3043
3051
  small: "p-3 min-h-[56px] text-xs gap-2",