@trading-game/design-intelligence-layer 0.17.0 → 0.17.1
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/README.md +8 -4
- package/dist/index.cjs +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/guides/design-system-guide/trading-game-ds-guide.md +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -456,7 +456,7 @@ function Alert(_a) {
|
|
|
456
456
|
}, props), {
|
|
457
457
|
children: [
|
|
458
458
|
iconColumn,
|
|
459
|
-
/* @__PURE__ */ jsx4("div", { className: "col-
|
|
459
|
+
/* @__PURE__ */ jsx4("div", { className: "col-start-2 row-start-1 min-w-0", children: body }),
|
|
460
460
|
/* @__PURE__ */ jsx4("div", { className: "col-start-3 row-start-1", children: closeButton }),
|
|
461
461
|
actions && actions.length > 0 ? /* @__PURE__ */ jsx4("div", { className: "col-span-3 col-start-2 row-start-2 mt-2 flex flex-wrap items-center justify-start gap-2", children: actions.slice(0, 2).map((node, i) => /* @__PURE__ */ jsx4(React.Fragment, { children: wrapAction(node, buttonVariant) }, i)) }) : null
|
|
462
462
|
]
|
|
@@ -821,9 +821,9 @@ function Badge(_a) {
|
|
|
821
821
|
import * as React2 from "react";
|
|
822
822
|
import { Gift, X as X2 } from "lucide-react";
|
|
823
823
|
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
824
|
-
var SURFACE_CLASSES = "w-full rounded-
|
|
824
|
+
var SURFACE_CLASSES = "w-full rounded-sm border border-primary/[0.16] bg-primary/[0.08] px-4 py-3.5";
|
|
825
825
|
function IconBadge({ glyph }) {
|
|
826
|
-
return /* @__PURE__ */ jsx9("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-
|
|
826
|
+
return /* @__PURE__ */ jsx9("span", { className: "inline-flex size-10 shrink-0 items-center justify-center rounded-xs bg-primary text-on-primary", children: glyph });
|
|
827
827
|
}
|
|
828
828
|
function Banner(_a) {
|
|
829
829
|
var _b = _a, {
|
|
@@ -933,7 +933,11 @@ function Banner(_a) {
|
|
|
933
933
|
"data-layout": "inline",
|
|
934
934
|
"data-clickable": isClickable ? "true" : void 0,
|
|
935
935
|
className: cn(
|
|
936
|
-
"grid
|
|
936
|
+
"grid gap-x-4",
|
|
937
|
+
// Single-line banners vertically-centre the row (icon + title);
|
|
938
|
+
// multi-line banners top-align so the leading icon sits next to
|
|
939
|
+
// the title instead of floating mid-body.
|
|
940
|
+
hasDescription ? "items-start" : "items-center",
|
|
937
941
|
gridCols,
|
|
938
942
|
rowTemplate,
|
|
939
943
|
SURFACE_CLASSES,
|
|
@@ -958,8 +962,10 @@ function Banner(_a) {
|
|
|
958
962
|
"data-layout": "card",
|
|
959
963
|
"data-clickable": isClickable ? "true" : void 0,
|
|
960
964
|
className: cn(
|
|
961
|
-
|
|
965
|
+
// Card layout is always multi-row — top-align the icon with the title.
|
|
966
|
+
"relative grid grid-cols-[auto_1fr] grid-rows-[auto_auto] items-start gap-x-4 gap-y-3",
|
|
962
967
|
SURFACE_CLASSES,
|
|
968
|
+
"pr-12",
|
|
963
969
|
clickableClasses,
|
|
964
970
|
className
|
|
965
971
|
)
|