@xetwa/design-system 1.0.3 → 1.0.5

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,10 +1,20 @@
1
1
  {
2
2
  "name": "@xetwa/design-system",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
+ "main": "src/index.ts",
9
+ "types": "src/index.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./src/index.ts",
13
+ "import": "./src/index.ts",
14
+ "default": "./src/index.ts"
15
+ },
16
+ "./*": "./*"
17
+ },
8
18
  "scripts": {
9
19
  "dev": "vite",
10
20
  "build": "vite build",
@@ -16,14 +26,21 @@
16
26
  "dependencies": {
17
27
  "@tailwindcss/vite": "^4.3.1",
18
28
  "lucide-react-native": "^1.21.0",
29
+ "tailwindcss": "^4.3.1"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "*",
33
+ "react-dom": "*",
34
+ "react-native": "*",
35
+ "react-native-svg": "*",
36
+ "react-native-web": "*"
37
+ },
38
+ "devDependencies": {
19
39
  "react": "^19.2.6",
20
40
  "react-dom": "^19.2.6",
21
41
  "react-native": "^0.86.0",
22
- "react-native-svg": "^15.15.5",
23
42
  "react-native-web": "^0.21.2",
24
- "tailwindcss": "^4.3.1"
25
- },
26
- "devDependencies": {
43
+ "react-native-svg": "^15.15.5",
27
44
  "@chromatic-com/storybook": "^5.2.1",
28
45
  "@eslint/js": "^10.0.1",
29
46
  "@storybook/addon-a11y": "^10.4.6",
@@ -16,10 +16,12 @@ export interface TypographyProps extends RNTextProps {
16
16
  align?: 'auto' | 'left' | 'right' | 'center' | 'justify';
17
17
  /** Cor do texto (em formato hexadecimal ou rgba). */
18
18
  color?: string;
19
+ /** Peso da fonte opcional para sobrepor a variante. */
20
+ weight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
19
21
  }
20
22
 
21
23
  export const Typography = React.forwardRef<React.ElementRef<typeof RNText>, TypographyProps>(
22
- ({ variant = 'bodyMd', color, style, children, ...props }, ref) => {
24
+ ({ variant = 'bodyMd', color, align, weight, style, children, ...props }, ref) => {
23
25
  const { colors } = useTheme();
24
26
  const { scaleText } = useResponsive();
25
27
 
@@ -39,6 +41,8 @@ export const Typography = React.forwardRef<React.ElementRef<typeof RNText>, Typo
39
41
  { color: defaultColor },
40
42
  responsiveStyle,
41
43
  color ? { color } : null,
44
+ align ? { textAlign: align } : null,
45
+ weight ? { fontWeight: weight } : null,
42
46
  style,
43
47
  ];
44
48
 
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './components/Headers/CountryHeader/CountryHeader';
2
2
  export * from './components/Buttons/MainButton/MainButton';
3
3
  export * from './components/Buttons/BackButton/BackButton';
4
+ export * from './components/Buttons/FabButton/FabButton';
4
5
  export * from './components/Cards/ModuleCard/ModuleCard';
5
6
  export * from './components/Cards/ModuleCompletionCard/ModuleCompletionCard';
6
7
  export * from './components/Cards/AnswerOptionCard/AnswerOptionCard';
@@ -26,3 +27,21 @@ export * from './components/Headers/ProfileHeader/ProfileHeader';
26
27
  export * from './components/Inputs/FillInTheBlank/FillInTheBlank';
27
28
  export * from './components/Charts/WeeklyProgressChart';
28
29
  export * from './components/Navigation/ProgressMap/ProgressMap';
30
+ export * from './components/Buttons/IconButton/IconButton';
31
+ export * from './components/Buttons/JourneyButton/JourneyButton';
32
+ export * from './components/Buttons/WordChip/WordChip';
33
+ export * from './components/Cards/LevelProgressCard/LevelProgressCard';
34
+ export * from './components/Cards/Passport/PassportViewer';
35
+ export * from './components/DataDisplay/Avatar/Avatar';
36
+ export * from './components/DataDisplay/InstructionBubble/InstructionBubble';
37
+ export * from './components/DataDisplay/StatBadge/StatBadge';
38
+ export * from './components/Forms/Checkbox/Checkbox';
39
+ export * from './components/Forms/DaySelector/DaySelector';
40
+ export * from './components/Forms/Radio/Radio';
41
+ export * from './components/Forms/SegmentedToggle/SegmentedToggle';
42
+ export * from './components/Forms/Select/Select';
43
+ export * from './components/Forms/Switch/Switch';
44
+ export * from './components/Forms/TimeSlot/TimeSlot';
45
+ export * from './components/Navigation/BottomTabBar/BottomTabBar';
46
+ export * from './components/Navigation/PaginationDots/PaginationDots';
47
+ export * from './components/Navigation/WorldProgressMap/WorldProgressMap';