@mijn-ui/react-card 0.3.0 → 0.4.0
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/index.js +8 -7
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
// src/card.tsx
|
|
4
4
|
import {
|
|
5
|
+
cn,
|
|
5
6
|
createContext,
|
|
6
7
|
createTVUnstyledSlots,
|
|
7
8
|
useTVUnstyled
|
|
8
9
|
} from "@mijn-ui/react-core";
|
|
9
|
-
import {
|
|
10
|
+
import { tv } from "tailwind-variants";
|
|
10
11
|
import { jsx } from "react/jsx-runtime";
|
|
11
12
|
var cardStyles = tv({
|
|
12
13
|
slots: {
|
|
@@ -40,7 +41,7 @@ var Card = ({
|
|
|
40
41
|
"div",
|
|
41
42
|
{
|
|
42
43
|
className: base({
|
|
43
|
-
className:
|
|
44
|
+
className: cn(classNames?.base, className)
|
|
44
45
|
}),
|
|
45
46
|
...props
|
|
46
47
|
}
|
|
@@ -52,7 +53,7 @@ var CardHeader = ({ className, unstyled, ...props }) => {
|
|
|
52
53
|
"div",
|
|
53
54
|
{
|
|
54
55
|
className: header({
|
|
55
|
-
className:
|
|
56
|
+
className: cn(classNames?.header, className)
|
|
56
57
|
}),
|
|
57
58
|
...props
|
|
58
59
|
}
|
|
@@ -64,7 +65,7 @@ var CardTitle = ({ className, unstyled, ...props }) => {
|
|
|
64
65
|
"div",
|
|
65
66
|
{
|
|
66
67
|
className: title({
|
|
67
|
-
className:
|
|
68
|
+
className: cn(classNames?.title, className)
|
|
68
69
|
}),
|
|
69
70
|
...props
|
|
70
71
|
}
|
|
@@ -80,7 +81,7 @@ var CardDescription = ({
|
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
82
83
|
className: description({
|
|
83
|
-
className:
|
|
84
|
+
className: cn(classNames?.description, className)
|
|
84
85
|
}),
|
|
85
86
|
...props
|
|
86
87
|
}
|
|
@@ -92,7 +93,7 @@ var CardContent = ({ className, unstyled, ...props }) => {
|
|
|
92
93
|
"div",
|
|
93
94
|
{
|
|
94
95
|
className: content({
|
|
95
|
-
className:
|
|
96
|
+
className: cn(classNames?.content, className)
|
|
96
97
|
}),
|
|
97
98
|
...props
|
|
98
99
|
}
|
|
@@ -104,7 +105,7 @@ var CardFooter = ({ className, unstyled, ...props }) => {
|
|
|
104
105
|
"div",
|
|
105
106
|
{
|
|
106
107
|
className: footer({
|
|
107
|
-
className:
|
|
108
|
+
className: cn(classNames?.footer, className)
|
|
108
109
|
}),
|
|
109
110
|
...props
|
|
110
111
|
}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/card.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/card.tsx":{"bytes":5775,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":23,"imports":[{"path":"src/card.tsx","kind":"import-statement","original":"./card"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"@mijn-ui/react-core","kind":"import-statement","external":true},{"path":"tailwind-variants","kind":"import-statement","external":true},{"path":"react/jsx-runtime","kind":"import-statement","external":true}],"exports":["Card","CardContent","CardDescription","CardFooter","CardHeader","CardTitle","cardStyles","useCardStyles"],"entryPoint":"src/index.ts","inputs":{"src/card.tsx":{"bytesInOutput":2828},"src/index.ts":{"bytesInOutput":0}},"bytes":2984}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mijn-ui/react-card",
|
|
3
3
|
"author": "Htet Aung Lin<htetaunglin.coder@gmail.com>",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"homepage": "https://mijn-ui.vercel.app",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"@types/react-dom": "^19.0.0",
|
|
26
26
|
"react": "19.0.0",
|
|
27
27
|
"react-dom": "19.0.0",
|
|
28
|
-
"@mijn-ui/react-button": "0.
|
|
29
|
-
"@mijn-ui/react-core": "0.
|
|
28
|
+
"@mijn-ui/react-button": "0.4.0",
|
|
29
|
+
"@mijn-ui/react-core": "0.4.0",
|
|
30
30
|
"eslint-config-custom": "0.0.1",
|
|
31
31
|
"tsconfig": "0.0.0",
|
|
32
32
|
"tsup-config": "0.0.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@mijn-ui/react-core": "^0.
|
|
36
|
+
"@mijn-ui/react-core": "^0.4.0",
|
|
37
37
|
"tailwind-merge": "^3.0.0",
|
|
38
38
|
"tailwind-variants": "^3.0.0",
|
|
39
39
|
"react": "^19.0",
|