@aurea-uds/native 0.8.10 → 0.8.12
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/busca.js +1 -1
- package/dist/chart.js +1 -1
- package/dist/inputs.js +1 -1
- package/dist/numero.js +1 -1
- package/dist/text.js +8 -2
- package/package.json +2 -2
package/dist/busca.js
CHANGED
|
@@ -80,7 +80,7 @@ import { useAureaStrings, useAureaTokens, ForaDaMarca, usePeleSobreAMarca } from
|
|
|
80
80
|
// tornaria pública uma conta interna do outro módulo, e um `import` de função privada entre
|
|
81
81
|
// módulos irmãos é o começo de um acoplamento que ninguém declara. São três linhas.
|
|
82
82
|
const alturaDoTamanho = (t, s) => s === "sm" ? t.size.controlHSm : s === "lg" ? t.size.controlHLg : t.size.controlHMd;
|
|
83
|
-
const fonteDoTamanho = (t, s) => s === "sm" ? t.size.
|
|
83
|
+
const fonteDoTamanho = (t, s) => s === "sm" ? t.size.textSm : s === "lg" ? t.size.textLg : t.size.textBase; // ADR-0050: um degrau acima da web
|
|
84
84
|
// ⚠ O `13` do tamanho `md` NÃO é número inventado: é o `padding-inline` literal do `.input`
|
|
85
85
|
// (`aurea.css:685`), e é o mesmo valor que o `inputs.tsx:60` usa. Não há token de 13 — a escala
|
|
86
86
|
// tem `space3`=12 e `space4`=16 —, e é por isso que o CSS o escreve cru dos dois lados.
|
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.
|
|
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) => {
|
|
173
173
|
const marca = serie.mark ?? mark;
|
|
174
174
|
const cor = cores[n];
|
|
175
175
|
if (marca === "bar") {
|
package/dist/inputs.js
CHANGED
|
@@ -47,7 +47,7 @@ import { useReduceMotion } from "./movimento.js";
|
|
|
47
47
|
import { Text } from "./text.js";
|
|
48
48
|
import { useAureaStrings, useAureaTokens, usePeleSobreAMarca, ForaDaMarca } from "./theme.js";
|
|
49
49
|
const alturaDoTamanho = (t, s) => s === "sm" ? t.size.controlHSm : s === "lg" ? t.size.controlHLg : t.size.controlHMd;
|
|
50
|
-
const fonteDoTamanho = (t, s) => s === "sm" ? t.size.
|
|
50
|
+
const fonteDoTamanho = (t, s) => s === "sm" ? t.size.textSm : s === "lg" ? t.size.textLg : t.size.textBase; // ADR-0050: um degrau acima da web
|
|
51
51
|
const respiroDoTamanho = (t, s) => s === "sm" ? t.size.space3 : s === "lg" ? t.size.space4 : 13;
|
|
52
52
|
const folha = criarFolha((t) => ({
|
|
53
53
|
campo: { gap: 7 },
|
package/dist/numero.js
CHANGED
|
@@ -51,7 +51,7 @@ import { criarFolha } from "./estilos.js";
|
|
|
51
51
|
import { useCampo } from "./inputs.js";
|
|
52
52
|
import { useAureaStrings, useAureaTokens, usePeleSobreAMarca } from "./theme.js";
|
|
53
53
|
const alturaDoTamanho = (t, s) => s === "sm" ? t.size.controlHSm : s === "lg" ? t.size.controlHLg : t.size.controlHMd;
|
|
54
|
-
const fonteDoTamanho = (t, s) => s === "sm" ? t.size.
|
|
54
|
+
const fonteDoTamanho = (t, s) => s === "sm" ? t.size.textSm : s === "lg" ? t.size.textLg : t.size.textBase; // ADR-0050: um degrau acima da web
|
|
55
55
|
const folha = criarFolha((t) => ({
|
|
56
56
|
// 🔴 ELE ESTICAVA, E NÃO DEVIA — achado em 12/09/2026, olhando a primeira imagem da vitrine.
|
|
57
57
|
//
|
package/dist/text.js
CHANGED
|
@@ -53,8 +53,14 @@ import { useAureaTokens, useSobreAMarca } from "./theme.js";
|
|
|
53
53
|
// linha ~29. Isso cabe em toda cápsula, MENOS o controle `sm` na densidade compacta (28 de
|
|
54
54
|
// altura), que estoura por 1 ponto. Em 1,5× vários estouram — e isso já era verdade na escala
|
|
55
55
|
// antiga.
|
|
56
|
+
// ⚠ **ESCALA DO HEROUI, 24/09/2026 (ADR-0050, que substitui a 0049).** Os NÚMEROS são os da web —
|
|
57
|
+
// 12 · 14 · 16 · 18 · 20 · 24 · 30 · 36 · 48, a escala do Tailwind que o HeroUI usa. O que muda no
|
|
58
|
+
// telefone é o DEGRAU que cada papel pega, e isso também é do HeroUI, lido no pacote deles: na web
|
|
59
|
+
// a peça é `text-sm` (14) e o apoio `text-xs` (12); no HeroUI Native a peça é `text-base` (16) e o
|
|
60
|
+
// apoio `text-sm` (14). Por isso aqui os nomes pequenos sobem UM degrau: o mesmo `size="sm"` que é
|
|
61
|
+
// 14 na web é 16 no telefone. Os componentes não trocam de nome; o mapa é que traduz o papel.
|
|
56
62
|
const TAMANHO = {
|
|
57
|
-
xs: "
|
|
63
|
+
xs: "textSm", sm: "textBase", md: "textBase", base: "textBase", lg: "textLg",
|
|
58
64
|
xl: "textXl", "2xl": "text2xl", "3xl": "text3xl", "4xl": "text4xl", "5xl": "text5xl",
|
|
59
65
|
};
|
|
60
66
|
const ENTRELINHA = {
|
|
@@ -93,7 +99,7 @@ export function Text({ size = "md", weight = 400, font = "ui", tone = "default",
|
|
|
93
99
|
const s = folha(t);
|
|
94
100
|
const sobreAMarca = useSobreAMarca();
|
|
95
101
|
const proprio = React.useMemo(() => {
|
|
96
|
-
const fontSize = t.size[TAMANHO[size]] ?? t.size.
|
|
102
|
+
const fontSize = t.size[TAMANHO[size]] ?? t.size.textBase;
|
|
97
103
|
const escala = t.font[font];
|
|
98
104
|
// O itálico é UMA fonte, não um estilo sintético: `fontStyle:"italic"` faria o sistema
|
|
99
105
|
// inclinar o desenho reto, e o Plex tem itálico desenhado. Só o `ui` o tem — nos outros
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurea-uds/native",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.12",
|
|
4
4
|
"description": "React Native target for Aurea UDS: the theme x density provider, the first components and the Carbon icons, drawn on react-native-svg.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aurea",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"NOTICE"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@aurea-uds/tokens": "^0.8.
|
|
50
|
+
"@aurea-uds/tokens": "^0.8.12"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@react-native-community/datetimepicker": ">=8",
|