@aurea-uds/native 0.75.0 → 0.77.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/inputs.d.ts CHANGED
@@ -374,9 +374,14 @@ export interface SwitchProps extends ControleProps {
374
374
  */
375
375
  export declare function Switch({ label, description, checked, onChange, disabled, size, style, testID, accessibilityLabel, align, }: SwitchProps): React.JSX.Element;
376
376
  export interface SegmentedControlProps extends ViewProps {
377
+ /**
378
+ * `disabled` no item (o AUD-1, parte 4 — 22/11/2026): só aquele segmento fica indisponível, apagado e sem escolha, e o leitor
379
+ * de tela o ouve como indisponível — como a aba do `Tabs` e o segmento da web. O `disabled` do controle continua apagando todos.
380
+ */
377
381
  items: Array<{
378
382
  value: string;
379
383
  label: React.ReactNode;
384
+ disabled?: boolean;
380
385
  }>;
381
386
  value?: string;
382
387
  onChange?: (v: string) => void;
package/dist/inputs.js CHANGED
@@ -622,8 +622,10 @@ export function SegmentedControl({ items, value, onChange, label, disabled, just
622
622
  boxShadow: [...(pele.aro ? [aroDoEstilo(t, pele.aro)] : []), ...(pele.sombra ? t.shadowLayers.shadowSm : [])] }];
623
623
  return (_jsx(FilaRolante, { justify: justify, fill: fullWidth, children: _jsxs(View, { accessibilityRole: "radiogroup", accessibilityLabel: label ?? campo?.label, style: [s.segmentada, fullWidth && s.segmentadaCheia, inativo && s.desabilitado, style], ...marcaDoEstilo("segmentStyle", selectedStyle), ...rest, children: [_jsx(IndicadorQueDesliza, { alvo: fila.alvo, aoFicarPronto: fila.aoFicarPronto, style: [canto(t.size.radiusControl), pinturaDoAceso] }), items.map((it) => {
624
624
  const ativo = it.value === value;
625
- return (_jsxs(Pressable, { onLayout: fila.medir(it.value), onPress: inativo ? undefined : () => onChange?.(it.value), disabled: inativo, accessibilityRole: "radio", ...estadoAcessivel({ checked: ativo, disabled: !!inativo }), accessibilityLabel: typeof it.label === "string" ? it.label : undefined, style: [s.segmento, fullWidth && s.segmentoCheio, ativo && !fila.pronto && pinturaDoAceso,
626
- pele?.ponto && s.segmentoComPonto], children: [pele?.ponto && _jsx(View, { collapsable: false, style: [s.pontoDoSegmento, ativo && { backgroundColor: t.color.primary }] }), typeof it.label === "string"
625
+ // Indisponível sozinho (o item) ou com o grupo (o controle). Com o controle, o apagado já vem da fila inteira.
626
+ const fora = inativo || it.disabled;
627
+ return (_jsxs(Pressable, { onLayout: fila.medir(it.value), onPress: fora ? undefined : () => onChange?.(it.value), disabled: fora, accessibilityRole: "radio", ...estadoAcessivel({ checked: ativo, disabled: !!fora }), accessibilityLabel: typeof it.label === "string" ? it.label : undefined, style: [s.segmento, fullWidth && s.segmentoCheio, ativo && !fila.pronto && pinturaDoAceso,
628
+ pele?.ponto && s.segmentoComPonto, it.disabled && !inativo && { opacity: t.size.opacityDisabled }], children: [pele?.ponto && _jsx(View, { collapsable: false, style: [s.pontoDoSegmento, ativo && { backgroundColor: t.color.primary }] }), typeof it.label === "string"
627
629
  ? _jsx(Text, { size: "sm", weight: ativo ? 600 : 400,
628
630
  // 🔴 ERA `foreground`, E ISSO QUEBRAVA A LINGUAGEM DE SELECIONADO.
629
631
  // Achado pelo consumidor em 17/09/2026. A web pinta o escolhido com a
package/dist/text.d.ts CHANGED
@@ -5,7 +5,7 @@ export type AureaTextSize = "xs" | "sm" | "md" | "base" | "lg" | "xl" | "2xl" |
5
5
  /** Os pesos que o pacote de fontes entrega (o 800 desde a 0.28.0, GAR-16). Ver ADR-0039: cada peso é uma FAMÍLIA. */
6
6
  export type AureaTextWeight = 400 | 500 | 600 | 700 | 800;
7
7
  /** Papel de tipografia — os `--font-*` da Aurea (o `heading` desde a 0.28.0). */
8
- export type AureaTextFont = "ui" | "editorial" | "code" | "heading";
8
+ export type AureaTextFont = "ui" | "code" | "heading";
9
9
  /** O que a cor SIGNIFICA. Mesmo vocabulário do `tone` do Button (ADR-0044). */
10
10
  export type AureaTextTone = "default" | "muted" | "subtle" | "primary" | "link" | "danger" | "success" | "warning" | "info";
11
11
  export type AureaTextLeading = "none" | "tight" | "normal" | "relaxed";
package/dist/theme.js CHANGED
@@ -19,7 +19,7 @@ function aplicarModos(t, m) {
19
19
  return t;
20
20
  const s = t.size;
21
21
  const size = m.texto === "lg" ? { ...s,
22
- textXs: s.textXs + 2, textSm: s.textSm + 2, textMd: s.textMd + 2, textBase: s.textBase + 2,
22
+ textXs: s.textXs + 2, textSm: s.textSm + 2, textBase: s.textBase + 2,
23
23
  textLg: s.textLg + 2, textXl: s.textXl + 2, text2xl: s.text2xl + 2 } : s;
24
24
  const c = t.color;
25
25
  const color = m.alto ? { ...c,
package/dist/tokens.d.ts CHANGED
@@ -29,11 +29,10 @@ export type AureaFontScale = Record<400 | 500 | 600 | 700 | 800, string> & {
29
29
  * 03/09/2026 no `@aurea-uds/fonts/native`:
30
30
  *
31
31
  * ui 400 400i 500 600 700 800 ← o 800 entrou na 0.28.0 (GAR-16)
32
- * editorial 400 500 600 700 ← apelido do `ui` desde a ADR-0053 (sai na 1.0)
33
32
  * code 400 500 600 ← não há 700
34
33
  *
35
- * É a grade dos arquivos de fonte, não um esquecimento nosso. Até a 0.12.4 o `editorial` era a
36
- * IBM Plex Serif, sem 400; a ADR-0053 tirou a serifada e o deixou apontando para a Atkinson.
34
+ * É a grade dos arquivos de fonte, não um esquecimento nosso. O papel `editorial` (apelido do `ui`
35
+ * desde a ADR-0053) saiu no 1.0-A, 0.76.0.
37
36
  */
38
37
  export type AureaFontInput = Partial<Record<"400" | "500" | "600" | "700" | "800" | "400i", string>>;
39
38
  export type AureaTokens = {
@@ -48,7 +47,6 @@ export type AureaTokens = {
48
47
  /** Família por papel de tipografia e peso. */
49
48
  font: {
50
49
  ui: AureaFontScale;
51
- editorial: AureaFontScale;
52
50
  code: AureaFontScale;
53
51
  heading: AureaFontScale;
54
52
  };
@@ -72,7 +70,6 @@ export type AureaTokens = {
72
70
  /** O mapa que o consumidor injeta para o texto sair na Inter, na Sora e na IBM Plex Mono. Ver `AureaProviderProps`. */
73
71
  export type AureaFontFamilies = {
74
72
  ui: AureaFontInput;
75
- editorial: AureaFontInput;
76
73
  code: AureaFontInput;
77
74
  /** O papel do título (GAR-16, 0.28.0). Opcional: sem ele, o título usa o mapa do `ui` — que é a
78
75
  * mesma fonte hoje, e é o que acontece com quem ainda passa o mapa de antes da 0.28.0. */
package/dist/tokens.js CHANGED
@@ -98,7 +98,6 @@ export function resolverTokens(theme, density, fontFamilies, brand) {
98
98
  // e é por isso que o `fontFamilies` do provider existe.
99
99
  const font = {
100
100
  ui: normalizarEscala(fontFamilies?.ui, texto.fontUi ?? "System"),
101
- editorial: normalizarEscala(fontFamilies?.editorial, texto.fontEditorial ?? "System"),
102
101
  code: normalizarEscala(fontFamilies?.code, texto.fontCode ?? "System"),
103
102
  heading: normalizarEscala(fontFamilies?.heading ?? fontFamilies?.ui, texto.fontHeading ?? texto.fontUi ?? "System"),
104
103
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurea-uds/native",
3
- "version": "0.75.0",
3
+ "version": "0.77.0",
4
4
  "description": "A Aurea UDS para React Native: o provider de tema e densidade, os componentes e os ícones do Phosphor sobre react-native-svg.",
5
5
  "keywords": [
6
6
  "aurea",
@@ -55,7 +55,7 @@
55
55
  "NOTICE"
56
56
  ],
57
57
  "dependencies": {
58
- "@aurea-uds/tokens": "^0.75.0"
58
+ "@aurea-uds/tokens": "^0.77.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@react-native-community/datetimepicker": ">=8",