@cere/cere-design-system 0.0.44 → 0.0.45
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.d.mts +20 -3
- package/dist/index.d.ts +20 -3
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -11
- package/dist/index.mjs.map +1 -1
- package/dist/tokens.css +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -258,7 +258,12 @@ var webSurfaceTokens = {
|
|
|
258
258
|
bgSuccess: "#eef5f0",
|
|
259
259
|
bgWarning: "#fef8e8",
|
|
260
260
|
bgDanger: "#f9dedc",
|
|
261
|
-
|
|
261
|
+
/**
|
|
262
|
+
* Foreground text/icon color for content sitting ON a `bgDanger` surface.
|
|
263
|
+
* NOT a surface color itself — do not use as backgroundColor. Pair with
|
|
264
|
+
* `bgDanger` for the canonical danger alert look.
|
|
265
|
+
*/
|
|
266
|
+
textOnDanger: "#8c1d18",
|
|
262
267
|
// Text
|
|
263
268
|
textPrimary: "#1d1b20",
|
|
264
269
|
textSecondary: "#5f5c64",
|
|
@@ -2388,7 +2393,7 @@ var Card = ({
|
|
|
2388
2393
|
children,
|
|
2389
2394
|
...props
|
|
2390
2395
|
}) => {
|
|
2391
|
-
const asButton = typeof onClick === "function";
|
|
2396
|
+
const asButton = clickable && typeof onClick === "function";
|
|
2392
2397
|
return /* @__PURE__ */ jsx8(
|
|
2393
2398
|
StyledCard,
|
|
2394
2399
|
{
|
|
@@ -2491,7 +2496,7 @@ var CopyableField = ({
|
|
|
2491
2496
|
}
|
|
2492
2497
|
}, [value, onCopy, flashDurationMs]);
|
|
2493
2498
|
return /* @__PURE__ */ jsxs(Card, { variant: "tinted", sx: { p: 1.75 }, children: [
|
|
2494
|
-
|
|
2499
|
+
/* @__PURE__ */ jsxs(
|
|
2495
2500
|
Box,
|
|
2496
2501
|
{
|
|
2497
2502
|
sx: {
|
|
@@ -2499,11 +2504,12 @@ var CopyableField = ({
|
|
|
2499
2504
|
alignItems: "center",
|
|
2500
2505
|
justifyContent: "space-between",
|
|
2501
2506
|
gap: 1,
|
|
2502
|
-
mb: "6px"
|
|
2507
|
+
mb: label || copied ? "6px" : 0,
|
|
2508
|
+
minHeight: label || copied ? void 0 : 0
|
|
2503
2509
|
},
|
|
2504
2510
|
children: [
|
|
2505
2511
|
label ? /* @__PURE__ */ jsx9(Typography, { variant: "overline", children: label }) : /* @__PURE__ */ jsx9("span", {}),
|
|
2506
|
-
|
|
2512
|
+
/* @__PURE__ */ jsx9(FlashLabel, { role: "status", "aria-live": "polite", "aria-atomic": "true", children: copied ? flashLabel : "" })
|
|
2507
2513
|
]
|
|
2508
2514
|
}
|
|
2509
2515
|
),
|
|
@@ -6463,10 +6469,9 @@ function Carousel({
|
|
|
6463
6469
|
position: "absolute",
|
|
6464
6470
|
top: "50%",
|
|
6465
6471
|
transform: "translateY(-50%)",
|
|
6466
|
-
bgcolor: "
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
"&:hover": { bgcolor: "rgba(255,255,255,0.12)" }
|
|
6472
|
+
bgcolor: "background.paper",
|
|
6473
|
+
boxShadow: 1,
|
|
6474
|
+
"&:hover": { bgcolor: "background.paper" }
|
|
6470
6475
|
};
|
|
6471
6476
|
return /* @__PURE__ */ jsxs29(
|
|
6472
6477
|
Box22,
|
|
@@ -6493,7 +6498,7 @@ function Carousel({
|
|
|
6493
6498
|
{
|
|
6494
6499
|
"aria-label": "Previous slide",
|
|
6495
6500
|
onClick: () => emblaApi?.scrollPrev(),
|
|
6496
|
-
sx: [arrowBaseSx, { left:
|
|
6501
|
+
sx: [arrowBaseSx, { left: 8 }, ...Array.isArray(arrowSx) ? arrowSx : [arrowSx]],
|
|
6497
6502
|
children: /* @__PURE__ */ jsx55(ChevronLeftIcon3, {})
|
|
6498
6503
|
}
|
|
6499
6504
|
),
|
|
@@ -6502,7 +6507,7 @@ function Carousel({
|
|
|
6502
6507
|
{
|
|
6503
6508
|
"aria-label": "Next slide",
|
|
6504
6509
|
onClick: () => emblaApi?.scrollNext(),
|
|
6505
|
-
sx: [arrowBaseSx, { right:
|
|
6510
|
+
sx: [arrowBaseSx, { right: 8 }, ...Array.isArray(arrowSx) ? arrowSx : [arrowSx]],
|
|
6506
6511
|
children: /* @__PURE__ */ jsx55(ChevronRightIcon3, {})
|
|
6507
6512
|
}
|
|
6508
6513
|
)
|