@xetwa/design-system 1.0.27 → 1.0.29

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.27",
3
+ "version": "1.0.29",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -70,4 +70,4 @@
70
70
  "vite": "^8.0.12",
71
71
  "vitest": "^4.1.9"
72
72
  }
73
- }
73
+ }
@@ -65,21 +65,21 @@ export const AnswerOptionCard = ({
65
65
  return {
66
66
  borderColor: theme.colors.primary,
67
67
  backgroundColor: theme.colors.primaryLight,
68
- shadowColor: 'rgba(242,151,75,0.25)',
68
+ shadowColor: '#FCE5D2',
69
69
  textColor: theme.colors.brown[800],
70
70
  };
71
71
  case 'correct':
72
72
  return {
73
73
  borderColor: theme.colors.success,
74
74
  backgroundColor: '#eafaf2',
75
- shadowColor: 'rgba(22,145,90,0.2)',
75
+ shadowColor: '#D0E9DE',
76
76
  textColor: theme.colors.brown[800],
77
77
  };
78
78
  case 'wrong':
79
79
  return {
80
80
  borderColor: theme.colors.error,
81
81
  backgroundColor: '#fdf0ee',
82
- shadowColor: 'rgba(207,91,72,0.2)',
82
+ shadowColor: '#F5DEDA',
83
83
  textColor: theme.colors.brown[800],
84
84
  };
85
85
  case 'disabled':
@@ -216,13 +216,13 @@ export const AnswerOptionCard = ({
216
216
  width: scale(28),
217
217
  height: scale(28),
218
218
  borderRadius: scale(14),
219
- backgroundColor: status === 'correct' ? theme.colors.success : status === 'wrong' ? theme.colors.error : theme.colors.brown[100],
219
+ backgroundColor: status === 'correct' ? theme.colors.success : status === 'wrong' ? theme.colors.error : status === 'selected' ? theme.colors.primary : theme.colors.brown[100],
220
220
  alignItems: 'center',
221
221
  justifyContent: 'center'
222
222
  }
223
223
  ]}>
224
224
  <Typography style={{
225
- color: status === 'correct' || status === 'wrong' ? theme.colors.white : theme.colors.brown[500],
225
+ color: status === 'correct' || status === 'wrong' || status === 'selected' ? theme.colors.white : theme.colors.brown[500],
226
226
  fontWeight: 'bold',
227
227
  fontSize: scaleText(14)
228
228
  }}>
package/vite.config.ts CHANGED
@@ -14,6 +14,10 @@ const dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(file
14
14
  // More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
15
15
  export default defineConfig({
16
16
  plugins: [react(), tailwindcss()],
17
+ define: {
18
+ 'process.env': {},
19
+ __DEV__: process.env.NODE_ENV !== 'production' || true
20
+ },
17
21
  resolve: {
18
22
  extensions: ['.web.tsx', '.web.ts', '.web.jsx', '.web.js', '.tsx', '.ts', '.jsx', '.js', '.json'],
19
23
  alias: {