@xetwa/design-system 1.0.23 → 1.0.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xetwa/design-system",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,6 +24,8 @@ export interface AnswerOptionCardProps {
24
24
  suffixNode?: ReactNode;
25
25
  /** Callback para o evento de clique. */
26
26
  onPress?: () => void;
27
+ /** Aumenta ligeiramente o tamanho do cartão quando selecionado. */
28
+ scaleOnSelect?: boolean;
27
29
  /** Estilos adicionais para o container. */
28
30
  style?: ViewStyle | ViewStyle[];
29
31
  }
@@ -35,6 +37,7 @@ export const AnswerOptionCard = ({
35
37
  prefix,
36
38
  suffixNode,
37
39
  onPress,
40
+ scaleOnSelect = false,
38
41
  style,
39
42
  }: AnswerOptionCardProps) => {
40
43
  const { scale, scaleText } = useResponsive();
@@ -137,6 +140,7 @@ export const AnswerOptionCard = ({
137
140
  paddingHorizontal: scale(15),
138
141
  borderRadius: scale(12),
139
142
  minHeight: scale(56),
143
+ transform: scaleOnSelect && status === 'selected' ? [{ scale: 1.02 }] : [],
140
144
  },
141
145
  webShadow,
142
146
  style,