@teardown/cli 2.0.69 → 2.0.70

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": "@teardown/cli",
3
- "version": "2.0.69",
3
+ "version": "2.0.70",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@biomejs/biome": "2.3.11",
79
- "@teardown/tsconfig": "2.0.69",
79
+ "@teardown/tsconfig": "2.0.70",
80
80
  "@types/bun": "1.3.5",
81
81
  "@types/ejs": "^3.1.5",
82
82
  "typescript": "5.9.3"
@@ -71,58 +71,50 @@
71
71
  */
72
72
 
73
73
  import type {
74
- CardBodyProps as HeroCardBodyProps,
75
- CardDescriptionProps as HeroCardDescriptionProps,
76
- CardFooterProps as HeroCardFooterProps,
77
- CardHeaderProps as HeroCardHeaderProps,
78
- CardProps as HeroCardProps,
79
- CardTitleProps as HeroCardTitleProps,
80
- } from "heroui-native";
81
- import {
82
- Card as HeroCard,
83
- CardBody as HeroCardBody,
84
- CardDescription as HeroCardDescription,
85
- CardFooter as HeroCardFooter,
86
- CardHeader as HeroCardHeader,
87
- CardTitle as HeroCardTitle,
74
+ CardBodyProps,
75
+ CardDescriptionProps,
76
+ CardFooterProps,
77
+ CardHeaderProps,
78
+ CardRootProps as CardProps,
79
+ CardTitleProps,
88
80
  } from "heroui-native";
81
+ import { Card as HeroCard } from "heroui-native";
89
82
  import { forwardRef } from "react";
90
- import type { View as ViewRef } from "react-native";
91
- import type { Text as TextRef } from "react-native";
83
+ import type { Text as TextRef, View as ViewRef } from "react-native";
92
84
 
93
85
  // Card Root component
94
- const CardRoot = forwardRef<ViewRef, HeroCardProps>((props, ref) => {
86
+ const CardRoot = forwardRef<ViewRef, CardProps>((props, ref) => {
95
87
  return <HeroCard ref={ref} {...props} />;
96
88
  });
97
89
  CardRoot.displayName = "Card";
98
90
 
99
91
  // Card Header component
100
- const CardHeader = forwardRef<ViewRef, HeroCardHeaderProps>((props, ref) => {
101
- return <HeroCardHeader ref={ref} {...props} />;
92
+ const CardHeader = forwardRef<ViewRef, CardHeaderProps>((props, ref) => {
93
+ return <HeroCard.Header ref={ref} {...props} />;
102
94
  });
103
95
  CardHeader.displayName = "Card.Header";
104
96
 
105
97
  // Card Body component
106
- const CardBody = forwardRef<ViewRef, HeroCardBodyProps>((props, ref) => {
107
- return <HeroCardBody ref={ref} {...props} />;
98
+ const CardBody = forwardRef<ViewRef, CardBodyProps>((props, ref) => {
99
+ return <HeroCard.Body ref={ref} {...props} />;
108
100
  });
109
101
  CardBody.displayName = "Card.Body";
110
102
 
111
- // Card Footer componentc
112
- const CardFooter = forwardRef<ViewRef, HeroCardFooterProps>((props, ref) => {
113
- return <HeroCardFooter ref={ref} {...props} />;
103
+ // Card Footer component
104
+ const CardFooter = forwardRef<ViewRef, CardFooterProps>((props, ref) => {
105
+ return <HeroCard.Footer ref={ref} {...props} />;
114
106
  });
115
107
  CardFooter.displayName = "Card.Footer";
116
108
 
117
109
  // Card Title component
118
- const CardTitle = forwardRef<TextRef, HeroCardTitleProps>((props, ref) => {
119
- return <HeroCardTitle ref={ref} {...props} />;
110
+ const CardTitle = forwardRef<TextRef, CardTitleProps>((props, ref) => {
111
+ return <HeroCard.Title ref={ref} {...props} />;
120
112
  });
121
113
  CardTitle.displayName = "Card.Title";
122
114
 
123
115
  // Card Description component
124
- const CardDescription = forwardRef<TextRef, HeroCardDescriptionProps>((props, ref) => {
125
- return <HeroCardDescription ref={ref} {...props} />;
116
+ const CardDescription = forwardRef<TextRef, CardDescriptionProps>((props, ref) => {
117
+ return <HeroCard.Description ref={ref} {...props} />;
126
118
  });
127
119
  CardDescription.displayName = "Card.Description";
128
120
 
@@ -135,12 +127,4 @@ export const Card = Object.assign(CardRoot, {
135
127
  Description: CardDescription,
136
128
  });
137
129
 
138
- // Re-export types for convenience
139
- export type {
140
- HeroCardProps as CardProps,
141
- HeroCardHeaderProps as CardHeaderProps,
142
- HeroCardBodyProps as CardBodyProps,
143
- HeroCardFooterProps as CardFooterProps,
144
- HeroCardTitleProps as CardTitleProps,
145
- HeroCardDescriptionProps as CardDescriptionProps,
146
- };
130
+ export type { CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, CardTitleProps, CardDescriptionProps };