@aurea-uds/native 0.52.0 → 0.54.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/chart.js CHANGED
@@ -169,7 +169,7 @@ export function Chart({ labels, series, label, mark = "line", height = ALTURA, y
169
169
  return d.trim();
170
170
  };
171
171
  const tocar = (i) => { setTocado(i); onSelect?.(i); };
172
- return (_jsxs(View, { style: [s.caixa, style], testID: testID, children: [_jsxs(View, { onLayout: (e) => setLargura(e.nativeEvent.layout.width), style: { height }, children: [largura > 0 ? (_jsx(View, { accessible: true, accessibilityLabel: nome, children: _jsxs(Svg, { width: largura, height: height, testID: testID ? `${testID}-svg` : undefined, children: [_jsx(G, { children: passos.map((v, i) => (_jsx(Line, { x1: CALHA.esquerda, y1: y(v), x2: largura - CALHA.direita, y2: y(v), stroke: t.color.border, strokeWidth: t.size.borderWidth }, `g${i}`))) }), _jsxs(G, { children: [passos.map((v, i) => (_jsx(SvgText, { x: CALHA.esquerda - 6, y: y(v) + 4, textAnchor: "end", fontSize: t.size.textSm, fontFamily: t.font.ui[400], fill: t.color.mutedForeground, children: formatValue(v) }, `ty${i}`))), labels.map((rotulo, i) => (_jsx(SvgText, { x: x(i), y: height - 6, textAnchor: "middle", fontSize: t.size.textSm, fontFamily: t.font.ui[400], fill: t.color.mutedForeground, children: rotulo }, `tx${i}`)))] }), series.map((serie, n) => {
172
+ return (_jsxs(View, { style: [s.caixa, style], testID: testID, children: [_jsxs(View, { onLayout: (e) => setLargura(e.nativeEvent.layout.width), style: { height }, children: [largura > 0 ? (_jsx(View, { accessible: true, accessibilityRole: "image", accessibilityLabel: nome, children: _jsxs(Svg, { width: largura, height: height, testID: testID ? `${testID}-svg` : undefined, children: [_jsx(G, { children: passos.map((v, i) => (_jsx(Line, { x1: CALHA.esquerda, y1: y(v), x2: largura - CALHA.direita, y2: y(v), stroke: t.color.border, strokeWidth: t.size.borderWidth }, `g${i}`))) }), _jsxs(G, { children: [passos.map((v, i) => (_jsx(SvgText, { x: CALHA.esquerda - 6, y: y(v) + 4, textAnchor: "end", fontSize: t.size.textSm, fontFamily: t.font.ui[400], fill: t.color.mutedForeground, children: formatValue(v) }, `ty${i}`))), labels.map((rotulo, i) => (_jsx(SvgText, { x: x(i), y: height - 6, textAnchor: "middle", fontSize: t.size.textSm, fontFamily: t.font.ui[400], fill: t.color.mutedForeground, children: rotulo }, `tx${i}`)))] }), series.map((serie, n) => {
173
173
  const marca = serie.mark ?? mark;
174
174
  const cor = cores[n];
175
175
  if (marca === "bar") {
package/dist/estilos.js CHANGED
@@ -175,6 +175,7 @@ export const peleDoSegmento = (t, estilo) => {
175
175
  case "brand": return { fundo: t.color.primary, letra: t.color.primaryForeground, sombra: false, aro: null, ponto: false };
176
176
  case "ring": return { ...neutra, aro: t.color.primary };
177
177
  case "dot": return { ...neutra, ponto: true };
178
+ case "emphasis": return { ...neutra, letra: corDoEscolhido(t) };
178
179
  default: return null;
179
180
  }
180
181
  };
package/dist/inputs.d.ts CHANGED
@@ -378,12 +378,13 @@ export interface SegmentedControlProps extends ViewProps {
378
378
  * A cor do segmento aceso (ADR-0084, 27/10/2026), em seis estilos aprovados pelo Victor em 26/10/2026, os mesmos da web:
379
379
  * `current` (a cápsula amarela de sempre — o padrão), `neutral` (a cápsula branca com sombra), `contrast` (o grafite),
380
380
  * `brand` (o amarelo), `ring` (a cápsula neutra com o aro amarelo) e `dot` (a cápsula neutra com o ponto amarelo antes
381
- * do nome — o lugar do ponto fica reservado em todos, para a largura não pular quando a escolha muda).
381
+ * do nome — o lugar do ponto fica reservado em todos, para a largura não pular quando a escolha muda). E `emphasis` (o
382
+ * site B, 02/11/2026): a cápsula branca com sombra e a letra do destaque — o amarelo no escuro, o texto no claro.
382
383
  */
383
384
  selectedStyle?: AureaSegmentedControlSelectedStyle;
384
385
  }
385
386
  /** Os seis estilos do segmento aceso (ADR-0084). */
386
- export type AureaSegmentedControlSelectedStyle = "current" | "neutral" | "contrast" | "brand" | "ring" | "dot";
387
+ export type AureaSegmentedControlSelectedStyle = "current" | "neutral" | "contrast" | "brand" | "ring" | "dot" | "emphasis";
387
388
  /**
388
389
  * Um de poucos, lado a lado.
389
390
  *
package/dist/tokens.js CHANGED
@@ -15,7 +15,7 @@
15
15
  // • 1 nome existe no `base` E no tema — `warning400`. No CSS o tema ganha.
16
16
  // Logo: base < tema < densidade. Inverter isso devolve o app inteiro numa densidade só, e em
17
17
  // silêncio — o teste `tokens.test.ts` prova a ordem contra esse defeito.
18
- import { base, themes, densities, brands, tracking, shadowLayers, REM_EM_DP } from "@aurea-uds/tokens/native";
18
+ import { base, themes, densities, brands, tracking, shadowLayers, themeShadowLayers, REM_EM_DP } from "@aurea-uds/tokens/native";
19
19
  const ehCor = (v) => typeof v === "object" && v !== null && "hex" in v;
20
20
  const ehSombra = (v) => typeof v === "object" && v !== null && "blurRadius" in v;
21
21
  // Um objeto por grupo, na ordem em que ganham. `Object.assign` sobre um alvo novo — não sobre o
@@ -102,5 +102,5 @@ export function resolverTokens(theme, density, fontFamilies, brand) {
102
102
  code: normalizarEscala(fontFamilies?.code, texto.fontCode ?? "System"),
103
103
  heading: normalizarEscala(fontFamilies?.heading ?? fontFamilies?.ui, texto.fontHeading ?? texto.fontUi ?? "System"),
104
104
  };
105
- return { theme, density, brand: brand ?? null, color, size, font, shadow, shadowLayers: { ...shadowLayers }, easing, tracking: { ...tracking }, remInDp: REM_EM_DP };
105
+ return { theme, density, brand: brand ?? null, color, size, font, shadow, shadowLayers: { ...shadowLayers, ...themeShadowLayers[theme] }, easing, tracking: { ...tracking }, remInDp: REM_EM_DP };
106
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurea-uds/native",
3
- "version": "0.52.0",
3
+ "version": "0.54.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.52.0"
58
+ "@aurea-uds/tokens": "^0.54.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@react-native-community/datetimepicker": ">=8",