@eqtylab/equality 2.3.1 → 2.3.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.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
2
  import * as React$1 from 'react';
3
- import { ReactNode, HTMLAttributes } from 'react';
3
+ import { ReactNode, ComponentPropsWithoutRef, HTMLAttributes } from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -800,6 +800,7 @@ interface TabsProps {
800
800
  icon?: React.ReactElement | string;
801
801
  suffix?: React.ReactNode;
802
802
  content: React.ReactNode;
803
+ triggerProps?: Omit<ComponentPropsWithoutRef<typeof TabsTrigger>, 'value'>;
803
804
  }[];
804
805
  className?: string;
805
806
  tabsListBackground?: 'transparent' | 'filled';
@@ -905,7 +906,7 @@ declare const TruncatedDescription: ({ className, description, maxLength, }: Tru
905
906
 
906
907
  declare const iconVariants: (props?: ({
907
908
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
908
- background?: "circle" | "square" | "transparent" | null | undefined;
909
+ background?: "square" | "circle" | "transparent" | null | undefined;
909
910
  } & class_variance_authority_types.ClassProp) | undefined) => string;
910
911
  declare const iconElevationVariants: (props?: ({
911
912
  elevation?: string | number | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
2
  import * as React$1 from 'react';
3
- import { ReactNode, HTMLAttributes } from 'react';
3
+ import { ReactNode, ComponentPropsWithoutRef, HTMLAttributes } from 'react';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -800,6 +800,7 @@ interface TabsProps {
800
800
  icon?: React.ReactElement | string;
801
801
  suffix?: React.ReactNode;
802
802
  content: React.ReactNode;
803
+ triggerProps?: Omit<ComponentPropsWithoutRef<typeof TabsTrigger>, 'value'>;
803
804
  }[];
804
805
  className?: string;
805
806
  tabsListBackground?: 'transparent' | 'filled';
@@ -905,7 +906,7 @@ declare const TruncatedDescription: ({ className, description, maxLength, }: Tru
905
906
 
906
907
  declare const iconVariants: (props?: ({
907
908
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
908
- background?: "circle" | "square" | "transparent" | null | undefined;
909
+ background?: "square" | "circle" | "transparent" | null | undefined;
909
910
  } & class_variance_authority_types.ClassProp) | undefined) => string;
910
911
  declare const iconElevationVariants: (props?: ({
911
912
  elevation?: string | number | null | undefined;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React16 from 'react';
2
- import { forwardRef, useRef, useMemo, useEffect, useSyncExternalStore, useState, useCallback, useLayoutEffect } from 'react';
2
+ import { forwardRef, useRef, useMemo, useEffect, useSyncExternalStore, useState, useCallback, useLayoutEffect, createElement } from 'react';
3
3
  import { cva } from 'class-variance-authority';
4
4
  import styles2 from './alert.module.module.css.module.css';
5
5
  import * as LucideIcons from 'lucide-react';
@@ -3223,25 +3223,24 @@ var Tabs = ({
3223
3223
  styles55["tabs-list"],
3224
3224
  isFilled ? styles55["tabs-list--filled"] : styles55["tabs-list--transparent"]
3225
3225
  ),
3226
- children: items.map(({ label, value, icon, suffix }) => {
3226
+ children: items.map(({ label, value, icon, suffix, triggerProps }) => {
3227
3227
  const isActive = activeTab === value;
3228
- return /* @__PURE__ */ jsxs(
3228
+ return /* @__PURE__ */ createElement(
3229
3229
  TabsTrigger,
3230
3230
  {
3231
+ ...triggerProps,
3232
+ key: value,
3231
3233
  value,
3232
3234
  className: cn(
3233
3235
  styles55["tabs-trigger"],
3234
- isFilled ? styles55["tabs-trigger--filled"] : styles55["tabs-trigger--transparent"]
3235
- ),
3236
- "data-tour": `${value}-tab-overview`,
3237
- children: [
3238
- renderIcon(icon),
3239
- label,
3240
- suffix,
3241
- renderActiveStyle(isActive)
3242
- ]
3236
+ isFilled ? styles55["tabs-trigger--filled"] : styles55["tabs-trigger--transparent"],
3237
+ triggerProps?.className
3238
+ )
3243
3239
  },
3244
- value
3240
+ renderIcon(icon),
3241
+ label,
3242
+ suffix,
3243
+ renderActiveStyle(isActive)
3245
3244
  );
3246
3245
  })
3247
3246
  }