@devup-ui/react 0.1.0 → 0.1.1

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.
@@ -1,4 +1,4 @@
1
1
  import { DevupProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Box(props: Merge<React.ComponentProps<'div'>, DevupProps>): React.ReactElement;
3
+ export declare function Box<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
4
  //# sourceMappingURL=Box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,GAAG,CAEjB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAErD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
1
  import { DevupProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Button(props: Merge<React.ComponentProps<'button'>, DevupProps>): React.ReactElement;
3
+ export declare function Button<T extends React.ElementType = 'button'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
4
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAEpB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,GACvD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAE3D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
1
  import { DevupProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Center(props: Merge<React.ComponentProps<'div'>, DevupProps>): React.ReactElement;
3
+ export declare function Center<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
4
  //# sourceMappingURL=Center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/components/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAEpB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/components/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAExD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
1
  import { DevupProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Flex(props: Merge<React.ComponentProps<'div'>, DevupProps>): React.ReactElement;
3
+ export declare function Flex<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
4
  //# sourceMappingURL=Flex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../src/components/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAElB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../src/components/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEtD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(r){throw new Error("Cannot run on the runtime")}exports.Image=e;
@@ -0,0 +1,4 @@
1
+ import { DevupProps } from '../types/props';
2
+ import { Merge } from '../types/utils';
3
+ export declare function Image<T extends React.ElementType = 'img'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
+ //# sourceMappingURL=Image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEvD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
@@ -0,0 +1,6 @@
1
+ function r(n) {
2
+ throw new Error("Cannot run on the runtime");
3
+ }
4
+ export {
5
+ r as Image
6
+ };
@@ -1,4 +1,4 @@
1
1
  import { DevupProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Input(props: Merge<React.ComponentProps<'input'>, DevupProps>): React.ReactElement;
3
+ export declare function Input<T extends React.ElementType = 'input'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
4
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAEnB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,GACtD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,EAEzD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
1
  import { DevupTypographyProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Text(props: Merge<React.ComponentProps<'span'>, DevupTypographyProps>): React.ReactElement;
3
+ export declare function Text<T extends React.ElementType = 'span'>(props: Merge<React.ComponentProps<T>, DevupTypographyProps>): React.ReactElement;
4
4
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAElB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC,GAC/D,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAEvD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,oBAAoB,CAAC,GAC1D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
1
  import { DevupProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function VStack(props: Merge<React.ComponentProps<'div'>, DevupProps>): React.ReactElement;
3
+ export declare function VStack<T extends React.ElementType = 'span'>(props: Merge<React.ComponentProps<T>, DevupProps>): React.ReactElement;
4
4
  //# sourceMappingURL=VStack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../src/components/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAEpB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GACpD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../src/components/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAEzD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAChD,KAAK,CAAC,YAAY,CAEpB"}
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/Box.cjs"),t=require("./components/Button.cjs"),r=require("./components/Center.cjs"),n=require("./components/Flex.cjs"),o=require("./components/Input.cjs"),u=require("./components/Text.cjs"),c=require("./components/VStack.cjs"),s=require("./utils/css.cjs");exports.Box=e.Box;exports.Button=t.Button;exports.Center=r.Center;exports.Flex=n.Flex;exports.Input=o.Input;exports.Text=u.Text;exports.VStack=c.VStack;exports.css=s.css;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/Box.cjs"),t=require("./components/Button.cjs"),r=require("./components/Center.cjs"),n=require("./components/Flex.cjs"),o=require("./components/Image.cjs"),u=require("./components/Input.cjs"),c=require("./components/Text.cjs"),s=require("./components/VStack.cjs"),i=require("./utils/css.cjs");exports.Box=e.Box;exports.Button=t.Button;exports.Center=r.Center;exports.Flex=n.Flex;exports.Image=o.Image;exports.Input=u.Input;exports.Text=c.Text;exports.VStack=s.VStack;exports.css=i.css;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { Box } from './components/Box';
2
2
  export { Button } from './components/Button';
3
3
  export { Center } from './components/Center';
4
4
  export { Flex } from './components/Flex';
5
+ export { Image } from './components/Image';
5
6
  export { Input } from './components/Input';
6
7
  export { Text } from './components/Text';
7
8
  export { VStack } from './components/VStack';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA"}
package/dist/index.js CHANGED
@@ -1,18 +1,20 @@
1
1
  import { Box as t } from "./components/Box.js";
2
2
  import { Button as x } from "./components/Button.js";
3
- import { Center as f } from "./components/Center.js";
3
+ import { Center as p } from "./components/Center.js";
4
4
  import { Flex as n } from "./components/Flex.js";
5
- import { Input as s } from "./components/Input.js";
6
- import { Text as B } from "./components/Text.js";
5
+ import { Image as c } from "./components/Image.js";
6
+ import { Input as u } from "./components/Input.js";
7
+ import { Text as I } from "./components/Text.js";
7
8
  import { VStack as k } from "./components/VStack.js";
8
9
  import { css as C } from "./utils/css.js";
9
10
  export {
10
11
  t as Box,
11
12
  x as Button,
12
- f as Center,
13
+ p as Center,
13
14
  n as Flex,
14
- s as Input,
15
- B as Text,
15
+ c as Image,
16
+ u as Input,
17
+ I as Text,
16
18
  k as VStack,
17
19
  C as css
18
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devup-ui/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "react": "^19.0",
@@ -28,8 +28,6 @@
28
28
  "csstype": "*"
29
29
  },
30
30
  "scripts": {
31
- "test": "vitest run --coverage",
32
- "test:s": "vitest run -u",
33
31
  "lint": "eslint",
34
32
  "build": "vite build"
35
33
  }