@trading-game/design-intelligence-layer 0.9.8 → 0.9.9

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 CHANGED
@@ -122,7 +122,7 @@ npm install react react-dom tailwindcss
122
122
  | Hover Card | `HoverCard, HoverCardTrigger, HoverCardContent` |
123
123
  | Input | `Input` |
124
124
  | Input Group | `InputGroup, InputGroupAddon, InputGroupButton, InputGroupText` |
125
- | Input OTP | `InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator` |
125
+ | Input OTP | `InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator` — Variants: OTP 4 digits, OTP 6 digits, OTP 6 split, OTP 8 digits, OTP 6 separated |
126
126
  | Item | `Item, ItemMedia, ItemContent, ItemTitle, ItemDescription` |
127
127
  | Kbd | `Kbd, KbdGroup` |
128
128
  | Label | `Label` |
@@ -543,3 +543,13 @@ Design tokens are managed in Figma and exported as CSS variables. To update:
543
543
  - **shadcn/ui** (New York style) — base component primitives
544
544
  - **Radix UI** — accessible headless primitives
545
545
  - **Figma** — source of truth for design tokens
546
+
547
+ ---
548
+
549
+ ## Changelog
550
+
551
+ ### v0.9.9
552
+ - **Demo app — responsive mobile layout:** The component playground is now fully mobile-friendly. Foundations / Components / Blocks navigation moves to a fixed bottom tab bar on mobile. A hamburger menu opens a slide-in Sheet to pick any component within the active tab. The desktop sidebar and inline tab switcher are unchanged.
553
+ - **Sonner toast — mobile-aware behaviour:** Toasts now appear at `top-center` on mobile (single visible toast) and `bottom-right` on desktop (up to 3). Added custom token-based styling (`--on-prominent` background, inverse text, `font-display` title).
554
+ - **Toaster registered in root layout:** `<Toaster />` is now mounted in `app/layout.tsx` so toast notifications work globally.
555
+ - **InputOTP docs:** README and design-system guide updated with full variant listing — OTP 4 digits, OTP 6 digits, OTP 6 split, OTP 8 digits, OTP 6 separated.
package/dist/index.cjs CHANGED
@@ -6118,11 +6118,15 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
6118
6118
  var Toaster = (_a) => {
6119
6119
  var props = __objRest(_a, []);
6120
6120
  const { theme = "system" } = (0, import_next_themes.useTheme)();
6121
+ const isMobile = useIsMobile();
6121
6122
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
6122
6123
  import_sonner.Toaster,
6123
6124
  __spreadValues({
6124
6125
  theme,
6125
6126
  className: "toaster group",
6127
+ position: isMobile ? "top-center" : "bottom-right",
6128
+ visibleToasts: isMobile ? 1 : 3,
6129
+ duration: 4e3,
6126
6130
  icons: {
6127
6131
  success: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.CircleCheckIcon, { className: "size-4" }),
6128
6132
  info: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.InfoIcon, { className: "size-4" }),
@@ -6130,10 +6134,18 @@ var Toaster = (_a) => {
6130
6134
  error: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.OctagonXIcon, { className: "size-4" }),
6131
6135
  loading: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_lucide_react21.Loader2Icon, { className: "size-4 animate-spin" })
6132
6136
  },
6137
+ toastOptions: {
6138
+ classNames: {
6139
+ toast: "!bg-[var(--on-prominent)] !border-none",
6140
+ title: "!text-[var(--on-prominent-static-inverse)] !font-display !font-bold",
6141
+ description: "!text-[var(--on-prominent-static-inverse)] !opacity-60 !font-body",
6142
+ actionButton: "!bg-[var(--primary)] !text-[var(--on-prominent-static-inverse)]"
6143
+ }
6144
+ },
6133
6145
  style: {
6134
- "--normal-bg": "var(--popover)",
6135
- "--normal-text": "var(--popover-foreground)",
6136
- "--normal-border": "var(--border)",
6146
+ "--normal-bg": "var(--on-prominent)",
6147
+ "--normal-text": "var(--on-prominent-static-inverse)",
6148
+ "--normal-border": "transparent",
6137
6149
  "--border-radius": "var(--radius)"
6138
6150
  }
6139
6151
  }, props)