astrogators-shared-ui 0.12.0 → 0.13.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
CHANGED
|
@@ -719,7 +719,7 @@ var y = "astrogators_access_token", b = "astrogators_refresh_token", x = () => l
|
|
|
719
719
|
"padding-md": "_padding-md_1vw8g_43",
|
|
720
720
|
"padding-lg": "_padding-lg_1vw8g_47",
|
|
721
721
|
hoverable: "_hoverable_1vw8g_52"
|
|
722
|
-
}, de = ({ children: e, variant: t = "default", chamfered: n = !1, chamferSize: r = "md", padding: i = "md", hoverable: a = !1, showDiagonalBorders: l = !
|
|
722
|
+
}, de = ({ children: e, variant: t = "default", chamfered: n = !1, chamferSize: r = "md", padding: i = "md", hoverable: a = !1, showDiagonalBorders: l = !0, edgeColor: u, className: d = "", onClick: f, style: p }) => {
|
|
723
723
|
let m = n ? r === "asymmetric" ? "chamfered-box-asymmetric" : r === "sm" ? "chamfered-box-sm" : r === "lg" ? "chamfered-box-lg" : "chamfered-box" : "", h = u ?? (n ? "var(--color-border)" : void 0), g = h ? { color: h } : void 0, _ = h ? {
|
|
724
724
|
...p,
|
|
725
725
|
"--card-edge-color": h
|
|
@@ -730,7 +730,7 @@ var y = "astrogators_access_token", b = "astrogators_refresh_token", x = () => l
|
|
|
730
730
|
role: f ? "button" : void 0,
|
|
731
731
|
tabIndex: f ? 0 : void 0,
|
|
732
732
|
style: _,
|
|
733
|
-
children: [l && /* @__PURE__ */ c(o, { children: [
|
|
733
|
+
children: [n && l && /* @__PURE__ */ c(o, { children: [
|
|
734
734
|
/* @__PURE__ */ s("div", {
|
|
735
735
|
className: "chamfered-diagonal-border chamfered-diagonal-tl",
|
|
736
736
|
style: g
|
|
@@ -15,8 +15,11 @@ export interface CardProps {
|
|
|
15
15
|
*/
|
|
16
16
|
edgeColor?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Draw the 45deg lines across the chamfered corner cuts.
|
|
19
|
-
*
|
|
18
|
+
* Draw the 45deg lines across the chamfered corner cuts. Defaults to `true`
|
|
19
|
+
* for a chamfered card — a chamfered card finishes its cut corners with a
|
|
20
|
+
* line, always, so the outline reads as closed. Set `false` only to leave a
|
|
21
|
+
* deliberately bare cut. Ignored on a non-chamfered card. Always uses
|
|
22
|
+
* `edgeColor`; carries no colour of its own.
|
|
20
23
|
*/
|
|
21
24
|
showDiagonalBorders?: boolean;
|
|
22
25
|
className?: string;
|