@trading-game/design-intelligence-layer 0.8.9 → 0.9.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/AGENTS.md +6 -5
- package/README.md +20 -9
- package/dist/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/guides/brand-voice/trading-game-brand-voice.md +325 -0
- package/guides/design-system-guide/trading-game-ds-guide.md +48 -10
- package/guides/rules/design-system-consuming-project.mdc +21 -2
- package/package.json +1 -1
- package/src/styles.css +5 -5
- package/guides/tone-of-voice/trading-game-tone-of-voice-and-campaign-brief.md +0 -290
package/dist/index.js
CHANGED
|
@@ -178,7 +178,7 @@ import { cva as cva2 } from "class-variance-authority";
|
|
|
178
178
|
import { Slot } from "radix-ui";
|
|
179
179
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
180
180
|
var buttonVariants = cva2(
|
|
181
|
-
"inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-
|
|
181
|
+
"inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 active:opacity-60 disabled:pointer-events-none disabled:opacity-24 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 font-display font-bold",
|
|
182
182
|
{
|
|
183
183
|
variants: {
|
|
184
184
|
variant: {
|
|
@@ -227,7 +227,7 @@ function Button(_a) {
|
|
|
227
227
|
"data-variant": variant,
|
|
228
228
|
"data-size": size,
|
|
229
229
|
"data-loading": loading || void 0,
|
|
230
|
-
className: cn(buttonVariants({ variant, size, className }), loading && "pointer-events-none opacity-
|
|
230
|
+
className: cn(buttonVariants({ variant, size, className }), loading && "pointer-events-none opacity-24"),
|
|
231
231
|
"aria-busy": loading || void 0
|
|
232
232
|
}, props)
|
|
233
233
|
);
|
|
@@ -280,7 +280,7 @@ function AlertDialogContent(_a) {
|
|
|
280
280
|
"data-slot": "alert-dialog-content",
|
|
281
281
|
"data-size": size,
|
|
282
282
|
className: cn(
|
|
283
|
-
"group/alert-dialog-content fixed top-[50%] left-[50%] z-50 flex h-auto w-full max-w-[calc(100%-2rem)] flex-col translate-x-[-50%] translate-y-[-50%] gap-6 rounded-sm border border-border-subtle bg-
|
|
283
|
+
"group/alert-dialog-content fixed top-[50%] left-[50%] z-50 flex h-auto w-full max-w-[calc(100%-2rem)] flex-col translate-x-[-50%] translate-y-[-50%] gap-6 rounded-sm border border-border-subtle bg-prominent p-6 shadow-lg duration-base data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg",
|
|
284
284
|
className
|
|
285
285
|
)
|
|
286
286
|
}, props)
|
|
@@ -473,7 +473,7 @@ function AvatarBadge(_a) {
|
|
|
473
473
|
__spreadValues({
|
|
474
474
|
"data-slot": "avatar-badge",
|
|
475
475
|
className: cn(
|
|
476
|
-
"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-on-prominent-static-inverse ring-2 ring-
|
|
476
|
+
"absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-on-prominent-static-inverse ring-2 ring-prominent select-none",
|
|
477
477
|
"group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
|
|
478
478
|
"group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
|
|
479
479
|
"group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
|
|
@@ -490,7 +490,7 @@ function AvatarGroup(_a) {
|
|
|
490
490
|
__spreadValues({
|
|
491
491
|
"data-slot": "avatar-group",
|
|
492
492
|
className: cn(
|
|
493
|
-
"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-
|
|
493
|
+
"group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-prominent",
|
|
494
494
|
className
|
|
495
495
|
)
|
|
496
496
|
}, props)
|
|
@@ -507,7 +507,7 @@ function AvatarGroupCount(_a) {
|
|
|
507
507
|
__spreadValues({
|
|
508
508
|
"data-slot": "avatar-group-count",
|
|
509
509
|
className: cn(
|
|
510
|
-
"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-subtle text-sm text-on-subtle ring-2 ring-
|
|
510
|
+
"relative flex size-8 shrink-0 items-center justify-center rounded-full bg-subtle text-sm text-on-subtle ring-2 ring-prominent group-has-data-[size=sm]/avatar-group:size-6 group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=xl]/avatar-group:[width:var(--avatar-size-xl)] group-has-data-[size=xl]/avatar-group:[height:var(--avatar-size-xl)] [&>svg]:size-4 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=xl]/avatar-group:[&>svg]:size-6",
|
|
511
511
|
className
|
|
512
512
|
)
|
|
513
513
|
}, props)
|
|
@@ -713,7 +713,7 @@ function Calendar(_a) {
|
|
|
713
713
|
__spreadValues({
|
|
714
714
|
showOutsideDays,
|
|
715
715
|
className: cn(
|
|
716
|
-
"group/calendar bg-
|
|
716
|
+
"group/calendar bg-prominent p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
|
|
717
717
|
String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
|
|
718
718
|
String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
|
|
719
719
|
className
|
|
@@ -1481,7 +1481,7 @@ function Input(_a) {
|
|
|
1481
1481
|
type,
|
|
1482
1482
|
"data-slot": "input",
|
|
1483
1483
|
className: cn(
|
|
1484
|
-
"h-9 w-full min-w-0 rounded-sm border border-border-subtle bg-white/5 px-3 py-1 text-base text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-on-prominent-static-inverse file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-on-prominent placeholder:text-on-
|
|
1484
|
+
"h-9 w-full min-w-0 rounded-sm border border-border-subtle bg-white/5 px-3 py-1 text-base text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-on-prominent-static-inverse file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-on-prominent placeholder:text-on-subtle disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1485
1485
|
"focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08]",
|
|
1486
1486
|
className
|
|
1487
1487
|
)
|
|
@@ -1498,7 +1498,7 @@ function Textarea(_a) {
|
|
|
1498
1498
|
__spreadValues({
|
|
1499
1499
|
"data-slot": "textarea",
|
|
1500
1500
|
className: cn(
|
|
1501
|
-
"flex field-sizing-content min-h-16 w-full rounded-sm border border-border-subtle bg-white/5 px-3 py-2 text-base text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none placeholder:text-on-
|
|
1501
|
+
"flex field-sizing-content min-h-16 w-full rounded-sm border border-border-subtle bg-white/5 px-3 py-2 text-base text-on-prominent font-body shadow-xs transition-[color,box-shadow] outline-none placeholder:text-on-subtle focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/[0.08] disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm",
|
|
1502
1502
|
className
|
|
1503
1503
|
)
|
|
1504
1504
|
}, props)
|
|
@@ -2013,7 +2013,7 @@ function DialogContent(_a) {
|
|
|
2013
2013
|
__spreadProps(__spreadValues({
|
|
2014
2014
|
"data-slot": "dialog-content",
|
|
2015
2015
|
className: cn(
|
|
2016
|
-
"fixed top-[50%] left-[50%] z-50 flex h-auto w-full max-w-[calc(100%-2rem)] flex-col translate-x-[-50%] translate-y-[-50%] gap-6 rounded-sm border border-border-subtle bg-
|
|
2016
|
+
"fixed top-[50%] left-[50%] z-50 flex h-auto w-full max-w-[calc(100%-2rem)] flex-col translate-x-[-50%] translate-y-[-50%] gap-6 rounded-sm border border-border-subtle bg-prominent p-6 shadow-lg duration-base outline-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
|
|
2017
2017
|
className
|
|
2018
2018
|
)
|
|
2019
2019
|
}, props), {
|
|
@@ -2023,7 +2023,7 @@ function DialogContent(_a) {
|
|
|
2023
2023
|
DialogPrimitive.Close,
|
|
2024
2024
|
{
|
|
2025
2025
|
"data-slot": "dialog-close",
|
|
2026
|
-
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-
|
|
2026
|
+
className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-on-subtle [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2027
2027
|
children: [
|
|
2028
2028
|
/* @__PURE__ */ jsx19(XIcon2, {}),
|
|
2029
2029
|
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "Close" })
|
|
@@ -2551,7 +2551,7 @@ function DrawerContent(_a) {
|
|
|
2551
2551
|
__spreadProps(__spreadValues({
|
|
2552
2552
|
"data-slot": "drawer-content",
|
|
2553
2553
|
className: cn(
|
|
2554
|
-
"group/drawer-content fixed z-50 flex h-auto flex-col bg-
|
|
2554
|
+
"group/drawer-content fixed z-50 flex h-auto flex-col bg-prominent",
|
|
2555
2555
|
"data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=top]:border-border-subtle",
|
|
2556
2556
|
"data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=bottom]:border-border-subtle",
|
|
2557
2557
|
"data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:border-border-subtle data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
@@ -4066,7 +4066,7 @@ function NavigationMenuItem(_a) {
|
|
|
4066
4066
|
);
|
|
4067
4067
|
}
|
|
4068
4068
|
var navigationMenuTriggerStyle = cva9(
|
|
4069
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-
|
|
4069
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-prominent px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-secondary-hover hover:text-on-prominent focus:bg-secondary-hover focus:text-on-prominent focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-secondary-hover data-[state=open]:text-on-prominent data-[state=open]:hover:bg-secondary-hover data-[state=open]:focus:bg-secondary-hover"
|
|
4070
4070
|
);
|
|
4071
4071
|
function NavigationMenuTrigger(_a) {
|
|
4072
4072
|
var _b = _a, {
|
|
@@ -4776,7 +4776,7 @@ function SheetContent(_a) {
|
|
|
4776
4776
|
__spreadProps(__spreadValues({
|
|
4777
4777
|
"data-slot": "sheet-content",
|
|
4778
4778
|
className: cn(
|
|
4779
|
-
"fixed z-50 flex flex-col gap-4 bg-
|
|
4779
|
+
"fixed z-50 flex flex-col gap-4 bg-prominent shadow-lg transition ease-standard data-[state=closed]:animate-out data-[state=closed]:duration-slow data-[state=open]:animate-in data-[state=open]:duration-open",
|
|
4780
4780
|
side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l border-border-subtle data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",
|
|
4781
4781
|
side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r border-border-subtle data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
4782
4782
|
side === "top" && "inset-x-0 top-0 h-auto border-b border-border-subtle data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
@@ -4786,7 +4786,7 @@ function SheetContent(_a) {
|
|
|
4786
4786
|
}, props), {
|
|
4787
4787
|
children: [
|
|
4788
4788
|
children,
|
|
4789
|
-
showCloseButton && /* @__PURE__ */ jsxs20(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-
|
|
4789
|
+
showCloseButton && /* @__PURE__ */ jsxs20(SheetPrimitive.Close, { className: "absolute top-4 right-4 rounded-xs opacity-70 ring-offset-prominent transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
4790
4790
|
/* @__PURE__ */ jsx45(XIcon3, { className: "size-4" }),
|
|
4791
4791
|
/* @__PURE__ */ jsx45("span", { className: "sr-only", children: "Close" })
|
|
4792
4792
|
] })
|
|
@@ -5184,7 +5184,7 @@ function SidebarInset(_a) {
|
|
|
5184
5184
|
__spreadValues({
|
|
5185
5185
|
"data-slot": "sidebar-inset",
|
|
5186
5186
|
className: cn(
|
|
5187
|
-
"relative flex w-full flex-1 flex-col bg-
|
|
5187
|
+
"relative flex w-full flex-1 flex-col bg-prominent",
|
|
5188
5188
|
"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",
|
|
5189
5189
|
className
|
|
5190
5190
|
)
|
|
@@ -5202,7 +5202,7 @@ function SidebarInput(_a) {
|
|
|
5202
5202
|
__spreadValues({
|
|
5203
5203
|
"data-slot": "sidebar-input",
|
|
5204
5204
|
"data-sidebar": "input",
|
|
5205
|
-
className: cn("h-8 w-full bg-
|
|
5205
|
+
className: cn("h-8 w-full bg-prominent shadow-none", className)
|
|
5206
5206
|
}, props)
|
|
5207
5207
|
);
|
|
5208
5208
|
}
|
|
@@ -5357,7 +5357,7 @@ var sidebarMenuButtonVariants = cva10(
|
|
|
5357
5357
|
variants: {
|
|
5358
5358
|
variant: {
|
|
5359
5359
|
default: "",
|
|
5360
|
-
outline: "bg-
|
|
5360
|
+
outline: "bg-prominent ring-1 ring-sidebar-border hover:ring-primary/40 data-[active=true]:ring-primary/40"
|
|
5361
5361
|
},
|
|
5362
5362
|
size: {
|
|
5363
5363
|
default: "h-8 text-sm",
|
|
@@ -5998,14 +5998,14 @@ function TicketCard({
|
|
|
5998
5998
|
"div",
|
|
5999
5999
|
{
|
|
6000
6000
|
"aria-hidden": true,
|
|
6001
|
-
className: "pointer-events-none absolute right-0 top-0 z-10 size-5 -translate-y-1/2 translate-x-1/2 rounded-full bg-
|
|
6001
|
+
className: "pointer-events-none absolute right-0 top-0 z-10 size-5 -translate-y-1/2 translate-x-1/2 rounded-full bg-prominent"
|
|
6002
6002
|
}
|
|
6003
6003
|
),
|
|
6004
6004
|
/* @__PURE__ */ jsx55(
|
|
6005
6005
|
"div",
|
|
6006
6006
|
{
|
|
6007
6007
|
"aria-hidden": true,
|
|
6008
|
-
className: "pointer-events-none absolute bottom-0 right-0 z-10 size-5 translate-x-1/2 translate-y-1/2 rounded-full bg-
|
|
6008
|
+
className: "pointer-events-none absolute bottom-0 right-0 z-10 size-5 translate-x-1/2 translate-y-1/2 rounded-full bg-prominent"
|
|
6009
6009
|
}
|
|
6010
6010
|
),
|
|
6011
6011
|
/* @__PURE__ */ jsx55(
|