@devup-ui/react 0.1.0 → 0.1.2
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/dist/components/Box.d.ts +1 -1
- package/dist/components/Box.d.ts.map +1 -1
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Center.d.ts +1 -1
- package/dist/components/Center.d.ts.map +1 -1
- package/dist/components/Flex.d.ts +1 -1
- package/dist/components/Flex.d.ts.map +1 -1
- package/dist/components/Image.cjs +1 -0
- package/dist/components/Image.d.ts +4 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/Image.js +6 -0
- package/dist/components/Input.d.ts +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Text.d.ts +1 -1
- package/dist/components/Text.d.ts.map +1 -1
- package/dist/components/VStack.d.ts +1 -1
- package/dist/components/VStack.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -6
- package/package.json +10 -6
package/dist/components/Box.d.ts
CHANGED
|
@@ -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<
|
|
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,
|
|
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<
|
|
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,
|
|
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<
|
|
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,
|
|
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<
|
|
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,
|
|
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 @@
|
|
|
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"}
|
|
@@ -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<
|
|
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,
|
|
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<
|
|
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,
|
|
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<
|
|
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,
|
|
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/
|
|
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';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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
|
|
3
|
+
import { Center as p } from "./components/Center.js";
|
|
4
4
|
import { Flex as n } from "./components/Flex.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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
|
-
|
|
13
|
+
p as Center,
|
|
13
14
|
n as Flex,
|
|
14
|
-
|
|
15
|
-
|
|
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,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devup-ui/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"csstype": "^3.1"
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
8
7
|
},
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"main": "./dist/index.cjs",
|
|
10
|
+
"module": "./dist/index.js",
|
|
9
11
|
"exports": {
|
|
10
12
|
".": {
|
|
11
13
|
"import": "./dist/index.js",
|
|
@@ -16,6 +18,10 @@
|
|
|
16
18
|
"dist"
|
|
17
19
|
],
|
|
18
20
|
"types": "./dist/index.d.ts",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"react": "^19.0",
|
|
23
|
+
"csstype": "^3.1"
|
|
24
|
+
},
|
|
19
25
|
"devDependencies": {
|
|
20
26
|
"vite": "^6.0.7",
|
|
21
27
|
"vite-plugin-dts": "^4.4.0",
|
|
@@ -28,8 +34,6 @@
|
|
|
28
34
|
"csstype": "*"
|
|
29
35
|
},
|
|
30
36
|
"scripts": {
|
|
31
|
-
"test": "vitest run --coverage",
|
|
32
|
-
"test:s": "vitest run -u",
|
|
33
37
|
"lint": "eslint",
|
|
34
38
|
"build": "vite build"
|
|
35
39
|
}
|