@dereekb/dbx-components-mcp 13.11.18 → 13.12.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.
@@ -533,6 +533,26 @@
533
533
  "dbx-flex-bar"
534
534
  ]
535
535
  },
536
+ {
537
+ "slug": "card-banner",
538
+ "selector": ".dbx-card-banner",
539
+ "source": "@dereekb/dbx-web",
540
+ "module": "@dereekb/dbx-web",
541
+ "file": "src/lib/layout/card/_card.scss",
542
+ "line": 24,
543
+ "declarations": [],
544
+ "role": "layout",
545
+ "intent": "banner-style `<mat-card>` — pair with `[dbxColor]` (+ `[dbxColorTone]`) for the tonal surface. Drop `<mat-card-header>` entirely; put the icon + `<mat-card-title>` row inside `<mat-card-content>` via a `.dbx-card-banner-header` child, and the action buttons inside `<mat-card-footer>`.",
546
+ "seeAlso": [
547
+ "color",
548
+ "color-tonal",
549
+ "button-wrap-group"
550
+ ],
551
+ "tokensRead": [
552
+ "--dbx-padding-2",
553
+ "--dbx-padding-3"
554
+ ]
555
+ },
536
556
  {
537
557
  "slug": "chip",
538
558
  "selector": ".dbx-chip",
@@ -254,6 +254,27 @@
254
254
  }
255
255
  ]
256
256
  },
257
+ {
258
+ "slug": "card-support-chat-banner",
259
+ "category": "card",
260
+ "summary": "Outlined mat-card status banner with `[dbxColor]` + `[dbxColorTone]` painting the tonal background. The `.dbx-card-banner` utility lays out a `.dbx-card-banner-header` row inside `<mat-card-content>` (skipping mat-card-header) pairing a vibrant-colored `<dbx-icon-tile [round]>` avatar with a `<mat-card-title>` plus a `<mat-card-footer>` wrap-row of action buttons — toggles between an active-chat (notice) and ending-chat (warn) variant.",
261
+ "header": "Support Chat Banner Card",
262
+ "className": "DocSupportBannerCardExampleComponent",
263
+ "selector": "doc-support-banner-card-example",
264
+ "module": "apps/demo",
265
+ "appRef": "apps/demo",
266
+ "hint": "Outlined mat-card with [dbxColor] tonal background, mat-card-header icon + title, content body, and a footer action row.",
267
+ "relatedSlugs": [
268
+ "mat-card",
269
+ "dbx-card-banner",
270
+ "dbx-icon-tile",
271
+ "dbx-color",
272
+ "dbx-button"
273
+ ],
274
+ "info": "<p>\n Reimplements the \"you're already in a chat\" / \"your chat is wrapping up\" status banner from a downstream support page using stock Material card slots plus dbx-web color theming. The host is\n <code>&lt;mat-card class=\"dbx-card-banner\" appearance=\"outlined\" [dbxColor]=\"view.color\" [dbxColorTone]=\"18\"&gt;</code>\n . The dbx-web card stylesheet contributes two pieces here: a generic\n <code>mat-card.dbx-color</code>\n rule that re-emits the dbx-color background paint at higher specificity than MDC's\n <code>.mat-mdc-card</code>\n background-color (so the tonal wash actually shows through every appearance variant), and the\n <code>.dbx-card-banner</code>\n utility that centers an\n <code>&lt;mat-icon mat-card-avatar&gt;</code>\n and turns\n <code>&lt;mat-card-footer&gt;</code>\n into a wrapping action row.\n</p>\n<p>\n <code>&lt;mat-card-header&gt;</code>\n is dropped on purpose — its default padding made the banner feel tall. Instead a\n <code>&lt;dbx-icon-tile&gt;</code>\n +\n <code>&lt;mat-card-title&gt;</code>\n row lives inside\n <code>&lt;mat-card-content&gt;</code>\n via a\n <code>.dbx-card-banner-header</code>\n child (centered flex row, gap from\n <code>--dbx-padding-3</code>\n ), the body paragraph follows directly underneath, and the action buttons live in\n <code>&lt;mat-card-footer&gt;</code>\n . The icon tile passes\n <code>[dbxColor]=\"view.color\"</code>\n with\n <code>[round]=\"true\"</code>\n so it renders as a solid circular avatar in the vibrant theme color, popping out of the tonal banner without any per-component CSS. The\n <code>.dbx-card-banner</code>\n utility supplies the header-row flex and the footer wrap-row spacing + padding. The toggle controls at the top reuse the existing\n <code>.dbx-button-wrap-group</code>\n utility.\n</p>\n<p>\n The \"Open chat\" action passes\n <code>[color]=\"view.color\"</code>\n so its label tracks the banner's vibrant color while keeping a transparent background that lets the tonal wash show through; \"Dismiss\" stays as a basic\n <code>&lt;dbx-button&gt;</code>\n . Action clicks pop a\n <code>MatSnackBar</code>\n so the demo proves the wiring without depending on routing or chat infrastructure.\n</p>\n<p>\n The\n <code>kindSignal</code>\n swaps the entire view between the two presets without re-templating, modelling the real-world pattern where the banner is driven by a derived store selector.\n</p>",
275
+ "snippet": "<div class=\"dbx-button-wrap-group dbx-mb3\">\n <button mat-stroked-button (click)=\"setKind('activeChat')\" [disabled]=\"kindSignal() === 'activeChat'\">Show active chat</button>\n <button mat-stroked-button (click)=\"setKind('endedChat')\" [disabled]=\"kindSignal() === 'endedChat'\">Show ending chat</button>\n</div>\n@if (viewSignal(); as view) {\n <mat-card class=\"dbx-card-banner\" appearance=\"outlined\" role=\"status\" [dbxColor]=\"view.color\" [dbxColorTone]=\"18\">\n <mat-card-content>\n <div class=\"dbx-card-banner-header\">\n <dbx-icon-tile [icon]=\"view.icon\" [round]=\"true\" [dbxColor]=\"view.color\"></dbx-icon-tile>\n <mat-card-title>{{ view.title }}</mat-card-title>\n </div>\n <p>{{ view.text }}</p>\n </mat-card-content>\n <mat-card-footer>\n <dbx-button [color]=\"view.color\" text=\"Open chat\" icon=\"chat_bubble\" (buttonClick)=\"resumeChat()\"></dbx-button>\n <dbx-button text=\"Dismiss\" (buttonClick)=\"dismissBanner()\"></dbx-button>\n </mat-card-footer>\n </mat-card>\n}",
276
+ "uses": []
277
+ },
257
278
  {
258
279
  "slug": "layout-support-page",
259
280
  "category": "layout",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-components-mcp",
3
- "version": "13.11.18",
3
+ "version": "13.12.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "dbx-components-mcp": "dbx-components-mcp.js"
@@ -15,19 +15,19 @@
15
15
  "@angular/core": "21.2.11",
16
16
  "@angular/forms": "21.2.11",
17
17
  "@angular/material": "^21.2.9",
18
- "@dereekb/dbx-cli": "13.11.18",
19
- "@dereekb/dbx-core": "13.11.18",
20
- "@dereekb/dbx-firebase": "13.11.18",
21
- "@dereekb/dbx-form": "13.11.18",
22
- "@dereekb/dbx-web": "13.11.18",
23
- "@dereekb/firebase": "13.11.18",
24
- "@dereekb/firebase-server": "13.11.18",
25
- "@dereekb/rxjs": "13.11.18",
26
- "@dereekb/util": "13.11.18",
18
+ "@dereekb/dbx-cli": "13.12.1",
19
+ "@dereekb/dbx-core": "13.12.1",
20
+ "@dereekb/dbx-firebase": "13.12.1",
21
+ "@dereekb/dbx-form": "13.12.1",
22
+ "@dereekb/dbx-web": "13.12.1",
23
+ "@dereekb/firebase": "13.12.1",
24
+ "@dereekb/firebase-server": "13.12.1",
25
+ "@dereekb/rxjs": "13.12.1",
26
+ "@dereekb/util": "13.12.1",
27
27
  "@uirouter/angular": "21.0.0",
28
28
  "rxjs": "^7.8.2"
29
29
  },
30
30
  "devDependencies": {
31
- "@dereekb/model": "13.11.18"
31
+ "@dereekb/model": "13.12.1"
32
32
  }
33
33
  }