@selectwin/kit 0.1.84 → 0.1.86

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,8 @@ type SelectCopyRowOwnProps = {
4
4
  value: string;
5
5
  /** When set, shows an "open" action linking here. */
6
6
  href?: string;
7
+ /** Aviso ao consumidor DEPOIS da cópia (um toast, por exemplo) — a cópia em si é do
8
+ * componente; o handler não precisa (nem deve) escrever no clipboard. */
7
9
  onCopy?: (value: string) => void;
8
10
  };
9
11
  export type SelectCopyRowProps = SelectCopyRowOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectCopyRowOwnProps>;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef } from 'react';
1
+ import { ReactNode, ComponentPropsWithoutRef } from 'react';
2
2
  type SelectOfferPriceOwnProps = {
3
3
  /** O que o comprador paga, em CENTAVOS. Ausente = o bloco não é renderizado. */
4
4
  price?: number | null;
@@ -6,6 +6,11 @@ type SelectOfferPriceOwnProps = {
6
6
  was?: number | null;
7
7
  /** Esconde o selo de desconto (o card já diz isso de outro jeito). */
8
8
  hideDiscount?: boolean;
9
+ /** O que mostrar quando o preço é ZERO — "Grátis" num frete diz mais que "R$ 0,00".
10
+ * Sem ele, zero é formatado como dinheiro (é o certo para uma oferta de fato zerada). */
11
+ zeroLabel?: ReactNode;
12
+ /** Nota discreta ao lado do preço (o prazo de entrega, por exemplo). */
13
+ note?: ReactNode;
9
14
  };
10
15
  export type SelectOfferPriceProps = SelectOfferPriceOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectOfferPriceOwnProps>;
11
16
  export declare const SelectOfferPrice: import('react').ForwardRefExoticComponent<SelectOfferPriceOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectOfferPriceOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
package/dist/icons.d.ts CHANGED
@@ -101,6 +101,18 @@ export declare function DiscountIcon(): import("react").JSX.Element;
101
101
  * evento, os provedores recebem.
102
102
  */
103
103
  export declare function BroadcastIcon(): import("react").JSX.Element;
104
+ /**
105
+ * Caminhão de entrega — o glifo do MEIO DE ENTREGA. `CubeIcon` (caixa) já é o order bump
106
+ * e o placeholder do SelectThumbnail; frete precisa do próprio desenho, senão a aba de
107
+ * entrega e a de ofertas abrem com o mesmo símbolo. Baú + cabine + duas rodas.
108
+ */
109
+ export declare function TruckIcon(): import("react").JSX.Element;
110
+ /**
111
+ * Elo de corrente — o glifo do LINK DE PAGAMENTO. `ExternalLinkIcon` (a seta saindo da
112
+ * caixa) é a AÇÃO "abrir em nova aba", e usá-la como símbolo do recurso faz o card
113
+ * parecer um botão. Aqui o link é a coisa, não a ação.
114
+ */
115
+ export declare function LinkIcon(): import("react").JSX.Element;
104
116
  export declare function ChartLineIcon(): import("react").JSX.Element;
105
117
  export declare function StoreIcon({ duotone }?: IconVariantProps): import("react").JSX.Element;
106
118
  export declare function AppsIcon(): import("react").JSX.Element;