@facter/ds-core 1.7.5 → 1.8.0

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.mts CHANGED
@@ -352,6 +352,8 @@ interface DataTableSearchProps {
352
352
  column?: string;
353
353
  /** Debounce delay em ms */
354
354
  debounce?: number;
355
+ /** Callback para server-side search (recebe valor com debounce aplicado) */
356
+ onSearch?: (value: string) => void;
355
357
  /** Custom className */
356
358
  className?: string;
357
359
  }
@@ -385,6 +387,8 @@ interface DataTableContentProps {
385
387
  stripedRows?: boolean;
386
388
  /** Highlight no hover */
387
389
  highlightOnHover?: boolean;
390
+ /** Callback quando uma row é clicada */
391
+ onRowClick?: (row: unknown) => void;
388
392
  /** Custom className */
389
393
  className?: string;
390
394
  }
@@ -801,7 +805,7 @@ declare const toast: ((message: string) => string | number) & {
801
805
  };
802
806
 
803
807
  declare const checkboxVariants: (props?: ({
804
- variant?: "default" | "outline" | "secondary" | null | undefined;
808
+ variant?: "default" | "outline" | "secondary" | "muted" | null | undefined;
805
809
  size?: "sm" | "lg" | "md" | null | undefined;
806
810
  } & class_variance_authority_types.ClassProp) | undefined) => string;
807
811
  interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
@@ -2010,7 +2014,7 @@ interface ItemCardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
2010
2014
  declare const ItemCardHeader: React$1.ForwardRefExoticComponent<ItemCardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
2011
2015
  declare const itemCardIconVariants: (props?: ({
2012
2016
  size?: "sm" | "lg" | "md" | null | undefined;
2013
- variant?: "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | "primary" | "muted" | null | undefined;
2017
+ variant?: "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | "muted" | "primary" | null | undefined;
2014
2018
  } & class_variance_authority_types.ClassProp) | undefined) => string;
2015
2019
  interface ItemCardIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardIconVariants> {
2016
2020
  /** Whether to show ripple effect */
@@ -2030,7 +2034,7 @@ interface ItemCardSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElem
2030
2034
  declare const ItemCardSubtitle: React$1.ForwardRefExoticComponent<ItemCardSubtitleProps & React$1.RefAttributes<HTMLParagraphElement>>;
2031
2035
 
2032
2036
  declare const itemCardBadgeVariants: (props?: ({
2033
- variant?: "default" | "destructive" | "success" | "warning" | "info" | "primary" | "muted" | null | undefined;
2037
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "muted" | "primary" | null | undefined;
2034
2038
  } & class_variance_authority_types.ClassProp) | undefined) => string;
2035
2039
  interface ItemCardBadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardBadgeVariants> {
2036
2040
  }
package/dist/index.d.ts CHANGED
@@ -352,6 +352,8 @@ interface DataTableSearchProps {
352
352
  column?: string;
353
353
  /** Debounce delay em ms */
354
354
  debounce?: number;
355
+ /** Callback para server-side search (recebe valor com debounce aplicado) */
356
+ onSearch?: (value: string) => void;
355
357
  /** Custom className */
356
358
  className?: string;
357
359
  }
@@ -385,6 +387,8 @@ interface DataTableContentProps {
385
387
  stripedRows?: boolean;
386
388
  /** Highlight no hover */
387
389
  highlightOnHover?: boolean;
390
+ /** Callback quando uma row é clicada */
391
+ onRowClick?: (row: unknown) => void;
388
392
  /** Custom className */
389
393
  className?: string;
390
394
  }
@@ -801,7 +805,7 @@ declare const toast: ((message: string) => string | number) & {
801
805
  };
802
806
 
803
807
  declare const checkboxVariants: (props?: ({
804
- variant?: "default" | "outline" | "secondary" | null | undefined;
808
+ variant?: "default" | "outline" | "secondary" | "muted" | null | undefined;
805
809
  size?: "sm" | "lg" | "md" | null | undefined;
806
810
  } & class_variance_authority_types.ClassProp) | undefined) => string;
807
811
  interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
@@ -2010,7 +2014,7 @@ interface ItemCardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
2010
2014
  declare const ItemCardHeader: React$1.ForwardRefExoticComponent<ItemCardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
2011
2015
  declare const itemCardIconVariants: (props?: ({
2012
2016
  size?: "sm" | "lg" | "md" | null | undefined;
2013
- variant?: "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | "primary" | "muted" | null | undefined;
2017
+ variant?: "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | "muted" | "primary" | null | undefined;
2014
2018
  } & class_variance_authority_types.ClassProp) | undefined) => string;
2015
2019
  interface ItemCardIconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardIconVariants> {
2016
2020
  /** Whether to show ripple effect */
@@ -2030,7 +2034,7 @@ interface ItemCardSubtitleProps extends React$1.HTMLAttributes<HTMLParagraphElem
2030
2034
  declare const ItemCardSubtitle: React$1.ForwardRefExoticComponent<ItemCardSubtitleProps & React$1.RefAttributes<HTMLParagraphElement>>;
2031
2035
 
2032
2036
  declare const itemCardBadgeVariants: (props?: ({
2033
- variant?: "default" | "destructive" | "success" | "warning" | "info" | "primary" | "muted" | null | undefined;
2037
+ variant?: "default" | "destructive" | "success" | "warning" | "info" | "muted" | "primary" | null | undefined;
2034
2038
  } & class_variance_authority_types.ClassProp) | undefined) => string;
2035
2039
  interface ItemCardBadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof itemCardBadgeVariants> {
2036
2040
  }