@selectwin/kit 0.1.39 → 0.1.41

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.
@@ -4,6 +4,9 @@ type SelectAlertOwnProps = {
4
4
  tone?: 'critical' | 'success' | 'info' | 'warning';
5
5
  /** Bold heading above the body (e.g. "Motivo da falha"). */
6
6
  title?: ReactNode;
7
+ /** Action row under the body — buttons/links that resolve the message. An alert that
8
+ * names another surface should carry the shortcut to it, not only describe the path. */
9
+ action?: ReactNode;
7
10
  };
8
11
  export type SelectAlertProps = SelectAlertOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectAlertOwnProps>;
9
12
  export declare const SelectAlert: import('react').ForwardRefExoticComponent<SelectAlertOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectAlertOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
@@ -3,6 +3,9 @@ type SelectBadgeOwnProps = {
3
3
  children: ReactNode;
4
4
  tone?: 'neutral' | 'brand' | 'pro' | 'success' | 'info' | 'warning' | 'critical' | 'outline';
5
5
  icon?: ReactNode;
6
+ /** 'sm' compacts the pill for dense surfaces. Cells of .select-datatable adopt the
7
+ * compact metrics automatically — pass 'sm' only for dense chrome OUTSIDE tables. */
8
+ size?: 'md' | 'sm';
6
9
  };
7
10
  export type SelectBadgeProps = SelectBadgeOwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof SelectBadgeOwnProps>;
8
11
  export declare const SelectBadge: import('react').ForwardRefExoticComponent<SelectBadgeOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof SelectBadgeOwnProps> & import('react').RefAttributes<HTMLSpanElement>>;
@@ -2,7 +2,9 @@ import { ComponentPropsWithoutRef } from 'react';
2
2
  export interface SelectBankAccount {
3
3
  bankCode: string;
4
4
  agency: string;
5
+ /** Conta COM o dígito embutido (ex. "9288-1" ou só dígitos). */
5
6
  account: string;
7
+ /** @deprecated O dígito vive dentro de `account` ("9288-1"); fica no shape p/ compat — sempre ''. */
6
8
  accountDigit: string;
7
9
  type?: 'checking' | 'savings';
8
10
  }
@@ -7,8 +7,10 @@ export interface SelectStatusMeta {
7
7
  }
8
8
  /** Default map — transaction statuses (Polaris `attention` → Select `warning`). */
9
9
  export declare const SELECT_TRANSACTION_STATUS: Record<string, SelectStatusMeta>;
10
- export declare function SelectStatusBadge({ status, map, }: {
10
+ export declare function SelectStatusBadge({ status, map, size, }: {
11
11
  status: string;
12
12
  map?: Record<string, SelectStatusMeta>;
13
+ /** Pass-through to SelectBadge — 'sm' for dense chrome outside tables. */
14
+ size?: ComponentProps<typeof SelectBadge>['size'];
13
15
  }): import("react").JSX.Element;
14
16
  export {};