@starasia/card 2.0.0 → 3.0.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/card.es.js +12 -12
- package/dist/card.umd.js +7 -7
- package/package.json +6 -6
package/dist/card.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
const e = `:root {
|
|
3
3
|
--sa-card-radius: var(--sa-radii-md, 0.5rem);
|
|
4
4
|
--sa-card-bg: var(--sa-background-primary, #ffffff);
|
|
5
5
|
--sa-card-border: var(--sa-border-subtle, #0b120e24);
|
|
6
|
-
--sa-card-shadow: var(--sa-shadow-card, 0px 4px 35px 0px
|
|
6
|
+
--sa-card-shadow: var(--sa-shadow-card, 0px 4px 35px 0px #7090b040);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.
|
|
9
|
+
.sa-card {
|
|
10
10
|
border-radius: var(--sa-card-radius);
|
|
11
11
|
background-color: var(--sa-card-bg);
|
|
12
12
|
border: var(--sa-border, 1px) solid var(--sa-card-border);
|
|
@@ -14,28 +14,28 @@ const e = `:root {
|
|
|
14
14
|
width: max-content;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.
|
|
17
|
+
.sa-card-header {
|
|
18
18
|
padding: var(--sa-spacing-lg, 1rem);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.
|
|
21
|
+
.sa-card-body {
|
|
22
22
|
padding: var(--sa-spacing-lg, 1rem);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
.sa-card-footer {
|
|
26
26
|
padding: var(--sa-spacing-lg, 1rem);
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
29
|
-
if (!document.getElementById(
|
|
28
|
+
`, s = "sa-card-styles", n = (r) => {
|
|
29
|
+
if (!document.getElementById(s)) {
|
|
30
30
|
const a = document.createElement("style");
|
|
31
|
-
a.id =
|
|
31
|
+
a.id = s, a.textContent = r, document.head.appendChild(a);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
n(e);
|
|
35
|
-
const o = ({ children: r, style: a }) => /* @__PURE__ */
|
|
35
|
+
const o = ({ children: r, style: a }) => /* @__PURE__ */ d("div", { className: "sa-card", style: { ...a }, children: r }), c = ({ children: r, style: a }) => /* @__PURE__ */ d("div", { className: "sa-card-header", style: { ...a }, children: r }), l = ({ children: r, style: a }) => /* @__PURE__ */ d("div", { className: "sa-card-body", style: { ...a }, children: r }), i = ({ children: r, style: a }) => /* @__PURE__ */ d("div", { className: "sa-card-footer", style: { ...a }, children: r });
|
|
36
36
|
export {
|
|
37
37
|
o as Card,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
l as CardBody,
|
|
39
|
+
i as CardFooter,
|
|
40
40
|
c as CardHeader
|
|
41
41
|
};
|
package/dist/card.umd.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(e,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],d):(e=typeof globalThis<"u"?globalThis:e||self,d(e.Card={},e.jsxRuntime))})(this,function(e,d){"use strict";const n=`:root {
|
|
2
2
|
--sa-card-radius: var(--sa-radii-md, 0.5rem);
|
|
3
3
|
--sa-card-bg: var(--sa-background-primary, #ffffff);
|
|
4
4
|
--sa-card-border: var(--sa-border-subtle, #0b120e24);
|
|
5
|
-
--sa-card-shadow: var(--sa-shadow-card, 0px 4px 35px 0px
|
|
5
|
+
--sa-card-shadow: var(--sa-shadow-card, 0px 4px 35px 0px #7090b040);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
8
|
+
.sa-card {
|
|
9
9
|
border-radius: var(--sa-card-radius);
|
|
10
10
|
background-color: var(--sa-card-bg);
|
|
11
11
|
border: var(--sa-border, 1px) solid var(--sa-card-border);
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
width: max-content;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.
|
|
16
|
+
.sa-card-header {
|
|
17
17
|
padding: var(--sa-spacing-lg, 1rem);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
20
|
+
.sa-card-body {
|
|
21
21
|
padding: var(--sa-spacing-lg, 1rem);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.sa-card-footer {
|
|
25
25
|
padding: var(--sa-spacing-lg, 1rem);
|
|
26
26
|
}
|
|
27
|
-
`,s="
|
|
27
|
+
`,s="sa-card-styles";(r=>{if(!document.getElementById(s)){const a=document.createElement("style");a.id=s,a.textContent=r,document.head.appendChild(a)}})(n);const t=({children:r,style:a})=>d.jsx("div",{className:"sa-card",style:{...a},children:r}),o=({children:r,style:a})=>d.jsx("div",{className:"sa-card-header",style:{...a},children:r}),c=({children:r,style:a})=>d.jsx("div",{className:"sa-card-body",style:{...a},children:r}),i=({children:r,style:a})=>d.jsx("div",{className:"sa-card-footer",style:{...a},children:r});e.Card=t,e.CardBody=c,e.CardFooter=i,e.CardHeader=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starasia/card",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Card component for starasia UI",
|
|
5
5
|
"author": "Prawito Hudoro",
|
|
6
6
|
"main": "dist/card.umd.js",
|
|
@@ -12,10 +12,6 @@
|
|
|
12
12
|
"dist/*.map",
|
|
13
13
|
"dist/*.css"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "vite --config vite.config.ts --port 3000",
|
|
17
|
-
"build": "vite build --config vite.config.ts"
|
|
18
|
-
},
|
|
19
15
|
"keywords": [],
|
|
20
16
|
"license": "ISC",
|
|
21
17
|
"type": "module",
|
|
@@ -37,5 +33,9 @@
|
|
|
37
33
|
"react-dom": "^18.2.0",
|
|
38
34
|
"@types/react": "^18.2.55",
|
|
39
35
|
"@types/react-dom": "^18.2.19"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"dev": "vite --config vite.config.ts --port 3000",
|
|
39
|
+
"build": "vite build --config vite.config.ts"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|