@aurea-uds/native 0.76.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurea-uds/native",
3
- "version": "0.76.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.76.0"
58
+ "@aurea-uds/tokens": "^0.77.0"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@react-native-community/datetimepicker": ">=8",