@refy-design/mobile 1.1.0 → 1.2.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.
@@ -7,6 +7,10 @@ export interface BrandLogoCoreProps {
7
7
  tone?: "default" | "inverse";
8
8
  animated?: boolean;
9
9
  markOnly?: boolean;
10
+ /** The refy symbol before the word; its color comes from `--brand-mark`. */
11
+ symbol?: boolean;
12
+ /** Exact height of the logo, for headers with a fixed slot. Overrides `size`. */
13
+ height?: number;
10
14
  /** Marca fornecida pelo consumidor. Não inclui assets de terceiros no Refy. */
11
15
  children?: ReactNode;
12
16
  }
@@ -57,12 +57,16 @@ export interface BillingCardCoreProps {
57
57
  /** Props for the PlanCard component. */
58
58
  export interface PlanCardCoreProps {
59
59
  name: ReactNode;
60
+ /** Short text between the name and the price. */
61
+ description?: ReactNode;
60
62
  price: ReactNode;
61
63
  period?: ReactNode;
62
64
  priceNote?: ReactNode;
63
65
  features?: ReactNode[];
64
66
  checkIcon?: ReactNode;
65
67
  cta?: ReactNode;
68
+ /** Where the CTA goes: after the price (`top`, default) or at the bottom of the card (`bottom`). */
69
+ ctaPosition?: "top" | "bottom";
66
70
  current?: boolean;
67
71
  currentLabel?: string;
68
72
  highlighted?: boolean;
@@ -278,6 +278,7 @@ export type RefyTokenName =
278
278
  | "--radius-xl"
279
279
  | "--radius-xl-token"
280
280
  | "--radius-xs"
281
+ | "--scope-overflow-wrap"
281
282
  | "--secondary"
282
283
  | "--secondary-container"
283
284
  | "--secondary-fixed"
@@ -4,4 +4,4 @@ export type { BrandLogoSize };
4
4
  export interface BrandLogoProps extends BrandLogoCoreProps, Omit<ViewProps, "children"> {
5
5
  }
6
6
  /** Assinatura do Refy: "refy" em mono com o ponto que pulsa. markOnly mostra o monograma "r". */
7
- export declare function BrandLogo({ brand, size, tone, animated, markOnly, children, style, ...rest }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function BrandLogo({ brand, size, tone, animated, markOnly, symbol, height, children, style, ...rest }: BrandLogoProps): import("react/jsx-runtime").JSX.Element;
@@ -3,4 +3,4 @@ import type { PlanCardCoreProps } from "../_contracts/index";
3
3
  export interface PlanCardProps extends PlanCardCoreProps, Omit<ViewProps, "children"> {
4
4
  }
5
5
  /** Cartão de plano: nome, preço, CTA e lista de recursos. `current` trava o CTA; `highlighted` destaca o recomendado. */
6
- export declare function PlanCard({ name, price, period, priceNote, features, checkIcon, cta, current, currentLabel, highlighted, highlightLabel, style, ...rest }: PlanCardProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function PlanCard({ name, description, price, period, priceNote, features, checkIcon, cta, ctaPosition, current, currentLabel, highlighted, highlightLabel, style, ...rest }: PlanCardProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@refy-design/mobile",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Componentes do Refy em React Native, com o mesmo contrato de props da web.",
5
- "license": "MIT",
5
+ "license": "Apache-2.0",
6
6
  "author": "Vinícius Coimbra",
7
7
  "repository": {
8
8
  "type": "git",
@@ -33,7 +33,8 @@
33
33
  "files": [
34
34
  "dist",
35
35
  "README.md",
36
- "LICENSE"
36
+ "LICENSE",
37
+ "NOTICE"
37
38
  ],
38
39
  "scripts": {
39
40
  "build": "node build.mjs",