@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 CHANGED
@@ -1,4 +1,4 @@
1
- import { jsx as s } from "react/jsx-runtime";
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
- .starasia-card {
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
- .starasia-card-header {
17
+ .sa-card-header {
18
18
  padding: var(--sa-spacing-lg, 1rem);
19
19
  }
20
20
 
21
- .starasia-card-body {
21
+ .sa-card-body {
22
22
  padding: var(--sa-spacing-lg, 1rem);
23
23
  }
24
24
 
25
- .starasia-card-footer {
25
+ .sa-card-footer {
26
26
  padding: var(--sa-spacing-lg, 1rem);
27
27
  }
28
- `, d = "starasia-card-styles", n = (r) => {
29
- if (!document.getElementById(d)) {
28
+ `, s = "sa-card-styles", n = (r) => {
29
+ if (!document.getElementById(s)) {
30
30
  const a = document.createElement("style");
31
- a.id = d, a.textContent = r, document.head.appendChild(a);
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__ */ s("div", { className: "starasia-card", style: { ...a }, children: r }), c = ({ children: r, style: a }) => /* @__PURE__ */ s("div", { className: "starasia-card-header", style: { ...a }, children: r }), i = ({ children: r, style: a }) => /* @__PURE__ */ s("div", { className: "starasia-card-body", style: { ...a }, children: r }), l = ({ children: r, style: a }) => /* @__PURE__ */ s("div", { className: "starasia-card-footer", style: { ...a }, children: r });
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
- i as CardBody,
39
- l as CardFooter,
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(r,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],d):(r=typeof globalThis<"u"?globalThis:r||self,d(r.Card={},r.jsxRuntime))})(this,function(r,d){"use strict";const n=`:root {
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
- .starasia-card {
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
- .starasia-card-header {
16
+ .sa-card-header {
17
17
  padding: var(--sa-spacing-lg, 1rem);
18
18
  }
19
19
 
20
- .starasia-card-body {
20
+ .sa-card-body {
21
21
  padding: var(--sa-spacing-lg, 1rem);
22
22
  }
23
23
 
24
- .starasia-card-footer {
24
+ .sa-card-footer {
25
25
  padding: var(--sa-spacing-lg, 1rem);
26
26
  }
27
- `,s="starasia-card-styles";(e=>{if(!document.getElementById(s)){const a=document.createElement("style");a.id=s,a.textContent=e,document.head.appendChild(a)}})(n);const t=({children:e,style:a})=>d.jsx("div",{className:"starasia-card",style:{...a},children:e}),o=({children:e,style:a})=>d.jsx("div",{className:"starasia-card-header",style:{...a},children:e}),c=({children:e,style:a})=>d.jsx("div",{className:"starasia-card-body",style:{...a},children:e}),i=({children:e,style:a})=>d.jsx("div",{className:"starasia-card-footer",style:{...a},children:e});r.Card=t,r.CardBody=c,r.CardFooter=i,r.CardHeader=o,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})});
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": "2.0.1",
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",