@dereekb/dbx-components-mcp 13.13.0 → 13.15.0
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.
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"source": "@dereekb/dbx-web",
|
|
404
404
|
"module": "@dereekb/dbx-web",
|
|
405
405
|
"file": "src/lib/button/_button.scss",
|
|
406
|
-
"line":
|
|
406
|
+
"line": 177,
|
|
407
407
|
"declarations": [
|
|
408
408
|
{
|
|
409
409
|
"property": "display",
|
|
@@ -470,6 +470,28 @@
|
|
|
470
470
|
"--mat-button-tonal-container-height"
|
|
471
471
|
]
|
|
472
472
|
},
|
|
473
|
+
{
|
|
474
|
+
"slug": "button-icon-tile",
|
|
475
|
+
"selector": ".dbx-button-icon-tile",
|
|
476
|
+
"source": "@dereekb/dbx-web",
|
|
477
|
+
"module": "@dereekb/dbx-web",
|
|
478
|
+
"file": "src/lib/button/_button.scss",
|
|
479
|
+
"line": 106,
|
|
480
|
+
"declarations": [],
|
|
481
|
+
"role": "layout",
|
|
482
|
+
"intent": "turn a `<dbx-button>` that wraps a `<dbx-icon-tile>` into a clickable tile — strips the button's padding/min-width so it hugs the tile, adopts the tile's `--dbx-icon-tile-border-radius`, and lifts a neutralized (`--mat-sys-on-surface`) state layer above the tile so hover/press/ripple reads on every color variant (including opaque full-color and primary-tonal tiles)",
|
|
483
|
+
"seeAlso": [
|
|
484
|
+
"icon-tile",
|
|
485
|
+
"button-neutral-interaction-color"
|
|
486
|
+
],
|
|
487
|
+
"antiUse": "don't apply to a `<dbx-button>` with no inner `<dbx-icon-tile>` — there is no tile surface to shape the button to or to overlay",
|
|
488
|
+
"tokensRead": [
|
|
489
|
+
"--dbx-icon-tile-border-radius",
|
|
490
|
+
"--mat-button-text-container-shape",
|
|
491
|
+
"--mat-sys-corner-full",
|
|
492
|
+
"--mat-sys-on-surface"
|
|
493
|
+
]
|
|
494
|
+
},
|
|
473
495
|
{
|
|
474
496
|
"slug": "button-neutral-interaction-color",
|
|
475
497
|
"selector": ".dbx-button-neutral-interaction-color",
|
|
@@ -490,7 +512,7 @@
|
|
|
490
512
|
"source": "@dereekb/dbx-web",
|
|
491
513
|
"module": "@dereekb/dbx-web",
|
|
492
514
|
"file": "src/lib/button/_button.scss",
|
|
493
|
-
"line":
|
|
515
|
+
"line": 165,
|
|
494
516
|
"declarations": [
|
|
495
517
|
{
|
|
496
518
|
"property": "padding-right",
|
|
@@ -553,6 +575,50 @@
|
|
|
553
575
|
"--dbx-padding-3"
|
|
554
576
|
]
|
|
555
577
|
},
|
|
578
|
+
{
|
|
579
|
+
"slug": "card-select",
|
|
580
|
+
"selector": ".dbx-card-select",
|
|
581
|
+
"source": "@dereekb/dbx-web",
|
|
582
|
+
"module": "@dereekb/dbx-web",
|
|
583
|
+
"file": "src/lib/layout/card/_card.scss",
|
|
584
|
+
"line": 48,
|
|
585
|
+
"declarations": [
|
|
586
|
+
{
|
|
587
|
+
"property": "position",
|
|
588
|
+
"value": "relative"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"property": "cursor",
|
|
592
|
+
"value": "pointer"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"property": "text-align",
|
|
596
|
+
"value": "center"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"property": "height",
|
|
600
|
+
"value": "100%"
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"role": "layout",
|
|
604
|
+
"intent": "selectable \"choice\" `<mat-card appearance=\"outlined\">` whose content is centered in a column (large `<mat-icon>`, title, subtitle). Pair with `[dbxColor]` + `[dbxColorTone]` and toggle the `.dbx-card-selected` modifier to paint the selected border to match the tonal wash. Put the large glyph in a `.dbx-card-select-icon` `<mat-icon>` and an optional round selected checkmark in a `.dbx-card-select-check` `<dbx-icon-tile [round]>` (absolutely positioned top-right). Fills its parent's height (`height: 100%`) so a row of cards laid out with `dbxFlexGroup` + `[dbxFlexSize]` stays equal-height as it shrinks and wraps.",
|
|
605
|
+
"seeAlso": [
|
|
606
|
+
"color",
|
|
607
|
+
"color-tonal",
|
|
608
|
+
"icon-tile",
|
|
609
|
+
"card-banner",
|
|
610
|
+
"flex-group",
|
|
611
|
+
"flex-size"
|
|
612
|
+
],
|
|
613
|
+
"tokensRead": [
|
|
614
|
+
"--dbx-bg-color-current",
|
|
615
|
+
"--dbx-card-select-icon-size",
|
|
616
|
+
"--dbx-padding-2",
|
|
617
|
+
"--dbx-padding-3",
|
|
618
|
+
"--mat-sys-on-surface",
|
|
619
|
+
"--mat-sys-surface"
|
|
620
|
+
]
|
|
621
|
+
},
|
|
556
622
|
{
|
|
557
623
|
"slug": "chip",
|
|
558
624
|
"selector": ".dbx-chip",
|
|
@@ -1315,7 +1381,7 @@
|
|
|
1315
1381
|
"source": "@dereekb/dbx-web",
|
|
1316
1382
|
"module": "@dereekb/dbx-web",
|
|
1317
1383
|
"file": "src/lib/button/_button.scss",
|
|
1318
|
-
"line":
|
|
1384
|
+
"line": 153,
|
|
1319
1385
|
"declarations": [
|
|
1320
1386
|
{
|
|
1321
1387
|
"property": "width",
|
|
@@ -41,6 +41,29 @@
|
|
|
41
41
|
}
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
+
{
|
|
45
|
+
"slug": "card-feedback-selection",
|
|
46
|
+
"category": "card",
|
|
47
|
+
"summary": "Single-select row of centered `.dbx-card-select` choice cards laid out with `dbxFlexGroup` + equal-width `[dbxFlexSize]` columns (equal-size as the screen shrinks, stacking below the `small` breakpoint). The selected `<mat-card appearance=\"outlined\">` gets a tonal `[dbxColor]` wash, a matching themed border, and a round `<dbx-icon-tile [round]>` checkmark badge in the top-right; unselected cards stay neutral. Large glyphs are plain `<mat-icon>` that inherit the card's flipped text color.",
|
|
48
|
+
"header": "Feedback Selection Cards",
|
|
49
|
+
"className": "DocFeedbackSelectionCardExampleComponent",
|
|
50
|
+
"selector": "doc-feedback-selection-card-example",
|
|
51
|
+
"module": "apps/demo",
|
|
52
|
+
"appRef": "apps/demo",
|
|
53
|
+
"hint": "Single-select row of equal-size centered choice cards (dbxFlexGroup) — the selected card gets a tonal [dbxColor] wash, a matching themed border, and a round checkmark badge.",
|
|
54
|
+
"relatedSlugs": [
|
|
55
|
+
"mat-card",
|
|
56
|
+
"dbx-card-select",
|
|
57
|
+
"dbx-icon-tile",
|
|
58
|
+
"dbx-color",
|
|
59
|
+
"dbx-chip",
|
|
60
|
+
"dbx-flex-group",
|
|
61
|
+
"dbx-flex-size"
|
|
62
|
+
],
|
|
63
|
+
"info": "<p>\n A \"selection\" / \"choice\" card lets the user pick exactly one option from a small set, with the chosen card emphasised. Each option is a stock\n <code><mat-card appearance=\"outlined\"></code>\n carrying the\n <code>.dbx-card-select</code>\n utility, which centers the card body in a column (a large\n <code><mat-icon></code>\n , a title, and a subtitle) and exposes a top-right slot for a checkmark badge via a\n <code>.dbx-card-select-check</code>\n child.\n</p>\n<p>\n Selection is a single-select\n <code>signal</code>\n . The selected card receives\n <code>[dbxColor]</code>\n +\n <code>[dbxColorTone]=\"16\"</code>\n , so the existing\n <code>mat-card.dbx-color</code>\n /\n <code>.dbx-color-tonal</code>\n rules paint the tonal background wash and flip the card text to the vibrant theme color — which the centered\n <code><mat-icon></code>\n (rendered in\n <code>currentColor</code>\n ) and the title inherit for free. The\n <code>.dbx-card-selected</code>\n modifier repaints the outlined-card border to that same\n <code>--dbx-bg-color-current</code>\n value, so the border matches the wash without any hard-coded colour.\n</p>\n<p>\n The round checkmark is a\n <code><dbx-icon-tile [round]></code>\n carrying its own\n <code>[dbxColor]</code>\n (no tone), so it renders as a solid vibrant circle with a contrast-colour check. The unselected card omits\n <code>[dbxColor]</code>\n entirely, so it keeps the neutral outline + on-surface text. Each choice carries its own semantic\n <code>color</code>\n (a positive\n <code>'primary'</code>\n , a destructive\n <code>'warn'</code>\n , and a\n <code>'notice'</code>\n review), so the emphasis colour follows the meaning of the option.\n</p>\n<p>\n The options sit in a\n <code>dbxFlexGroup</code>\n row, each an equal-width\n <code>[dbxFlexSize]=\"2\"</code>\n column, so the cards stay the same size and shrink in unison as the viewport narrows — and\n <code>.dbx-card-select</code>\n fills its column height (\n <code>height: 100%</code>\n ) so they stay equal-height even if one subtitle wraps. Below the\n <code>small</code>\n breakpoint,\n <code>[breakToColumn]</code>\n stacks them into a single column.\n</p>",
|
|
64
|
+
"snippet": "<div class=\"dbx-flex-bar dbx-mb3\">\n <span class=\"dbx-text-label-medium dbx-uppercase dbx-tracked-wide dbx-icon-spacer\">Feedback</span>\n <dbx-chip [small]=\"true\" color=\"notice\">Required</dbx-chip>\n</div>\n<div dbxFlexGroup breakpoint=\"small\" [breakToColumn]=\"true\">\n @for (choice of choices; track choice.key) {\n <div [dbxFlexSize]=\"2\">\n <mat-card appearance=\"outlined\" class=\"dbx-card-select\" role=\"button\" [class.dbx-card-selected]=\"isSelected(choice.key)\" [attr.aria-pressed]=\"isSelected(choice.key)\" [dbxColor]=\"isSelected(choice.key) ? choice.color : null\" [dbxColorTone]=\"isSelected(choice.key) ? 16 : null\" (click)=\"select(choice.key)\">\n <mat-card-content>\n @if (isSelected(choice.key)) {\n <dbx-icon-tile class=\"dbx-card-select-check\" icon=\"check\" [round]=\"true\" [dbxColor]=\"choice.color\"></dbx-icon-tile>\n }\n <mat-icon class=\"dbx-card-select-icon\">{{ choice.icon }}</mat-icon>\n <div class=\"dbx-text-title-medium\">{{ choice.title }}</div>\n <div class=\"dbx-note\">{{ choice.subtitle }}</div>\n </mat-card-content>\n </mat-card>\n </div>\n }\n</div>",
|
|
65
|
+
"uses": []
|
|
66
|
+
},
|
|
44
67
|
{
|
|
45
68
|
"slug": "card-hero-onboarding-progress",
|
|
46
69
|
"category": "card",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-components-mcp",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"dbx-components-mcp": "dbx-components-mcp.js"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ts-morph": "^21.0.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@dereekb/dbx-cli": "13.
|
|
15
|
-
"@dereekb/util": "13.
|
|
14
|
+
"@dereekb/dbx-cli": "13.15.0",
|
|
15
|
+
"@dereekb/util": "13.15.0"
|
|
16
16
|
}
|
|
17
17
|
}
|