@starasia/card 2.0.1 → 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 +11 -11
- package/dist/card.umd.js +6 -6
- package/package.json +1 -1
package/dist/card.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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);
|
|
@@ -6,7 +6,7 @@ const e = `:root {
|
|
|
6
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
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"})});
|